/* People records: compact directories and clear horizontal sections. */
.people-workspace .person-banner{background:#176c69;color:#fff;border:0;border-radius:7px;display:flex;justify-content:space-between;gap:24px;padding:25px 28px}
.people-workspace .person-banner .person,.people-workspace .person-banner .person>div{min-width:0}.people-workspace .person-banner .person>div{overflow-wrap:anywhere}.people-workspace .person-banner .avatar{flex-shrink:0}
.people-workspace .person-banner h2{color:#fff;font-size:1.8rem;line-height:1.25;margin:0 0 8px}.people-workspace .person-banner p{margin:5px 0;color:#fff}.people-workspace .person-banner .muted{color:#e0f3f1}.people-workspace .person-banner .avatar{background:#edf8f5;color:#176c69;border:0}.people-workspace .person-banner code{color:#fff;overflow-wrap:anywhere}
.people-workspace .record-tabs{background:#fff;border-bottom:2px solid #dce8e5;padding:0 12px;margin:0 0 22px;gap:3px;overflow-x:auto;flex-wrap:nowrap}.people-workspace .record-tabs a{border-radius:0;padding:15px 18px;white-space:nowrap;border-bottom:3px solid transparent;color:#305753}.people-workspace .record-tabs a[aria-selected=true]{background:#eff7f5;border-bottom-color:#bb5064;color:#123f3c}
.people-workspace .record-name{color:#176c69;font-weight:650}.people-workspace .toolbar{flex-wrap:wrap;align-items:end;gap:12px}.people-workspace .toolbar label{min-width:130px}.people-workspace .toolbar .search-field{flex:1;min-width:210px}.people-workspace .toolbar select,.people-workspace .toolbar input{min-height:40px}.people-workspace .operation-record{border:1px solid #dee8e5;border-radius:5px;margin:12px 0;padding:0 16px}.people-workspace .operation-record>summary{padding:16px 0;color:#174f4d}.people-workspace .operation-record[open]{padding-bottom:16px}.people-workspace .operation-record[hidden]{display:none}.people-workspace .note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.people-workspace .person-history td{vertical-align:top}.people-workspace .child-facts dd{overflow-wrap:anywhere}.people-workspace :is(a,button,input,select,textarea):focus-visible{outline:3px solid #164f7a;outline-offset:3px}
@media(max-width:700px){.people-workspace .person-banner{flex-direction:column;padding:20px;gap:10px}.people-workspace .person-banner h2{font-size:1.45rem}.people-workspace .record-tabs{padding:0}.people-workspace .record-tabs a{padding:12px}.people-workspace .toolbar label{flex:1}.people-workspace .person-banner .person{align-items:flex-start}.people-workspace .operation-record{padding:0 12px}}
@media print{.people-workspace .person-banner{background:#fff;color:#000;border:1px solid #777}.people-workspace .person-banner :is(h2,p,code,.muted){color:#000}.people-workspace .record-tabs,.people-workspace form,.people-workspace .toolbar{display:none}.people-workspace [data-record-panel]{display:block!important}.people-workspace .note-text{break-inside:avoid}}

/* The reference uses a light canvas, teal headings, fine rules and compact tabs. */
.people-workspace .person-banner{background:#fff;color:#203350;border-bottom:1px solid #d9e8e7;border-radius:0;padding:22px 12px}
.people-workspace .person-banner h2{color:#147d82;font-size:1.9rem}.people-workspace .person-banner :is(p,code,.muted){color:#33475f}
.people-workspace .person-banner .avatar{background:#e7f6f5;color:#147d82}.people-workspace .person-banner .button{background:#edf8f7;color:#155c60;border-color:#d5ebe8}
.people-workspace .record-tabs{padding:0;background:transparent}.people-workspace .record-tabs a{padding:13px 14px;font-size:.88rem}.people-workspace .record-tabs a[aria-selected=true]{background:transparent;border-bottom-color:#16858a;color:#126c71}
.people-workspace .panel{box-shadow:none;border-color:#e2e9ed}.people-workspace h2{color:#147d82}.people-workspace .notice{border-left:4px solid #c04778;background:#fbf7fa;color:#293e57}
.people-workspace .primary{background:#167b80;color:#fff;border-color:#167b80;border-radius:22px}.people-workspace .primary:hover{background:#115e62}.people-workspace thead th{color:#273e58;border-bottom:1px solid #cbdcde}
.nsn-overlay{background:#34436c;min-height:100vh;padding:5vh max(16px,5vw);color:#273e58}.nsn-window{max-width:1250px;margin:auto;padding:30px;background:#fff;border-radius:8px}.nsn-window h1{font-size:1.7rem;margin-top:12px}.nsn-window label{display:block;margin:12px 0}.nsn-window input:not([type=checkbox]){width:100%}.nsn-window fieldset{min-width:0}.nsn-result{padding:24px 0;border-bottom:1px solid #d5e4e5;margin-bottom:24px}.nsn-result .child-facts{margin:22px 0}.nsn-window .notice{padding:18px}.nsn-window .section-heading{flex-wrap:wrap;gap:12px}
@media(max-width:700px){.people-workspace .person-banner h2{font-size:1.45rem}.nsn-overlay{padding:12px}.nsn-window{padding:18px}.nsn-window .child-facts{grid-template-columns:1fr}.nsn-window .table-wrap{max-width:100%;overflow:auto}}
@media print{.nsn-overlay{padding:0;background:white}.nsn-window{padding:0}.nsn-window form,.nsn-window header a{display:none}}
.people-workspace .timetable-grid caption{text-align:left;color:#147d82;font-weight:650;padding:14px 0}.people-workspace .timetable-grid td,.people-workspace .timetable-grid th{padding:12px 10px;white-space:nowrap}.people-workspace .timetable-grid tbody th{background:#fff;font-weight:500}.people-workspace .timetable-grid tbody tr:nth-child(2){background:#f3fafa}
.entry-page{max-width:1120px;margin:0 auto;padding:28px 24px 64px;color:#294557}.entry-header{position:relative;padding:12px 0 22px}.entry-header img{float:right}.entry-header h1{color:#117f89;margin:22px 0 5px}.entry-nav{display:flex;gap:22px;flex-wrap:wrap;border-bottom:2px solid #d8e7e8;padding:12px 0;margin-bottom:22px}.entry-form{background:#fff;border:1px solid #dce5e8;border-radius:8px;padding:0 28px}.entry-section{padding:24px 0;border-bottom:1px solid #dce5e8}.entry-section h2{color:#117f89;font-size:1.2rem;margin-bottom:20px}.entry-section h3{color:#117f89}.entry-section .form-grid{gap:18px}.entry-options{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0;padding:16px;border:1px solid #dce5e8}.entry-options legend{font-weight:600}.entry-check{border-top:1px solid #dce5e8;padding:18px 0}.entry-actions{display:flex;justify-content:flex-end;gap:16px;padding:24px 0}.entry-errors.validation-summary-valid{display:none}.entry-errors.validation-summary-errors{margin-top:24px;padding:16px;background:#fff5f5;border-left:4px solid #b32950}.entry-errors li{margin:8px 0}.entry-section input,.entry-section select,.entry-section textarea{max-width:100%}@media(max-width:680px){.entry-page{padding:14px 12px 40px}.entry-form{padding:0 16px}.entry-section .form-grid.three{grid-template-columns:1fr}.entry-header img{width:140px}.entry-nav{gap:14px}.entry-actions{justify-content:space-between}}

.review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.review-item{margin:0}.review-item h2{font-size:1.15rem;margin:4px 0}.review-item h3{font-size:1rem}.review-item .section-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}.review-item p{overflow-wrap:anywhere}.review-item[data-review-status="Expired"]{border-left:4px solid #a42b44}.review-item[data-review-status="Missing"],.review-item[data-review-status="Needs review"]{border-left:4px solid #ad791f}.review-item[data-review-status="Due soon"]{border-left:4px solid #16858a}.review-pagination{margin:22px 0}@media(max-width:700px){.review-list{grid-template-columns:1fr}}@media print{.review-filters,.review-pagination,.review-entry-link,.review-item a{display:none}.review-list{display:block}.review-item{break-inside:avoid;margin-bottom:12px}.review-page{max-width:none;padding:0}}
/* Entry feedback stays adjacent to the affected controls and is keyboard reachable. */
.entry-field-error,.entry-form .field-validation-error{display:block;color:#a41d4e;font-size:.9rem;margin-top:.35rem}
.entry-form [aria-invalid="true"]{border-color:#b52b57;outline-color:#b52b57}
.entry-help{padding:.8rem 1rem;background:#eef7f7;border-left:3px solid #167b83;font-size:.92rem}
.entry-errors h2{font-size:1.1rem;margin-top:0}.entry-errors a{color:#8b2045;text-decoration:underline}
.entry-errors:focus,[data-entry-review]:focus{outline:2px solid #167b83;outline-offset:3px}
.entry-form [hidden]{display:none!important}
.roll-analysis{max-width:1440px}.roll-analysis .toolbar,.history-report .toolbar{flex-wrap:wrap}.roll-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.roll-metrics article{margin:0 0 16px}.roll-metrics strong{display:block;font-size:1.9rem;color:#126f79;margin-top:8px}.roll-chart{display:block;width:100%;height:auto;min-height:150px}.roll-chart text{font-size:13px;fill:#294557}.roll-grid{stroke:#dce5e8;stroke-width:1}.roll-limit{stroke:#b12c63;stroke-width:2;stroke-dasharray:8 5}.roll-booked{stroke:#087881;stroke-width:3;fill:none}.roll-actual{stroke:#bc6221;stroke-width:3;stroke-dasharray:5 3;fill:none}.roll-key{font-weight:650;margin-right:12px}.roll-key.booked{color:#087881}.roll-key.actual{color:#a34b11}.roll-exceeded{background:#fff1f3}.roll-exceeded strong{display:block;color:#9d2247;font-size:.8rem}.roll-warnings{border-left:4px solid #b87322}.roll-analysis .table-wrap,.history-report .table-wrap{max-width:100%;overflow-x:auto}.roll-detail{font-variant-numeric:tabular-nums}.roll-analysis td,.history-report td{vertical-align:top}.roll-analysis .panel,.history-report .panel{min-width:0}
@media(max-width:700px){.roll-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.roll-metrics strong{font-size:1.5rem}.roll-analysis .entry-header img,.history-report .entry-header img{width:135px}}
@media print{.roll-analysis,.history-report{max-width:none;padding:0;font-size:10pt}.roll-analysis nav,.roll-analysis form,.history-report form,.roll-analysis .entry-header>a,.history-report .entry-header>a{display:none}.roll-analysis .table-wrap,.history-report .table-wrap{overflow:visible}.roll-analysis table,.history-report table{font-size:9pt;min-width:0}.roll-analysis td,.roll-analysis th,.history-report td,.history-report th{padding:5px;white-space:normal}.roll-chart{max-height:230px}.roll-analysis .panel,.history-report .panel{break-inside:auto}.roll-analysis tr,.history-report tr{break-inside:avoid}.roll-metrics article{break-inside:avoid}}

/* October requirements: larger reading size and compact, explicit record actions. */
.people-workspace{font-size:16px}.people-workspace :is(input,select,textarea,button,.button){font-size:1rem}.people-workspace .record-tabs a{font-size:1rem;padding:15px 18px}.people-workspace .small,.people-workspace small{font-size:.875rem}.people-workspace .add-person{font-size:1.1rem;padding:13px 23px;min-height:48px}.people-workspace .directory-summary{min-height:28px}.people-workspace [hidden]{display:none!important}.permission-row{border-bottom:1px solid #dbe6e9;padding:18px 0}.permission-row fieldset{border:0;padding:0;margin:0;min-width:0}.permission-choice{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.permission-choice strong{flex:1;min-width:230px}.permission-choice label{display:flex;align-items:center;gap:8px}.permission-evidence{margin-top:12px}.permission-evidence[open]{padding-bottom:12px}.permission-evidence label{display:block;margin:12px 0}.child-permissions textarea{width:100%}.child-permissions .section-heading{flex-wrap:wrap;gap:12px}@media(max-width:700px){.permission-choice{gap:12px}.permission-choice strong{flex-basis:100%}.people-workspace .record-tabs a{padding:12px}}
.incident-print{display:none}.incident-page .entry-section label:not(.checkbox){display:block;margin:14px 0}.incident-page textarea{width:100%}.incident-page .checkbox{margin:12px 0}.incident-page .entry-section{overflow-wrap:anywhere}.incident-page .incident-print dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}.incident-page .incident-print dt{font-weight:700;break-after:avoid}@media print{.incident-page> :not(.incident-print){display:none!important}.incident-page .incident-print{display:block}.incident-page{max-width:none;padding:0;font-size:10pt}.incident-print h1{font-size:18pt}.incident-print dd{break-inside:auto}}

/* Compact caregiver rows keep permissions visible before editing. */
.caregiver-row>summary {display:grid;grid-template-columns:minmax(10rem,1.2fr) minmax(12rem,1.5fr) minmax(7rem,.8fr) auto;gap:1rem;align-items:center}
.caregiver-row>summary small {display:block;font-weight:normal;overflow-wrap:anywhere}
.booking-version>summary {padding:.75rem 0}
@media(max-width:700px){.caregiver-row>summary{grid-template-columns:1fr;gap:.3rem}}

.report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,28rem),1fr));gap:1rem}.report-cards>[hidden]{display:none}.fee-line{padding:1rem 0;border-bottom:1px solid #d6e3e6}.account-balance{font-size:1.25rem}
.enrolment-edit{min-width:0;max-width:100%;overflow-x:auto}.enrolment-edit fieldset{min-width:0}.enrolment-edit :is(input,select,textarea){min-width:0;max-width:100%}#enrolment-period{overflow-wrap:anywhere}

@media(max-width:700px){.ministry-integration .ministry-attempts,.ministry-integration .ministry-attempts tbody,.ministry-integration .ministry-attempts tr,.ministry-integration .ministry-attempts td{display:block;width:100%;min-width:0}.ministry-integration .ministry-attempts thead{display:none}.ministry-integration .ministry-attempts tr{border-bottom:2px solid var(--line);margin-bottom:16px}.ministry-integration .ministry-attempts td{overflow-wrap:anywhere;padding:10px 8px}.ministry-integration .ministry-attempts td::before{display:block;font-weight:600;margin-bottom:4px}.ministry-integration .ministry-attempts td:nth-child(1)::before{content:"Attempt / time"}.ministry-integration .ministry-attempts td:nth-child(2)::before{content:"Simulator response"}.ministry-integration .ministry-attempts td:nth-child(3)::before{content:"Next step / retry"}.ministry-integration .ministry-attempts td:nth-child(4)::before{content:"Recorded by"}}
