/* Application-wide colour system. Layout and functional/status colours live in site.css. */
:root {
 --ink:#0b2545; --muted:#455c73; --accent:#134074; --wash:#f2f5f9;
 --surface:#fff; --line:#cbd8e2; --accent-soft:#e5eef6;
 --panel-tint:#f3f7fa; --heading-fill:#dae6f0; --radius:12px;
}
body { background:var(--wash); }
.app-header { background:var(--ink); border-bottom:1px solid #244a70; box-shadow:0 2px 8px #0b25451a; }
.app-header .brand,.app-header .brand:hover,.app-header .brand-dot,
.app-header .header-account>a { color:#fff; }
.app-header .brand-icon { background:#fff; color:var(--accent); }
.app-header .header-account .nav-link { color:#fff!important; }
.app-header .header-account .nav-link:hover,.app-header .header-account>a:hover { background:#244a70; color:#fff!important; border-radius:6px; }
.app-header .language-picker select { background:#13315c; color:#fff; border-color:#6983a0; }
.app-header .language-picker option { background:#fff; color:var(--ink); }
.app-header #mobile-menu-toggle,.app-header .mobile-account>summary { color:#fff; }
.app-header .mobile-account-panel { background:var(--panel-tint); }
.app-header .mobile-account-panel a,.app-header .mobile-account-panel .nav-link { color:var(--ink)!important; }
.app-header :focus-visible { outline-color:#b8d8ff; }
.module-sidebar { background:#e8eff5; border-right-color:var(--line); }
.sidebar-heading { background:var(--heading-fill); border-bottom-color:#bacddd; }
.module-sidebar a.current,.module-sidebar a.current:hover { background:var(--accent); color:#fff; border-left-color:var(--ink); }
.module-sidebar a:not(.current):hover { background:#d7e5f0; color:var(--ink); }
.module-sidebar summary { color:var(--ink); }
.module-sidebar input { background:#fff; }
.schedule-toolbar,main>form.employee-filter,main>form.board-filters,
.list-toolbar,.management-toolbar,main>form.list-toolbar,.hours-navigation { background:var(--accent-soft); border-color:var(--line); }
.schedule-toolbar .date-nav>a,.schedule-date-jump summary { background:var(--surface); }
.view-tabs { background:#d9e5ef; }
.view-tabs a.active,.view-tabs a.active:hover,
.approval-tabs a[aria-current="page"],.help-topics a[aria-current="page"],
.business-module .help-topics a[aria-current="page"],.account-settings-tabs .nav-link.active {
 background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:0 1px 3px #0b254526;
}
.view-tabs a:not(.active):hover { background:#f3f7fa; color:var(--accent); }
table thead th,table tr.record-headings th,.calendar-table th,.planning-grid thead th,
.planning-grid thead th:first-child { background:var(--heading-fill); color:var(--ink); border-color:#bbcede; }
.planning-grid tbody th:first-child { background:var(--panel-tint); }
.calendar-table td.outside { background:#edf1f4; }
.calendar-table td.today { background:#f0f6fc; }
.employee-panel,.leave-card,.hours-sidebar,.quick-card,.stat-card,.stats-grid>* {
 border-color:var(--line); box-shadow:0 2px 6px #0b254507;
}
.hours-sidebar,.stat-card,.stats-grid>* { background:linear-gradient(var(--accent-soft),var(--surface) 110px); border-top:3px solid var(--accent); }
.employee-panel>h2:first-child,.employee-panel>h3:first-child { padding-bottom:12px; border-bottom:2px solid var(--heading-fill); }
.quick-card { border-top:3px solid #789ab8; background:linear-gradient(var(--panel-tint),var(--surface)); }
.tile-icon { background:var(--accent-soft); color:var(--accent); }
.empty-state { background:var(--panel-tint); border-color:#a9bdce; }
.shift-dialog { background:var(--panel-tint); border-top:5px solid var(--accent); }
.dialog-heading { border-bottom:1px solid var(--line); padding-bottom:12px; }
button:disabled { cursor:not-allowed; opacity:.55; }
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus { border-color:#527ea6; box-shadow:0 0 0 3px #13407418; }
.welcome-card { background:linear-gradient(115deg,#dceaf3,#edf2f8); border-color:#c0d4df; }
.welcome-card .eyebrow { color:var(--accent); }
.mini-heading { background:var(--accent); color:#fff; }
.mini-days { background:var(--accent-soft); }
.app-footer { border-top:1px solid var(--line); }
/* Public account screens share one card treatment, including reset and verification. */
.auth-page .workspace { max-width:1000px; padding-bottom:28px; }
.auth-page:not(.has-module-sidebar) .workspace-page-heading { background:var(--ink); padding:20px 26px; border-radius:12px; margin-bottom:20px; }
.auth-page .workspace-page-heading h1 { color:#fff; margin:0; font-size:28px; }
.auth-page #main-content>.row { margin:0; }
.auth-page #main-content>.row>.col-md-4 { width:100%; max-width:560px; padding:0; }
.auth-page #main-content .row>div>section:has(>form),.auth-page #main-content .row>div>form { background:var(--panel-tint); border-top:4px solid var(--accent); }
.auth-page .registration-card { border-top:0; overflow:hidden; background:var(--panel-tint); }
.auth-page .registration-card>h1 { background:var(--ink); color:#fff; padding:24px clamp(20px,4vw,40px) 8px; margin:calc(-1 * clamp(20px,4vw,40px)) calc(-1 * clamp(20px,4vw,40px)) 0; }
.auth-page .registration-card>p:first-of-type { background:var(--ink); color:#dceaf3; padding:0 clamp(20px,4vw,40px) 24px; margin:0 calc(-1 * clamp(20px,4vw,40px)) 26px; }
.auth-page input:not([type=checkbox]):not([type=hidden]),.auth-page select { background:#fff; }
.auth-page .login-help-links { border-top:1px solid var(--line); padding-top:12px; }
@media(max-width:800px) {
 .auth-page .workspace { width:calc(100% - 28px); }
 .auth-page:not(.has-module-sidebar) .workspace-page-heading { padding:16px 20px; }
 .mobile-records tbody tr { background:var(--surface); border-color:var(--line); }
}
@media print {
 body,.module-sidebar,.employee-panel,.schedule-toolbar,.hours-sidebar,.welcome-card { background:#fff!important; box-shadow:none; }
 .app-header { background:#fff; }
 .app-header .brand,.app-header .brand-dot { color:#0b2545; }
 table th,.calendar-table th { background:#eee; color:#111; }
}

/* Shared shell sizing is independent of management form styles. */
.app-header .navbar { min-height:64px; padding:8px 0; }
.app-header .language-picker { margin:0; padding:0; border:0; width:auto; }
.app-header .language-picker select { width:auto; min-width:112px; height:40px; min-height:40px; padding:6px 10px; margin:0; font-size:14px; line-height:1.4; }
.app-header .header-account .nav-link { min-height:40px; margin:0; padding:8px!important; }
.app-footer { width:100%; margin:24px 0 0; padding:0; min-height:64px; background:var(--ink); color:#e2ebf4; border-top:1px solid #244a70; }
.footer-content { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; min-height:64px; padding-block:16px; font-size:13px; }
.footer-content>span { margin-right:auto; }
.app-footer a,.app-footer a:hover { color:#fff; }
.auth-page .workspace { max-width:1200px; }
.auth-split { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(28px,5vw,64px); align-items:center; margin:24px auto; }
.auth-intro { padding:20px 0; }
.auth-intro h2 { font-size:clamp(28px,3vw,42px); line-height:1.2; max-width:16ch; }
.auth-intro p { max-width:42ch; font-size:16px; }
.auth-intro ul,.auth-intro ol { padding-left:22px; color:var(--muted); }
.auth-intro li { margin:12px 0; }
.auth-form-card,.auth-page .auth-split .registration-card { width:100%; max-width:none; margin:0; padding:28px; border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:14px; background:#fff; box-shadow:0 8px 24px #0b25450a; }
.auth-form-card h1,.auth-page .auth-split .registration-card>h1 { margin:0 0 10px; padding:0; background:none; color:var(--ink); font-size:28px; }
.auth-page .auth-split .registration-card>p:first-of-type { margin:0 0 20px; padding:0; background:none; color:var(--muted); font-size:14px; }
.auth-form-card .registration-grid { gap:14px 18px; }
.auth-form-card label { margin:0 0 6px; }
.auth-form-card .registration-grid>div { min-width:0; }
.auth-form-card input:not([type=checkbox]):not([type=hidden]),.auth-form-card select { width:100%; min-width:0; min-height:44px; font-size:14px; }
.auth-form-card .registration-grid small { font-size:12px; line-height:1.45; display:block; margin-top:5px; }
.auth-form-card .registration-consent { margin-block:18px; }
.auth-form-card .registration-submit,.auth-form-card #login-submit { padding:10px 16px; min-height:44px; font-size:16px; }
.auth-form-card .registration-signin { margin:14px 0 0; }
@media(max-width:900px) {
 .auth-split { grid-template-columns:1fr; max-width:640px; gap:16px; margin-top:8px; }
 .auth-intro { padding:0; }
 .auth-intro h2 { max-width:none; font-size:26px; margin-bottom:10px; }
 .auth-intro p { max-width:none; margin-bottom:8px; }
 .auth-intro ul,.auth-intro ol { display:none; }
}
@media(max-width:600px) {
 .auth-form-card,.auth-page .auth-split .registration-card { padding:20px; }
 .auth-form-card .registration-grid { grid-template-columns:1fr; }
 .footer-content { gap:10px 18px; }
 .footer-content>span { flex-basis:100%; }
}

.has-module-sidebar .app-footer,.sidebar-open .app-footer { width:100%; max-width:none; margin-left:0; margin-right:0; }
.has-module-sidebar .footer-content { width:calc(100% - 96px); margin-left:76px; margin-right:20px; }
.sidebar-open .footer-content { width:calc(100% - 300px); margin-left:280px; margin-right:20px; }
@media(max-width:800px) {
 .has-module-sidebar .footer-content,.sidebar-open .footer-content { width:calc(100% - 28px); margin-inline:14px; }
}

/* Header controls share one centre line, independent of page form layout. */
.app-header .language-picker label { display:flex; align-items:center; flex-direction:row; gap:0; margin:0; padding:0; }
.app-header .header-account,.app-header .header-account .navbar-nav,.app-header .header-account .nav-item { align-items:center; }
.app-header .header-account .nav-item,.app-header .header-account .nav-link,.app-header .header-account .form-inline { display:flex; align-items:center; }
.app-header .header-account .form-inline { margin:0; padding:0; }
.app-header .mobile-account { margin-block:0; }

.module-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-block:16px; }
.business-module main .module-choices label { flex-direction:row; align-items:center; flex-wrap:wrap; background:var(--panel-tint); border:1px solid var(--line); padding:12px; border-radius:8px; margin:0; }
.module-choices small { flex-basis:100%; }

/* Compact organisation, employee search and access management. */
main form.compact-search-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
main form.compact-search-toolbar input[type=search] { flex:1 1 240px; width:280px; min-width:180px; max-width:440px; margin:0; }
main form.compact-search-toolbar button,main form.compact-search-toolbar .button { flex:0 0 auto; margin:0; white-space:nowrap; }
.compact-admin-page .employee-panel,.compact-department-panel { padding:18px 20px; margin-block:16px; }
.compact-access-toolbar,.compact-row-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.compact-access-toolbar { justify-content:space-between; }
.compact-access-toolbar p,.compact-row-heading h3 { margin:0; }
.compact-access-toolbar p { overflow-wrap:anywhere; }
.compact-location-row { padding:14px 0; border-top:1px solid var(--line); }
.compact-location-row:first-of-type { border-top:0; }
.compact-row-heading h3 { font-size:17px; }
.compact-meta { font-size:13px; font-weight:400; color:var(--ink); opacity:.8; }
.compact-location-row p { margin:5px 0; }
.department-links { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:8px; font-size:14px; }
.department-links a { padding:3px 9px; border:1px solid var(--line); border-radius:6px; background:var(--heading-fill); }
.business-module main .compact-disclosure { margin:6px 0 0; }
.business-module main .compact-disclosure summary { padding:5px 0; font-size:14px; }
.business-module main .compact-role-row { padding:0; margin:0; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; background:transparent; }
.business-module main .compact-role-row summary { padding:11px 0; font-size:15px; }
.compact-role-row summary .compact-meta { float:right; margin-left:12px; }
.compact-role-row form { margin:10px 0 16px; }
.compact-admin-page .employee-fields { grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:12px; align-items:end; }
.compact-admin-page main form label,.business-module main .compact-admin-page form label { margin-bottom:0; }
.compact-admin-page .permission-grid label { font-size:13px; }
.compact-department-panel td form { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; }
.business-module main .compact-department-panel td form select { width:auto; max-width:100%; flex:1 1 180px; }
.compact-department-panel td form button { margin:0; white-space:nowrap; }
.compact-admin-page section[id] { scroll-margin-top:85px; }
@media(max-width:600px) {
 main form.compact-search-toolbar input[type=search] { max-width:none; width:100%; flex-basis:100%; }
 .compact-role-row summary .compact-meta { float:none; display:block; margin:4px 0 0 18px; }
 .compact-admin-page .employee-panel,.compact-department-panel { padding:14px; }
}

/* Shared organisation navigation, single-line audit records and right-aligned schedule views. */
.organisation-tabs { display:flex; gap:4px; width:fit-content; padding:4px; border:1px solid var(--line); border-radius:9px; background:var(--heading-fill); }
.organisation-tabs a { margin:0; padding:9px 18px; border:0; border-radius:6px; text-decoration:none; }
.organisation-tabs a[aria-current=page] { background:var(--accent); color:#fff; font-weight:600; }
.audit-table-scroll { max-width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:8px; }
.audit-table-scroll .audit-log-table { width:100%; min-width:max-content; margin:0; table-layout:auto; }
.business-module .audit-log-table th,.business-module .audit-log-table td { white-space:nowrap; overflow-wrap:normal; word-break:normal; padding:10px 16px; font-size:14px; }
main .audit-pagination { align-items:center; gap:10px; }
main .audit-pagination label { margin:0; }
.schedule-toolbar .view-tabs { margin-left:auto; flex:0 0 auto; flex-wrap:nowrap; width:auto; }
@media(min-width:1100px) {
 .schedule-toolbar:has(.view-tabs) { flex-direction:row; flex-wrap:nowrap; align-items:center; }
 .schedule-toolbar .date-nav { flex:0 0 auto; flex-wrap:nowrap; }
 .schedule-toolbar .view-tabs { flex-basis:auto; }
}

/* Shift groups start collapsed; compact filters match the week-view toolbar. */
main details.shift-definition-group { padding:12px 18px; margin:12px 0; }
main details.shift-definition-group>summary { padding:6px 0; cursor:pointer; font-size:17px; font-weight:600; }
.shift-definition-group>summary .status-badge { margin-left:12px; font-size:13px; font-weight:400; }
.shift-definition-group[open] .table-scroll { margin-top:14px; }
main form.board-filters { width:fit-content; max-width:100%; padding:8px 12px; gap:8px 12px; background:var(--surface); border:1px solid var(--line); border-radius:9px; margin:0 0 8px; align-items:center; }
main form.board-filters label { display:flex; flex-direction:row; align-items:center; gap:8px; margin:0; font-size:14px!important; font-weight:500; flex:0 1 auto; }
.business-module main form.board-filters select,.business-module main form.board-filters input:not([type=hidden]),main form.board-filters select,main form.board-filters input:not([type=hidden]) { width:160px; min-width:0; height:40px; min-height:40px; padding:6px 10px; margin:0; font-size:14px!important; font-weight:400; }
main form.board-filters #board-search { width:180px; }
main form.board-filters #board-shift { width:200px; }
.department-table-scroll { max-width:100%; overflow-x:auto; }
.compact-department-table { width:100%; table-layout:auto; }
.business-module .compact-department-table th,.business-module .compact-department-table td { padding:9px 12px; white-space:nowrap; overflow-wrap:normal; word-break:normal; font-size:14px; }
.business-module main .compact-department-table td form { display:inline-flex; margin:0 0 0 10px; padding:0; vertical-align:middle; }
.compact-department-table td button { padding:6px 10px; min-height:34px; font-size:13px; }
.department-list-actions { margin-top:14px; }
@media(max-width:600px) {
 main form.board-filters { width:100%; }
 main form.board-filters label { flex:1 1 100%; justify-content:space-between; }
}

/* Contact and pilot controls share the existing application panels and colours. */
.contact-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.employee-fields .full-width { grid-column:1/-1; }
.submission-message { white-space:pre-wrap; overflow-wrap:anywhere; padding:1rem; background:var(--surface-soft, #f2f5f9); border-radius:.5rem; }
.compact-records td { padding:.65rem .8rem; }

.business-module main:has(#pilot-feedback-fields) .employee-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.employee-fields .validation-summary-valid { display:none; }
.employee-fields .validation-summary-errors { grid-column:1/-1; }
@media(max-width:640px) { .business-module main:has(#pilot-feedback-fields) .employee-fields { grid-template-columns:1fr; } }

.schedule-toolbar .schedule-time-zone { display:flex; flex-direction:column; flex:0 0 auto; white-space:nowrap; font-size:.8rem; gap:.15rem; }
.schedule-toolbar:has(.view-tabs) { flex-wrap:nowrap; overflow-x:auto; }
.help-center-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; }

@media(max-width:1500px){.schedule-with-hours{grid-template-columns:minmax(0,1fr);}.schedule-with-hours .hours-sidebar{width:100%;}}

@media(max-width:1500px) and (min-width:1000px){.schedule-toolbar:has(.view-tabs){gap:7px; padding:10px;}.schedule-toolbar .view-tabs a{padding:8px 7px;}.schedule-toolbar .date-nav{gap:6px;}.schedule-toolbar .date-nav h2{font-size:1.05rem;}.schedule-toolbar .schedule-date-jump summary{padding:9px 10px;}.schedule-toolbar .schedule-time-zone{font-size:.75rem;}}

.compact-admin-page .location-edit-form { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; }
.location-edit-form label { min-width:0; }
.location-edit-form input:not([type=checkbox]),.location-edit-form select { width:100%; }
.location-zone-help { margin:0; font-size:.85rem; }
.location-form-actions { display:flex; justify-content:space-between; align-items:start; gap:24px; }
.location-archive-option { margin-left:auto; max-width:440px; padding:12px 16px; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:8px; background:var(--surface); }
.location-archive-option label { display:flex; align-items:center; gap:8px; font-weight:600; }
.location-archive-option small { display:block; margin-top:6px; }
.schedule-toolbar .schedule-date-heading { background:var(--surface); color:inherit; border:1px solid var(--line); border-radius:8px; padding:9px 10px; font-size:1.05rem; font-weight:700; white-space:nowrap; }
.schedule-date-heading span { margin-left:6px; }
#schedule-date-popover { padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); box-shadow:0 12px 40px #0b254533; max-width:calc(100vw - 32px); }
#schedule-date-popover h3 { margin:0 0 12px; }
#schedule-date-popover>button { margin-top:12px; }
#schedule-date-popover::backdrop { background:#0b254522; }
@media(max-width:900px){.compact-admin-page .location-edit-form{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.compact-admin-page .location-edit-form{grid-template-columns:1fr;}.location-form-actions{flex-direction:column;}.location-archive-option{margin-left:0;max-width:none;}}

.location-edit-form select:disabled { background:#e5e9ef; color:#657487; cursor:not-allowed; opacity:1; }
.board-existing { position:relative; padding-right:28px; }
.board-existing .board-remove { position:absolute; top:2px; right:2px; padding:0; min-height:26px; width:26px; border:0; background:transparent; color:var(--ink); font-size:1.2rem; }
.board-existing.pending-removal { opacity:.65; outline:1px dashed #a23a3a; }
.board-existing.pending-removal::after { content:attr(data-removal-label); display:block; color:#912f2f; font-size:.75rem; }
.shift-details { font-size:.75rem; }
.shift-details summary { cursor:pointer; }
.shift-details small { display:block; }

.shift-details-trigger { font-size:.75rem; padding:2px 4px; min-height:24px; background:transparent; color:var(--accent); border:0; text-decoration:underline; }
.shift-details-popup { padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); max-width:calc(100vw - 32px); box-shadow:0 12px 40px #0b254533; }
.shift-details-popup small { display:block; margin:8px 0; }
.shift-details-popup::backdrop { background:#0b254522; }

#schedule-date-popover { position:fixed; inset:auto; margin:0; padding:12px; width:300px; max-width:calc(100vw - 16px); }
#schedule-date-popover::backdrop { background:transparent; }
#schedule-date-popover .schedule-date-picker { display:block; }
.schedule-calendar-month { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.schedule-calendar-month button { padding:4px 8px; min-height:32px; }
.schedule-calendar-weekdays,.schedule-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; }
.schedule-calendar-weekdays { font-size:.7rem; color:var(--muted); margin-bottom:6px; }
.schedule-calendar-days button { padding:0; min-height:34px; border:0; border-radius:6px; background:transparent; color:var(--ink); font-size:.85rem; }
.schedule-calendar-days button:hover { background:#e3edf8; }
.schedule-calendar-days button.selected { background:var(--accent); color:white; }
.schedule-calendar-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); margin-top:10px; padding-top:10px; font-size:.8rem; }
.schedule-calendar-actions button { min-height:34px; padding:6px 14px; }
.shift-group-heading .shift-title { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.shift-group-heading .shift-title strong { min-width:0; }
.shift-group-heading .shift-details-trigger { flex:0 0 auto; padding:0 3px; font-size:1rem; text-decoration:none; }
.shift-group-heading .shift-details-trigger span { display:inline; }
.employee-shift-duty { display:inline; color:var(--muted); }

/* Compact date dropdown, with the same confirmation flow. */
#schedule-date-popover { width:260px; padding:9px; }
.schedule-calendar-month { margin-bottom:7px; font-size:.85rem; }
.schedule-calendar-month button { min-height:28px; padding:2px 7px; }
.schedule-calendar-days { gap:2px; }
.schedule-calendar-days button { min-height:28px; font-size:.8rem; }
.schedule-calendar-weekdays { margin-bottom:4px; font-size:.65rem; }
.schedule-calendar-actions { padding-top:7px; margin-top:7px; font-size:.75rem; }
.schedule-calendar-actions button { min-height:30px; padding:4px 12px; }
