/* Reviewable edits and durable feedback. */
.change-summary>p{margin:0 0 18px;color:var(--ink-2);font-size:13px;line-height:1.6}
.change-summary dl{margin:0}.change-row{padding:15px 0;border-top:1px solid var(--line)}
.change-row dt{font-size:11px;color:var(--ink-3);margin-bottom:8px}.change-row dd{margin:0;display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:start;gap:10px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.change-row dd>strong:only-child{grid-column:1/-1}.change-before{color:var(--ink-3)}.change-arrow{color:var(--accent);text-align:center}.change-row strong{font-weight:500;color:var(--ink)}
.feedback-notice{position:fixed;right:24px;bottom:24px;z-index:95;display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:12px;max-width:420px;width:calc(100vw - 48px);padding:18px 20px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;box-shadow:0 12px 40px #18234528}
.feedback-copy strong{font-size:12px;font-weight:600}.feedback-copy p{margin:5px 0 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.feedback-notice>.btn{justify-self:start;grid-column:1/-1}.feedback-dismiss{width:28px;height:28px;border-radius:6px;color:var(--ink-3);font-size:22px;line-height:1}.feedback-dismiss:hover{background:var(--card-2)}.feedback-error{border-left-color:var(--red)}.feedback-error .feedback-copy strong{color:var(--red)}.feedback-inline{position:static;width:auto;max-width:none;margin-bottom:20px;box-shadow:none}
/* Tables preserve ordering, page position and full-dataset totals. */
.data-table{min-width:0;max-width:100%}.data-table .tbl-scroll{max-width:100%}.sort-heading{display:inline-flex;align-items:center;gap:8px;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;text-align:inherit;min-height:22px}.sort-heading:hover{color:var(--green-2)}.sort-heading:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}.sort-mark{font-size:12px;color:var(--ink-3);opacity:.65}th[aria-sort=ascending] .sort-mark,th[aria-sort=descending] .sort-mark{color:var(--accent);opacity:1}
.table-pagination{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:15px;font-size:11px;color:var(--ink-3)}.page-count{margin-right:auto}.table-pagination .themed-select{width:104px}.table-pagination .select-trigger{min-height:34px;font-size:11px}.table-pagination .btn{min-height:34px}.table-pagination button:disabled{opacity:.4;cursor:default}.t tfoot .total td{font-weight:600;background:var(--card-2);border-top:1px solid var(--line)}
.pin-first .t th:first-child,.pin-first .t td:first-child{position:sticky;left:0;z-index:2;min-width:160px;max-width:210px;background:var(--card);box-shadow:1px 0 0 var(--line);white-space:normal}.pin-first .t th:first-child{z-index:5;background:var(--card-2)}.pin-first .t .total td:first-child{background:var(--card-2)}.pin-first .t .member-link{white-space:normal;text-align:left}.pin-first .t tr:hover td:first-child{background:var(--card-2)}
.payroll-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.payroll-summary .tile{grid-column:auto;min-width:0}
/* Server-backed activity filters apply to the whole history, including older pages. */
.activity-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}.activity-filter{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:11px;color:var(--ink-3)}.activity-filter .ctrl{width:100%;min-width:0;min-height:39px;background:var(--card);color:var(--ink);font-size:12px}.activity-filter .themed-select{width:100%;min-width:0}.activity-filter .select-trigger{min-height:39px;font-size:12px}.activity-filters .clear-activity{align-self:end;justify-self:start}.activity-loading{font-size:13px;color:var(--ink-3);padding:20px 0}.activity-history .err .btn{margin-left:12px}
@media(max-width:640px){
  .feedback-notice{right:12px;bottom:max(72px,env(safe-area-inset-bottom));width:calc(100vw - 24px);max-width:none;padding:15px 17px}.feedback-inline{position:static;width:auto}.feedback-dismiss{width:32px;height:32px}
  .activity-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.activity-filters .filter-q{grid-column:1/-1}.activity-filters .filter-status{grid-column:1/-1}.activity-filter .ctrl{font-size:16px}.activity-filter .select-trigger{min-height:42px}.activity-filters .clear-activity{grid-column:1/-1}
  .table-pagination{gap:8px}.page-count{flex-basis:100%;margin:0}.table-pagination .themed-select{margin-right:auto}
  .approvals-page{gap:18px}.approvals-page>.card{grid-column:1/-1;padding:20px}.request-table .tbl-scroll{border:0;max-height:none;overflow:visible}.request-table .t,.request-table .t tbody{display:block}.request-table .t thead{display:none}.request-table .t tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;padding:18px 0;border-top:1px solid var(--line)}.request-table .t td{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:0!important;border:0;white-space:normal!important;text-align:left;font-size:13px;overflow-wrap:anywhere}.request-table .t td::before{content:attr(data-label);font-size:10px;color:var(--ink-3)}.request-table .t td:first-child{grid-column:1/-1}.request-table .t td:first-child::before,.request-table .t .cell-actions::before,.request-table .t .empty::before{display:none}.request-table .t td:first-child .member-link{font-size:15px}.request-table .t .cell-actions{grid-column:1/-1;width:100%;padding-top:4px!important}.request-table .cell-actions>div{display:flex;width:100%;gap:9px}.request-table .cell-actions .btn{min-height:43px;flex:1;justify-content:center;font-size:12px}.request-table .cell-actions>button{width:100%}.request-table .t tr:hover{background:transparent}.request-table .t .empty{grid-column:1/-1;font-size:12px;color:var(--ink-3)}
}
@media(max-width:520px){
  .payroll-summary{gap:9px}.payroll-summary .tile{padding:14px 10px;min-height:125px;gap:9px;border-radius:9px}.payroll-summary .tile .lbl{font-size:10px;line-height:1.4}.payroll-summary .tile .val{font-size:clamp(17px,4.7vw,24px);letter-spacing:-.5px;line-height:1.2;overflow-wrap:anywhere}.payroll-summary .tile .foot{font-size:9px;line-height:1.4}.payroll-summary .kpi-arrow{display:none}.pin-first .t th:first-child,.pin-first .t td:first-child{min-width:120px;max-width:140px}.change-row dd{font-size:13px;gap:6px;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)}
}

