:root{
  --sta-blue:#1a237e;
  --sta-gold:#fbc02d;
  --bg:#f0f2f5;
  --card:#ffffff;
  --steel:#dae2ed;
  --steel-border:#b8c6d9;
  --steel-text:#5a718a;
  --muted:#64748b;
  --border:#e0e0e0;
  --radius:12px;
  --shadow:0 5px 15px rgba(26,35,126,0.25);
  --shadow-soft:0 4px 12px rgba(0,0,0,0.08);
  --form-stack-gap:14px;
  --new-absence-slide-open-duration:1.45s;
  --new-absence-slide-close-duration:.68s;
  --new-absence-slide-ease:cubic-bezier(0.25,0.7,0.25,1);
}
*{box-sizing:border-box}
html{overflow-y:scroll;scrollbar-gutter:stable}
/* Reserve the scrollbar gutter even while a modal locks scroll (overflow:hidden), so opening a modal doesn't
   widen the page and shift right-anchored content (the welcome/logout cluster). scrollbar-gutter keeps the
   gutter; overflow:hidden still suppresses the bar + freezes scroll. */
html.modal-open{overflow:hidden}
body{margin:0;padding:20px;background:var(--bg);font-family:'Roboto',sans-serif;color:#0f172a}
body.modal-open:not(.modal-background-scroll){overflow:hidden}
body,.modal,.inline-row-editor-modal,.teacherout-inbox-detail-title,.teacherout-inbox-detail-meta,.teacherout-inbox-summary-card,.teacherout-inbox-preview-body,.detail-grid,.summary-card,.btn,input,select,textarea,button{font-family:'Roboto',sans-serif}
/* overflow-x:clip on the app container chain: a wide scroll-box table (e.g. Documents) makes mobile Chrome
   report document-level horizontal overflow even though the table is clipped inside its own .dt-scroll box
   (Android counts the table's intrinsic width toward the page). Clipping here absorbs that phantom overflow so
   the page fills the screen; the table still scrolls inside .dt-scroll. clip (not hidden) keeps sticky/position
   working and lets fixed-position menus/modals escape. Pairs with minimum-scale=1 (caps the layout viewport). */
.page{max-width:1360px;margin:0 auto;overflow-x:clip}
.topbar{position:relative;background:#fff;border-bottom:3px solid var(--sta-gold);padding:20px 30px;margin:-20px -20px 18px;min-height:118px;display:flex;justify-content:flex-start;align-items:center}
.view-as-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-18px -20px 18px;padding:10px 28px;background:#fff4ce;border-bottom:1px solid #e8c45d;color:#4b3600;font-weight:800;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.view-as-banner span{font-weight:700;color:#725400}
.view-as-banner em{font-style:normal;color:#9a2f12}
.view-as-banner .btn{margin-left:auto;min-height:34px;padding:0 12px;font-size:.78rem}
.brand-lockup{display:inline-flex;align-items:center;gap:18px;text-decoration:none;color:var(--sta-blue);min-width:0}
.brand-mark{width:82px;height:82px;border-radius:17px;display:block;object-fit:contain;background:transparent;box-shadow:0 5px 14px rgba(26,35,126,.18)}
.brand-copy{display:flex;flex-direction:column;line-height:1.08;min-width:0}
.brand-name{font-size:2.08rem;color:var(--sta-blue);font-weight:900;letter-spacing:.2px}
.brand-org{margin-top:5px;color:var(--muted);font-size:.92rem;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
.environment-badge{display:inline-flex;align-items:center;align-self:flex-start;margin-top:9px;width:max-content;border:1px solid #b91c1c;background:#fff7ed;color:#7f1d1d;border-radius:6px;padding:5px 9px;font-size:.74rem;font-weight:900;line-height:1;letter-spacing:0;text-transform:uppercase;box-shadow:0 2px 6px rgba(127,29,29,.12)}
.brand-title{font-size:2rem;color:var(--sta-blue);font-weight:900;letter-spacing:.4px}
.brand-logo{height:90px}
.identity-panel{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:9px;min-width:0}
.identity{text-align:right;color:var(--sta-blue);min-width:0;max-width:min(460px,calc(100vw - 560px))}
.identity-welcome{font-weight:800;font-size:1.18rem;color:var(--sta-blue)}
.identity-name,.identity-role{font-weight:900;color:var(--sta-blue)}
.header-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;z-index:2}
.app-prefs-btn{padding:8px 11px;display:inline-flex;align-items:center;justify-content:center}
.app-prefs-btn .material-icons{font-size:20px;line-height:1}
.nav-tabs{display:flex;gap:12px;flex-wrap:wrap;max-width:820px;margin:10px auto 25px}
.nav-tabs a{text-decoration:none;flex:1;padding:14px;text-align:center;background:var(--steel);border:1px solid var(--steel-border);border-radius:12px;color:var(--steel-text);font-weight:700;text-transform:uppercase;letter-spacing:.8px;font-size:.85rem;transition:.25s ease;box-shadow:inset 0 2px 4px rgba(0,0,0,.04);display:flex;align-items:center;justify-content:center;min-height:50px}
.nav-tabs a:hover{border-color:#9fb0c8;color:var(--sta-blue);box-shadow:0 4px 10px rgba(15,23,42,.08)}
.nav-tabs a.active{background:var(--sta-blue);border-color:var(--sta-blue);color:#fff;border-bottom:5px solid var(--sta-gold);box-shadow:var(--shadow);transform:translateY(-2px)}
.app-shell{position:relative;display:grid;grid-template-columns:154px minmax(0,1fr);gap:18px;align-items:start}
.app-rail{position:sticky;top:14px;display:grid;gap:10px;padding:10px;border:1px solid #d8e0ee;border-radius:12px;background:#fff;box-shadow:var(--shadow-soft)}
.app-rail-viewport,.app-rail-track{display:contents}
.app-rail-button{display:flex;align-items:center;justify-content:center;min-height:58px;padding:11px 10px;border:1px solid #d7dfeb;border-radius:10px;background:#f8fafc;color:#334155;text-decoration:none;font-weight:900;line-height:1.15;text-align:center;transition:.15s ease}
.app-rail-icon,.app-rail-edge{display:none}
.app-rail-button:hover{border-color:#9fb0c8;color:var(--sta-blue);box-shadow:0 4px 10px rgba(15,23,42,.08)}
.app-rail-button.active{background:var(--sta-blue);border-color:var(--sta-blue);color:#fff;box-shadow:var(--shadow)}
.app-shell-main{min-width:0;overflow-x:clip}
.app-tab-strip{min-height:78px}
.app-tabs{max-width:none;margin:0 0 18px}
.app-tabs[hidden]{display:none!important}
.app-tabs a{border-radius:10px;font-size:.78rem;letter-spacing:.35px;min-height:46px;padding:11px 10px}
.mobile-page-selector{display:none}
.app-content{min-width:0;overflow-x:clip}
/* Workspace grid items must be allowed to shrink (default grid min-width is auto), or a wide child (e.g.
   the DocDesk settings table or the generated PDF preview) forces the whole page wider than a phone -> the
   browser zooms out and the top menu shrinks. Completes the min-width:0 hardening already on the ancestors. */
.workspace>*{min-width:0}
.app-shell[data-app-hydrating="1"] .app-content{opacity:0;pointer-events:none}
.app-hydration-veil{position:absolute;inset:-14px 0 0;z-index:20;display:flex;justify-content:center;align-items:flex-start;padding-top:132px;background:rgba(240,242,245,.82);transition:opacity .18s ease}
.app-shell:not([data-app-hydrating="1"]) .app-hydration-veil{opacity:0;pointer-events:none}
.app-hydration-toast{display:inline-flex;align-items:baseline;gap:8px;min-width:320px;justify-content:center;border:2px solid #d8e0ee;border-radius:14px;background:rgba(255,255,255,.97);color:var(--sta-blue);font-size:22px;font-weight:900;box-shadow:0 16px 38px rgba(10,25,60,.18);padding:24px 32px;line-height:1.1}
/* Desktop navigation preview: keep the established document-scrolling layout and rail dimensions. The rail's
   sticky edge follows page scroll direction only when the full rail is taller than the available viewport. */
@media (min-width:1024px){
  html[data-desktop-nav-preview="1"][data-app-rail-sticky-edge] body[data-app-workspace="1"] .app-rail{top:var(--app-rail-sticky-top);bottom:auto;transition:none}
  html[data-desktop-nav-preview="1"][data-app-rail-sticky-edge]:not([data-app-rail-sticky-edge="tracking"]) body[data-app-workspace="1"] .app-rail{transition:top 420ms cubic-bezier(.4,0,.2,1)}
  .desktop-nav-preview-toggle{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 9px;font-size:.8rem;white-space:nowrap}
  .desktop-nav-preview-toggle .material-icons{font-size:18px;line-height:1}
}
@media (min-width:1024px) and (prefers-reduced-motion:reduce){
  html[data-desktop-nav-preview="1"][data-app-rail-sticky-edge] body[data-app-workspace="1"] .app-rail{transition:none}
  html[data-desktop-nav-preview="1"][data-app-rail-sticky-edge]:not([data-app-rail-sticky-edge="tracking"]) body[data-app-workspace="1"] .app-rail{transition:none}
}
@media (max-width:1023px){.desktop-nav-preview-toggle{display:none!important}}
@media (min-width:1024px) and (max-width:1180px){.desktop-nav-preview-toggle-label{display:none}}
.app-placeholder-grid.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-tools-shell.admin-tools-shell-embedded{min-height:0;border:1px solid #e1e7f0;border-radius:12px;overflow:hidden;box-shadow:var(--shadow-soft)}
.admin-reference-table th,.admin-reference-table td{vertical-align:top}
.card{background:var(--card);border-radius:12px;box-shadow:var(--shadow-soft);padding:25px;margin-bottom:18px}
.card.wide{max-width:1200px;margin-inline:auto}
.card.narrow{max-width:640px;margin-inline:auto}
.section-title{margin:0 0 14px;color:var(--sta-blue);font-weight:900}
.workspace-panel{min-width:0}
.workspace-panel--standard{width:100%;max-width:1200px;margin:0 auto 18px;padding:25px;border-radius:12px;background:var(--card);box-shadow:var(--shadow-soft)}
/* Existing page renderers historically supplied their own outer card. The routed workspace panel now owns that
   surface, so neutralize only the direct legacy shell instead of creating a visible card inside a card. */
.workspace-panel--standard>.card,.workspace-panel--standard>.workspace-pad>.card{max-width:none;margin:0;padding:0;border-radius:0;background:transparent;box-shadow:none}
.workspace-panel--standard>.workspace-panel-loading{width:100%;min-height:100vh}
.workspace-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 16px}
.workspace-page-heading{min-width:0;flex:1 1 auto}
.workspace-page-title{margin:0;color:var(--sta-blue);font-size:1.5rem;line-height:1.2;font-weight:900;text-transform:none}
.workspace-page-description{margin:6px 0 0}
.workspace-page-actions{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.workspace-page-actions .btn{background:#fff;border:1px solid var(--sta-blue);color:var(--sta-blue)}
.workspace-page-actions .btn:hover{background:#f5f7ff;border-color:var(--sta-blue);color:var(--sta-blue)}
.workspace-page-actions .btn:active{background:#eef2ff}
.workspace-page-actions .btn:disabled{background:#fff;color:#8793b8;border-color:#bdc6dd;box-shadow:none}
.subtle,.muted{color:var(--muted)}
.page-kicker{margin:-4px 0 16px;color:var(--muted);font-weight:400;line-height:1.35}
.alert{padding:12px 14px;border-radius:12px;border:1px solid #f1d48f;background:#fff8e1;color:#8a5c00;margin:0 0 12px}
.alert.alert-error{background:#fdecea;color:#9b1c1c;border-color:#ef9a9a}
.alert.alert-success{background:#e8f5e9;color:#1b5e20;border-color:#a5d6a7}
.confirm-bar,.refresh-banner{border:1px solid #f1d48f;background:#fff8e1;color:#8a5c00;border-radius:12px;padding:14px 16px;margin:12px 0}
.confirm-bar strong,.refresh-banner strong{display:block;color:#7a4b00;font-weight:900;margin-bottom:4px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.summary-card{border:1px solid #e5e9f2;border-radius:12px;background:#fff;padding:12px 14px;box-shadow:0 2px 8px rgba(26,35,126,.06)}
.summary-card.warning{background:#fff8e1;border-color:#f6d17c}
.summary-card.error{background:#fdecea;border-color:#ef9a9a}
.summary-label{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}
.summary-value{margin-top:5px;color:var(--sta-blue);font-weight:900;line-height:1.25}
.action-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0 16px}
.action-bar.danger{justify-content:space-between}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.detail-cell{border:1px solid #e5e9f2;border-radius:12px;background:#fff;padding:10px 12px;min-width:0}
.detail-label{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.detail-value{margin-top:4px;color:#0f172a;font-weight:700;overflow-wrap:anywhere}
.empty-state{border:1px dashed #d5dbe7;border-radius:12px;background:#fff;padding:14px;color:var(--muted);font-weight:700}
.inline{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.field{display:flex;flex-direction:column;gap:6px}
.field[hidden],.field-row[hidden],.inline-editor-field[hidden]{display:none!important}
/* Shared responsive form rows. Individual workflows may tune column proportions with an extra row class. */
.field-row{display:flex;gap:14px;flex-wrap:wrap}
.field-row>.field{flex:1 1 200px;min-width:0}
.checkpoint-agreement-pay-row>.field{flex:1 1 0}
.checkpoint-component-date-basis>.field{flex:1 1 0}
.checkpoint-component-date-basis>.field:last-child{flex-grow:2}
/* A row owns the horizontal gap between its fields; adjacent shared rows own the vertical gap between the
   previous controls and the next labels. Without this shared rhythm, stacked form rows visually collide. */
.field-row+.field-row,.field-row+.field,.field+.field-row{margin-top:16px}
/* Parent-owned vertical form rhythm. Apply this to forms or form sections whose direct children are fields,
   responsive field rows, conditional groups, or action rows. The parent gap crosses wrapper/form boundaries;
   direct field/row margins are reset so older sibling rules cannot double the shared spacing. */
.form-stack{display:grid;gap:var(--form-stack-gap)}
.form-stack>.field,.form-stack>.field-row{margin-top:0}
/* Shared grid contract for modal forms that need predictable desktop columns and one-column phone layout. */
.form-grid{display:grid;gap:12px 16px;min-width:0}
.form-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid>label{min-width:0;display:grid;gap:5px}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-width:0}
.bus-parent-invite-form>label{display:grid;gap:5px;min-width:0}
.bus-parent-invite-form>label>input{width:100%;min-width:0}
/* Accounting-negative money cell (red parentheses) rendered by checkPointMoneyCell(). */
.cp-neg{color:#b91c1c}
/* Checks-tab per-check breakdown (the drill under each collapsible check). */
.checkpoint-breakdown{display:flex;flex-direction:column;gap:1px}
.checkpoint-breakdown-row{display:flex;justify-content:space-between;gap:16px;padding:3px 0}
.checkpoint-breakdown-row.is-strong{font-weight:800;border-top:1px solid #e5e9f2;margin-top:4px;padding-top:6px}
.checkpoint-breakdown-note{font-weight:800;color:var(--sta-blue);margin:6px 0 2px;font-size:.85rem}
.checkpoint-src-list{margin:1px 0 8px 18px;padding:0;list-style:disc;color:#334155}
.checkpoint-src-list li{margin:2px 0}
.checkpoint-src-amt{font-weight:800}
.checkpoint-check-net{font-weight:800;color:#0f172a}
label{color:var(--sta-blue);font-weight:800;font-size:.9rem}
/* Touch-sized text controls. Checkboxes/radios are EXCLUDED so the global height:48px doesn't stretch them into
   13x48 slivers -- their native square is correct, and the few places that want a specific box size set it locally.
   The exclusion is wrapped in :where() so it adds ZERO specificity: this rule stays at `input`-level (0,0,1), letting
   lighter class rules like .dt-filter-control{height:42px} still win (a plain :not(...):not(...) would outrank them). */
input:where(:not([type="checkbox"]):not([type="radio"])),select,textarea{border:1px solid #ddd;border-radius:8px;background:#fff;height:48px;padding:0 12px;font-size:16px;font-family:'Roboto',sans-serif}
textarea{height:auto;min-height:90px;padding:12px;resize:vertical}
/* Text-field focus styling: the gold underline is for text-like inputs only -- excluding checkbox/radio
   (a tap focuses them but :focus-visible does not fire, so they used to pick up a stray gold border/line). */
input:not([type="checkbox"]):not([type="radio"]):focus,select:focus,textarea:focus{outline:none;border-color:var(--sta-gold);box-shadow:0 1px 0 0 var(--sta-gold)}
input[type="checkbox"]{accent-color:var(--sta-blue)}
input[type="checkbox"]:focus-visible{outline:2px solid #94a3b8;outline-offset:1px;box-shadow:none}
.btn{border:none;border-radius:12px;padding:12px 18px;font-weight:900;letter-spacing:1px;text-transform:uppercase;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:.15s ease;background:var(--sta-blue);color:#fff;box-shadow:0 4px 12px rgba(26,35,126,.18)}
.btn[hidden]{display:none!important}
.btn.primary{background:var(--sta-blue);color:#fff;box-shadow:0 4px 12px rgba(26,35,126,.18)}
.btn.secondary{background:#fff;color:var(--sta-blue);border:1px solid #ddd}
.btn.gold{background:var(--sta-gold);color:var(--sta-blue)}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 7px 16px rgba(26,35,126,.18)}
.btn:active:not(:disabled){transform:translateY(0);box-shadow:0 3px 8px rgba(26,35,126,.16)}
.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.pills{display:flex;gap:8px;flex-wrap:wrap}
.pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:.82rem;font-weight:800;border:1px solid #d7dfeb;background:#eceff1;color:#334155}
.pill.open{background:#fff8e1;color:#8a5c00;border-color:#f6d17c}
.pill.filled,.pill.linked,.pill.success{background:#e8f5e9;color:#1b5e20;border-color:#a5d6a7}
.pill.pending{background:#dfe8ff;color:#1e3a8a;border-color:#b9c9ff}
.pill.error,.pill.warning{background:#fdecea;color:#9b1c1c;border-color:#ef9a9a}
.pill.none{background:#eceff1;color:#475569;border-color:#cbd5e1}
.browser{border:1px solid #e5e9f2;border-radius:14px;overflow:hidden;background:#fff}
.browser-head{display:grid;gap:12px;padding:14px 16px;background:#f5f7fb;color:var(--sta-blue);font-size:.78rem;font-weight:900;letter-spacing:.6px;text-transform:uppercase;border-bottom:1px solid #e5e9f2}
.browser-row{display:grid;gap:12px;padding:14px 16px;border-bottom:1px solid #eef2f7;background:#fff;transition:background 0.15s ease,transform 0.15s ease,box-shadow 0.15s ease;position:relative;color:inherit;text-decoration:none;cursor:pointer}
button.browser-row{appearance:none;border-width:0 0 1px;border-style:solid;border-color:#eef2f7;width:100%;font:inherit;text-align:inherit}
.browser-row[hidden]{display:none!important}
.placement-browser-head,.placement-browser-row{grid-template-columns:minmax(180px,1.1fr) minmax(180px,1.1fr) minmax(170px,1fr) 130px minmax(140px,.9fr) 130px 86px}
.inbox-browser-head,.inbox-browser-row{grid-template-columns:38px 140px 112px minmax(180px,1fr) minmax(220px,1.3fr) 96px}
.browser-row:nth-child(even),.leave-balances-row:not(.events-alt-row){background:#fbfcff}
.browser-row.events-alt-row,.leave-balances-row.events-alt-row{background:#f6f8fc}
.browser-row:hover{background:#f9fbff;box-shadow:inset 0 0 0 1px #dce7ff}
.browser-row:focus-visible{outline:3px solid rgba(251,192,45,.72);outline-offset:-3px}
.browser-row.pending,.browser-row.inline-row-pending,.browser-row[data-inline-state="pending"]{background:#eef4ff;pointer-events:none;user-select:none;opacity:.72;cursor:progress}
.browser-row.pending::before,.browser-row.inline-row-pending::before,.browser-row[data-inline-state="pending"]::before,.browser-row.selected::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#365adf,#1a237e)}
.browser-row.pending::after,.browser-row.inline-row-pending::after,.browser-row[data-inline-state="pending"]::after{content:'';position:absolute;right:14px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:999px;border:2px solid #b9c9ff;border-top-color:var(--sta-blue);animation:rowspin .8s linear infinite}
.browser-row.selected{background:#eef4ff;box-shadow:inset 0 0 0 1px #c9d8ff}
.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.row-action-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border-radius:10px;border:1px solid #d7dfeb;background:#fff;color:var(--sta-blue);font-weight:900;font-size:.78rem;text-decoration:none}
.row-action-link:hover{border-color:var(--sta-blue);box-shadow:0 4px 10px rgba(26,35,126,.1)}
.leave-balances-head{padding:15px 20px;font-size:.95rem;letter-spacing:0;text-transform:none;background:#eef2f7;border-bottom-color:#d9e1ee}
.sort-caret{display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;opacity:0}
/* BrowserTable helper (php-app/docs/TABLE_MODAL_PARITY_GUIDE.md) — additive; owns its own header (.dt-head),
   filter strip (.dt-filters) and bulk bar; reuses .browser card border / .browser-row zebra / .sort-caret. */
/* min-width:0 lets the wrapper shrink below the table's natural width. .dt-scroll is the bordered "card" AND
   the horizontal-scroll box: the inner .dt-card carries a computed min-width (the table's natural width) and
   stops clipping (overflow:visible), so a too-wide table OVERFLOWS into .dt-scroll and scrolls there instead
   of being clipped to the box. (overflow-y:hidden keeps the box from trapping vertical scroll; the box height
   is auto so rows never clip.) */
.dt{min-width:0;max-width:100%}
.dt-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border:1px solid #e5e9f2;border-radius:14px;background:#fff}
/* P5: opt-in sticky header (default off — added only when stickyHeader:true). The .dt-scroll box becomes a bounded
   vertical scroller and the <thead> cells pin to its top, so long lists keep their column headers in view. */
.dt-sticky-header .dt-scroll{overflow-y:auto;max-height:min(60vh,560px)}
.dt-sticky-header thead .dt-col{position:sticky;top:0;z-index:3}
/* PR-1 (Round-2): a PAGINATED table renders only a page-sized slice, so it must NOT get the inner vertical
   scrollbox — render the page at natural height and let the PAGE scroll (the header pins to the page instead). */
.dt-sticky-header.dt-paginated .dt-scroll{overflow-y:visible;max-height:none}
/* The card is a REAL <table> (not a CSS grid): a grid wider than the viewport makes mobile browsers widen the
   layout viewport and zoom the whole page out -- no overflow/contain can stop it -- whereas a <table> in the
   .dt-scroll box scrolls cleanly. table-layout:fixed + the <colgroup> percentages reproduce the old grid's
   fr-proportional columns; the inline min-width makes it overflow (and the box scroll) when too narrow. */
.dt-card{width:100%;border-collapse:collapse;background:transparent;table-layout:fixed}
.dt-empty-cell{padding:0;border:0}
.dt-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 14px;margin:10px 0 14px}
.dt-filter-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.dt-filter-field>label{font-size:.72rem;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#64748b}
.dt-filter-control{border:1px solid #dbe4f0;border-radius:8px;padding:8px 12px;font:inherit;background:#fff;color:#111827;min-width:0;height:42px}
select.dt-filter-control{min-width:170px;cursor:pointer}
.dt-filter-search .dt-filter-control{min-width:220px;max-width:100%}
.dt-daterange-inputs{display:flex;align-items:center;gap:6px}
.dt-daterange-sep{color:#94a3b8}
.dt-filter-reset{height:42px}
.dt-filter-toggle-control{display:flex;align-items:center;gap:9px;height:42px;padding:0 12px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#334155;font-weight:600;white-space:nowrap}
.dt-filter-toggle-control input{width:18px;height:18px;margin:0}
.dt-count{margin-left:auto;align-self:center;color:#64748b;font-size:.85rem;font-weight:600;white-space:nowrap}
.dt-search-input{max-width:100%}
.dt-combo{position:relative;min-width:220px}
.dt-combo .dt-filter-control{width:100%;padding-right:72px}
.dt-combo-clear,.dt-combo-toggle{position:absolute;top:0;width:34px;height:42px;border:0;background:transparent;color:#64748b;cursor:pointer}
.dt-combo-clear{right:34px;font-size:20px}.dt-combo-toggle{right:0}.dt-combo-toggle span{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor}
.dt-combo-menu{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow:auto;padding:6px;background:#fff;border:1px solid #dbe4f0;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.dt-combo-menu[hidden]{display:none}.dt-combo-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;text-align:left;font:inherit;color:#0f172a;cursor:pointer}.dt-combo-menu button[hidden]{display:none}.dt-combo-menu button:hover{background:#eef2ff}.dt-combo-empty{padding:9px 10px;color:#64748b}
.dt-bulk-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:8px 12px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px}
/* Always present so selecting rows never reflows the page; a disabled look until >=1 row is selected. The
   buttons stay clickable (no pointer-events:none) so the page handler can toast "select a row first". */
.dt-bulk-bar.is-disabled{background:#f6f8fc;border-color:#e2e8f0}
.dt-bulk-bar.is-disabled .dt-bulk-count{color:#94a3b8}
.dt-bulk-bar.is-disabled .btn{background:#eef1f6;color:#9aa7b8;border-color:#e2e8f0;box-shadow:none}
/* Ineligible actions remain clickable so their handler can explain the restriction, but still look inactive. */
.dt-bulk-bar .btn.is-disabled{background:#eef1f6;color:#9aa7b8;border-color:#e2e8f0;box-shadow:none;cursor:not-allowed}
.dt-bulk-count{font-weight:700;color:var(--sta-blue)}
.dt-bulk-actions{display:flex;gap:8px;flex-wrap:wrap}
/* The helper owns its header styling outright (bigger, sentence-case) rather than inheriting .browser-head,
   so it stands alone as the older tables are retired. align-items:center mirrors .dt-row so the header cells
   (incl. the select-all checkbox) line up vertically with the labels. */
.dt-head .dt-col{background:#eef2f7;color:var(--sta-blue);font-size:1.1rem;font-weight:900;letter-spacing:0;text-transform:none;border-bottom:1px solid #d9e1ee;padding:15px 20px;text-align:left;vertical-align:middle}
/* The header's hardcoded text-align:left (above) otherwise out-specifies .dt-align-right/center, so a
   right-aligned column's HEADER stayed left while its cells were right. Match the header to the cell alignment
   (the sortable header's .dt-sort-btn is inline-flex, so the th's text-align positions it). */
.dt-head .dt-col.dt-align-right{text-align:right}
.dt-head .dt-col.dt-align-center{text-align:center}
/* Every table checkbox renders as a uniform 16px square: the select-all/select-row boxes and any checkbox a
   table drops into a body cell (e.g. an inline toggle grid). Checkboxes are excluded from the global input
   height at the top of this file, so this just sets the intended box size. */
.dt-select-all,.dt-select-row{width:16px;height:16px;margin:0;cursor:pointer}
.dt .dt-cell input[type="checkbox"]{width:16px;height:16px;min-height:0}
/* Row zebra/hover live on the <tr> (a <tr> background shows through cells that set none); padding + the row
   divider live on the <td> (a <tr> can't carry padding). */
.dt-row{background:#fff}
.dt-row:nth-child(even){background:#fbfcff}
.dt-row[data-table-openable]{cursor:pointer}
.dt-row[data-table-openable]:hover{background:#eef2ff}
.dt-row[data-table-row-link]{position:relative}
/* A navigation row is backed by one real full-row anchor, preserving the browser's native context menu, Copy Link,
   and modified-click behavior. Ordinary cell content lets pointer events pass through to it; actual nested controls
   remain independently interactive above the overlay. */
.dt-row-link-overlay{position:absolute;inset:0;z-index:1;display:block;pointer-events:auto}
.dt-row[data-table-row-link] .dt-cell{pointer-events:none}
.dt-row[data-table-row-link] :is(a:not(.dt-row-link-overlay),button,input,label,select,textarea,summary,details,[data-table-action],.dt-row-menu){position:relative;z-index:2;pointer-events:auto}
.dt-cell{padding:14px 16px;border-bottom:1px solid #eef2f7;vertical-align:middle}
.dt-body .dt-row:last-child .dt-cell{border-bottom:0}
.dt-cell,.dt-col{min-width:0}
.dt-align-right{text-align:right;justify-content:flex-end}
.dt-align-center{text-align:center;justify-content:center}
.dt-sort-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.dt-sort-btn:hover{text-decoration:underline}
[data-table-sort-active="1"] .sort-caret{opacity:1}
[data-table-sort-active="1"][data-table-sort-dir="asc"] .sort-caret{border-bottom:6px solid currentColor}
[data-table-sort-active="1"][data-table-sort-dir="desc"] .sort-caret{border-top:6px solid currentColor}
.dt-primary{font-weight:600}
.dt-secondary{font-size:.82rem;color:#64748b}
.dt-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.staff-accounts-status-button{border:0;background:transparent;padding:0;cursor:pointer;text-align:left}
.staff-accounts-status-button:focus-visible{outline:2px solid var(--sta-gold);outline-offset:3px;border-radius:6px}
.staff-accounts-status-stack{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px}
.staff-accounts-status-meta{font-size:.76rem;color:#64748b;font-weight:500;line-height:1.1}
.staff-accounts-group-list{margin:4px 0 0 18px;padding:0}
.staff-accounts-review-person{display:flex;flex-direction:column;gap:3px;margin:14px 0 12px;padding:10px 12px;border-left:3px solid var(--sta-gold);background:rgba(246,248,252,.78)}
.staff-accounts-review-person-contact,.staff-accounts-review-candidate-contact,.staff-accounts-review-candidate-reference{color:#64748b;font-size:.86rem;line-height:1.4;overflow-wrap:anywhere}
.staff-accounts-review-candidates{display:flex;flex-direction:column;gap:10px;margin:10px 0 14px}
.staff-accounts-review-candidate{padding:10px 0;border-top:1px solid rgba(148,163,184,.3)}
.staff-accounts-review-candidate-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.staff-accounts-review-candidate-reference{font-size:.76rem;margin-top:3px}
.staff-accounts-review-candidate-link{display:inline-block;margin-top:6px;font-size:.82rem;font-weight:700;color:var(--sta-blue);overflow-wrap:anywhere}
@media (max-width:760px){.staff-accounts-review-candidate-main{flex-direction:column}.staff-accounts-review-candidate-main .btn{width:100%}}
.dt-action-btn{padding:4px 10px;font-size:.82rem}
/* The checkbox + kebab cells are NOT data cells: center them as real table cells (vertical-align/text-align) so
   they share the row's height + divider. display:flex on a <td> drops it out of the table's row-height
   equalization, so it collapses to its content height and its bottom border sits higher than the others. */
.dt-select-cell{text-align:center;vertical-align:middle}
.dt-row[hidden]{display:none!important}
.dt-expired{color:#b91c1c;font-weight:700}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Row kebab (⋮): a native <details> dropdown. Helper owns the chrome; the page fills .dt-row-menu-panel with
   action items (its .btn buttons are restyled here as full-width vertical menu rows). */
.dt-menu-cell,.dt-menu-col{text-align:center;vertical-align:middle}
.dt-row-menu{position:relative;display:inline-block}
.dt-row-menu-trigger{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:var(--sta-blue);font-size:1.25rem;line-height:1;user-select:none}
.dt-row-menu-trigger::-webkit-details-marker{display:none}
.dt-row-menu-trigger::marker{content:''}
.dt-row-menu-trigger:hover{background:#eef2ff}
.dt-row-menu[open] .dt-row-menu-trigger{background:#e0e7ff}
/* Base is absolute (fallback); on open the JS upgrades it to position:fixed with viewport coords so it
   escapes the card's overflow:hidden AND the .dt-scroll box (an abs-positioned child can't escape either).
   On mobile a media query turns it into a bottom sheet instead. */
.dt-row-menu-panel{position:absolute;right:0;top:calc(100% + 4px);z-index:1000;min-width:210px;background:#fff;border:1px solid #dbe4f0;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.18);padding:6px;display:flex;flex-direction:column;gap:2px}
.dt-row-menu-panel :is(.btn,.dt-menu-item){display:flex;width:100%;justify-content:flex-start;text-align:left;border:0;background:transparent;box-shadow:none;color:#0f172a;font:inherit;font-weight:600;padding:9px 10px;border-radius:8px;min-height:0;height:auto;appearance:none;cursor:pointer}
.dt-row-menu-panel :is(.btn,.dt-menu-item):hover{background:#eef2ff}
.dt-row-menu-panel :is(.btn,.dt-menu-item).danger{color:#b91c1c;background:transparent}
.dt-row-menu-panel :is(.btn,.dt-menu-item).danger:hover{background:#fdecea}
/* Responsive actions: an inline button row on desktop, a kebab + bottom-sheet on mobile (the kebab only ever shows
   below the breakpoint, so no JS positioning is needed -- the CSS bottom-sheet owns the small-screen layout). The
   page wraps its action buttons in <div class="dt-actions"><button class="dt-actions-trigger">&#8942;</button>
   <div class="dt-actions-menu">…buttons…</div></div> -- a plain <div> (not <details>) so the menu can never be hidden
   by the browser's closed-<details> content-hiding. Mobile toggles .is-open via JS. */
.dt-actions{position:relative}
.dt-actions-trigger{display:none}
.dt-actions-menu{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
/* Responsive (helper-owned). Below the app's 760px breakpoint each row becomes a labeled card-stack and the
   header is hidden; the kebab becomes a bottom sheet. Above it, .dt-scroll keeps a too-wide table from
   widening the page (you scroll the table inside its box instead). */
@media (max-width:760px){
  /* Card-stack mode: the <table> drops table layout (block) so each row is its own card; the colgroup +
     header are irrelevant here, and the inner card drops its desktop min-width so nothing forces width. */
  .dt-scroll{border:0;background:transparent;overflow:visible}
  .dt-card{display:block;min-width:0 !important;border:0;border-radius:0;background:transparent}
  .dt-card>colgroup,.dt-card>thead{display:none}
  .dt-head{display:none}
  .dt-body{display:flex;flex-direction:column;gap:10px}
  .dt-row{display:block !important;position:relative;border:1px solid #e5e9f2;border-radius:12px;background:#fff !important;padding:14px;box-shadow:0 1px 3px rgba(15,23,42,.06)}
  .dt-row:hover{box-shadow:0 1px 3px rgba(15,23,42,.06)}
  /* Card-stack cells wrap long unbreakable values (Drive ids, urls, long emails) instead of running off the card --
     the card-stack invariant (desktop uses .dt-scroll instead). .dt-primary content sets white-space:nowrap below,
     so it still truncates with an ellipsis rather than wrapping; only raw cell text is affected. */
  .dt-cell{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:5px 0;border-bottom:0;text-align:left !important;min-width:0;overflow-wrap:anywhere}
  .dt-cell::before{content:attr(data-label);font-size:.7rem;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#64748b;flex:0 0 auto}
  .dt-cell[data-label=""]::before,.dt-menu-cell::before,.dt-select-cell::before{content:none}
  /* Drop secondary lines on mobile by default — most are in the row's detail modal — and keep the primary
     value from overflowing the card (long names/emails truncate instead of spilling off the right edge). */
  .dt-cell .dt-secondary{display:none}
  /* A column may opt an important secondary value back into the phone card (for example, the weekday beneath an
     absence date). The label stays left while both value lines stack and align right. */
  .dt-cell.dt-mobile-secondary{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start}
  .dt-cell.dt-mobile-secondary::before{grid-column:1;grid-row:1 / span 2}
  .dt-cell.dt-mobile-secondary .dt-primary,.dt-cell.dt-mobile-secondary .dt-secondary{grid-column:2;text-align:right;min-width:0}
  .dt-cell.dt-mobile-secondary .dt-secondary{display:block;margin-top:2px}
  .dt-cell:not(.dt-cell-primary) .dt-primary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
  /* First content cell = the card title (e.g. Document): bold, no label. */
  .dt-cell-primary{display:block;font-size:1.05rem;font-weight:700;padding:0 0 6px}
  .dt-cell-primary::before{content:none}
  /* Dense numeric tables can opt into compact cards without changing the shared readable default. Their row
     content (for example, leave-balance metrics) already has an intentional minimum height, so the ordinary
     cell padding would otherwise be counted again on every line. */
  .dt[data-table-mobile-card-density="compact"] .dt-row{padding:12px}
  .dt[data-table-mobile-card-density="compact"] .dt-cell{padding-top:0;padding-bottom:0}
  .dt[data-table-mobile-card-density="compact"] .dt-cell-primary{padding-bottom:4px}
  .dt[data-table-mobile-card-density="compact"] .dt-row:has(.dt-select-cell){padding-left:40px}
  .dt[data-table-mobile-card-density="compact"] .dt-select-cell{top:12px}
  /* Reset the desktop name|value split on the card-stack: the card title stays dark + no divider. */
  .dt-settings-row .dt-cell-primary{color:#1f2a44}
  .dt-settings-row > .dt-cell.dt-cell-primary{border-right:0}
  .settings-summary{display:none}
  /* Checkbox top-left (with a card gutter) + kebab top-right, only when those features are present. */
  .dt-row:has(.dt-select-cell){padding-left:42px}
  /* The checkbox cell is .dt-cell now (table refactor), so reset its card-stack data-cell styling (flex + gap +
     the empty ::before label) back to a bare checkbox — otherwise the gap shoves it against the title. */
  .dt-select-cell{position:absolute;top:14px;left:12px;width:auto;display:block;padding:0}
  .dt-row:has(.dt-menu-cell) .dt-cell-primary{padding-right:40px}
  /* A sticky first column is useful on the wide table, but in card mode its opaque z-index:2 cell can
     overlap the trailing action cell. Keep the kebab above that shared sticky layer without changing
     the desktop/landscape table behavior. */
  .dt-menu-cell{position:absolute;top:8px;right:8px;display:block;padding:0;z-index:3}
  /* Lift the menu cell above the workspace while the sheet is open. The cell is the sheet's stacking context. */
  .dt-menu-cell:has(.dt-row-menu[open]){z-index:10051}
  /* Filters + count go full width so they're tappable. */
  .dt-filter-field{flex:1 1 100%}
  .dt-filter-control,select.dt-filter-control,.dt-filter-search .dt-filter-control{min-width:0;width:100%}
  .dt-daterange-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%}
  .dt-filter-reset{width:100%}
  .dt-count{margin-left:0;width:100%}
  /* Kebab = bottom sheet (escapes the card/scroll clipping + the off-screen edge). In portrait, leave room for
     the persistent app dock and keep the dock above the dimming backdrop so navigation stays visible and usable. */
  .dt-row-menu-trigger{width:44px;height:44px} /* >=44px touch target on mobile (was 30px -- too skinny to hit) */
  .dt-row-menu[open]::before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:10049}
  .dt-row-menu[open] .dt-row-menu-panel{position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;width:100% !important;min-width:0;max-height:70vh;overflow-y:auto;border-radius:16px 16px 0 0;box-shadow:0 -8px 30px rgba(15,23,42,.25);z-index:10050;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
  @media (orientation:portrait){
    .app-shell:has(.dt-row-menu[open]) .app-rail:not([data-app-rail-count="0"]):not([data-app-rail-count="1"]){z-index:10052}
    .app-shell:has(.app-rail:not([data-app-rail-count="0"]):not([data-app-rail-count="1"])) .dt-row-menu[open] .dt-row-menu-panel{bottom:calc(82px + env(safe-area-inset-bottom)) !important;max-height:calc(70vh - 82px - env(safe-area-inset-bottom));padding-bottom:8px}
  }
  .dt-row-menu-panel :is(.btn,.dt-menu-item){padding:13px 12px}
  /* Responsive actions on mobile: the inline row collapses to a kebab whose menu is a bottom sheet (same chrome
     as the row kebab). JS toggles .is-open on tap. The action buttons/forms stack full-width inside the sheet. */
  .dt-actions{display:inline-block}
  .dt-actions-trigger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent;border-radius:8px;color:var(--sta-blue);font-size:1.3rem;line-height:1;cursor:pointer}
  .dt-actions-trigger:hover{background:#eef2ff}
  .dt-actions.is-open .dt-actions-trigger{background:#e0e7ff}
  .dt-actions-menu{display:none}
  .dt-actions.is-open::before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:10049}
  .dt-actions.is-open .dt-actions-menu{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:4px;position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-height:70vh;overflow-y:auto;background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -8px 30px rgba(15,23,42,.25);z-index:10050;padding:10px 10px calc(10px + env(safe-area-inset-bottom))}
  .dt-actions.is-open .dt-actions-menu .staffstart-inline-action{display:block;margin:0}
  .dt-actions.is-open .dt-actions-menu .btn{width:100%;justify-content:flex-start;padding:13px 12px}
}
/* DocDesk Documents-tab row-detail modal */
.docdesk-detail-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.docdesk-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.docdesk-detail-head h3{margin:0}
.docdesk-detail-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 16px;margin-bottom:14px}
.docdesk-detail-meta-cell{display:flex;flex-direction:column;gap:2px}
.docdesk-detail-meta-label{font-size:.76rem;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.docdesk-detail-subhead{margin:16px 0 8px;color:var(--sta-blue);font-size:.95rem}
.docdesk-detail-recipients{display:grid;gap:8px}
.docdesk-detail-recipient{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #e5e9f2;border-radius:8px}
.docdesk-detail-recipient-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.docdesk-detail-recipient-actions{display:flex;gap:6px;flex-wrap:wrap}
.docdesk-detail-recipient-actions .btn-sm,.docdesk-detail-actions .btn-sm{padding:5px 10px;font-size:.8rem;line-height:1.1}
.docdesk-detail-timeline{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.docdesk-detail-timeline li{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.docdesk-timeline-when{font-size:.8rem;color:#64748b;min-width:135px}
.docdesk-timeline-what{font-weight:600}
.leave-balances-filter-form{display:grid;grid-template-columns:minmax(116px,.58fr) minmax(180px,1fr) minmax(160px,.85fr) minmax(150px,.85fr) minmax(140px,.75fr);gap:12px;align-items:end;width:100%;margin:0 0 14px}
.leave-balances-filter-form .field{min-width:0}
.leave-balances-controls{display:flex;gap:12px;align-items:end;width:100%;margin:0 0 14px}
.leave-balances-controls .field{width:min(250px,100%);min-width:0}
.leave-balances-controls .leave-balances-filter-actions{margin-left:auto;display:flex;gap:8px;align-items:end}
@media (max-width:760px){.leave-balances-controls{display:grid;grid-template-columns:1fr}.leave-balances-controls .field,.leave-balances-controls .leave-balances-filter-actions{width:100%;margin-left:0}.leave-balances-controls .btn{width:100%}}
.leave-balances-filter-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px;align-items:end;min-width:0}
.leave-balances-filter-actions .btn{height:48px;padding-inline:10px;font-size:.78rem;letter-spacing:.6px}
.leave-statement-send-btn{white-space:normal;text-align:center}
.leave-balances-context{color:var(--muted);font-weight:700;margin:0 0 10px}
.payroll-context{color:var(--muted);font-weight:700;margin:0 0 10px}
.timedesk-kiosk-page{max-width:600px;margin:0 auto 18px}
.timedesk-soft-keyboard-open .timedesk-kiosk-page{padding-bottom:310px}
.timedesk-sign-mode-nav{display:flex;gap:12px;max-width:600px;margin:10px auto 20px}
.timedesk-sign-mode-nav .nav-btn{flex:1;min-height:50px;display:flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--steel-border);border-radius:12px;background:var(--steel);color:var(--steel-text);font-weight:900;letter-spacing:.8px;box-shadow:inset 0 2px 4px rgba(0,0,0,.04)}
.timedesk-sign-mode-nav .nav-btn.active{background:var(--sta-blue);border-color:var(--sta-blue);color:#fff;border-bottom:5px solid var(--sta-gold);box-shadow:var(--shadow);transform:translateY(-2px)}
.timedesk-kiosk-card{background:#fff;border:1px solid #e5e9f2;border-radius:12px;box-shadow:var(--shadow-soft);padding:24px 25px;margin:0 auto 20px;max-width:600px;min-width:0}
.timedesk-kiosk-card h3{margin:0 0 14px;color:var(--sta-blue);font-size:1.18rem;font-weight:900}
.timedesk-kiosk-page [hidden]{display:none!important}
.timedesk-kiosk-page.timedesk-kiosk-loading{opacity:.72;pointer-events:none}
.timedesk-kiosk-recovery{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;max-width:600px;margin:0 auto 14px;padding:14px 16px;border-left:7px solid var(--sta-gold);border-radius:8px;background:#fff8df;border-top:1px solid #f5dd94;border-right:1px solid #f5dd94;border-bottom:1px solid #f5dd94;color:var(--sta-blue);box-shadow:var(--shadow-soft)}
.timedesk-kiosk-recovery strong{display:block;margin:0 0 3px;font-size:1rem;font-weight:900}
.timedesk-kiosk-recovery span{display:block;font-size:.92rem;font-weight:700;line-height:1.35;color:#4f5e73}
.timedesk-kiosk-recovery-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.timedesk-kiosk-recovery-actions .btn{min-height:42px;padding:0 14px;font-size:.78rem}
.timedesk-kiosk-restart-fab{position:fixed;top:14px;left:14px;z-index:60;min-height:42px;border:2px solid var(--sta-gold);border-radius:999px;background:var(--sta-blue);color:#fff;font-weight:900;padding:0 16px;box-shadow:0 12px 26px rgba(26,35,126,.28);cursor:pointer}
.timedesk-kiosk-page{--kiosk-success:#1b7a3d;--kiosk-signout:#1a237e;--kiosk-failure:#b3261e}
.timedesk-kiosk-badge-buffer{position:fixed;left:-9999px;top:auto;width:1px;height:1px;opacity:0;pointer-events:none}
.timedesk-kiosk-badge-card{text-align:center;border:2px solid var(--sta-gold);background:linear-gradient(180deg,#fff 0%,#f7f9ff 100%)}
.timedesk-kiosk-badge-card-hidden{display:none!important}
.timedesk-kiosk-badge-card h3{font-size:1.45rem;line-height:1.35;margin-bottom:10px;font-weight:800}
.timedesk-kiosk-swipe-receipt{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(15,23,42,.34);backdrop-filter:blur(2px)}
.timedesk-kiosk-swipe-receipt-inner{width:min(560px,100%);min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;color:#20263f;border:2px solid var(--sta-gold);border-radius:16px;padding:40px 40px 32px;box-shadow:0 26px 74px rgba(0,0,0,.4);background:linear-gradient(180deg,#fff 0%,#f7f9ff 100%)}
.timedesk-kiosk-swipe-receipt-inner::before{font-family:'Material Icons';font-feature-settings:'liga';-webkit-font-feature-settings:'liga';font-size:52px;width:92px;height:92px;border-radius:50%;display:flex;align-items:center;justify-content:center;content:"check_circle";background:#eaf3de;color:var(--kiosk-success)}
.timedesk-kiosk-swipe-receipt[data-state="signout"] .timedesk-kiosk-swipe-receipt-inner::before{content:"logout";background:#e6ebff;color:var(--sta-blue)}
.timedesk-kiosk-swipe-receipt[data-state="unknown"] .timedesk-kiosk-swipe-receipt-inner::before{content:"help_outline";background:#fbeecb;color:#8a6100}
.timedesk-kiosk-swipe-receipt[data-state="failure"] .timedesk-kiosk-swipe-receipt-inner::before{content:"error_outline";background:#fcebeb;color:var(--kiosk-failure)}
.timedesk-kiosk-swipe-receipt h2{margin:0;font-size:clamp(2.3rem,5.2vw,3.5rem);line-height:1.05;font-weight:800;letter-spacing:-.01em;color:var(--kiosk-success)}
.timedesk-kiosk-swipe-receipt[data-state="signout"] h2{color:var(--sta-blue)}
.timedesk-kiosk-swipe-receipt[data-state="unknown"] h2{color:#8a6100}
.timedesk-kiosk-swipe-receipt[data-state="failure"] h2{color:var(--kiosk-failure)}
.timedesk-kiosk-swipe-receipt p{margin:0;max-width:34rem;font-size:1.5rem;line-height:1.35;font-weight:600;color:#39405c}
.timedesk-kiosk-swipe-meta{min-height:1.4em;font-size:1.4rem;line-height:1.3;font-weight:700;color:var(--sta-blue)}
.timedesk-kiosk-swipe-actions{display:flex;gap:16px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:18px;width:100%}
.timedesk-kiosk-swipe-actions .btn{min-height:62px;padding:0 32px;font-size:1.2rem!important;border-radius:999px!important;border:2px solid var(--sta-gold)!important;background:var(--sta-blue)!important;color:#fff!important;font-weight:800!important;box-shadow:0 12px 26px rgba(26,35,126,.3)}
.timedesk-unified-role-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin-top:6px}
.timedesk-unified-role-choices>.btn{grid-column:1/-1;min-height:56px}
.timedesk-unified-role-choices .timedesk-role-choice,.timedesk-unified-role-choices .timedesk-presence-choice{min-height:64px;border:2px solid var(--sta-gold);border-radius:10px;padding:14px;background:#fff7db;color:var(--sta-blue);font:inherit;font-weight:900;line-height:1.2;cursor:pointer;box-shadow:0 5px 13px rgba(15,23,42,.12)}
.timedesk-unified-role-choices .timedesk-role-choice:active,.timedesk-unified-role-choices .timedesk-presence-choice:active{transform:translateY(1px);box-shadow:none}
.timedesk-unified-role-choices .timedesk-presence-choice{grid-column:1/-1;background:#fff;border-color:#b9c7da}
.timedesk-unified-role-choices .timedesk-live-role-description{grid-column:1/-1;width:100%;box-sizing:border-box;min-height:96px;border:1px solid #b9c7da;border-radius:10px;color:var(--sta-blue);font:inherit;font-weight:700}
@media(max-width:520px){.timedesk-unified-role-choices{grid-template-columns:1fr}}
.timedesk-checkin-correction-form{width:min(460px,100%);display:grid;gap:12px;text-align:left}
.timedesk-checkin-correction-form[hidden]{display:none}
.timedesk-kiosk-live-status{min-height:32px;margin:12px auto 18px;text-align:center;color:#4a516a;font-weight:600}
.timedesk-kiosk-pin-gate{margin:0 auto 20px;padding:22px 20px;border:2px solid var(--sta-gold);border-radius:14px;background:linear-gradient(180deg,#fff 0%,#f7f9ff 100%);box-shadow:var(--shadow-soft);text-align:center}
.timedesk-kiosk-page > .timedesk-kiosk-pin-gate:not([hidden]){position:fixed;top:50%;left:50%;z-index:10020;width:min(420px,calc(100vw - 36px));max-height:calc(100vh - 36px);overflow:auto;transform:translate(-50%,-50%);margin:0}
.timedesk-kiosk-pin-gate h3{margin:0 0 8px;color:var(--sta-blue);font-size:1.2rem;font-weight:900}
.timedesk-kiosk-pin-gate p{margin:0 auto 14px;color:#4f5e73;font-weight:700;line-height:1.35}
.timedesk-kiosk-pin-input{display:block;width:min(240px,100%);height:54px;margin:0 auto 16px;border:2px solid #b9c7da;border-radius:10px;color:var(--sta-blue);font-size:1.65rem;font-weight:900;letter-spacing:.45em;text-align:center;padding:0 8px 0 16px}
.timedesk-kiosk-pin-input:focus{border-color:var(--sta-blue);outline:3px solid rgba(251,192,45,.55);outline-offset:1px}
.timedesk-kiosk-pin-pad{display:grid;grid-template-columns:repeat(3,minmax(64px,1fr));gap:9px;width:min(360px,100%);margin:0 auto 14px}
.timedesk-kiosk-pin-digit[data-timedesk-kiosk-pin-digit="0"]{grid-column:2}
.timedesk-kiosk-pin-digit{min-height:54px!important;padding:0!important;font-size:1.25rem!important;font-weight:900!important}
.timedesk-kiosk-pin-actions{display:flex;justify-content:center;gap:9px;flex-wrap:nowrap}
.timedesk-kiosk-pin-actions .btn{min-height:46px}
.timedesk-kiosk-pin-feedback{min-height:1.35em;margin-top:10px;color:#b3261e;font-weight:800}
.timedesk-kiosk-pin-feedback:empty{display:none}
.timedesk-progress{display:inline-block;width:18px;height:18px;margin-right:8px;vertical-align:-3px;border:3px solid rgba(25,49,109,.22);border-top-color:var(--sta-blue);border-radius:50%;animation:timedesk-spin .8s linear infinite}
@keyframes timedesk-spin{to{transform:rotate(360deg)}}
.timedesk-completed-work{margin:18px auto 0;max-width:720px;padding:20px;border:1px solid var(--line,#d7dee8);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(20,45,75,.08)}
.timedesk-completed-work-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.timedesk-completed-work-heading h3,.timedesk-completed-work-heading p{margin:0 0 5px}
.timedesk-completed-work [data-timedesk-completed-fields]{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.timedesk-completed-work fieldset{grid-column:1/-1;border:1px solid var(--line,#d7dee8);border-radius:10px;padding:12px}.timedesk-completed-bulk{display:grid;grid-template-columns:auto 1fr 90px;align-items:center;gap:10px;min-height:44px}
.timedesk-completed-assignment-picker{display:grid;gap:10px}.timedesk-completed-assignment-options{display:grid;gap:10px}.timedesk-completed-slot-option.btn{width:100%;min-height:56px;justify-content:space-between;gap:14px;padding:12px 16px;border:2px solid #d7dfeb;text-align:left;text-transform:none;letter-spacing:0;line-height:1.35}.timedesk-completed-slot-option.btn:hover:not(:disabled){transform:translateY(-1px);border-color:var(--sta-blue)}.timedesk-completed-slot-option.btn.is-selected{background:var(--sta-gold);color:var(--sta-blue);border-color:var(--sta-blue);box-shadow:0 4px 12px rgba(26,35,126,.2)}.timedesk-completed-slot-option.btn:focus-visible{outline:3px solid var(--sta-gold);outline-offset:2px}.timedesk-completed-slot-check{flex:0 0 auto;display:grid;place-items:center;width:26px;height:26px;border:2px solid currentColor;border-radius:50%;opacity:0}.timedesk-completed-slot-option.is-selected .timedesk-completed-slot-check{opacity:1}.timedesk-completed-assignment-times{grid-column:1/-1}.timedesk-completed-empty{grid-column:1/-1;margin:0;padding:12px;border:1px solid #e5e9f2;border-radius:10px;color:#4f5e73;background:#f8f9fc}
.timedesk-completed-error{margin:0;color:#b3261e;font-weight:600}@media(max-width:640px){.timedesk-completed-work{padding:14px}.timedesk-completed-work-heading{align-items:stretch;flex-direction:column}.timedesk-completed-work .btn{min-height:48px}}
.timedesk-kiosk-clock{font-size:2.25rem;line-height:1.1;font-weight:900;color:var(--sta-blue);letter-spacing:.04em;margin:10px 0 18px;font-variant-numeric:tabular-nums}
.timedesk-kiosk-completed-action{max-width:600px;margin:0 auto 40px}
.timedesk-kiosk-completed-action .btn{width:100%;min-height:56px}
.timedesk-kiosk-completed-action .btn:not(:disabled){background:var(--sta-gold);color:var(--sta-blue);transform:scale(1.02);box-shadow:0 4px 10px rgba(0,0,0,.3)}
 .timedesk-bottom-actions{display:grid;gap:12px;max-width:900px;margin:0 auto 40px}.timedesk-bottom-actions--count-1{grid-template-columns:minmax(0,1fr)}.timedesk-bottom-actions--count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.timedesk-bottom-actions--count-3{grid-template-columns:repeat(3,minmax(0,1fr))}.timedesk-bottom-actions .timedesk-kiosk-completed-action,.timedesk-bottom-actions .timedesk-kiosk-paid-action{max-width:none;margin:0}.timedesk-bottom-actions .btn{width:100%;min-height:56px}.timedesk-kiosk-paid-action .btn:not(:disabled){background:var(--sta-blue);color:#fff;border:2px solid var(--sta-blue);box-shadow:0 3px 8px rgba(20,45,75,.18)}
.timedesk-kiosk-paid-modal{width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:20px 22px}.timedesk-kiosk-paid-modal .timedesk-completed-work-heading{margin-bottom:8px}.timedesk-kiosk-paid-backdrop.modal-backdrop{z-index:10010;padding:18px;background:rgba(15,23,42,.38);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.timedesk-kiosk-paid-backdrop.modal-backdrop.open{display:flex;align-items:center;justify-content:center}
#timedesk-form-completion-modal.modal-backdrop{z-index:10020;padding:18px;background:rgba(15,23,42,.44);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}#timedesk-form-completion-modal.modal-backdrop.open{display:flex;align-items:center;justify-content:center}#timedesk-form-completion-modal .timedesk-form-completion-modal{width:min(880px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:22px 24px}#timedesk-form-completion-fields{display:grid;grid-template-columns:1fr;gap:12px;margin:14px 0}#timedesk-form-completion-fields fieldset{margin:0;border:1px solid var(--line,#d7dee8);border-radius:10px;padding:12px}#timedesk-form-completion-fields legend{font-weight:700;color:var(--sta-blue,#1a237e)}.timedesk-form-choice{display:flex;align-items:flex-start;gap:9px;margin:8px 0}.timedesk-form-choice input{width:auto;min-height:auto;margin-top:3px}
/* The survey is an ordered form; its questions stay together while the response area scrolls inside a stable kiosk modal. */
#timedesk-form-completion-modal .timedesk-form-completion-modal{display:flex;flex-direction:column;width:min(760px,100%);max-height:calc(100dvh - 36px);overflow:hidden;padding:20px 24px}
#timedesk-form-completion-modal .modal-header{flex:0 0 auto}
#timedesk-form-completion-modal .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:10px 0 0;overscroll-behavior:contain}
#timedesk-form-completion-modal [data-timedesk-form-completion-context="1"]{margin:0 0 14px;color:#536176;font-size:.95rem;line-height:1.45}
#timedesk-form-completion-fields{gap:14px;margin:0}
#timedesk-form-completion-fields .timedesk-form-field{min-width:0;margin:0}
#timedesk-form-completion-fields .timedesk-form-field>label,
#timedesk-form-completion-fields .timedesk-form-field>legend{display:block;color:#1f2937;font-size:1rem;font-weight:750;line-height:1.4}
#timedesk-form-completion-fields .timedesk-form-required{color:#b3261e;font-weight:900;margin-left:2px}
#timedesk-form-completion-fields .timedesk-form-field :is(input[type="text"],textarea,select){box-sizing:border-box;width:100%;min-height:50px;margin:7px 0 0;padding:10px 12px;border:1px solid #b9c4d3;border-radius:10px;background:#fff;font:inherit;font-size:1rem;color:#111827}
#timedesk-form-completion-fields .timedesk-form-field textarea{min-height:112px;resize:vertical}
#timedesk-form-completion-fields .timedesk-form-choice-group{padding:13px 15px;border-color:#c9d2df;border-radius:12px;background:#fff}
#timedesk-form-completion-fields .timedesk-form-choice-group legend{padding:0 5px;font-size:1rem;line-height:1.4}
#timedesk-form-completion-fields .timedesk-form-choice{min-height:48px;align-items:center;gap:12px;margin:3px 0;padding:4px 8px;border-radius:9px;color:#283449;font-size:1rem;font-weight:650}
#timedesk-form-completion-fields .timedesk-form-choice input{width:22px;height:22px;min-height:22px;margin:0;accent-color:var(--sta-blue,#1a237e)}
#timedesk-form-completion-fields .timedesk-form-rating{padding:0;border:0}
#timedesk-form-completion-fields .timedesk-form-rating legend{margin:0 0 6px;font-size:1rem;line-height:1.4}
#timedesk-form-completion-fields .timedesk-form-rating-options{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-height:54px}
#timedesk-form-completion-fields .timedesk-form-rating-option{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:50px;min-width:50px;max-width:50px;min-height:50px;margin:0;overflow:hidden;border-radius:10px;color:#aa7900;cursor:pointer;touch-action:manipulation}
#timedesk-form-completion-fields .timedesk-form-rating-option input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#timedesk-form-completion-fields .timedesk-form-rating-glyph{display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:44px;min-height:44px;overflow:hidden;font-size:2rem;line-height:1;text-overflow:ellipsis;white-space:nowrap;color:#aa7900}
#timedesk-form-completion-fields .timedesk-form-rating-value{font-size:.75rem;font-weight:750;line-height:1;color:#4b5563}
#timedesk-form-completion-fields .timedesk-form-rating-option.is-filled .timedesk-form-rating-glyph{color:#d39b00}
#timedesk-form-completion-fields .timedesk-form-rating[data-rating-symbol="👍"] .timedesk-form-rating-option:not(.is-filled){border:1px solid #cbd5e1;background:#f3f4f6}
#timedesk-form-completion-fields .timedesk-form-rating[data-rating-symbol="👍"] .timedesk-form-rating-option:not(.is-filled) .timedesk-form-rating-glyph{color:#64748b;opacity:.55}
#timedesk-form-completion-fields .timedesk-form-rating[data-rating-symbol="👍"] .timedesk-form-rating-option.is-filled{border:1px solid #d39b00;background:#fff4d2}
#timedesk-form-completion-fields .timedesk-form-rating-clear{border:1px solid #cbd5e1;background:#f8fafc;color:#475569}
#timedesk-form-completion-fields .timedesk-form-rating-clear-mark{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:1.7rem;line-height:1}
#timedesk-form-completion-fields .timedesk-form-rating-option:has(input:focus-visible){outline:3px solid rgba(26,35,126,.3);outline-offset:1px}
#timedesk-form-completion-modal .modal-actions{flex:0 0 auto;justify-content:center;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e5e9f2}
#timedesk-form-completion-modal .modal-actions .btn{min-width:190px;min-height:52px;padding-inline:18px;white-space:normal}
body.timedesk-soft-keyboard-open #timedesk-form-completion-modal.modal-backdrop.open{bottom:var(--soft-keyboard-height,310px);padding-bottom:10px}
body.timedesk-soft-keyboard-open #timedesk-form-completion-modal .timedesk-form-completion-modal{max-height:calc(100dvh - var(--soft-keyboard-height,310px) - 20px)}
@media(max-width:600px){#timedesk-form-completion-modal.modal-backdrop{padding:10px}#timedesk-form-completion-modal .timedesk-form-completion-modal{padding:16px}#timedesk-form-completion-modal .modal-actions{display:grid;grid-template-columns:1fr}#timedesk-form-completion-modal .modal-actions .btn{width:100%;min-width:0}}
@media(max-width:720px){.timedesk-bottom-actions{grid-template-columns:1fr}.timedesk-kiosk-paid-modal{padding:16px}}
.soft-keyboard-panel{position:fixed;left:0;right:0;bottom:0;z-index:12010;background:#d1d5db;border-top:1px solid rgba(15,23,42,.18);box-shadow:0 -18px 44px rgba(15,23,42,.22);padding:8px 9px calc(10px + env(safe-area-inset-bottom));touch-action:manipulation;-webkit-user-select:none;user-select:none}
.soft-keyboard-header{display:grid;grid-template-columns:minmax(84px,max-content) minmax(0,1fr);gap:8px;align-items:center;max-width:760px;margin:0 auto 7px;color:#334155;font-size:.86rem;font-weight:800}
.soft-keyboard-field{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.soft-keyboard-preview{min-height:28px;border-radius:8px;background:rgba(255,255,255,.5);padding:5px 8px;color:#0f172a;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.soft-keyboard-keys{display:grid;gap:7px;max-width:760px;margin:0 auto}
.soft-keyboard-row{display:flex;justify-content:center;gap:6px}
.soft-keyboard-key{min-width:0;flex:1 1 0;height:44px;border:0;border-radius:7px;background:#fff;color:#111827;font-size:1rem;font-weight:700;box-shadow:0 1px 0 rgba(0,0,0,.38);cursor:pointer;padding:0 8px}
.soft-keyboard-key:active{background:#cfd6df;transform:translateY(1px);box-shadow:none}
.soft-keyboard-key.is-control{background:#aeb7c2;font-size:.88rem;text-transform:uppercase}
.soft-keyboard-key.is-space{flex:5 1 160px}
.soft-keyboard-key.is-punctuation{flex:.8 1 34px}
.soft-keyboard-key.is-done{flex:1.4 1 72px;background:#1a237e;color:#fff}
@media (max-width:560px){.timedesk-kiosk-recovery{grid-template-columns:1fr}.timedesk-kiosk-recovery-actions{justify-content:stretch}.timedesk-kiosk-recovery-actions .btn{flex:1 1 130px}}
.timedesk-credentials-page.card.wide{width:100%;max-width:100%;box-sizing:border-box;border:2px solid #1a237e;background:#fff;border-radius:14px;box-shadow:none;padding:24px 26px;overflow:hidden}
.timedesk-credentials-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:0 0 16px}
.timedesk-credentials-toolbar .field{flex:1 1 280px;min-width:220px;margin:0}
.timedesk-credentials-toolbar .btn{min-height:48px}
.timedesk-credentials-page .inline-editor-message{margin-top:10px;color:#9b1c1c;font-weight:800}
.timedesk-credential-capture-status{border:1px solid #d8e0ee;border-radius:10px;background:#f8fafc;color:var(--sta-blue);font-weight:800;line-height:1.4;padding:14px 16px;text-align:center}

/* Kiosk prompts use the shared modal lifecycle, with a centered, touch-friendly surface and a blurred backdrop. */
.timedesk-kiosk-swipe-receipt.modal-backdrop,.timedesk-kiosk-completed-backdrop.modal-backdrop{z-index:10010;padding:18px;background:rgba(15,23,42,.38);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.timedesk-kiosk-swipe-receipt.modal-backdrop.open,.timedesk-kiosk-completed-backdrop.modal-backdrop.open{display:flex;align-items:center;justify-content:center}
.timedesk-kiosk-swipe-receipt .timedesk-kiosk-swipe-receipt-inner{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto}
.timedesk-kiosk-completed-backdrop .timedesk-kiosk-completed-modal{width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:20px 22px}
.timedesk-kiosk-completed-modal .timedesk-completed-work{max-width:none;margin:0;padding:0;border:0;box-shadow:none}
.timedesk-kiosk-completed-modal .timedesk-completed-work-heading{margin-bottom:8px}
@media(max-width:640px){.timedesk-kiosk-completed-backdrop .timedesk-kiosk-completed-modal{padding:16px}.timedesk-kiosk-swipe-receipt .timedesk-kiosk-swipe-receipt-inner{padding:28px 20px 22px;min-height:0}.timedesk-kiosk-swipe-receipt p{font-size:1.15rem}.timedesk-kiosk-swipe-meta{font-size:1.1rem}}
.timedesk-credential-capture-status.is-saving{border-color:#f4dc9d;background:#fff8e1;color:#7a4b00}
.timedesk-credential-capture-status.is-success{border-color:#b8dec0;background:#f0faf2;color:#216e39}
.timedesk-credential-capture-status.is-error{border-color:#ef9a9a;background:#fdecea;color:#9b1c1c}
/* Staff Roles editor — the shared per-person MODAL body (v1 panel retired; the editor markup is reused). */
.staff-roles-editor{display:flex;flex-direction:column;gap:16px}
.staff-roles-modal-editor{padding-top:2px}
.staff-roles-checklist{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 18px}
.staff-role-check{display:flex;align-items:center;gap:8px;font-size:.96rem;color:#2a3441;cursor:pointer}
.staff-role-check input{width:16px;height:16px}
.staff-roles-default{max-width:320px}
.staff-roles-bus{border:1px solid #e4e8ef;border-radius:10px;padding:14px 16px;background:#f8fafc}
.staff-roles-bus h3{margin:0 0 12px;font-size:1rem;color:#1a237e}
.staff-roles-bus-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:820px){.staff-roles-bus-grid{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr)}}
.staff-roles-bus-advanced{margin:0 0 12px}
.staff-roles-bus-advanced>summary{cursor:pointer;font-weight:700;color:#334155;font-size:.9rem}
.staff-roles-feedback{font-size:.92rem;color:#55657a;min-height:1.2em}
.staff-roles-feedback.is-error{color:#dc2626}
/* Staff Roles matrix name cell + the default-role marker. */
.timedesk-staff-roles-matrix .matrix-name{font-weight:600;color:var(--sta-blue)}
/* Default role: its (checked) box is STA gold instead of navy — a read-only marker; it's set in the modal
   (the cell's tooltip says so). Scoped to marked cells so no other checkbox changes. */
.staff-roles-matrix-table .dt-checkbox-cell-marked .dt-checkbox{accent-color:var(--sta-gold)}
/* Mobile card mode: a phone in portrait can't reach the wide checkbox grid, so each row collapses into a tappable
   card listing the person's SELECTED roles as an alphabetized bulleted list (gray text — 2 columns when they fit,
   1 when they don't; the default role is gold-starred). Tapping opens the edit modal (rowClick). Hidden on
   desktop; the whole transform is scoped to the staff-roles matrix table. */
.timedesk-staff-roles-matrix .matrix-roles-mobile,
.timedesk-staff-roles-matrix .matrix-kicker-mobile{display:none}
.timedesk-staff-roles-matrix .matrix-role-chip{display:block;break-inside:avoid;padding:2px 0;color:#475569;font-size:.9rem;font-weight:500}
.timedesk-staff-roles-matrix .matrix-role-chip::before{content:"•  ";color:#94a3b8}
.timedesk-staff-roles-matrix .matrix-role-chip-default{color:var(--sta-blue);font-weight:700}
.timedesk-staff-roles-matrix .matrix-role-chip-default::before{content:"★  ";color:var(--sta-gold)}
.timedesk-staff-roles-matrix .matrix-roles-empty{color:#94a3b8;font-weight:500;font-size:.9rem;font-style:italic}
@media (max-width:900px){
  .timedesk-staff-roles-matrix .matrix-kicker-desktop{display:none}
  .timedesk-staff-roles-matrix .matrix-kicker-mobile{display:block}
  /* drop the .dt-scroll card-box chrome so no border draws around the card stack (the framework does this at
     760px; we card-ify at 900px, so match it here — otherwise the box border shows in the 760–900 band). */
  .staff-roles-matrix-table .dt-scroll{overflow:visible;border:0;background:transparent}
  .staff-roles-matrix-table table.dt-card{display:block;width:100%!important;min-width:0!important;table-layout:auto}
  .staff-roles-matrix-table colgroup,.staff-roles-matrix-table thead{display:none}
  .staff-roles-matrix-table tbody.dt-body{display:block}
  .staff-roles-matrix-table tr.dt-row{display:block;border:1px solid #e2e8f0;border-radius:12px;margin:0 0 10px;padding:12px 14px;background:#fff;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.05)}
  .staff-roles-matrix-table tr.dt-row:active{background:#f7f9fc}
  /* keep only the name cell in the card — hide the checkbox columns AND the trailing gutter. */
  .staff-roles-matrix-table td.dt-cell:not(:first-child){display:none}
  .staff-roles-matrix-table td.dt-cell:first-child{display:block;position:static!important;width:auto!important;background:transparent!important;padding:0;border:0;white-space:normal}
  .timedesk-staff-roles-matrix .matrix-roles-mobile{display:block;margin-top:8px;column-width:150px;column-gap:22px}
  .timedesk-staff-roles-matrix .matrix-name{font-size:1rem}
}
/* Instant checkbox-cell tooltip (JS-positioned; replaces the native title). */
.dt-celltip{position:fixed;z-index:10060;display:none;max-width:280px;background:#0f172a;color:#fff;font-size:.8rem;line-height:1.35;padding:6px 10px;border-radius:8px;box-shadow:0 8px 22px rgba(15,23,42,.3);pointer-events:none}
.dt-celltip-main{font-weight:600}
.dt-celltip-sub{display:block;margin-top:2px;color:#cbd5e1;font-size:.72rem}
/* Work Schedules day-of-week grid (PR-B #8): compact per-day hours; assignment under the person name. */
.ws-grid-table .dt-cell{font-size:.82rem;padding-top:12px;padding-bottom:12px;line-height:1.5}
.ws-assignment{display:block;font-size:.7rem;font-weight:400;color:#64748b;margin-top:1px}
.staff-roles-status.error{color:#c0392b}
.bus-driver-toolbar{display:grid;grid-template-columns:1fr;gap:14px;align-items:end;margin:0 0 12px}
.bus-driver-toolbar .btn{height:44px;min-width:96px}
.bus-calendar-line{font-size:.92rem;color:#415066;margin:4px 0 12px}
.bus-calendar-line span{font-weight:900;color:#1a237e}
.bus-grid{display:grid;gap:10px;margin:0 0 14px}
.bus-row{display:grid;grid-template-columns:minmax(220px,300px) minmax(170px,220px) auto auto minmax(180px,250px);gap:14px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.bus-row.is-disabled{background:#f6f8fb;color:#6d7888}
.bus-row-date strong{display:block;color:#1a237e;font-size:.98rem}
.bus-row-meta-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.bus-row-meta{font-size:.9rem;color:#1a237e}
.bus-row-meta.no-run{font-weight:900;color:#8a5a08}
.bus-calendar-note{font-size:.8rem;color:#6f7b8c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bus-missed-check{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:#263348;min-height:34px;white-space:nowrap}
.bus-missed-check input{width:18px;height:18px;accent-color:#c79218}
.bus-note{width:100%;height:34px;padding:6px 10px;border:1px solid #d8deea;border-radius:8px;font:inherit;box-sizing:border-box}
.bus-save-row{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin:12px 0 20px}
.bus-save-status{color:#55657a;font-size:.92rem;font-weight:800}
.bus-snow-section,.bus-generate-section{border-top:1px solid #e5e9f2;padding-top:18px;margin-top:18px}
.bus-snow-section h3,.bus-generate-section h3{margin:0 0 6px;color:#1a237e;font-size:1rem;font-weight:900;text-transform:uppercase;letter-spacing:0}
.bus-snow-section p,.bus-generate-section p{margin:0 0 12px;color:#5c6878;font-size:.92rem}
.bus-snow-grid{display:grid;grid-template-columns:minmax(160px,200px) minmax(220px,1fr) auto auto;gap:12px;align-items:end;margin-bottom:12px}
.bus-generate-grid{display:grid;grid-template-columns:minmax(160px,220px) auto;gap:12px;align-items:end;margin-bottom:10px}
.bus-snow-calendars{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 10px}
.bus-snow-calendar{display:inline-flex;align-items:center;gap:8px;border:1px solid #dce3ee;border-radius:8px;padding:8px 10px;color:#1a237e;font-weight:800;background:#f8fbff}
.bus-snow-calendar input{width:17px;height:17px;accent-color:#c79218}
.bus-snow-status,.bus-generate-status{display:grid;gap:6px;color:#475467;font-size:.9rem}
.bus-snow-status-row{display:flex;justify-content:space-between;gap:12px;border:1px solid #e1e7f0;border-radius:8px;padding:8px 10px;background:#fff}
.bus-snow-status-row.status-added,.bus-snow-status-row.status-ready{border-color:#b8dec2;background:#f4fbf6;color:#245c34}
.bus-snow-status-row.status-deleted{border-color:#d8dee9;background:#f7f8fb;color:#3f4b5a}
.bus-snow-status-row.status-exists{border-color:#ead9a6;background:#fff9e8;color:#7b5811}
.bus-snow-status-row.status-missing{border-color:#f0c0c0;background:#fff4f4;color:#8a2525}
.bus-snow-current{margin-top:14px;border:1px solid #e1e7f0;border-radius:8px;background:#fbfcff;padding:12px}
.bus-snow-current h4{margin:0 0 8px;color:#1a237e;font-size:.95rem;font-weight:900}
.bus-snow-list{display:grid;gap:7px}
.bus-snow-list-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:10px;align-items:center;border:1px solid #e4e9f1;border-radius:8px;background:#fff;padding:8px 8px 8px 11px}
.bus-snow-list-row>div{display:flex;gap:10px;align-items:baseline;min-width:0;flex-wrap:wrap}
.bus-snow-list-row strong{color:#1a237e}
.bus-snow-list-row span{font-weight:800;color:#4f5d70}
.bus-snow-list-row small{color:#697789;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:360px}
.timedesk-review-queue{border:1px solid #f1d48f;background:#fff8e1;border-radius:12px;padding:14px 16px;margin:0 0 14px}
.timedesk-review-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#7a4b00}
.timedesk-review-title h3{margin:0;color:#7a4b00;font-weight:900}
.timedesk-review-title span{font-weight:900}
.timedesk-review-list{display:grid;gap:8px}
.timedesk-review-item{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,1.15fr) minmax(104px,.65fr) max-content;gap:10px;align-items:center;border:1px solid #f4dc9d;background:#fffdf5;border-radius:8px;padding:9px 10px;cursor:pointer}
.timedesk-review-item strong{color:var(--sta-blue)}
.timedesk-review-item span{color:#475569}
.timedesk-review-item em{font-style:normal;font-weight:900;color:#8a5c00;text-align:right}
.timedesk-review-approve{min-height:34px;padding:0 12px;font-size:.82rem}
.timedesk-checkin-modal-context{display:grid;gap:4px;margin:0 0 14px;padding:12px 14px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;color:#475569}
.timedesk-checkin-modal-context strong{color:var(--sta-blue);font-size:1rem;font-weight:900}
.timedesk-checkin-modal-assignment{color:#475569;font-weight:700}
.timedesk-checkin-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;min-width:0}
.timedesk-checkin-editor-grid>label{display:grid;align-content:start;gap:6px;min-width:0;color:var(--sta-blue);font-size:.86rem;font-weight:900}
.timedesk-checkin-editor-grid>label>span{display:block}
.timedesk-checkin-editor-grid input[type="time"],.timedesk-checkin-editor-grid textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:42px;box-sizing:border-box;border:1px solid #b9c6d8;border-radius:8px;background:#fff;padding:9px 10px;color:#1f2937;font:inherit}
.timedesk-checkin-editor-grid textarea{min-height:92px;resize:vertical;font-weight:400}
.timedesk-checkin-editor-grid .timedesk-checkin-reason{grid-column:1/-1}
.timedesk-worklog-page>.summary-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0 18px}
.timedesk-posted-page>.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.timedesk-worklog-page>.summary-grid .summary-card{box-shadow:none;border-color:#e1e7f0;border-radius:11px;padding:14px 16px}
.timedesk-worklog-page>.summary-grid .summary-label{letter-spacing:.7px}
.timedesk-worklog-page>.summary-grid .summary-value{font-size:1.45rem}
.timedesk-worklog-actions-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;min-width:0;margin:14px 0 16px}
.timedesk-worklog-actions-row .btn{font-size:.9rem;font-weight:900}
.timedesk-pay-toggle{display:flex;align-items:center;gap:9px;min-height:42px;color:var(--sta-blue);font-weight:900;align-self:end}
.timedesk-pay-toggle input{width:18px;height:18px;accent-color:var(--sta-blue)}
.timedesk-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid #dbe4f0;background:#eef2f7;color:var(--sta-blue);font-size:.75rem;font-weight:900;padding:5px 10px;line-height:1;text-transform:uppercase}
.timedesk-status-pill.open{border-color:#f4c15e;background:#fff8e1;color:#7a4b00}
.timedesk-status-pill.warning{border-color:#f4c15e;background:#fff3c4;color:#7a4b00}
.timedesk-status-pill.closed{border-color:#dbe4f0;background:#eef2f7;color:var(--sta-blue)}
.browser-icon-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;background:transparent;color:#8a96a8;border-radius:50%;padding:0;cursor:pointer}
.browser-icon-button:hover,.browser-icon-button:focus-visible{background:#eef2f7;color:var(--sta-blue);outline:none}
.browser-icon-button .material-icons{font-size:20px;line-height:1}
.timedesk-row-action-post-entry:hover,.timedesk-row-action-post-entry:focus-visible,.timedesk-row-action-restore-work-log:hover,.timedesk-row-action-restore-work-log:focus-visible{background:#fff3c4;color:#7a4b00}
.timedesk-row-action-delete:hover,.timedesk-row-action-delete:focus-visible{background:#fdecea;color:#9b1c1c}
.timedesk-entry-editor{display:grid;gap:10px;color:#172033}
.timedesk-modal-subtitle{font-size:1rem;font-weight:900;color:var(--sta-blue)}
.timedesk-context-line{color:#64748b;font-size:.9rem;font-weight:700}
.timedesk-modal-banner{display:flex;align-items:center;gap:10px;border:1px solid #e1e7f0;background:#f8fafc;border-radius:8px;padding:10px 12px;color:var(--sta-blue);font-weight:900;text-transform:uppercase}
.timedesk-entry-pay-badge{margin-left:auto;text-transform:none;color:#0f172a}
.timedesk-modal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:2px}
.modal:has(.timedesk-entry-editor){max-width:min(1180px,calc(100vw - 44px));width:min(1180px,calc(100vw - 44px))}
.timedesk-modal-top-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.timedesk-linked-event-actions{display:flex;justify-content:flex-end;margin:-4px 0 6px}
.timedesk-pay-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;align-items:start;padding:10px;border:1px solid #e1e7f0;border-radius:8px;background:#fbfcff}
.timedesk-pay-source{grid-column:1/-1;display:flex;align-items:center;min-height:40px;border:1px solid #d8e0ee;border-radius:8px;background:#fff;color:#334155;font-size:.88rem;font-weight:700;line-height:1.3;padding:9px 10px;text-transform:none}
.timedesk-modal-field{display:grid;gap:4px;min-width:0;color:var(--sta-blue);font-size:.78rem;font-weight:900;text-transform:uppercase}
.timedesk-modal-field input,.timedesk-modal-field select,.timedesk-modal-field textarea,.timedesk-modal-output{width:100%;min-width:0;border:1px solid #d8e0ee;border-radius:8px;background:#fff;color:#111827;font:inherit;font-size:.94rem;font-weight:700;text-transform:none;padding:8px 10px}
.timedesk-modal-field input[readonly]{background:#f8fafc;color:#334155}
.timedesk-modal-field select{min-height:40px}
.timedesk-modal-output{display:block;min-height:37px;background:#f8fafc}
.timedesk-modal-field textarea{resize:vertical;min-height:70px;grid-column:auto}
.timedesk-modal-field:has(textarea){grid-column:1/-1}
.timedesk-modal-action{font-weight:900;text-transform:uppercase}
.timedesk-review-reason{border:1px solid #f4dc9d;background:#fff8e1;border-radius:8px;padding:10px 12px;color:#7a4b00;font-weight:800}
.timedesk-review-reason strong{font-weight:900}
.modal-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.timedesk-post-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 2px}
.timedesk-post-dialog-grid .field{min-width:0}
.payroll-page>.summary-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:12px 0 14px}
.payroll-issues{border:1px solid #f1d18a;background:#fff8e8;border-radius:8px;padding:12px 14px;margin:8px 0 14px;color:#5b4300}
.payroll-issues-headline{font-weight:900;margin-bottom:5px;cursor:pointer;overflow-wrap:anywhere}
.payroll-issues .summary-lines{max-height:24rem;overflow:auto;overflow-wrap:anywhere}
.payroll-issues .summary-lines>div{padding:5px 0;border-bottom:1px solid #f1d18a}
.payroll-table-toolbar{display:flex;justify-content:flex-end;gap:8px;margin:10px 0 12px}
.posted-payroll-toolbar{justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.posted-payroll-actions{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.payroll-stack-cell .row-primary{font-weight:800;color:var(--sta-blue);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payroll-stack-cell .row-secondary{display:block;margin-top:2px;font-size:.82rem;color:var(--sta-blue-80);font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payroll-select-cell{display:flex;align-items:center;justify-content:center}
.payroll-select-cell input[type="checkbox"]{width:20px;height:20px;margin:0;accent-color:var(--sta-blue)}
.payroll-select-cell input[type="checkbox"]:focus,.payroll-select-cell input[type="checkbox"]:focus-visible{outline:none;box-shadow:none;border-color:transparent}
.payroll-unpost-row{font-weight:800}
.email-summary-top-grid{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(180px,.7fr) max-content;gap:12px;align-items:end;margin:12px 0 16px}
.email-summary-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media (max-width:760px){.email-summary-top-grid{grid-template-columns:1fr}.email-summary-preview-actions{grid-column:auto}.email-summary-preview-actions .btn{width:100%}}
.email-summary-modal-intro{color:var(--steel-text);line-height:1.4;margin:0 0 10px}
.email-summary-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 14px}
.email-summary-preview-shell{border:1px solid #e1e7f0;border-radius:8px;overflow:hidden;background:#fff}
.email-summary-preview-head,.email-summary-preview-row{display:grid;grid-template-columns:54px minmax(170px,1fr) minmax(120px,.55fr) minmax(140px,.7fr) minmax(110px,.55fr) minmax(220px,1.2fr);align-items:center}
.email-summary-preview-row{min-height:64px;padding:10px 16px;border-top:1px solid #edf1f7}
.email-summary-preview-row>div{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0}
.email-summary-preview-row .payroll-stack-cell{flex-direction:column;gap:2px;line-height:1.18}
.timedesk-email-preview-head .timedesk-email-employee-head{text-align:left}
.email-summary-preview-row>div.timedesk-email-employee-cell{align-items:flex-start;justify-content:center;text-align:left}
.email-summary-preview-row>div.timedesk-email-employee-cell .row-primary,.email-summary-preview-row>div.timedesk-email-employee-cell .row-secondary{text-align:left;width:100%}
.email-summary-preview-row .row-primary{font-weight:800;color:var(--sta-blue);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-summary-preview-row .row-secondary{display:block;color:var(--sta-blue-80);font-size:.82rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-summary-detail-cell{flex-direction:column;gap:4px;line-height:1.22;color:#334155;font-size:.9rem}
.email-summary-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:.75rem;font-weight:900;text-transform:uppercase;background:#eef2ff;color:var(--sta-blue)}
.email-summary-status-pill.ready{background:#e8f7ee;color:#166534}
.email-summary-status-pill.written{background:#edf2f7;color:#334155}
.email-summary-status-pill.conflict{background:#fff5d6;color:#7a5200}
.email-summary-status-pill.unmatched{background:#fee2e2;color:#991b1b}
.email-summary-status-pill.noamount{background:#f1f5f9;color:#475569}
#payroll-posted-import-modal .modal-card{max-width:min(1180px,calc(100vw - 28px));width:min(1180px,calc(100vw - 28px))}
#payroll-posted-import-modal .modal-header h3{color:var(--sta-blue)}
#payroll-posted-import-modal .modal-actions{display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #edf1f7}
.payroll-number{font-weight:900;color:#000;text-align:center}
.payroll-row-note-cell{position:relative}
.payroll-row-note-trigger{box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;border:1px solid #d7dfeb;background:#fff;color:var(--sta-blue);border-radius:999px;padding:4px 8px;font:inherit;font-weight:800;cursor:pointer;transition:all .15s ease}
.payroll-row-note-trigger:hover,.payroll-row-note-trigger:focus{border-color:var(--sta-gold);box-shadow:0 2px 8px rgba(26,35,126,.08);outline:none}
.payroll-row-note-preview{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;line-height:1.15}
.payroll-row-note-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:999px;background:#eef2ff;color:var(--sta-blue);font-size:.72rem;font-weight:900;line-height:1}
.payroll-row-notes-empty{font-size:.88rem;color:var(--muted)}
.payroll-notes-popover{width:340px;padding:0;overflow:hidden}
.payroll-notes-popover-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 10px;border-bottom:1px solid #e5e9f2}
.payroll-notes-popover-header h4{margin:0;color:var(--sta-blue);font-size:.98rem}
.payroll-notes-popover-body{padding:13px 14px 15px;color:#334155;line-height:1.4;white-space:pre-wrap}
.readonly-field{display:flex;align-items:center;min-height:48px;padding:0 12px;border:1px solid #ddd;border-radius:8px;background:#f8fafc;color:#0f172a;font-size:16px;user-select:text}
.payroll-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.payroll-wide-field{grid-column:1 / -1}
.payroll-wide-field textarea{width:100%;resize:vertical}
[id^="payroll-"][id$="-row-modal"] .modal.large{width:min(980px,calc(100vw - 44px));max-width:980px}
[id^="payroll-"][id$="-row-modal"] .modal-header h3{color:var(--sta-blue);font-weight:900}
[id^="payroll-"][id$="-row-modal"] .modal-actions{display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #edf1f7}
.payroll-row-modal-subtitle{margin:2px 0 16px;color:var(--steel-text);font-size:.95rem;line-height:1.35}
.payroll-row-view-banner{border:1px solid #dbe4f0;background:#f8fafc;color:#334155;border-radius:10px;padding:10px 12px;margin:0 0 14px;font-weight:700;line-height:1.35}
.payroll-row-source-panel{display:flex;flex-direction:column;gap:8px}
.payroll-row-source-panel[hidden],.payroll-row-source-actions [hidden]{display:none!important}
.payroll-row-source-title{color:var(--sta-blue);font-weight:900;font-size:.9rem}
.payroll-row-source-text{color:#334155;font-weight:600;font-size:.92rem;line-height:1.42}
.payroll-row-source-actions{display:flex;justify-content:flex-start;padding-top:2px}
.payroll-row-source-actions .btn{padding:7px 12px;min-height:34px}
[id^="payroll-"][id$="-report-modal"] .modal-header h3{color:var(--sta-blue);font-weight:900}
[id^="payroll-"][id$="-report-modal"] .payroll-report-modal-subtitle{margin:2px 0 16px;color:var(--steel-text);font-size:.95rem;line-height:1.35}
[id^="payroll-"][id$="-report-modal"] .payroll-report-date-field{margin-bottom:22px}
[id^="payroll-"][id$="-report-modal"] .payroll-report-result{margin-top:14px}
[id^="payroll-"][id$="-report-modal"] .payroll-report-open-link{margin-left:10px}
[id^="payroll-"][id$="-report-modal"] .modal-actions{display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-top:0}
.leave-balances-page>.summary-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:12px 0 14px}
.leave-balances-page>.summary-grid .summary-card{padding:10px 12px;box-shadow:0 1px 6px rgba(26,35,126,.045)}
.leave-balances-page>.summary-grid .summary-label{font-size:.68rem;letter-spacing:.45px}
.leave-balances-page>.summary-grid .summary-value{margin-top:4px}
.leave-balances-head,.leave-balances-row{grid-template-columns:38px minmax(180px,1.1fr) repeat(2,minmax(132px,.72fr)) minmax(152px,.85fr) minmax(135px,.75fr) 118px}
.leave-balances-head{align-items:center;text-align:center}
.leave-balances-head>div{display:flex;align-items:center;justify-content:center;min-height:32px}
.leave-balances-head button{appearance:none;border:0;background:transparent;color:var(--sta-blue);font:inherit;text-align:center;text-transform:inherit;letter-spacing:inherit;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:32px}
.leave-balances-head>div:nth-child(2){justify-content:flex-start;text-align:left}
.leave-balances-head>div:nth-child(2) button{justify-content:flex-start;text-align:left}
.leave-balances-head button:hover{text-decoration:underline}
.leave-balances-head [data-leave-balances-sort-active="1"] .sort-caret{opacity:1}
.leave-balances-head [data-leave-balances-sort-active="1"][data-leave-balances-sort-dir="asc"] .sort-caret{border-bottom:6px solid currentColor}
.leave-balances-head [data-leave-balances-sort-active="1"][data-leave-balances-sort-dir="desc"] .sort-caret{border-top:6px solid currentColor}
.leave-balances-row{align-items:center;padding:12px 16px;cursor:pointer}
.leave-balances-row.events-alt-row{background:#f6f8fc}
.leave-balances-row>div{min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;min-height:38px}
.leave-balances-row .leave-balances-employee-cell{display:block;text-align:left}
.leave-balances-number-cell{font-weight:900;color:#000}
.leave-balances-metric-cell{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.18;min-height:38px}
.leave-balances-metric-main{display:flex;align-items:baseline;justify-content:center;gap:5px;white-space:nowrap}
.leave-balances-metric-value{font-weight:900;color:#000;font-size:1.02rem}
.leave-balances-metric-label{font-weight:800;color:var(--steel-text);font-size:.72rem;text-transform:uppercase;letter-spacing:.35px}
.leave-balances-metric-sub{margin-top:5px;display:flex;align-items:center;justify-content:center;gap:6px;color:#7b879b;font-size:.68rem;font-weight:700;white-space:nowrap}
.leave-balances-metric-sub.projected{color:#8a5d00;font-weight:900;opacity:1}
.leave-balances-metric-sub strong{font-size:.78rem;color:inherit}
.leave-balances-employee{font-weight:800;color:var(--sta-blue)}
.leave-issue-pills{margin-top:6px}
.leave-issue-pills .pill{padding:4px 8px;font-size:.72rem;font-weight:800}
.leave-balances-actions{justify-content:center}
.leave-balances-select-cell input[type="checkbox"]{width:16px;height:16px;margin:0;padding:0;box-shadow:none;cursor:pointer}
.icon-button{width:36px;height:36px;border:1px solid #d7dfeb;border-radius:999px;background:#fff;color:var(--sta-blue);display:inline-flex;align-items:center;justify-content:center;font-size:1rem;cursor:pointer;box-shadow:0 2px 8px rgba(26,35,126,.06)}
.leave-statement-envelope-button{font-size:1.05rem;font-weight:900}
.icon-button:hover:not(:disabled){border-color:var(--sta-blue);box-shadow:0 5px 12px rgba(26,35,126,.12);transform:translateY(-1px)}
.icon-button:disabled{opacity:.38;cursor:not-allowed;box-shadow:none}
.leave-statement-picker-overlay{position:fixed;inset:0;z-index:1200;background:rgba(15,23,42,.42);display:none;align-items:center;justify-content:center;padding:22px}
.leave-statement-picker-overlay.is-open{display:flex}
.leave-statement-picker-card{max-width:740px;width:min(740px,calc(100vw - 44px))}
.leave-statement-picker-card .section-title{margin:0 0 10px}
.leave-statement-picker-subtitle{min-height:1.25em;margin:-4px 0 10px}
.leave-statement-picker-card .confirm-summary{margin-top:14px}
.leave-statement-picker-card .confirm-actions{align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.leave-statement-picker-card .btn{min-height:42px;padding:0 14px;font-size:.78rem;letter-spacing:.7px;white-space:nowrap}
.leave-balances-page .modal.large{width:min(1180px,calc(100vw - 44px));max-width:1180px}
.leave-balance-modal-subtitle{color:var(--steel-text);font-size:.95rem;line-height:1.35;margin:2px 0 18px}
.leave-balance-modal-issues{margin:-8px 0 14px}
.leave-balances-page .modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:14px;padding-top:14px;border-top:1px solid #edf1f7}
.leave-statement-modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin:0}
.leave-statement-modal-actions .btn{min-height:42px;padding:10px 14px;font-size:.82rem;letter-spacing:.5px}
.leave-balance-modal-section{border:1px solid #edf1f7;border-radius:12px;background:#fff;padding:14px 16px;margin:14px 0;box-shadow:0 2px 8px rgba(26,35,126,.035)}
.leave-balance-modal-section h4{margin:0 0 12px;color:var(--sta-blue);font-weight:900}
.leave-balance-deductions .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:12px}
.leave-balance-deductions .summary-card{box-shadow:none;padding:12px 14px}
.leave-balance-modal-table .dt-filters{margin:0 0 12px}
.leave-balance-modal-table .dt-scroll{margin:0}
.workspace-target-return{margin:0 0 14px}
.leave-modal-table-wrap{overflow-x:auto;border:1px solid #d9e2ef;border-radius:9px;background:#fff}
.timechime-detail-intro{font-size:1.05rem;font-weight:800;color:var(--sta-blue)}
.timechime-message-subject{margin:8px 0 0;font-weight:800;color:var(--sta-blue)}
.timechime-message-preview{margin:8px 0 0;padding:14px 16px;border:1px solid #d9e2ef;border-radius:10px;background:#f8f9fc;color:#172033;font:inherit;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.leave-modal-table{width:100%;border-collapse:separate;border-spacing:0;color:#000;font-size:.98rem;line-height:1.25}
.leave-modal-table th{background:#f1f4f9;color:var(--sta-blue);font-weight:900;text-align:left;padding:10px 14px;border-right:1px solid #d9e2ef;border-bottom:1px solid #d9e2ef;white-space:nowrap}
.leave-modal-table th:first-child{border-top-left-radius:8px}
.leave-modal-table th:last-child{border-top-right-radius:8px;border-right:0}
.leave-modal-table td{padding:10px 14px;border-right:1px solid #d9e2ef;border-bottom:1px solid #dfe7f2;vertical-align:top}
.leave-modal-table td:last-child{border-right:0}
.leave-modal-table tbody tr:nth-child(even){background:#fbfcff}
.leave-modal-table tbody tr:last-child td{border-bottom:0}
.leave-modal-table tbody tr:last-child td:first-child{border-bottom-left-radius:8px}
.leave-modal-table tbody tr:last-child td:last-child{border-bottom-right-radius:8px}
.leave-modal-table td:not(:first-child),.leave-modal-table th:not(:first-child){text-align:left}
.checkpoint-adjustment-audit-table{min-width:920px;font-size:.88rem}
.checkpoint-adjustment-audit-table th,.checkpoint-adjustment-audit-table td{padding:8px 10px}
.checkpoint-adjustment-audit-table-wrap{margin-top:12px}
.leave-balance-mini-table{min-width:780px}
.leave-history-status-filter{width:220px;margin:0 0 14px}
.leave-history-status-filter select{width:100%}
.leave-history-table{min-width:1040px;table-layout:fixed}
.leave-statement-table{min-width:900px;table-layout:fixed}
.leave-statement-sent-col{width:94px}
.leave-statement-type-col{width:110px}
.leave-statement-by-col{width:245px}
.leave-statement-status-col{width:84px}
.leave-statement-subject-col{width:auto}
.leave-statement-status-cell{text-align:center!important;vertical-align:middle!important;overflow:visible!important}
.leave-statement-status-cell .pill{padding:4px 8px;font-size:.74rem;line-height:1;white-space:nowrap;max-width:100%;justify-content:center}
.leave-statement-table td:nth-child(3){white-space:nowrap;overflow-wrap:normal}
.leave-statement-table td:last-child{white-space:normal;overflow-wrap:anywhere}
.leave-history-table td{overflow-wrap:anywhere}
.leave-balances-source-cell{display:flex;align-items:center;gap:8px;min-width:92px}
.leave-history-source-col{width:72px}
.leave-history-date-col{width:112px}
.leave-history-entry-col{width:128px}
.leave-history-note-col{width:260px}
.leave-history-number-col{width:92px}
.leave-history-payroll-col{width:100px}
.leave-history-money-col{width:104px}
.leave-history-table th,.leave-history-table td{text-align:center!important;vertical-align:middle}
.leave-history-table th{white-space:normal;line-height:1.15}
.leave-history-table .row-primary,.leave-history-table .row-secondary{text-align:center}
.leave-history-note-cell{min-width:0}
.leave-history-note-trigger{width:100%;min-height:34px;border:1px solid transparent;border-radius:8px;background:transparent;color:#111827;cursor:pointer;padding:6px 8px;text-align:left;font:inherit;display:block}
.leave-history-note-trigger:hover,.leave-history-note-trigger:focus-visible{border-color:#c7d2fe;background:#f8fafc;outline:none}
.leave-history-note-trigger span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leave-history-note-trigger.is-empty{color:#7b879b;text-align:center}
.leave-history-note-popover{width:390px}
.leave-history-note-popover h4{margin:0;color:var(--sta-blue)}
.leave-history-note-editor{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.leave-history-note-editor textarea{width:100%;min-height:110px;resize:vertical;text-align:left}
.leave-history-note-actions{display:flex;align-items:center;justify-content:center;gap:8px}
.leave-history-note-actions .btn{min-height:34px;padding:6px 12px;font-size:.86rem}
.leave-history-source-cell{padding-left:8px!important;padding-right:8px!important}
.leave-balances-source-empty{color:#7b879b}
.leave-balances-source-btn{width:30px;height:30px;border:1px solid #d7dfeb;border-radius:999px;background:#fff;color:var(--sta-blue);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;box-shadow:0 2px 8px rgba(26,35,126,.06);cursor:pointer;padding:0;font:inherit}
.leave-balances-source-btn:hover{border-color:var(--sta-blue);box-shadow:0 5px 12px rgba(26,35,126,.12);transform:translateY(-1px)}
.event-kind-text{align-self:center}
.event-status-counts{align-items:center}
.row-primary{font-weight:800;color:var(--sta-blue);line-height:1.25}
.row-secondary{font-size:.92rem;color:var(--muted);line-height:1.25}
@keyframes rowspin{to{transform:rotate(360deg)}}
.split{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}
.workspace{display:grid;gap:14px}
.workspace-nav{display:flex;gap:10px;flex-wrap:wrap}
.stage{border:1px solid #e5e9f2;border-radius:12px;padding:14px;background:#f8fafc}
.stage h3{margin:0 0 10px;color:var(--sta-blue)}
.stage-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
.new-absence-layout{display:grid;grid-template-columns:minmax(0,0fr) minmax(0,1fr);gap:0;align-items:start}
.new-absence-layout.teacherout-hidden{grid-template-columns:minmax(0,1fr);gap:0}
.new-absence-layout.inbox-opening{transition:grid-template-columns var(--new-absence-slide-open-duration) var(--new-absence-slide-ease),gap var(--new-absence-slide-open-duration) var(--new-absence-slide-ease)}
.new-absence-layout.inbox-closing{transition:grid-template-columns var(--new-absence-slide-close-duration) var(--new-absence-slide-ease),gap var(--new-absence-slide-close-duration) var(--new-absence-slide-ease)}
.new-absence-layout.inbox-open{grid-template-columns:minmax(0,65fr) minmax(0,35fr);gap:14px}
.inbox-tray.is-collapsed{opacity:0;max-height:0;height:0;overflow:hidden;pointer-events:none;visibility:hidden}
.inbox-tray,.create-absence-panel,.coverage-stage,.final-quantity-override-panel{border:1px solid #e5e9f2;border-radius:12px;padding:14px;background:var(--card)}
.create-absence-panel>.stage-toolbar h3,.inbox-panel-head h3{color:var(--sta-blue);font-weight:900;margin:0}
.coverage-stage.is-stale{border-color:#f6d17c;background:#fffdf5}
.stale-preview-banner{margin-top:0}
.inbox-tray{min-width:0;max-height:72vh;overflow:hidden;opacity:0;transition:opacity .45s ease,height .9s cubic-bezier(0.2,0.85,0.2,1),max-height .9s cubic-bezier(0.2,0.85,0.2,1)}
.new-absence-layout.inbox-open .inbox-tray,.inbox-tray.is-opening,.inbox-tray.is-open,.inbox-tray.is-closing{height:var(--new-absence-panel-height,82vh);max-height:var(--new-absence-panel-height,82vh);display:flex;flex-direction:column;visibility:visible}
.inbox-tray.is-opening,.inbox-tray.is-open{opacity:1}
.inbox-tray.is-closing{opacity:1;pointer-events:none}
.new-absence-main-column{display:grid;gap:14px;min-width:0}
.create-absence-panel{min-width:0}
.new-absence-layout:not(.inbox-open) .new-absence-main-column{width:100%;max-width:none;margin-inline:0}
.new-absence-layout:not(.inbox-open) .create-absence-panel{width:100%;max-width:none;margin-inline:0}
.create-absence-top-row{margin-bottom:12px}
.create-absence-timing-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.create-absence-timing-row[hidden]{display:none !important}
.create-absence-timing-row[data-event-kind-row="late"],.create-absence-timing-row[data-event-kind-row="early"],.create-absence-timing-row[data-event-kind-row="partial"]{grid-template-columns:minmax(0,1fr) minmax(0,.5fr) minmax(0,.5fr)}
.final-quantity-override[hidden]{display:none !important}
.final-quantity-override-panel.is-disabled{background:#f8fafc}
.final-quantity-override-panel .advanced{margin-top:0;border:0;padding:0;background:transparent}
.advanced-accounting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.advanced-accounting-grid .inline-error{grid-column:1 / -1;color:#9b1c1c;font-weight:700;font-size:.86rem}
.new-absence-layout.inbox-open .create-absence-top-row,.new-absence-layout.inbox-open .create-absence-timing-row,.new-absence-layout.inbox-open .create-absence-body-row,.new-absence-layout.inbox-open .advanced-accounting-grid{grid-template-columns:1fr}
.new-absence-layout.inbox-open .create-absence-timing-row[data-event-kind-row]{grid-template-columns:1fr}
.new-absence-layout.inbox-open .create-absence-panel .field{min-width:0}
.new-absence-layout.inbox-open .create-absence-panel textarea{min-height:110px}
.inbox-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;flex:0 0 auto}
.inbox-panel-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.inbox-panel-head-actions label{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--sta-blue);font-size:.86rem;font-weight:700;white-space:nowrap}
.inbox-panel-head-actions input[type="checkbox"]{width:16px;height:16px;margin:0}
.inbox-panel-body{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.inbox-tray-row{font-size:.86rem;padding:5px 10px;text-align:left;border:0;width:100%;min-height:0}
.inbox-tray-row{grid-template-columns:18px minmax(0,1fr);align-items:flex-start;gap:10px}
.inbox-tray-row input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:var(--sta-blue)}
.inbox-row-main{display:flex;flex-direction:column;gap:1px;min-width:0}
.inbox-row-line1{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.inbox-row-primary{display:flex;gap:5px;min-width:0;align-items:baseline;overflow:hidden}
.inbox-row-teacher{font-size:.86rem;font-weight:800;color:var(--sta-blue);line-height:1.16;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-row-separator{color:#94a3b8;font-size:.8rem;line-height:1.16;flex:0 0 auto}
.inbox-row-subject{font-size:.84rem;font-weight:600;line-height:1.16;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.inbox-row-top-right{display:flex;gap:8px;align-items:center;justify-content:flex-end;white-space:nowrap}
.inbox-row-date{font-size:.76rem;font-weight:700;line-height:1.16;color:var(--muted);white-space:nowrap}
.inbox-row-date-compact{display:none}
.inbox-row-line2{font-size:.78rem;font-weight:600;line-height:1.18;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0}
.inbox-tray-row .pill{padding:2px 8px;font-size:.69rem;font-weight:700}
.inbox-load-older{display:flex;justify-content:center;padding:10px 8px}
.inbox-load-older .btn{min-height:36px;padding:8px 14px;font-size:.78rem}
.pill.inbox-new{background:#eef4ff;color:var(--sta-blue);border-color:#c7d2fe}
.pill.inbox-opened{background:#fff8e1;color:#8a5c00;border-color:#f6d17c}
.pill.inbox-already-saved{background:#e8f5e9;color:#1b5e20;border-color:#a5d6a7}
.pill.inbox-ignored{background:#eceff1;color:#455a64;border-color:#cfd8dc}
.pill.inbox-error{background:#fdecea;color:#9b1c1c;border-color:#f1c8c3}
.inbox-tray-controls{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.inbox-controls-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.inbox-controls-head h4{margin:0;color:var(--sta-blue);font-weight:900}
.inbox-controls-right{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.inbox-controls-right label,.inbox-controls-batch label{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--sta-blue);font-size:.86rem;font-weight:700;white-space:nowrap}
.inbox-controls-right input[type="checkbox"],.inbox-controls-batch input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:var(--sta-blue)}
.inbox-controls-row input[type="text"]{width:100%;height:42px}
.inbox-controls-batch .inbox-batch-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.inbox-controls-batch .btn{min-height:34px;padding:8px 10px;font-size:.76rem;letter-spacing:.2px}
.inbox-controls-batch .btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.inbox-refresh-btn{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7dfeb;border-radius:999px;background:#fff;color:var(--sta-blue);font-size:1.05rem;font-weight:800;cursor:pointer;box-shadow:var(--shadow-soft)}
.inbox-refresh-btn.is-loading{animation:rowspin .8s linear infinite;cursor:progress}
.inbox-tray form[data-inbox-batch-form="1"]{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;overflow:hidden}
.inbox-pane-layout{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;transition:flex-basis var(--new-absence-slide-open-duration) var(--new-absence-slide-ease),max-height var(--new-absence-slide-open-duration) var(--new-absence-slide-ease)}
.inbox-tray.has-selection .inbox-pane-layout{flex:0 0 min(320px,calc(var(--new-absence-panel-height,720px) * .46));max-height:none}
#workspace-inbox-detail{flex:0 0 0;min-height:0;max-height:0;overflow:auto;margin-top:0;opacity:0;transform:translateY(8px);transition:flex-basis var(--new-absence-slide-open-duration) var(--new-absence-slide-ease),max-height var(--new-absence-slide-open-duration) var(--new-absence-slide-ease),opacity .5s ease,transform var(--new-absence-slide-open-duration) var(--new-absence-slide-ease),margin-top var(--new-absence-slide-open-duration) var(--new-absence-slide-ease)}
#workspace-inbox-detail.has-selection{margin-top:12px;opacity:1;transform:translateY(0);min-height:180px}
.inbox-tray.has-selection #workspace-inbox-detail{flex:1 1 auto;max-height:none}
.long-term-checkbox-row{display:inline-flex;align-items:center;gap:8px;font-size:.86rem;color:var(--sta-blue);font-weight:700;border:1px solid #d7dfeb;border-radius:12px;background:#fff;padding:10px 12px;min-height:48px}
.long-term-checkbox-row.is-default{border-color:#f6d17c;background:#fff8e1;color:#6b4f00}
.long-term-checkbox-row input{width:16px;height:16px;margin:0}
.coverage-lower-region{display:grid;gap:14px}
.coverage-save-actions{justify-content:flex-end;border-top:1px solid #e5e9f2;padding-top:16px;margin-top:16px}
.coverage-stage[hidden],.long-term-placement-stage[hidden],.inline-event-coverage[hidden],.coverage-save-actions[hidden],.long-term-placement-actions[hidden],[data-coverage-actions][hidden]{display:none!important}
.long-term-placement-stage{display:grid;gap:14px}
.long-term-placement-list{display:grid;gap:12px}
.long-term-placement-row{display:grid;gap:12px;border:1px solid #e5e9f2;border-radius:12px;background:#fff;padding:16px 18px}
.long-term-placement-row.is-split-group{position:relative;border-color:#c7d2fe;background:#fbfdff;padding-top:34px}
.long-term-placement-row.is-split-continuation{margin-top:-6px}
.long-term-placement-row.is-split-group::before{content:attr(data-long-term-split-label);position:absolute;top:10px;left:18px;color:#5a718a;font-size:.78rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.long-term-placement-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.long-term-placement-main>div:first-child{min-width:0;flex:1 1 auto}
.long-term-split-button,.long-term-remove-button{min-height:34px;padding:8px 10px;font-size:.76rem;text-transform:uppercase}
.long-term-date-summary{cursor:help;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.long-term-block-details{display:grid;gap:8px;border:1px solid #eef2f7;border-radius:10px;background:#fbfbfc;padding:10px 12px}
.long-term-block-detail{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:baseline}
.long-term-special-pattern{border:1px solid #c7d2fe;background:#eef2ff;color:#29325f;border-radius:8px;padding:9px 11px;font-weight:700;line-height:1.35}
.long-term-placement-grid{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(180px,1.1fr) repeat(4,minmax(130px,.75fr)) 44px;gap:10px;align-items:end}
.long-term-placement-grid .field{min-width:0}
.long-term-coverage-needed{align-self:center;min-height:44px}
.long-term-date-warning{border:1px solid #f6d17c;background:#fff8e1;color:#6b4f00;border-radius:10px;padding:10px 12px;font-weight:700;line-height:1.35}
.long-term-date-warning.is-blocking{border-color:#fecaca;background:#fff1f2;color:#991b1b}
.long-term-note-cell{display:flex;align-items:end;justify-content:center;min-height:44px}
.long-term-note-popover textarea{width:100%;min-height:92px;resize:vertical}
.long-term-placement-actions{justify-content:flex-end;border-top:1px solid #e5e9f2;padding-top:16px;margin-top:2px}
.coverage-workspace{display:grid;gap:12px;container:coverage-workspace / inline-size}
.coverage-workspace .coverage-day{display:block;width:100%;min-width:0;box-sizing:border-box;white-space:normal}
.coverage-workspace .coverage-day-header{width:100%;min-width:0;box-sizing:border-box;gap:12px;text-align:left;white-space:normal}
.coverage-workspace .coverage-day-header>span:first-child{min-width:0;overflow-wrap:anywhere}
.coverage-workspace .coverage-day-body{width:100%;min-width:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr);white-space:normal}
.coverage-workspace .coverage-block-row{grid-template-columns:minmax(0,1fr);min-width:0;box-sizing:border-box;white-space:normal}
.coverage-workspace .coverage-block-info,.coverage-workspace .coverage-block-division,.coverage-workspace .coverage-block-controls{min-width:0}
.coverage-workspace .coverage-block-title-row{justify-content:space-between;gap:12px}
.coverage-workspace .coverage-block-title,.coverage-workspace .coverage-block-time,.coverage-workspace .coverage-block-division{min-width:0;white-space:normal;overflow-wrap:anywhere}
.coverage-workspace .coverage-block-division{text-align:right}
.coverage-workspace .coverage-block-controls select,.coverage-workspace .coverage-block-controls input:not([type="checkbox"]){max-width:100%;min-width:0;box-sizing:border-box}
.coverage-workspace .coverage-bulk-card{min-width:0}
.coverage-workspace .coverage-bulk-heading{flex:1 1 220px;min-width:180px}
.coverage-workspace .coverage-bulk-card select,.coverage-workspace .coverage-bulk-card input{max-width:100%;box-sizing:border-box}
.coverage-bulk-grid{display:grid;grid-template-columns:1fr;gap:14px;border-top:1px solid #e5e9f2;border-bottom:1px solid #e5e9f2;padding:16px 0}
.coverage-bulk-card{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.coverage-bulk-card>div:first-child{flex:1 1 220px;min-width:180px}
.coverage-bulk-card select{flex:1 1 180px;min-width:160px}
.coverage-bulk-card input{flex:1 1 150px;min-width:140px}
.coverage-bulk-card .btn{flex:0 0 auto}
.coverage-day{border:1px solid #e5e9f2;border-radius:12px;background:#fff;overflow:hidden}
.coverage-day-header{width:100%;border:0;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;color:var(--sta-blue);font-size:1rem;font-weight:900;cursor:pointer}
.coverage-day[data-allow-toggle="0"] .coverage-day-header{cursor:default}
.coverage-day-date-short{display:none}
.coverage-day-date-long{display:inline}
.coverage-block-chip{display:inline-flex;align-items:center;border:1px solid #d7dfeb;border-radius:999px;padding:8px 14px;background:#fff;color:var(--sta-blue);font-size:.9rem;font-weight:900}
.coverage-day-body{display:none;border-top:1px solid #eef2f7;background:#fbfbfc;padding:14px}
.coverage-day.open .coverage-day-body{display:grid;gap:12px}
.coverage-block-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;align-items:start;border:1px solid #e5e9f2;border-radius:12px;background:#fff;padding:16px 18px}
.coverage-block-row.coverage-row-local-edit{box-shadow:inset 4px 0 0 var(--sta-gold)}
.coverage-block-info{min-width:0}
.coverage-block-title-row{display:flex;align-items:baseline;justify-content:flex-start;gap:10px;flex-wrap:wrap;min-width:0}
.coverage-block-title{font-weight:900;color:var(--sta-blue);line-height:1.2}
.coverage-block-title-row .coverage-block-title{min-width:0;flex:0 1 auto}
.coverage-block-division{color:#5a718a;line-height:1.2;font-weight:700;text-align:right}
.coverage-block-time{font-weight:900;color:#1f2a44;font-size:.96rem;margin-top:0;white-space:nowrap;flex:0 0 auto}
.coverage-block-controls{grid-column:1 / -1;display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(150px,.7fr) minmax(140px,.65fr) 44px;gap:10px;align-items:center}
.coverage-block-controls.coverage-payment-hidden{grid-template-columns:auto minmax(180px,1fr) 44px}
.coverage-block-controls .field{gap:3px}
.coverage-needed-check{display:inline-flex;align-items:center;gap:8px;color:#5a718a;font-weight:900}
.coverage-needed-check input{width:18px;height:18px;margin:0}
.notes-button{width:44px;height:44px;border:1px solid #c7d2fe;border-radius:999px;background:#fff;color:var(--sta-blue);cursor:pointer}
.coverage-note-popover textarea{width:100%}
.advanced{border:1px solid #e5e9f2;border-radius:12px;background:#fff;margin-top:14px;padding:12px 14px}
.advanced summary{cursor:pointer;color:var(--sta-blue);font-weight:900}
.advanced-body{display:grid;gap:10px;margin-top:12px}
.checkbox-card{display:flex;gap:10px;align-items:flex-start;border:1px solid #d7dfeb;border-radius:12px;background:#fff;padding:10px 12px;color:#334155;font-weight:700}
.checkbox-card input{width:17px;height:17px;margin-top:2px;flex:0 0 auto}
.source-context{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:12px 14px;margin:12px 0}
.source-context-title{color:var(--sta-blue);font-weight:900;margin-bottom:6px}
.teacherout-inbox-detail-title{color:var(--sta-blue);font-size:.98rem;font-weight:900;line-height:1.22}
.teacherout-inbox-detail-meta{margin-top:6px;color:var(--muted);font-size:.84rem;line-height:1.35;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.teacherout-inbox-detail-action-row{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}
.teacherout-inbox-detail-action-row .btn,.inline-editor-actions .btn,.row-action-link{min-height:34px;padding:8px 10px;font-size:.76rem;letter-spacing:.2px;text-transform:uppercase}
.teacherout-inbox-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.teacherout-inbox-summary-card{border:1px solid #e5e9f2;border-radius:12px;background:#fff;padding:8px 10px}
.teacherout-inbox-summary-card .label{color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase}
.teacherout-inbox-summary-card .value{margin-top:4px;color:var(--sta-blue);font-size:.88rem;font-weight:800;line-height:1.2}
.teacherout-inbox-preview-body{margin-top:12px;background:#fff;border:1px solid #e5e9f2;border-radius:12px;padding:12px 14px;white-space:pre-wrap;line-height:1.4}
.teacherout-inbox-analysis-note{margin-top:12px;color:#334155;font-size:.87rem;line-height:1.38;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #e5e9f2}
.row-review-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.row-review-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px}
.inline-row-editor-modal{border-radius:18px}
.inline-editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.inline-row-editor-modal .modal-body{padding-top:3px}
.inline-editor-body{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:12px}
.inline-editor-body>[data-inline-readonly],.inline-editor-body>[data-inline-edit]{min-width:0}
.inline-readonly-grid>.inline-editor-field{min-width:0}
.inline-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;border:1px solid #e5e9f2;border-radius:14px;background:#f8fafc}
.inline-readonly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.inline-readonly-grid .inline-editor-field-wide{grid-column:1/-1}
.inline-readonly-control{width:100%;min-width:0;box-sizing:border-box;min-height:48px;padding:12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#334155;font-size:16px;line-height:1.35;overflow-wrap:anywhere;white-space:pre-wrap}
.inline-editor-field span{display:block;color:var(--sta-blue);font-weight:900;font-size:.84rem;margin-bottom:6px}
.inline-editor-field input[readonly],.inline-editor-field textarea[readonly],.inline-editor-field input:disabled,.inline-editor-field select:disabled,.inline-editor-field textarea:disabled{background:#fff;color:#334155;opacity:1}
.inline-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}
.bus-parent-invitation-actions{margin-bottom:14px}
.inline-editor-actions [hidden]{display:none!important}
.inline-editor-message{border:1px solid #ef9a9a;background:#fdecea;color:#9b1c1c;border-radius:12px;padding:10px 12px;font-weight:700}
.inline-save-note{margin:10px 0 0}
.inline-event-subtitle{color:var(--steel-text);font-size:.95rem;margin:0 0 12px}
.inline-absence-form,.inline-coverage-slot-form{display:grid;gap:18px}
.inline-event-detail-panel{display:grid;gap:14px;padding:16px;border:1px solid #e5e9f2;border-radius:14px;background:#f8fafc}
.inline-event-top-grid,.inline-event-dynamic-grid,.inline-event-notes-grid,.inline-event-advanced-grid,.inline-coverage-context-grid,.inline-coverage-edit-grid{background:#f8fafc;border-radius:14px}
.inline-event-top-grid,.inline-event-dynamic-grid{background:transparent;border-radius:0;border:0;padding:0}
.inline-event-top-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.inline-event-dynamic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.inline-row-editor-backdrop[data-inline-event-kind="late"] .inline-event-dynamic-grid,.inline-row-editor-backdrop[data-inline-event-kind="early"] .inline-event-dynamic-grid,.inline-row-editor-backdrop[data-inline-event-kind="partial"] .inline-event-dynamic-grid{grid-template-columns:minmax(0,1fr) minmax(0,.5fr) minmax(0,.5fr)}
.long-term-checkbox-row{display:flex;align-items:center;gap:8px;min-height:44px;color:#5a718a;font-weight:800}
.long-term-checkbox-row input{width:18px;height:18px;margin:0}
.inline-event-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));background:transparent;border:0;border-radius:0;padding:0}
.inline-editor-field-wide{grid-column:span 1}
.inline-event-mid-actions{margin-top:0;padding-top:2px}
.inline-event-advanced{margin:0;padding:18px 22px;border-radius:14px;background:#f8fafc}
.inline-event-advanced .advanced-body{border-top:1px solid #e5e9f2;padding-top:14px;margin-top:14px}
.inline-event-advanced .inline-event-advanced-grid{background:transparent;border:0;border-radius:0;padding:0}
.inline-absence-form+.inline-event-coverage{margin-top:22px}
.inline-event-coverage{background:#f8fafc;margin-top:0;min-width:0;container:inline-event-coverage / inline-size}
.inline-event-coverage .stage-toolbar,.inline-event-coverage .coverage-day,.inline-event-coverage .coverage-day-header,.inline-event-coverage .coverage-day-body,.inline-event-coverage .coverage-block-row,.inline-event-coverage .coverage-block-info,.inline-event-coverage .coverage-block-controls,.inline-event-coverage .coverage-bulk-card{min-width:0;max-width:100%;box-sizing:border-box}
.inline-event-coverage .inline-event-coverage-help{margin:4px 0 12px;line-height:1.45}
.inline-event-coverage .coverage-day{margin-top:10px}
.inline-event-coverage .coverage-day{display:block;width:100%;white-space:normal}
.inline-event-coverage .coverage-day-header,.inline-event-coverage .coverage-day-body{width:100%;white-space:normal}
.inline-event-coverage .coverage-block-controls{align-items:center}
.inline-event-coverage .coverage-needed-check{align-self:center}
.inline-event-coverage .coverage-day-body{gap:10px;padding:14px}
.inline-event-coverage .coverage-day.open .coverage-day-body{display:grid}
.inline-event-coverage .coverage-block-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;border:1px solid #e5e9f2;border-radius:12px;background:#fff;padding:14px}
.inline-event-coverage .coverage-block-title-row{justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.inline-event-coverage .coverage-block-title,.inline-event-coverage .coverage-block-time,.inline-event-coverage .coverage-block-division{min-width:0;white-space:normal;overflow-wrap:anywhere}
.inline-event-coverage .coverage-block-controls{grid-column:1 / -1;display:grid;grid-template-columns:auto minmax(170px,1fr) minmax(140px,.75fr) minmax(130px,.65fr) 44px;gap:8px;align-items:center}
.inline-event-coverage .coverage-block-controls.coverage-payment-hidden{grid-template-columns:auto minmax(180px,1fr) 44px}
.inline-event-coverage .coverage-block-controls select,.inline-event-coverage .coverage-block-controls input:not([type="checkbox"]){min-width:0;max-width:100%;box-sizing:border-box}
.inline-event-coverage .coverage-bulk-heading{flex:1 1 220px;min-width:180px}
.inline-event-coverage .coverage-bulk-card select,.inline-event-coverage .coverage-bulk-card input{max-width:100%;min-width:0;box-sizing:border-box}
.inline-event-coverage .coverage-bulk-card .btn{white-space:normal}
.coverage-controls-muted select,.coverage-controls-muted input:not([type="checkbox"]){background:#f1f5f9;color:#94a3b8}
.inline-event-coverage.is-stale{border-color:#f6d17c;background:#fff8e1}
@container inline-event-coverage (max-width: 760px){
  .inline-event-coverage .coverage-day-header{gap:8px;padding:12px;text-align:left;white-space:normal}
  .inline-event-coverage .coverage-day-header>span:first-child{min-width:0;overflow-wrap:anywhere}
  .inline-event-coverage .coverage-day-body{padding:10px}
  .inline-event-coverage .coverage-block-controls,.inline-event-coverage .coverage-block-controls.coverage-payment-hidden{grid-template-columns:minmax(0,1fr)}
  .inline-event-coverage .coverage-block-controls>.field{width:100%;min-width:0}
  .inline-event-coverage .coverage-needed-check{justify-self:start;width:auto;min-width:0}
  .inline-event-coverage .notes-button{grid-column:1;justify-self:start}
  .inline-event-coverage .coverage-bulk-card{align-items:stretch}
  .inline-event-coverage .coverage-bulk-heading,.inline-event-coverage .coverage-bulk-card select,.inline-event-coverage .coverage-bulk-card input,.inline-event-coverage .coverage-bulk-card .btn{flex:1 1 100%;width:100%;min-width:0}
}
.detail-surface{display:grid;gap:14px}
.detail-stage{background:#f8fafc}
.coverage-editor-grid{align-items:start}
.full-width-textarea{width:100%}
.source-stage .teacherout-inbox-preview-body{max-height:34vh;overflow:auto}
.danger-confirm{border-color:#ef9a9a;background:#fdecea;color:#9b1c1c}
.auth-center{margin-top:12vh;text-align:center}
.auth-center p{margin-left:auto;margin-right:auto}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:9997;display:none;padding:22px}
.modal-backdrop.open{display:flex;align-items:center;justify-content:center}
.modal{background:#fff;border-radius:18px;max-width:760px;max-height:92vh;overflow:auto;box-shadow:0 18px 42px rgba(15,23,42,.24);padding:18px 24px}
.modal.large{max-width:1040px}
/* A conventional modal normally sizes to its initial content. Async results can be much wider than a loading
   message, so callers that replace a modal body opt into this shared stable-width contract. The viewport remains
   authoritative, which lets the modal resize only when the available screen width changes. */
.modal.modal-stable-width{width:min(760px,calc(100vw - 44px))}
.modal-header{padding:4px 0 0}
.modal-body{padding:8px 0 0}
/* StaffStart template preview: roomy modal that hosts the DocDesk chip-overlay viewer. */
.sstp-modal .modal.large{width:min(980px,calc(100vw - 36px))}
.sstp-modal-body{padding-top:10px}
.sstp-modal-body .docdesk-pdf-loading{padding:28px;text-align:center;color:#64748b}
.modal-actions [hidden]{display:none!important}
.popover{position:absolute;z-index:10005;width:360px;max-width:calc(100vw - 24px);max-height:70vh;overflow:auto;border:1px solid #dbe4f0;border-radius:14px;box-shadow:0 14px 34px rgba(15,23,42,.18);background:#fff;padding:16px;display:none}
.popover.open,.popover.is-open{display:block;position:fixed;z-index:10005;max-width:calc(100vw - 24px);max-height:70vh;overflow:auto}
.confirm-overlay-backdrop{position:fixed;inset:0;z-index:10030;background:rgba(15,23,42,.32);display:flex;align-items:center;justify-content:center;padding:18px}
.confirm-card{width:480px;max-width:calc(100vw - 24px);background:#fff;border-radius:18px;box-shadow:0 22px 52px rgba(15,23,42,.26);padding:20px 22px;border:1px solid #e5e9f2}
.confirm-card h3{margin:0 0 8px;color:var(--sta-blue)}
.timedesk-generated-correction-notice{display:grid;gap:4px;padding:12px 14px;border:1px solid #edc65c;border-radius:12px;background:#fff8df;color:#684b00;font-weight:650;line-height:1.4}
.timedesk-generated-correction-notice strong{color:var(--sta-blue);font-weight:900}
.timedesk-checkin-correction-fields>.field-wide{grid-column:1/-1}
.timedesk-keep-paid-row{gap:8px;padding:12px;background:#fff8df}
.timedesk-keep-paid-row>span,.timedesk-keep-paid-row .field-help{line-height:1.45}
.timedesk-keep-paid-confirm{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #edc65c;border-radius:9px;background:#fff;font-weight:800;color:#172033;text-transform:none}
.timedesk-keep-paid-confirm input{flex:0 0 auto;margin:3px 0 0;accent-color:var(--sta-blue)}
.timedesk-keep-pay-preview{padding:8px 10px;border:1px solid #d8e0ee;border-radius:8px;background:#fff;color:#172033;font-weight:800}
.timedesk-generated-override-confirm{display:flex;align-items:flex-start;gap:9px;color:#8a2020;font-weight:750;padding:8px 0}
.timedesk-generated-override-confirm input{margin-top:3px}
.confirm-card textarea[data-correction-reason="1"]{display:block;width:100%;min-height:88px;resize:vertical;border:1px solid #cbd5e1;border-radius:10px;padding:10px;font:inherit;margin:12px 0}
.confirm-summary{color:#334155;line-height:1.4;margin:0 0 14px}
.confirm-input{width:100%;box-sizing:border-box;padding:9px 11px;margin:0 0 14px;border:1px solid #cbd5e1;border-radius:10px;font-size:15px}
.confirm-input:focus{outline:none;border-color:var(--sta-blue);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.ref-select-wrap{display:inline-flex;align-items:center;gap:6px;width:100%}
.ref-select-wrap select{flex:1 1 auto;min-width:0}
.ref-gear{flex:0 0 auto;width:34px;height:34px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;cursor:pointer;font-size:15px;line-height:1;color:#475569}
.ref-gear:hover{background:#eef2f7;border-color:var(--sta-blue);color:var(--sta-blue)}
.label-connector{display:block;width:100%;position:relative}
.label-combo-row{display:flex;align-items:center;gap:6px;width:100%}
.label-combo-row input[type="text"]{flex:1 1 auto;min-width:0}
.label-combo-toggle{flex:0 0 auto;width:30px;height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;cursor:pointer;color:#475569;line-height:1;font-size:13px}
.label-combo-toggle:hover{background:#eef2f7;border-color:var(--sta-blue);color:var(--sta-blue)}
.label-combo-menu{margin-top:4px;max-height:220px;overflow:auto;border:1px solid #d7dfeb;border-radius:8px;background:#fff;box-shadow:var(--shadow-soft);padding:4px}
.label-combo-opt{display:block;width:100%;text-align:left;border:0;background:none;padding:6px 8px;border-radius:6px;cursor:pointer;font:inherit;color:var(--sta-blue)}
.label-combo-opt:hover{background:#eef2f7}
.label-combo-empty{padding:6px 8px}
.label-cousers{margin-top:6px;font-size:.85rem;color:#475569;line-height:1.5;overflow-wrap:anywhere}
.label-cousers a{color:var(--sta-blue);text-decoration:underline;cursor:pointer}
.ref-gear[disabled]{opacity:.45;cursor:not-allowed}
.ref-gear[disabled]:hover{background:#f8fafc;border-color:#cbd5e1;color:#475569}
.ref-info-button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;margin-left:4px;padding:0;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:var(--sta-blue);font:800 12px/1 Arial,sans-serif;cursor:pointer;vertical-align:middle;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.ref-info-button:hover,.ref-info-button:focus-visible{background:#f7f9ff;border-color:var(--sta-blue);outline:2px solid rgba(251,192,45,.75);outline-offset:2px}
.ref-info-popover{width:min(340px,calc(100vw - 24px));padding:0;color:#334155;font-size:12px;line-height:1.45}
.ref-info-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 8px;border-bottom:1px solid #e5e7eb;color:var(--sta-blue)}
.ref-info-popover-head strong{font-size:13px}
.ref-info-popover-body{padding:10px 12px 12px}
.ref-info-popover .popover-close{flex:0 0 auto;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;color:#64748b;font-size:20px;line-height:1;cursor:pointer}
.ref-info-popover .popover-close:hover,.ref-info-popover .popover-close:focus-visible{background:#eef2f7;color:var(--sta-blue);outline:2px solid rgba(251,192,45,.75);outline-offset:1px}
.coverage-basis-field,.coverage-basis-panel{grid-column:1 / -1}
.coverage-basis-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}
.coverage-basis-panel[hidden]{display:none}
@media (max-width:560px){.coverage-basis-panel{grid-template-columns:1fr}}
/* Round-4: the reference-edit modal gets a stable width so opening the ⓘ co-users line never reflows it. */
#reference-detail .modal{width:min(560px,calc(100vw - 32px))}
/* PeopleCore detail, Staff Accounts person, and Staff-Roles modals get an EXPLICIT width (not just max-width) so
   revealing/collapsing content — bus grid, capability overrides, coverage list, folding sections — never reflows
   the modal width (only height flexes). Same pattern the payroll/leave/timedesk-entry modals already use. */
#peoplecore-detail .modal.large,#staff-accounts-person .modal.large{width:min(960px,calc(100vw - 44px))}
#timedesk-staff-roles-modal .modal.large{width:min(880px,calc(100vw - 44px))}
/* Round-4: add-a-value row inside the Manage-lists pop-up. */
.pg-manage .pg-add{display:flex;gap:8px;align-items:center;margin:8px 0 0}
.pg-manage .pg-add input{flex:1 1 auto;border:1px solid #d7dfeb;border-radius:6px;padding:4px 8px;font:inherit}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.confirm-card.leave-statement-picker-card{max-width:740px;width:min(740px,calc(100vw - 44px))}
.leave-statement-picker-card .confirm-actions{align-items:center;justify-content:flex-end;flex-wrap:nowrap}
#uiBlocker{position:fixed;inset:0;background:rgba(240,242,245,.45);backdrop-filter:blur(1px);z-index:10020;display:none}
/* Dims + disables the whole screen while a blocking persistent toast runs (e.g. rendering a DocDesk preview);
   sits just below #toastWrap so the toast stays visible, and blocks clicks to everything beneath it. */
.app-busy-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.32);z-index:10019;cursor:progress}
#toastWrap{position:fixed;top:40%;left:50%;transform:translateX(-50%);z-index:10021;display:flex;flex-direction:column;gap:10px;align-items:center;pointer-events:none}
.toast{pointer-events:auto;width:420px;max-width:calc(100vw - 24px);text-align:center;font-weight:900;border-radius:12px;padding:16px 22px;background:var(--sta-blue);color:#fff;border:2px solid var(--sta-gold);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.toast.success{background:var(--sta-gold);color:var(--sta-blue);border-color:var(--sta-blue)}
/* Error toasts stay on-brand (STA blue), never red -- only the dwell is longer (set in JS). No red, no accent. */
.toast.error{background:var(--sta-blue);color:#fff;border-color:var(--sta-gold)}
.toast-inner{display:flex;align-items:center;justify-content:center;gap:0;width:100%}
.toast-text{display:inline-block;width:300px;text-align:center}
.toast-dots{display:inline-block;width:26px;text-align:left;white-space:pre}
.toast.has-dots .toast-inner{gap:0}
.toast.has-dots .toast-text{width:auto;text-align:right}
.toast.has-dots .toast-dots{margin-left:0}
.dot-seq{display:inline-flex;align-items:baseline;justify-content:flex-start;gap:0;white-space:pre}
.dot-seq span{display:inline-block;opacity:.18;animation:dotPulse 1.1s infinite ease-in-out}
.dot-seq span:nth-child(2){animation-delay:.18s}
.dot-seq span:nth-child(3){animation-delay:.36s}
@keyframes dotPulse{0%,80%,100%{opacity:.18;transform:translateY(0)}40%{opacity:1;transform:translateY(-1px)}}
.loading-inline{display:inline-flex;align-items:baseline;justify-content:center;gap:4px;color:var(--sta-blue);font-weight:800}
.loading-dots-inline{display:inline-block;width:26px;text-align:left;white-space:pre}
.loading-dots-inline .dot-seq,.toast-dots .dot-seq{vertical-align:baseline}
.btn.danger{background:#fdecea;color:#9b1c1c;border-color:#ef9a9a}
.inline-delete-confirm{margin-top:8px;padding:14px 16px;border:1px solid #ef9a9a;border-radius:12px}
.inline-delete-confirm h4{margin:0 0 6px;color:#9b1c1c}
.delete-impact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.delete-impact-row{display:flex;justify-content:space-between;gap:12px;border:1px solid #efc7c7;background:#fff;padding:8px 10px;border-radius:8px}
.coverage-notes-history{margin-top:12px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:12px}
.coverage-worklog-match{margin-top:14px;border:1px solid #d8c486;border-radius:12px;background:#fffdf6;padding:14px}
.coverage-worklog-match h4{margin:0 0 5px;color:var(--sta-blue);font-size:.98rem}
.coverage-worklog-match>p{margin:0 0 10px}
.coverage-worklog-match-option{border-top:1px solid #eee6cf;padding:12px 0 0;margin-top:10px}
.coverage-worklog-match-select{display:flex;align-items:flex-start;gap:9px;color:var(--sta-blue);font-weight:800;cursor:pointer}
.coverage-worklog-match-select input{margin-top:3px}
.coverage-worklog-match-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin:9px 0 0 25px;color:#334155;font-size:.88rem}
.coverage-worklog-match-confirm{margin:10px 0 0 25px;border-left:3px solid #d8c486;padding:8px 12px;background:#fff}
.coverage-worklog-match-confirm p{margin:0 0 8px;color:#334155;font-weight:700}
.coverage-worklog-match-actions{display:flex;gap:8px;flex-wrap:wrap}
.coverage-worklog-provisional{margin:8px 0 0 25px;color:#8a5b00;font-weight:700}
.coverage-notes-title{font-weight:900;color:var(--sta-blue);margin-bottom:8px}
.coverage-note-item{border-top:1px solid #eef2f7;padding:8px 0}
.coverage-note-item:first-of-type{border-top:0}
.coverage-note-text{font-weight:700;color:#111827;white-space:pre-wrap}
.coverage-note-meta{font-size:.78rem;color:#64748b;margin-top:3px}
.coverage-table-notes-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.coverage-table-notes-popover h4{margin:0;color:var(--sta-blue)}
.popover-close{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe4f0;border-radius:999px;background:#fff;color:var(--sta-blue);font-size:1.25rem;font-weight:900;line-height:1;cursor:pointer}
.popover-close:hover{background:#eef2ff;border-color:#c7d2fe}
.coverage-table-notes-context{color:#64748b;line-height:1.35;margin-bottom:12px}
.coverage-table-notes-popover .coverage-notes-history{margin-top:0;border:0;padding:0;background:transparent}
.coverage-table-notes-add{margin-top:12px}
.coverage-table-notes-add h5{margin:0 0 6px;color:var(--sta-blue);font-size:.9rem}
.coverage-table-notes-add textarea{width:100%;min-height:88px;resize:vertical}
.coverage-table-notes-error{margin-top:8px;color:#9b1c1c;font-weight:700}
.coverage-table-notes-actions{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-top:12px}
.queue-health-anchor{position:fixed;right:20px;bottom:18px;z-index:10006;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:10px 14px;border-radius:12px;border:1px solid #c7d2fe;background:#eef2ff;color:var(--sta-blue);box-shadow:0 8px 22px rgba(15,23,42,.14);font-weight:900;text-decoration:none;cursor:pointer}
body.modal-open .queue-health-anchor{display:none}
.queue-health-anchor.warning{background:#fff8e1;color:#9a5a00;border-color:#f6d17c}
.queue-health-anchor.error{background:#fdecea;color:#9b1c1c;border-color:#ef9a9a}
.queue-health-dot{width:9px;height:9px;border-radius:999px;background:currentColor;box-shadow:0 0 0 3px rgba(26,35,126,.08)}
.admin-tools-backdrop{padding:0;background:rgba(15,23,42,.30);opacity:0;transition:opacity .55s ease;pointer-events:none}
.admin-tools-backdrop.open,.admin-tools-backdrop.opening,.admin-tools-backdrop.closing{display:flex;align-items:stretch;justify-content:flex-end}
.admin-tools-backdrop.open,.admin-tools-backdrop.opening{opacity:1;pointer-events:auto}
.admin-tools-backdrop.closing{opacity:0;pointer-events:none}
.admin-tools-drawer{width:min(680px,calc(100vw - 24px));max-width:680px;max-height:none;height:100vh;border-radius:0;overflow:auto;padding:0;transform:translateX(100%);transition:transform .82s cubic-bezier(.2,.8,.2,1)}
.admin-tools-backdrop.open .admin-tools-drawer{transform:translateX(0)}
.admin-tools-backdrop.closing .admin-tools-drawer{transform:translateX(100%)}
.admin-tools-shell{min-height:100%;display:flex;flex-direction:column;background:#f8fafc}
.admin-tools-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 18px;background:#fff;border-bottom:1px solid #dbe4f0}
.admin-tools-header h3{margin:0;color:var(--sta-blue);font-size:1.28rem}
.admin-tools-header p{margin:4px 0 0;color:#64748b;font-size:.9rem;line-height:1.35}
.admin-tools-close{border:0;background:transparent;color:#475569;font-size:1.8rem;line-height:1;cursor:pointer;padding:0 2px}
.admin-tools-panels{padding:18px 20px 28px}
.admin-tools-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.admin-tools-section-head h4,.admin-tools-recent h4{margin:0;color:var(--sta-blue);font-weight:900}
.admin-tools-health-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-tools-checkbox{display:inline-flex;align-items:center;gap:7px;color:var(--sta-blue);font-weight:800;font-size:.9rem}
.admin-tools-checkbox input{width:18px;height:18px;accent-color:var(--sta-blue)}
.admin-tools-form,.admin-tools-recent,.admin-tools-status-line{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:14px 16px;margin-bottom:14px}
.admin-tools-status-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:14px}
.admin-tools-status-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.admin-tools-status-line strong{display:block;color:var(--sta-blue)}
.admin-tools-status-line span{color:#64748b;font-size:.84rem}
.admin-tools-status-line.warning{background:#fffdf6;border-color:#f6d17c}
.admin-tools-status-line.filled{background:#f0fdf4;border-color:#a5d6a7}
.admin-tools-form .field{margin-bottom:12px}
.admin-tools-help{color:#64748b;font-size:.86rem;line-height:1.4;margin:8px 0 12px}
.admin-tools-action-grid{display:grid;grid-template-columns:1fr;gap:10px}
.docdesk-action-grid{grid-template-columns:1fr}
.docdesk-job-button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
.docdesk-job-button span{font-size:.8rem;font-weight:700;color:#52637a;line-height:1.3}
.admin-tools-log-tail{margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fafc;border:1px solid #dbe4f0;border-radius:10px;padding:10px;color:#334155;font-size:.78rem;line-height:1.45;max-height:220px;overflow:auto}
.admin-tools-table{min-width:560px;font-size:.9rem}
.parentlocker-lifecycle-table{min-width:760px}
.admin-tools-cron-table-wrap{overflow:visible}
.admin-tools-cron-table{min-width:0;width:100%;table-layout:fixed}
.admin-tools-cron-table th,.admin-tools-cron-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.admin-tools-cron-table th:nth-child(1){width:34%}
.admin-tools-cron-table th:nth-child(2){width:20%}
.admin-tools-cron-table th:nth-child(3){width:54px}
.admin-tools-cron-table th:nth-child(4){width:auto}
.staffstart-page .stage-toolbar{align-items:flex-start}
.staffstart-grid{display:grid;grid-template-columns:minmax(280px,420px) minmax(260px,1fr);gap:18px;margin:18px 0 24px}
.staffstart-intake-create,.staffstart-intake-note{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:18px}
.staffstart-intake-create h3,.staffstart-intake-note h3,.staffstart-table-title{margin:0 0 12px;color:var(--sta-blue);font-weight:900}
.staffstart-intake-note p{margin:0;color:var(--muted);line-height:1.45}
.staffstart-link-row{margin-top:10px}
.staffstart-link-row input{width:100%;font-size:.88rem}
.staffstart-table{min-width:1040px}
.staffstart-action-cell{white-space:nowrap}
.staffstart-docdesk-card{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;text-align:left}
.staffstart-docdesk-card h3{margin:0 0 8px;color:var(--sta-blue);font-weight:900}
.staffstart-docdesk-summary{display:flex;flex-wrap:wrap;gap:8px 14px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;padding:10px 12px;margin:10px 0 14px;color:#334155;font-size:.9rem}
.staffstart-docdesk-summary strong{color:#0f172a;font-weight:900}
.staffstart-docdesk-summary span{font-weight:700;color:#52637a}
.staffstart-docdesk-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.staffstart-check-row{display:flex;align-items:flex-start;gap:8px;color:#334155;font-weight:800;line-height:1.35;margin:8px 0}
.staffstart-check-row input{margin-top:3px;accent-color:var(--sta-blue)}
.staffstart-check-row small{display:block;color:#64748b;font-size:.76rem;font-weight:700}
/* New Onboarding screen (PR7 restyle): plain sections instead of fieldset boxes, a segmented new/returning toggle,
   centered single-line option rows, and constrained field widths -- matches the New Absence / DocDesk look. */
.ss-onb-section{margin-top:24px}
.ss-onb-section.ss-onb-first{margin-top:6px}
.ss-onb-section .staffstart-table-title{margin-bottom:10px}
/* New Onboarding two-column layout: fields left, Steps panel right (top-aligned with "Who are you onboarding?").
   Narrow screens collapse to one column with Steps moved above the fields (order). */
.ss-onb-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
.ss-onb-steps .ss-onb-section{margin-top:6px}
@media (max-width:860px){.ss-onb-grid{grid-template-columns:1fr;gap:18px}.ss-onb-steps{order:-1}}
.ss-field-narrow{max-width:440px}
.ss-segmented{display:inline-flex;border:1px solid #d8e0ee;border-radius:10px;overflow:hidden;background:#fff}
.ss-segment{appearance:none;-webkit-appearance:none;border:0;background:#fff;color:var(--sta-blue);font-family:'Roboto',sans-serif;font-weight:800;font-size:.95rem;height:auto;padding:11px 22px;cursor:pointer;transition:background .15s ease,color .15s ease}
.ss-segment+.ss-segment{border-left:1px solid #d8e0ee}
.ss-segment.is-active{background:var(--sta-blue);color:#fff}
.ss-check-list{display:flex;flex-direction:column;gap:4px;margin-top:4px}
.ss-check{display:flex;align-items:center;gap:10px;margin:4px 0;color:#334155;font-weight:700;cursor:pointer}
.ss-check input{width:17px;height:17px;margin:0;accent-color:var(--sta-blue);flex:0 0 auto}
.ss-check.is-disabled{color:#9aa7b8;cursor:default}
.ss-check.is-disabled input{cursor:default}
.ss-step-off{color:#9aa7b8;font-weight:600;font-style:italic}
.ss-subhead{margin:0;color:#334155;font-weight:800;font-size:.95rem}
.ss-contract-fields{display:flex;flex-direction:column;gap:18px}
.ss-cd-group{display:flex;flex-direction:column;gap:10px}
/* Contract-details top row: Assignment (left) + the role picker(s) (right), top-aligned so the title column doesn't
   stretch as the progressive role slots reveal. */
.ss-cd-toprow{align-items:start}
/* Steps column gets a soft vertical rule dividing it from the fields on desktop (dropped on the mobile stack). */
@media (min-width:861px){.ss-onb-steps{border-left:1px solid #e4e9f2;padding-left:28px}}
/* Stacked single-column fields (Employee Email + Preferred Name) want breathing room between them. */
.ss-onb-stack .field+.field{margin-top:16px}
/* Ramp's conditional body mixes help copy, select fields, and a checkbox. Keep those sibling controls on the same
   16px vertical rhythm as the main onboarding stack instead of letting labels/checks butt against the prior select. */
.ss-ramp-config{display:flex;flex-direction:column;gap:16px}
.ss-ramp-config>.field,.ss-ramp-config>.ss-check,.ss-ramp-config>.field-help{margin:0}
/* Slide-down/up reveal -- the progressive role dropdowns and the second-salary block. grid-rows 0fr->1fr collapses
   the row to nothing with no magic height; the inner clips its own top padding so a closed slot leaves no phantom gap. */
.ss-slide{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .55s ease-in-out,opacity .4s ease-in-out}
.ss-slide[data-open]{grid-template-rows:1fr;opacity:1}
/* The clipper carries NO padding -- so a closed slide (0fr row) reserves truly zero height (no phantom gap), and
   opening is smooth (no padding popping in). The reveal gap is a margin on the INNER content, which lives inside the
   clip region and so collapses with the row + animates with it (PR9d-2f). */
.ss-slide-inner{overflow:hidden;min-height:0}
.ss-slide-inner > :first-child{margin-top:12px}
.ss-roles{display:flex;flex-direction:column}
@media (prefers-reduced-motion:reduce){.ss-slide{transition:none}}
/* Screen-disabling overlay during a StaffStart save / submit (PR B) -- sits above the board modal + toasts. */
.ss-blocker{position:fixed;inset:0;z-index:10060;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.32);backdrop-filter:blur(1px);opacity:0;transition:opacity .16s ease}
.ss-blocker.is-open{opacity:1}
.ss-blocker-card{display:flex;align-items:center;gap:8px;background:var(--sta-blue,#1a237e);border:2px solid var(--sta-gold,#fbc02d);border-radius:14px;padding:16px 24px;box-shadow:0 18px 50px rgba(15,23,42,.28);color:#fff;font-weight:800}
.ss-blocker-dots{color:var(--sta-gold,#fbc02d)}
/* The "Discard" choice in the unsaved-changes dialog: a quiet danger tint so it reads distinct from Keep editing. */
.ss-dialog-danger{color:#b3261e;border-color:#e7b4af}
.ss-dialog-danger:hover{background:#fdecea;border-color:#d9a39d}
/* PR9c contract-management actions in the SENT board modal: the action row + the Cancel button's danger tint
   (specificity bumped past .btn.secondary so the tint actually lands) + the themed-dialog input field. */
.ss-contract-actions{margin:14px 0}
.btn.secondary.ss-ca-danger{color:#b3261e;border-color:#e7b4af}
.btn.secondary.ss-ca-danger:hover:not(:disabled){background:#fdecea;border-color:#d9a39d}
.ss-dialog-field{display:block;margin:6px 0 14px}
.ss-dialog-field-label{display:block;margin-bottom:6px;color:var(--sta-blue);font-weight:800;font-size:.9rem}
.ss-dialog-field textarea,.ss-dialog-field input[type="date"]{width:100%;box-sizing:border-box}
/* Deprovision controls inside the Delete/Archive dialog (PR9d-3c): one card per provisioned account, Keep/Suspend/Delete. */
.ss-dialog-extra{margin:2px 0 12px}
.checkpoint-agreement-difference-box{border:1px solid #d9e1f0;border-left:4px solid var(--sta-gold,#f4b400);border-radius:10px;padding:10px 12px;background:#f8fafc;color:#1e293b;font-size:.9rem}
.checkpoint-agreement-difference-box .field-help{margin:0 0 8px}
.checkpoint-agreement-difference-box ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.checkpoint-agreement-difference-box li{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,1fr);gap:2px 10px;padding-top:8px;border-top:1px solid #e5e9f2}
.checkpoint-agreement-difference-box li:first-child{padding-top:0;border-top:0}
.checkpoint-agreement-difference-box li strong{grid-row:span 2;color:var(--sta-blue,#1a237e)}
.checkpoint-agreement-difference-box li span{color:#475569}
.ss-delete-impact{border:1px solid #d9e1f0;border-left:4px solid var(--sta-gold,#f4b400);border-radius:10px;padding:10px 12px;margin-bottom:10px;background:#f8fafc;color:#1e293b;font-size:.9rem}
.ss-delete-impact strong{color:var(--sta-blue,#1a237e)}
.ss-delete-impact ul{margin:7px 0 0;padding-left:20px}
.ss-delete-impact li+li{margin-top:5px}
.ss-deprov-intro{color:#334155;font-size:.9rem;margin:0 0 8px}
.ss-deprov-acct{border:1px solid #e5e9f2;border-radius:12px;padding:10px 12px;margin-bottom:8px;background:#f8fafc}
.ss-deprov-acct-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.ss-deprov-login{color:#475569;font-size:.85rem;word-break:break-all}
.ss-deprov-status{color:#b45309;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.ss-deprov-modes{display:flex;flex-direction:column;gap:4px}
.ss-deprov-mode{display:flex;align-items:center;gap:8px;color:#0f172a;font-size:.9rem;cursor:pointer}
/* Render the deprovision-mode checkboxes at a 17px square (checkbox/radio are excluded from the global input
   height, so this just sets the intended box size). Mirrors .ss-check / .timedesk-role-option. */
.ss-deprov-mode input{width:17px;height:17px;margin:0;accent-color:var(--sta-blue,#1a237e);flex:0 0 auto}
.ss-deprov-warn{color:#b3261e;font-weight:700;font-size:.8rem}
.ss-deprov-hint{color:#64748b;font-size:.8rem}
/* StaffStart returning-employee overflow fix (Pixel-class portrait): a `<select>` will NOT shrink below its widest
   <option>, and the returning-employee picker carries long "Last, First - email@domain" options that floor the select
   at the .ss-field-narrow 440px cap. With no `width` set on inputs/selects (app base CSS leaves them intrinsic), every
   field in the form then takes the same 440px floor — wider than a 412px phone, which triggers Chrome-Android layout-
   viewport inflation. Scope width:100%;min-width:0 to the StaffStart form controls + min-width:0 on the columns and
   the .field so a long <option> can clip in the closed select instead of stretching the layout. (Verified in a 412px
   iframe: section width drops from 440 → 373, page fits, zero offenders.) Checkbox/radio are excluded -- width:100%
   would stretch the Steps + "Add a second salary" boxes across the row (their 16px sizing relies on a
   higher-specificity rule that this must not depend on). */
.staffstart-onboarding-create input:not([type="checkbox"]):not([type="radio"]),.staffstart-onboarding-create select,.staffstart-onboarding-create textarea,
.ss-board-modal-form input:not([type="checkbox"]):not([type="radio"]),.ss-board-modal-form select,.ss-board-modal-form textarea{width:100%;min-width:0}
.ss-onb-main,.ss-onb-steps,.staffstart-onboarding-create .field,.ss-board-modal-form .field{min-width:0}
/* Phone-portrait modal: stops the contract modal from filling 92vh top-to-bottom, leaves a tappable backdrop band. */
@media (max-width:760px) and (orientation:portrait){.modal{max-height:80vh}.modal-backdrop{padding:14px 12px}}
.ss-modal-head{margin-bottom:14px}
.ss-modal-name{font-weight:900;color:var(--sta-blue);font-size:1.05rem}
.ss-modal-meta{color:#64748b;font-size:.9rem;margin-top:2px}
.ss-modal-lead{margin-top:1px}
.ss-modal-contact{color:var(--sta-blue);font-weight:700;text-decoration:none}
.ss-modal-contact:hover{text-decoration:underline}
.ss-modal-dot{margin:0 7px;color:#94a3b8}
.ss-modal-statusrow{margin-top:8px}
/* Employee details (Edit & re-issue) form grid. */
.ss-emp-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin-bottom:8px}
@media (max-width:560px){.ss-emp-grid{grid-template-columns:1fr}}
.ss-employee-view .staffstart-table-title{margin:14px 0 8px}
/* Board status pills never wrap (the labels are kept short). */
[data-table="staffstart-board"] .pill{white-space:nowrap}
.dt-muted{color:#94a3b8}
.ss-summary{margin-top:12px;display:flex;flex-direction:column;gap:6px}
.ss-summary-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef1f6;padding-bottom:6px}
.ss-summary-k{color:#64748b;font-weight:600}
.ss-summary-v{color:#0f172a;font-weight:700}
/* PR9b: the per-step pipeline section in the onboarding modal (steps grouped by stage + a status badge each). */
.ss-pipeline{margin:14px 0;padding:12px 14px;background:#f8fafc;border:1px solid #eef1f6;border-radius:8px}
.ss-pipeline-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:700;margin-bottom:10px}
.ss-pipeline-docs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #eef1f6}
/* PR9c: vertical stepper -- one dot per step on a connecting rail, the label + status beside it. */
.ss-stepper{list-style:none;margin:0;padding:0}
.ss-stepper-stage{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;font-weight:700;margin:10px 0 2px}
.ss-stepper-stage:first-child{margin-top:0}
.ss-stepper-step{position:relative;display:flex;align-items:flex-start;gap:12px;padding:7px 0 7px 4px}
.ss-stepper-dot{flex:0 0 auto;width:12px;height:12px;border-radius:50%;margin-top:3px;background:#cbd5e1;box-shadow:0 0 0 3px #fff;z-index:1}
/* the rail: a line linking consecutive step dots (not under a stage label) */
.ss-stepper-step::before{content:"";position:absolute;left:9px;top:-7px;bottom:50%;width:2px;background:#e2e8f0}
.ss-stepper-step:first-child::before,.ss-stepper-stage + .ss-stepper-step::before{display:none}
.ss-stepper-body{flex:1 1 auto;display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.ss-stepper-label{color:#0f172a;font-weight:600}
.ss-stepper-status{display:flex;align-items:center;gap:8px;white-space:nowrap}
.ss-stepper-when{color:#64748b;font-size:12px}
/* Provisioning outcome / failure sub-line: a full-width third row under the label+status, with an inline Retry. */
.ss-stepper-detail{flex:1 0 100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:1px}
.ss-stepper-outcome{color:#64748b;font-size:12px;min-width:0;word-break:break-word}
.ss-stepper-error{color:#b3261e;font-size:12px;min-width:0;word-break:break-word}
.ss-stepper-retry{padding:2px 12px;font-size:12px;line-height:1.6;flex:0 0 auto}
.ss-step-done .ss-stepper-dot{background:#1c7a4a}
.ss-step-active .ss-stepper-dot{background:var(--sta-blue,#1a237e)}
.ss-step-failed .ss-stepper-dot{background:#b3261e}
.ss-step-canceled .ss-stepper-dot{background:#94a3b8}
/* Inline provisioning-review panel (Paxton look-alike): candidate accounts + link / create / leave, in the stepper. */
.ss-review{flex:1 0 100%;margin-top:6px;padding:10px 12px;border:1px solid #f1d9a8;border-radius:12px;background:#fffaf0}
.ss-review-intro{color:#7a5b16;font-size:12.5px;line-height:1.45;margin-bottom:8px}
.ss-review-cands{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.ss-review-cand{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:7px 10px;border:1px solid #ecd8ac;border-radius:10px;background:#fff}
.ss-review-cand-info{min-width:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ss-review-cand-name{color:#0f172a;font-weight:700;font-size:13px;word-break:break-word}
.ss-review-cand-tags{display:inline-flex;gap:6px;flex-wrap:wrap}
.ss-review-tag{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#64748b;background:#f1f5f9;border-radius:999px;padding:1px 8px}
.ss-review-tag-exact{color:#1c7a4a;background:#e6f4ec}
.ss-review-tag-barred{color:#b3261e;background:#fdecea}
.ss-review-link{padding:3px 12px;font-size:12px;line-height:1.6;flex:0 0 auto}
.ss-review-actions{display:flex;gap:8px;flex-wrap:wrap}
.ss-review-leave{padding:3px 12px;font-size:12px;line-height:1.6;background:transparent;color:#64748b;border:1px solid #cbd5e1}
/* Two-column modal header: identity left, the contract summary (bare values) right. */
.ss-modal-head-2col{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}
.ss-modal-headmain{min-width:0}
.ss-modal-headside{text-align:right;min-width:0}
.ss-modal-headside-row{color:#0f172a;font-weight:700}
.ss-modal-headside-row:first-child{color:var(--sta-blue,#1a237e)}
.ss-onb-editing{margin-bottom:12px}
/* PR9c-2: collapsible section (New Onboarding Contract Details). Header stands OUTSIDE the box as a section title
   (matches the "Who are you onboarding?" h3); the body slides open into the rounded card beneath it. */
/* flex-wrap lets the "(optional…)" note drop to its own line on a narrow screen (phone portrait) instead of the
   items shrinking and their TEXT wrapping -- so the title stays "Contract Details" on line 1, note on line 2. */
/* Header bottom-padding is small now -- the header->body gap is the card's own top margin (inside the clipper), so a
   COLLAPSED header stays tight (PR9d-2f). */
.ss-collapsible-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%;background:none;border:0;padding:4px 0;cursor:pointer;text-align:left}
.ss-collapsible-head .staffstart-table-title{margin:0}
.ss-collapsible-title{font-size:1.17rem;line-height:1.3}
.ss-collapsible-note{color:#64748b;font-weight:600;font-size:.82rem}
.ss-collapsible-caret{width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:10px solid var(--sta-blue);transition:transform .25s ease;flex:0 0 auto}
.ss-collapsible-head[aria-expanded="true"] .ss-collapsible-caret{transform:rotate(90deg)}
.ss-collapsible-card{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:14px 16px}
/* Symmetric box padding: the first child's default top margin (a <p>) + the last child's bottom margin would make the
   inner text sit lower from the top than the bottom -- zero them so the 14px padding reads even (PR9d-2f). */
.ss-collapsible-card > :first-child{margin-top:0}
.ss-collapsible-card > :last-child{margin-bottom:0}
/* Type-to-filter box (Settings offered-groups only). */
.ss-group-filter{width:100%;box-sizing:border-box;padding:8px 10px;margin-bottom:8px;border:1px solid #cbd5e1;border-radius:8px;font-size:.92rem}
/* Onboarding group picker (PR9d-2f): a real 2-column grid (aligned), collapsing to 1 column when narrow; each cell
   keeps "Name (email)" on one line. */
.ss-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 22px}
@media (max-width:560px){.ss-group-grid{grid-template-columns:1fr}}
/* Optional-step checkbox-header sections (PR9d-2d): closed rows; config-bearing ones expand an integrated frame. */
.ss-step-sections{display:flex;flex-direction:column;gap:6px}
.ss-form-section-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;cursor:pointer;margin:0}
.ss-form-section-head .ss-step-setup-help{flex:1 1 260px;min-width:0;color:#64748b;font-size:.9rem;font-weight:600;line-height:1.35}
@media (max-width:560px){.ss-form-section-head .ss-step-setup-help{flex-basis:100%;margin-left:27px}}
/* Pre-contract screening = plain checkboxes side by side, flowing on narrow; the not-available rows stack, with the
   note sitting next to the label (it must NOT grow + shove the note to the far right) (PR9d-2e/2f). */
.ss-check-row{display:flex;flex-wrap:wrap;gap:8px 24px}
.ss-check-rows{display:flex;flex-direction:column;gap:6px}
.ss-step-row{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.ss-step-row .ss-step-label{flex:0 0 auto}
/* Responsive onboarding field grids (PR9d-2e): email+preferred two-up; returning name row 4-up (phone narrower);
   address row with skinny State/Zip. All collapse on narrower widths. */
.ss-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.ss-grid-4{display:grid;grid-template-columns:1fr 1fr 1fr .8fr;gap:14px 16px}
.ss-grid-addr{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) 5.5em 7em;gap:14px 16px;margin-top:14px}
@media (max-width:680px){.ss-grid-4,.ss-grid-addr{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.ss-grid-2{grid-template-columns:1fr}}
@media (max-width:440px){.ss-grid-4,.ss-grid-addr{grid-template-columns:1fr}}
/* Breathing room (PR9d-2f): the new/returning field block sits below the segmented toggle / the returning picker. */
.staffstart-onboarding-create [data-ss-onboarding-block]{margin-top:16px}
/* Vertically center the checkbox with the big section title. The title inherits a 10px bottom margin from
   `.ss-onb-section .staffstart-table-title`, which made the flex item's margin-box 10px taller at the bottom, so
   align-items:center pushed the checkbox ~5px LOW. Zero that margin (like .ss-collapsible-head does) so the head is
   exactly the title height and the checkbox centers (verified in Chrome: checkbox center == title center). PR9d-2g. */
.ss-form-section-head .staffstart-table-title{margin:0;line-height:1.2}
.ss-form-section-body>.ss-slide-inner>:first-child{margin-top:2px}
.ss-form-section-body>.ss-slide-inner>:last-child{margin-bottom:2px}
/* View-fields modal: the merge-blank + signer lists. */
.ssf-section{margin-bottom:14px}
.ssf-section:last-child{margin-bottom:0}
.ssf-list{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:3px}
.ssf-list li{color:#0f172a;font-weight:600}
.staffstart-onboarding-prefill{margin-top:14px}
/* Inline-edit rows on the public intake/review form: a pre-filled value shown as read-only text with an Edit pencil
   (and the locked school-email row). */
.ss-prefilled{display:flex;align-items:center;gap:10px;min-height:48px;color:#111827;font-weight:700}
.ss-prefilled>span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.ss-prefilled .btn{flex:0 0 auto}
.ss-prefilled.ss-locked{flex-wrap:wrap;gap:2px 10px;color:#475569}
.ss-prefilled.ss-locked small{flex:1 0 100%;color:#64748b;font-weight:600;font-size:.78rem}
.staffstart-google-main{margin-top:12px}
.staffstart-google-groups{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:10px 12px;margin:8px 0 12px}
.staffstart-google-groups>strong{display:block;color:var(--sta-blue);font-weight:900;margin-bottom:6px}
.staffstart-inline-confirm{border:1px solid #f6d17c;background:#fffdf6;border-left:5px solid var(--sta-gold);border-radius:12px;padding:10px 12px;margin:12px 0;color:#334155}
.staffstart-inline-confirm strong{display:block;color:var(--sta-blue);font-weight:900}
.staffstart-inline-confirm span{display:block;margin-top:4px;font-size:.9rem;font-weight:700;line-height:1.35}
.staffstart-inline-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.staffstart-public-card{margin-top:26px}
.staffstart-public-form{display:flex;flex-direction:column;gap:14px}
.staffstart-public-form .grid-2,.staffstart-public-form .grid-3{gap:14px}
.docdesk-page .stage-toolbar{align-items:flex-start}
/* P4: Forms toolbar — align the "View archived" checkbox with its label + space it from "New form". */
.docdesk-forms-toolbar-actions{display:flex;align-items:center;gap:16px}
.docdesk-forms-archived-toggle{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0;font-size:13px}
.docdesk-forms-archived-toggle input{margin:0}
/* P4: inline rename textbox in the Forms name cell. */
.docdesk-form-name-cell{cursor:default}
.docdesk-form-rename-input{width:100%;box-sizing:border-box;padding:4px 6px;border:1px solid #1570ef;border-radius:4px;font-size:13px}
.docdesk-template-stack{margin:18px 0 0}
.docdesk-template-stack-head{font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.03em;margin:0 0 8px}
.docdesk-template-rows{position:relative}
.docdesk-template-row{display:flex;align-items:center;gap:10px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;padding:8px 10px;margin:0 0 6px}
/* SortableJS: the placeholder gap (ghostClass) and the lifted row (chosenClass). */
.docdesk-template-row--ghost{opacity:.4;background:#eef4fb;border-style:dashed}
.docdesk-template-row--chosen{box-shadow:0 12px 24px rgba(15,23,42,.18);background:#fff}
.docdesk-template-drag{flex:0 0 auto;cursor:grab;color:#94a3b8;font-size:16px;line-height:1;user-select:none;letter-spacing:-2px;touch-action:none}
.docdesk-template-drag:active{cursor:grabbing}
.docdesk-template-num{flex:0 0 auto;width:22px;height:22px;border-radius:50%;background:var(--sta-navy,#0f1f4b);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.docdesk-template-type{flex:0 0 auto;font-size:11px;font-weight:700;color:#475569;background:#e8eef7;border-radius:4px;padding:2px 6px}
.docdesk-template-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a}
.docdesk-template-name-input{flex:1 1 auto;min-width:0;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:5px 8px;font:inherit;color:#0f172a}
.docdesk-template-name-input:focus{outline:none;border-color:var(--sta-gold,#caa24a);box-shadow:0 0 0 2px rgba(202,162,74,.2)}
.docdesk-template-remove{flex:0 0 auto;border:0;background:transparent;color:#94a3b8;font-size:20px;line-height:1;cursor:pointer;padding:0 4px}
.docdesk-template-remove:hover{color:#dc2626}
.docdesk-bundle-help{margin:8px 0 16px}
/* "Start over" sits apart from the build->go pair (pushed right, low-emphasis) to avoid a misclick. */
.docdesk-reset-btn{margin-left:auto;color:#64748b}
.docdesk-reset-btn:hover{color:#9b1c1c;border-color:#ef9a9a}
/* Edit mode: the templates are frozen, so hide the whole build form (chooser + Add + Analyze). The edit
   view in the result area carries its own Save + Start over. */
.docdesk-mode-edit .docdesk-analyze-form{display:none}
/* The locked, ordered "Documents in this bundle" list (read-only on analyze + edit). */
.docdesk-documents-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.docdesk-documents-item{display:flex;align-items:center;gap:10px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;padding:8px 10px}
.docdesk-documents-type{flex:0 0 auto;font-size:11px;font-weight:700;color:#475569;background:#e8eef7;border-radius:4px;padding:2px 6px}
.docdesk-documents-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-weight:600}
.docdesk-source-shell{border:1px solid #dbe4f0;border-radius:8px;background:#fff;padding:14px;margin:18px 0 12px}
.docdesk-source-tabs{display:flex;gap:10px;align-items:flex-end;margin:0 0 16px;border-bottom:1px solid #dbe4f0}
.docdesk-source-tab{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 18px 11px;border:1px solid #dbe4f0;border-bottom:0;border-radius:8px 8px 0 0;background:#f8fafc;color:#334155;font-weight:900;cursor:pointer;user-select:none;transition:transform .14s ease,box-shadow .14s ease,background .14s ease}
.docdesk-source-tab input{position:absolute;opacity:0;pointer-events:none}
.docdesk-source-tab:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(15,23,42,.08)}
.docdesk-source-tab.is-active{background:var(--sta-blue);color:#fff;border-color:var(--sta-blue);box-shadow:0 5px 0 var(--sta-gold),0 12px 20px rgba(26,35,126,.16);transform:translateY(-2px)}
.docdesk-source-panel{display:none}
.docdesk-source-panel.is-active{display:block}
.docdesk-picker-field .btn:disabled{opacity:.62;box-shadow:none;cursor:not-allowed}
.docdesk-file-control{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;width:100%;min-height:54px;border:1px solid #d7dce3;border-radius:9px;background:#fff;overflow:hidden;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.docdesk-file-control:hover{border-color:var(--sta-blue);box-shadow:0 10px 24px rgba(26,35,126,.12);transform:translateY(-1px)}
.docdesk-file-control:focus-within{outline:3px solid rgba(255,193,7,.45);outline-offset:3px}
.docdesk-file-control input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.docdesk-file-button{display:flex;align-items:center;justify-content:center;min-height:54px;padding:0 18px;background:var(--sta-blue);color:#fff;font-weight:900;text-transform:uppercase;letter-spacing:.04em;border-right:4px solid var(--sta-gold);pointer-events:none}
.docdesk-file-name{padding:0 16px;color:#64748b;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.docdesk-file-name.has-file{color:#0f172a}
.gp-file-control{display:inline-grid;grid-template-columns:max-content minmax(120px,1fr);align-items:center;min-height:44px;border:1px solid #d7dce3;border-radius:9px;background:#fff;overflow:hidden;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.gp-file-control:hover{border-color:var(--sta-blue);box-shadow:0 8px 20px rgba(26,35,126,.12)}
.gp-file-control:focus-within{outline:3px solid rgba(255,193,7,.45);outline-offset:2px}
.gp-file-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.gp-file-button{display:flex;align-items:center;min-height:44px;padding:0 16px;background:var(--sta-blue);color:#fff;font-weight:900;text-transform:uppercase;letter-spacing:.04em;border-right:4px solid var(--sta-gold);pointer-events:none;white-space:nowrap}
.gp-file-name{padding:0 14px;color:#64748b;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.gp-file-name.has-file{color:#0f172a}
.gp-set-field{margin-bottom:18px}
.gp-set-label{display:block;font-weight:700;font-size:14px;color:#0f172a;margin-bottom:6px}
.gp-set-input{height:38px;width:220px;max-width:100%;border:1px solid #d7dce3;border-radius:8px;padding:0 10px;font-size:14px}
.gp-set-help{font-size:12px;color:#64748b;margin-top:5px;max-width:560px;line-height:1.45}
.gp-reviewer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px 14px;margin-top:4px}
.gp-reviewer-opt{display:flex;align-items:center;gap:7px;font-size:13px;color:#0f172a;padding:4px 0;cursor:pointer}
.gp-fu:hover{border-color:var(--sta-blue)}
/* Cockpit modal: a STABLE size so collapsing sections never reflows it skinny (width) or short (height). The
   body owns the scroll (min/max-height), which also makes each fresh open start at the top — innerHTML replace
   resets the body's scrollTop. Uses :has() like the TimeDesk entry-editor modal above. */
/* ONE scroll: the cockpit modal is a flex column — the header stays pinned and ONLY the body scrolls. Was a
   nested modal-scroll + body-scroll (a frame-in-a-frame you could get lost in, missing the bottom). */
.modal:has(.grantpath-cockpit){width:min(1000px,94vw);max-width:min(1000px,94vw);min-height:min(62vh,620px);max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.modal:has(.grantpath-cockpit) .modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
.gp-reviewer-modal-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px;border-bottom:1px solid var(--border);font-size:14px}
.gp-reviewer-modal-row button{border:none;background:none;color:#b91c1c;cursor:pointer;font-size:15px;line-height:1;padding:2px 6px}
.gp-reviewer-add-row{display:flex;gap:8px;align-items:center;margin-top:12px}
.gp-reviewer-add-row select{flex:1;height:38px;border:1px solid #d7dce3;border-radius:8px;padding:0 8px;font-size:14px}
/* GrantPath lists are long (52 families) — raise the sticky-header scroll cap for these two tables only, so the
   committee sees many rows at once instead of the shared ~5-row default. */
[data-table="grantpath-families-table"].dt-sticky-header .dt-scroll,
[data-table="grantpath-tasks-table"].dt-sticky-header .dt-scroll{max-height:min(78vh,1000px)}
/* Tasks worklist: completed rows hide unless the "Show completed" box adds .show-completed. */
.gp-task-list{display:flex;flex-direction:column}
.gp-task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 4px;border-bottom:1px solid var(--border)}
.gp-task-list:not(.show-completed) .gp-task-row[data-done="1"]{display:none}
.gp-task-row[data-done="1"] .gp-task-label{text-decoration:line-through;color:var(--muted)}
.gp-task-check{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:14px;min-width:0}
.gp-task-family{border:none;background:none;color:var(--sta-blue);cursor:pointer;font-size:13px;font-weight:600;white-space:nowrap}
.gp-task-family:hover{text-decoration:underline}
/* Per-student award row: 5 columns on desktop; on a phone the three inputs would shoot past the modal edge, so
   they wrap — the bucket label spans the top, then the charge/$/% inputs + reset flow into a 2-column grid. */
.gp-award-row{display:grid;grid-template-columns:1fr .9fr .8fr .55fr 28px;gap:5px;align-items:center;padding:3px 0;font-size:13px}
.gp-award-row>input{min-width:0}
@media (max-width:560px){
  .gp-award-row{grid-template-columns:1fr 1fr;gap:6px 8px;padding:6px 0}
  .gp-award-row>span{grid-column:1/-1;font-weight:600}
}
/* Read-only per-bucket "family pays" sub-line under each award row. Right-aligned so it sits under the boxes. */
/* The cockpit buttons were oversized (contract / tax / save / the Call-Email follow-ups). Compact them — the
   follow-ups have inline padding so they need !important to shrink. */
.grantpath-cockpit .btn{padding:5px 12px !important;font-size:12px !important;font-weight:600 !important;min-height:0 !important;height:auto !important;line-height:1.35}
.grantpath-cockpit .gp-fu{padding:3px 10px !important;font-size:12px !important}
.grantpath-cockpit .gp-fu i,.grantpath-cockpit .btn i{font-size:12px}
.gp-award-pays{font-size:11px;color:var(--muted);text-align:right;padding:0 32px 5px 0;margin-top:-3px}
.gp-award-pays strong{color:#1f2a44;font-weight:600}
@media (max-width:560px){ .gp-award-pays{padding-right:6px;margin-top:2px} }
/* Document viewer — a CONTAINED modal (like the details modal) holding a scrolling column of page images, over a
   light dim so the cockpit shows through beneath. Click the dim margin to close back to the cockpit. z above 9997. */
.gp-lightbox{position:fixed;inset:0;z-index:10060;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.5)}
.gp-lightbox.open{display:flex}
.gp-lightbox-modal{width:min(940px,92vw);max-height:90vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.4)}
.gp-lightbox-bar{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--border)}
.gp-lightbox-name{font-weight:900;font-size:15px;color:var(--sta-blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gp-lightbox-count{font-size:12px;color:var(--muted);flex:0 0 auto}
.gp-lightbox-zoom{margin-left:auto;flex:0 0 auto;display:flex;gap:6px}
.gp-lightbox-zbtn{width:30px;height:28px;background:#f0f2f5;border:1px solid var(--border);color:#1f2a44;border-radius:7px;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.gp-lightbox-zbtn:hover{background:#e2e6ec}
.gp-lightbox-close{flex:0 0 auto;background:none;border:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:2px 8px;border-radius:7px}
.gp-lightbox-close:hover{background:#f0f2f5;color:#1f2a44}
/* BLOCK scroll (not flex): block images keep their true height — no flex-shrink squash — and `margin:auto`
   centers each page yet collapses to 0 when a zoomed page is WIDER than the pane, so you can scroll to it. */
.gp-lightbox-scroll{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px;background:#eceff3}
/* Default width fits the pane (var unset -> 100%). Zoom sets --gp-doc-width in px; NO max-width, so a zoomed page
   can overflow the pane and pan via the scroll's horizontal overflow. */
.gp-lightbox-page{display:block;width:var(--gp-doc-width,100%);height:auto;margin:0 auto 14px;background:#fff;border-radius:3px;box-shadow:0 4px 16px rgba(15,23,42,.18)}
.gp-lightbox-page:last-child{margin-bottom:0}
html.gp-lightbox-open{overflow:hidden}
@media (max-width:560px){
  .gp-lightbox{padding:8px}
  .gp-lightbox-modal{width:100vw;max-height:94vh;border-radius:10px}
  .gp-lightbox-bar{padding:10px 12px;gap:9px}
  .gp-lightbox-scroll{padding:8px}
  .gp-lightbox-page{margin-bottom:9px}
}
.docdesk-analysis-result{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:18px 20px;margin-top:14px}
.docdesk-analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #dbe4f0;padding-bottom:14px;margin-bottom:0}
.docdesk-draft-head{align-items:center}
.docdesk-draft-head-action{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.docdesk-expires-field{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--sta-blue);font-weight:700}
.docdesk-expires-field .docdesk-expires-label{white-space:nowrap}
.docdesk-title-field{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--sta-blue);font-weight:700}
.docdesk-title-label{white-space:nowrap}
.docdesk-title-input{border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:5px 8px;font:inherit;font-weight:400;color:#0f172a;min-width:200px}
.docdesk-title-input:focus{outline:none;border-color:var(--sta-gold,#caa24a);box-shadow:0 0 0 2px rgba(202,162,74,.2)}
.docdesk-expires-input{padding:7px 9px;border:1px solid #cbd5e1;border-radius:6px;font:inherit;color:#1f2937}
.docdesk-expires-readonly{font-size:13px;color:#64748b;font-weight:600;white-space:nowrap}
#docdesk-expiration-modal .modal{max-width:380px}
.docdesk-stepper{display:inline-flex;align-items:center;gap:8px;margin-top:6px}
.docdesk-stepper-btn{width:34px;height:34px;flex:0 0 auto;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:var(--sta-blue);font-size:18px;font-weight:700;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.docdesk-stepper-btn:hover{background:#eef2f7}
.docdesk-stepper-input{width:52px;text-align:center;padding:7px 6px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;color:#1f2937}
.docdesk-stepper-suffix{color:#64748b;font-size:13px}
.docdesk-analysis-head h3,.docdesk-result-section h4{margin:0;color:var(--sta-blue);font-weight:900}
.docdesk-analysis-head p{margin:4px 0 0;color:#64748b;font-weight:700}
.docdesk-summary-grid{grid-template-columns:repeat(3,minmax(120px,1fr));margin:0;min-width:360px}
.docdesk-summary-grid .summary-card{display:flex;align-items:baseline;justify-content:center;gap:6px;border-radius:10px;box-shadow:0 2px 8px rgba(26,35,126,.05)}
.docdesk-summary-grid .summary-card strong{color:var(--sta-blue);font-weight:900}
.docdesk-result-section{border-top:1px solid #dbe4f0;margin-top:18px;padding-top:18px}
.docdesk-result-section h4{margin-bottom:12px}
.docdesk-analysis-head+.docdesk-result-section{border-top:0;margin-top:14px;padding-top:0}
details.docdesk-directives-accordion{padding-top:0}
.docdesk-accordion-summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:16px 0 0;margin-bottom:0}
.docdesk-accordion-summary::-webkit-details-marker{display:none}
.docdesk-accordion-summary h4{margin:0}
.docdesk-accordion-caret{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid var(--sta-blue);transition:transform .18s ease;flex:0 0 auto}
details.docdesk-directives-accordion[open] .docdesk-accordion-caret{transform:rotate(90deg)}
.docdesk-accordion-count{margin-left:auto;background:#eef2ff;color:var(--sta-blue);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:900}
.docdesk-directives-accordion .leave-modal-table-wrap{margin-top:12px}
.docdesk-settings-table-wrap{max-width:720px;margin-top:8px}
.docdesk-settings-table td{vertical-align:middle}
/* Label may wrap (was nowrap, which set a ~435px intrinsic floor that overflowed phones); thumbnail caps to
   its cell. The action column stays nowrap so the short Edit/Add button never breaks. */
.docdesk-settings-table .docdesk-settings-label{font-weight:900;color:var(--sta-blue)}
.docdesk-settings-table .docdesk-settings-action-col{text-align:right;white-space:nowrap;width:1%}
.docdesk-settings-table .docdesk-sig-thumb{max-width:100%;height:auto}
.docdesk-style-preview{font-size:1.35rem;line-height:1.5;color:#111827;padding:0 .2em}
.docdesk-user-signature-preview{margin-top:14px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
/* DocDesk signature image capture: Type/Draw/Upload tabs + canvas + thumbnails */
.docdesk-sig-thumb{display:inline-block;max-height:44px;max-width:200px;height:auto;width:auto;vertical-align:middle;background:#fff;border:1px solid var(--border,#d8dee9);border-radius:6px;padding:2px}
.docdesk-sig-tabs{display:inline-flex;gap:4px;margin-bottom:14px;border:1px solid var(--border,#d8dee9);border-radius:8px;padding:3px;background:#f3f5f9}
.docdesk-sig-tab{appearance:none;border:0;background:transparent;cursor:pointer;font:inherit;font-weight:800;color:#52607a;padding:6px 16px;border-radius:6px}
.docdesk-sig-tab.is-active{background:#fff;color:var(--sta-blue);box-shadow:0 1px 2px rgba(16,24,90,.12)}
.docdesk-sig-panel{display:none}
.docdesk-sig-panel.is-active{display:block}
.docdesk-current-banner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px;min-height:30px}
.docdesk-draw-wrap{border:1px dashed var(--border,#c4ccda);border-radius:10px;background:#fff;padding:6px}
.docdesk-draw-canvas{display:block;width:100%;height:auto;aspect-ratio:3/1;touch-action:none;cursor:crosshair;border-radius:6px}
.docdesk-draw-actions{display:flex;align-items:center;gap:12px;margin-top:8px;flex-wrap:wrap}
.docdesk-upload-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:4px}
.docdesk-bg-toggle{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:#52607a;cursor:pointer;white-space:nowrap}
.docdesk-bg-toggle input{margin:0}
.docdesk-upload-preview-wrap{margin-top:10px;min-height:48px;display:flex;align-items:center}
.docdesk-upload-empty{font-style:italic}
/* Checkerboard so a transparent (background-removed) preview is visible. */
.docdesk-checker{background-color:#fff;background-image:linear-gradient(45deg,#e7ebf2 25%,transparent 25%),linear-gradient(-45deg,#e7ebf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7ebf2 75%),linear-gradient(-45deg,transparent 75%,#e7ebf2 75%);background-size:14px 14px;background-position:0 0,0 7px,7px -7px,-7px 0}
/* Visually-hidden file input behind a native <label> trigger (label activation is reliable on mobile,
   unlike a JS .click() on a display:none input). Kept in the layout (not display:none) so the label fires. */
.docdesk-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.docdesk-image-result{margin-top:12px}
.docdesk-bg-slider-row{display:flex;align-items:center;gap:10px;margin:8px 0 2px;max-width:340px}
.docdesk-bg-slider-row input[type="range"]{flex:1;accent-color:var(--sta-blue)}
.docdesk-bg-slider-row .docdesk-bg-slider-label{font-weight:800;color:#52607a;white-space:nowrap}
/* Busy-lock overlay: covers the whole modal backdrop while processing/downloading; dismissal is also
   blocked in closeModal, so tapping off cannot abandon the work mid-process. */
.docdesk-busy-overlay{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.45)}
.docdesk-busy-card{display:flex;align-items:center;gap:12px;background:#fff;color:var(--sta-blue);font-weight:900;border:2px solid var(--sta-gold);border-radius:12px;padding:14px 20px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.docdesk-busy-spinner{width:22px;height:22px;border:3px solid #dbe2ef;border-top-color:var(--sta-blue);border-radius:50%;animation:docdesk-busy-spin .8s linear infinite}
@keyframes docdesk-busy-spin{to{transform:rotate(360deg)}}
.docdesk-image-result-actions{margin-top:8px}
/* U1: drop the help line clear of the button drop-shadow directly above it -- the capture-tab buttons
   ("Choose image", "Choose from Google Drive", and "Crop image") cast a shadow that otherwise lands on
   the help text immediately beneath them. */
.docdesk-sig-panel .btn + .field-help{margin-top:12px}
.docdesk-image-result-actions + .field-help{margin-top:12px}
/* Dedicated full-size crop overlay (its own layer, above the modal; not a nested standard modal). */
.docdesk-crop-overlay{position:fixed;inset:0;z-index:10045;background:rgba(15,23,42,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.docdesk-crop-dialog{background:#fff;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.35);padding:16px;max-width:min(94vw,720px);max-height:92vh;display:flex;flex-direction:column;gap:12px}
.docdesk-crop-title{font-weight:900;color:var(--sta-blue)}
.docdesk-crop-stage-wrap{display:flex;align-items:center;justify-content:center;overflow:auto}
.docdesk-crop-stage{position:relative;line-height:0;touch-action:none;user-select:none}
.docdesk-crop-stage canvas{display:block;border-radius:6px}
.docdesk-crop-box{position:absolute;border:2px solid var(--sta-gold);box-shadow:0 0 0 9999px rgba(15,23,42,.5);cursor:move;touch-action:none}
.docdesk-crop-handle{position:absolute;width:18px;height:18px;background:var(--sta-gold);border:2px solid #fff;border-radius:50%;touch-action:none;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.docdesk-crop-handle.tl{left:-10px;top:-10px;cursor:nwse-resize}
.docdesk-crop-handle.tr{right:-10px;top:-10px;cursor:nesw-resize}
.docdesk-crop-handle.bl{left:-10px;bottom:-10px;cursor:nesw-resize}
.docdesk-crop-handle.br{right:-10px;bottom:-10px;cursor:nwse-resize}
.docdesk-crop-actions{display:flex;justify-content:flex-end;gap:10px}
.docdesk-merge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:10px 0 4px}
.docdesk-merge-grid .docdesk-merge-paragraph{grid-column:1/-1}
.docdesk-merge-grid .docdesk-merge-paragraph textarea{width:100%;min-height:88px;resize:vertical;font:inherit}
.docdesk-recipient-rows{display:grid;gap:12px}
.docdesk-recipient-row{display:grid;grid-template-columns:minmax(110px,.35fr) repeat(3,minmax(180px,1fr));gap:12px;align-items:end}
.docdesk-recipient-privacy{grid-column:2/-1;display:grid;grid-template-columns:minmax(280px,1fr) minmax(220px,1fr);gap:12px}
.docdesk-recipient-title{color:var(--sta-blue);font-weight:900;padding-bottom:14px}
.docdesk-recipient-appears{margin-top:4px;font-weight:600;font-size:11px;color:#64748b;line-height:1.35}
.docdesk-sender-warning{margin-top:10px}
/* A "looks disabled but still clickable" Send button: greyed so the sender sees they can't send yet,
   while a click still fires the toast naming the sender mark to save first (a truly disabled button
   fires no click). The send is also hard-blocked server-side. */
.docdesk-send-blocked,.docdesk-send-blocked:hover,.docdesk-send-blocked:focus{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none;filter:grayscale(35%)}
.docdesk-directive-table td:first-child{font-family:Consolas,"Courier New",monospace;font-weight:900;color:var(--sta-blue)}
.docdesk-send-option{display:inline-flex;align-items:center;gap:8px;min-height:38px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafc;padding:8px 10px;color:#334155;font-weight:800;line-height:1.2}
.docdesk-send-option input{width:17px;height:17px;margin:0;accent-color:var(--sta-blue);flex:0 0 auto}
.docdesk-send-option input:focus-visible{outline:3px solid rgba(255,193,7,.45);outline-offset:3px}
.docdesk-analysis-auth{margin-top:14px}
.docdesk-draft-id{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;padding:10px 12px;margin-top:12px;color:#334155}
.docdesk-draft-id span{font-weight:900;color:#64748b;text-transform:uppercase;font-size:.78rem;letter-spacing:.04em}
.docdesk-draft-id strong{font-weight:900;color:var(--sta-blue);font-family:Consolas,"Courier New",monospace}
.docdesk-draft-created .docdesk-summary-grid{margin:14px 0 18px;min-width:0}
.docdesk-draft-preview-panel{border-top:1px solid #dbe4f0;margin-top:16px;padding-top:16px}
.docdesk-draft-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.docdesk-draft-preview-head h4{margin:0;color:var(--sta-blue);font-weight:900}
.docdesk-draft-preview-empty .empty-state{margin:0}
/* Custom in-app Google Drive browser (replaces the Google Picker). Top-level overlay above the crop
   overlay (10045) / modal backdrop (9997); folders + files open/select on a single click. */
.dt-drive-overlay{position:fixed;inset:0;z-index:10046;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:18px}
/* Fixed height (desktop vs phone) so the modal opens at one size and does NOT pump bigger/smaller as
   folders load or vary in count -- the LIST flexes to fill and scrolls internally (overflow:hidden here). */
.dt-drive-card{width:min(760px,calc(100vw - 32px));height:min(86vh,680px);overflow:hidden;text-align:left;background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.3);padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.dt-drive-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dt-drive-head strong{color:var(--sta-blue);font-size:1.1rem;font-weight:900}
/* Level-2-style tabs (My Drive / Shared with me) -- they share the one toolbar line with Up + breadcrumb + filter */
.dt-drive-tab{flex:0 0 auto;padding:8px 16px;background:var(--steel);border:1px solid var(--steel-border);border-radius:10px;color:var(--steel-text);font:inherit;font-weight:800;cursor:pointer;transition:.2s ease}
.dt-drive-tab:hover{border-color:#9fb0c8;color:var(--sta-blue)}
.dt-drive-tab.is-active{background:var(--sta-blue);border-color:var(--sta-blue);color:#fff;border-bottom:4px solid var(--sta-gold)}
.dt-drive-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dt-drive-up[disabled]{opacity:.45;cursor:not-allowed}
.dt-drive-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;flex:1;min-width:120px}
.dt-drive-crumb{background:none;border:0;padding:2px 5px;color:var(--sta-blue);font:inherit;font-weight:800;cursor:pointer;border-radius:6px}
.dt-drive-crumb:hover{background:#eef2fb}
.dt-drive-crumb.is-current{color:#52607a;cursor:default}
.dt-drive-crumb-sep{color:#9aa6bd;font-weight:800}
.dt-drive-filter{flex:0 0 auto;width:200px;max-width:46%;padding:8px 10px;border:1px solid #dbe4f0;border-radius:9px;font:inherit}
.dt-drive-usefolder{flex:0 0 auto}
.dt-drive-usefolder[disabled]{opacity:.45;cursor:not-allowed}
.dt-drive-header,.dt-drive-row{display:grid;grid-template-columns:22px minmax(0,1fr) 96px 96px;align-items:center;gap:10px}
.dt-drive-header{padding:2px 12px;border-bottom:1px solid #eef2f8}
.dt-drive-h{background:none;border:0;padding:4px 0;font:inherit;font-weight:900;color:#52607a;text-transform:uppercase;letter-spacing:.4px;font-size:.72rem;text-align:left;cursor:pointer;justify-self:start}
.dt-drive-h:hover,.dt-drive-h.is-active{color:var(--sta-blue)}
.dt-drive-h-name{grid-column:1 / 3}
.dt-drive-list{display:grid;gap:6px;flex:1;min-height:0;overflow:auto;align-content:start}
.dt-drive-row{width:100%;border:1px solid #dbe4f0;border-radius:10px;background:#fff;padding:10px 12px;color:#1f2a44;text-align:left;font:inherit;font-weight:700;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.dt-drive-row:hover,.dt-drive-row:focus{border-color:var(--sta-gold);box-shadow:0 8px 20px rgba(26,35,126,.1);outline:0}
.dt-drive-row.is-selected,.dt-drive-tile.is-selected{border-color:var(--sta-blue);background:#eef3ff;box-shadow:0 0 0 1px var(--sta-blue) inset}
.dt-drive-row-icon{font-size:1.15rem;line-height:1}
.dt-drive-row-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dt-drive-col-date{font-size:.78rem;font-weight:700;color:#64748b;white-space:nowrap}
.dt-drive-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dt-drive-note{color:#94782b;font-size:.8rem;font-weight:700}
.dt-drive-empty{color:#52607a;padding:20px 4px;text-align:center;font-weight:700}
/* List <-> grid toggle + the grid (tile) view, used mainly for the signature image picker */
.dt-drive-viewtoggle{flex:0 0 auto;padding:6px 10px;border:1px solid #dbe4f0;border-radius:9px;background:#fff;color:var(--sta-blue);font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.dt-drive-viewtoggle:hover{border-color:var(--sta-gold)}
.dt-drive-list.is-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.dt-drive-tile{display:flex;flex-direction:column;gap:6px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:8px;cursor:pointer;font:inherit;font-weight:700;color:#1f2a44;text-align:center;transition:border-color .15s ease,box-shadow .15s ease}
.dt-drive-tile:hover,.dt-drive-tile:focus{border-color:var(--sta-gold);box-shadow:0 8px 20px rgba(26,35,126,.1);outline:0}
.dt-drive-tile-thumb{display:flex;align-items:center;justify-content:center;height:96px;border-radius:8px;background:#f1f4fa;overflow:hidden}
.dt-drive-tile-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.dt-drive-tile-icon{font-size:2.4rem;line-height:1}
.dt-drive-tile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem}
@media (max-width:560px){
  .dt-drive-card{height:90vh}
  .dt-drive-header,.dt-drive-row{grid-template-columns:22px minmax(0,1fr)}
  .dt-drive-col-date,.dt-drive-h-date{display:none}
  .dt-drive-list.is-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
}
/* D2: the "Choose from Drive" button + the read-only selected-doc title share ONE row inside the
   .docdesk-picker-choice cluster. The field itself stays a normal .field (label / cluster / help stack),
   so no flex-direction override is needed -- the cluster owns the horizontal layout. */
.docdesk-picker-choice{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.docdesk-picker-choice .btn{flex:0 0 auto}
.docdesk-selected-doc{flex:1;min-width:200px;padding:9px 12px;border:1px solid #dbe4f0;border-radius:9px;background:#f7f9fc;color:#1f2a44;font-weight:800}
.docdesk-selected-doc.has-doc{border-color:var(--sta-gold);background:#fff}
.docdesk-v2-sign-page{max-width:1120px;margin:0 auto;padding:28px 16px 48px}
.docdesk-v2-header-card{background:#fff;border:1px solid #dbe4f0;border-left:5px solid var(--sta-gold);box-shadow:0 8px 20px rgba(15,23,42,.06);padding:14px 22px;margin-bottom:0}
.docdesk-v2-header-card .page-kicker{font-size:.72rem;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;color:var(--sta-gold);margin-bottom:4px}
.docdesk-v2-header-card h1{margin:0 0 4px;color:var(--sta-blue);font-size:1.6rem;font-weight:900}
.docdesk-v2-header-card p{margin:0;color:#52637a;font-weight:800}
.docdesk-v2-public-card{background:#fff;border:1px solid #dbe4f0;border-left:5px solid var(--sta-gold);box-shadow:0 16px 34px rgba(15,23,42,.08);padding:18px 22px;margin-bottom:18px}
.docdesk-v2-public-card h1{margin:2px 0 4px;color:var(--sta-blue);font-size:1.8rem;font-weight:900}
.docdesk-v2-public-card p{margin:0;color:#52637a;font-weight:800}
.docdesk-v2-form-card{background:#fff;border:1px solid #dbe4f0;border-top:0;padding:18px 22px;margin-bottom:14px}
.docdesk-v2-sign-error[hidden]{display:none}
.docdesk-v2-sign-error{margin-bottom:8px}
.docdesk-v2-sign-form{display:flex;flex-direction:column;gap:0;margin-top:0}
.docdesk-v2-sig-block{display:flex;gap:20px;align-items:flex-start;padding:16px 0}
.docdesk-v2-capture{flex:1;min-width:0;position:relative}
.docdesk-v2-capture.is-disabled{opacity:.55}
.docdesk-v2-inputs-row{flex:1;display:grid;grid-template-columns:1fr auto 2fr;gap:10px;align-items:end;min-width:0}
.docdesk-v2-inputs-row .field{min-width:0}
.docdesk-v2-preview-wrap{border:1px solid #dbe4f0;border-radius:8px;padding:6px 12px;min-height:48px;display:flex;align-items:center;overflow:hidden;background:#fff;min-width:0}
.docdesk-v2-preview-wrap span{box-sizing:border-box;font-size:19px;white-space:nowrap;line-height:1.4;display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#111;padding:0 .35em}
.docdesk-v2-accept-col{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0;max-width:220px}
.docdesk-v2-agree-text{font-size:.82rem;color:#52637a;font-weight:700;text-align:right;margin:0;line-height:1.4}
.docdesk-v2-divider{border:0;border-top:1px solid #dbe4f0;margin:4px 0}
.font-script{font-family:"Dancing Script",cursive}
.font-formal{font-family:Georgia,"Times New Roman",serif}
.font-hand{font-family:"Caveat",cursive}
.font-clean{font-family:Arial,Helvetica,sans-serif}
.docdesk-v2-accept-btn{border:none;border-radius:12px;padding:12px 18px;font-weight:900;letter-spacing:1px;text-transform:uppercase;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:.15s ease;background:var(--sta-blue);color:#fff;box-shadow:0 4px 12px rgba(26,35,126,.18)}
.docdesk-v2-accept-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 7px 16px rgba(26,35,126,.18)}
.docdesk-v2-accept-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 3px 8px rgba(26,35,126,.16)}
.docdesk-v2-accept-btn.accepted{background:var(--sta-blue);color:#fff;border-bottom:5px solid var(--sta-gold);padding-bottom:6px}
.docdesk-v2-accept-btn:disabled:not(.accepted){background:#dbe4ef;color:#60728b;cursor:not-allowed;box-shadow:none}
.docdesk-v2-sign-form input:disabled,.docdesk-v2-sign-form select:disabled{background:#f1f5f9;color:#52637a;cursor:not-allowed}
.docdesk-v2-action-bar{position:sticky;top:0;z-index:30;background:#fff;border:1px solid #dbe4f0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;box-shadow:0 8px 18px rgba(15,23,42,.1);margin-bottom:14px}
.docdesk-v2-skip-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:12px 18px;border:1px solid #dbe4f0;background:#f8fafc;border-radius:10px}
.docdesk-v2-skip-form p{margin:0}
.docdesk-v2-next-btn{border:none;border-radius:12px;padding:10px 16px;font-weight:900;letter-spacing:.5px;text-transform:uppercase;cursor:pointer;background:var(--sta-blue);color:#fff;transition:.15s ease;font-size:.82rem;box-shadow:0 4px 12px rgba(26,35,126,.18)}
.docdesk-v2-next-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 7px 16px rgba(26,35,126,.18)}
.docdesk-v2-next-btn:active:not(:disabled){transform:translateY(0)}
.docdesk-v2-next-btn:disabled{background:#dbe4ef;color:#60728b;cursor:not-allowed;box-shadow:none}
.docdesk-v2-submit-btn:disabled{opacity:.55;cursor:not-allowed}
.docdesk-v2-progress{margin-left:auto}
.docdesk-v2-instruction-banner{background:#fffbea;border-left:4px solid var(--sta-gold);padding:10px 16px;font-size:.88rem;font-weight:700;color:#64510a;margin-top:0}
.docdesk-v2-consent-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;background:#f4f7fc;border:1px solid #dbe4f0;border-left:4px solid var(--sta-navy,#1a237e);border-radius:6px;padding:12px 16px;margin:0 0 16px}
.docdesk-v2-consent-check{display:flex;align-items:flex-start;gap:9px;font-size:.92rem;font-weight:700;color:#1f2933;cursor:pointer;line-height:1.35}
.docdesk-v2-consent-check input{margin-top:2px;width:18px;height:18px;flex:0 0 auto;cursor:pointer}
.docdesk-v2-disclosure-link{background:none;border:0;padding:0;color:var(--sta-navy,#1a237e);font-weight:700;font-size:.85rem;text-decoration:underline;cursor:pointer}
.docdesk-v2-disclosure-link:hover{color:#0f1a5c}
.docdesk-v2-success{background:#fff;border:1px solid #dbe4f0;border-left:4px solid var(--sta-gold);border-radius:6px;padding:13px 17px}
.docdesk-v2-success strong{display:block;color:var(--sta-navy,#1a237e);font-size:1rem}
.docdesk-v2-success-note{color:#52637a;font-weight:600;margin-top:5px;line-height:1.45}
/* P10: email-code verify page — proper spacing + a 6-box OTP input (the controls used to crowd/overlap). */
.docdesk-code-form{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:8px}
.docdesk-otp-label{font-weight:800;color:var(--sta-blue);font-size:.9rem;margin:0}
.docdesk-otp-row{display:flex;gap:8px;flex-wrap:nowrap}
.docdesk-otp-box{width:44px;height:52px;text-align:center;font-size:1.4rem;font-weight:800;color:#0f172a;border:1px solid #c4ccd8;border-radius:8px;background:#fff;padding:0}
.docdesk-otp-box:focus{border-color:#1570ef;box-shadow:0 0 0 2px rgba(21,112,239,.18);outline:none}
.docdesk-otp-submit{margin-top:2px}
/* Verify + Resend share one row (the buttons are associated to their forms via form=""). */
.docdesk-code-actions{display:flex;align-items:center;gap:14px;margin-top:14px}
@media (max-width:480px){ .docdesk-otp-box{width:40px;height:48px;font-size:1.25rem} }
.docdesk-pdf-viewer{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;min-height:420px;border:1px solid #dbe4f0;border-radius:8px;background:#eef2f7;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.08);overflow:auto}
.docdesk-v2-pdf-viewer{min-height:74vh;border-radius:0;box-shadow:0 18px 40px rgba(15,23,42,.1)}
.docdesk-pdf-loading{width:100%;background:#fff;border-left:5px solid var(--sta-gold);padding:14px 16px;color:var(--sta-blue);font-weight:900}
.docdesk-pdf-frame{position:relative;overflow:hidden;flex:0 0 auto}
.docdesk-pdf-page{position:relative;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.18);overflow:hidden;transform-origin:top left}
.docdesk-pdf-page canvas{display:block;width:100%;height:auto}
.docdesk-pdf-field-mask{position:absolute;z-index:2;background:#fff;pointer-events:none}
.docdesk-pdf-field{position:absolute;z-index:3;border:0;background:transparent;padding:0;display:flex;align-items:center;justify-content:center;color:var(--sta-blue);font-size:12px;font-weight:900}
.docdesk-pdf-field.is-current{cursor:pointer}
.docdesk-pdf-field.is-reserved{cursor:default;color:#334155}
.docdesk-pdf-field.is-complete{cursor:default;color:#111}
.docdesk-pdf-field-chip{box-sizing:border-box;width:100%;height:100%;min-height:100%;display:flex;align-items:center;justify-content:center;border:2px solid var(--sta-blue);border-radius:4px;background:#fff9df;padding:2px 6px;box-shadow:0 2px 6px rgba(15,23,42,.18);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.docdesk-pdf-field.is-current:hover .docdesk-pdf-field-chip{transform:translateY(-1px);box-shadow:0 6px 14px rgba(26,35,126,.18)}
.docdesk-pdf-field.done .docdesk-pdf-field-chip{background:transparent;border-color:transparent;box-shadow:none;color:#111;font-size:var(--value-font-size,21px);font-weight:700}
.docdesk-pdf-field.kind-signature.done .docdesk-pdf-field-chip{align-items:flex-end;justify-content:flex-start;line-height:.92;overflow:visible;font-weight:400}
.docdesk-pdf-field.kind-initial.done .docdesk-pdf-field-chip{font-size:var(--value-font-size,14px);font-weight:900;justify-content:flex-start;align-items:flex-end;overflow:visible}
.docdesk-pdf-field.kind-date.done .docdesk-pdf-field-chip{background:transparent;border-color:transparent;box-shadow:none;color:#111;font-family:"Roboto Mono",ui-monospace,monospace;font-size:var(--value-font-size,14px);font-weight:500;justify-content:flex-start;align-items:flex-end;white-space:nowrap;overflow:hidden;line-height:1.1;text-align:left}
/* Image value (drawn/uploaded signature) rendered inline: transparent, sits on the line, overflows like text. */
.docdesk-pdf-field.has-image .docdesk-pdf-field-chip{background:transparent;border-color:transparent;box-shadow:none;overflow:visible;justify-content:flex-start;align-items:flex-end;padding:0}
.docdesk-pdf-field-chip img.docdesk-chip-img{display:block;width:auto;max-width:none;height:auto}
.docdesk-pdf-field.is-reserved .docdesk-pdf-field-chip{background:#f8fafc;border-color:#8a9ab6;color:#334155}
.docdesk-pdf-field.is-reserved[data-tooltip]{cursor:help;overflow:visible}
.docdesk-pdf-field.is-reserved[data-tooltip].tooltip-active::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#1a237e;color:#fff;font-size:.78rem;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;z-index:100;pointer-events:none;box-shadow:0 4px 12px rgba(15,23,42,.2);font-family:system-ui,-apple-system,sans-serif;letter-spacing:0;text-transform:none}
@media (hover:hover){.docdesk-pdf-field.is-reserved[data-tooltip]:hover::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#1a237e;color:#fff;font-size:.78rem;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;z-index:100;pointer-events:none;box-shadow:0 4px 12px rgba(15,23,42,.2);font-family:system-ui,-apple-system,sans-serif;letter-spacing:0;text-transform:none}}
.docdesk-pdf-field.is-tied{cursor:help;color:#475569}
.docdesk-pdf-field.is-tied .docdesk-pdf-field-chip{background:#f8fafc;border-style:dashed;border-color:#94a3b8;color:#64748b}
.docdesk-pdf-field.is-tied[data-tooltip]{overflow:visible}
.docdesk-pdf-field.is-tied[data-tooltip].tooltip-active::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#1a237e;color:#fff;font-size:.78rem;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;z-index:100;pointer-events:none;box-shadow:0 4px 12px rgba(15,23,42,.2);font-family:system-ui,-apple-system,sans-serif;letter-spacing:0;text-transform:none}
@media (hover:hover){.docdesk-pdf-field.is-tied[data-tooltip]:hover::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#1a237e;color:#fff;font-size:.78rem;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;z-index:100;pointer-events:none;box-shadow:0 4px 12px rgba(15,23,42,.2);font-family:system-ui,-apple-system,sans-serif;letter-spacing:0;text-transform:none}}
.docdesk-pdf-field.is-current.kind-date{cursor:pointer}
.docdesk-pdf-field.is-current::after{content:"";position:absolute;inset:calc(-9px / var(--page-scale, 1))}
.docdesk-pdf-field.attention{overflow:visible}
.docdesk-pdf-field.attention .docdesk-pdf-field-chip{animation:docdeskPulse 1s infinite}
.docdesk-pdf-field.attention::before{content:"";position:absolute;left:-22px;top:50%;transform:translateY(-50%);border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:15px solid var(--sta-blue);animation:docdeskArrow 1s infinite;z-index:5;pointer-events:none}
@keyframes docdeskPulse{0%,100%{box-shadow:0 0 0 2px rgba(26,35,126,.22)}50%{box-shadow:0 0 0 9px rgba(26,35,126,.12)}}
@keyframes docdeskArrow{0%,100%{left:-22px}50%{left:-31px}}
/* Above .modal-backdrop (z-index 9997): this confirm dialog is launched from INSIDE the Documents detail
   modal (manage actions), so it must stack on top of it, not behind. Matches the .confirm-overlay-backdrop tier. */
.docdesk-confirm-backdrop{position:fixed;inset:0;z-index:10040;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .16s ease;padding:16px}
.docdesk-confirm-backdrop.show{opacity:1}
.docdesk-confirm-card{background:#fff;border-radius:16px;box-shadow:0 22px 52px rgba(15,23,42,.26);padding:22px;max-width:440px;width:100%;border:1px solid #e5e9f2}
.docdesk-confirm-card h2{margin:0 0 8px;color:var(--sta-blue);font-size:1.3rem;font-weight:900}
.docdesk-confirm-card p{margin:0;color:#52637a;line-height:1.45;font-weight:600}
.docdesk-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.dirty-guard-actions{flex-wrap:wrap}
.docdesk-confirm-actions button{border-radius:10px;padding:10px 18px;font-weight:900;cursor:pointer;border:1px solid #dbe4f0;transition:.15s ease}
.docdesk-confirm-cancel{background:#fff;color:var(--sta-blue)}
.docdesk-confirm-ok{background:var(--sta-blue);color:#fff;border-color:var(--sta-blue)}
.docdesk-confirm-ok:hover{transform:translateY(-1px)}
.docdesk-confirm-ok.is-danger{background:#b42318;border-color:#b42318}
.docdesk-confirm-fields{display:grid;gap:12px;margin-top:14px}
.docdesk-confirm-field{display:flex;flex-direction:column;gap:5px}
.docdesk-confirm-field>span{font-size:.78rem;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.docdesk-confirm-field input[type=date],.docdesk-confirm-note{border:1px solid #dbe4f0;border-radius:9px;padding:9px 11px;font:inherit;font-weight:600;color:#0f172a;width:100%}
.docdesk-confirm-field input[type=date].is-error{border-color:#b42318}
.docdesk-confirm-note{resize:vertical;min-height:54px}
.docdesk-confirm-check{display:flex;align-items:center;gap:8px;margin-top:14px;font-weight:700;color:#334155;cursor:pointer}
.docdesk-confirm-check input{width:16px;height:16px}
.docdesk-show-archived,.staffstart-show-archived{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:#475569;cursor:pointer;white-space:nowrap;font-size:.88rem}
.docdesk-show-archived input,.staffstart-show-archived input{width:16px;height:16px}
.staffstart-page .stage-toolbar-actions{display:flex;align-items:center;gap:12px}
.cron-job-cell{font-weight:800;color:#0f172a}
.cron-description-cell{margin-top:4px;color:#334155;font-size:.84rem;line-height:1.35;font-weight:600}
.cron-schedule-cell{font-weight:800;color:#334155}
.cron-status-cell{text-align:center}
.cron-status-icon{display:inline-block;width:18px;height:18px;border-radius:999px;border:2px solid #a5d6a7;background:#e8f5e9;box-shadow:inset 0 0 0 4px #fff}
.cron-status-icon.ok{border-color:#81c784;background:#2e7d32}
.cron-status-icon.pending{border-color:#9db5ff;background:#4f6fd9}
.cron-status-icon.error{border-color:#ef9a9a;background:#c62828}
.cron-status-icon.muted{border-color:#cbd5e1;background:#64748b}
.cron-last-cell strong{display:block;color:#0f172a;font-weight:800}
.cron-last-cell span{display:block;margin-top:4px;color:#334155;font-size:.82rem;line-height:1.35}
.admin-tools-cron-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #c7d2fe;background:#eef2ff;color:var(--sta-blue);border-radius:12px;padding:10px 12px;margin-bottom:12px}
.admin-tools-cron-summary strong{display:block;font-weight:900}
.admin-tools-cron-summary span{display:block;margin-top:3px;color:#52637a;font-size:.84rem;font-weight:600;line-height:1.35}
.admin-tools-cron-summary-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.admin-tools-cron-summary.pending{background:#fffdf6;border-color:#f6d17c}
.admin-tools-cron-summary.error{background:#fff7f7;border-color:#ef9a9a}
.admin-tools-cron-issues{margin:-4px 0 12px}
.queue-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.queue-health-stage .detail-grid{grid-template-columns:1fr}
.queue-health-modal-shell{display:flex;flex-direction:column;gap:12px}
.queue-health-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #c7d2fe;background:#eef2ff;color:var(--sta-blue);border-radius:12px;padding:10px 12px;font-weight:800}
.queue-health-summary span{font-size:.84rem;font-weight:600;color:#52637a}
.queue-health-lines{display:flex;flex-direction:column;gap:8px}
.queue-health-line{border:1px solid #dbe4f0;border-radius:12px;padding:10px 12px;background:#fff}
.queue-health-line.pending{border-color:#f6d17c;background:#fffdf6}
.queue-health-line.error{border-color:#ef9a9a;background:#fff7f7}
.queue-health-line-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.queue-health-line-description{margin-top:4px;color:#52637a;font-size:.82rem;line-height:1.35}
.queue-health-line-body,.queue-health-line-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px;font-size:.84rem;color:#334155}
.queue-health-line-meta{color:#64748b;font-size:.78rem}
.queue-health-line-actions{display:flex;justify-content:flex-end;margin-top:10px}
.queue-health-issues{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.queue-health-issue{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start;border-top:1px solid #e5e9f2;padding-top:8px}
.queue-health-issue strong{display:block;color:var(--sta-blue);font-size:.82rem}
.queue-health-issue span{display:block;color:#334155;font-size:.8rem;line-height:1.35}
.kv{display:grid;grid-template-columns:240px 1fr;border:1px solid #e5e9f2;border-radius:12px;overflow:hidden}
.kv div{padding:10px 12px;border-bottom:1px solid #eef2f7}
.kv .k{background:#f8fafc;color:#334155;font-weight:700}
@media (max-width:1180px){.new-absence-layout.inbox-open{grid-template-columns:1fr}}
@media (min-width:1080px){.bus-driver-toolbar{grid-template-columns:minmax(280px,1.45fr) minmax(180px,1fr) minmax(180px,1fr) auto}}
@media (max-width:1180px){.timedesk-worklog-page>.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bus-row{grid-template-columns:1fr;align-items:start}.bus-snow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.timedesk-checkin-editor-grid{grid-template-columns:minmax(0,1fr);gap:12px}.timedesk-checkin-editor-grid .timedesk-checkin-reason{grid-column:1}.timedesk-checkin-editor-grid textarea{min-height:104px}}
@media (max-width:980px){.payroll-page>.summary-grid,.leave-balances-page>.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:980px){.grid-4,.grid-3,.summary-grid,.detail-grid{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.new-absence-layout,.new-absence-layout.inbox-open{grid-template-columns:1fr}.identity{position:static;transform:none;text-align:center;margin-top:10px}.teacherout-inbox-summary-grid{grid-template-columns:1fr 1fr}.queue-health-grid{grid-template-columns:1fr}.leave-balances-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.leave-balances-filter-actions{justify-content:flex-start;flex-wrap:wrap}.coverage-block-controls{grid-template-columns:auto minmax(180px,1fr) minmax(140px,1fr) minmax(130px,1fr) 44px}.long-term-placement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.placement-browser-head,.placement-browser-row,.inbox-browser-head,.inbox-browser-row,.leave-balances-head,.leave-balances-row,.leave-history-head,.leave-history-row,.leave-statement-head,.leave-statement-row{grid-template-columns:1fr !important}}
@media (max-width:980px){.docdesk-recipient-row{grid-template-columns:1fr}.docdesk-recipient-privacy{grid-column:auto;grid-template-columns:1fr}.docdesk-recipient-title{padding-bottom:0}.docdesk-analysis-head{flex-direction:column}.docdesk-summary-grid{min-width:0;width:100%}}
@media (max-width:1180px){.identity{right:190px;max-width:calc(100% - 520px)}.header-actions{right:18px}}
@media (max-width:980px){.topbar{justify-content:flex-start;flex-wrap:wrap;gap:10px 16px;padding:16px 18px}.identity{position:static;transform:none;flex-basis:100%;max-width:calc(100% - 170px);min-width:0;margin-top:0;text-align:left;margin-left:82px}.header-actions{top:auto;right:18px;bottom:18px;transform:none;justify-content:flex-end}.app-shell{grid-template-columns:1fr}.app-rail{position:static;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));padding:8px}.app-rail-button{min-height:48px}.app-tab-strip{min-height:0}.app-placeholder-grid.summary-grid{grid-template-columns:1fr}}
@media (max-width:980px){.identity-panel{margin-left:auto}.identity-panel .identity{flex-basis:auto;max-width:min(460px,calc(100vw - 520px));margin:0;text-align:right}.identity-panel .header-actions{position:static;right:auto;bottom:auto;transform:none}}
@media (max-width:760px){.staffstart-grid,.staffstart-docdesk-grid{grid-template-columns:1fr}.staffstart-intake-create .btn,.staffstart-public-form .btn{width:100%}.staffstart-docdesk-card .confirm-actions,.staffstart-inline-confirm-actions{flex-direction:column;align-items:stretch}.staffstart-docdesk-card .btn,.staffstart-inline-confirm-actions .btn{width:100%}}
@media (max-width:760px){.payroll-page>.summary-grid,.leave-balances-page>.summary-grid{grid-template-columns:1fr}}
@media (max-width:760px){.leave-balance-deductions .summary-grid{grid-template-columns:1fr}.leave-balance-deductions .summary-card{padding:14px 16px}.leave-balance-modal-table .dt-toolbar{gap:8px}.leave-balance-modal-table .dt-filters{margin-bottom:10px}.leave-statement-envelope-button{width:44px;height:44px;font-size:1.15rem}.workspace-target-return{width:100%;justify-content:center}}
@media (max-width:760px){body{padding:12px}.topbar{margin:-12px -12px 14px;padding:12px 14px;min-height:auto;display:flex}.brand-lockup{gap:12px}.brand-mark{width:50px;height:50px;border-radius:11px}.brand-name{font-size:1.38rem}.brand-org{font-size:.72rem;letter-spacing:.35px}.environment-badge{margin-top:7px;padding:4px 7px;font-size:.68rem}.identity{margin-left:0;max-width:calc(100% - 150px)}.identity-welcome{font-size:1.04rem}.identity .email,.identity .role{font-size:.88rem}.header-actions{right:14px;bottom:16px}.brand-title{text-align:center}.nav-tabs a{flex:1 1 calc(50% - 12px)}.grid-2,.grid-3,.grid-4,.summary-grid,.detail-grid{grid-template-columns:1fr}.leave-balances-filter-form,.leave-balances-filter-actions,.timedesk-review-item,.bus-snow-grid,.bus-generate-grid,.timedesk-modal-top-grid,.timedesk-pay-panel{grid-template-columns:1fr}.browser-head{display:none}.browser-row{grid-template-columns:1fr !important;padding:12px}.inbox-row-date-full{display:none}.inbox-row-date-compact{display:inline}.coverage-block-row{grid-template-columns:1fr}.coverage-block-division{text-align:left}.coverage-block-time{white-space:normal}.coverage-block-controls,.long-term-placement-grid{grid-template-columns:1fr}.long-term-placement-main{display:grid}.long-term-split-button,.long-term-remove-button{width:100%}.notes-button{justify-self:start}.queue-health-anchor{left:12px;right:12px;bottom:10px;justify-content:center}.admin-tools-drawer{width:100vw}.admin-tools-panels{padding:14px 12px 80px}}
@media (max-width:760px){
  /* Shared inline-row-editor phone contract. Desktop and wider tablet column layouts remain unchanged. */
  .inline-row-editor-modal{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  .inline-row-editor-modal .row-review-summary,.inline-row-editor-modal .inline-editor-grid{grid-template-columns:minmax(0,1fr)}
  .inline-row-editor-modal .inline-readonly-grid{grid-template-columns:minmax(0,1fr)}
  .inline-row-editor-backdrop[data-inline-event-kind="late"] .inline-event-dynamic-grid,.inline-row-editor-backdrop[data-inline-event-kind="early"] .inline-event-dynamic-grid,.inline-row-editor-backdrop[data-inline-event-kind="partial"] .inline-event-dynamic-grid{grid-template-columns:minmax(0,1fr)}
  .inline-row-editor-modal .summary-card,.inline-row-editor-modal .inline-editor-field{min-width:0}
  .inline-row-editor-modal .summary-value{overflow-wrap:anywhere}
  .inline-row-editor-modal .inline-editor-field input:not([type="checkbox"]):not([type="radio"]),.inline-row-editor-modal .inline-editor-field select,.inline-row-editor-modal .inline-editor-field textarea{width:100%;min-width:0;box-sizing:border-box}
  /* Complex coverage-block controls still own their specialized phone layout within the shared modal. */
  .inline-event-coverage .coverage-block-controls,.inline-event-coverage .coverage-block-controls.coverage-payment-hidden{grid-template-columns:minmax(0,1fr)}
  .inline-event-coverage .coverage-block-controls>.field{width:100%;min-width:0}
  .inline-event-coverage .coverage-needed-check{justify-self:start;width:auto;min-width:0}
  .inline-event-coverage .notes-button{grid-column:1;justify-self:start}
}
@media (max-width:900px){
  .workspace-page-header{flex-wrap:wrap}
  .workspace-page-actions{width:100%;justify-content:flex-start}
  .workspace-page-actions .btn{flex:1 1 160px}
}
/* Mobile app navigation: one compact global bar, one blue page selector that opens downward, and a fixed
   icon dock for top-level modules. Desktop keeps the established rail and tab layout above. */
@media (max-width:760px){
  .topbar{min-height:62px;padding:9px 12px;flex-wrap:nowrap}
  .topbar .identity-panel{flex:0 0 auto;margin-left:0;gap:0}
  .topbar .identity{display:none}
  .topbar .brand-lockup{display:flex;flex:1 1 auto;min-width:0;gap:10px}
  .topbar .brand-copy{display:flex;flex:1 1 auto;min-width:0;align-items:center;justify-content:center;text-align:center}
  .topbar .brand-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.12rem}
  .topbar .brand-org,.topbar .environment-badge{display:none}
  .topbar .brand-mark{width:44px;height:44px;border-radius:10px}
  .header-actions{position:static;flex:0 0 auto;margin-left:0;transform:none}
  .header-actions .btn{min-height:40px;padding:8px 10px}
  .app-shell{display:block}
  /* Keep the selector's closed slot in the document while the expanded page list overlays the workspace. */
  .app-tab-strip{position:relative;min-height:0;margin-bottom:12px}
  .app-tab-strip:has(.app-tabs:not([hidden])){position:relative;min-height:56px}
  .app-tabs{display:block;max-width:none;margin:0;border:1px solid #cad4e4;border-radius:12px;background:#fff;box-shadow:var(--shadow-soft);overflow:hidden}
  .app-tabs[hidden]{display:none!important}
  .mobile-page-selector{display:flex;width:100%;min-height:50px;padding:8px 14px;border:0;border-bottom:1px solid #dbe3ff;border-radius:0;background:var(--sta-blue);color:#fff;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;font:inherit;box-shadow:none}
  .mobile-page-selector-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
  .mobile-page-title{font-size:1.08rem;font-weight:900;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-page-chevron{font-size:28px;transition:transform .24s ease}
  .app-tabs.is-single-page .mobile-page-chevron{display:none}
  .app-tabs.is-single-page .mobile-page-selector{cursor:default}
  .app-tabs.is-open .mobile-page-chevron{transform:rotate(180deg)}
  .app-tabs.is-open,.app-tabs.is-closing{position:absolute;top:0;left:0;right:0;z-index:10022;max-height:calc(100vh - 24px);max-height:var(--mobile-page-menu-max-height,calc(100dvh - 24px));overflow:hidden;overscroll-behavior:contain}
  .app-tabs.is-open{overflow-y:auto}
  .app-tabs>a{display:flex;min-height:0;max-height:0;margin:0;padding:0 14px;border:0;border-radius:0;background:#fff;color:#334155;justify-content:flex-start;text-align:left;font-size:.92rem;font-weight:700;letter-spacing:0;text-transform:none;box-shadow:none;opacity:0;overflow:hidden;transform:none;transition:max-height .24s ease,padding .24s ease,opacity .18s ease,background .18s ease}
  .app-tabs.is-open>a{min-height:48px;max-height:52px;padding:12px 14px;border-top:1px solid #edf0f5;opacity:1}
  .app-tabs.is-open>a:hover{background:#f6f8fc;color:var(--sta-blue);box-shadow:none}
  .app-tabs.is-open>a.active{background:#eef2ff;color:var(--sta-blue);border:0;border-top:1px solid #dbe3f4;border-left:4px solid var(--sta-gold);box-shadow:none;transform:none}
  .workspace-panel--standard{padding:18px 14px}
  .workspace-page-title{display:none}
  .workspace-page-description.mobile-hidden{display:none}
  .workspace-page-header{gap:12px;margin-bottom:14px}
  .workspace-page-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));width:100%}
  .workspace-page-actions .btn{width:100%}
  .mobile-duplicate-page-title{display:none!important}
  .dt[data-table-mobile-mode="continuous"]>.dt-pager{display:none}
  .dt-mobile-sentinel{display:flex;min-height:48px;padding:10px 4px;align-items:center;justify-content:center;color:#64748b;font-size:.84rem;text-align:center}
  .dt-mobile-sentinel[hidden]{display:none}
}
@media (max-width:760px) and (orientation:portrait){
  .app-shell-main{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
  .app-rail[data-app-rail-count="0"],.app-rail[data-app-rail-count="1"]{display:none}
  .app-rail[data-app-rail-count="0"] + .app-shell-main,.app-rail[data-app-rail-count="1"] + .app-shell-main{padding-bottom:0}
  .app-rail{--app-rail-slot-size:calc((100vw - 12px)/5);--app-rail-edge-size:calc(var(--app-rail-slot-size)/2);position:fixed;z-index:10020;left:0;right:0;top:auto;bottom:0;display:grid;grid-template-columns:var(--app-rail-edge-size) minmax(0,1fr) var(--app-rail-edge-size);gap:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid #d8e0ee;border-radius:16px 16px 0 0;background:#fff;box-shadow:0 -8px 24px rgba(15,23,42,.14);overflow:hidden}
  body.modal-open .app-rail,body.formed-modal-open .app-rail{visibility:hidden;pointer-events:none}
  .app-rail-viewport{display:block;grid-column:2;grid-row:1;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y}
  .app-rail-viewport::-webkit-scrollbar{display:none}
  .app-rail-track{display:flex;width:max-content;min-width:100%;transform:none;transition:none}
  .app-rail-button,.app-rail-edge{display:flex;min-width:0;min-height:62px;padding:4px 2px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#64748b;align-items:center;justify-content:center;font:inherit;text-decoration:none;cursor:pointer;transition:color .18s ease,background .18s ease}
  .app-rail-button{flex:0 0 var(--app-rail-slot-size);width:var(--app-rail-slot-size);flex-direction:column;gap:3px;font-size:.69rem;font-weight:700;line-height:1.08;text-align:center;text-transform:none;letter-spacing:0;scroll-snap-align:start;scroll-snap-stop:normal}
  .app-rail[data-app-rail-overflow="0"] .app-rail-track{width:100%}
  .app-rail[data-app-rail-overflow="0"] .app-rail-button{flex:1 1 0;width:auto}
  .app-rail-button:hover,.app-rail-edge:hover{border:0;background:#f4f6fb;color:var(--sta-blue);box-shadow:none}
  .app-rail-button.active{border:0;background:#eef2ff;color:var(--sta-blue);box-shadow:inset 0 -3px 0 var(--sta-gold);transform:none}
  .app-rail-icon{display:block;flex:0 0 29px;width:29px;height:29px;border-radius:7px;object-fit:contain;object-position:center;filter:grayscale(1);opacity:.62;transition:filter .18s ease,opacity .18s ease,transform .18s ease}
  .app-rail-button.active .app-rail-icon{filter:none;opacity:1;transform:translateY(-1px)}
  .app-rail-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .app-rail-edge{z-index:2;grid-row:1;color:var(--sta-blue);background:#fff}
  .app-rail-edge[hidden]{display:none!important}
  .app-rail-edge--previous{grid-column:1}
  .app-rail-edge--next{grid-column:3}
  .app-rail-edge .material-icons{font-size:26px;line-height:1}
  .dt-mobile-sentinel{margin-bottom:calc(82px + env(safe-area-inset-bottom));scroll-margin-bottom:calc(82px + env(safe-area-inset-bottom))}
}
@media (max-width:760px){.docdesk-v2-sig-block{flex-direction:column;align-items:stretch;gap:12px;padding:12px 0}.docdesk-v2-inputs-row{grid-template-columns:1fr}.docdesk-v2-accept-col{align-items:flex-start;max-width:100%}.docdesk-v2-agree-text{text-align:left}.docdesk-v2-accept-btn{width:100%}.docdesk-v2-action-bar{gap:8px;padding:10px 12px}.docdesk-v2-next-btn,.docdesk-v2-submit-btn{flex:1 1 auto}.docdesk-v2-progress{margin-left:0;flex:1 1 100%;text-align:center}}
@media (max-width:760px){.docdesk-source-tabs{display:grid;grid-template-columns:1fr;width:100%;border-bottom:0}.docdesk-source-tab{width:100%;border:1px solid #dbe4f0;border-radius:8px}.docdesk-analysis-result{padding:14px}.docdesk-file-control{grid-template-columns:1fr}.docdesk-file-button{border-right:0;border-bottom:4px solid var(--sta-gold)}.docdesk-file-name{min-height:44px;display:flex;align-items:center}.docdesk-pdf-viewer{padding:10px}.docdesk-pdf-field{font-size:10px}.docdesk-pdf-field-chip{border-width:1.5px;padding:1px 3px}.docdesk-pdf-field.is-current:not(.done) .docdesk-pdf-field-chip,.docdesk-pdf-field.is-reserved .docdesk-pdf-field-chip{font-size:9px}.docdesk-pdf-field.is-current::after{inset:-15px}}
@media (max-width:760px){.leave-balances-page .modal-actions,.leave-statement-modal-actions{justify-content:flex-start}.leave-statement-modal-actions .btn{width:100%}.leave-statement-picker-card .confirm-actions{flex-direction:column;align-items:stretch}.leave-statement-picker-card .btn{width:100%}}
@media (max-width:760px){.coverage-day-date-long{display:none}.coverage-day-date-short{display:inline}}
@media (max-width:760px){.coverage-worklog-match-facts{grid-template-columns:minmax(0,1fr);margin-left:24px}.coverage-worklog-match-confirm{margin-left:24px}.coverage-worklog-match-actions .btn{width:100%}}
@media (prefers-reduced-motion: reduce){*{transition:none !important;animation:none !important}}
/* BusPulse (parent-facing bus tracker) */
.bus-tracker{display:flex;flex-direction:column;gap:12px}
.bus-tracker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bus-tracker-status{min-width:0;max-width:100%;font-size:14px;color:#5a6b82;background:#eef3fb;border:1px solid #dbe4f0;border-radius:999px;padding:4px 12px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;box-sizing:border-box}
.bus-tracker-status .loading-inline{display:flex;flex-wrap:wrap;justify-content:flex-start;min-width:0;max-width:100%}
.bus-tracker-status .loading-text{min-width:0;flex:0 1 auto;overflow-wrap:anywhere}
.bus-tracker-status .loading-dots-inline{flex:0 0 auto}
.bus-tracker-status.is-on-route{color:#0b804b;background:#e9f7f0;border-color:#bfe6d3}
.bus-tracker-status.is-stale,.bus-tracker-status.is-inactive,.bus-tracker-status.is-disabled{color:#8a5a00;background:#fdf3e2;border-color:#f0dcae}
.bus-push-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}.bus-push-controls span{margin-right:auto;color:#5a6b82;font-size:13px}.bus-push-controls.is-enabled{border-color:#bfe6d3;background:#f0faf5}.bus-push-controls.is-enabled span{color:#0b804b;font-weight:700}.bus-push-controls.is-error span{color:#b3261e}
.bus-tracker-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);gap:14px;align-items:stretch}
.bus-map-toolbar{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.bus-tracker-map{position:relative;height:460px;width:100%;border:1px solid #dbe4f0;border-radius:12px;background:#eef3fb;overflow:hidden}
.bus-tracker-map .leaflet-container{height:100%;width:100%;border-radius:12px}
.bus-upcoming{border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:16px;min-height:220px}
.bus-upcoming h3{margin:0 0 12px;color:#173b63;font-size:18px}
.bus-upcoming ol{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.bus-upcoming li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border-radius:9px;background:#f5f8fc}
.bus-upcoming li.is-passed{opacity:.65;background:#f1f5f9}.bus-upcoming li.is-passed .bus-upcoming-order{background:#64748b}
.bus-upcoming li.is-upcoming{box-shadow:inset 3px 0 0 var(--sta-gold)}
.bus-upcoming li small{display:block;color:#64748b;margin-top:2px}
.bus-upcoming-order{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#173b63;color:#fff;font-weight:700;font-size:12px}
.bus-upcoming-eta{font-weight:700;color:#173b63;text-align:right;white-space:nowrap}.bus-upcoming-eta span{display:block;font-size:12px;font-weight:400;color:#64748b}
.bus-route-warning{margin-bottom:10px;padding:9px;border-radius:8px;background:#fff3cd;color:#725400;font-size:13px}
.bus-route-completed{margin-bottom:10px;padding:10px;border-radius:8px;background:#e9f7f0;color:#0b804b;font-weight:800}
.bus-alert-stop{display:flex;align-items:center;gap:5px;margin-top:7px;color:var(--sta-blue);font-size:11px;font-weight:700}.bus-alert-stop input{margin:0}
.bus-alert-none{display:flex;align-items:center;gap:6px;margin-top:11px;color:#64748b;font-size:12px;font-weight:600}.bus-alert-none input{margin:0}
.bus-stop-state{color:#64748b;font-size:12px;text-align:right;white-space:nowrap}
.bus-tracker-note{margin:0;color:#7a8aa0;font-size:13px}
.bus-parent-table .dt-primary{font-weight:800;color:#1f2d4d;white-space:normal}
.bus-parent-table .dt-secondary{margin-top:3px;color:#64748b;font-size:.84rem;overflow-wrap:anywhere;white-space:normal}
.bus-parent-table .dt-row-menu{align-self:start}
.bus-parent-edit-fields{margin-top:4px}
.bus-parent-route-fields{min-width:0}
.bus-parent-route-fields .checkbox-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 14px}
.bus-parent-route-fields .checkbox-label{display:flex;align-items:center;gap:7px;min-width:0;font-size:.86rem;font-weight:700}
.bus-parent-route-fields input{flex:0 0 auto}
.bus-parent-activity-table{margin-top:8px}
.bus-tracker-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#5a6b82;background:rgba(238,243,251,.94);font-size:15px;line-height:1.45;z-index:1000;pointer-events:none}
.bus-marker{font-size:24px;line-height:1;text-align:center;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.bus-stop-label{padding:2px 5px;border:1px solid #9a6a08;border-radius:999px;background:#fff8df;color:#173b63;font-size:11px;font-weight:800;box-shadow:0 1px 3px rgba(15,23,42,.2)}
.bus-stop-label:before{border-top-color:#9a6a08}
.bus-visibility{font-size:13px;font-weight:600;border-radius:14px;padding:4px 12px;white-space:normal;max-width:100%;line-height:1.35;border:1px solid transparent}
.bus-visibility.is-visible{color:#0b804b;background:#e9f7f0;border-color:#bfe6d3}
.bus-visibility.is-hidden{color:#8a5a00;background:#fdf3e2;border-color:#f0dcae}
.bus-admin{display:flex;flex-direction:column;gap:20px}
.bus-admin-feedback{font-size:13px;color:#5a6b82;min-height:18px}
.bus-admin-feedback.is-error{color:#b3261e}
.bus-admin-feedback.is-ok{color:#0b804b}
.bus-admin-section{display:flex;flex-direction:column;gap:10px}
.bus-admin-subtitle{margin:0;font-size:15px;font-weight:700;color:#1f2d4d}
.bus-admin-subtitle small{font-weight:500;color:#7a8aa0}
.bus-admin-controls{display:flex;flex-direction:column;gap:12px;max-width:560px}
.bus-admin-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#5a6b82}
.bus-admin-field small{color:#9aa7bd}
.bus-admin-input{font:inherit;padding:8px 10px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#1f2d4d}
textarea.bus-admin-input{resize:vertical;min-height:42px}
.bus-admin-actions{display:flex;gap:8px;flex-wrap:wrap}
.bus-admin-btn{font:inherit;font-weight:600;cursor:pointer;border-radius:8px;padding:8px 16px;border:1px solid #2b4a8b;background:#2b4a8b;color:#fff}
.bus-admin-btn:hover{filter:brightness(1.06)}
.bus-admin-btn:disabled{opacity:.55;cursor:default}
.bus-admin-btn-warn{background:#b3681a;border-color:#b3681a}
.bus-admin-btn-ghost{background:#fff;color:#2b4a8b}
.bus-admin-active{display:flex;flex-direction:column;gap:8px}
.bus-admin-override{font-size:14px;color:#1f2d4d;background:#f6f8fc;border:1px solid #e2e9f3;border-left-width:4px;border-radius:8px;padding:8px 12px}
.bus-admin-override.is-disabled{border-left-color:#b3681a}
.bus-admin-override.is-message{border-left-color:#2b4a8b}
.bus-admin-meta{display:block;color:#9aa7bd;font-size:12px;margin-top:2px}
.bus-admin-audit{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13px;color:#5a6b82}
.bus-admin-audit li{padding:6px 0;border-bottom:1px solid #eef2f8}
.bus-admin-when{color:#1f2d4d;font-weight:600;margin-right:6px}
.bus-admin-reference{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.bus-route-editor{margin-top:18px;padding-top:18px;border-top:1px solid var(--border,#d8dee8)}
.bus-stop-editor-list{display:grid;gap:8px;margin:10px 0 14px}
.bus-stop-editor-row{display:grid;grid-template-columns:34px 28px minmax(130px,1fr) minmax(180px,1.5fr) 110px 110px 110px auto;gap:8px;align-items:center;padding:8px;border:1px solid var(--border,#d8dee8);border-radius:10px;background:#fff}
.bus-stop-drag{border:0;background:transparent;color:#48627d;font-size:20px;cursor:grab;padding:4px}
.bus-stop-drag:active{cursor:grabbing}
.bus-stop-number{font-weight:700;color:#48627d;text-align:center}
@media(max-width:900px){.bus-stop-editor-row{grid-template-columns:34px 28px 1fr 1fr}.bus-stop-editor-row [data-stop-field="address"]{grid-column:3/-1}.bus-stop-editor-row [data-stop-field="latitude"],.bus-stop-editor-row [data-stop-field="longitude"],.bus-stop-editor-row [data-stop-field="plannedArrivalTime"]{grid-column:span 1}.bus-stop-editor-row [data-bus-stop-remove]{grid-column:span 1}}
.bus-admin-route{background:#f6f8fc;border:1px solid #e2e9f3;border-radius:8px;padding:10px 12px}
.bus-admin-route-head{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.bus-admin-windows{list-style:none;margin:0;padding:0;font-size:13px;color:#5a6b82;display:flex;flex-direction:column;gap:2px}
.bus-admin-none{color:#9aa7bd;font-size:13px;font-style:italic}
.bus-routes{display:flex;flex-direction:column;gap:16px}
.bus-routes-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.bus-routes-head .section-title{margin-bottom:6px}
.bus-routes-head .bus-tracker-note{margin:0}
.bus-routes-list{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px}
.bus-route-card{border:1px solid #dbe4f0;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.05);overflow:hidden}
.bus-route-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid #e7edf5;background:#f8faff}
.bus-route-card h3{margin:0;color:var(--sta-blue);font-size:1rem}
.bus-route-card header p{margin:3px 0 0;color:#718096;font-size:12px}
.bus-route-schedule,.bus-route-versions{padding:14px 18px}
.bus-route-schedule{display:grid;grid-template-columns:90px 1fr;gap:12px;border-bottom:1px solid #edf1f7}
.bus-route-schedule>span,.bus-route-versions>span{color:#718096;font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.bus-route-schedule p{margin:0;color:#40516b;font-size:13px;line-height:1.5}
.bus-route-versions>span{display:block;margin-bottom:8px}
.bus-route-version-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 8px;border:0;border-top:1px solid #edf1f7;background:transparent;color:#1f2d4d;text-align:left;font:inherit;cursor:pointer}
.bus-route-version-row:first-of-type{border-top:0}
.bus-route-version-row:hover,.bus-route-version-row:focus-visible{background:#eef2ff;outline:none}
.bus-route-version-row span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.bus-route-version-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bus-route-version-row small{color:#718096}
.bus-route-version-meta{display:flex;align-items:center;gap:10px;color:#5a6b82;font-size:12px;white-space:nowrap}
.bus-route-version-meta b{color:var(--sta-blue);font-size:22px;line-height:1}
.bus-route-version-empty{padding:10px 0;color:#9aa7bd;font-size:13px;font-style:italic}
#bus-route-editor-modal .modal{width:min(1180px,calc(100vw - 44px));max-width:1180px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;padding:0}
#bus-route-editor-modal .modal-header{padding:20px 24px 10px;color:var(--sta-blue)}
#bus-route-editor-modal .modal-body{min-height:0;overflow:auto;padding:0 24px 20px}
#bus-route-editor-modal .modal-actions{flex:0 0 auto;display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:16px;margin:0;padding:16px 24px;border-top:1px solid #dbe4f0;background:#fff;box-shadow:0 -8px 20px rgba(15,23,42,.05)}
.bus-route-editor{min-height:430px}
.bus-route-editor .ph-subtabs{position:sticky;top:0;z-index:3;margin-top:0;padding-top:8px;background:#fff}
.bus-route-editor-panel{padding:18px 2px 8px}
.bus-route-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px 16px;align-items:end}
.bus-route-form-grid [data-bus-route-edit-route],.bus-route-form-grid [data-bus-route-edit-version]{min-width:0}
.bus-route-form-grid label:has([data-bus-route-edit-route]),.bus-route-form-grid label:has([data-bus-route-edit-version]){grid-column:span 4}
.bus-route-field-wide{grid-column:span 6}
.bus-route-form-grid label:has([data-bus-route-edit-from]),.bus-route-form-grid label:has([data-bus-route-edit-to]){grid-column:span 3}
.bus-route-active-toggle{grid-column:span 4;min-height:58px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:9px;background:#f8faff;color:#1f2d4d;cursor:pointer}
.bus-route-active-toggle input{width:18px;height:18px;margin:0;accent-color:var(--sta-blue)}
.bus-route-active-toggle span{display:flex;flex-direction:column;gap:2px}
.bus-route-active-toggle small{color:#718096;font-size:11px;font-weight:500}
.bus-route-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #e7edf5}
.bus-route-panel-head .bus-tracker-note{margin:4px 0 0}
.bus-route-empty{padding:34px 20px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;color:#718096;text-align:center}
.bus-route-empty[hidden]{display:none}
.bus-route-geometry-workspace{display:flex;flex-direction:column;gap:16px}
.bus-route-geometry-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid #dbe4f0;border-radius:11px;background:#f8faff}
.bus-route-geometry-actions p{margin:4px 0 0;max-width:700px;color:#718096;font-size:13px;line-height:1.45}
.bus-route-recorded-card{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(520px,1.25fr);gap:14px 24px;padding:16px 18px;border:1px solid #dbe4f0;border-radius:11px;background:#fff}
.bus-route-recorded-copy p{margin:4px 0 0;color:#718096;font-size:13px;line-height:1.45}
.bus-route-recorded-controls{display:grid;grid-template-columns:minmax(155px,.7fr) auto minmax(250px,1.3fr) auto;gap:10px;align-items:end}
.bus-route-recorded-controls .bus-admin-field{margin:0}
.bus-route-recorded-status{grid-column:1/-1;min-height:18px;color:#52637a;font-size:12px}
.bus-route-recorded-status.is-error{color:#a62929;font-weight:700}
.bus-route-preview{position:relative;height:340px;border:1px solid #dbe4f0;border-radius:12px;background:#eef3fb;overflow:hidden}
.bus-route-preview .leaflet-container{height:100%;width:100%;border-radius:12px}
.bus-route-preview-empty{position:absolute;inset:0;display:grid;place-items:center;padding:28px;color:#718096;background:rgba(238,243,251,.92);text-align:center;z-index:1000;pointer-events:none}
.bus-route-preview-empty[hidden]{display:none}
.bus-route-preview-summary{min-height:18px;color:#52637a;font-size:13px}
.bus-route-geometry-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(380px,1.2fr);gap:18px;align-items:start;padding:16px 0 2px}
.bus-route-file-control{width:100%}
.bus-route-traffic-card{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #dbe4f0;border-radius:10px;background:#f8faff;color:#1f2d4d}
.bus-route-traffic-card p{margin:3px 0 0;color:#718096;font-size:12px}
.bus-route-traffic-result{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:9px;color:#52637a;font-size:12px}
.bus-route-traffic-result span{display:flex;align-items:baseline;gap:4px}
.bus-route-traffic-result strong{color:var(--sta-blue);font-size:14px}
.bus-route-traffic-result small{flex-basis:100%;color:#8492a6}
.bus-route-geometry-advanced{border:1px solid #dbe4f0;border-radius:10px;background:#fff;padding:0 16px}
.bus-route-geometry-advanced summary{padding:13px 0;color:var(--sta-blue);font-size:13px;font-weight:800;cursor:pointer}
.bus-route-geometry-advanced[open] summary{border-bottom:1px solid #edf1f7}
.bus-route-geometry-json{margin:0}
.bus-route-geometry-json textarea{font-family:Consolas,"Courier New",monospace;font-size:12px;line-height:1.45}
.bus-route-modal-feedback{min-height:0;align-self:center;text-align:center}
.bus-route-modal-feedback:empty{display:none}
.bus-route-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.bus-route-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.bus-route-test-drive{display:grid;gap:16px}.bus-test-player{display:grid;grid-template-columns:auto minmax(180px,1fr) 90px;gap:12px;align-items:center}.bus-test-player input[type=range]{width:100%}
.bus-rehearsal-card{display:grid;gap:14px;padding:18px;border:1px solid #cbd9ed;border-radius:14px;background:#f8fbff}.bus-rehearsal-card .bus-route-panel-head{align-items:flex-start}.bus-rehearsal-card [data-bus-rehearsal-safety]{white-space:nowrap;background:#e8f3ff;color:#164e83}.bus-rehearsal-controls{display:grid;grid-template-columns:minmax(190px,1fr) minmax(240px,1.35fr) auto;gap:12px;align-items:end}.bus-rehearsal-actions{display:flex;gap:8px;flex-wrap:wrap}.bus-rehearsal-result{padding:14px;border:1px solid #d9e3f0;border-radius:10px;background:#fff}.bus-rehearsal-result.is-ready{border-color:#84c9a8;background:#f0faf5}.bus-rehearsal-result.is-blocked{border-color:#e6c56f;background:#fffaf0}.bus-rehearsal-result strong{display:block;margin-bottom:4px}.bus-rehearsal-result p{margin:0}.bus-rehearsal-timeline ol{display:grid;gap:6px;margin:0;padding:0;list-style:none}.bus-rehearsal-timeline li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 10px;border-radius:9px;background:#fff;border:1px solid #e2e8f0}.bus-rehearsal-timeline li.is-passed{opacity:.56}.bus-rehearsal-timeline li.is-selected{border-color:#234a9f;box-shadow:0 0 0 2px rgba(35,74,159,.10)}.bus-rehearsal-timeline small{display:block;color:#65758b}.bus-rehearsal-history{font-size:13px;color:#52647a}.bus-rehearsal-history ul{margin:6px 0 0;padding-left:20px}.bus-rehearsal-history li+li{margin-top:4px}
@media(max-width:820px){.bus-rehearsal-controls{grid-template-columns:1fr}.bus-rehearsal-actions{justify-content:flex-start}}
.bus-daily{display:flex;flex-direction:column;gap:18px}.bus-daily-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.8fr) minmax(170px,.8fr) auto;gap:12px;align-items:end}
.bus-daily-section{display:grid;gap:12px;padding:16px;border:1px solid #dbe4f0;border-radius:12px;background:#fff}.bus-daily-callout{padding:12px 14px;border-radius:10px}.bus-daily-callout.is-open{background:#e9f7f0;color:#0b804b}.bus-daily-callout.is-closed{background:#fff3cd;color:#725400}
.bus-daily-schedule-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,.8fr) 130px 130px auto;gap:9px;align-items:center;margin-bottom:9px}.bus-daily-override{display:grid;grid-template-columns:minmax(190px,1fr) 130px 130px minmax(220px,1fr) auto auto;gap:10px;align-items:center}.bus-daily-stop{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.bus-daily-stop small{display:block;color:#64748b;margin-top:3px}.bus-daily-stop.is-skipped{opacity:.65;text-decoration-color:#94a3b8}.bus-daily-stops{overflow:hidden}
.bus-stop-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.bus-stop-move{width:30px;height:30px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:var(--sta-blue);font-weight:900;cursor:pointer}
.bus-stop-move:hover:not(:disabled),.bus-stop-move:focus-visible{border-color:var(--sta-blue);background:#eef2ff;outline:none}
.bus-stop-move:disabled{opacity:.35;cursor:default}
@media(max-width:900px){
  #bus-route-editor-modal .modal{width:min(100%,calc(100vw - 24px))}
  .bus-route-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bus-route-form-grid label:has([data-bus-route-edit-route]),.bus-route-form-grid label:has([data-bus-route-edit-version]),.bus-route-form-grid label:has([data-bus-route-edit-from]),.bus-route-form-grid label:has([data-bus-route-edit-to]){grid-column:span 1}
  .bus-route-field-wide,.bus-route-active-toggle{grid-column:1/-1}
  .bus-route-geometry-grid{grid-template-columns:1fr}
  .bus-route-recorded-card{grid-template-columns:1fr}
  .bus-route-recorded-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bus-route-trip-choice{grid-column:1/-1}
  .bus-route-geometry-actions,.bus-route-traffic-card{align-items:stretch;flex-direction:column}
  .bus-daily-filters,.bus-daily-schedule-row,.bus-daily-override{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bus-route-geometry-actions .btn,.bus-route-traffic-card .btn{width:100%}
  #bus-route-editor-modal .modal-actions{grid-template-columns:1fr;align-items:stretch}
  .bus-route-delete{justify-self:start}
  .bus-route-modal-actions{justify-content:stretch}
  .bus-route-modal-actions .btn{flex:1 1 180px}
}
.bus-plan-settings{display:grid;gap:14px}.bus-plan-settings-feedback{min-height:1.25em;color:#43516a;font-size:13px}.bus-plan-settings-feedback.is-error{color:#a61f1f}.bus-plan-settings-feedback.is-ok{color:#246b45}.bus-plan-settings-list{display:grid;gap:14px}.bus-plan-settings-row{min-width:0;padding:16px;border:1px solid #dfe4ec;border-radius:10px;background:#fff;box-shadow:0 2px 8px #1a237e0d}.bus-plan-settings-row h3{margin:0 0 12px;color:#1a237e;font-size:17px}.bus-plan-settings-row h4{margin:14px 0 8px;color:#27334a;font-size:14px}.bus-plan-date-fields{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}.bus-plan-settings-row label{display:inline-flex;align-items:center;gap:6px;min-width:0}.bus-plan-settings-row input[type="date"],.bus-plan-settings-row input[type="time"],.bus-plan-settings-row input[type="text"]{min-width:0;max-width:100%}.bus-plan-division-options{display:flex;flex-wrap:wrap;align-items:center;gap:9px 16px;margin:12px 0;padding:10px 12px;border:1px solid #dfe4ec;border-radius:8px}.bus-plan-division-options legend{padding:0 5px;color:#1a237e;font-weight:600}.bus-plan-schedule-row{display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(240px,2fr) minmax(110px,.8fr) minmax(110px,.8fr) auto auto;align-items:end;gap:9px;margin:8px 0;padding:10px;border:1px solid #e4e8f0;border-radius:8px;background:#f8faff}.bus-plan-schedule-row>label{display:grid;gap:4px;font-size:12px}.bus-plan-schedule-row fieldset{display:flex;flex-wrap:wrap;gap:5px 10px;min-width:0;margin:0;padding:5px 8px;border:1px solid #dfe4ec;border-radius:6px}.bus-plan-schedule-row fieldset legend{font-size:11px;color:#596579}.bus-plan-schedule-row fieldset label{font-size:12px}.bus-plan-settings-row>[data-bus-plan-save]{margin-top:12px}
@media(max-width:900px){.bus-plan-schedule-row{grid-template-columns:repeat(2,minmax(0,1fr))}.bus-plan-schedule-row fieldset{grid-column:1/-1}.bus-plan-settings-row .bus-plan-date-fields{grid-template-columns:1fr}}
@media(max-width:540px){.bus-plan-settings-row{padding:12px}.bus-plan-schedule-row{grid-template-columns:1fr}.bus-plan-schedule-row fieldset{grid-column:auto}.bus-plan-division-options{align-items:flex-start;flex-direction:column}.bus-plan-settings-row .bus-plan-date-fields{grid-template-columns:1fr}}
@media(max-width:760px){
  .modal:has(.timedesk-entry-editor){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 20px);padding:12px}
  .timedesk-modal-grid,.timedesk-modal-top-grid{grid-template-columns:minmax(0,1fr)}
  .timedesk-entry-editor{gap:9px}
  .timedesk-keep-paid-row{padding:10px;font-size:.93rem}
  .timedesk-modal-field:has(textarea){grid-column:1}
  .timedesk-modal-field textarea{min-height:56px}
  .timedesk-entry-editor .modal-actions{position:sticky;bottom:0;z-index:2;background:#fff;padding:8px 0 max(8px,env(safe-area-inset-bottom));justify-content:stretch}
  .timedesk-entry-editor .modal-actions .btn{flex:1 1 100%;min-height:44px;white-space:normal;line-height:1.25}
}
@media(max-width:600px){
  .bus-routes-list{grid-template-columns:1fr}
  .bus-route-form-grid{grid-template-columns:1fr}
  .bus-route-form-grid>*{grid-column:1!important}
  .bus-route-schedule{grid-template-columns:1fr}
  .bus-route-recorded-controls{grid-template-columns:1fr}
  .bus-route-recorded-controls>*{grid-column:1!important}
  .bus-daily-filters,.bus-daily-schedule-row,.bus-daily-override,.bus-test-player{grid-template-columns:1fr}.bus-daily-filters>*,.bus-daily-schedule-row>*,.bus-daily-override>*{grid-column:1!important}.bus-route-panel-actions{justify-content:stretch}.bus-route-panel-actions .btn{flex:1 1 auto}
}
@media (max-width:760px){.bus-tracker-layout{grid-template-columns:1fr}.bus-tracker-map{height:60vh;min-height:320px}.bus-upcoming{min-height:0}}
@media (max-width:760px){.bus-tracker .workspace-page-actions{display:flex;flex-direction:column;align-items:flex-start}}
@media (max-width:760px){
  .form-grid.two-col,.form-grid.three-col{grid-template-columns:1fr}
  .bus-parent-route-fields .checkbox-list{grid-template-columns:1fr}
  .bus-parent-table .dt-primary,.bus-parent-table .dt-secondary{overflow-wrap:anywhere}
}

/* Leave Setup: explicit field groups keep policy labels and controls readable at desktop and portrait-phone widths. */
.leave-setup-workspace{display:flex;flex-direction:column;gap:18px}
.leave-policy-body,.leave-settings-body{display:flex;flex-direction:column;gap:18px;min-width:0}
.leave-policy-effective{display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);align-items:end;gap:18px;padding:14px 16px;border:1px solid #dbe4f0;border-radius:10px;background:#f8faff}
.leave-policy-effective .field-help{margin:0 0 8px}
.leave-policy-section{min-width:0;margin:0}
.leave-policy-section legend{width:100%;padding:0 8px;color:var(--sta-blue);font-weight:900;font-size:1.05rem}
.leave-policy-section-toggle{display:inline-flex;align-items:center;gap:10px;min-height:28px;color:var(--sta-blue);cursor:pointer}
.leave-policy-section-toggle input{width:19px;height:19px;margin:0;accent-color:var(--sta-blue);flex:0 0 auto}
.leave-policy-section-toggle span{line-height:1.25}
.leave-policy-section-toggle input:disabled{cursor:not-allowed;opacity:.6}
.leave-policy-section-slide-inner{padding-top:2px}
.leave-policy-section-note{color:#64748b;font-size:.82rem;font-weight:600}
.leave-policy-toggle{display:flex;align-items:flex-start;gap:10px;min-height:48px;padding:12px 14px;border:1px solid #dbe4f0;border-radius:9px;background:#f8faff;color:#1f2d4d;cursor:pointer}
.leave-policy-toggle input{width:19px;height:19px;flex:0 0 auto;margin:2px 0 0;accent-color:var(--sta-blue)}
.leave-policy-toggle span{display:flex;flex-direction:column;gap:4px}
.leave-policy-toggle small{color:#64748b;font-size:.8rem;font-weight:500;line-height:1.35}
.leave-policy-choice-group{grid-column:1/-1;min-width:0;margin:0;padding:0;border:0}
.leave-policy-choice-group legend{padding:0;color:var(--sta-blue);font-size:.82rem;font-weight:900;letter-spacing:.01em}
.leave-policy-choice-group>.field-help{margin:2px 0 8px;color:#64748b;line-height:1.35}
.leave-policy-checklist-all{margin:0 0 8px}
.leave-policy-checklist-slide-inner{padding-top:0}
.leave-policy-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 12px}
.leave-policy-check{display:flex;align-items:flex-start;gap:9px;min-width:0;min-height:42px;margin:0;padding:10px 12px;border:1px solid #dbe4f0;border-radius:9px;background:#fbfcff;color:#334155;font-size:.9rem;font-weight:700;line-height:1.3;cursor:pointer}
.leave-policy-check input{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--sta-blue)}
.leave-policy-check span{min-width:0;overflow-wrap:anywhere}
.leave-policy-check-all{background:#fff8e1;border-color:#f2d28a;color:#6b4f00}
.leave-policy-check input:disabled{opacity:.55;cursor:not-allowed}
.leave-policy-check input:disabled+span{color:#94a3b8}
.leave-policy-choice-group>.muted{margin:0;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:9px}
.leave-policy-form>.page-kicker{max-width:900px;margin:0}
.leave-policy-form .btn,.leave-settings-form .btn{align-self:flex-start;margin-top:2px}
.leave-settings-body{max-width:720px;padding:4px 0}
.leave-settings-form{display:flex;flex-direction:column;gap:14px;max-width:420px}
.leave-setup-workspace [data-reference-workspace]{margin:0;border:0;box-shadow:none;padding:0}
.leave-setup-workspace [data-reference-workspace] .workspace-page-header{padding-top:0}
@media(max-width:760px){
  .leave-policy-effective{grid-template-columns:1fr;gap:8px}
  .leave-policy-effective .field-help{margin:0}
  .leave-policy-checklist{grid-template-columns:1fr}
  .leave-policy-body{padding-bottom:88px}
}

/* Shared controlled slide body. StaffStart's .ss-slide remains visually identical while Leave uses the shared
   primitive through BrowserUi::controlledSlideBody(). */
.ph-controlled-slide{display:grid;grid-template-rows:minmax(0,0fr);opacity:0;transition:grid-template-rows .55s ease-in-out,opacity .4s ease-in-out}
.ph-controlled-slide[data-open]{grid-template-rows:minmax(0,1fr);opacity:1}
.ph-controlled-slide-inner{overflow:hidden;min-height:0}
@media (prefers-reduced-motion:reduce){.ph-controlled-slide{transition:none}}

/* Opt-in framed checkbox disclosure. The legend remains integrated with the fieldset border when open;
   closed sections retain only the checkbox row without an empty card around it. */
.ph-controlled-frame{display:block;min-width:0;margin:0;padding:0;border:0;background:transparent}
.ph-controlled-frame>legend{width:100%}
.ph-controlled-frame.is-open{padding:14px 16px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}
.ph-controlled-frame.ss-onb-section{margin:24px 0 0}
.ss-onb-steps .ph-controlled-frame.ss-onb-section{margin-top:6px}
@media(max-width:760px){.ph-controlled-frame.is-open{padding:14px 12px}}

/* StaffStart Settings screen */
.staffstart-settings-section{margin:18px 0;padding-top:14px;border-top:1px solid #e6ebf3}
.staffstart-settings-section:first-of-type{border-top:0;padding-top:0}
.staffstart-settings-form{max-width:680px}
.staffstart-settings-actions{margin-top:12px}
.staffstart-inline-action{display:inline-block;margin:0}
.staffstart-settings-feedback{min-height:0;font-size:13px}
.staffstart-settings-feedback.is-ok{color:#1c7a4a}
.staffstart-settings-feedback.is-error{color:#b3261e}

/* BrowserTable pagination */
.dt-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 2px;font-size:13px;color:#5a6b82}
.dt-pager-top{margin-bottom:6px;border-bottom:1px solid #eef2f8}
.dt-pager-bottom{margin-top:6px;border-top:1px solid #eef2f8}
.dt-pager-count{color:#5a6b82}
.dt-pager-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dt-pager-size{display:flex;align-items:center;gap:6px;margin-right:6px}
.dt-pager-size select{height:30px;padding:0 6px;border:1px solid #cdd6e4;border-radius:6px;background:#fff;color:#33415c;font-size:13px;line-height:1;box-sizing:border-box}
.dt-pager-btn{min-width:30px;height:30px;padding:0 8px;border:1px solid #cdd6e4;border-radius:6px;background:#fff;cursor:pointer;color:#33415c;line-height:1;font-size:15px}
.dt-pager-btn:hover:not(:disabled){background:#f1f5fb}
.dt-pager-btn:disabled{opacity:.4;cursor:default}
.dt-pager-btn[hidden]{display:none}
.dt-pager-pos{padding:0 6px;white-space:nowrap}
.dt-bulk-across{margin-left:10px;color:#5a6b82}
.dt-bulk-across[hidden]{display:none}
.dt-bulk-link{background:none;border:0;color:#1d4ed8;cursor:pointer;text-decoration:underline;font:inherit;padding:0}

/* BrowserTable settings mode (key/value table, row-click edit modal) */
.dt-settings .dt-card{border-collapse:separate}
.dt-settings-row{cursor:pointer}
.dt-settings-row:hover{background:#f6f9fe}
.dt-settings-row:focus-visible{outline:2px solid #1d4ed8;outline-offset:-2px}
/* Name | value split (all settings tables): the first column reads as a muted LABEL, a divider separates it, and
   the value column is dark + prominent -- so it's unmistakable which is the setting name and which is its value.
   The mobile card-stack keeps its bold title + "Label: value" rows, so these are reset below the breakpoint. */
.dt-settings-row .dt-cell-primary{font-weight:600;color:#64748b}
.dt-settings-row > .dt-cell.dt-cell-primary{border-right:1px solid #e6ecf5}
.dt-settings-row > .dt-cell:not(.dt-cell-primary){color:#1f2a44}
.dt-settings-row > .dt-cell:last-child{position:relative;padding-right:26px}
.dt-settings-row > .dt-cell:last-child::after{content:'\203A';position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#9aa7bd;font-size:18px;line-height:1}
.settings-label-line{display:flex;align-items:center;gap:6px;min-width:0}
.settings-help-btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:var(--sta-blue);font-size:12px;font-weight:800;line-height:1;cursor:pointer;padding:0;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.settings-help-btn:hover,.settings-help-btn:focus-visible{background:#f7f9ff;border-color:var(--sta-blue);outline:2px solid rgba(251,192,45,.75);outline-offset:2px}
.settings-summary{margin-top:3px;color:#5a6b82;font-size:12.5px;font-weight:400;line-height:1.35}
.dt-settings-help-body{display:flex;flex-direction:column;gap:10px;color:#33415c;font-size:14px;line-height:1.45}
.dt-settings-help-body p{margin:0}
.dt-settings-help-body .settings-help-key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:7px 9px;overflow-wrap:anywhere}
.dt-settings-modal-body{display:flex;flex-direction:column;gap:12px}
.dt-settings-modal-body .parentlocker-worker-setup-wrap{display:flex;flex-direction:column;gap:12px;max-width:760px}
.dt-settings-modal-body .parentlocker-vault-note{padding:14px 16px;border:1px solid var(--line,#d7deec);border-left:4px solid var(--sta-gold,#f7bd31);border-radius:12px;background:#f8f9fc;color:var(--sta-ink,#17233e)}
.dt-settings-modal-body .parentlocker-vault-note p{margin:6px 0 0}
.modal.dt-settings-modal{width:min(760px,calc(100vw - 44px));max-height:min(92vh,760px);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
.modal.dt-settings-modal .modal-header{flex:0 0 auto}
.modal.dt-settings-modal .modal-body{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.modal.dt-settings-modal .dt-settings-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.modal.dt-settings-modal .dt-settings-modal-body{flex:1 1 auto;min-height:0;overflow:auto;padding:2px 2px 4px 0}
.dt-settings-modal-body .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;min-width:0}
.dt-settings-modal-body .field-grid>.field-wide{grid-column:1/-1}
.dt-settings-modal-body label:has(> input:not([type="checkbox"]):not([type="radio"]),>select,>textarea){display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--sta-blue);font-weight:800;line-height:1.3}
.dt-settings-modal-body input:not([type="checkbox"]):not([type="radio"]),.dt-settings-modal-body select,.dt-settings-modal-body textarea{width:100%;min-width:0;box-sizing:border-box}
.reply-to-address-table .reply-to-draft-input{width:100%;min-width:0;box-sizing:border-box}
.reply-to-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.reply-to-manager-actions{display:flex;justify-content:flex-start;margin-top:12px}
.dt-settings-modal-foot{display:flex;flex:0 0 auto;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #e6ecf5;background:#fff}
.modal.dt-settings-help-modal .modal-body{overflow:auto}
.dt-settings-feedback{min-height:16px;font-size:13px;margin-top:8px;color:#5a6b82}
.dt-settings-feedback.is-error{color:#b3261e}
.email-blind-copy-warning{margin:0 0 14px;padding:11px 13px;border:1px solid #f0c36d;border-radius:8px;background:#fff8e7;color:#5f4500;line-height:1.45}
.email-blind-copy-table{margin:0 0 14px}
.email-blind-copy-empty{margin:12px 0 16px}
.email-blind-copy-add{border-top:1px solid #e6ecf5;padding-top:14px}
.email-blind-copy-add>.field{max-width:560px}
.email-blind-copy-scopes{display:flex;flex-wrap:wrap;gap:8px 16px;margin:14px 0;padding:10px 12px;border:1px solid #d8e0ee;border-radius:8px}
.email-blind-copy-scopes legend{padding:0 6px;color:var(--sta-blue);font-size:13px;font-weight:800}
.email-blind-copy-scope-option{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px;color:#344054!important;font-weight:600!important;cursor:pointer;white-space:nowrap}
.email-blind-copy-scope-option input{width:16px!important;height:16px;min-height:0;margin:0;flex:0 0 auto}
.email-blind-copy-remove{min-width:32px;padding-left:8px;padding-right:8px;font-size:18px;line-height:1}
@media (max-width:760px){
  .modal.dt-settings-modal{width:min(100%,calc(100vw - 24px));max-height:80vh;padding:16px 18px}
  .dt-settings-modal-body .field-grid{grid-template-columns:1fr;gap:12px}
  .dt-settings-modal-foot{margin-top:12px}
  .reply-to-address-table [data-reply-to-draft-row] .dt-cell{display:block}
  .reply-to-address-table [data-reply-to-draft-row] .dt-cell::before{display:block;margin-bottom:5px}
  .reply-to-address-table [data-reply-to-draft-row] .dt-cell-primary::before{content:none}
  .reply-to-address-table [data-reply-to-draft-row] .reply-to-actions{display:flex;flex-direction:column;align-items:stretch}
  .reply-to-address-table [data-reply-to-draft-row] .reply-to-actions .btn{width:100%}
  .email-blind-copy-table{overflow-x:auto}
  .email-blind-copy-add>.field{max-width:none}
  .email-blind-copy-scope-option{width:calc(50% - 8px)}
}
@media (max-width:900px) and (orientation:landscape){
  .modal.dt-settings-modal{width:min(100%,calc(100vw - 44px));max-height:calc(100vh - 44px)}
  .dt-settings-modal-body .field-grid{grid-template-columns:1fr;gap:12px}
}
.payroll-forms-template-choice{min-width:0;margin:0}
.payroll-forms-template-choice legend{width:100%;padding:0 8px;color:var(--sta-blue);font-size:1.05rem;font-weight:900}
.payroll-forms-template-toggle{display:inline-flex;align-items:center;gap:10px;min-height:28px;color:var(--sta-blue);cursor:pointer}
.payroll-forms-template-toggle input{width:19px;height:19px;margin:0;accent-color:var(--sta-blue);flex:0 0 auto}
.payroll-forms-template-toggle input:disabled{cursor:not-allowed;opacity:.6}
.payroll-forms-template-slide-inner{padding-top:2px}
.payroll-forms-template-controls{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(0,1.35fr);gap:10px 12px;align-items:center}
.payroll-forms-template-controls>label{min-width:0;color:var(--sta-blue);font-size:.84rem;font-weight:900;line-height:1.3}
.payroll-forms-template-controls>select{width:100%;min-width:0;min-height:40px}
.payroll-forms-template-controls>[data-payroll-forms-template-version-number]{display:none}
.payroll-forms-template-actions{grid-column:2;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.payroll-forms-template-actions .btn{justify-self:start}
.payroll-forms-template-actions .btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none}
.payroll-forms-pending-warning{border-left:3px solid var(--sta-gold);padding-left:10px;color:#6b4b00}
.payroll-forms-template-slide-inner>.field-help{margin:10px 0 0;color:#64748b;line-height:1.4}
.payroll-forms-independent-review{display:grid;gap:18px;min-width:0}
.payroll-forms-independent-review>.field-help{margin:0;line-height:1.5}
.payroll-forms-independent-review>.modal-actions{margin:0}
.payroll-forms-review-facts{display:grid;gap:10px;margin:0;padding:14px 16px;border:1px solid #e1e7f0;border-radius:10px;background:#fbfcff}
.payroll-forms-review-facts>div{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:4px 16px;align-items:start;min-width:0}
.payroll-forms-review-facts dt{display:flex;gap:3px;align-items:baseline;font-weight:900;color:var(--sta-blue)}
.payroll-forms-review-facts dd{margin:0;min-width:0;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.payroll-forms-review-effective-date{display:grid;gap:10px;margin:0}
.payroll-forms-review-effective-date>label{display:grid;grid-template-columns:1fr;gap:8px;align-items:start;font-weight:900;color:var(--sta-blue)}
.payroll-forms-review-effective-date>label>span{display:block}
.payroll-forms-review-effective-date input{width:100%;max-width:18rem;min-width:0;min-height:44px;justify-self:start}
.payroll-forms-review-effective-date .field-help{grid-column:1/-1;margin:0;line-height:1.45}
.payroll-forms-review-primary-actions{margin:16px 0 10px;padding-top:16px;border-top:1px solid #e5e9f2}
.payroll-forms-independent-correction{margin:20px 0 0;padding:22px 18px;border-top:1px solid #e5e9f2}
.payroll-forms-independent-correction .field{gap:8px;margin-top:14px}
.payroll-forms-review-correction-actions{justify-content:flex-start;margin-top:18px}
.payroll-forms-review-result{margin:0}
.payroll-forms-reviewer-list{display:flex;flex-direction:column;gap:8px}
.payroll-forms-reviewer-row{display:flex;align-items:center;gap:8px}
.payroll-forms-reviewer-row select{flex:1;min-width:0}
.payroll-forms-reviewer-row .icon-button{flex:0 0 auto}
.payroll-forms-detail-sections{display:grid;gap:18px;margin-top:18px}
.payroll-forms-delivery-card,.payroll-forms-package-controls{margin:0}
.payroll-forms-section-heading{display:grid;gap:5px;margin:0 0 16px}
.payroll-forms-section-heading h4{margin:0}
.payroll-forms-section-heading .field-help{margin:0;max-width:680px;line-height:1.45}
.payroll-forms-form-options{gap:10px 18px;margin:0}
.payroll-forms-delivery-note{margin:0;line-height:1.45}
.payroll-forms-delivery-actions{margin:16px 0 0}
.payroll-forms-bulk-delivery{display:grid;gap:16px;margin-top:32px;padding:18px 16px}
.payroll-forms-bulk-delivery>h4,.payroll-forms-bulk-delivery>.field-help{margin:0}
.payroll-forms-bulk-delivery>.field-help{line-height:1.45}
.payroll-forms-bulk-delivery-actions,.payroll-forms-bulk-cancel-actions{margin:0}
.payroll-forms-bulk-cancel-note{display:grid;grid-template-columns:1fr;gap:8px;align-items:start;margin:0}
.payroll-forms-bulk-cancel-note>span{display:block;color:var(--sta-blue);font-weight:900;line-height:1.3}
.payroll-forms-bulk-cancel-note em{font-style:normal;font-weight:400}
.payroll-forms-bulk-cancel-note input{width:100%;min-width:0}
.payroll-forms-deadline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:18px 0 14px;padding:14px 16px;border:1px solid #d8e0ee;border-radius:8px;background:#fbfcff}
.payroll-forms-deadline legend{padding:0 6px;color:var(--sta-blue);font-weight:900}
.payroll-forms-deadline .ss-check{min-width:0}
.payroll-forms-deadline-custom,.payroll-forms-deadline-preview{grid-column:1/-1;margin:0}
.payroll-forms-deadline-custom>span,.payroll-forms-package-cancel-note>span{display:block;margin-bottom:6px}
.payroll-forms-package-list{display:grid;gap:12px}
.payroll-forms-package-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;border:1px solid #dbe3ee;border-radius:10px;background:#fbfcff}
.payroll-forms-package-summary{display:grid;gap:4px;min-width:0}
.payroll-forms-package-kicker{color:#61718c;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.payroll-forms-package-forms{color:var(--sta-blue);font-size:1rem;font-weight:900;line-height:1.3;overflow-wrap:anywhere}
.payroll-forms-package-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-items:center}
.payroll-forms-package-note{display:grid;gap:7px;max-width:680px;margin-top:4px;padding-top:16px;border-top:1px solid #e5e9f2}
.payroll-forms-package-note .field-help{margin:0;line-height:1.4}
.payroll-forms-package-cancel-note{display:grid;grid-template-columns:1fr;gap:8px;align-items:start;max-width:none;margin-top:16px}
.payroll-forms-package-cancel-note em{font-style:normal;font-weight:400}
.payroll-forms-package-cancel-note input{width:100%}
.payroll-forms-package-limit{margin:0}
.payroll-forms-history-card{margin:0}
.ph-people-picker{display:flex;flex-direction:column;gap:8px}.ph-people-picker-selected{display:flex;flex-direction:column;gap:8px}.ph-people-picker-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line,#dbe3ec);border-radius:var(--radius,8px);background:var(--card,#fff)}.ph-people-picker-row.is-invalid{border-color:#d97706;background:#fffaf0}.ph-people-picker-row-label{min-width:0;overflow-wrap:anywhere}.ph-people-picker-invalid{font-size:12px;color:#b45309;margin-left:6px}.ph-people-picker-empty{padding:9px 10px;color:var(--muted);font-size:13px;border:1px dashed var(--line,#dbe3ec);border-radius:var(--radius,8px)}.ph-people-picker-add{position:relative}.ph-people-picker-add input[type=search]{width:100%}.ph-people-picker-results{display:flex;flex-direction:column;gap:2px;position:relative;z-index:2;margin-top:4px}.ph-people-picker-result{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;padding:9px 10px;border:1px solid var(--line,#dbe3ec);background:var(--card,#fff);color:inherit;border-radius:6px;cursor:pointer}.ph-people-picker-result:hover,.ph-people-picker-result:focus-visible{background:#eef5ff;border-color:var(--sta-blue,#1456a0)}.ph-people-picker-result small{color:var(--muted);margin-left:8px;overflow-wrap:anywhere}.ph-people-picker-status{min-height:1.2em}.ph-people-picker [data-ph-picker-save]{margin-left:auto}
 @media (max-width:760px){.payroll-forms-detail-sections{gap:14px;margin-top:14px}.payroll-forms-section-heading{margin-bottom:14px}.payroll-forms-form-options{align-items:flex-start;flex-direction:column}.payroll-forms-bulk-delivery{margin-top:24px;padding:14px}.payroll-forms-bulk-delivery-actions,.payroll-forms-bulk-cancel-actions{align-items:stretch;justify-content:stretch}.payroll-forms-bulk-delivery-actions .btn,.payroll-forms-bulk-cancel-actions .btn{width:100%}.payroll-forms-deadline{grid-template-columns:1fr;padding:12px}.payroll-forms-deadline-custom,.payroll-forms-deadline-preview{grid-column:1}.payroll-forms-package-control{grid-template-columns:1fr;gap:13px;padding:14px}.payroll-forms-package-actions{align-items:stretch;justify-content:stretch}.payroll-forms-package-actions .btn{width:100%}.payroll-forms-package-note{margin-top:0;padding-top:14px}.payroll-forms-review-facts>div{grid-template-columns:1fr;gap:2px}.payroll-forms-review-facts dt{font-size:15px}.payroll-forms-review-effective-date>label{grid-template-columns:1fr;gap:7px}.payroll-forms-review-effective-date input{width:100%;max-width:none;min-height:44px}.payroll-forms-review-primary-actions,.payroll-forms-review-correction-actions{justify-content:stretch;margin-top:12px;padding-top:14px}.payroll-forms-review-primary-actions .btn,.payroll-forms-review-correction-actions .btn{width:100%;min-height:46px}.payroll-forms-independent-correction{margin-top:14px;padding:18px 14px}.ph-people-picker-row{align-items:flex-start}.ph-people-picker-row .icon-button{flex:0 0 auto}.ph-people-picker-result{min-height:44px}.ph-people-picker-add input[type=search]{font-size:16px}}
@media(max-width:760px){
  .payroll-forms-template-controls{grid-template-columns:1fr;gap:8px}
  .payroll-forms-template-actions{grid-column:1}
}

/* StaffStart settings edit-modal checkbox lists (fixes the off-center checkbox alignment).
   ‼️ Scoped to the modal body. Was previously the bare `.ss-check-list` selector and overrode the New Onboarding
   "Steps for this onboarding" list too, which inherited the 48vh cap + scrollbar even when it fit in its column. */
.dt-settings-modal-body .ss-check-list,.modal .ss-check-list{display:flex;flex-direction:column;gap:8px;max-height:48vh;overflow:auto}
.ss-check{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:14px;line-height:1.3}
.ss-check[hidden]{display:none!important}
/* The chosen folder/doc shown in a settings Drive pick row: the friendly name over the raw id. */
.ss-drive-name{font-weight:600;color:#33415c}
.ss-check input[type="checkbox"]{flex:0 0 auto;width:16px;height:16px;margin:0}
.ss-check span{flex:1 1 auto}
.ss-checkall-bar{display:flex;gap:8px;margin-bottom:10px}

/* App Secrets screen */
.secrets-workspace .secrets-intro{color:#555;font-size:13px;max-width:760px;margin:6px 0 18px}
.secrets-section{margin:0 0 22px}
.secrets-section-title{font-size:15px;margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid #e4e7ec}
.settings-inline-action{margin:8px 0 10px}
.weekday-availability-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;margin-top:12px}
.weekday-availability-cards .settings-card{border:1px solid #e4e7ec;border-radius:10px;padding:14px;background:#fff;box-shadow:0 2px 5px rgba(16,24,40,.06)}
.weekday-availability-cards h4{margin:0 0 5px;color:#175cd3;font-size:14px}
.weekday-availability-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin:12px 0}
.weekday-availability-option{display:flex;align-items:center;gap:8px;min-height:30px;cursor:pointer;font-size:13px}
.weekday-availability-option input{width:16px;height:16px;accent-color:#b48c14}
.calendar-reference-workspace{min-width:0}
.calendar-reference-actions{display:flex;justify-content:flex-end;margin:4px 0 10px}
.calendar-reference-actions .reference-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px}
.calendar-reference-workspace [data-reference-list]{min-width:0;overflow-x:auto}
.calendar-division-setup{display:grid;gap:12px}
.calendar-division-setup>.field-help{margin:0}
.calendar-division-empty{margin:0;padding:14px;border:1px dashed #cbd5e1;border-radius:9px;background:#f8fafc;color:#475467;font-size:13px}
.calendar-division-summary{margin:0;color:#475467;font-size:13px;font-weight:700}
.calendar-division-list{display:grid;gap:8px}
.calendar-division-item{border:1px solid #e4e8ef;border-radius:9px;background:#fff;overflow:hidden}
.calendar-division-item>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:11px 13px;color:#174a7e;font-weight:700}
.calendar-division-item>summary::-webkit-details-marker{display:none}
.calendar-division-item>summary:before{content:"";width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid #94a3b8;transition:transform .15s ease}
.calendar-division-item[open]>summary:before{transform:rotate(90deg)}
.calendar-division-name{flex:1}
.calendar-division-meta{font-size:12px;font-weight:600;color:#667085}
.calendar-division-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;padding:0 13px 13px}
.unified-calendar-weekdays{display:grid;gap:14px}
.calendar-weekday-pattern-search{display:block;max-width:520px;margin:12px 0 6px}
.calendar-weekday-pattern-search>span{display:block;margin-bottom:6px}
.calendar-weekday-pattern-search input{display:block;width:100%;box-sizing:border-box}
.school-calendar-weekday-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.calendar-weekday-rule,.calendar-division-day{display:grid;align-content:start;gap:7px;min-width:0;padding:12px;border:1px solid var(--line,#d7dfeb);border-radius:10px;background:var(--surface,#fff)}
.calendar-weekday-rule>span,.calendar-division-day>span{font-weight:700;color:var(--ink,#24344d)}
.calendar-weekday-rule select,.calendar-division-day select{width:100%;min-width:0}
.calendar-weekday-rule .field-help,.calendar-division-day .field-help{margin:0;line-height:1.4}
.calendar-division-list{display:grid;gap:10px}
.calendar-division-item{border:1px solid var(--line,#d7dfeb);border-radius:10px;background:var(--surface,#fff);overflow:hidden}
.calendar-division-item>summary{padding:12px 14px;color:var(--ink,#24344d);font-weight:700;cursor:pointer}
.calendar-division-item[open]>summary{border-bottom:1px solid var(--line,#d7dfeb);background:var(--soft,#f5f7fa)}
.calendar-division-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;padding:12px}
.calendar-division-day small{min-height:2.8em}
@media(max-width:620px){.school-calendar-weekday-grid,.calendar-division-days{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.calendar-weekday-rule,.calendar-division-day{padding:10px}}
.calendar-division-day{display:grid;gap:5px;color:#475467;font-size:12px;font-weight:700}
.calendar-division-day select{width:100%;min-height:36px;padding:6px 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#344054;font:inherit;font-weight:400}
.calendar-division-activation{border-top:1px solid #e4e8ef;padding-top:12px}
.calendar-division-activation h4{margin:0 0 8px;color:#174a7e}
.calendar-division-activation>.field-help{margin:6px 0}
.secrets-table{width:100%;border-collapse:collapse}
.secrets-table td{padding:10px 12px;border-bottom:1px solid #f0f1f4;vertical-align:middle}
.secrets-table tr.secrets-group td{background:#f7f8fa;font-weight:600;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#667085;padding:6px 12px;border-bottom:1px solid #eceef2}
.secrets-group-label{font-weight:600;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#667085;margin:12px 0 4px}
.secrets-label{font-weight:600;font-size:14px}
.secrets-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:#98a2b3;margin-top:2px}
.secrets-note{font-size:12px;color:#b54708;margin-top:4px;max-width:520px}
.secrets-meta{font-size:11px;color:#98a2b3;margin-top:4px}
.secrets-req{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#b42318;background:#fef3f2;border-radius:8px;padding:1px 6px;margin-left:6px;vertical-align:middle}
.secrets-status{display:inline-block;font-size:12px;font-weight:600;border-radius:12px;padding:2px 10px;white-space:nowrap}
.secrets-status.is-set{background:#ecfdf3;color:#067647}
.secrets-status.is-missing{background:#fef3f2;color:#b42318}
.secrets-status.is-optional{background:#f2f4f7;color:#667085}
.secrets-actions{text-align:right;white-space:nowrap}
.btn-secret{font-size:12px;font-weight:600;border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:6px;padding:5px 11px;cursor:pointer;margin-left:4px}
.btn-secret:hover{background:#f9fafb}
.btn-secret-primary{background:#175cd3;border-color:#175cd3;color:#fff}
.btn-secret-primary:hover{background:#1149a6}
.btn-secret-danger{color:#b42318;border-color:#fda29b}
.btn-secret-danger:hover{background:#fef3f2}
.secrets-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;background:rgba(16,24,40,.55)}
.secrets-modal[hidden]{display:none}
.secrets-modal-card{background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(16,24,40,.25);width:min(560px,92vw);padding:20px}
.secrets-modal-title{margin:0 0 4px;font-size:16px}
.secrets-modal-hint{margin:0 0 12px;font-size:13px;color:#667085}
.secrets-modal-input{width:100%;box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;border:1px solid #d0d5dd;border-radius:8px;padding:10px;resize:vertical}
.secrets-modal-input[readonly]{background:#f9fafb;color:#475467}
.secrets-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.config-value-cell{max-width:340px}
.config-value-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#344054;overflow-wrap:anywhere;word-break:break-word}
.config-empty{color:#98a2b3;font-size:12px}
.docdesk-admin-settings{margin-top:22px;border-top:1px solid #e4e7ec;padding-top:16px}
.bus-admin-section .secrets-section{margin:4px 0 0}

/* DocDesk Fillable Forms — Library + placement editor (Phase B). Black-only marks per the owner rule. */
.docdesk-forms-table{width:100%;border-collapse:collapse}
.docdesk-forms-table th,.docdesk-forms-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #e4e7ec;font-size:14px}
.docdesk-forms-actions{white-space:nowrap}
.formed-loading{padding:24px;color:#667085}
.formed-toolbar{align-items:flex-start;gap:12px}
.formed-toolbar-actions{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;align-items:center}
.formed-icon{display:block}
/* All toolbar action buttons are the SAME rounded-square shape + size (icon-only). */
.formed-icon-btn{width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:17px;line-height:1}
/* Lock background scroll while a forms-editor modal (Form settings / discard confirm) is open. (P2) */
body.formed-modal-open{overflow:hidden}
.formed-palette{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;padding:8px;background:#f8f9fc;border:1px solid #e4e7ec;border-radius:8px}
.formed-palette-btn.is-active{background:#101828;color:#fff;border-color:#101828}
.formed-body{display:flex;gap:16px;align-items:flex-start}
.formed-canvas{flex:1 1 auto;min-width:0;max-height:75vh;overflow:auto;scrollbar-gutter:stable;background:#f2f4f7;padding:12px;border:1px solid #e4e7ec;border-radius:8px}
.formed-canvas.is-file-dragover{border-color:#b48c14;box-shadow:0 0 0 3px rgba(180,140,20,.22);background:#fffaf0}
.formed-page{position:relative;margin:0 auto 16px;box-shadow:0 1px 6px rgba(16,24,40,.16);background:#fff}
.formed-overlay{position:absolute;inset:0;cursor:crosshair;touch-action:pan-y}
.formed-field{position:absolute;box-sizing:border-box;border:1.5px solid #101828;background:rgba(16,24,40,.06);cursor:move;overflow:visible;min-width:6px;min-height:6px;touch-action:none}
.formed-field.is-selected{border-color:#1570ef;background:rgba(21,112,239,.12);box-shadow:0 0 0 2px rgba(21,112,239,.35)}
.formed-field-label{position:absolute;top:-17px;left:0;font-size:11px;line-height:14px;color:#101828;background:#fff;padding:0 3px;white-space:nowrap;pointer-events:none}
.formed-field-handle{position:absolute;right:-5px;bottom:-5px;width:10px;height:10px;background:#1570ef;border:1px solid #fff;border-radius:2px;cursor:nwse-resize}
.formed-marquee{position:absolute;box-sizing:border-box;border:1px dashed #1570ef;background:rgba(21,112,239,.10);pointer-events:none}
.formed-inspector{flex:0 0 280px;max-width:280px;background:#fff;border:1px solid #e4e7ec;border-radius:8px;padding:12px;max-height:75vh;overflow:auto}
.formed-inspector-title{margin:0 0 8px;font-size:15px}
.formed-inspector label{display:block;font-size:12px;color:#475467;margin:0 0 8px}
.formed-inspector input[type=text],.formed-inspector select,.formed-inspector textarea{width:100%;box-sizing:border-box;margin-top:2px;padding:6px 8px;border:1px solid #d0d5dd;border-radius:6px;font-size:13px}
.formed-inspector .formed-check{display:flex;align-items:center;gap:6px}
.formed-inspector .formed-check input{width:auto;height:auto;margin:0}
.formed-inspector .formed-checks{display:flex;flex-direction:column;gap:4px;margin:0 0 8px;padding:6px 0;border-top:1px solid #f0f1f4;border-bottom:1px solid #f0f1f4}
.formed-inspector .formed-checks .formed-check{margin:0}
.formed-inspector-actions{margin-top:10px}
.formed-formula{min-height:34px;display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:3px;padding:6px 8px;border:1px solid #d0d5dd;border-radius:6px;background:#f8f9fc;line-height:20px}
.formed-formula-token{display:inline-flex;align-items:center;min-height:20px;padding:0 5px;border-radius:4px;background:#e4e7ec;color:#344054;font:700 12px/20px Roboto,Arial,sans-serif}
.formed-formula-token.field{background:#dbeafe;color:#1d4ed8}
.formed-formula-number{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center;margin-top:6px}
.formed-formula-number input[type=text]{margin-top:0}
.formed-modal-overlay{position:fixed;inset:0;background:rgba(16,24,40,.45);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.formed-modal{background:#fff;border-radius:10px;padding:18px;width:100%;max-width:420px;max-height:90vh;overflow:auto;box-shadow:0 12px 40px rgba(16,24,40,.25)}
.formed-modal label{display:block;font-size:12px;color:#475467;margin:0 0 10px}
.formed-modal input[type=text],.formed-modal select{width:100%;box-sizing:border-box;margin-top:2px;padding:7px 8px;border:1px solid #d0d5dd;border-radius:6px;font-size:13px}
.formed-modal .formed-check{display:flex;align-items:center;gap:6px}
.formed-modal .formed-check input{width:auto;margin:0}
.formed-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.docdesk-preview-overlay{align-items:flex-start}
.docdesk-preview-modal{background:#fff;border-radius:10px;padding:14px;width:100%;max-width:920px;max-height:92vh;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(16,24,40,.25)}
.docdesk-preview-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.docdesk-preview-body{overflow:auto;background:#f3f4f6;padding:12px;border-radius:6px}
.docdesk-preview-page{position:relative;margin:0 auto 12px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.docdesk-preview-overlay-layer{position:absolute;inset:0;pointer-events:none}
.docdesk-preview-field{position:absolute;border:1.5px solid #1570ef;background:rgba(21,112,239,.08);box-sizing:border-box;overflow:hidden;border-radius:2px}
.docdesk-preview-field-label{position:absolute;left:1px;top:1px;font-size:9px;line-height:1.1;color:#1570ef;background:rgba(255,255,255,.85);padding:0 2px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.docdesk-preview-field.kind-signature,.docdesk-preview-field.kind-initial{border-color:#7a5af8;background:rgba(122,90,248,.08)}
.docdesk-preview-field.kind-signature .docdesk-preview-field-label,.docdesk-preview-field.kind-initial .docdesk-preview-field-label{color:#7a5af8}
.docdesk-preview-field.kind-date{border-style:dashed}

/* DocDesk form draft versions (migration 531): the Results detail modal's saved-versions table renders slightly
   smaller than the results grid, saved draft values overlay the unsigned canvas at each field's box, and the
   answers list is grouped under per-page headings. */
.dform-versions-table{font-size:13px}
.dform-versions-actions{margin:0 0 8px;display:flex;justify-content:flex-end}
.dform-versions-pager{margin:8px 0 0;display:flex;gap:8px;justify-content:flex-end}
.dform-draft-value{position:absolute;display:flex;align-items:center;padding:0 2px;font-size:11px;line-height:1.1;color:#101828;overflow:hidden;box-sizing:border-box;pointer-events:none;white-space:pre-wrap}
.dform-detail-page{margin:14px 0 4px;font-size:12px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.dform-detail-pdf{max-height:60vh;overflow:auto}
/* The editor is a workspace surface rather than a desktop-only canvas: keep every control reachable on a phone,
   preserve a useful PDF viewport, and keep overlay labels from visually running through neighbouring PDF lines. */
@media (max-width:760px){
  .formed-shell{padding:12px}
  .formed-toolbar{flex-direction:column;align-items:stretch;gap:10px}
  .formed-toolbar .section-title{margin-bottom:4px}
  .formed-toolbar-actions{width:100%;justify-content:flex-start}
  .formed-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
  .formed-palette .btn{width:100%;min-height:38px;white-space:normal}
  .formed-body{flex-direction:column;gap:12px}
  .formed-canvas{width:100%;max-height:58vh;padding:8px;scrollbar-gutter:auto}
  .formed-page{margin-bottom:12px}
  .formed-inspector{flex-basis:auto;max-width:none;width:100%;max-height:none;padding:14px}
  .formed-field-label{top:2px;max-width:calc(100% - 4px);font-size:10px;line-height:12px;background:rgba(255,255,255,.92);overflow:hidden;text-overflow:ellipsis}
  .formed-field-handle{width:14px;height:14px;right:-7px;bottom:-7px}
  .formed-formula-number{grid-template-columns:1fr 1fr}
  .formed-formula-number input[type=text]{grid-column:1 / -1}
  .formed-modal-overlay{align-items:flex-end;padding:8px}
  .formed-modal{max-height:calc(100vh - 16px);padding:16px}
  .docdesk-preview-modal{max-height:calc(100vh - 16px);padding:10px}
  .docdesk-preview-head{align-items:flex-start;flex-wrap:wrap}
  .docdesk-preview-body{padding:8px}
}
@media (max-width:400px){
  .formed-icon-btn{width:36px;height:36px}
  .formed-palette{grid-template-columns:1fr}
}

/* DocDesk Fillable Forms — recipient fill inputs on the signing page (overlaid on the PDF at each field box). */
/* R10 — Adobe/Acrobat-style fillable inputs (FORMS ONLY; never touches .docdesk-pdf-field contract chips).
   The white bordered CONTROL is the affordance, so the wrapper stays calm at rest; the blue highlight is reserved
   for the active field (:focus / focus-within). */
.docdesk-form-input{box-sizing:border-box;display:flex;align-items:center;z-index:3}
.docdesk-form-input.is-own{border-radius:4px}
.docdesk-form-input.is-readonly{color:#000;font-size:12px;overflow:hidden}
.docdesk-form-input-ro{padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.docdesk-form-choice-ro{box-sizing:border-box;display:flex;width:100%;height:100%;align-items:center;justify-content:center;padding:0;font-size:14px;font-weight:700;text-overflow:clip}
.docdesk-form-input input[type=text],.docdesk-form-input input[type=date],.docdesk-form-input select,.docdesk-form-input textarea{width:100%;height:100%;box-sizing:border-box;border:1px solid #c4ccd8;background:#fff;border-radius:4px;font:inherit;font-size:12px;color:#000;padding:2px 6px}
.docdesk-form-input textarea{resize:none;line-height:1.3;padding:4px 6px;min-height:0}
/* A clear focus highlight only on the active field. */
.docdesk-form-input input[type=text]:focus,.docdesk-form-input input[type=date]:focus,.docdesk-form-input select:focus,.docdesk-form-input textarea:focus{border-color:#1570ef;box-shadow:0 0 0 2px rgba(21,112,239,.18);outline:none}
/* A required field gets a warm border so it reads as "needs a value" without the heavy blue tint. */
.docdesk-form-input.is-required.is-own input[type=text],.docdesk-form-input.is-required.is-own input[type=date],.docdesk-form-input.is-required.is-own select,.docdesk-form-input.is-required.is-own textarea{border-color:#dc6803}
/* P7: client pre-validation flags every failing field (reuses the warm required affordance, a touch stronger). */
.docdesk-form-input.is-invalid input[type=text],.docdesk-form-input.is-invalid input[type=date],.docdesk-form-input.is-invalid select,.docdesk-form-input.is-invalid textarea{border-color:#b54708;box-shadow:0 0 0 2px rgba(181,71,8,.22)}
.docdesk-v2-validation-list{margin:6px 0 0;padding-left:18px}
/* The client-validation summary sits below the submit container. */
.docdesk-v2-validation-summary{margin-top:12px}
/* Calmer checkbox/radio: native control, neutral accent, no blue wrapper tint. */
.docdesk-form-input input[type=checkbox],.docdesk-form-input input[type=radio]{width:auto;height:auto;margin:0 auto;accent-color:#1570ef;cursor:pointer}
/* A clearly-active field while filling (esp. on touch, where there's no hover). */
.docdesk-form-input.is-own:focus-within{box-shadow:0 0 0 2px rgba(21,112,239,.18)}
/* P6: a styled help tooltip on the fill page (label · Required · Format + the per-field help). Multi-line via
   pre-line; hover on desktop, focus-pop (.tooltip-active) on touch — mirrors the contract-chip tooltip pattern. */
.docdesk-form-input[data-tooltip]{overflow:visible}
/* Tooltip sits ABOVE the field (so it's never hidden under inputs below) and is shown only via the JS-timed
   .tooltip-active class (each hover shows it ~2s, then it hides until the pointer re-enters). */
.docdesk-form-input[data-tooltip].tooltip-active::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 6px);left:0;background:#1a237e;color:#fff;font-size:.78rem;font-weight:600;line-height:1.35;padding:6px 10px;border-radius:8px;white-space:pre-line;max-width:260px;z-index:120;pointer-events:none;box-shadow:0 4px 12px rgba(15,23,42,.2);font-family:system-ui,-apple-system,sans-serif;text-transform:none}
/* P6 (S3): keep the native date control from being clipped inside its drawn box on the signing page. */
.docdesk-form-input.kind-date_input{overflow:visible}
.docdesk-form-input.kind-date_input input[type=date]{line-height:normal;min-height:20px}
/* P6 (S1): the required-fields legend in the instruction banner. */
.docdesk-v2-required-legend{color:#b54708;font-weight:700}
/* DocDesk Fillable Forms — D22 mobile / real-phone polish for the recipient FILL surface.
   The signing layout already ships viewport `minimum-scale=1` (no zoom-out overflow). The remaining phone gaps:
   (1) inputs < 16px make iOS Safari auto-zoom on focus — bump editable controls to 16px on small screens;
   (2) reclaim canvas width (bigger, easier-to-tap fields) by trimming the viewer chrome on narrow screens. */
@media (max-width:640px){
  .docdesk-form-input input[type=text],.docdesk-form-input input[type=date],.docdesk-form-input select,.docdesk-form-input textarea{font-size:16px}
  .docdesk-pdf-viewer{padding:8px;gap:10px}
  .docdesk-v2-pdf-viewer{min-height:68vh}
}

/* DocDesk Fillable Forms — "Send form" modal (C14). */
.dform-send-overlay{position:fixed;inset:0;background:rgba(16,24,40,.45);display:flex;align-items:flex-start;justify-content:center;z-index:10030;overflow:auto;padding:40px 16px}
.dform-send-card{background:#fff;border-radius:10px;padding:20px;max-width:520px;width:100%;box-shadow:0 8px 32px rgba(16,24,40,.28)}
.dform-send-h3{margin:16px 0 8px;font-size:14px;color:#475467}
.dform-send-rcpt{border:1px solid #e4e7ec;border-radius:8px;padding:10px 12px;margin:0 0 10px}
.dform-send-rcpt legend{font-weight:700;font-size:13px;padding:0 4px}
.dform-send-card label{display:block;font-size:12px;color:#475467;margin:0 0 8px}
.dform-send-card input[type=text],.dform-send-card input[type=email],.dform-send-card input[type=date],.dform-send-card select,.dform-send-card textarea{width:100%;box-sizing:border-box;margin-top:2px;padding:6px 8px;border:1px solid #d0d5dd;border-radius:6px;font-size:13px}
.dform-send-prefills{margin-top:10px;border-top:1px solid #e4e7ec;padding-top:8px}
.dform-send-prefills summary{cursor:pointer;color:var(--sta-blue);font-size:13px;font-weight:700}
.dform-send-prefill{padding:10px 0 2px;border-bottom:1px solid #eef2f7}
.dform-send-prefill-mode{max-width:190px;margin-top:6px!important}
.dform-send-actions{margin-top:14px;text-align:right}
/* DocDesk Forms — Results modal (D20): wider card, scrollable masked grid + reveal control. */
/* P5: wider Results modal + a sticky export-action header bar + ellipsis on the dynamic per-field columns. */
.dform-results-card{max-width:min(1200px,95vw);width:95vw}
.dform-results-header{position:sticky;top:0;z-index:5;background:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid #e5e9f2}
.dform-results-header .section-title{margin:0}
.dform-results-actions{display:flex;flex-wrap:wrap;gap:8px}
.dform-results-actions .btn.is-disabled,.dform-results-actions .btn:disabled{opacity:.5;cursor:not-allowed}
.dform-results-field-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Recipient: ellipsis on overflow (full value shown via the cell's title on hover). Submitted: never wrap the time. */
.dform-results-recipient-cell{overflow:hidden;white-space:nowrap}
.dform-results-recipient-cell span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dform-results-date-cell{white-space:nowrap}
.dform-results-scroll{overflow-x:auto;margin-top:4px}
.dform-detail-list{display:grid;grid-template-columns:minmax(120px,0.5fr) 1fr;gap:6px 12px;margin:8px 0 0;font-size:13px}
.dform-detail-list dt{font-weight:600;color:#475467;margin:0}
.dform-detail-list dd{margin:0;word-break:break-word}
.dform-results-table{width:100%;font-size:13px}
.dform-results-table th,.dform-results-table td{white-space:nowrap;padding:6px 10px}
.dform-results-lock{font-size:11px;opacity:.7}
.dform-results-cell{white-space:nowrap}
.dform-results-masked{font-variant-numeric:tabular-nums}
.dform-results-revealed{font-weight:600}
.btn-tiny{font-size:11px;padding:2px 6px;line-height:1.4}

/* People workspace (MySQL core redesign, Phase E2) — detail-modal form layout. */
.peoplecore-form-section{margin:18px 0 8px;font-size:13px;font-weight:700;letter-spacing:.02em;color:#334155;text-transform:uppercase}
.peoplecore-form-section:first-child{margin-top:0}
.peoplecore-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
@media (max-width:560px){.peoplecore-form-grid{grid-template-columns:minmax(0,1fr)}}
.peoplecore-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
@media (max-width:560px){.peoplecore-related{grid-template-columns:1fr}}
.peoplecore-related-group h4{margin:0 0 4px;font-size:12px;font-weight:700;color:#475569}
.peoplecore-related-list{margin:0;padding-left:18px;font-size:13px;color:#475569}
.peoplecore-related-compact-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #eef2f7}
.peoplecore-related-compact-main{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap}
.peoplecore-related-compact-main strong{color:#334155}
.peoplecore-related-compact-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:560px){.peoplecore-related-compact-row{align-items:flex-start;flex-direction:column}.peoplecore-related-compact-actions{justify-content:flex-start}}
.peoplecore-form-feedback{margin-top:12px}
.peoplecore-identity-header{padding:4px 2px 16px;margin-bottom:4px;border-bottom:1px solid #dbe4f0;display:grid;gap:7px}
.peoplecore-identity-primary{display:flex;align-items:baseline;gap:10px 14px;flex-wrap:wrap;color:var(--sta-blue)}
.peoplecore-identity-primary>strong{font-size:1.24rem}
.peoplecore-identity-roles{font-size:.88rem;font-weight:650;color:#475569}
.peoplecore-identity-contact{display:flex;gap:8px;flex-wrap:wrap;color:#64748b;font-size:.88rem}
.peoplecore-catalog-actions{display:flex;justify-content:flex-end;margin:-6px 0 8px}
@media (max-width:560px){.peoplecore-identity-primary,.peoplecore-identity-contact{display:grid;gap:3px}.peoplecore-identity-contact span[aria-hidden]{display:none}.peoplecore-catalog-actions{justify-content:stretch}.peoplecore-catalog-actions .btn{width:100%}}
/* PeopleCore workspace (MySQL core redesign, Phase E2) — detail-modal form layout. */
.peoplecore-form-section{margin:18px 0 8px;font-size:13px;font-weight:700;letter-spacing:.02em;color:#334155;text-transform:uppercase}
.peoplecore-form-section:first-child{margin-top:0}
.peoplecore-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
@media (max-width:560px){.peoplecore-form-grid{grid-template-columns:minmax(0,1fr)}}
.peoplecore-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
@media (max-width:560px){.peoplecore-related{grid-template-columns:1fr}}
.peoplecore-related-group h4{margin:0 0 4px;font-size:12px;font-weight:700;color:#475569}
.peoplecore-related-list{margin:0;padding-left:18px;font-size:13px;color:#475569}
.peoplecore-related-compact-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #eef2f7}
.peoplecore-related-compact-main{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap}
.peoplecore-related-compact-main strong{color:#334155}
.peoplecore-related-compact-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:560px){.peoplecore-related-compact-row{align-items:flex-start;flex-direction:column}.peoplecore-related-compact-actions{justify-content:flex-start}}
.peoplecore-form-feedback{margin-top:12px}
.peoplecore-identity-header{padding:4px 2px 16px;margin-bottom:4px;border-bottom:1px solid #dbe4f0;display:grid;gap:7px}
.peoplecore-identity-primary{display:flex;align-items:baseline;gap:10px 14px;flex-wrap:wrap;color:var(--sta-blue)}
.peoplecore-identity-primary>strong{font-size:1.24rem}
.peoplecore-identity-roles{font-size:.88rem;font-weight:650;color:#475569}
.peoplecore-identity-contact{display:flex;gap:8px;flex-wrap:wrap;color:#64748b;font-size:.88rem}
.peoplecore-catalog-actions{display:flex;justify-content:flex-end;margin:-6px 0 8px}
@media (max-width:560px){.peoplecore-identity-primary,.peoplecore-identity-contact{display:grid;gap:3px}.peoplecore-identity-contact span[aria-hidden]{display:none}.peoplecore-catalog-actions{justify-content:stretch}.peoplecore-catalog-actions .btn{width:100%}}

/* PeopleCore power grid (MySQL core redesign, Phase E3) — view toggle + editable cells. */
.peoplecore-view-toggle{display:flex;align-items:center;gap:14px;margin:6px 0 12px;flex-wrap:wrap}
.peoplecore-view-buttons{display:inline-flex;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden}
.peoplecore-view-buttons .btn{border:0;border-radius:0;margin:0}
.peoplecore-view-buttons .btn.is-active{background:#1e293b;color:#fff}
.peoplecore-grid-preset{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#475569}
.peoplecore-grid-preset select{padding:4px 8px}
.peoplecore-merge{display:grid;gap:18px}.peoplecore-merge-notice{padding:12px 14px;border:1px solid #e3c66e;border-radius:8px;background:#fff8dc;color:#514518;line-height:1.45}.peoplecore-merge-section{display:grid;gap:10px;padding:16px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}.peoplecore-merge-section h3,.peoplecore-merge-comparison-head h3{margin:0;color:var(--sta-blue)}.peoplecore-merge-section>p{margin:0}.peoplecore-merge-pair,.peoplecore-merge-result{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e1e6ef;border-radius:8px;background:#fbfcff}.peoplecore-merge-pair>div,.peoplecore-merge-result>div{display:grid;gap:3px;min-width:0}.peoplecore-merge-pair>div span,.peoplecore-merge-result>div span{color:#596579;font-size:12px;overflow-wrap:anywhere}.peoplecore-merge-match{color:#52617a;font-size:12px;text-align:center}.peoplecore-merge-result{grid-template-columns:minmax(0,1fr) auto}.peoplecore-merge-selected{display:grid;gap:7px}.peoplecore-merge-selected>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-left:3px solid #d6a900;background:#fffaf0}.peoplecore-merge-comparison{display:grid;gap:14px;padding:16px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}.peoplecore-merge-comparison-head p{margin:5px 0 0}.peoplecore-merge-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.peoplecore-merge-side{min-width:0;padding:14px;border:1px solid #dbe4f0;border-radius:9px;background:#fbfcff}.peoplecore-merge-side h4{margin:0;color:var(--sta-blue);font-size:17px}.peoplecore-merge-field{display:grid;gap:4px;padding:8px 0;border-bottom:1px solid #e8ebf2}.peoplecore-merge-field>span{font-size:12px;font-weight:700;color:#5c6678;text-transform:capitalize}.peoplecore-merge-field strong{overflow-wrap:anywhere}.peoplecore-merge-field ul{margin:0;padding-left:20px}.peoplecore-merge-field li{margin:2px 0;overflow-wrap:anywhere}.peoplecore-merge-field small{color:#68738a}.peoplecore-merge-impact{display:grid;gap:5px;margin-top:12px;padding:10px;border-radius:7px;background:#edf2fb;color:#34415b;font-size:12px}.peoplecore-merge-impact strong{color:var(--sta-blue)}
@media(max-width:760px){.peoplecore-merge-pair{grid-template-columns:1fr auto}.peoplecore-merge-pair .peoplecore-merge-match{grid-column:1}.peoplecore-merge-columns{grid-template-columns:1fr}.peoplecore-merge-section{padding:12px}}
.peoplecore-merge-comparison[hidden]{display:none}
.peoplecore-merge-job-history{display:grid;gap:8px;margin:0;padding:0;list-style:none}.peoplecore-merge-job-history li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e1e6ef;border-radius:8px;background:#fbfcff}.peoplecore-merge-job-history li>span{display:grid;gap:3px;min-width:0}.peoplecore-merge-job-history small{color:#596579;overflow-wrap:anywhere}.peoplecore-merge-job-history .peoplecore-merge-job-warning{color:#9a3412}
.peoplecore-merge-choice-group{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid #dbe4f0;border-radius:8px;background:#fbfcff}.peoplecore-merge-choice-group legend{padding:0 5px;color:var(--sta-blue);font-weight:700;text-transform:capitalize}.peoplecore-merge-choice-group label,.peoplecore-merge-reason{display:grid;gap:5px;color:#34415b;font-weight:600;text-transform:capitalize}.peoplecore-merge-choice-group select,.peoplecore-merge-reason textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid #b9c6d8;border-radius:6px;background:#fff;color:#1f2937;font:inherit;text-transform:none}.peoplecore-merge-reason{margin:12px 0}.peoplecore-merge-reason textarea{resize:vertical}
.dt-edit-cell{padding:2px 4px}
.dt-edit{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:6px;padding:5px 7px;font:inherit;background:#fff}
.dt-edit:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.18)}
.dt-edit-cell input[type=checkbox].dt-edit{width:auto}
.dt-edit-cell.dt-edit-saving .dt-edit{border-color:#f59e0b}
.dt-edit-cell.dt-edit-saved .dt-edit{border-color:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.15)}
.dt-edit-cell.dt-edit-error .dt-edit{border-color:#dc2626;box-shadow:0 0 0 2px rgba(220,38,38,.2)}
/* Inline double-click edit (PR-A2): only the visible value is the edit target; row/cell padding keeps row-open affordance. */
.dt-inline-cell{cursor:inherit}
.dt-inline-cell .dt-inline-display{cursor:text}
.dt-inline-cell.dt-inline-empty{cursor:text}
/* Money input in the reference editors: a $ adornment beside a clean number input (the $ is never in the value). */
.ref-money-input{display:flex;align-items:center;gap:6px}
.ref-money-input .ref-money-prefix{color:#64748b;font-weight:800}
.ref-money-input input{flex:1 1 auto}
/* Stage 3 coverage-editor controls. */
.ref-partnergroup{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ref-partnergroup select{flex:1 1 auto;min-width:160px}
.ref-weekdays{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.ref-weekday{display:inline-flex;gap:5px;align-items:center;font-weight:700;color:var(--sta-blue)}
.pg-manage .pg-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.pg-row{display:flex;flex-direction:column;gap:6px;padding:6px 8px;border-radius:8px;border-left:5px solid #cbd5e1;background:#f8fafc}
.pg-row .pg-row-main{display:flex;gap:8px;align-items:center}
.pg-row .pg-label{flex:1 1 auto;border:1px solid #d7dfeb;border-radius:6px;padding:4px 8px;font:inherit}
.pg-row .pg-count{font-size:.78rem;color:#64748b;white-space:nowrap}
.pg-row .pg-members{font-size:.8rem;color:#475569;padding-left:2px}
.pg-active{border-left-color:#15803d}
.pg-orphan{border-left-color:#d97706;background:#fffbeb}
.pg-extinct{border-left-color:#dc2626;background:#fef2f2}
.pg-locked{font-size:.74rem}
/* PR-2 (UI Round-2): the unified "Manage lists" tabbed modal. Tabs reuse .ph-subtabs (mobile-scrollable). */
.manage-lists-panel{min-height:120px;margin-top:4px}
.manage-lists-tabs{margin-bottom:10px}
.dt-inline-cell .dt-inline-input{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:6px;padding:5px 7px;font:inherit;background:#fff}
.dt-inline-cell .dt-inline-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.18)}
.dt-inline-cell input[type=checkbox].dt-inline-input{width:auto}
.dt-inline-cell.dt-edit-saving .dt-inline-input{border-color:#f59e0b}
.dt-inline-cell.dt-edit-saved{box-shadow:inset 0 0 0 2px rgba(22,163,74,.35)}
.dt-inline-cell.dt-edit-error .dt-inline-input{border-color:#dc2626;box-shadow:0 0 0 2px rgba(220,38,38,.2)}

/* PeopleCore Roles & Access editor (MySQL core redesign, Phase E4). */
.peoplecore-access{margin:4px 0 8px}
/* Permissions editor (permissions-panel redesign): grouped capability checkboxes with a per-group select-all. */
.peoplecore-cap-group{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
.peoplecore-cap-group-head{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:8px 12px}
.peoplecore-cap-selectall{margin:0;font-size:12px;font-weight:800;color:#334155;text-transform:uppercase;letter-spacing:.03em}
.peoplecore-cap-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;padding:10px 12px}
@media (max-width:560px){.peoplecore-cap-checks{grid-template-columns:1fr}}
.peoplecore-cap-check{margin:0;font-weight:500;font-size:13px;color:#334155}
.peoplecore-cap-check input:disabled{opacity:.6}
/* Capability-centric Permissions panel: pick a flag -> who holds it -> add/remove. */
.ph-perm-group{margin:0 0 18px}
.ph-perm-group-title{font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.03em;margin:0 0 6px}
.ph-perm-caps{display:flex;flex-direction:column;gap:6px}
.ph-perm-cap{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}
.ph-perm-cap-head{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;padding:9px 12px;background:#f8fafc;border:0;cursor:pointer;text-align:left;font:inherit}
.ph-perm-cap-head:hover{background:#eef2f7}
.ph-perm-cap-label{font-weight:600;color:#334155}
.ph-perm-cap-count{flex:0 0 auto;font-size:12px;color:#64748b;background:#e2e8f0;border-radius:999px;padding:2px 10px}
.ph-perm-cap-body{padding:10px 12px;border-top:1px solid #e2e8f0}
.ph-perm-holders{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}
.ph-perm-holder{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:#334155}
.ph-perm-add{display:flex;gap:8px;align-items:center}
.ph-perm-add select{padding:5px 8px;max-width:280px}
@media (prefers-color-scheme:dark){
  .ph-perm-cap{border-color:#334155}
  .ph-perm-cap-head{background:#1e293b}
  .ph-perm-cap-head:hover{background:#243244}
  .ph-perm-cap-label{color:#e2e8f0}
  .ph-perm-cap-count{background:#334155;color:#cbd5e1}
  .ph-perm-cap-body,.ph-perm-group-title{border-top-color:#334155}
  .ph-perm-holder{color:#cbd5e1}
}
@media (prefers-color-scheme:dark){
  .peoplecore-cap-group{border-color:#334155}
  .peoplecore-cap-group-head{background:#1e293b;border-bottom-color:#334155}
  .peoplecore-cap-selectall,.peoplecore-cap-check{color:#cbd5e1}
}

/* Reference Data editors (MySQL core redesign, Phase E5). */
.reference-picker{display:inline-flex;align-items:center;gap:8px;margin:6px 0 12px;font-size:13px;color:#475569}
.reference-picker select{padding:5px 8px;min-width:220px}
.peoplecore-form-grid .field-wide{grid-column:1 / -1}
.peoplecore-form-grid>.field{min-width:0}
.peoplecore-form-grid input:not([type="checkbox"]):not([type="radio"]),.peoplecore-form-grid select,.peoplecore-form-grid textarea{max-width:100%;min-width:0;box-sizing:border-box}
.checkpoint-adjustment-create-grid .modal-actions{grid-column:1 / -1}
.peoplecore-form-grid textarea{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:6px;padding:6px 8px;font:inherit}
.leaveline-supervisor-editor{display:grid;gap:6px}
.leaveline-supervisor-editor input[type="search"]{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:7px 9px;font:inherit}
.leaveline-supervisor-editor select{width:100%;min-height:132px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px;background:#fff;font:inherit}
.leaveline-supervisor-editor option[data-invalid="1"]{color:#9a3412;background:#fff7ed}
.leaveline-supervisor-editor .field-help{font-size:12px;color:#64748b}

/* The person-record schedule mirror + the slot-editor versions list (read-only tables). */
.peoplecore-schedule-grid{width:100%;border-collapse:collapse;margin:4px 0 12px}
.peoplecore-schedule-grid th,.peoplecore-schedule-grid td{border:1px solid #e5e9f2;padding:6px 10px;text-align:left;vertical-align:top}
.peoplecore-schedule-grid thead th{background:#f7f9fc;font-weight:600;font-size:13px}
.peoplecore-schedule-grid th[scope="row"]{font-weight:600;white-space:nowrap}

/* PR-2c: the presence-slot editor (TeacherOut Setup → Work Schedules modal). */
.work-schedule-versions{margin-bottom:14px}
.ws-context-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 4px;padding-bottom:10px;border-bottom:1px solid #dbe4f0}
.ws-context-person{font-size:1.15rem;font-weight:800;color:var(--sta-blue)}
.ws-context-assignment{font-size:1rem;font-weight:700;color:#334155;margin-top:2px}
.ws-version-actions-bar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.ws-version-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:8px}
.ws-version-readiness{margin-right:8px;font-size:.82rem}
.ws-version-editor{margin-top:12px;padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}
.ws-version-editor[hidden],.ws-version-editor+* [hidden]{display:none}
.ws-overrides-panel{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;padding:12px 0;border-top:1px solid #dbe4f0}
.ws-overrides-panel>h5,.ws-override-group>h6,.ws-slot-overrides>h6,.ws-slot-attendance-grace>h6{margin:0;color:var(--sta-blue);font-weight:800}
.ws-overrides-panel>p{margin:0}
.ws-override-group{display:flex;flex-direction:column;gap:8px;padding-top:10px;border-top:1px solid #eef2f8}
.ws-slot-overrides{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;padding-top:4px}
.ws-slot-attendance-grace{display:flex;flex-direction:column;gap:6px}
.ws-version-slot-cards{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.ws-version-slot-card{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,auto) minmax(80px,auto);gap:10px;align-items:center;padding:10px 12px;border:1px solid #e5e9f2;border-radius:10px;background:#fff}
.ws-version-slot-card strong{color:var(--sta-blue)}
.ws-version-slot-card span{min-width:0}
.ws-version{padding:6px 0;border-bottom:1px solid #eef2f8}
.ws-version-slots{margin:4px 0 0;padding-left:18px;font-size:13px}
.ws-slots{display:flex;flex-direction:column;gap:10px;margin:8px 0}
.ws-slot-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,auto) auto auto;align-items:center;gap:8px 12px;padding:10px;border:1px solid #e5e9f2;border-radius:8px;background:#f8fafc}
.ws-slot-days{display:flex;flex-wrap:wrap;gap:8px 10px}
.ws-day{display:inline-flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap;line-height:1}
.ws-day input[type="checkbox"],.ws-slot-flag input[type="checkbox"]{margin:0;flex:0 0 auto}
.ws-slot-times{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;min-width:0}
.ws-slot-times label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px;font-size:12px;color:#475569}
.ws-slot-times input[type="time"]{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d1d5db;border-radius:6px;padding:4px 5px;font:inherit}
.ws-slot-flags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ws-slot-flag{display:inline-flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap;line-height:1}
.ws-slot-grace-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;align-items:start;width:100%;padding-top:2px}
.ws-slot-row>[data-ws-remove-slot]{grid-column:4;grid-row:1;justify-self:end}
.ws-slot-grace{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;align-content:start;gap:6px;min-width:0;font-size:12px;font-weight:700;color:#334155;line-height:1.35}
.ws-slot-grace input{width:112px;max-width:100%;min-width:0;min-height:36px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;padding:6px 8px;font:inherit;background:#fff}
.ws-slot-grace small{display:block;font-size:11px;font-weight:400;line-height:1.4;color:#64748b}
.ws-slot-component{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--sta-blue);flex:1 1 260px}
.ws-slot-component select{min-width:180px;max-width:100%;flex:1 1 auto;border:1px solid #d1d5db;border-radius:6px;padding:5px 7px;background:#fff;font:inherit}
.checkpoint-component-schedule-link{display:flex;align-items:flex-end;justify-content:flex-start}
.ws-slots-add{margin:4px 0 12px}
/* Coverage Schedule parent/version/slot editor (shared modal presentation). */
.coverage-parent-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #dbe4f0}
.coverage-parent-header h4{margin:0;color:var(--sta-blue)}
.coverage-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:8px 0 14px}
.coverage-detail-grid>div{display:flex;flex-direction:column;gap:3px}
.coverage-detail-grid strong{font-size:12px;color:#64748b}
.coverage-detail-grid span{font-weight:600}
.coverage-version-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:8px}
.coverage-version-summary{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}
.coverage-slot-summary{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,auto) minmax(130px,auto);gap:10px;align-items:center;padding:8px 10px;border:1px solid #e5e9f2;border-radius:8px;background:#f8fafc}
.coverage-slot-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,auto) auto auto;align-items:center;gap:8px 12px;padding:10px;border:1px solid #e5e9f2;border-radius:8px;background:#f8fafc}
.coverage-slot-days{display:flex;flex-wrap:wrap;gap:8px 10px}
.coverage-day{display:inline-flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap;line-height:1}
.coverage-day input[type="checkbox"]{margin:0}
.coverage-slot-times{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;min-width:0}
.coverage-slot-times label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px;font-size:12px;color:#475569}
.coverage-slot-times input[type="time"]{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d1d5db;border-radius:6px;padding:4px 5px;font:inherit}
.coverage-slot-required{display:inline-flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap}
.coverage-slot-required input{margin:0}
.coverage-parent-fields .field-readonly{min-height:34px;display:flex;align-items:center;padding:7px 9px;border:1px solid #e5e9f2;border-radius:6px;background:#f8fafc}
.coverage-version-editor,.coverage-parent-form{margin-top:12px;padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}
.coverage-version-editor[hidden],.coverage-parent-form[hidden],.coverage-slot-row[hidden]{display:none}
.coverage-slots{display:flex;flex-direction:column;gap:10px;margin:8px 0}
.coverage-slots-add{margin:4px 0 12px}
.coverage-lifecycle-actions{display:flex;flex-direction:column;gap:8px;margin:16px 0 4px;padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc}
.coverage-lifecycle-actions>strong{color:var(--sta-blue);font-size:.82rem;text-transform:uppercase;letter-spacing:.35px}
.coverage-lifecycle-action-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.coverage-lifecycle-inline-blocker{display:block;flex:1 1 100%;color:#9a3412;font-size:.78rem;font-weight:600;line-height:1.35}
.coverage-lifecycle-blockers{margin:12px 0;max-height:240px;overflow:auto}
.coverage-lifecycle-blockers ul{margin:8px 0 0;padding-left:20px}
.coverage-lifecycle-blockers li{margin:6px 0}
.coverage-lifecycle-gap{margin:12px 0;padding:10px;border-left:3px solid #d97706;background:#fff7ed}
.coverage-lifecycle-gap p{margin:6px 0 0}
.coverage-lifecycle-gap-confirm{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:8px!important;font-weight:600!important;color:#7c2d12!important}
.coverage-lifecycle-gap-confirm input{width:auto!important;margin-top:3px}
.coverage-lifecycle-safety{padding:10px;border-left:3px solid var(--sta-gold);background:#fffaf0;font-weight:600}
.coverage-lifecycle-confirm{max-width:720px}
.coverage-lifecycle-confirm label{display:grid;gap:5px;margin-top:12px;font-weight:700;color:var(--sta-blue)}
.coverage-lifecycle-confirm input,.coverage-lifecycle-confirm textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #cbd5e1;border-radius:7px;font:inherit}
.coverage-lifecycle-confirm .modal-footer-actions{margin-top:16px}
@media (max-width:760px){
  .ws-context-head{align-items:stretch;flex-direction:column}
  .ws-context-head .btn{align-self:flex-start}
  .ws-version-slot-card{grid-template-columns:1fr;gap:4px}
  .ws-version-readiness{display:block;margin:4px 0}
  .ws-slot-row{grid-template-columns:1fr;gap:10px}
  .ws-slot-grace-fields{grid-template-columns:minmax(0,1fr);gap:12px}
  .ws-slot-times{width:100%;grid-template-columns:minmax(0,1fr);gap:8px}
  .ws-slot-times>span{display:none}
  .ws-slot-times label{grid-template-columns:48px minmax(0,1fr);gap:8px}
  .ws-slot-times input[type="time"]{width:100%;min-height:40px;padding:6px 8px}
  .ws-slot-flags{justify-content:flex-start}
  .ws-slot-row>[data-ws-remove-slot]{grid-column:auto;grid-row:auto;justify-self:start}
  .coverage-parent-header{align-items:stretch;flex-direction:column}
  .coverage-detail-grid{grid-template-columns:1fr}
  .coverage-slot-summary{grid-template-columns:1fr;gap:4px}
  .coverage-slot-row{grid-template-columns:1fr;gap:10px}
  .coverage-slot-times{width:100%;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .coverage-slot-row>[data-coverage-remove-slot]{justify-self:start}
  .coverage-version-actions{display:flex;margin:6px 0 0}
  .coverage-lifecycle-action-row{align-items:stretch;flex-direction:column;gap:12px}
  .coverage-lifecycle-action-row .btn{width:100%;min-height:44px}
  .coverage-lifecycle-confirm .modal-footer-actions{align-items:stretch;flex-direction:column}
  .coverage-lifecycle-confirm .modal-footer-actions .btn{width:100%;min-height:44px}
}

/* Reference bulk import (MySQL core redesign, Phase E5c). */
.reference-toolbar-actions{display:inline-flex;gap:8px;flex-wrap:wrap}
.reference-import-summary p{margin:4px 0 12px}
.reference-import-errors{margin:8px 0;padding-left:18px;font-size:13px;color:#b91c1c;max-height:240px;overflow:auto}

/* Shared in-panel sub-tab strip (BrowserUi::subTabs) — PeopleCore List/Grid + Reference categories. */
/* Sub-tab strip — folder tabs in the System-Tools nav look: STA-blue active + gold accent, smaller font so
   more fit, plain wrap to multiple rows on narrow screens (no active-row-swap). (§2.8) */
.ph-subtabs{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 16px;padding:0 0 0 2px;border-bottom:2px solid #dbe4f0}
.ph-subtab{border:1px solid transparent;border-bottom:0;background:transparent;border-radius:9px 9px 0 0;padding:8px 14px;font:inherit;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:var(--sta-blue);cursor:pointer;margin-bottom:-2px;transition:.2s ease}
.ph-subtab:hover{background:rgba(26,35,126,.08);color:var(--sta-blue)}
.ph-subtab.is-active{background:var(--sta-blue);border-color:var(--sta-blue);color:#fff;border-bottom:3px solid var(--sta-gold)}
/* Stage 2: on narrow/portrait screens the sub-tab strip scrolls sideways instead of stacking into a squashed pile. */
@media (max-width:640px){
  .ph-subtabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .ph-subtab{flex:0 0 auto;white-space:nowrap}
}
/* PeopleCore polish (Phase E review): STA-blue names, grid-only preset picker, staff toggle, footer spacing. */
.peoplecore-name{color:var(--sta-blue)}
.peoplecore-grid-preset[hidden]{display:none}
.peoplecore-staff-toggle{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px}
.modal-footer-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px;flex-wrap:wrap}
.modal-footer-actions .danger{margin-right:auto}

/* ===== BrowserTable substrate additions (PR-1 — all opt-in; a table that doesn't set them is unchanged). ===== */
/* Angled headers (headerAngle): the whole header row grows taller; each angled label rotates up-to-the-right via
   the per-column --dt-head-angle custom property. Blessed matrix default is 45°. */
.dt-head.dt-head-angled .dt-col{height:190px;vertical-align:bottom;padding:6px 4px;overflow:visible}
.dt-col-angled{white-space:nowrap;text-align:left}
.dt-col-angled .dt-head-angle{display:inline-block;transform-origin:left bottom;transform:rotate(calc(-1 * var(--dt-head-angle,45deg)));white-space:nowrap;line-height:1;margin-left:var(--dt-head-angle-shift,28px)}
.dt-col-angled .dt-sort-btn{align-items:flex-end;padding:0}
/* Header truncation (headerTruncate): ellipsize the label (full text is in the th title tooltip). */
.dt-col-truncate .dt-col-label{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.dt-col-angled.dt-col-truncate .dt-head-angle-txt{display:inline-block;max-width:240px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
/* ‼️ The non-angled truncation rule below clips .dt-col-label to the (tiny) column width; on an ANGLED header that
   clipped the rotated label to a ~32px sliver. Angled columns must let .dt-col-label overflow — the inner
   .dt-head-angle-txt owns truncation (240px cap above). This is THE fix for "headers cut off". */
.dt-col-angled .dt-col-label{overflow:visible;max-width:none}
/* Sticky first column (stickyFirstColumn): freeze the leftmost cell on horizontal scroll (pairs with sticky head). */
/* The sticky first cell must be opaque so horizontally-scrolled cells don't show through it. Rather than hardcode
   a background per row-state (which drifts — hover/zebra get missed), it INHERITS the row's background-color, so it
   always matches default / zebra / hover automatically. (The row, .dt-row[:hover/:nth-child], owns the color.) */
.dt-sticky-firstcol .dt-row .dt-cell:first-child{position:sticky;left:0;z-index:2;background-color:inherit}
.dt-sticky-firstcol .dt-head .dt-col:first-child{position:sticky;left:0;z-index:4;background:#eef2f7}
/* The first-column header label ("Staff") must sit on the same left inset as the body name cells (16px), else it
   reads visibly too far left against the names beneath it. */
.dt-sticky-firstcol .dt-head .dt-col:first-child .dt-col-label{padding-left:12px}
/* Checkbox cell (type:'checkbox'): the actual checkbox is a direct single-click toggle; surrounding cell padding
   keeps row-open on single-click and the legacy double-click toggle. */
.dt-checkbox-cell{text-align:center;cursor:pointer;padding:6px 4px}
.dt-checkbox-wrap{display:inline-flex;align-items:center;justify-content:center}
.dt-checkbox{width:16px;height:16px;margin:0;cursor:pointer}
.dt-checkbox-cell.dt-edit-saving{background:rgba(245,158,11,.12)}
.dt-checkbox-cell.dt-edit-saved{background:rgba(22,163,74,.14)}
.dt-checkbox-cell.dt-edit-error{background:rgba(220,38,38,.14)}
/* Multiselect filter (type:'multiselect', OR semantics). */
.dt-filter-multiselect .dt-multiselect{position:relative}
.dt-multiselect>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:0 12px;cursor:pointer;min-width:150px;font:inherit;height:42px;box-sizing:border-box}
.dt-multiselect>summary::-webkit-details-marker{display:none}
.dt-multiselect>summary b{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--sta-blue)}
.dt-multiselect-menu{position:absolute;z-index:30;left:0;top:calc(100% + 4px);min-width:200px;max-height:260px;overflow:auto;border:1px solid #d8e0ee;border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.16);padding:7px}
.dt-multiselect-opt{display:flex;align-items:center;gap:7px;padding:5px 6px;border-radius:6px;cursor:pointer;font-weight:600;color:#334155;white-space:nowrap}
.dt-multiselect-opt:hover{background:#f1f5f9}
/* PR-B (#6): the app's global form-control height (48px) was bleeding into these raw checkboxes, making each row
   ~58px tall. Pin a normal checkbox size so the menu rows are compact. */
.dt-multiselect-opt input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;flex:0 0 auto}
/* Undo action toast (checkbox removal). */
.dt-undo-toast .dt-undo-btn{margin-left:10px;background:transparent;border:0;color:var(--sta-gold,#f5b301);text-decoration:underline;cursor:pointer;font:inherit;font-weight:800}

/* ===== PR-3: uniform collapsible profile sections (BrowserUi::collapsibleSection) + "Edit in [Module]" buttons. ===== */
.ph-section{border:1px solid #e4e8ef;border-radius:10px;margin:0 0 10px;background:#fff;overflow:hidden}
.ph-section>.ph-section-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer;padding:12px 14px;font-weight:800;color:var(--sta-blue);background:#f7f9fc;user-select:none}
.ph-section-caret{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid #94a3b8;transition:transform .5s cubic-bezier(.2,.85,.2,1);flex:0 0 auto}
.ph-section.is-open>.ph-section-summary .ph-section-caret{transform:rotate(90deg)}
.ph-section-title{flex:1 1 auto}
.ph-section-suffix{margin-left:auto;font-weight:600}
/* Grid-rows 0fr->1fr slide (matches the StaffStart new-start form; cross-browser; body stays in the DOM). The body
   drops its VERTICAL padding when collapsed so the section closes FULLY (no leftover white sliver). */
.ph-section-reveal{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s cubic-bezier(.2,.85,.2,1)}
.ph-section.is-open>.ph-section-reveal{grid-template-rows:1fr}
.ph-section-reveal>.ph-section-body{overflow:hidden;min-height:0;padding:0 14px;transition:padding .5s cubic-bezier(.2,.85,.2,1)}
.ph-section.is-open>.ph-section-reveal>.ph-section-body{padding:14px}
/* One consistent "Edit in [Module]" affordance for every foreign-domain section (kills the link-vs-button mishmash).
   PR-B (#11): the base .btn padding (12px 18px / 16px) made these huge — pin a compact size (higher specificity so
   it wins over .btn.secondary). */
.ph-edit-in{white-space:nowrap}
.ph-section-suffix a.ph-edit-in{padding:7px 13px;font-size:.86rem;line-height:1.3;border-radius:8px}
/* A header edit button that is not yet actionable (e.g. "Assign routes" before Bus Parent is ticked): greyed, but
   still clickable so the click can surface a "tick it first" toast (no pointer-events:none). */
.ph-edit-in.is-disabled{opacity:.45;cursor:not-allowed}
/* Profile foreign-domain lists (Coverage / TimeDesk roles) read at ~the weekly-schedule-grid font size. */
.ph-section .peoplecore-related-list{font-size:.85rem}
.ph-section .peoplecore-related-list li{margin:2px 0}
.ph-coverage-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ph-coverage-row{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;padding:4px 0;border-bottom:1px solid #f1f5f9}
.ph-coverage-link{color:var(--sta-blue);font-weight:700;text-decoration:none}
.ph-coverage-link:hover{text-decoration:underline}

/* ==== GPT API "API Access" admin tab (design §5) ==== */
.api-access-workspace .api-access-toolbar{margin:10px 0 16px}
.gpt-api-keys-block,.gpt-api-log-block{margin-top:18px}
.gpt-api-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.gpt-api-block-head h3,.gpt-api-log-block h3{margin:0 0 8px}
.gpt-api-show-revoked{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:#475569;cursor:pointer;user-select:none}
/* Client-side "Show revoked": render ALL rows, default-hide revoked in the browser (NO server refetch). The helper
   toggles row visibility via the `hidden` ATTRIBUTE, so this !important rule composes with active filters. */
.dt-hide-revoked tr[data-filter-status="revoked"]{display:none !important}
/* Status chips */
.gpt-api-status{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.76rem;font-weight:700;line-height:1.5}
.gpt-api-status-active{background:#dcfce7;color:#166534}
.gpt-api-status-paused{background:#fef3c7;color:#92400e}
.gpt-api-status-revoked{background:#f1f5f9;color:#64748b}
.gpt-api-result-ok{color:#166534;font-weight:600}
.gpt-api-result-fail{color:#b91c1c}
/* School Years admin tab (design school-year-and-new-year-setup) — status chips + Current badge */
.school-year-status{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.76rem;font-weight:700;line-height:1.5}
.school-year-status-active{background:#dcfce7;color:#166534}
.school-year-status-scheduled{background:#dbeafe;color:#1e40af}
.school-year-status-draft{background:#fef3c7;color:#92400e}
.school-year-status-archived{background:#f1f5f9;color:#64748b}
.school-years-table .chip-current{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:.7rem;font-weight:700;background:#eef2ff;color:#4338ca;vertical-align:middle}
.school-years-table .chip-summer{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:.7rem;font-weight:700;background:#fef3c7;color:#92400e;vertical-align:middle}
/* School Years — New-Year Setup wizard (design §8) */
.school-years-workspace.sy-busy{opacity:.6;pointer-events:none}
.sy-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sy-setup-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sy-setup-note{font-size:.85rem}
.sy-wizard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.sy-wizard-head h2{margin:0}
.sy-steps{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;padding:0}
.sy-step{display:flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:600;background:#f1f5f9;color:#64748b}
.sy-step .sy-step-num{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#cbd5e1;color:#fff;font-size:.72rem;font-weight:700}
.sy-step.is-current{background:#eef2ff;color:#3730a3}
.sy-step.is-current .sy-step-num{background:#4338ca}
.sy-step.is-done{background:#dcfce7;color:#166534}
.sy-step.is-done .sy-step-num{background:#16a34a}
.sy-step-body{max-width:760px}
.sy-step-intro{color:#475569;margin:0 0 16px}
.sy-field-row{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
.sy-field{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:#334155}
.sy-field-grow{flex:1 1 220px}
.sy-field input{margin-top:2px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:.92rem}
.sy-fiscal-note{margin:12px 0 0;font-size:.85rem}
.sy-wizard-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;padding-top:16px;border-top:1px solid #e2e8f0}
.sy-nav-spacer{flex:1}
.sy-calendar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sy-hebcal-note{font-size:.82rem;flex:1 1 240px}
.sy-calendar-import{margin:18px 0;padding:14px 16px;border:1px solid #c7d2fe;border-radius:10px;background:#f8faff}
.sy-calendar-import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.sy-calendar-import-head p{margin:4px 0 0;font-size:.82rem}
.sy-calendar-import-head .sy-calendar-actions{margin:0}
.sy-import-preview{margin-top:14px;padding-top:12px;border-top:1px solid #dbe3ff}
.sy-import-preview>p{margin:0 0 10px;color:#334155}
.sy-import-preview-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
.sy-calendar-list-title{display:flex;align-items:center;gap:8px;margin:20px 0 10px;font-size:1rem}
.sy-closures{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:6px}
.sy-closure{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}
.sy-closure-date{font-weight:700;color:#0f172a;min-width:120px}
.sy-closure-note{flex:1;color:#475569}
.sy-closure .chip{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.7rem;font-weight:700}
.sy-closure .chip-hebcal{background:#e0f2fe;color:#075985}
.sy-closure .chip-manual{background:#f3e8ff;color:#6b21a8}
.sy-closure-remove{color:#b91c1c;background:none;border:none;cursor:pointer;font-size:.8rem;font-weight:600;padding:2px 4px}
.sy-add-closure{margin:0}
.sy-add-one{margin-top:12px}
.sy-add-one>summary{cursor:pointer;color:#1e40af;font-size:.86rem;font-weight:700}
.sy-add-one[open]>summary{margin-bottom:12px}
.sy-empty{margin:0 0 18px}
.sy-placeholder{padding:20px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}
.sy-placeholder h3{margin:0 0 8px}
.sy-placeholder-tag{margin:14px 0 0;font-size:.82rem;color:#6366f1;font-weight:600}
/* Step 3 — coverage clone diff */
.sy-diff-group{margin:18px 0 0;padding:14px 16px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.sy-diff-group h3{margin:0 0 10px;font-size:.95rem;display:flex;align-items:center;gap:8px}
.sy-diff-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;font-size:.74rem;font-weight:700;background:#f1f5f9;color:#475569}
.sy-diff-kept h3 .sy-diff-count{background:#dcfce7;color:#166534}
.sy-diff-retired h3 .sy-diff-count{background:#fee2e2;color:#991b1b}
.sy-diff-new h3 .sy-diff-count{background:#e0f2fe;color:#075985}
.sy-diff-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.sy-diff-row{display:flex;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid #f1f5f9}
.sy-diff-row:last-child{border-bottom:none}
.sy-diff-name{font-weight:600;color:#0f172a}
.sy-diff-detail{flex:1;font-size:.82rem}
.sy-diff-subhead{margin:0 0 10px;font-size:.82rem}
.sy-row-retired .sy-diff-name{color:#991b1b}
.sy-row-retired .sy-diff-detail{color:#b91c1c}
/* Steps 6-7 — payroll reassurance + review checklist */
.sy-reassure{margin:0 0 8px;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.sy-reassure li{color:#334155;line-height:1.5}
.sy-checklist{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:6px}
.sy-check{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}
.sy-check-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:.8rem;font-weight:700;flex:none}
.sy-check-done .sy-check-icon{background:#dcfce7;color:#166534}
.sy-check-missing .sy-check-icon{background:#fee2e2;color:#991b1b}
.sy-check-optional .sy-check-icon{background:#f1f5f9;color:#94a3b8}
.sy-check-label{font-weight:600;color:#0f172a}
.sy-check-label em{color:#b91c1c;font-style:normal;font-size:.8rem;font-weight:700}
.sy-check-detail{flex:1;text-align:right;font-size:.82rem}
.sy-check-block{margin:0 0 16px;padding:10px 12px;border-radius:8px;background:#fef2f2;color:#991b1b;font-size:.86rem;font-weight:600}
/* Modals: create + edit */
.gpt-api-field{margin:0 0 12px}
.gpt-api-field>label{display:block;font-weight:600;font-size:.88rem;color:#334155}
.gpt-api-field>label>input[type=text],.gpt-api-field>label>select{display:block;width:100%;margin-top:4px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}
.gpt-api-inline{display:inline-flex;align-items:center;gap:8px;font-weight:500}
.gpt-api-caps-label{display:block;font-weight:600;font-size:.88rem;color:#334155;margin-bottom:6px}
.gpt-api-caps{display:flex;flex-direction:column;gap:7px}
.gpt-api-cap{display:flex;align-items:baseline;gap:8px;font-size:.87rem}
.gpt-api-cap code{background:#f1f5f9;padding:1px 6px;border-radius:6px;font-size:.82rem}
.gpt-api-detail-head{margin-bottom:10px}
.gpt-api-detail-title{display:flex;align-items:center;gap:8px}
.gpt-api-detail-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.gpt-api-feedback{color:#b91c1c;font-size:.85rem;min-height:0}
.gpt-api-feedback:empty{display:none}
.gpt-api-usage-table{width:100%;font-size:.83rem;margin-top:6px}
.gpt-api-rawkey-box{width:100%;font-family:monospace;font-size:.86rem;padding:10px;border:1px solid #cbd5e1;border-radius:8px;resize:none}

/* ── Preferences hub: the header launcher + the drag-to-reorder menu list (docs/user-preferences-hub-design.md). */
.app-nav-sort{ list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:6px; }
.app-nav-sort-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; background:#fff; border:1px solid #d7dbe6; border-radius:8px; cursor:default; user-select:none; }
.app-nav-sort-handle{ cursor:grab; color:#8a90a2; font-size:16px; line-height:1; letter-spacing:-2px; touch-action:none; }
.app-nav-sort-handle:active{ cursor:grabbing; }
.app-nav-sort-label{ font-weight:600; color:#1a237e; }
.app-nav-sort-item--ghost{ opacity:.45; background:#eef1fb; }
.app-nav-sort-item--chosen{ box-shadow:0 4px 14px rgba(26,35,126,.18); border-color:#9aa3c7; }
.app-nav-order-value{ color:#374151; }
.app-prefs-intro{margin:0 0 12px;color:#6b7280;font-size:.9rem}
.auth-actions{margin-top:20px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.auth-actions .btn{justify-content:center;display:inline-flex;align-items:center;gap:8px}
.auth-actions .btn.is-loading{pointer-events:none}
.auth-remember{align-items:flex-start;width:min(100%,420px);min-height:44px;margin:16px auto 0;padding:10px 12px;border:1px solid #d7dfeb;border-radius:10px;background:#f8fafc;text-align:left}
.auth-remember[hidden]{display:none!important}
.auth-remember input{margin-top:2px}
.auth-remember span{min-width:0}
.auth-remember strong,.auth-remember small{display:block}
.auth-remember strong{color:var(--sta-blue)}
.auth-remember small{margin-top:2px;color:var(--muted);font-size:.78rem;font-weight:400;line-height:1.35}
.auth-device-sign-in{display:flex;flex-direction:column;gap:12px}
.auth-device-sign-in[hidden]{display:none!important}
.auth-device-recovery{align-self:center;border:0;padding:2px 4px;background:transparent;color:#64748b;font:inherit;font-size:.82rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.auth-device-recovery:hover{color:var(--sta-blue)}
.auth-device-recovery[hidden]{display:none!important}
.auth-divider{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#dbe1ea;flex:1}
.auth-fallback{font-size:.82rem;margin-top:14px}
.security-section-title{margin:20px 0 10px;color:#1a237e;font-size:1rem}
.sign-in-security{border-top:1px solid #e2e8f0;margin-top:18px;padding-top:2px}
.security-group{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 8px}
.security-group h4{margin:0 0 3px;color:#1f2937;font-size:.95rem}
.security-group p{margin:0;color:#64748b;font-size:.82rem}
.security-group .btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.security-device-list{list-style:none;margin:0;padding:0;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
.security-device-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#fff}
.security-device-row:last-child{border-bottom:0}
.security-device-row strong,.security-device-row small{display:block}
.security-device-row strong{color:#1f2937;font-size:.88rem}
.security-device-row small{color:#64748b;font-size:.76rem;margin-top:2px}
.security-device-row em{font-style:normal;color:#1a237e;background:#eef1ff;border-radius:999px;padding:2px 6px;font-size:.68rem}
.security-empty{padding:12px;color:#64748b;font-size:.82rem;background:#f8fafc}
.btn.compact{padding:6px 9px;font-size:.76rem}
.device-sign-in-offer{position:fixed;right:18px;bottom:18px;z-index:5100;width:min(390px,calc(100vw - 28px));display:flex;align-items:flex-start;gap:13px;padding:17px;background:#fff;border:1px solid #d9e0ee;border-radius:16px;box-shadow:0 16px 38px rgba(15,23,42,.24);text-align:left}
.device-sign-in-offer-icon{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eef1ff;color:var(--sta-blue);font-size:26px}
.device-sign-in-offer-copy{display:flex;flex-direction:column;gap:5px;color:#475569;font-size:.86rem;line-height:1.4}
.device-sign-in-offer-copy strong{color:var(--sta-blue);font-size:1rem}
.device-sign-in-offer-actions{display:flex;gap:8px;margin-top:8px}
.device-sign-in-offer-actions .btn{min-height:38px;padding:8px 12px;font-size:.75rem}
@media(max-width:600px){.security-group{align-items:flex-start;flex-direction:column}.security-group .btn{width:100%;justify-content:center}}
@media(max-width:760px){.device-sign-in-offer{right:14px;bottom:calc(88px + env(safe-area-inset-bottom))}}
@media(max-width:600px){.device-sign-in-offer{padding:15px}.device-sign-in-offer-actions{flex-wrap:wrap}.device-sign-in-offer-actions .btn{flex:1 1 110px}}
.checkpoint-paycheck-control{display:grid;grid-template-columns:minmax(0,1fr) 22px;gap:6px;align-items:center}
.checkpoint-pay-window-notice{display:inline-grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#fff4cc;color:#765500;font-size:12px;font-weight:800;visibility:hidden;cursor:help}
.checkpoint-pay-window-notice.is-visible{visibility:visible}
.checkpoint-comp-components{gap:14px}
.checkpoint-components-section-full{grid-column:1 / -1;min-width:0}
.checkpoint-comp-components-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.checkpoint-comp-components-head>label{margin:0}
[data-checkpoint-component-list="1"]{display:grid;gap:18px}
.checkpoint-comp-component{position:relative;display:block;min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:0;border:1px solid #dbe4f0;border-radius:12px;background:#fff;padding:18px;max-height:none;opacity:1;transform:translateY(0);overflow:visible;transition:max-height .22s ease,opacity .18s ease,transform .22s ease,padding .22s ease,border-width .22s ease}
.checkpoint-comp-component.is-entering,.checkpoint-comp-component.is-removing{max-height:0;opacity:0;transform:translateY(-12px);overflow:hidden;padding-top:0;padding-bottom:0;border-width:0}
.checkpoint-comp-component input:not([type="checkbox"]),.checkpoint-comp-component select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.checkpoint-comp-component .field-row+.field-row,.checkpoint-comp-component .field-row+.field,.checkpoint-comp-component .field+.field-row{margin-top:18px}
.checkpoint-comp-component legend{padding:0 8px;color:var(--sta-blue);font-weight:900}
.checkpoint-comp-component>[data-checkpoint-component-remove]{position:absolute;top:10px;right:12px}
.staffstart-checkpoint-task-detail,.staffstart-checkpoint-task-form{display:grid;gap:18px}
.staffstart-checkpoint-task-form>.modal-actions{margin:0;padding-top:16px;border-top:1px solid #e5e9f2}
#staffstart-task-detail>.modal>.modal-actions{margin-top:0;padding-top:14px;border-top:1px solid #e5e9f2}
@media(max-width:600px){.checkpoint-comp-components-head{align-items:stretch}.checkpoint-comp-components-head>.btn{width:100%}.checkpoint-comp-component{padding:16px 12px}.checkpoint-comp-component>[data-checkpoint-component-remove]{position:static;margin:0 0 14px auto}}
@media(max-width:760px){.checkpoint-agreement-pay-row>.field,.checkpoint-component-date-basis>.field,.checkpoint-component-date-basis>.field:last-child{flex:1 1 100%}}
.timedesk-report-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.demo-access-workspace .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.demo-access-workspace label{display:grid;gap:5px;color:#1a237e;font-weight:700;font-size:.85rem}.demo-access-workspace input,.demo-access-workspace select,.demo-access-workspace textarea{width:100%;box-sizing:border-box;padding:9px;border:1px solid #cbd5e1;border-radius:7px;font:inherit}.demo-access-workspace textarea{margin-top:6px}.demo-access-workspace .table-wrap{overflow:auto}.demo-access-workspace table{width:100%;border-collapse:collapse}.demo-access-workspace th,.demo-access-workspace td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}.demo-access-workspace th{color:#1a237e;font-size:.75rem;text-transform:uppercase}.demo-access-workspace h3{margin-top:24px;color:#1a237e}@media(max-width:760px){.demo-access-workspace .form-grid{grid-template-columns:1fr}.demo-access-workspace table{min-width:620px}}

/* Ramp missing-memo compliance cockpit. */
.ramp-compliance-controls{margin:16px 0}
.ramp-compliance-control-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:20px;align-items:start}
.ramp-compliance-switch-row{display:flex;align-items:flex-start;gap:13px}
.ramp-compliance-switch{position:relative;display:inline-flex;flex:0 0 auto;width:48px;height:27px;cursor:pointer}
.ramp-compliance-switch input{position:absolute;opacity:0;pointer-events:none}
.ramp-compliance-switch span{position:absolute;inset:0;border-radius:999px;background:#94a3b8;box-shadow:inset 0 0 0 1px rgba(15,23,42,.12);transition:background .18s ease}
.ramp-compliance-switch span::after{content:"";position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.28);transition:transform .18s ease}
.ramp-compliance-switch input:checked+span{background:var(--sta-blue)}
.ramp-compliance-switch input:checked+span::after{transform:translateX(21px)}
.ramp-compliance-switch input:focus-visible+span{outline:3px solid rgba(251,192,45,.5);outline-offset:2px}
.ramp-compliance-switch:has(input:disabled){cursor:wait;opacity:.65}
.ramp-compliance-admin{min-height:42px;padding:9px 0;font-weight:800;color:var(--sta-blue)}
.ramp-compliance-meta{margin:8px 0 0 61px;font-size:.78rem}
.ramp-compliance-controls .field select{width:100%}
.ramp-workspace .settings-card[data-ramp-connection-card]{margin-bottom:20px}
.ramp-employee-check .table-wrap,.ramp-workspace .table-wrap{overflow:auto}
.ramp-employee-check table,#ramp-memo-case-modal .modal-body table{width:100%;border-collapse:collapse}
.ramp-employee-check th,.ramp-employee-check td,#ramp-memo-case-modal .modal-body th,#ramp-memo-case-modal .modal-body td{padding:9px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
.ramp-employee-check th,#ramp-memo-case-modal .modal-body th{color:var(--sta-blue);font-size:.75rem;text-transform:uppercase}
@media(max-width:760px){.ramp-compliance-control-grid{grid-template-columns:1fr}.ramp-compliance-meta{margin-left:0}.ramp-employee-check table{min-width:680px}}
/* PeopleHub Assistant - a permission-controlled, non-blocking sidecar. */
.ai-assistant-launcher{position:fixed;right:22px;bottom:22px;z-index:220;display:flex;align-items:center;gap:7px;border:0;border-radius:999px;background:#1a237e;color:#fff;padding:12px 17px;font:700 14px Roboto,sans-serif;box-shadow:0 6px 18px rgba(17,24,39,.28);cursor:pointer;touch-action:manipulation;user-select:none;white-space:nowrap}
.ai-assistant-launcher.is-dragging{cursor:grabbing;transition:none;box-shadow:0 10px 26px rgba(17,24,39,.35)}
.ai-assistant-launcher:active{transform:translateY(1px);box-shadow:0 3px 10px rgba(17,24,39,.25)}
.ai-assistant-launcher .material-icons{font-size:19px;color:#f9c846}
.ai-assistant-open,.ai-assistant-open body{overscroll-behavior:none}
html.ai-assistant-open{overflow:hidden}
body.ai-assistant-open{overflow:hidden;position:relative}
html.ai-assistant-open .ai-assistant-launcher{visibility:hidden;pointer-events:none}
.ai-assistant-drawer{--ai-assistant-motion-x:0px;--ai-assistant-motion-y:30px;position:fixed;z-index:225;right:18px;bottom:18px;width:min(420px,calc(100vw - 24px));height:min(720px,calc(100vh - 36px));background:#fff;border:1px solid #d7ddea;border-radius:18px;box-shadow:0 18px 55px rgba(17,24,39,.34);overflow:hidden;display:flex;flex-direction:column;opacity:0;transform:translate(var(--ai-assistant-motion-x),var(--ai-assistant-motion-y)) scale(.98);transition:opacity .45s ease,transform .45s cubic-bezier(.22,.61,.36,1)}
.ai-assistant-drawer[hidden]{display:none}
.ai-assistant-drawer.is-open{opacity:1;transform:translate(0,0) scale(1)}.ai-assistant-drawer.is-closing{opacity:0;transform:translate(var(--ai-assistant-motion-x),var(--ai-assistant-motion-y)) scale(.98)}
.ai-assistant-head{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;background:#1a237e;color:#fff}
.ai-assistant-head>div{display:flex;flex-direction:column;gap:2px}.ai-assistant-head strong{font-size:17px}.ai-assistant-head span:not(.material-icons){font-size:12px;color:#dce3ff}
.ai-assistant-head .icon-button{color:#fff;background:transparent;border:0;cursor:pointer}
.ai-assistant-head-actions{display:flex!important;align-items:center;gap:4px!important;flex-direction:row!important}.ai-assistant-head-button{border:1px solid rgba(255,255,255,.45);border-radius:6px;background:transparent;color:#fff;padding:5px 7px;font-size:11px;cursor:pointer}.ai-assistant-head-button:hover{background:rgba(255,255,255,.12)}
.ai-assistant-notice{padding:9px 14px;background:#fff9df;border-bottom:1px solid #f2df9a;color:#554813;font-size:12px;line-height:1.35}
.ai-assistant-history{max-height:260px;overflow:auto;padding:10px 12px;background:#eef2ff;border-bottom:1px solid #dfe4ee}.ai-assistant-history[hidden]{display:none}.ai-assistant-history-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.ai-history-row{display:flex;gap:6px;align-items:stretch;margin:5px 0}.ai-history-load{flex:1;text-align:left;border:1px solid #ccd5ea;background:#fff;border-radius:7px;padding:7px;color:#1a237e;font-weight:700;cursor:pointer}.ai-history-load span{display:block;color:#5e687d;font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-history-delete{border:0;background:transparent;color:#8a1c1c;font-size:11px;cursor:pointer}.ai-assistant-history-empty{font-size:12px;color:#5e687d}.ai-assistant-retention{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;color:#3e4b67}.ai-assistant-retention select{border:1px solid #b7c2d8;border-radius:5px;background:#fff;padding:3px}
.ai-assistant-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:14px;background:#f6f8fc;display:flex;flex-direction:column;gap:10px}
.ai-message{max-width:88%;border-radius:14px;padding:9px 11px;box-shadow:0 1px 2px rgba(17,24,39,.08);font-size:14px;line-height:1.45;overflow-wrap:anywhere}.ai-message p{margin:0 0 7px}.ai-message p:last-child{margin-bottom:0}.ai-message ul{margin:5px 0 5px 18px;padding:0}.ai-message li{margin:3px 0}.ai-message code{font-family:ui-monospace,monospace;font-size:.9em;background:#eef1f7;border-radius:4px;padding:1px 3px}.ai-message a{color:#1a5ab7;text-decoration:underline}.ai-markdown-heading{margin-top:6px!important}.ai-message.user{align-self:flex-end;background:#1a237e;color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
.ai-message.assistant{align-self:flex-start;background:#fff;color:#202636;border:1px solid #dfe4ee;border-bottom-left-radius:4px}
.ai-message-time{display:block;margin-top:6px;color:#718096;font-size:10px;line-height:1.1;font-weight:500;letter-spacing:.01em}
.ai-message.user .ai-message-time{color:#dce3ff;text-align:right}
.ai-message.is-pending{opacity:.72}.ai-message.is-error{border-color:#c62828;background:#fff2f2;color:#8a1c1c}
.ai-assistant-thinking .loading-inline{justify-content:flex-start;gap:5px}.ai-assistant-thinking .loading-dots-inline{width:24px;flex:0 0 24px}
.ai-proposal{align-self:stretch;background:#fff;border:2px solid #d6a900;border-radius:12px;padding:11px;display:grid;gap:8px;color:#26220e}
.ai-proposal strong{color:#1a237e}.ai-proposal p{margin:0;font-size:13px;line-height:1.4}.ai-proposal .btn{justify-self:start}.ai-proposal-meta{font-size:10px;color:#68738a}.ai-proposal-error{color:#8a1c1c!important}.ai-proposal-risk-3{border-color:#d27a00}.ai-proposal-risk-4{border-color:#c62828}.ai-proposal-risk-4 strong{color:#9d1c1c}
.ai-proposal-preview{max-height:260px;overflow:auto;border:1px solid #dfe4ee;border-radius:8px;background:#fff}
.ai-proposal-preview table{width:100%;min-width:520px;border-collapse:collapse;font-size:12px}
.ai-proposal-preview th,.ai-proposal-preview td{padding:7px 8px;border-bottom:1px solid #e7eaf0;text-align:left;vertical-align:top}
.ai-proposal-preview th{position:sticky;top:0;background:#eef1fb;color:#1a237e;z-index:1}
.ai-assistant-composer{padding:11px;background:#fff;border-top:1px solid #dfe4ee;display:grid;gap:8px}
.ai-assistant-composer textarea{width:100%;resize:none;min-height:66px;border:1px solid #abb5c8;border-radius:10px;padding:9px 10px;font:14px Roboto,sans-serif;box-sizing:border-box}
.ai-assistant-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-assistant-attach{cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.ai-assistant-attach .material-icons{font-size:18px}.ai-assistant-file{font-size:12px;background:#eef2ff;color:#1a237e;padding:6px 8px;border-radius:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.ai-assistant-composer.is-dragging{outline:2px dashed #d6a900;outline-offset:-4px;background:#fff9df}
@media(prefers-reduced-motion:reduce){.ai-assistant-drawer{transition:none}.ai-assistant-drawer.is-open,.ai-assistant-drawer.is-closing{transform:none}}
@media(hover:none) and (pointer:coarse){.ai-assistant-launcher{cursor:grab;touch-action:none}}
@media(max-width:760px) and (orientation:portrait){.ai-assistant-launcher{right:12px;bottom:calc(88px + env(safe-area-inset-bottom))}.ai-assistant-drawer{z-index:10030;bottom:calc(var(--ai-assistant-dock-clearance,0px) + 12px);height:min(720px,calc(100dvh - var(--ai-assistant-dock-clearance,0px) - 24px))}}
.checkpoint-attachments{grid-column:1/-1;border-top:1px solid #d9dee8;padding-top:14px;display:grid;gap:10px}.checkpoint-attachments h3{margin:0;color:#1a237e;font-size:16px}.checkpoint-attachment-drop{border:2px dashed #9ba8bd;border-radius:9px;padding:14px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#f8faff}.checkpoint-attachment-drop>span{color:#596579;font-size:12px}.checkpoint-attachment-drop.is-dragging{border-color:#d6a900;background:#fff9df}.checkpoint-attachment-picker{margin-left:auto}.checkpoint-attachment-list{list-style:none;padding:0;margin:0;display:grid;gap:7px}.checkpoint-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dfe4ec;border-radius:8px;padding:9px 10px;background:#fff}.checkpoint-attachment-meta{min-width:0;display:grid;gap:3px}.checkpoint-attachment-meta strong{overflow-wrap:anywhere}.checkpoint-attachment-meta small{color:#596579;font-size:12px}.checkpoint-attachment-actions{display:flex;flex-wrap:wrap;gap:6px}.checkpoint-attachment-status{min-height:1.25em;color:#4e5b70;font-size:13px}.checkpoint-attachment-viewer{position:fixed;inset:0;z-index:12000;background:rgba(12,18,32,.82);display:flex;flex-direction:column;padding:14px;box-sizing:border-box}.checkpoint-attachment-viewer-head{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:8px 8px 0 0;padding:8px 12px;color:#1a237e}.checkpoint-attachment-viewer-content{flex:1;min-height:0;overflow:auto;background:#eef1f7;border-radius:0 0 8px 8px;display:flex;justify-content:center;align-items:flex-start;padding:12px}.checkpoint-attachment-image{max-width:100%;max-height:100%;object-fit:contain}.checkpoint-attachment-viewer .docdesk-pdf-viewer{width:min(100%,1000px);height:100%;overflow:auto;background:#fff}.checkpoint-attachment-viewer .docdesk-pdf-page{margin:0 auto 12px;max-width:100%}@media(max-width:640px){.checkpoint-attachment-row{align-items:flex-start;flex-direction:column}.checkpoint-attachment-actions{width:100%}.checkpoint-attachment-actions .btn{flex:1}.checkpoint-attachment-drop{align-items:flex-start;flex-direction:column}.checkpoint-attachment-picker{margin-left:0}.checkpoint-attachment-viewer{padding:6px}}
.checkpoint-attachment-viewer-tools{display:flex;align-items:center;gap:6px}.checkpoint-attachment-viewer-tools .btn{min-height:34px}.checkpoint-attachment-image{width:auto;max-width:100%;height:auto;max-height:none;transform-origin:top center}.checkpoint-attachment-viewer .docdesk-pdf-viewer{transform-origin:top center}
@media(max-width:640px){.checkpoint-attachment-viewer-head{gap:8px;padding:8px}.checkpoint-attachment-viewer-tools{gap:4px}.checkpoint-attachment-viewer-tools .btn{padding:6px 8px;min-width:34px}}
@media(max-width:600px){.ai-assistant-drawer{top:var(--ai-assistant-viewport-top,0px);right:0;bottom:auto;left:0;width:100vw;height:var(--ai-assistant-viewport-height,100dvh);max-width:none;border:0;border-radius:0}.ai-assistant-head,.ai-assistant-notice,.ai-assistant-composer{flex:0 0 auto}.ai-assistant-head{padding-top:max(14px,env(safe-area-inset-top))}.ai-assistant-composer{padding-bottom:max(11px,env(safe-area-inset-bottom))}}
@media(max-width:600px) and (orientation:portrait){.ai-assistant-drawer{height:calc(var(--ai-assistant-viewport-height,100dvh) - var(--ai-assistant-dock-clearance,0px) - var(--ai-assistant-viewport-top,0px))}.ai-assistant-composer{padding-bottom:11px}}
@media(max-width:600px){.ai-assistant-drawer.is-keyboard-open{top:var(--ai-assistant-viewport-top,0px);right:0;bottom:0;left:0;width:100vw;height:var(--ai-assistant-viewport-height,100dvh);max-height:none}}
.checkpoint-qtr-checklist-total{display:flex;justify-content:flex-end;gap:12px;padding:10px 12px;border-top:1px solid #dfe4ee;font-weight:700}.checkpoint-qtr-checklist-total span{min-width:110px;text-align:right}
.checkpoint-attachment-preview-limit{width:100%;padding:10px 12px;border:1px solid #e3c66e;border-radius:7px;background:#fff8dc;color:#4b3d12;font-size:13px}
.peoplecore-home-addresses{grid-column:1/-1;min-width:0;margin:0;padding:12px;border:1px solid #dfe4ec;border-radius:8px;background:#fbfcff}.peoplecore-home-addresses legend{padding:0 6px;font-weight:800;color:#1a237e}.peoplecore-home-addresses>p{margin:0 0 10px}.peoplecore-home-address-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:10px 0;border-bottom:1px solid #e4e8ef}.peoplecore-home-address-row:last-child{border-bottom:0}.peoplecore-home-address-primary{grid-column:1/-1;display:flex;align-items:center;gap:7px;font-weight:700;color:#26344d}.peoplecore-home-address-primary input{accent-color:#1a237e}.peoplecore-home-addresses [data-peoplecore-address-add]{margin-top:10px}@media(max-width:560px){.peoplecore-home-address-row{grid-template-columns:1fr}}
.timechime-panel .timechime-calendar-connection,.timechime-contact-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.timechime-calendar-connection{margin:12px 0 18px;padding:12px;border:1px solid #dfe4ec;border-radius:8px;background:#fbfcff}.timechime-calendar-connection [role=status]{flex:1 1 220px}.timechime-calendar-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:7px;padding:10px;border:1px solid #e1e6ee;border-radius:7px;background:#fff}.timechime-calendar-option{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:8px;border:1px solid #e2e7ef;border-radius:6px;overflow-wrap:anywhere}.timechime-calendar-option input{margin-top:3px;accent-color:var(--sta-blue)}.timechime-meeting-card,.timechime-contact-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:9px 0;padding:13px;border:1px solid #dfe4ec;border-radius:8px;background:#fff}.timechime-meeting-card{display:block}.timechime-meeting-card h3{margin:0 0 7px;color:var(--sta-blue)}.timechime-meeting-card p{margin:4px 0;color:#4b5563}.timechime-contact-row>div:first-child{min-width:0;overflow-wrap:anywhere}.timechime-contact-row .pill{white-space:nowrap}.timechime-contact-actions{flex:0 0 auto}.timechime-contact-form{margin-top:18px;padding:16px;border:1px solid #dfe4ec;border-radius:9px;background:#fbfcff}.timechime-contact-form h3{margin:0 0 12px;color:var(--sta-blue)}.timechime-contact-form [hidden]{display:none!important}.timechime-readiness-list p{padding:12px;border-bottom:1px solid #e4e8ef;line-height:1.5}.timechime-panel [role=status]{min-height:1.4em;color:#46536b}.timechime-panel button:disabled{opacity:.6;cursor:wait}@media(max-width:650px){.timechime-contact-row{align-items:flex-start;flex-direction:column}.timechime-contact-actions{width:100%}.timechime-contact-actions .btn{flex:1}.timechime-calendar-connection{align-items:flex-start;flex-direction:column}.timechime-calendar-connection [role=status]{flex:0 1 auto}.timechime-calendar-connection .btn{width:100%}}
/* TimeDesk reusable Forms. */
.timedesk-forms{min-width:0}.timedesk-form-assignment{margin-top:20px;padding:16px;border:1px solid #dce3ec;border-radius:9px;background:#fbfcff}.timedesk-form-assignment h3{margin:0 0 8px;color:var(--sta-blue)}.timedesk-form-assignment [role=status]{display:inline-block;min-height:1.4em;margin-left:10px;color:#46536b}.timedesk-form-fields{display:grid;gap:12px;margin:14px 0}.timedesk-form-field{min-width:0;margin:0;padding:14px;border:1px solid #dce3ec;border-radius:8px;background:#fff}.timedesk-form-field legend{padding:0 6px;color:var(--sta-blue);font-weight:800}.timedesk-form-field [data-form-options],.timedesk-form-field [data-form-rating]{margin:10px 0}.timedesk-form-field [data-form-choice-row]{align-items:end}.timedesk-form-notifications{display:grid;gap:8px;margin:14px 0;padding:12px;border:1px solid #dce3ec;border-radius:8px}.timedesk-form-notifications legend{padding:0 6px;font-weight:800;color:var(--sta-blue)}[data-timedesk-form-builder] [data-timedesk-form-message]{display:inline-block;min-height:1.4em;margin-left:10px;color:#46536b}.modal:has([data-timedesk-form-builder]){width:min(920px,calc(100vw - 32px));max-width:920px}
/* TimeDesk Forms UI follow-up: keep assignment controls in the normal settings grid. */
.peoplecore-form-grid .timedesk-form-assignment{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.timedesk-form-actions,.timedesk-form-field-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.timedesk-form-field-controls{margin-top:14px}
.timedesk-form-field-controls [data-form-drag-handle]{min-width:42px;touch-action:none;cursor:grab}
.timedesk-form-field.is-reordering{opacity:.65;border-color:var(--sta-gold);box-shadow:0 4px 18px #1a237e24}
.timedesk-form-response-answer{display:grid;gap:4px}
.timedesk-form-response-answer+.timedesk-form-response-answer{margin-top:12px;padding-top:12px;border-top:1px solid #dce3ec}
.timedesk-form-response-answer>.muted{font-size:.84em}
.modal:has([data-timedesk-form-builder]){max-height:calc(100dvh - 32px);display:flex;flex-direction:column}
.modal:has([data-timedesk-form-builder]) .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
@media(max-width:650px){
  .timedesk-form-field [data-form-choice-row]{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:stretch}
  .timedesk-form-field [data-form-choice-row] .btn{justify-self:start;min-height:40px;margin-top:2px}
  .timedesk-form-actions{gap:12px;margin-top:22px}
  .timedesk-form-actions .btn{margin:0}
}
@media(max-height:520px) and (orientation:landscape){
  .modal-backdrop:has([data-timedesk-form-builder]){align-items:flex-start;overflow-y:auto;padding:8px}
  .modal:has([data-timedesk-form-builder]){max-height:calc(100dvh - 16px);margin:0 auto}
  .modal:has([data-timedesk-form-builder]) .modal-body{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
}
.timedesk-form-workspace,.timedesk-form-responses{min-width:0}.timedesk-form-response-detail{max-height:min(72vh,760px);overflow:auto}.timedesk-form-response-context{display:grid;grid-template-columns:minmax(130px,.45fr) minmax(0,1fr);gap:7px 12px;margin:0 0 18px}.timedesk-form-response-context dt{font-weight:700;color:#46536b}.timedesk-form-response-context dd{min-width:0;margin:0;overflow-wrap:anywhere}.timedesk-form-response-detail h3{margin:16px 0 8px;color:var(--sta-blue)}.timedesk-form-response-answer{padding:12px 0;border-bottom:1px solid #e4e8ef;overflow-wrap:anywhere}.timedesk-form-response-answer>div{margin-top:5px;white-space:pre-wrap}.timedesk-form-response-detail .browser-table{margin-top:8px}
@media(max-width:650px){.timedesk-form-assignment{padding:12px}.timedesk-form-field{padding:10px}.timedesk-form-field .field-row{grid-template-columns:1fr}.timedesk-form-assignment [role=status],[data-timedesk-form-builder] [data-timedesk-form-message]{display:block;margin:8px 0 0}.modal:has([data-timedesk-form-builder]){width:calc(100vw - 20px)}}
.timechime-meetings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.timechime-meetings-grid .timechime-meeting-card{min-width:0;margin:0}.timechime-meeting-calendar{font-size:13px;font-weight:700;color:#46536b}.timechime-calendar-picker{position:relative;width:max-content;max-width:100%}.timechime-calendar-picker .dt-multiselect-menu{min-width:min(320px,calc(100vw - 48px))}.timechime-calendar-picker .dt-multiselect-opt{white-space:normal;overflow-wrap:anywhere}.timechime-calendar-picker-actions{display:flex;gap:6px;padding:3px 5px 8px;border-bottom:1px solid #e5e9f2;margin-bottom:5px}.timechime-calendar-picker-actions .btn{min-height:32px;padding:5px 9px}.timechime-composer-fieldset{border:1px solid #d8e0ee;border-radius:12px;padding:14px}.timechime-channel-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}.timechime-channel-options>.ss-check{margin:0}.timechime-duration-control{display:flex;align-items:center;gap:8px;max-width:420px}.timechime-duration-control input{flex:1 1 120px;min-width:90px}.timechime-duration-control select{flex:0 1 150px}.timechime-sms-editor textarea{display:block;width:100%;margin-top:8px}.timechime-email-preview-frame{width:100%;min-height:520px;border:0;border-radius:10px;background:#f4f6fb}#timechime-email-preview .modal{width:min(900px,calc(100vw - 32px))}@media(max-width:760px){.timechime-meetings-grid{grid-template-columns:1fr}.timechime-calendar-picker{width:100%}.timechime-calendar-picker .dt-multiselect-menu{left:0;right:0;min-width:0;max-width:100%;max-height:min(60vh,320px)}.timechime-duration-control{max-width:none}.timechime-email-preview-frame{min-height:60vh}}
.timechime-drafts{margin:14px 0 20px;padding:12px;border:1px solid #dfe4ec;border-radius:8px;background:#fbfcff}.timechime-drafts-heading,.timechime-draft-row,.timechime-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.timechime-drafts-heading h3{margin:0;color:var(--sta-blue)}.timechime-draft-row{padding:10px 0;border-top:1px solid #e3e8f0}.timechime-draft-row p{margin:4px 0 0;color:#667085;font-size:13px}.timechime-draft-actions{flex:0 0 auto}.timechime-draft-actions .btn{min-height:34px;padding:6px 10px}@media(max-width:560px){.timechime-draft-row{align-items:flex-start;flex-direction:column}.timechime-draft-actions{width:100%;justify-content:flex-start}}

.timechime-recipient-identity{display:block;color:var(--muted);font-size:.82em;font-weight:400;overflow-wrap:anywhere}
.timechime-calendar-select-all{border-bottom:1px solid #e5e9f2;border-radius:0;margin-bottom:5px;padding-bottom:8px}
.timechime-meeting-card{position:relative;padding:0;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}.timechime-meeting-card:hover{border-color:#c6d2e5;box-shadow:0 5px 16px #1a237e12}.timechime-meeting-card-main{display:block;width:100%;min-width:0;padding:13px 58px 13px 13px;border:0;border-radius:inherit;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.timechime-meeting-card-main:focus-visible,.timechime-meeting-indicator:focus-visible{outline:3px solid var(--sta-gold);outline-offset:-3px}.timechime-meeting-card-main h3{overflow-wrap:anywhere}.timechime-meeting-indicator{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:38px;height:38px;padding:7px;border:1px solid #d8e0ee;border-radius:50%;background:#fff;color:var(--sta-blue);box-shadow:0 2px 8px #1a237e18;cursor:pointer}.timechime-meeting-indicator:hover{border-color:var(--sta-gold);background:#fffaf0}.timechime-meeting-indicator.is-sent{color:#28784b}.timechime-meeting-indicator.is-sending{color:#a45b00}.timechime-meeting-indicator svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.timechime-meetings-loading{grid-column:1/-1;padding:18px 16px;border:1px solid #dfe4ec;border-radius:8px;background:#fff;text-align:center}.timechime-loading-inline{justify-content:center;gap:7px;font-size:16px;font-weight:700;color:var(--sta-blue)}.timechime-detail-delivery-table{margin-top:8px}.timechime-detail-delivery-table .dt-filters{display:none}
.timechime-composer-fieldset+.timechime-composer-fieldset{margin-top:14px}
.timechime-composer-form>.field-row{margin-top:16px}
.timechime-composer-form>.field+.field{margin-top:16px}
.timechime-composer-form>[data-timechime-email-preview-open]{display:block;margin:12px 0}
.timechime-timing-row>.field{flex:1 1 220px}
#timechime-reminder-composer .modal-actions{margin-top:0;padding-top:14px;border-top:1px solid #edf1f7}
#timechime-reminder-composer .modal-actions [data-close-modal]{margin-left:4px}
@media(max-width:560px){#timechime-reminder-composer .modal-actions{justify-content:flex-start}#timechime-reminder-composer .modal-actions .btn{flex:1 1 calc(50% - 10px)}}
.timechime-meeting-indicator[hidden]{display:none!important}
.timechime-detail-delivery-table .timechime-detail-email-cell{overflow-wrap:anywhere}

.system-health-section .dt-cell{overflow-wrap:anywhere;min-width:0}

.staff-accounts-mismatch-notice{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0;overflow-wrap:anywhere}
.staff-accounts-mismatch-notice .field-help{margin-top:4px;line-height:1.4}
.staff-accounts-mismatch-notice .btn{margin-top:8px}

.timechime-channel-section>legend{font-weight:600}.timechime-channel-section [data-timechime-channel-body]{margin-top:10px;display:grid;gap:10px}.timechime-channel-section [data-timechime-channel-body][hidden]{display:none!important}.timechime-send-summary{font-weight:600;margin:12px 0 4px}.timechime-channel-schedules{display:grid;gap:8px;margin:10px 0}.timechime-channel-schedule{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.timechime-channel-schedule p{margin:0;flex:1 1 220px}

@container coverage-workspace (max-width: 720px){
  .coverage-workspace .coverage-bulk-card{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
  .coverage-workspace .coverage-bulk-heading{min-width:0}
  .coverage-workspace .coverage-bulk-card select,.coverage-workspace .coverage-bulk-card input,.coverage-workspace .coverage-bulk-card .btn{width:100%;min-width:0}
  .coverage-workspace .coverage-block-title-row{align-items:flex-start;flex-direction:column;gap:5px}
  .coverage-workspace .coverage-block-division{text-align:left}
  .coverage-workspace .coverage-block-controls,.coverage-workspace .coverage-block-controls.coverage-payment-hidden{grid-template-columns:minmax(0,1fr)}
  .coverage-workspace .coverage-block-controls>.field,.coverage-workspace .coverage-block-controls>select,.coverage-workspace .coverage-block-controls>input:not([type="checkbox"]){width:100%;min-width:0}
  .coverage-workspace .coverage-needed-check{min-height:40px}
  .coverage-workspace .coverage-block-controls .notes-button{justify-self:start}
}
@media(max-width:900px){
  .coverage-workspace .coverage-bulk-card{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
  .coverage-workspace .coverage-bulk-heading{min-width:0}
  .coverage-workspace .coverage-bulk-card select,.coverage-workspace .coverage-bulk-card input,.coverage-workspace .coverage-bulk-card .btn{width:100%;min-width:0}
  .coverage-workspace .coverage-block-title-row{align-items:flex-start;flex-direction:column;gap:5px}
  .coverage-workspace .coverage-block-division{text-align:left}
  .coverage-workspace .coverage-block-controls,.coverage-workspace .coverage-block-controls.coverage-payment-hidden{grid-template-columns:minmax(0,1fr)}
  .coverage-workspace .coverage-block-controls>.field,.coverage-workspace .coverage-block-controls>select,.coverage-workspace .coverage-block-controls>input:not([type="checkbox"]){width:100%;min-width:0}
  .coverage-workspace .coverage-needed-check{min-height:40px}
  .coverage-workspace .coverage-block-controls .notes-button{justify-self:start}
}

.bus-stale-banner{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:14px 18px;border-radius:14px;border:1px solid #f0dcae;border-left:6px solid #e9a21a;background:linear-gradient(135deg,#fff8e8,#fdf0d3);color:#6b4600;box-shadow:0 2px 10px rgba(233,162,26,.18);font-size:16px;line-height:1.4}
.bus-stale-banner[hidden]{display:none}
.bus-stale-banner-icon{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff;color:#c47f00;box-shadow:inset 0 0 0 1px #f0dcae}
.bus-stale-banner-text{min-width:0;overflow-wrap:anywhere}
.bus-stale-banner-text strong{display:block;font-size:18px;color:#5a3a00}

/* Common Notifications: direct, responsive Email/Text controls with one save action. */
.common-notifications-form{display:grid;gap:12px}.common-notifications-form .secrets-subsection-title{margin:16px 0 4px}.common-notifications-list{border:1px solid #d7dfeb;border-radius:12px;overflow:hidden;background:#fff}.common-notifications-row{display:grid;grid-template-columns:minmax(0,1fr) 82px 82px 130px;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #e5eaf1;color:inherit;font:inherit}.common-notifications-row:first-child{border-top:0}.common-notifications-column-headings{background:#f5f7fa;font-weight:700;color:#334155}.common-notifications-name{display:grid;gap:3px;min-width:0}.common-notifications-name strong{font-weight:700}.common-notifications-name>span{font-size:.9rem;color:#5b6573}.common-notification-toggle{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:42px;font:inherit;font-weight:600;cursor:pointer}.common-notification-toggle input{width:19px;height:19px;margin:0;accent-color:#15558d;cursor:pointer}.common-notification-delay input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;color:inherit;background:#fff}.common-notification-no-delay{text-align:center;color:#64748b}.common-notifications-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding-top:8px}.common-notifications-actions [role="status"]{margin-right:auto;color:#b3261e;font:inherit}.common-notifications-actions .btn{min-height:44px}.common-notifications-actions .btn:disabled{opacity:.65;cursor:wait}
@media(max-width:700px){.common-notifications-column-headings{display:none}.common-notifications-row{grid-template-columns:minmax(0,1fr) minmax(88px,.45fr) minmax(88px,.45fr);gap:8px 12px;padding:14px 12px}.common-notifications-name{grid-column:1/-1;padding-bottom:4px}.common-notification-toggle{min-height:44px;padding:6px 8px;border:1px solid #d7dfeb;border-radius:9px;background:#fff}.common-notification-delay,.common-notification-no-delay{grid-column:1/-1}.common-notification-delay input{max-width:180px}.common-notifications-actions{align-items:stretch;flex-direction:column}.common-notifications-actions .btn{width:100%}}
