/* School forms and dashboard details are scoped to avoid changing the regular form. */
.booking-audience, .school-form-panel { background:#fff; border:1px solid #cbded3; border-radius:16px; padding:20px; margin:20px 0; color:#172033; }
.booking-audience label, .school-form label { display:block; font-size:14px; font-weight:700; color:#334155; margin-bottom:6px; text-transform:none; }
.booking-audience select, .school-form input, .school-form select, .school-form textarea, .booking-type-filter select { width:100%; box-sizing:border-box; font:inherit; font-size:16px; padding:11px; border:1px solid #b8c8be; border-radius:8px; background:#fff; color:#172033; min-height:44px; }
.booking-audience select { max-width:480px; }
.school-form-panel h2 { margin:0 0 8px; font-size:22px; color:#14532d; }
.school-form-panel p { line-height:1.5; }
.school-form .school-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.school-form fieldset { min-width:0; margin:0; border:0; padding:0; }
.school-form legend { font-size:14px; font-weight:700; padding:0; margin-bottom:6px; color:#334155; }
.school-range-inputs { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; }
.school-form .school-wide { grid-column:1/-1; }
.school-form textarea { min-height:105px; resize:vertical; }
.school-form .school-submit, .school-form .school-reset { min-height:44px; border:0; border-radius:8px; padding:12px 18px; background:#14532d; color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.school-form .school-reset { background:#eef4f0; color:#14532d; margin-left:8px; }
.school-form :focus-visible, .booking-audience select:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.school-form [aria-invalid=true] { border:2px solid #b91c1c; }
.school-form .school-message { white-space:pre-line; padding:12px 0; color:#14532d; font-weight:700; }
.school-form .school-message.error { color:#b91c1c; }
.school-estimate-preview { background:#eef7f1; padding:12px; border-radius:8px; margin:16px 0; color:#14532d; font-size:15px; line-height:1.6; white-space:pre-line; }
.school-booking { padding:16px; color:#172033; font-size:14px; border-left:4px solid #23824b; background:#fff; overflow-wrap:anywhere; }
.school-booking header { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.school-booking h3 { font-size:20px; margin:8px 0; color:#14532d; }
.school-booking h4 { font-size:14px; margin:0 0 10px; color:#14532d; text-transform:none; }
.school-booking p { margin:6px 0; line-height:1.5; }
.school-booking small { font-size:12px; color:#475569; }
.school-badge, .school-status, .regular-badge { display:inline-block; padding:4px 8px; border-radius:6px; background:#e6f4eb; color:#14532d; font-size:12px; font-weight:700; }
.school-status { background:#f1f5f9; color:#334155; }
.school-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:18px 0; }
.school-notes-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; border-top:1px solid #dce5df; padding-top:14px; }
.school-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.school-actions { display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; }
.school-actions a, .school-actions button { font:inherit; font-size:13px; padding:9px 12px; border:1px solid #cbded3; border-radius:8px; color:#14532d; background:#f4faf6; text-decoration:none; cursor:pointer; }
.school-actions form { margin:0; }
.school-summary { padding:14px; margin:12px 0; border:1px solid #cbded3; border-radius:10px; background:#eff8f2; color:#14532d; white-space:pre-line; font-size:14px; line-height:1.6; }
.booking-type-filter { min-width:0; }
.booking-type-filter label { font-size:14px; color:#334155; }
.school-editor-shell { max-width:1100px; margin:24px auto; padding:0 16px; font:16px Arial,sans-serif; }
.school-editor-nav { display:flex; gap:20px; margin:16px 0; }
.school-editor-shell a { color:#14532d; }
.school-only-table thead { display:none; }
.school-booking { box-sizing:border-box; }
.header-sticky .filter-input-row { grid-template-columns:repeat(5,minmax(0,1fr)); }
.header-sticky .filter-input-row > div { min-width:0; }
.header-sticky .filter-input-row label, .admin-panel .filter-grid label { font-size:14px; text-transform:none; }
.header-sticky .filter-input-row input, .admin-panel .filter-grid input, .admin-panel .filter-grid select { min-height:44px; font-size:14px; }
.admin-panel .filter-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:900px) { .admin-panel .filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
[hidden] { display:none !important; }
@media(max-width:740px) {
 .header-sticky .filter-input-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .header-sticky .filter-input-row .t-search { grid-column:1/-1; }
 .school-form .school-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .school-detail-grid, .school-notes-grid { grid-template-columns:1fr; gap:14px; }
 .school-booking { padding:12px; }
 .school-booking h3 { font-size:18px; }
}
@media(max-width:480px) { .school-form .school-form-grid { grid-template-columns:1fr; } .booking-audience,.school-form-panel { padding:16px; } }

/* Compact booking lists; only filter fields collapse. Totals stay visible. */
.dashboard-page .header-sticky { position:static; padding:10px 12px 0; border:0; box-shadow:none; background:transparent; }
.dashboard-controls { background:#fff; border:1px solid #dfe6ef; border-radius:10px; margin-bottom:10px; }
.dashboard-filter-toggle { display:flex; align-items:center; gap:10px; padding:10px 12px; min-height:44px; box-sizing:border-box; cursor:pointer; color:#14532d; font-size:14px; font-weight:700; list-style:none; }
.dashboard-filter-toggle::-webkit-details-marker { display:none; }
.dashboard-filter-toggle svg { width:22px; height:22px; flex-shrink:0; }
.dashboard-filter-toggle small { display:block; font-size:12px; font-weight:400; color:#475569; margin-top:2px; }
.dashboard-filter-toggle::after { content:'+'; margin-left:auto; font-size:22px; }
.dashboard-controls[open] > .dashboard-filter-toggle::after { content:'−'; }
.dashboard-filter-toggle:focus-visible, .school-note-disclosure summary:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.dashboard-controls .admin-panel { border:0; margin:0; box-shadow:none; }
.dashboard-controls .summary-bar, .dashboard-controls > .panel, .dashboard-controls > .school-summary { margin:10px; }
.dashboard-page .quick-filter-panel { padding:8px; margin:0 0 10px; }
.dashboard-page .quick-title { display:none; }
.dashboard-page .quick-filter-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.staff-dashboard .quick-filter-row { grid-template-columns:repeat(3,minmax(0,1fr)) 44px; }
.dashboard-page .quick-btn { box-sizing:border-box; min-height:44px; padding:8px 6px; font-size:12px; }
.dashboard-page .table-container { margin-top:0; }
.school-booking { display:grid; grid-template-columns:minmax(170px,1.5fr) minmax(155px,1.2fr) minmax(100px,.8fr) auto; gap:12px; padding:12px; font-size:13px; }
.school-booking > * { min-width:0; }
.school-booking h3 { font-size:16px; margin:5px 0; }
.school-booking h4 { margin:0 0 5px; font-size:13px; }
.school-booking p { margin:3px 0; line-height:1.4; }
.school-booking small { font-size:11px; }
.school-booking .school-badge, .school-booking .school-status { font-size:11px; padding:2px 5px; }
.school-actions { align-content:start; gap:5px; }
.school-actions a, .school-actions button { min-height:40px; box-sizing:border-box; display:inline-flex; align-items:center; padding:7px 9px; font-size:12px; }
.school-note-disclosure { border:1px solid #dce5df; border-radius:6px; margin-bottom:5px; }
.school-note-disclosure summary { cursor:pointer; padding:10px 8px; min-height:40px; box-sizing:border-box; color:#14532d; font-weight:700; }
.school-note-disclosure .school-note { padding:0 8px 8px; }
.school-admin { min-width:1060px; }
.school-admin .school-actions { max-width:115px; }
.dashboard-session { display:flex; justify-content:flex-end; margin-bottom:6px; }
.dashboard-heading { gap:8px; }
.dashboard-heading h2 { font-size:20px; }
.dashboard-heading-actions { flex-shrink:0; align-items:center; }
.dashboard-heading-actions a { white-space:nowrap; }
.dashboard-session a, .admin-dashboard a[href="admin.php?logout=1"] { display:inline-flex; align-items:center; justify-content:center; min-height:40px; box-sizing:border-box; padding:8px 14px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; font:600 13px Arial,sans-serif; text-decoration:none; }
.dashboard-session a:hover, .admin-dashboard a[href="admin.php?logout=1"]:hover { background:#f1f5f9; }
.dashboard-page .school-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; margin:8px 0; border:0; background:none; white-space:normal; font-size:12px; line-height:1.35; }
.school-total-card { min-width:0; padding:9px 8px; border:1px solid #dfe6ef; border-top:3px solid #6a9680; border-radius:8px; background:#fff; color:#172033; }
.school-total-card h3 { margin:0 0 5px; font-size:10px; font-weight:700; text-transform:uppercase; color:#527062; }
.school-total-card h3 small { font-size:10px; }
.school-total-card > strong { display:block; font-size:clamp(16px,3.8vw,22px); line-height:1.2; letter-spacing:-.5px; white-space:nowrap; }
.school-total-card p { margin:2px 0; font-size:11px; color:#475569; }
.school-total-card b { white-space:nowrap; }
/* Both staff summary rows use the same grid and card dimensions. */
.staff-dashboard .summary-bar, .staff-dashboard .school-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.staff-dashboard .summary-card, .staff-dashboard .school-total-card { box-sizing:border-box; height:88px; padding:8px; border:1px solid #dfe6ef; border-radius:8px; background:#f8fafc; }
.staff-dashboard .summary-card h4, .staff-dashboard .school-total-card h3 { min-height:24px; margin:0; font-size:9px; line-height:12px; font-weight:700; text-transform:uppercase; color:#14532d; opacity:.8; }
.staff-dashboard .summary-card .val, .staff-dashboard .school-total-card > strong { font-size:18px; line-height:22px; font-weight:800; letter-spacing:0; }
.staff-dashboard .summary-card .sub, .staff-dashboard .school-total-card p { margin:0; font-size:10px; line-height:12px; color:#64748b; }
.dashboard-page .admin-panel { padding:10px; margin-bottom:10px; }
.dashboard-controls > form { padding:10px; }
.school-actions .school-details-button { background:#f97316; color:#431407; border-color:#ea580c; font-weight:800; min-height:44px; }
.school-details-popup { width:min(460px,calc(100vw - 32px)); max-height:80vh; overflow:auto; box-sizing:border-box; padding:12px 18px 18px; border:2px solid #f97316; border-radius:12px; background:#fff3e6; color:#431407; box-shadow:0 12px 48px #0004; font:15px Arial,sans-serif; }
.school-details-popup::backdrop { background:#0003; }
.school-details-popup .school-popup-heading { position:sticky; top:0; display:flex; gap:12px; align-items:flex-start; justify-content:space-between; background:#fff3e6; padding:0 48px 8px 0; min-height:40px; }
.school-details-popup h3 { margin:6px 0 0; font-size:18px; color:#9a3412; }
.school-details-popup h4 { font-size:14px; margin:0 0 7px; color:#9a3412; }
.school-details-popup section { margin-top:16px; }
.school-details-popup p { margin:5px 0; line-height:1.5; }
.school-details-popup a { display:inline; padding:0; border:0; background:none; font:inherit; text-decoration:underline; color:#9a3412; }
.school-details-popup .school-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.school-details-popup .school-popup-heading button { position:absolute; right:0; top:0; width:40px; height:40px; justify-content:center; font-size:22px; background:#ffedd5; border-color:#fdba74; color:#9a3412; }
.school-details-button:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.school-action-icon { display:none; }
/* The same three-column card geometry on both dashboards. */
.admin-dashboard .quick-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:8px; }
.admin-dashboard .stat, .admin-dashboard .school-total-card { box-sizing:border-box; height:88px; min-width:0; padding:8px; border:1px solid #dfe6ef; border-radius:8px; background:#f8fafc; }
.admin-dashboard .stat { display:flex; flex-direction:column; }
.admin-dashboard .stat span, .admin-dashboard .school-total-card h3 { order:-1; min-height:24px; margin:0; font-size:9px; line-height:12px; font-weight:700; text-transform:uppercase; color:#14532d; opacity:.8; }
.admin-dashboard .stat b, .admin-dashboard .school-total-card > strong { font-size:18px; line-height:22px; font-weight:800; letter-spacing:0; white-space:nowrap; }
.admin-dashboard .school-total-card p { margin:0; font-size:10px; line-height:12px; color:#64748b; }
.dashboard-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; margin-bottom:10px; }
.school-target { min-width:0; max-width:520px; font-size:12px; color:#14532d; }
.school-target-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:11px; font-weight:700; }
.school-target progress { display:block; width:100%; height:8px; margin:4px 0; border:0; border-radius:10px; overflow:hidden; background:#dce9e1; accent-color:#168447; }
.school-target progress::-webkit-progress-bar { background:#dce9e1; border-radius:10px; }
.school-target progress::-webkit-progress-value { background:#168447; border-radius:10px; }
.school-target progress::-moz-progress-bar { background:#168447; border-radius:10px; }
.school-target small { font-size:10px; color:#64748b; }
.dashboard-toolbar .dashboard-filter-toggle { width:36px; height:44px; border:0; border-radius:6px; background:transparent; color:#4169e1; padding:6px; justify-content:center; cursor:pointer; }
.dashboard-toolbar .dashboard-filter-toggle::after { content:none; }
.dashboard-toolbar .dashboard-filter-toggle svg { width:24px; height:24px; }
.dashboard-toolbar .dashboard-filter-toggle:hover { color:#2348bc; }
.dashboard-toolbar .dashboard-logout { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px; padding:8px 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; font:600 13px Arial,sans-serif; text-decoration:none; }
.dashboard-logout:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.booking-count-stat { font-size:11px; color:#475569; border:1px solid #dfe6ef; border-radius:6px; padding:4px 7px; margin-top:5px; display:inline-block; background:#f8fafc; }
@media(max-width:480px) {
 .dashboard-toolbar { gap:6px; }
 .school-target-heading { font-size:9px; flex-wrap:wrap; gap:1px 4px; }
 .school-target small { font-size:9px; }
 .dashboard-toolbar .dashboard-logout { padding:8px; font-size:11px; }
 .dashboard-title h2 { font-size:16px; }
}
@media(max-width:1100px) {
 .school-staff { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; width:100%; max-width:100%; }
 .school-staff .school-identity { grid-column:1/-1; }
 .school-staff .school-contact { grid-column:1/-1; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
 .school-staff .school-contact h4 { margin:0; }
 .school-staff .school-compact-notes { display:grid; grid-template-columns:1fr 1fr; gap:6px; grid-column:1/-1; }
 .school-staff .school-actions { grid-column:1/-1; }
 .school-staff .school-actions a { min-height:44px; }
}
@media(max-width:740px) {
 .school-staff { position:relative; gap:6px 12px; padding:10px 12px; }
 .school-staff .school-identity { padding-top:2px; }
 .school-staff .school-identity h3 { margin-top:5px; padding-right:76px; }
 .school-staff .school-identity > .school-status { margin-right:96px; }
 .school-staff .school-actions { position:absolute; top:8px; right:10px; gap:4px; align-items:center; }
 .school-actions > .school-details-button, .school-actions > .school-whatsapp { width:36px; height:36px; min-height:36px; padding:0; border:0; border-radius:50%; justify-content:center; }
 .school-actions > .school-details-button { background:radial-gradient(circle,#ff6347 12px,transparent 12.5px); color:#fff; }
 .school-actions > .school-whatsapp { background:radial-gradient(circle,#128c4a 12px,transparent 12.5px); color:#fff; }
 .school-actions > .school-details-button .school-action-icon { display:block; font:bold 15px Arial,sans-serif; }
 .school-actions > .school-whatsapp .school-action-icon { display:block; width:15px; height:15px; }
 .school-actions > .school-details-button .school-action-label, .school-actions > .school-whatsapp .school-action-label { display:none; }
 .school-staff .school-attendance, .school-staff .school-meals { border-top:1px solid #e5ebe7; padding-top:7px; }
 .school-staff h4 { font-size:12px; margin-bottom:3px; }
 .school-staff p { margin:2px 0; font-size:12px; }
}