.activity-filter-toggle{display:none}.activity-member-error{font-size:11px;line-height:1.6;color:var(--red)}.activity-member-error[hidden]{display:none!important}
@media(max-width:640px){.activity-filter-toggle{display:flex;grid-column:1/-1;justify-self:start;min-height:40px}.activity-filters:not(.filters-open)>.activity-filter:not(.filter-q),.activity-filters:not(.filters-open)>.clear-activity{display:none}.activity-filters{gap:12px}}

/* Direct attendance corrections in a member modal. */
.attendance-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:18px 0}.attendance-toolbar h3{margin:0 0 6px}.attendance-toolbar .detail-hint{max-width:420px;margin:0}.attendance-date-action{display:flex;align-items:center;gap:8px}.attendance-date-action .inp{width:150px;min-width:0}.attendance-date-action .btn{white-space:nowrap}.attendance-reopen{grid-column:1/-1;border:1px solid var(--line);background:var(--card-2);border-radius:10px;padding:14px 16px;display:flex;align-items:center;gap:16px;justify-content:space-between}.attendance-reopen .detail-hint{margin:0;flex:1}.attendance-reopen .btn{white-space:nowrap}@media(max-width:600px){.attendance-toolbar{align-items:stretch;flex-direction:column}.attendance-date-action .inp{flex:1;width:auto}.attendance-reopen{align-items:stretch;flex-direction:column;gap:10px}}

