@font-face{font-family:'Safety Noto Naskh';src:url('/assets/fonts/NotoNaskhArabic-Variable.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}
.document-surface{--document-blue:var(--brand,#165b78);--document-line:#91B3C1;font-family:'Safety Noto Naskh',serif;font-size:18px;line-height:1.85;color:#202528;direction:rtl;text-align:right;letter-spacing:normal;text-justify:none;overflow-wrap:anywhere;min-width:0}
.document-surface :where(input,select,textarea,button,table,label,p,li,dt,dd,small,.tag,.status){font-family:inherit;font-size:18px;line-height:1.85;letter-spacing:normal}
.document-surface :where(h1,h2,h3,h4,legend){font-family:inherit;color:var(--brand,#165b78);font-weight:700;text-align:right;line-height:1.6;letter-spacing:normal}
.document-surface h1,.document-surface>h2,.document-surface>.panel>h2,.document-surface>.followup-report>h2,.document-surface>.register-detail>h2{font-size:30px}
.document-surface :where(h2,h3,h4){font-size:22px}
body:has(#content.document-surface) #title{font-family:'Safety Noto Naskh',serif;font-size:30px;font-weight:700;color:var(--brand,#165b78);line-height:1.6}
.document-surface :where(.panel,.followup-card,.followup-report,fieldset){background:#fff;border:1px solid var(--document-line);border-radius:10px;padding:22px;margin-block:18px;min-width:0;box-shadow:none}
.document-surface :where(.panel,.followup-card,fieldset)>:where(h2,h3,h4),.document-surface legend{background:#DDEBEC;padding:10px 16px;border-inline-start:3px solid var(--brand,#165b78);border-radius:4px;max-width:100%}
.document-surface form>h3,.document-surface #register-annotations>h3{background:#DDEBEC;padding:10px 16px;border-inline-start:3px solid var(--brand,#165b78);border-radius:4px}
.document-surface legend{font-size:22px;white-space:normal}
.document-surface label{display:block;font-weight:700;margin-block:10px;text-align:right}
.document-surface :where(input,select,textarea){display:block;width:100%;max-width:100%;min-height:52px;margin-top:7px;border:1px solid #91B3C1;border-radius:7px;background:#fff;color:#202528;padding:9px 12px;font-weight:400;text-align:start;box-sizing:border-box}
.document-surface textarea{min-height:130px;resize:vertical}
.document-surface :where(label:has(>input[type=checkbox]),label:has(>input[type=radio]),.daily-note){display:flex;align-items:flex-start;gap:12px;padding:10px 12px;min-height:52px;border-bottom:1px solid #DDEBEC;font-weight:400}
.document-surface label:nth-of-type(even):has(>input[type=checkbox]){background:#F8FAFA}
.document-surface input:is([type=checkbox],[type=radio]){display:inline-block;flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:6px 0 0;padding:0;accent-color:var(--brand,#165b78)}
.document-surface :where(button,.actions>a){background:var(--brand,#165b78);color:white;font-weight:700;min-height:48px;padding:9px 20px;border:1px solid var(--brand,#165b78);border-radius:7px;white-space:normal}
.document-surface button.secondary{background:white;color:var(--brand,#165b78);border:1px solid #91B3C1}
.document-surface button.danger{background:#aa3543;border-color:#aa3543}
.document-surface a{color:var(--brand,#165b78);text-underline-offset:.3em;text-decoration-thickness:1px;text-decoration-skip-ink:auto}
.document-surface :where(input,textarea,select,button,a):focus-visible{outline:3px solid #648FAD;outline-offset:3px}
.document-surface table{width:100%;text-align:right;border-collapse:collapse;background:#fff}
.document-surface :where(th,td){font-size:18px;padding:13px 15px;border:1px solid #B2CAD3;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.document-surface th{background:#DDEBEC;color:var(--brand,#165b78);font-weight:700}
.document-surface tbody tr:nth-child(even){background:#F8FAFA}
.document-surface tbody tr:nth-child(odd){background:#fff}
.document-surface dl{margin:0;min-width:0}
.document-surface dt{font-weight:700;color:var(--brand,#165b78);margin-top:12px;padding:7px 12px;background:#DDEBEC}
.document-surface dd{margin:0;padding:10px 12px;border:1px solid #DDEBEC;white-space:pre-wrap;min-width:0}
.document-surface dd:nth-of-type(even){background:#F8FAFA}
.document-surface .notice{background:#F8FAFA;color:#202528;border-color:#91B3C1}
.document-surface :where(.error,.error-message){color:#9D2432}
.document-surface .form-grid{gap:18px}
@media(max-width:640px){.document-surface{font-size:18px}.document-surface :where(.panel,.followup-card,.followup-report,fieldset){padding:15px;margin-block:14px}.document-surface h1,.document-surface>h2,.document-surface>.panel>h2,.document-surface>.register-detail>h2,body:has(#content.document-surface) #title{font-size:30px}.document-surface :where(h2,h3,h4,legend){font-size:22px}.document-surface .form-grid{grid-template-columns:minmax(0,1fr)}.document-surface .actions{display:flex;flex-wrap:wrap;gap:10px}.document-surface :where(td,th){padding:10px}.document-surface label{min-width:0}}

/* Shared observation template: all equipment types use this same option layout. */
.document-surface .document-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;align-items:stretch}
.document-surface .document-options .daily-note{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;margin:0;padding:12px;border:1px solid #DDEBEC;border-radius:6px;min-width:0;font-size:18px}
.document-surface .document-option-text{font-size:18px;line-height:1.85;font-weight:400;overflow-wrap:anywhere}
.document-surface .document-option-text small{display:block;font-size:18px;line-height:1.85}
.document-surface .document-options .daily-note:nth-child(even){background:#F8FAFA}
.document-surface .document-options .daily-note:nth-child(odd){background:#fff}
.document-surface #daily-item-notes fieldset{display:block}
@media(max-width:640px){.document-surface .document-options{grid-template-columns:minmax(0,1fr)}}

.document-surface .daily-note input[type=checkbox]{width:22px!important;min-height:22px!important;height:22px;accent-color:var(--brand,#165b78)}
.document-surface fieldset.document-options>legend{grid-column:1/-1}

/* Uniform full-width section bands, including native fieldset legends. */
.document-surface legend,
.document-surface :where(form,fieldset,section,article,.panel,.followup-card)>:is(h2,h3,h4){display:block;width:100%;max-width:100%;box-sizing:border-box;background:#DDEBEC;border-inline-start:3px solid var(--brand,#165b78);border-radius:4px;padding:10px 16px;font-weight:700}
.document-surface legend{float:none;font-size:22px}
.document-surface .document-options{grid-auto-rows:minmax(64px,auto);align-items:stretch}
.document-surface .document-options>label,
.document-surface .document-options .daily-note{min-height:64px;margin:0;padding:12px;align-items:start;border:1px solid #B2CAD3;border-radius:6px;color:#202528}
.document-surface .document-option-text,
.document-surface .document-option-text small{color:#202528;font-size:18px;font-weight:400}
.document-surface .document-options input:is([type=checkbox],[type=radio]){margin-top:5px;align-self:start}
