.apn-library-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px;padding:6px 0;position:sticky;top:0;z-index:2;background:var(--card,#fff)}
.apn-library-tabs button{border:1px solid var(--border,#d4d4d8);border-radius:999px;padding:12px 22px;background:transparent;color:inherit;font:inherit;font-weight:750;cursor:pointer}
.apn-library-tabs button.active{background:#000;color:#fff;border-color:#000}
.apn-anamnesis-page [hidden],.apn-anamnesis-card [hidden]{display:none!important}
.apn-anamnesis-question-editor{display:grid;gap:14px;margin:14px 0}
.apn-anamnesis-question-editor [data-question-list]{display:grid;gap:14px}
.apn-anamnesis-question{border:1px solid var(--border,#d4d4d8);border-radius:16px;padding:16px;display:grid;gap:12px}
.apn-anamnesis-question label,.apn-qpc-library-workspace label{display:grid;gap:8px;font-weight:650}
.apn-anamnesis-question textarea,.apn-qpc-library-workspace input,.apn-qpc-library-workspace textarea,.apn-qpc-library-workspace select{box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--border,#d4d4d8);border-radius:12px;background:#fff;color:#111;font:inherit;resize:vertical}
.apn-anamnesis-question-actions,.apn-record-form-actions,.apn-qpc-library-row>div{display:flex;gap:8px;flex-wrap:wrap}
.apn-anamnesis-question-editor button,.apn-qpc-library-workspace button{border:1px solid var(--border,#d4d4d8);border-radius:12px;background:var(--card,#fff);color:inherit;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer}
.apn-anamnesis-question-editor button:disabled,.apn-qpc-library-workspace button:disabled{opacity:.45;cursor:not-allowed}
.apn-qpc-library-workspace .apn-record-qpc-head{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}
.apn-qpc-library-workspace [data-qpc-patient-controls]{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.apn-qpc-library-workspace .apn-qpc-library{margin:24px 0}.apn-qpc-library-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--border,#d4d4d8)}
.apn-qpc-library-workspace form{display:grid;gap:16px}
html[data-theme=dark] .apn-library-tabs{background:#15171a;color:#fff}
html[data-theme=dark] .apn-library-tabs button.active{background:#fff;color:#000;border-color:#fff}
html[data-theme=dark] .apn-anamnesis-question textarea,html[data-theme=dark] .apn-qpc-library-workspace input,html[data-theme=dark] .apn-qpc-library-workspace textarea,html[data-theme=dark] .apn-qpc-library-workspace select{background:#000;color:#fff;border-color:#50535a;color-scheme:dark}
html[data-theme=dark] .apn-anamnesis-question-editor button,html[data-theme=dark] .apn-qpc-library-workspace button{background:#15171a;color:#fff;border-color:#50535a}
html[data-theme=dark] .apn-qpc-library-workspace .apn-library-tabs button.active{background:#fff;color:#000}
html[data-theme=dark] .apn-questionnaire-number{background:#292c31!important;color:#fff!important}
html[data-theme=dark] .apn-questionnaire-field select,html[data-theme=dark] .apn-questionnaire-type select,html[data-theme=dark] .apn-feedback-group-schedule select{background-color:#000!important;color:#fff!important;border-color:#50535a!important;color-scheme:dark}
html[data-theme=dark] .apn-questionnaire-field select option,html[data-theme=dark] .apn-questionnaire-type select option,html[data-theme=dark] .apn-feedback-group-schedule select option{background:#000;color:#fff}
@media(max-width:700px){.apn-qpc-library-workspace .apn-record-qpc-head,.apn-qpc-library-row{align-items:stretch;flex-direction:column}.apn-qpc-library-workspace [data-qpc-patient-controls]{grid-template-columns:1fr}}

/* Tipografia das bibliotecas e títulos dos questionários. */
.apn-qpc-library-workspace input,.apn-qpc-library-workspace textarea,.apn-qpc-library-workspace select,.apn-record-qpc-field input,.apn-record-qpc-field textarea,.apn-qpc-model-picker select{font-weight:400!important}
.apn-qpc-library-workspace input::placeholder,.apn-qpc-library-workspace textarea::placeholder{font-weight:400!important}
.rx-template-anamnesis>label:not(.template-supplement-editor){font-weight:700!important}
.rx-template-anamnesis .apn-anamnesis-template-title{font-weight:400!important}
.apn-anamnesis-content-label>span{font-size:16px!important;font-weight:700!important;line-height:1.5}
.apn-anamnesis-question>small{font-size:14px!important;font-weight:400!important;line-height:1.5}
.apn-name-limit{display:flex;justify-content:space-between;gap:12px;margin:6px 0 0;font-size:12px!important;font-weight:400!important;line-height:1.5;color:var(--muted,#666);grid-column:1/-1}
.apn-name-limit [data-title-count]{white-space:nowrap}
.apn-question-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.25}
html[data-theme=dark] .apn-name-limit{color:#b8bcc4}
