/* Shared shell and explicitly themed Bootstrap surfaces. No page geometry is changed. */
html[data-bs-theme="dark"] body { --bs-body-bg:#101922; --bs-body-color:#edf2f7; --bs-secondary-color:#b7c4d1; --bs-tertiary-bg:#192431; --bs-secondary-bg:#213040; --bs-border-color:#455565; --bs-link-color:#a7d2ff; --bs-link-hover-color:#d2e7ff; --library-accent:#315b80; --staff-ink:#edf2f7; --staff-muted:#b7c4d1; --staff-accent:#405b70; --staff-line:#455565; --staff-soft:#192431; background:var(--cpl-canvas)!important; color:var(--cpl-ink); }
html[data-bs-theme="dark"] :is(.card,.modal-content,.offcanvas,dialog,.booking-combobox-results) { background-color:var(--cpl-surface); color:var(--cpl-ink); border-color:var(--cpl-line); }
html[data-bs-theme="dark"] :is(.form-control,.form-select) { background-color:#111c28; color:#edf2f7; border-color:#61758a; color-scheme:dark; }
html[data-bs-theme="dark"] :is(.form-control,.form-select)::placeholder { color:#aab8c7; opacity:1; }
html[data-bs-theme="dark"] :is(.form-control:disabled,.form-select:disabled,.form-control[readonly]) { background-color:#263442; color:#bdc8d3; }
html[data-bs-theme="dark"] .form-check-input { background-color:#111c28; border-color:#8194a7; }
html[data-bs-theme="dark"] .form-check-input:checked { background-color:#315b80; }
html[data-bs-theme="dark"] :is(.bg-white,.bg-light,.text-bg-light) { background-color:#213040!important; color:#edf2f7!important; }
html[data-bs-theme="dark"] :is(.text-dark,.text-body) { color:#edf2f7!important; }
html[data-bs-theme="dark"] .text-muted { color:#b7c4d1!important; }
html[data-bs-theme="dark"] .input-group-text { background-color:#213040; color:#c6d2df; border-color:#61758a; }
html[data-bs-theme="dark"] .table { --bs-table-color:#edf2f7; --bs-table-bg:transparent; --bs-table-striped-bg:#1d2b39; --bs-table-striped-color:#edf2f7; --bs-table-hover-bg:#26394c; --bs-table-hover-color:#fff; --bs-table-border-color:#455565; color:#edf2f7; }
html[data-bs-theme="dark"] .table-light { --bs-table-bg:#1d2b39; --bs-table-color:#edf2f7; --bs-table-border-color:#455565; }
html[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg:#192431; --bs-dropdown-color:#edf2f7; --bs-dropdown-link-color:#edf2f7; --bs-dropdown-link-hover-bg:#293c50; --bs-dropdown-link-hover-color:#fff; --bs-dropdown-border-color:#455565; }
html[data-bs-theme="dark"] .navbar-toggler-icon { filter:brightness(0) invert(1); }
html[data-bs-theme="dark"] .cpl-brand-logo-public { filter:brightness(0) invert(1); }
html[data-bs-theme="dark"] :is(.btn-library,.btn-primary,.btn-public-register) { color:#fff; }
html[data-bs-theme="dark"] .btn-secondary { --bs-btn-bg:#2a3c4e; --bs-btn-color:#edf2f7; --bs-btn-border-color:#71859a; --bs-btn-hover-bg:#38526a; --bs-btn-hover-color:#fff; }
html[data-bs-theme="dark"] :is(.btn-outline-primary,.btn-outline-secondary) { --bs-btn-color:#c4dfff; --bs-btn-border-color:#718ba6; --bs-btn-hover-bg:#315b80; --bs-btn-hover-color:#fff; }
html[data-bs-theme="dark"] .btn-link { color:#a7d2ff; }
html[data-bs-theme="dark"] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item):not(.schedule-booking):not(.staff-scope-pill):not(.workflow-dashboard-shortcut) { color:var(--cpl-link); }
html[data-bs-theme="dark"] :is(button,a,input,select,textarea,[tabindex]):focus-visible { outline:3px solid #9cd3ff!important; outline-offset:3px; }
html[data-bs-theme="dark"] .alert { --bs-alert-color:#edf2f7; }
html[data-bs-theme="dark"] .alert-danger { --bs-alert-bg:#43252b; --bs-alert-border-color:#b56d78; }
html[data-bs-theme="dark"] .alert-warning { --bs-alert-bg:#3d321b; --bs-alert-border-color:#ac8e48; }
html[data-bs-theme="dark"] .alert-success { --bs-alert-bg:#19392e; --bs-alert-border-color:#4f9b7a; }
html[data-bs-theme="dark"] .alert-info { --bs-alert-bg:#203348; --bs-alert-border-color:#6b8bad; }
html[data-bs-theme="dark"] [data-unavailable="1"] { color:#ffb4a9!important; }
/* Drawings and PDFs retain physical page colors, with no inversion of uploaded files. */
.room-setup-canvas-scroll svg,.room-setup-print-canvas svg,.room-setup-thumbnail svg { background:#fff!important; color:#233447; color-scheme:light; }
.workflow-dashboard { max-width:1100px; margin:1.25rem auto 2rem; }
.workflow-dashboard h1 { font-size:2.2rem; font-weight:650; letter-spacing:-.035em; }
.workflow-dashboard-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
.workflow-dashboard-card { display:flex; flex-direction:column; padding:2rem; border:1px solid var(--cpl-line); border-radius:.65rem; background:var(--cpl-surface); }
.workflow-step-label { font-size:.78rem; font-weight:650; text-transform:uppercase; letter-spacing:.08em; }
.workflow-dashboard-icon { font-size:3rem; margin:.8rem 0; color:var(--cpl-ink); line-height:1.3; }
.workflow-dashboard-card h2 { font-size:1.55rem; font-weight:650; }
.workflow-dashboard-card p { color:var(--cpl-muted); font-size:1.02rem; line-height:1.6; min-height:3.3rem; margin-bottom:1.5rem; }
.workflow-dashboard-shortcuts { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1.25rem; margin-top:1.5rem; }
.workflow-dashboard-shortcut { display:flex; flex-direction:column; gap:.7rem; align-items:center; justify-content:center; min-height:140px; padding:1.25rem; border:1px solid var(--cpl-line); border-radius:.65rem; color:var(--cpl-ink); background:var(--cpl-surface); text-decoration:none; text-align:center; font-size:1.15rem; font-weight:600; }
.workflow-dashboard-shortcut .bi { font-size:2.5rem; line-height:1.2; }
.workflow-dashboard-shortcut:hover { border-color:var(--cpl-link); color:var(--cpl-link); }
.workflow-dashboard a:focus-visible { outline:3px solid var(--cpl-link); outline-offset:4px; }
.appearance-footer { border-top:1px solid var(--cpl-line); color:var(--cpl-muted); max-width:1720px; margin-inline:auto; }
.appearance-select { width:auto!important; min-width:110px; min-height:36px!important; }
.patron-experience .appearance-footer { padding-bottom:calc(5rem + env(safe-area-inset-bottom))!important; }
.staff-directory-search { display:flex; gap:.75rem; align-items:stretch; }
.staff-directory-search .input-group { flex:1; }
.staff-directory-sort { color:inherit; text-decoration:none; white-space:nowrap; }
.staff-directory-sort .bi { font-size:.7em; margin-left:.35rem; }
.staff-directory-table td { max-width:250px; overflow-wrap:anywhere; }
@media(max-width:767.98px) { .workflow-dashboard { margin-top:.5rem; }.workflow-dashboard-steps { grid-template-columns:1fr; }.workflow-dashboard-card { padding:1.4rem; }.workflow-dashboard-card p { min-height:0; }.workflow-dashboard-shortcuts { gap:.75rem; }.workflow-dashboard-shortcut { min-height:110px; font-size:1rem; }.staff-directory-search { flex-wrap:wrap; }.staff-directory-search .input-group { flex-basis:100%; } }
@media print { html[data-bs-theme="dark"] body,body { background:#fff!important; color:#000!important; --bs-body-bg:#fff; --bs-body-color:#000; --bs-secondary-color:#333; --bs-table-color:#000; --bs-table-bg:#fff; --staff-ink:#000; --staff-muted:#333; --staff-soft:#fff; --staff-line:#ccc; }
 .appearance-footer,.staff-navbar,.patron-navbar,.patron-mobile-nav { display:none!important; }
 html[data-bs-theme="dark"] :is(.card,.table,.table-light,dialog,.form-control,.form-select,.input-group-text,.bg-white,.bg-light,.text-bg-light) { background:#fff!important; color:#000!important; --bs-table-bg:#fff; --bs-table-color:#000; border-color:#ccc; }
 html[data-bs-theme="dark"] a:not(.btn) { color:#000!important; }
}
html[data-bs-theme="dark"] .patron-mobile-nav { background:rgba(16,25,34,.97); border-color:#455565; }
html[data-bs-theme="dark"] .patron-login-button:hover { background:#293c50; color:#edf2f7; }
@media print { html[data-bs-theme="dark"] .patron-mobile-nav { display:none!important; } }

@media print { html { color-scheme:light!important; } }
html[data-bs-theme="dark"] .text-secondary { color:#b7c4d1!important; }
html[data-bs-theme="dark"] .text-primary { color:#add8ff!important; }
html[data-bs-theme="dark"] .text-success { color:#a6e2bf!important; }
html[data-bs-theme="dark"] .text-danger { color:#ffb4ab!important; }
@media print { html[data-bs-theme="dark"] :is(.text-secondary,.text-primary,.text-success,.text-danger) { color:#333!important; } }
@media print { html[data-bs-theme="dark"] :is(.text-dark,.text-body,.text-muted) { color:#000!important; } }
/* v7.09 — public List controls shared with staff lists, in both appearances. */
.staff-experience :is(.staff-list-search-toolbar,.staff-directory-search) { display:flex; align-items:center; gap:1rem; flex-wrap:nowrap; }
.staff-experience .staff-list-search-field { position:relative; flex:1; min-width:0; }
.staff-experience .staff-list-search-field > :is(.bi,svg) { position:absolute; inset:50% auto auto 1.1rem; transform:translateY(-50%); width:18px; height:18px; color:var(--cpl-fg-59616d,#59616d); pointer-events:none; }
.staff-experience .staff-list-search-field > .form-control { border-radius:999px!important; padding:.8rem 1.25rem .8rem 2.8rem; min-height:52px; background:var(--cpl-bg-fff,#fff); border-color:var(--cpl-line-dfe3e8,#dfe3e8); font-size:1rem; }
.staff-experience :is(.staff-list-controls,.staff-directory-search) .staff-list-filter-toggle { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:.55rem; min-height:52px; padding:.75rem 1.2rem; background:var(--cpl-bg-f3f4f6,#f3f4f6)!important; border:1px solid var(--cpl-line-dce1e7,#dce1e7)!important; color:var(--cpl-fg-29394a,#29394a)!important; border-radius:12px!important; font-size:1rem; font-weight:600; }
.staff-experience :is(.staff-list-controls,.staff-directory-search) .staff-list-filter-toggle:is(:hover,[aria-expanded="true"]) { background:var(--cpl-bg-eaf0f6,#eaf0f6)!important; border-color:var(--cpl-line-b9c8d8,#b9c8d8)!important; color:var(--cpl-fg-244a73,#244a73)!important; }
.staff-experience #attendanceListsTable .staff-category-pill { white-space:nowrap; overflow-wrap:normal; width:var(--staff-category-pill-width,224px); min-width:var(--staff-category-pill-width,224px); max-width:var(--staff-category-pill-width,224px); }
.staff-experience .evaluation-primary-action { background:var(--staff-accent)!important; border-color:var(--staff-accent)!important; color:#fff!important; }
@media(max-width:575.98px) { .staff-experience :is(.staff-list-search-toolbar,.staff-directory-search) { gap:.6rem; }.staff-experience :is(.staff-list-controls,.staff-directory-search) .staff-list-filter-toggle { padding-inline:.85rem; } }
html[data-bs-theme="dark"] .staff-experience .staff-list-search-field > .form-control { background:var(--cpl-bg-fff,#fff); border-color:#61758a; }

/* v7.10 official dashboard — Split Actions 02. */
.staff-experience .workflow-dashboard-card { padding:0; overflow:hidden; }
.workflow-card-content { display:flex; flex-direction:column; align-items:center; text-align:center; padding:2rem 1.75rem 1.65rem; flex:1; }
.workflow-card-content .workflow-dashboard-icon { margin:0 0 .85rem; font-size:3rem; }
.workflow-card-content .workflow-step-label { color:var(--cpl-muted); margin-bottom:.6rem; }
.workflow-card-content h2 { margin-bottom:.65rem; }
.workflow-card-content p { max-width:26rem; margin:0; min-height:3.3rem; }
.workflow-card-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--cpl-line); padding:.7rem 0; background:var(--cpl-surface); }
.staff-experience .workflow-split-action { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.65rem; min-height:96px; padding:.75rem 1rem; color:var(--cpl-link); background:transparent; border:0; border-radius:0; text-align:center; text-decoration:none; line-height:1.45; font-size:.95rem; font-weight:500; }
.staff-experience .workflow-split-primary { font-weight:650; color:var(--cpl-accent); }
.workflow-split-action + .workflow-split-action { border-left:1px solid var(--cpl-line); }
.workflow-split-icon { font-size:1.7rem; line-height:1.1; }
.workflow-split-action span { overflow-wrap:break-word; }
.workflow-split-action span .bi-arrow-right { display:inline-block; margin-left:.2rem; }
.staff-experience .workflow-split-action:hover { background:var(--staff-soft); color:var(--cpl-link); }
.staff-experience .workflow-split-action:focus-visible { outline:3px solid var(--cpl-link); outline-offset:-5px; background:var(--staff-soft); }
html[data-bs-theme="dark"] .staff-experience .workflow-split-primary { color:#d4e7fb!important; }
@media(max-width:767.98px) { .workflow-card-content { padding:1.5rem 1.2rem; }.workflow-card-content p { min-height:0; }.staff-experience .workflow-split-action { padding:.65rem .75rem; min-height:94px; font-size:.9rem; } }
@media print { .workflow-card-actions { display:none; } }
html[data-bs-theme="dark"] .staff-experience .workflow-split-action:is(:hover,:focus-visible) { background:#24384c; }
.workflow-split-action .workflow-action-tail { display:inline-block; white-space:nowrap; }

/* Center dashboard totals in both staff experiences. */
.dashboard-count-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.4rem;min-height:130px}
.dashboard-count-card strong,.dashboard-count-card span{text-align:center;width:100%}
.dashboard-my-all a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:32px;text-underline-offset:3px}
.dashboard-count-card:focus-visible,.dashboard-my-all a:focus-visible{outline:3px solid var(--cpl-link);outline-offset:3px}