/* Clear failure states and controls remain readable on narrow screens. */
.load-error,.map-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.load-error{justify-content:space-between}
.map-controls{margin:10px 0}
.map-controls .sub{margin:0}
.map-notice{font-size:12px;line-height:1.6;color:var(--ink-2)}
.fence-corner{border:2px solid white;border-radius:50%;background:var(--s-absent);box-shadow:0 1px 5px #0008}
.fld[hidden]{display:none!important}
/* Leaflet's internal z-indexes stay below navigation and dialogs. */
.leaflet-container{isolation:isolate;z-index:0}
/* Gate page (admin-gate.js) */
.gate-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.gate-stat{border:1px solid var(--line);border-radius:9px;padding:16px;min-width:0}
.gate-stat .lbl{font-size:11px;color:var(--ink-2)}
.gate-stat .val{font-size:32px;letter-spacing:-1px;margin-top:6px}
.gate-stat .foot{font-size:11px;color:var(--ink-3);margin-top:4px;line-height:1.5}
.gate-steps{margin:0 0 12px 18px;display:grid;gap:9px;font-size:13px;line-height:1.6}
.gate-code{background:var(--card-2);border:1px solid var(--line);border-radius:7px;padding:12px;font-size:12px;overflow:auto;max-width:100%}
.gate-preview{display:block;max-width:100%;max-height:320px;border-radius:9px;margin:12px auto;object-fit:contain}
@media(max-width:720px){.gate-stats{grid-template-columns:1fr 1fr}.gate-stat .val{font-size:26px}}
.attendance-shift{border:1px solid var(--line);background:var(--card-2);border-radius:10px;padding:2px 16px;margin-bottom:14px}.attendance-shift .detail-list>div{padding:10px 0}.shift-ot{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
/* Shift & overtime set-up: five questions (admin-ui.js shiftRulesCard / openShiftRulesForm / openShiftTimesForm) */
.shift-answers dt{color:var(--ink-2)}
.shift-warn{color:var(--ink-2);background:var(--amber-soft);border-radius:8px;padding:10px 12px;margin-top:10px}
.shift-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.shift-more{border-top:1px solid var(--line);margin-top:16px}
.shift-more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 4px;cursor:pointer;list-style:none;font-size:12px;font-weight:500;color:var(--ink-2)}
.shift-more>summary::-webkit-details-marker{display:none}
.shift-more>summary::after{content:'+';font-size:18px;font-weight:400;color:var(--accent);line-height:1}
.shift-more[open]>summary::after{content:'−'}
.shift-more>summary:hover{color:var(--ink)}
.shift-setup>.form-grid>.fld>.fld-lbl,.shift-q1>.fld-lbl{font-size:13px;font-weight:600;color:var(--ink);margin-bottom:8px}
.shift-setup>.form-grid{gap:26px 20px}
.shift-setup .shift-more{margin-top:26px}
.shift-setup .shift-more>summary{font-size:13px;padding:16px 0 8px}
.shift-setup .shift-more>.fld-hint{margin:0 0 14px}
.shift-setup .shift-more>.form-section:first-of-type{border-top:0;padding-top:4px;margin-top:0}
.shift-q1{display:flex;flex-direction:column;gap:4px;margin-bottom:26px}
.shift-q1-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card-2)}
.shift-q1-row strong{font-size:13px;font-weight:500}
.choice-group{display:grid;gap:8px}
.choice{display:flex;align-items:flex-start;gap:11px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card);cursor:pointer;transition:border-color .15s,background .15s}
.choice:hover{border-color:var(--axis)}
.choice:has(input:checked){border-color:var(--accent);background:var(--green-soft)}
.choice input{flex:none;width:17px;height:17px;min-height:0;margin:1px 0 0;accent-color:var(--green-2);cursor:pointer}
.choice>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.choice strong{font-size:13px;font-weight:500;color:var(--ink);line-height:1.4}
.choice small{font-size:11.5px;color:var(--ink-2);line-height:1.5}
.choice-chips{grid-template-columns:repeat(4,minmax(0,max-content))}
.choice-chips .choice{padding:10px 14px;align-items:center}
.shift-example{color:var(--ink-2);margin-top:2px}
.fld .choice-chips+.inp{margin-top:8px;max-width:180px}
.shift-preview{font-size:12px;color:var(--ink-2);background:var(--card-2);border:1px solid var(--line);border-radius:8px;padding:10px 12px;line-height:1.5}
.shift-pick-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.shift-pick-count{font-size:11px;color:var(--ink-3)}
.shift-pick-actions{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.shift-pick-list{border:1px solid var(--line);border-radius:9px;max-height:300px;overflow:auto;overscroll-behavior:contain}
.shift-pick-row{display:flex;align-items:center;gap:11px;padding:11px 14px;border-bottom:1px solid var(--line-2);cursor:pointer}
.shift-pick-row:last-child{border-bottom:0}
.shift-pick-row:hover{background:var(--card-2)}
.shift-pick-row:has(input:checked){background:var(--green-soft)}
.shift-pick-name{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.shift-pick-name strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.shift-pick-name small{font-size:11px;color:var(--ink-3)}
.shift-pick-now{font-size:12px;color:var(--ink-2);white-space:nowrap}
.shift-pick-now.none{color:var(--ink-3);font-style:italic}
@media(max-width:520px){.choice-chips{grid-template-columns:1fr 1fr}.shift-pick-row{flex-wrap:wrap}.shift-pick-now{flex-basis:100%;padding-left:28px;white-space:normal}.shift-q1-row{flex-direction:column;align-items:stretch}}
.shift-foot{margin-top:12px}
/* Review categories remain visible; only the selected list is mounted. */
.review-period{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.review-pane>.card{width:100%;box-sizing:border-box}
/* The page (or an open dialog) owns vertical scrolling. Tables retain horizontal
   scrolling for wide reports, without a second vertical scrollbar inside them. */
.tbl-scroll,.mgrid-scroll{max-height:none;overflow-x:auto;overflow-y:visible;overscroll-behavior:auto}
.tv{max-height:none;overflow:visible}
.modal-body .shift-pick-list{max-height:none;overflow:visible;overscroll-behavior:auto}
@media(max-width:600px){.review-period .btn{flex:1}}
/* Sidebar spacing: brand, workspace and main tasks are separate groups. */
@media(min-width:1000px){:root{--sidebar-w:240px}}
.side{padding:24px 20px 16px}
.side .side-brand{padding:0;margin:0 0 28px;border:0;gap:12px}
.side-brand .brand-mark{width:34px;height:34px;border-radius:10px}
.side-brand .brand-name{font-size:23px;font-weight:600;letter-spacing:-.5px}
.side-brand .brand-sub{display:none}
.side .biz-pick{padding:0;margin:0 0 28px;border:0}
.side .biz-pick>label{display:block;margin:0 0 8px;font-size:11px;letter-spacing:.06em;opacity:1;color:var(--ink-3)}
.side .biz-pick .select-trigger,.side .biz-pick select{min-height:44px;font-size:13px}
.side .side-nav{padding:0;gap:6px;min-height:0}
.side .side-nav a{min-height:48px;padding:12px 14px;gap:12px;font-size:14px;font-weight:500;border-radius:9px}
.side .side-nav a.on,.side .side-nav a.on:hover{box-shadow:none;background:var(--green-soft);color:var(--accent);font-weight:600}
.side .side-nav .nav-icon{width:18px;height:18px;opacity:.8}
.side .side-foot{margin-top:24px;padding:16px 0 0}
.side .account-label{display:none}
@media(max-height:760px){.side{padding-top:18px}.side .side-brand{margin-bottom:24px}.side .biz-pick{margin-bottom:22px}.side .side-nav{gap:4px}.side .side-nav a{min-height:44px;padding-block:10px}.side .side-foot{margin-top:16px;padding-top:12px}}
