.ext-form{direction:rtl;background:#fff;color:#102e4f;border:1px solid #dbe7ed;border-radius:16px;padding:24px;font-family:'Safety Noto Naskh',Tahoma,sans-serif;font-size:18px;line-height:1.8;max-width:100%;box-sizing:border-box}.ext-form h2{color:#102e4f;font-size:28px}.ext-form h3,.ext-form legend{color:#102e4f;font-size:22px;font-weight:700}.ext-section,.ext-form fieldset{border:1px solid #dbe7ed;border-radius:12px;margin:18px 0;padding:18px;background:#fff}.ext-section>h3{background:#eff7fc;border-inline-start:5px solid #35bdb7;border-radius:7px;padding:10px 14px;margin:-1px -1px 16px}.ext-form label{display:block;font-weight:700;margin-block:10px}.ext-form input,.ext-form textarea,.ext-form select{font-size:18px;min-height:46px;border:1px solid #cbdfe8;border-radius:9px;padding:10px;color:#102e4f;background:#fff}.ext-form input[type=checkbox],.ext-form input[type=radio]{width:22px;height:22px;min-height:0;margin-inline-end:8px;accent-color:#168e96;flex:none}.ext-form .ext-check>div{display:flex;gap:22px;flex-wrap:wrap}.ext-form .ext-check label{display:flex;align-items:center;gap:6px}.ext-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ext-form button,.ext-button{background:#123d63;color:white;border:1px solid #123d63;border-radius:9px;padding:10px 18px;min-height:46px;font-size:18px;text-decoration:none;display:inline-block}.ext-form button.secondary,.ext-button.secondary{color:#123d63;background:#e9f6f5;border-color:#8bcfc9}.ext-form dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ext-form dl>div{background:#f6fafc;border-radius:8px;padding:12px;overflow-wrap:anywhere}.ext-form dt{font-weight:bold}.ext-form dd{margin:0;color:#233f54}.ext-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ext-photos img,#ext-after-preview img{max-width:100%;max-height:340px;object-fit:contain;border-radius:10px}.ext-photos figure{margin:0}.ext-empty{border:2px dashed #91cfcc;background:#f0fafa;padding:36px 16px;text-align:center;border-radius:10px}.ext-form th{background:#e8f4f6;color:#102e4f}.ext-form tr:nth-child(even){background:#f6fafc}.ext-form td,.ext-form th{white-space:normal;overflow-wrap:anywhere}.ext-form .document-options{gap:12px}.ext-form .daily-note{padding:12px;background:#f7fafc;border:1px solid #dbe7ed;border-radius:9px;display:flex;align-items:center}.ext-form .error{color:#a32637}.ext-form .daily-photo-actions{display:flex;gap:12px}.ext-form .daily-photo-actions>button,.ext-form .daily-photo-actions>label{flex:1}.ext-form .unified-options-toggle{background:#e9f6f5;color:#123d63}.ext-form #ext-derived-result{background:#e4f7f4;padding:12px;border-radius:8px;font-weight:bold}.ext-form .actions{gap:12px}.ext-form table{width:100%;table-layout:fixed}.ext-form .table-wrap{max-width:100%}@media(max-width:650px){.ext-form{padding:14px;font-size:18px}.ext-grid,.ext-form dl,.ext-photos{grid-template-columns:1fr}.ext-form h2{font-size:25px}.ext-section{padding:12px}.ext-form table{table-layout:auto;font-size:16px}.ext-form .table-wrap table thead{display:none}.ext-form .table-wrap table tr{display:block;border:1px solid #dbe7ed;border-radius:10px;margin-bottom:14px;padding:10px}.ext-form .table-wrap table td{display:block;width:auto;border:0;padding:7px}.ext-form button,.ext-button{max-width:100%;white-space:normal}.ext-form .ext-check>div{gap:14px}}@media print{.ext-form{border:0;padding:0}.ext-form button,.ext-form .actions{display:none}.ext-section{break-inside:avoid}}


/* Reference layouts: interactive controls and live records, never sample data. */
.ext-form{box-shadow:0 3px 16px #102e4f06}.ext-form>h2{border-bottom:1px solid #e3eaef;padding-bottom:16px;margin-top:0}.ext-section>h3{border-inline-start:0;background:#f0f8fc;margin:-18px -18px 18px;border-radius:12px 12px 0 0;padding:12px 18px}.ext-form dl>div{background:transparent;border-bottom:1px solid #eff2f5;border-radius:0;display:flex;justify-content:space-between;align-items:baseline;gap:16px}.ext-form dt{flex-shrink:0}.ext-form dd{text-align:end}.ext-form .daily-note{background:#fff;border-color:#e2e9ee;min-height:50px;box-sizing:border-box}.ext-form .daily-note:nth-child(even){background:#f8fbfc}.ext-form .daily-note input{align-self:center}.ext-form .daily-photo-actions{margin-block:16px}.ext-form .actions{display:flex;flex-wrap:wrap}.ext-form a[href*="followup/"],.ext-form a[href*="monthly/"]{color:#086a77;text-decoration:none;border:1px solid #98c6ca;padding:5px 12px;border-radius:7px;display:inline-block}.ext-form table{border-collapse:collapse}.ext-form td,.ext-form th{padding:12px;border-bottom:1px solid #e4e9ed;text-align:right}.ext-form thead th{background:#edf5f8}.ext-form .ext-answer-matrix{table-layout:fixed}.ext-answer-matrix th:first-child{width:58%}.ext-form .ext-answer-matrix td,.ext-form .ext-answer-matrix thead th:not(:first-child){text-align:center}.ext-answer{width:23px;height:23px;border:1px solid #becbd3;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;color:white;font:700 18px sans-serif}.ext-answer.selected{background:#088b91;border-color:#088b91}.ext-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-block:20px}.ext-stat{padding:16px 22px;border-radius:10px;background:#f0f4f8;border:1px solid #e4eaef;display:flex;justify-content:space-between;align-items:center}.ext-stat strong{font-size:28px}.ext-stat.open{background:#fff6e9;color:#825013}.ext-stat.closed{background:#edf8f4;color:#146c5b}.ext-stages{list-style:none;display:flex;justify-content:space-between;padding:18px 0;margin:0 0 18px;gap:8px;border-bottom:1px solid #e3eaef}.ext-stages li{flex:1;text-align:center;color:#788792;font-size:16px}.ext-stages li:before{content:'';display:block;width:14px;height:14px;border-radius:50%;border:3px solid #d4dce2;margin:0 auto 8px}.ext-stages .current{color:#087d83;font-weight:700}.ext-stages .current:before{border-color:#098e95;background:#a6e3dd}.ext-saved-observation{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ext-saved-observation>h2,.ext-saved-observation>.ext-stages,.ext-saved-observation>.ext-original,.ext-saved-observation>.ext-section:not(.ext-before):not(.ext-after),.ext-saved-observation>.actions{grid-column:1/-1}.ext-saved-observation .ext-section{margin:0}.ext-saved-observation .ext-photos{grid-template-columns:1fr}.ext-saved-observation .ext-empty{min-height:220px;display:flex;align-items:center;justify-content:center;background:#fafcfd;border-color:#d0dbe2}.ext-saved-observation .ext-photos img{width:100%;height:280px;object-fit:contain;background:#f7fafb}.ext-form #ext-derived-result{background:#dff3eb;color:#0b685c}.ext-observation-entry #daily-document{display:block;width:100%;margin-top:20px}.ext-observation-entry #daily-item-notes .document-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.ext-stats{gap:8px;grid-template-columns:1fr}.ext-stat{padding:10px 16px}.ext-saved-observation{display:block}.ext-saved-observation .ext-section{margin-block:16px}.ext-section>h3{margin:-12px -12px 14px;padding:10px 12px}.ext-form dl>div{display:block}.ext-form dd{text-align:start}.ext-observation-entry #daily-item-notes .document-options{grid-template-columns:1fr}.ext-stages li{font-size:14px}.ext-form .ext-answer-matrix{font-size:16px}.ext-answer-matrix th:first-child{width:52%}.ext-form .ext-answer-matrix td,.ext-form .ext-answer-matrix th{padding:8px 4px}.ext-answer{width:20px;height:20px}}

.ext-entry-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 0 20px;border-bottom:1px solid #dbe7ed}.ext-entry-heading h2{font-size:30px!important;margin:10px 0;color:#102e4f!important}.ext-entry-heading p{font-size:22px;font-weight:bold;color:#0b8187;margin:0}.ext-entry-heading img{width:120px;height:140px;object-fit:contain;border-radius:12px;background:#f4fafc}.ext-entry-badge{display:inline-block;background:#088a91;color:white;padding:3px 20px;border-radius:20px;font-size:18px}.ext-powder-layout #daily-location{margin-top:20px}.ext-powder-layout #daily-item-notes>fieldset{border:1px solid #dbe7ed;background:white;border-radius:12px;padding:16px;margin-block:18px}.ext-powder-layout #daily-item-notes>fieldset>legend{background:#eff8fc;padding:6px 16px;border-radius:7px;color:#123d63;width:calc(100% - 32px);box-sizing:border-box}.ext-powder-layout #daily-item-notes .document-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.ext-powder-layout .daily-note{margin:0;min-height:60px;padding:12px!important;display:flex;align-items:center;gap:10px}.ext-powder-layout .daily-location-grid,.ext-powder-layout .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ext-powder-layout input:not([type=checkbox]),.ext-powder-layout select,.ext-powder-layout textarea{width:100%;box-sizing:border-box}.ext-powder-layout .ext-actor-info{background:#f2f9fb;padding:8px 16px;margin-block:12px}.ext-powder-layout .ext-actor-info dl{margin:0}.ext-selected-type{font-weight:700;color:#087d83}.ext-powder-layout #daily-document{background:#123d63;color:white;width:100%;padding:14px;font-size:20px}.ext-powder-layout #daily-item-notes>label:has(textarea){padding:14px;background:#f7fbfd;border:1px solid #dbe7ed;border-radius:12px}.ext-powder-layout #daily-item-notes>label:has(textarea) textarea{display:block;margin-top:8px;min-height:95px}
@media(max-width:650px){.ext-entry-heading h2{font-size:24px!important}.ext-entry-heading img{width:75px;height:100px}.ext-entry-heading{gap:10px}.ext-powder-layout #daily-item-notes .document-options,.ext-powder-layout .daily-location-grid,.ext-powder-layout .form-grid{grid-template-columns:1fr!important}.ext-powder-layout .daily-note{min-height:54px}.ext-entry-badge{font-size:16px}}
