:root{--ink:#19313c;--muted:#6d7d85;--gold:#ad812d;--teal:#148579;--line:#e0e7e8;--bg:#f4f6f7}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Arial,sans-serif;display:grid;grid-template-columns:236px minmax(0,1fr)}aside{background:#152c36;color:#c2d1d6;min-height:100vh;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:white;font-size:21px;font-weight:600;padding:0 8px 30px}.brand>b{background:#bc984e;color:#152c36;padding:9px 13px;border-radius:12px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#a9babf;margin-top:5px}nav{display:grid;gap:8px}nav button{background:transparent;border:0;text-align:left;color:inherit;padding:13px 14px;border-radius:9px;font:inherit}nav button.active,nav button:hover{background:#ffffff15;color:white}nav button.active{box-shadow:inset 3px 0 #cba452}.side-note{margin-top:auto;padding-top:30px;font-size:12px;line-height:1.8;color:#91a7af}main{padding:25px 32px;min-width:0}header,.identity,.heading,.toolbar,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px}header{font-size:12px;color:var(--muted);margin-bottom:22px}.identity input{max-width:180px}.identity label{display:flex;align-items:center;gap:6px;white-space:nowrap}.notice{background:#fff8e9;color:#795d29;border:1px solid #eaddbc;border-radius:10px;padding:12px 16px;font-size:12px;line-height:1.6;margin-bottom:26px}.heading{margin-bottom:22px}.heading h1{font-size:27px;margin:0 0 8px;letter-spacing:-.7px}p,small{color:var(--muted)}.heading p{margin:0;font-size:13px}.btn{background:white;border:1px solid var(--line);border-radius:8px;padding:10px 14px;color:var(--ink);cursor:pointer;font-weight:600;font-size:12px}.btn.primary{background:var(--gold);border-color:var(--gold);color:white}.btn.teal{background:var(--teal);color:white;border-color:var(--teal)}.btn:disabled{opacity:.5;cursor:default}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:21px;margin-bottom:18px}.stat{margin:0;border-top:3px solid #b4934e}.stat b{display:block;font-size:31px;margin-top:13px}.stat small{font-size:12px}.two{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}h2{font-size:18px;margin:0 0 16px}h3{font-size:14px;margin:0 0 15px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{background:#f6f8f9;color:var(--muted);font-size:11px;white-space:nowrap}td,th{padding:13px 11px;border-bottom:1px solid var(--line)}td small{display:block;margin-top:5px}.pill{background:#e5f4f0;color:#147669;border-radius:20px;padding:5px 9px;display:inline-block;font-size:11px}.pill.closed{background:#eef0f2;color:#677680}.toolbar{justify-content:flex-start;flex-wrap:wrap;margin-bottom:18px}input,select,textarea{font:inherit;color:var(--ink);padding:10px;border:1px solid #d9e2e4;border-radius:7px;background:white;max-width:100%}textarea{width:100%;min-height:80px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #8dc7bb;outline-offset:1px}.empty{text-align:center;padding:40px;color:var(--muted)}.empty strong{display:block;color:var(--ink);margin-bottom:8px}dialog{border:0;padding:0;border-radius:16px;width:min(1080px,96vw);max-height:94vh;color:var(--ink)}dialog::backdrop{background:#0b222bc2}.dialog-head{position:sticky;top:0;background:white;padding:20px 26px;border-bottom:1px solid var(--line);z-index:2}.dialog-head h2{margin:6px 0 0}#sheetBody{padding:22px 26px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.tabs button.active{background:#e0f1ed;border-color:#94bfb4;color:#126c5e}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.field{display:grid;gap:6px;font-size:11px}.field>span{font-weight:600;color:#5f727a}.field input,.field select{width:100%}.field.wide{grid-column:1/-1}.subsection{padding:18px;background:#fafcfc;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}.rolelabel{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:#148579}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.choices label{display:flex;align-items:center;gap:9px;font-size:13px}.actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}.audit{border-left:2px solid #c6ddd6;padding:9px 15px;margin:12px 0;font-size:12px;line-height:1.8}.catalog{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.catalog .card{margin:0;padding:17px}.catalog small{display:block;line-height:1.6;margin:8px 0 14px}.hint{background:#edf5f8;padding:12px;border-radius:8px;font-size:12px;line-height:1.6;margin-bottom:15px}.checkrow{display:flex;gap:16px;flex-wrap:wrap;margin:15px 0}.checkrow label{display:flex;gap:7px;align-items:center;font-size:12px}#toast{position:fixed;bottom:24px;right:24px;background:#173b44;color:white;border-radius:10px;padding:14px 20px;display:none;z-index:10}.data-line{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.data-line b{display:block;margin-bottom:6px}.print-only{display:none}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.72}.module-link{display:block;width:100%;text-align:left;margin:9px 0}.summary{font-size:12px;line-height:1.7}.section-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.status-note{font-size:12px;color:var(--muted);margin:9px 0 18px}@media(max-width:950px){body{grid-template-columns:190px minmax(0,1fr)}main{padding:20px}.identity{flex-wrap:wrap;justify-content:flex-end}.fields{grid-template-columns:repeat(2,1fr)}.catalog{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){body{display:block}aside{min-height:auto;padding:15px}.brand{padding:0 0 15px;font-size:18px}nav{display:flex;overflow:auto;gap:4px}nav button{white-space:nowrap;padding:10px}.side-note{display:none}main{padding:15px}header{align-items:flex-start;flex-direction:column}.identity{justify-content:flex-start}.heading{align-items:flex-start}.heading h1{font-size:23px}.catalog,.fields{grid-template-columns:1fr}.choices{grid-template-columns:1fr}#sheetBody{padding:16px}.dialog-head{padding:16px}.stats{gap:8px}.card{padding:16px}}@media print{body{display:block;background:white}body>*{display:none!important}body>dialog{display:block!important;position:static;max-height:none;width:100%;overflow:visible;border:0}dialog::backdrop{display:none}.dialog-head{position:static}.dialog-head button,.tabs,.actions,.notice,.no-print{display:none!important}#sheetBody{padding:0}.subsection,.card{break-inside:avoid;background:white}.fields{grid-template-columns:repeat(2,1fr)}input,textarea,select{border:0;border-bottom:1px solid #ddd;border-radius:0}textarea{height:auto;min-height:60px}.print-only{display:block}fieldset:disabled{opacity:1}h2{font-size:20px}}

[hidden]{display:none!important}
.patient-summary{border:1px solid var(--line);border-radius:9px;background:#f8faf9;padding:12px 14px;margin-bottom:14px;font-size:12px}.patient-summary strong{font-size:15px;margin-right:12px}.patient-summary span{color:var(--muted);line-height:1.8}.patient-summary details{margin-top:7px}.patient-summary summary{cursor:pointer;color:var(--teal);font-size:11px}.patient-summary dl{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.patient-summary dt{color:var(--muted);font-size:10px}.patient-summary dd{margin:4px 0;font-size:12px;overflow-wrap:anywhere}.vital-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy-note{font-size:12px;margin-top:12px;color:var(--muted)}#nursingForm textarea{min-height:120px}@media(max-width:650px){.patient-summary span{display:block}.patient-summary dl{grid-template-columns:repeat(2,1fr)}.vital-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.document-heading{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:14px}.document-employee{border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:18px}.document-employee h3{margin-bottom:12px}.document-employee dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.document-employee dt{font-size:10px;color:var(--muted)}.document-employee dd{margin:4px 0 0;font-size:12px;overflow-wrap:anywhere}.question-row{padding:12px 0;border-bottom:1px solid var(--line);break-inside:avoid}.question-row .field{display:grid;grid-template-columns:1fr 150px;align-items:center}.question-row small{display:block;margin-top:6px}.signature-lines{margin-top:24px;font-size:12px;line-height:2}.dama-declaration{font-size:15px;line-height:1.9;margin-bottom:20px}.medication-row{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}.wrap-cell{white-space:normal;min-width:160px}.duration{font-size:13px;padding:12px;background:#f5f8f7}#mailError{color:#a33131;margin:10px}#reviewEmail textarea{min-height:330px}#clinicSettings textarea[name=body]{min-height:300px}@media(max-width:650px){.document-employee dl{grid-template-columns:repeat(2,minmax(0,1fr))}.question-row .field{grid-template-columns:1fr}.document-heading{display:block}.document-heading span{display:block;margin-top:8px}}@media print{.document-employee dl{grid-template-columns:repeat(4,minmax(0,1fr))}.signature-lines{break-inside:avoid}.document-employee{break-inside:avoid}.blank-statement textarea{min-height:180px}.document-heading{display:flex}.matrix-section{break-before:page}.no-print{display:none!important}dialog{overflow:visible!important}dialog .dialog-head{position:static}.question-row select{width:120px}.question-row .field{grid-template-columns:1fr 120px}}
#workflowPrintSurface{display:none}@media print{body.workflow-printing>dialog{display:none!important}body.workflow-printing>#workflowPrintSurface{display:block!important;margin:0;padding:14px;color:#19313c;font:12px Arial}#workflowPrintSurface h1{font-size:21px}#workflowPrintSurface h3,#workflowPrintSurface h4{border-bottom:1px solid #ddd;padding:8px 0}#workflowPrintSurface .fields{grid-template-columns:1fr 1fr}#workflowPrintSurface .print-value{white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid #ddd;padding:7px 0;min-height:22px}#workflowPrintSurface .question-row{break-inside:avoid}#workflowPrintSurface .blank-statement .print-value{min-height:35px}#workflowPrintSurface.blank-statement .field.wide .print-value{min-height:160px}#workflowPrintSurface .matrix-section{break-before:page}}
.referral-vitals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0}.referral-vitals dt{font-size:11px;color:var(--muted)}.referral-vitals dd{margin:4px 0;font-size:12px}@media(max-width:650px){.referral-vitals{grid-template-columns:repeat(2,1fr)}}
.clinical-error{border:1px solid #d88070;background:#fff1ee;color:#963a2c;border-radius:8px;padding:14px;line-height:1.8;margin-bottom:18px}.missing-field{border:2px solid #ba4c38!important;background:#fff9f7}.clinical-author{margin-bottom:18px;max-width:420px}.medication-editor{border:1px solid var(--line);padding:14px;border-radius:9px;margin:12px 0;background:#fff}.medication-editor .btn{margin-top:10px}.er-order{padding:15px;border:1px solid #cddfd9;border-radius:9px;margin-bottom:12px;background:#f4faf7}.er-order p{margin:8px 0}.er-order small{display:block;line-height:1.8}.er-order .field{max-width:250px;margin:10px 0}.medication-editor [name$=Days]{min-width:80px}
.staff-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}#staffPicker{max-width:210px}.identity{flex-wrap:wrap;justify-content:flex-end}@media(max-width:1000px){.staff-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.staff-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#staffPicker{max-width:170px}.identity{justify-content:flex-start}}
.pt-preview{overflow:auto;background:#e7ebed;padding:14px}.pt-sheet{width:190mm;height:277mm;background:#fff;color:#17232a;position:relative;box-sizing:border-box;margin:auto;font:11px Arial,sans-serif}.pt-inner{width:190mm;transform-origin:top left;padding:6px;box-sizing:border-box}.pt-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px;color:#17232a;font-size:11px}.pt-title h1{font-size:23px;margin:4px 0}.pt-times{border-top:2px solid #9e833e;border-bottom:1px solid #ccc;padding:6px;display:flex;gap:8px;font-size:11px}.pt-personal{border:1px solid #bbc6c9;padding:7px;margin-bottom:9px;break-inside:avoid}.pt-personal h3{font-size:12px;margin:0 0 6px}.pt-personal dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 10px;margin:0}.pt-personal dt{font-size:9px;color:#53636a}.pt-personal dd{font-size:10px;margin:2px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.pt-sheet section{margin-top:6px}.pt-sheet h3{font-size:12px;margin:0 0 5px;padding:4px 6px;background:#eef1ee;border-bottom:1px solid #c9d3d0}.pt-vitals{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:3px}.pt-line{display:grid;grid-template-columns:115px 1fr;gap:7px;margin:4px 0;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}.pt-exam{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.pt-exam .pt-line{grid-template-columns:90px 1fr}.pt-sheet table{font-size:9px;min-width:0;table-layout:fixed}.pt-sheet td,.pt-sheet th{padding:4px;font-size:9px;white-space:normal;overflow-wrap:anywhere}.pt-text{font-size:10px;color:#17232a;white-space:pre-wrap;line-height:1.4;margin:3px 0;padding:2px 5px;overflow-wrap:anywhere}.pt-signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border-top:1px solid #aab9ba;margin-top:10px;padding-top:8px;font-size:10px;line-height:1.5}.pt-signatures small{font-size:9px}#ptPrintSurface{position:fixed;top:0;left:-10000px;width:190mm;height:277mm}#ptPrintSurface .pt-sheet{margin:0}.pt-personal+.subsection{margin-top:12px}@media(max-width:650px){.pt-personal dl{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-sheet .pt-personal dl{grid-template-columns:repeat(4,minmax(0,1fr))}}@media print{@page{size:A4;margin:10mm}body.pt-printing>dialog{display:none!important}body.pt-printing>#ptPrintSurface{display:block!important;position:static;width:190mm;height:277mm;break-inside:avoid;page-break-inside:avoid}body.pt-printing .pt-sheet{margin:0!important}body.pt-printing .pt-inner{position:absolute;top:0;left:0}.pt-personal dl{grid-template-columns:repeat(4,minmax(0,1fr))}.pt-sheet *{print-color-adjust:exact;-webkit-print-color-adjust:exact}.pt-sheet table,.pt-sheet section{break-inside:auto}}
.visit-team{margin-top:18px}.visit-team select{min-height:44px;appearance:auto}.visit-team-summary{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:12px;padding:10px;background:#edf6f2;border-radius:8px;font-size:12px}
.clinical-author select{display:block!important;width:100%;min-height:45px;appearance:auto;background:#fff;border:1px solid #90b8ac;font-size:14px}.visit-team select{display:block!important;min-height:45px;font-size:14px}

#toast{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);max-width:calc(100vw - 28px);text-align:center;font-weight:700;font-size:16px;box-shadow:0 12px 36px #102b35a8;pointer-events:none}.mr-employee dl{grid-template-columns:repeat(2,minmax(0,1fr))}.mr-referral{background:white}.mr-referral .field textarea{min-height:72px}.mr-employee dd{font-size:13px}

dialog #toast{z-index:2147483647}

.all-log-filters{justify-content:flex-start;align-items:flex-end}.all-log-filters .field{min-width:min(240px,100%)}.all-log-filters input,.all-log-filters select{width:100%}

.clinic-stamp-settings{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,240px);gap:22px;align-items:center}.asset-preview{display:grid;justify-items:center;gap:10px;color:var(--muted);font-size:12px}.asset-preview img{max-width:100%;max-height:150px;object-fit:contain}.staff-signature-preview{display:block;max-width:95px;max-height:36px;object-fit:contain;margin-bottom:6px}.upload-signature{display:inline-flex;align-items:center;cursor:pointer}@media(max-width:650px){.clinic-stamp-settings{grid-template-columns:1fr}}

.search-combo{position:relative;z-index:2}.search-combo:focus-within{z-index:30}.combo-options{position:absolute;top:100%;left:0;right:0;max-height:240px;overflow:auto;background:#fff;border:1px solid #cbd6d8;border-radius:8px;box-shadow:0 10px 26px #17323b30;z-index:50;padding:4px}.combo-options[hidden]{display:none}.combo-option{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eef1f1;background:#fff;text-align:left;color:#19313c;cursor:pointer;font:inherit}.combo-option:hover,.combo-option:focus{background:#edf6f5}.combo-empty{padding:12px;color:#64777d;font-size:13px}

.medical-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.medical-history-item{display:grid;align-content:start;gap:10px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.medical-history-item textarea{min-height:82px}.medical-history-item [hidden]{display:none!important}@media(max-width:950px){.medical-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.medical-history-grid{grid-template-columns:1fr}}

.referral-stamp-preview{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.referral-stamp-preview img{width:110px;height:110px;object-fit:contain}
/* PT form: distinct clinical sections with role ownership and readable multi-page printing. */
.pt-sheet{height:auto!important;min-height:277mm;overflow:visible}.pt-inner{width:100%!important;min-height:277mm;transform:none!important;padding:6px;box-sizing:border-box}.pt-section{margin:7px 0 0!important;padding:0 0 3px;border:1px solid #c9d3d0;break-inside:avoid}.pt-section>h3{display:flex;justify-content:space-between;align-items:center;gap:10px}.pt-section>h3 small{font-size:8px;font-weight:400;color:#53636a;white-space:nowrap}.pt-section .pt-line{padding:3px 6px}.pt-choice-row,.pt-flags{display:flex;gap:16px;flex-wrap:wrap;padding:5px 7px;font-size:10px}.pt-choice{font-family:Arial,sans-serif;font-size:12px;margin-right:3px}.pt-choice.selected{color:#08745f;font-weight:bold}.pt-history-row{display:grid;grid-template-columns:1.4fr auto auto auto 3fr;gap:8px;align-items:center;padding:5px 8px;border-bottom:1px solid #e1e7e6;font-size:10px}.pt-history-row:last-child{border-bottom:0}.pt-detail{white-space:pre-wrap;overflow-wrap:anywhere}.pt-recommendation{display:grid;grid-template-columns:minmax(220px,1fr) 2fr;gap:8px;padding:4px 8px;border-bottom:1px solid #e1e7e6;font-size:10px}.pt-recommendation:last-child{border-bottom:0}.pt-mode{font-size:9px;margin:4px 8px}.pt-continuation{break-before:page;page-break-before:always;border-top:2px solid #9e833e;padding:7px 0 2px;margin-top:10px;font-size:10px;font-weight:bold}.pt-sheet table{table-layout:auto}.pt-sheet th,.pt-sheet td{white-space:normal;overflow-wrap:anywhere}.pt-signatures{break-inside:avoid}.pt-preview .pt-sheet{min-height:0}.pt-preview .pt-inner{min-height:0}.pt-preview .pt-continuation{border-top:2px solid #9e833e;margin-top:16px;padding-top:8px}@media(max-width:650px){.pt-history-row{grid-template-columns:1fr 1fr}.pt-detail{grid-column:1/-1}.pt-recommendation{grid-template-columns:1fr}.pt-section>h3{align-items:flex-start;flex-direction:column;gap:2px}}@media print{.pt-sheet{width:190mm!important;min-height:0;height:auto!important;overflow:visible}.pt-inner{width:100%!important;min-height:0;transform:none!important;padding:0}.pt-continuation{break-before:page;page-break-before:always}.pt-section{break-inside:avoid}.pt-section table{break-inside:auto}.pt-section tr{break-inside:avoid}.pt-signatures{break-inside:avoid}}
#doctorForm .subsection>h3,#nursingForm .subsection>h3{font-size:15px;color:#19313c;border-bottom:1px solid #d8e2e0;padding-bottom:9px}
#doctorForm .medical-history-grid{display:grid;grid-template-columns:1fr;gap:12px}
#doctorForm .medical-history-item{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:14px;align-items:start;padding:10px;background:#fff;border:1px solid var(--line);border-radius:8px}
#doctorForm .history-details[hidden]{display:none!important}
@media(max-width:650px){#doctorForm .medical-history-item{grid-template-columns:1fr}}
/* Compact, single-page PT sheet. */
.pt-sheet{width:190mm!important;height:277mm!important;min-height:0!important;overflow:hidden!important;font-size:8px!important}.pt-inner{width:190mm!important;min-height:0!important;padding:0!important;transform-origin:top left!important}.pt-title{font-size:8px!important;margin:0 0 2px!important}.pt-title h1{font-size:15px!important;margin:1px 0!important}.pt-times{font-size:7.5px!important;padding:3px 4px!important}.pt-personal{padding:4px!important;margin:3px 0 4px!important}.pt-personal h3{font-size:8.5px!important;margin:0 0 3px!important}.pt-personal dl{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px 5px!important}.pt-personal dt{font-size:6.5px!important}.pt-personal dd{font-size:7px!important;margin-top:1px!important;line-height:1.15}.pt-form-grid,.pt-plan-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 5px;align-items:start}.pt-section{min-width:0;margin:0!important;padding:0!important;border:1px solid #c9d3d0;break-inside:avoid}.pt-section>h3{font-size:8px!important;line-height:1.15;margin:0 0 2px!important;padding:3px 4px!important}.pt-section>h3 small{font-size:6px!important}.pt-section .pt-line{grid-template-columns:75px minmax(0,1fr);gap:4px;margin:1px 0;padding:2px 4px;font-size:7px;line-height:1.15}.pt-vitals{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:2px 4px;font-size:6.7px}.pt-flags,.pt-choice-row{gap:5px;padding:2px 4px;font-size:6.7px}.pt-choice{font-size:8px}.pt-history-row{grid-template-columns:1fr auto auto auto;gap:4px;padding:2px 4px;font-size:6.7px}.pt-history-row .pt-detail{grid-column:1/-1;padding-left:8px}.pt-exam{grid-template-columns:1fr 1fr;gap:0 4px}.pt-exam .pt-line{grid-template-columns:60px minmax(0,1fr)}.pt-plan-grid{margin-top:3px}.pt-plan-grid>.pt-section:first-child{grid-column:1/-1}.pt-recommendations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 4px}.pt-recommendation{display:block;min-width:0;padding:2px 3px;font-size:6.5px;line-height:1.12;border-bottom:1px solid #e1e7e6}.pt-recommendation .pt-detail{display:block;padding:1px 0 0 8px}.pt-mode{font-size:6px;margin:1px 3px}.pt-sheet table{font-size:6px!important;table-layout:fixed!important;width:100%}.pt-sheet th,.pt-sheet td{font-size:6px!important;padding:2px!important;line-height:1.1;overflow-wrap:anywhere}.pt-sheet th:nth-child(1){width:27%}.pt-sheet th:nth-child(2){width:13%}.pt-sheet th:nth-child(3){width:13%}.pt-sheet th:nth-child(4){width:25%}.pt-sheet th:nth-child(5),.pt-sheet th:nth-child(6){width:11%}.pt-signatures{gap:5px;margin-top:4px;padding-top:4px;font-size:6.5px;line-height:1.2}.pt-signatures small{font-size:6px}.pt-continuation{display:none!important}.pt-preview{padding:8px!important}.pt-preview .pt-sheet{height:277mm!important;min-height:0!important}.pt-preview .pt-inner{min-height:0!important}.pt-preview #ptFitNotice{margin-bottom:5px}@media print{body.pt-printing> #ptPrintSurface{height:277mm!important;overflow:hidden!important;break-inside:avoid!important;page-break-inside:avoid!important}.pt-sheet{width:190mm!important;height:277mm!important;overflow:hidden!important}.pt-inner{position:absolute!important;top:0!important;left:0!important}.pt-form-grid,.pt-plan-grid{break-inside:avoid!important}.pt-continuation{display:none!important}}

/* Warm, readable one-page patient form based on the MA CLINIC paper reference. */
.pt-sheet{color:#33271f!important;font:8.2px Arial,sans-serif!important;background:#fff!important}
.pt-inner{display:flex;flex-direction:column;min-height:277mm!important;padding:2mm 1mm!important;box-sizing:border-box}
.pt-title{border-bottom:2px solid #b78a42;padding:0 2mm 2mm;margin-bottom:2mm!important;color:#563c2b!important}
.pt-title h1{font-size:17px!important;color:#563c2b;margin:1px 0!important}
.pt-title b{color:#9b7538;font-size:8px;letter-spacing:.35px}
.pt-times{border:0!important;border-bottom:1px solid #d8c8a9!important;padding:2mm!important;color:#49372a;font-size:8px!important}
.pt-personal{border:1px solid #cdb78d!important;background:#fffdf8;margin:2mm 0 2.5mm!important;padding:1.5mm 2mm!important}
.pt-personal h3{font-size:9px!important;color:#6a4c31;margin:0 0 1mm!important}
.pt-personal dl{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 5mm!important}
.pt-personal dl>div{display:grid;grid-template-columns:34mm minmax(0,1fr);align-items:baseline;border-bottom:1px dotted #d8c9ad;padding:1.1mm 0}
.pt-personal dt{font-size:7.3px!important;color:#594631}
.pt-personal dd{font-size:8px!important;color:#29221c;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;margin:0!important}
.pt-form-grid,.pt-plan-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2mm 2.5mm!important;align-items:stretch}
.pt-section{border:1px solid #d5c7ac!important;border-radius:1mm;margin:0!important;padding:0 0 1mm!important;break-inside:avoid}
.pt-section>h3{background:#f5efe3!important;border:0!important;border-bottom:1px solid #c5a46a!important;color:#563c2b!important;font-size:8.2px!important;line-height:1.2;margin:0 0 1mm!important;padding:1.4mm 2mm!important}
.pt-section>h3 small{color:#80673f!important;font-size:6.5px!important}
.pt-section .pt-line{grid-template-columns:30mm minmax(0,1fr)!important;font-size:7.6px!important;line-height:1.25;margin:1mm 0!important;padding:0 2mm!important}
.pt-vitals{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1.2mm!important;padding:1mm 2mm!important;font-size:7.2px!important}
.pt-flags,.pt-choice-row{gap:3mm!important;padding:1mm 2mm!important;font-size:7.2px!important}
.pt-choice{color:#93703a!important;font-size:9px!important}
.pt-choice.selected{color:#795523!important}
.pt-history-row{grid-template-columns:minmax(25mm,1fr) auto auto auto!important;gap:1.5mm!important;padding:1.3mm 2mm!important;border-color:#e9dfcd!important;font-size:7.3px!important}
.pt-history-row .pt-detail{grid-column:1/-1;padding-left:2mm;white-space:pre-wrap}
.pt-exam{grid-template-columns:1fr!important}
.pt-exam .pt-line{grid-template-columns:24mm minmax(0,1fr)!important}
.pt-plan-grid{margin-top:2mm!important}
.pt-plan-grid>.pt-section:first-child{grid-column:1/-1}
.pt-recommendations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 1mm}
.pt-recommendation{display:block;min-width:0;padding:1.2mm 1.5mm!important;font-size:7px!important;line-height:1.2!important;border-bottom:1px solid #eee5d5!important}
.pt-recommendation .pt-detail{display:block;padding:1mm 0 0 3mm;overflow-wrap:anywhere}
.pt-mode{font-size:6.8px!important;color:#765f3c;margin:1mm 2mm!important}
.pt-sheet table{font-size:6.8px!important;table-layout:fixed!important;width:100%}
.pt-sheet th{background:#f4ecdc!important;color:#513b28}
.pt-sheet th,.pt-sheet td{font-size:6.8px!important;padding:1mm!important;line-height:1.15;overflow-wrap:anywhere}
.pt-signatures{display:grid;grid-template-columns:1.2fr .75fr 1.2fr 1fr;align-items:stretch;gap:2mm!important;border-top:1.5px solid #b78a42!important;margin-top:auto!important;padding-top:2mm!important;font-size:7px!important;line-height:1.25!important;color:#443326}
.pt-signature{display:flex;flex-direction:column;gap:1mm;min-width:0}
.pt-signature b,.pt-stamp-box b{color:#60452d;font-size:7px}
.pt-signature small{font-size:6px;color:#72604b}
.pt-signature-line{margin-top:auto;border-top:1px solid #9d8a70;padding-top:1mm;color:#79684f}
.pt-stamp-box{min-height:23mm;border:1px dashed #a8864b;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:1mm;box-sizing:border-box;color:#765d38;text-align:center}
.pt-stamp-box img{display:block;max-width:100%;max-height:18mm;object-fit:contain}
@media print{
  .pt-sheet{width:190mm!important;height:277mm!important;min-height:277mm!important;overflow:hidden!important}
  .pt-inner{width:190mm!important;height:277mm!important;min-height:277mm!important;overflow:hidden!important}
  .pt-section,.pt-personal,.pt-signatures{break-inside:avoid!important;page-break-inside:avoid!important}
  .pt-continuation{display:none!important}
  .pt-sheet *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Sick Leave Form shares the PT Form's gold, white and black visual identity. */
.sl-document{color:#151515;background:#fff;border:1px solid #d6d0c4;padding:22px;max-width:100%;font-family:Arial,sans-serif}.sl-header{display:grid;grid-template-columns:1fr 2fr;align-items:center;border-bottom:2px solid #b18a3a;padding:0 0 14px}.sl-header>div:first-child strong{display:block;font-size:20px;letter-spacing:.3px;color:#ad812d}.sl-header>div:first-child span{display:block;font-size:9px;letter-spacing:1.3px;margin-top:3px}.sl-title{text-align:center}.sl-title h1{font-size:22px;margin:0}.sl-title p{margin:5px 0 0;color:#756338;font-size:10px}.sl-submission{display:grid;grid-template-columns:1.2fr .8fr 1.4fr 1fr;margin:10px 0;border-bottom:1px solid #222;padding-bottom:9px;font-size:11px}.sl-submission span{padding:4px 8px;border-right:1px solid #ddd}.sl-submission span:last-child{border:0}.sl-submission b{display:block;font-size:9px;color:#6c5728;margin-bottom:4px}.sl-employee .document-employee{border:1px solid #333;border-radius:0;padding:12px;margin-bottom:14px}.sl-employee .document-employee h3{font-size:11px;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid #b18a3a;padding-bottom:7px;margin-bottom:9px;color:#171717}.sl-employee .document-employee dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}.sl-employee .document-employee dt{font-size:9px;color:#765f2e}.sl-employee .document-employee dd{font-size:10px;color:#111}.sl-section{border:1px solid #ded9ce;padding:14px 16px;margin:12px 0}.sl-section>h2{display:flex;align-items:center;gap:9px;border-bottom:1px solid #c7b17c;padding-bottom:9px;font-size:13px;color:#111}.sl-section>h2 i{font-style:normal;color:#a67b29;font-size:10px}.sl-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sl-field{display:grid;gap:6px;font-size:11px}.sl-field>span{font-weight:600;color:#67532a}.sl-field input,.sl-field select,.sl-field textarea{width:100%;border:1px solid #d8d1c2;border-radius:4px;color:#111;background:white}.sl-field textarea{min-height:72px}.sl-field.sl-wide{grid-column:1/-1}.sl-total{margin-top:12px;padding:9px 12px;border-left:3px solid #b18a3a;background:#f7f4ec;font-size:11px}.sl-total strong{margin:0 6px;font-size:15px}.sl-total small{color:#666}.sl-approval{display:flex;align-items:center;gap:13px;padding:12px 2px;border-bottom:1px solid #222;font-size:11px}.sl-approval>b{font-size:11px;text-transform:uppercase;letter-spacing:.4px}.sl-status{font-weight:bold;text-transform:uppercase;padding:5px 10px;border:1px solid #b18a3a;color:#765c26}.sl-status.approved{background:#f4efdf}.sl-status.rejected{border-color:#222;color:#111}.sl-report{margin-left:auto;color:#5e5237}.sl-signature-row{display:grid;grid-template-columns:1fr 125px 1fr;gap:18px;align-items:end;margin:17px 0 8px;break-inside:avoid}.sl-signature{min-height:112px;display:flex;flex-direction:column;justify-content:flex-end}.sl-signature>b{font-size:11px}.sl-sign-image{height:62px;display:flex;align-items:flex-end}.sl-sign-image img{max-width:175px;max-height:58px;object-fit:contain;object-position:left bottom}.sl-signature>strong{font-size:11px}.sl-signature small,.sl-stamp small{font-size:9px;text-align:center;margin-top:5px}.sl-sign-line{height:55px;border-bottom:1px solid #222}.sl-stamp{display:grid;justify-items:center;align-content:end}.sl-stamp img{width:112px;height:112px;object-fit:contain}.sl-footer{display:flex;justify-content:space-between;border-top:1px solid #b18a3a;padding-top:7px;margin-top:12px;color:#6b572b;font-size:9px;letter-spacing:.5px}.sl-document .actions{margin-top:16px}.sl-document .btn.primary{background:#ad812d;border-color:#ad812d;color:#fff}
@media(max-width:700px){.sl-document{padding:14px}.sl-header{grid-template-columns:1fr 1.5fr}.sl-header>div:first-child strong{font-size:16px}.sl-title h1{font-size:18px}.sl-submission{grid-template-columns:1fr 1fr}.sl-submission span:nth-child(2){border-right:0}.sl-submission span:nth-child(n+3){border-top:1px solid #ddd}.sl-fields{grid-template-columns:1fr 1fr}.sl-employee .document-employee dl{grid-template-columns:repeat(2,minmax(0,1fr))}.sl-signature-row{grid-template-columns:1fr 86px 1fr;gap:8px}.sl-stamp img{width:80px;height:80px}.sl-report{margin-left:0}.sl-approval{flex-wrap:wrap}}
@media print{.sl-document{border:0;padding:0}.sl-document .sl-header,.sl-document .sl-submission,.sl-document .sl-section,.sl-document .sl-signature-row,.sl-document .sl-footer{break-inside:avoid}.sl-document .no-print{display:none!important}}
/* Sick leave recommendations, automatic day count, physician picker and matching print sheet. */
.sl-leave-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.sl-days-field{display:grid;gap:5px;align-content:center;min-height:60px;padding:8px 12px;border-left:3px solid #b18a3a;background:#f7f4ec}.sl-days-field>span{font-size:10px;font-weight:600;color:#67532a}.sl-days-field strong{font-size:18px}.sl-days-field small{font-size:9px;color:#666}.sl-recommendations{display:grid;gap:8px;margin:8px 0 14px}.sl-recommendation{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #ded9ce;border-radius:5px;background:#fff;font-size:12px;color:#171717}.sl-recommendation input{accent-color:#ad812d;width:16px;height:16px;margin:0;flex:0 0 auto}.sl-status-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.sl-status-row>strong{color:#755a22;font-size:13px}.sl-doctor-field{min-width:min(340px,50%)}.sl-signature-preview{display:flex;align-items:flex-end;gap:12px;min-height:58px;margin:8px 0 0 50%;border-bottom:1px solid #bbb}.sl-signature-preview img{max-width:180px;max-height:55px;object-fit:contain;object-position:left bottom}.sl-signature-preview small{font-size:9px;color:#6c6251}.sl-signature-row{display:grid;grid-template-columns:1fr 125px 1fr;gap:18px;align-items:end;margin:17px 0 8px;break-inside:avoid}.sl-signature{min-height:112px;display:flex;flex-direction:column;justify-content:flex-end}.sl-signature>b{font-size:11px}.sl-sign-image{height:62px;display:flex;align-items:flex-end}.sl-sign-image img{max-width:175px;max-height:58px;object-fit:contain;object-position:left bottom}.sl-signature>strong{font-size:11px}.sl-signature small,.sl-stamp small{font-size:9px;text-align:center;margin-top:5px}.sl-sign-line{height:55px;border-bottom:1px solid #222}.sl-stamp{display:grid;justify-items:center;align-content:end}.sl-stamp img{width:112px;height:112px;object-fit:contain}.sl-footer{display:flex;justify-content:space-between;border-top:1px solid #b18a3a;padding-top:7px;margin-top:12px;color:#6b572b;font-size:9px;letter-spacing:.5px}
#workflowPrintSurface .sl-paper{border:1px solid #252525;min-height:0;padding:8mm 8mm 6mm;position:relative;color:#111;background:#fff;font:11px Arial,sans-serif}#workflowPrintSurface .sl-head{display:grid;grid-template-columns:1fr 2fr;align-items:center;border-bottom:2px solid #b18a3a;padding-bottom:8px}#workflowPrintSurface .sl-brand{font-size:19px;font-weight:bold;letter-spacing:.4px}#workflowPrintSurface .sl-brand small{display:block;font-size:9px;letter-spacing:1.4px;margin-top:4px}#workflowPrintSurface .sl-brand em{font-style:normal;color:#b18a3a}#workflowPrintSurface .sl-heading{text-align:center}#workflowPrintSurface .sl-heading h1{font-size:21px;margin:0 0 3px}#workflowPrintSurface .sl-heading p{margin:0;color:#625634;font-size:9px}#workflowPrintSurface .sl-meta{display:grid;grid-template-columns:1.2fr .8fr 1.4fr 1fr;margin:9px 0 10px;border-bottom:1px solid #111;padding-bottom:7px}#workflowPrintSurface .sl-meta div{border-right:1px solid #ddd;padding:2px 7px}#workflowPrintSurface .sl-meta div:last-child{border:0}#workflowPrintSurface .sl-meta b{display:inline-block;margin-right:6px;font-weight:700}#workflowPrintSurface .sl-employees{border:1px solid #333;padding:7px 8px 4px;margin-bottom:10px}#workflowPrintSurface .sl-employees h2{font-size:11px;margin:0 0 6px;text-transform:uppercase;letter-spacing:.45px;border-bottom:1px solid #b18a3a;padding-bottom:5px}#workflowPrintSurface .sl-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}#workflowPrintSurface .sl-pair{display:grid;grid-template-columns:112px 1fr;min-height:21px;align-items:center;border-bottom:1px dotted #aaa;padding:2px 0}#workflowPrintSurface .sl-pair b{font-size:9px}#workflowPrintSurface .sl-pair span{font-size:10px;overflow-wrap:anywhere}#workflowPrintSurface .sl-dates{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:4px 7px 7px}#workflowPrintSurface .sl-date{border-bottom:1px dotted #777;padding:6px 0;font-size:10px}#workflowPrintSurface .sl-date b{display:block;color:#66552e;font-size:9px;margin-bottom:5px}#workflowPrintSurface .sl-print-review{display:grid;grid-template-columns:1fr;gap:5px}#workflowPrintSurface .sl-choice{display:flex;align-items:center;gap:8px;min-height:25px;border-bottom:1px solid #ddd;padding:4px;font-size:10px}#workflowPrintSurface .sl-choice .box{width:14px;height:14px;border:1px solid #222;display:inline-flex;align-items:center;justify-content:center;font-weight:bold;flex:0 0 14px}#workflowPrintSurface .sl-print-status{border-top:2px solid #222;padding-top:6px;margin:10px 0 3px;font-size:11px;text-transform:uppercase}#workflowPrintSurface .sl-print-status h2{font-size:11px;margin:0}#workflowPrintSurface .sl-print-status-value{display:flex;gap:20px;align-items:center;border-bottom:1px dotted #777;padding:7px;font-size:10px}#workflowPrintSurface .sl-signs{display:grid;grid-template-columns:1fr 125px 1fr;gap:15px;align-items:end;border-top:1px solid #222;padding-top:10px;margin-top:14px;break-inside:avoid}#workflowPrintSurface .sl-sign{min-height:92px;display:flex;flex-direction:column;justify-content:flex-end}#workflowPrintSurface .sl-sign b{font-size:10px}#workflowPrintSurface .sl-sign img{max-width:150px;max-height:48px;object-fit:contain;object-position:left bottom}#workflowPrintSurface .sl-line{height:46px;border-bottom:1px solid #222}#workflowPrintSurface .sl-sign small{text-align:center;font-size:9px;margin-top:4px}#workflowPrintSurface .sl-stamp{width:118px;height:118px;display:flex;justify-content:center;align-items:center}#workflowPrintSurface .sl-stamp img{max-width:100%;max-height:100%;object-fit:contain}#workflowPrintSurface .sl-foot{display:flex;justify-content:space-between;border-top:1px solid #b18a3a;margin-top:12px;padding-top:6px;color:#63552f;font-size:8px;letter-spacing:.6px}
@media(max-width:700px){.sl-leave-fields{grid-template-columns:1fr 1fr}.sl-days-field{grid-column:1/-1}.sl-status-row{align-items:flex-start;flex-direction:column}.sl-doctor-field{min-width:100%;width:100%}.sl-signature-preview{margin-left:0}.sl-signature-row{grid-template-columns:1fr 86px 1fr;gap:8px}.sl-stamp img{width:80px;height:80px}}
@media print{.sl-document .no-print{display:none!important}.sl-document,.sl-section,.sl-signature-row{break-inside:avoid}#workflowPrintSurface .sl-paper{break-inside:avoid}}
/* Sick leave approval line: physician, matching signature, clinic stamp at the right edge. */
.sl-approved-statement{margin:0 0 12px;color:#171717;font-size:12px;font-weight:700}.sl-approval-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,1fr) 120px;gap:16px;align-items:end}.sl-doctor-field{min-width:0;width:100%}.sl-doctor-control{display:flex;align-items:center;gap:8px}.sl-doctor-control>b{font-size:12px;color:#111}.sl-doctor-control select{flex:1}.sl-approval-row .sl-signature-preview{display:grid;grid-template-columns:1fr;gap:5px;align-content:end;min-height:66px;margin:0;padding:0 4px 5px;border-bottom:1px dotted #777}.sl-approval-row .sl-signature-preview>span,.sl-status-stamp>span{font-size:9px;color:#67532a}.sl-approval-row .sl-signature-preview img{max-width:170px;max-height:42px;object-fit:contain;object-position:left bottom}.sl-status-stamp{display:grid;justify-items:end;align-content:end;gap:5px}.sl-status-stamp>span{justify-self:center}.sl-status-stamp img{width:96px;height:96px;object-fit:contain}.sl-print-approval{grid-template-columns:minmax(140px,1fr) minmax(150px,1fr) 108px}.sl-print-doctor{border-bottom:1px dotted #777}
@media(max-width:700px){.sl-approval-row{grid-template-columns:1fr 1fr}.sl-doctor-field{grid-column:1/-1}.sl-status-stamp{justify-items:center}.sl-status-stamp img{width:78px;height:78px}}
/* Sick leave approval: keep the physician name, signature and stamp easy to read. */
.sl-approval-row{grid-template-columns:minmax(230px,1.05fr) minmax(220px,1fr) 150px;gap:22px;align-items:center}
.sl-doctor-control select{min-height:48px;font-size:15px;font-weight:600;color:#111}
.sl-selected-doctor{display:block;margin-top:8px;padding:8px 10px;border-left:3px solid #ad812d;background:#f7f4ec;color:#111;font-size:15px;letter-spacing:.1px}
.sl-approval-row .sl-signature-preview{min-height:112px;align-content:center;padding:9px 10px;border:1px solid #d8d1c2;border-bottom:2px solid #ad812d;background:#fff}
.sl-approval-row .sl-signature-preview>span,.sl-status-stamp>span{font-size:11px;color:#67532a;font-weight:600}
.sl-approval-row .sl-signature-preview img{display:block;max-width:100%;width:240px;height:76px;max-height:76px;object-fit:contain;object-position:left center}
.sl-approval-row .sl-signature-preview .sl-sign-line{display:block;width:100%;height:60px;border-bottom:1px solid #555}
.sl-status-stamp{min-height:132px;justify-items:center;align-content:center;padding:8px;border-left:1px solid #e5dfd3}
.sl-status-stamp img{width:132px;height:132px;object-fit:contain}
.referral-catalogs .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.referral-catalogs textarea{min-height:230px;font-size:13px;line-height:1.55}
@media(max-width:700px){.sl-approval-row{grid-template-columns:1fr 1fr;gap:14px}.sl-doctor-field{grid-column:1/-1}.sl-approval-row .sl-signature-preview{min-height:108px}.sl-approval-row .sl-signature-preview img{height:70px}.sl-status-stamp{min-height:108px;border-left:0;border-top:1px solid #e5dfd3}.sl-status-stamp img{width:112px;height:112px}.referral-catalogs .fields{grid-template-columns:1fr}}
.picker-field{position:relative;z-index:2}.picker-field:focus-within{z-index:40}.picker-control{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:4px}.picker-control input{min-width:0}.picker-toggle{border:1px solid #cbd6d8;border-radius:8px;background:#fff;color:#19313c;font:inherit;cursor:pointer}.picker-options{position:absolute;top:calc(100% - 1px);left:0;right:0;max-height:250px;overflow:auto;background:#fff;border:1px solid #cbd6d8;border-radius:0 0 8px 8px;box-shadow:0 10px 26px #17323b30;z-index:60;padding:4px}.picker-options[hidden]{display:none}.picker-option{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eef1f1;background:#fff;text-align:left;color:#19313c;cursor:pointer;font:inherit}.picker-option:hover,.picker-option:focus{background:#edf6f5}.picker-no-match{padding:12px;color:#64777d;font-size:13px}.picker-option[hidden]{display:none}
/* MA CLINIC Ambulance Dispatch form */
.dispatch-form{color:#171717}.dispatch-brand{display:flex;align-items:center;gap:18px;padding:14px 18px;margin:0 0 18px;background:#171717;border-left:5px solid #b8a15c;border-radius:10px;color:#fff}.dispatch-brand img{display:block;width:190px;height:72px;object-fit:contain;background:#fff;border-radius:4px}.dispatch-brand strong,.dispatch-brand span{display:block;letter-spacing:1.4px}.dispatch-brand strong{font-size:12px;color:#d5c184}.dispatch-brand span{margin-top:5px;font-size:16px;font-weight:700}.dispatch-form>.subsection{background:#fff;border:1px solid #e2dccb;padding:16px;margin-bottom:14px}.dispatch-form>.subsection>h3{margin:-16px -16px 16px;padding:11px 14px;background:#191919;border-left:4px solid #b9a15c;color:#fff;font-size:12px;letter-spacing:1px}.dispatch-form .field>span{color:#37342d}.dispatch-form input:focus,.dispatch-form textarea:focus{outline:2px solid #c4ae70;outline-offset:1px}.dispatch-visit{max-width:460px;margin-bottom:14px}.dispatch-table-wrap{overflow:auto;border:1px solid #d9d2bf;border-radius:7px}.dispatch-times{width:100%;table-layout:fixed;border-collapse:collapse}.dispatch-times th{padding:11px 14px;background:#eee8d8;color:#1b1b1b;border-bottom:2px solid #b9a15c;text-align:left;font-size:12px;letter-spacing:.3px}.dispatch-times th:first-child,.dispatch-times td:first-child{width:20%}.dispatch-times td{padding:6px 8px;border-bottom:1px solid #ddd7c8}.dispatch-times tr:last-child td{border-bottom:0}.dispatch-times td:first-child{background:#f7f4ea;border-right:1px solid #ddd7c8}.dispatch-times input,.dispatch-times textarea{display:block;width:100%;min-height:38px;padding:8px 10px;border:1px solid #ded9ca;border-radius:5px;background:#fff;color:#171717;font-size:13px}.dispatch-times textarea{resize:vertical;min-height:38px;line-height:1.4}.dispatch-form .picker-control{position:relative;display:block}.dispatch-form .picker-control input{height:42px;padding-right:45px;border-color:#d8d3c6;border-radius:7px}.dispatch-form .picker-toggle{position:absolute;right:3px;top:3px;width:36px;height:36px;border:0;border-left:1px solid #e1dccf;border-radius:0 5px 5px 0;background:#faf8f1;color:#755e24;font-size:17px;transition:background .15s,color .15s}.dispatch-form .picker-toggle:hover{background:#efe8d4;color:#171717}.picker-options{scrollbar-width:thin;scrollbar-color:#b9a15c #f5f3ed}.picker-option{padding:10px 12px;border-bottom:1px solid #efede7;transition:background-color .12s,color .12s}.picker-option:hover,.picker-option:focus{background:#f3eedf;color:#171717}.dispatch-form>.actions{padding-top:6px}@media(max-width:650px){.dispatch-brand{gap:11px;padding:11px}.dispatch-brand img{width:125px;height:54px}.dispatch-brand span{font-size:13px}.dispatch-times th:first-child,.dispatch-times td:first-child{width:28%}.dispatch-times th,.dispatch-times td{padding:5px}}
.dispatch-times th{text-align:center}.dispatch-times td:first-child input{text-align:center;font-variant-numeric:tabular-nums;font-weight:600;color:#665323}.dispatch-times td:last-child textarea{text-align:left}

/* MA CLINIC visual identity: white surfaces, restrained gold accents, charcoal text. */
:root{--ink:#25241f;--muted:#706e66;--gold:#b49a59;--teal:#a88943;--line:#e8e1d2;--bg:#fff;color-scheme:light}
body{background:#fff;color:var(--ink)}
aside{background:#fff;color:#33312a;border-right:1px solid #eee7d8;box-shadow:none}
.brand{color:#24231f}
.brand>b{background:#b49a59;color:#171715;border-radius:8px}
.brand small{color:#706b5e}
nav button{color:#4d4a42;border-radius:8px;transition:background-color .15s,color .15s}
nav button.active,nav button:hover{background:#faf7ef;color:#24231f}
nav button.active{box-shadow:inset 3px 0 #b49a59}
.side-note{color:#777267}
main{background:#fff}
.notice{background:#fbf8f0;border-color:#e9dfc5;color:#63552f}
.card{background:#fff;border-color:#e8e1d2;box-shadow:0 2px 10px #5d4b2208}
.stat{border-top-color:#b49a59}
.btn{border-color:#e2dccf;color:#282721;background:#fff;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.btn:hover{border-color:#b49a59;background:#fcfaf5}
.btn.primary,.btn.teal{background:#ad914b;border-color:#ad914b;color:#fff}
.btn.primary:hover,.btn.teal:hover{background:#957a39;border-color:#957a39}
.pill{background:#f5f0e3;color:#665323}
.tabs button.active{background:#f5f0e3;border-color:#c9b77e;color:#51401c}
input,select,textarea{border-color:#ded8ca;background:#fff;color:#25241f;accent-color:#ad914b}
input:focus,select:focus,textarea:focus{outline:2px solid #c5ae70;outline-offset:1px;border-color:#b49a59}
table th{background:#f7f3e9;color:#5a4b27}
table td,table th{border-color:#e8e1d2}
dialog{background:#fff;color:#25241f;box-shadow:0 18px 50px #17150e26}
.dialog-head{background:#fff;border-bottom:1px solid #e8e1d2}
.subsection{background:#fff;border-color:#e8e1d2}
.subsection>h3{color:#292821;border-bottom-color:#d8c591}
.rolelabel{color:#8a6d2d}
.hint,.duration,.patient-summary,.visit-team-summary{background:#fbf8f0;color:#4d4636;border-color:#e9dfc5}
.patient-summary summary{color:#806729}
.medical-history-item,.medication-editor{background:#fff;border-color:#e8e1d2}
.er-order{background:#fbf8f0;border-color:#e6dcc2}
.audit{border-left-color:#c5ae70}
.status-note,.summary,.field>span{color:#706b5e}
.clinical-author select,.visit-team select{border-color:#d6c99f}
.picker-control input,.picker-toggle{border-color:#ded8ca;color:#282721}
.picker-toggle:hover{background:#f5f0e3;color:#24231f}
.picker-options{border-color:#d7c79d;box-shadow:0 10px 26px #51431e24}
.picker-option{color:#25241f;border-bottom-color:#eee8da}
.picker-option:hover,.picker-option:focus{background:#f7f2e5;color:#25241f}
#toast{background:#25241f;border-left:4px solid #b49a59;color:#fff;box-shadow:0 12px 36px #17150e35}
#sheetBody .subsection{background:#fff;border-color:#e8e1d2;border-top:2px solid #c7b477}
#sheetBody .subsection>h3{background:#f8f4e9;border-bottom:1px solid #e8dfca;color:#282721}
#sheetBody .tabs button.active{background:#f5f0e3;border-color:#c9b77e;color:#51401c}
#sheetBody input:focus,#sheetBody select:focus,#sheetBody textarea:focus{outline-color:#b49a59}
#sheetBody .clinical-error{background:#fff1ee;border-color:#d88070;color:#963a2c}
.clinic-print-brand,.clinic-print-header{color:#25241f}
.pt-preview{background:#fff}
.pt-sheet{color:#25241f}
.pt-title,.pt-title h1,.pt-title b,.pt-personal h3,.pt-section>h3,.pt-signature b,.pt-stamp-box b{color:#25241f!important}
.pt-section>h3{background:#f7f3e9!important;border-bottom-color:#c7b477!important}
.pt-personal,.pt-section{border-color:#e5ddca!important;background:#fff!important}
.pt-times,.pt-signatures{border-color:#b49a59!important;color:#25241f!important}
.pt-sheet th{background:#f7f3e9!important;color:#51401c!important}
.pt-choice,.pt-choice.selected,.pt-mode,.pt-signature small{color:#78602b!important}
.pt-stamp-box{border-color:#b49a59!important;color:#78602b!important}
.sl-document,.sl-paper{background:#fff!important;color:#25241f!important}
.sl-header,.sl-head{border-bottom-color:#b49a59!important}
.sl-header>div:first-child strong,.sl-brand em{color:#a88943!important}
.sl-section,.sl-employee .document-employee{background:#fff!important;border-color:#e5ddca!important}
.sl-section>h2,.sl-employee .document-employee h3{color:#25241f!important;border-color:#c7b477!important}
.sl-field>span,.sl-submission b,.sl-footer,.sl-foot{color:#6c5828!important}
.sl-total,.sl-days-field,.sl-selected-doctor{background:#f8f4e9!important;border-color:#b49a59!important}
.sl-recommendation{background:#fff!important;border-color:#e5ddca!important}
.sl-recommendation input{accent-color:#ad914b}
.sl-footer,.sl-foot{border-color:#b49a59!important}
@media print{
  body{background:#fff!important;color:#25241f!important}
  .subsection,.card,.sl-section,.pt-section{background:#fff!important;border-color:#e5ddca!important}
  .subsection>h3,.pt-section>h3,.sl-section>h2,table th{background:#f7f3e9!important;color:#25241f!important}
  table th,table td{border-color:#d9cfb6!important}
}

/* MA CLINIC: brighter gold, stronger black accents, white remains the main canvas. */
:root{--gold:#c5a03e;--teal:#a87e1e;--ink:#1b1a17;--muted:#6d6b64;--line:#e5dece;--bg:#fff}
.brand>b{background:#171715;color:#d8b452;border:2px solid #c5a03e;box-shadow:0 2px 8px #17171522}
.brand{gap:11px;font-size:18px}
.brand>div{color:#171715;letter-spacing:.2px;white-space:nowrap}
.brand small{color:#706b5e;font-size:8px;letter-spacing:1px;white-space:nowrap}
nav button.active,nav button:hover{background:#191917;color:#fff}
nav button.active{box-shadow:inset 4px 0 #d1ac49}
.btn.primary,.btn.teal{background:#c5a03e;border-color:#9f781d;color:#171715;font-weight:700}
.btn.primary:hover,.btn.teal:hover{background:#191917;border-color:#191917;color:#f1d27e}
.btn:hover{border-color:#c5a03e;box-shadow:0 2px 8px #8b6b1d18}
h1,h2,h3{color:#181816}
.heading h1{letter-spacing:-.45px}
.heading h2,h2{border-bottom:2px solid #c5a03e;padding-bottom:7px}
.stat{border-top:4px solid #c5a03e;box-shadow:0 3px 12px #1717150c}
.notice{border-left:5px solid #c5a03e;background:#fbf6e9;color:#4d4020}
.subsection{border-color:#d8c99e;box-shadow:0 2px 8px #17171508}
.subsection>h3{background:#191917;color:#fff;border-left:5px solid #c5a03e;letter-spacing:.45px}
.tabs button.active{background:#191917;border-color:#c5a03e;color:#fff}
.pill{background:#f5edda;color:#55400d;border:1px solid #d9bf79}
table th{background:#cfaa49;color:#171715;border-color:#b48b2e}
table td,table th{border-bottom-color:#e2d7bb}
input:focus,select:focus,textarea:focus{outline:2px solid #c5a03e;border-color:#9f781d}
.picker-toggle:hover{background:#ead8a5;color:#171715}
.picker-options{border-color:#c5a03e}
.picker-option:hover,.picker-option:focus{background:#f4ebd2;color:#171715}
#toast{background:#191917;border-left:5px solid #c5a03e;color:#fff}
.dispatch-brand{background:#191917;border-left:7px solid #c5a03e;color:#fff;box-shadow:0 4px 12px #17171520}
.dispatch-brand-mark{width:58px;height:58px;display:grid;place-items:center;flex:0 0 58px;background:#c5a03e;color:#171715;border:2px solid #f2d780;border-radius:12px;font-size:20px;font-weight:800;letter-spacing:1px}
.dispatch-brand strong{font-size:15px!important;color:#f2d780!important;letter-spacing:1.7px!important}
.dispatch-brand span{color:#fff}
.dispatch-form>.subsection>h3,#sheetBody .subsection>h3{background:#191917;color:#fff;border-left:5px solid #c5a03e}
.dispatch-times th{background:#cfaa49;color:#171715;border-bottom-color:#9f781d}
.dispatch-times td:first-child{background:#fbf7ec}
.pt-section>h3{background:#191917!important;color:#fff!important;border-left:4px solid #c5a03e!important;border-bottom-color:#c5a03e!important}
.pt-personal h3,.pt-signature b,.pt-stamp-box b{color:#201e19!important}
.pt-sheet th{background:#cfaa49!important;color:#171715!important}
.pt-signatures{border-color:#c5a03e!important}
.sl-section>h2{background:#191917!important;color:#fff!important;border-left:4px solid #c5a03e!important;padding:9px 12px!important}
.sl-section>h2 i{color:#f1d27e!important}
.sl-header,.sl-head,.sl-footer,.sl-foot{border-color:#c5a03e!important}
.sl-header>div:first-child strong,.sl-brand em{color:#a87e1e!important}
.clinic-print-brand{color:#191917!important}
@media print{
  .subsection>h3,.pt-section>h3,.sl-section>h2,table th{background:#191917!important;color:#fff!important;border-left:4px solid #c5a03e!important}
  .clinic-print-theme h2{background:#191917!important;color:#fff!important}
  .pt-sheet th,.dispatch-times th{background:#cfaa49!important;color:#171715!important}
}

/* MA CLINIC approved crescent and ECG wordmark in light and dark variants. */
.brand{padding:0 8px 30px;min-height:76px;justify-content:center}
.brand-logo{display:block;width:100%;max-width:204px;height:auto;object-fit:contain}
.dispatch-brand{background:#333630!important;border-left-color:#c5a03e!important;color:#fff!important;gap:18px}
.dispatch-brand-logo{display:block;width:245px!important;max-width:68%;height:auto!important;max-height:58px;object-fit:contain;background:#333630!important;border-radius:3px}
.dispatch-brand-caption{margin-left:auto;color:#f2d780;font-weight:700;font-size:12px;letter-spacing:1.3px;text-align:right}
#sheetBody .clinic-screen-logo{display:block;width:180px;height:auto;max-height:46px;object-fit:contain}
#sheetBody .sl-header .clinic-screen-logo{width:185px;max-height:46px}
.pt-title .pt-print-brand{display:flex;align-items:center;gap:12px}
.pt-print-brand img{display:block;width:155px;height:auto;object-fit:contain}
.pt-print-brand h1{margin:0!important;font-size:20px!important;white-space:nowrap}
.clinic-print-header .clinic-print-logo{width:215px;height:auto;object-fit:contain}
.sl-head .clinic-print-logo{width:190px;height:auto;object-fit:contain}
#sheetBody .clinic-handover-brand{display:flex;align-items:center;min-height:58px;padding:8px 0;border-bottom:2px solid #c5a03e;margin-bottom:14px}
#sheetBody .clinic-handover-brand img{display:block;width:180px;height:auto;object-fit:contain}
@media(max-width:650px){
  .brand{min-height:48px;padding:0 0 12px;justify-content:flex-start}
  .brand-logo{max-width:166px}
  .dispatch-brand{flex-wrap:wrap;gap:10px;padding:11px!important}
  .dispatch-brand-logo{width:190px!important;max-width:64%;max-height:44px}
  .dispatch-brand-caption{font-size:10px;letter-spacing:.8px}
}


/* Clinic stamp in every form preview and printable sheet. */
.clinic-form-stamp-preview{display:flex;justify-content:flex-end;align-items:flex-end;gap:10px;min-height:94px;margin:14px 0 4px;padding:10px 0 4px;border-top:1px solid #e5dece;color:#6b5a31;font-size:11px;font-weight:600;break-inside:avoid}
.clinic-form-stamp-preview img{display:block;width:88px;height:88px;object-fit:contain}
.dispatch-stamp-preview{border-top:1px solid #d8c99e}
.dispatch-stamp-preview img{width:100px;height:100px}
.linked-form-stamp{margin-top:12px}
@media print{.clinic-form-stamp-preview{break-inside:avoid;page-break-inside:avoid}.clinic-form-stamp-preview img{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.dispatch-validation-message{margin:12px 0;padding:12px 16px;border:1px solid #b42318;border-left:5px solid #b42318;border-radius:10px;background:#fff3f1;color:#7a271a;font-weight:600}.dispatch-validation-message ul{margin:8px 0 0;padding-left:22px;font-weight:500}.dispatch-validation-message li{margin:4px 0}.dispatch-invalid{outline:2px solid #b42318!important;outline-offset:1px;border-radius:5px}.dispatch-times .dispatch-invalid{outline:2px solid #b42318!important}

