/* APP1 — the phone app's pages (install, activation, the phone home, My phones, set up a screen): phone first, usable at 360 px,
   every button at least 44 px high, right to left from the page's direction. Colours come from the theme tokens. */
.app-page{display:flex;flex-direction:column;gap:14px;max-width:720px}
.app-form{display:flex;flex-direction:column;gap:12px}
.app-form .field{display:flex;flex-direction:column;gap:6px}
.app-form input,.app-form select{min-height:44px;font-size:16px}
.app-code{font:700 26px/1.2 "DM Mono",ui-monospace,Consolas,monospace;letter-spacing:.14em;text-align:center;text-transform:uppercase}
.app-actions{display:flex;flex-wrap:wrap;gap:8px}
.app-actions .btn,.app-big{min-height:44px}
.app-big{width:100%;font-size:16px}
.app-big[hidden]{display:none}   /* T1: a hidden big button stays hidden (.btn draws it as a flex box) */
.app-scan{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.app-scan video{width:100%;max-height:320px;border-radius:12px;background:#0b1a1a;object-fit:cover}
.app-link{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.app-link-qr{width:min(220px,60vw);align-self:center;background:#fff;padding:8px;border-radius:12px}
.app-link-qr svg{display:block;width:100%;height:auto}
.app-link-text{font:13px/1.4 "DM Mono",ui-monospace,Consolas,monospace;min-height:44px;width:100%}
.check-row{display:flex;gap:10px;align-items:flex-start;margin:6px 0 12px;cursor:pointer}
.check-row input{width:20px;height:20px;margin-top:2px;flex:none}
.check-row small{display:block;font-size:12px}

/* the phone home: big buttons with counts */
.app-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.app-tile{display:flex;flex-direction:column;gap:4px;padding:16px;min-height:96px;background:var(--s);border:1px solid var(--s4);border-radius:var(--r,12px);color:var(--t)}
.app-tile b{font-size:15px}
.app-tile small{color:var(--t2,var(--t));font-size:12.5px}
.app-tile .app-n{font:800 26px/1 var(--sans,inherit);color:var(--ac)}
.app-tile:focus-visible,.app-tile:hover{box-shadow:0 2px 10px rgba(0,0,0,.08)}

/* the stand-alone pages (install, activation): no menu */
.app-solo{min-height:100vh;margin:0;display:flex;justify-content:center;background:#eef3f3;color:#0b1818;font-family:"DM Sans",system-ui,"Segoe UI",sans-serif}
.app-solo main{width:100%;max-width:520px;padding:24px 16px;display:flex;flex-direction:column;gap:16px}
.app-solo .app-brand{display:flex;gap:12px;align-items:center}
.app-solo .app-brand img{width:56px;height:56px;border-radius:14px}
.app-solo h1{margin:0;font-size:22px}
.app-solo .app-card{background:#fff;border-radius:16px;padding:18px;border:1px solid #d5e0e0;display:flex;flex-direction:column;gap:12px}
.app-solo .btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:12px;background:#0F766E;color:#fff;font-weight:700;font-size:16px;border:0;text-decoration:none;cursor:pointer}
.app-solo .btn.ghost{background:transparent;color:#0F766E;border:2px solid #0F766E}
.app-solo .muted{color:#4b5d5b}
.app-solo .err{background:#fde8e8;color:#991b1b;border-radius:10px;padding:10px 12px}
.app-solo .ok{background:#dcfce7;color:#14532d;border-radius:10px;padding:10px 12px}
.app-steps{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:10px;font-size:16px}
.app-steps b{font-weight:700}
.app-qr{width:200px;align-self:center;background:#fff;padding:8px;border-radius:12px;border:1px solid #d5e0e0}
.app-qr svg{display:block;width:100%;height:auto}
@media (prefers-color-scheme:dark){
  .app-solo{background:#0a1212;color:#e8f5f5}
  .app-solo .app-card{background:#0e1c1c;border-color:#1e3535}
  .app-solo .muted{color:#9fb8b5}
}
@media (max-width:330px){ .app-home-grid{grid-template-columns:1fr} }   /* two side by side on a 360 px phone, as drawn */
.app-phones{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.app-phones li{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--s3);padding-bottom:10px}
.app-phones li small{display:block}
.app-phones .badge{margin-inline-start:8px;font-size:11px;padding:1px 8px;border-radius:999px;background:var(--ad);color:var(--ac)}

/* the branch's activation cards, printed */
.app-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.app-card-print{display:flex;gap:12px;align-items:center;border:1px dashed var(--s4);border-radius:12px;padding:12px;background:var(--s);break-inside:avoid}
.app-card-qr{width:110px;flex:none;background:#fff;padding:4px;border-radius:8px}
.app-card-qr svg{display:block;width:100%;height:auto}
.app-card-print p{margin:6px 0 0;font-size:12px}
@media print{.no-print,.sb,.topbar,header,nav{display:none !important}.app-cards{grid-template-columns:repeat(2,1fr)}}

/* what is hidden stays hidden: the layout rules above must not show a closed camera box, an Install button the browser has
   not offered, or a notifications button this browser cannot use */
.app-page [hidden],.app-solo [hidden],.app-scan[hidden]{display:none !important}

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   GC6 — the employee's phone app as drawn (mock-ups ess-*, app-install, app-mgr-home). App screens carry body.app-shell
   (_Layout, AppShell.IsAppScreen). On a phone (≤ 760 px) the office top bar, side menu and breadcrumb leave and the five-tab
   bar is fixed at the bottom; every button is at least 44 px high. On a computer the same screens sit in the office frame.
   Phone styles live here only (the shared site CSS is not restyled).
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.app-tabs,.app-offline[hidden]{display:none}
.app-head{display:flex;align-items:center;gap:6px;margin:0 0 12px;min-height:44px}
.app-title{font-size:20px;font-weight:800;margin:0;color:var(--t);line-height:1.3}
.app-back{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-start:-10px;border-radius:12px;color:var(--ac);text-decoration:none}
.app-back:hover{background:var(--ad)}
@media (max-width:760px){
  body.app-shell{--tabbar-h:64px}
  .app-shell .sb,.app-shell .topbar,.app-shell #breadcrumbs,.app-shell #sbToggleMobile{display:none !important}
  .app-shell .main-app{margin:0 !important;min-height:100vh;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px) + 12px)}
  .app-shell .main-app > *:not(.topbar){padding:12px 16px}
  .app-shell #page-body{max-width:none}
  .app-shell .app-head{position:sticky;top:0;z-index:30;background:var(--s);margin:-12px -16px 14px;padding:10px 16px;border-bottom:1px solid var(--s3);min-height:60px}
  .app-shell .app-title{font-size:19px}
  .app-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset-inline:0;bottom:0;z-index:60;background:var(--s);border-top:1px solid var(--s3);padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -2px 12px rgba(0,0,0,.04)}
  .app-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:var(--tabbar-h);font-size:11.5px;color:var(--t3);text-decoration:none;font-weight:500}
  .app-tabs a.on{color:var(--ac);font-weight:800}
  .app-tabs a span{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding-inline:1px;font-size:10.5px;letter-spacing:-.02em}
  .app-tabs a.on span{font-weight:700}   /* FX1: "My attendance" on one line at 390 px */
  .app-tabs a:focus-visible{outline:2px solid var(--ac);outline-offset:-4px}
  .app-offline:not([hidden]){position:fixed;inset-inline:12px;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px) + 8px);z-index:55}
  .app-shell .btn,.app-shell button.btn,.app-shell a.btn{min-height:44px}
  .app-shell .btn.sm{min-height:44px;padding-inline:14px}
  .app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-shell select,.app-shell textarea{min-height:44px;font-size:16px}
}
.app-offline:not([hidden]){display:flex;align-items:center;gap:8px;background:#fff7e6;color:#92400e;border:1px solid #f5d9a6;border-radius:12px;padding:8px 12px;font-size:13px;font-weight:600;margin:0 0 10px}
.app-offline .ao-dot{width:8px;height:8px;border-radius:50%;background:#d97706;flex:none}

/* the screens' building blocks */
.ess{display:flex;flex-direction:column;gap:12px;max-width:600px;font-size:14px}
.ess-card{background:var(--s);border:1px solid var(--s3);border-radius:14px;padding:14px 16px}
.ess-card > h2,.ess-sec{font-size:15px;font-weight:800;margin:0 0 10px;color:var(--t)}
.ess-sub{color:var(--t3);font-size:13px;text-align:center}
.ess-list{background:var(--s);border:1px solid var(--s3);border-radius:14px;overflow:hidden}
.ess-list.inner{border-radius:12px}
.ess-row{display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:58px;border-top:1px solid var(--s3);color:var(--t);text-decoration:none}
.ess-row:first-child{border-top:0}
a.ess-row:hover{background:var(--s2)}
.ess-row .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ess-row b{font-size:14.5px;font-weight:800}
.ess-row small,.ess-muted{color:var(--t3);font-size:12.5px}
.ess-row .end{margin-inline-start:auto;flex:none;display:flex;gap:8px;align-items:center}
.ess-chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:800;white-space:nowrap;background:var(--s2);color:var(--t2)}
.ess-chip.gn{background:#dcfce7;color:#166534}.ess-chip.am{background:#fff1d6;color:#9a5b00}.ess-chip.bl{background:#e0eefc;color:#1d4f91}
.ess-chip.te{background:#dff3ef;color:#0f5f58}.ess-chip.rd{background:#fde4e4;color:#a11b1b}.ess-chip.gy{background:var(--s3);color:var(--t2)}
.ess-big{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:64px;border-radius:16px;border:0;background:var(--ac);color:#fff;font:inherit;font-size:18px;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px rgba(15,118,110,.22)}
.ess-big:hover{background:var(--ac2);color:#fff}
.ess-big svg{flex:none}
.ess-alt{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:60px;border-radius:16px;border:1px solid var(--s4);background:var(--s);color:var(--t);font:inherit;font-size:18px;font-weight:800;text-decoration:none;cursor:pointer}
.ess-alt:hover{border-color:var(--ac);color:var(--ac)}
.ess-small{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:56px;padding:0 14px;border-radius:12px;border:1px solid var(--s4);background:var(--s);color:var(--t);font:inherit;font-size:14px;font-weight:800;text-decoration:none;cursor:pointer}
.ess-small.pri{background:var(--ac);border-color:var(--ac);color:#fff}
.ess-small.no{color:#a11b1b}
.ess-note{background:#eef8f5;border:1px solid #cdeae2;color:#134e48;border-radius:12px;padding:10px 14px;font-size:13.5px;line-height:1.6}
.ess-warn{background:#fff8eb;border:1px solid #f4d9a3;color:#8a4b00;border-radius:12px;padding:10px 14px;font-size:13.5px;line-height:1.6}
.ess-ok{background:#effcf3;border:1px solid #bfe9cc;color:#166534;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600}
.ess-bad{background:#fdecec;border:1px solid #f5c2c2;color:#991b1b;border-radius:12px;padding:10px 14px;font-size:14px}
.ess-form{display:flex;flex-direction:column;gap:12px}
.ess-field{display:flex;flex-direction:column;gap:6px}
.ess-field > label,.ess-field > .lbl{font-size:13px;font-weight:700;color:var(--t2)}
.ess-field .req{color:#c2410c}
.ess-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.ess-field select,.ess-field textarea,.ess-ro{width:100%;min-height:48px;border-radius:12px;border:1px solid var(--s4);background:var(--s);color:var(--t);padding:10px 14px;font:inherit;font-size:16px;box-sizing:border-box}
.ess-field textarea{min-height:72px;resize:vertical}
.ess-ro{display:flex;align-items:center;background:var(--s2);color:var(--t2)}
.ess-field .hint{font-size:12px;color:var(--t3)}
.ess-pair{display:flex;gap:8px}.ess-pair > *{flex:1;min-width:0}.ess-pair > .narrow{flex:0 0 38%}
.ess-filelink{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--ac);font-weight:800;cursor:pointer;position:relative}
.ess-filelink input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.ess-more{border:1px solid var(--s3);border-radius:12px;background:var(--s);padding:0 14px}
.ess-more > summary{min-height:48px;display:flex;align-items:center;font-weight:700;cursor:pointer;color:var(--t2)}
.ess-more[open]{padding-bottom:12px}
.ess-steps{list-style:none;margin:0;padding:0;background:var(--s);border:1px solid var(--s3);border-radius:14px;overflow:hidden}
.ess-steps li{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--s3)}
.ess-steps li:first-child{border-top:0}
.ess-steps .n{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;background:#dff3ef;color:#0f5f58;flex:none}
.ess-steps li.done .n{background:#dcfce7;color:#166534}
.ess-steps b{display:block;font-size:14.5px}
.ess-steps small{color:var(--t3);font-size:12.5px}
.ess-empty{color:var(--t3);text-align:center;padding:18px 12px}

/* the app home (mock 'ess-home'): one screen */
.ess-hello{font-size:20px;font-weight:800;margin:0}
.ess-today{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.ess-today .line{color:var(--t3);font-size:13px}
.ess-times{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:280px;margin-top:4px}
.ess-times span{display:block;color:var(--t3);font-size:12.5px}
.ess-times b{display:block;font:700 26px/1.3 var(--mono);letter-spacing:.06em;color:var(--t)}
.ess-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ess-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:86px;padding:12px 14px;background:var(--s);border:1px solid var(--s3);border-radius:14px;color:var(--t);text-decoration:none}
.ess-tile:hover{border-color:var(--ac)}
.ess-tile svg{color:var(--t2);margin-bottom:6px}
.ess-tile b{font-size:15px;font-weight:800}
.ess-tile small{color:var(--t3);font-size:12.5px}
.ess-geo:empty{display:none}

/* payslip (mock 'ess-payslip') and previous months */
.ess-net{text-align:center}
.ess-net .amt{font:700 32px/1.25 var(--mono);letter-spacing:.04em;color:var(--t);margin:4px 0}
.ess-amt{font-family:var(--mono);color:#1d4f91}
.ess-open{color:var(--ac);font-weight:700;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

/* my shifts this week (mock 'ess-shifts') */
.ess-row.today{background:#f3faf8}

/* the monthly card (mock 'ess-card') */
.ess-kv{width:100%;border-collapse:collapse}
.ess-kv th,.ess-kv td{padding:11px 16px;border-top:1px solid var(--s3);text-align:start;font-size:14px;font-weight:500}
.ess-kv thead th{border-top:0;background:var(--s2);color:var(--t3);font-weight:700;font-size:12.5px}
.ess-kv td.v{font-family:var(--mono);text-align:end}
.ess-kv thead th.v{text-align:end}

/* the scan (mock 'ess-scan') */
.ess-cam{background:#0b1a1a;border-radius:16px;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:220px}
.ess-cam video{width:100%;max-height:300px;border-radius:12px;object-fit:cover}
.ess-cam .frame{border:3px solid #5fd3b4;border-radius:16px;padding:10px;display:flex;align-items:center;justify-content:center;min-width:180px;min-height:180px}
.ess-flags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.ess-result{text-align:center}
.ess-result b{display:block;font-size:22px;font-weight:800;color:#15803d}
.ess-result.held b{color:#b45309}

/* evaluation (mock 'ess-eval') */
.ess-score{text-align:center}
.ess-score .big{font:800 44px/1.2 var(--sans,inherit);font-variant-numeric:tabular-nums}

/* install (mock 'app-install') */
.ess-install-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:relative;text-align:center;margin:0;padding:0}
.ess-install-steps li{list-style:none;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#0f5f58}
.ess-install-steps .n{width:34px;height:34px;border-radius:50%;background:#0F766E;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;position:relative;z-index:1}
.ess-install-steps svg{color:#0F766E}
.ess-install-steps::before{content:"";position:absolute;top:17px;inset-inline:16%;border-top:2px solid #cfe3df}
.app-solo .ess-head{display:flex;align-items:center;gap:8px}
.app-solo .ess-head h1{font-size:19px}
.app-solo .app-tabs{display:none}
@media (max-width:760px){
  .app-solo.with-tabs main{padding-bottom:90px}
  .app-solo.with-tabs .app-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset-inline:0;bottom:0;background:#fff;border-top:1px solid #d5e0e0}
  .app-solo.with-tabs .app-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;font-size:11.5px;color:#557070;text-decoration:none}
  .app-solo.with-tabs .app-tabs a.on{color:#0F766E;font-weight:800}
}

/* GC6-T6 — the pages behind the manager's phone home at 360 px: Approvals, end-of-shift approval, present now */
@media (max-width:760px){
  .app-shell .panel{padding:12px}
  .app-shell .ap-phone table,.app-shell .ap-phone thead,.app-shell .ap-phone tbody,.app-shell .ap-phone tr,.app-shell .ap-phone td{display:block;width:100%;box-sizing:border-box}
  .app-shell .ap-phone thead{display:none}
  .app-shell .ap-phone tr{border:1px solid var(--s3);border-radius:14px;margin:0 0 10px;padding:10px 12px;background:var(--s)}
  .app-shell .ap-phone td{border:0 !important;padding:4px 0 !important;white-space:normal !important;text-align:start !important}
  .app-shell .ap-phone td:empty{display:none}
  .app-shell .ap-phone .btn,.app-shell .ap-phone button{min-height:44px;min-width:88px;font-size:15px}
  .app-shell .ap-phone form.inline-form{display:inline-flex;flex-wrap:wrap;gap:8px;margin:4px 0}
  .app-shell .toolbar{flex-wrap:wrap}
}
@media (max-width:760px){
  /* end-of-shift approval: each person a card; the close-out and Approve-all buttons full size */
  .app-shell table.wiz-shift,.app-shell table.wiz-shift tbody,.app-shell table.wiz-shift tr,.app-shell table.wiz-shift td{display:block;width:100%;box-sizing:border-box}
  .app-shell table.wiz-shift thead{display:none}
  .app-shell table.wiz-shift tr{display:grid;grid-template-columns:1fr auto auto;gap:4px 12px;align-items:center;border:1px solid var(--s3);border-radius:14px;margin:0 0 10px;padding:10px 12px}
  .app-shell table.wiz-shift td{border:0 !important;padding:2px 0 !important;width:auto}
  .app-shell table.wiz-shift td:last-child{grid-column:1 / -1}
  .app-shell table.wiz-shift td:last-child .btn{width:100%}
  .app-shell [data-wiz-pane] .actions .btn,.app-shell [data-endshift-pick] .btn{min-height:48px}
  .app-shell [data-endshift-pick] .field,.app-shell [data-board-filter] .field{flex:1 1 100%}
  .app-shell [data-endshift-pick] select,.app-shell [data-board-filter] select{width:100%}
  /* present now: five columns that fit 360 px (the bar and "on leave" are in the cards above) */
  .app-shell [data-board-branches] th:nth-child(4),.app-shell [data-board-branches] td:nth-child(4),
  .app-shell [data-board-branches] th:nth-child(7),.app-shell [data-board-branches] td:nth-child(7),
  .app-shell [data-board-branches] .mod-code{display:none}
  .app-shell [data-board-branches] th,.app-shell [data-board-branches] td{padding:8px 6px !important;white-space:normal !important}
  .app-shell .imp-scroll{overflow-x:visible}
  .app-shell [data-board-kpis]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* the scan's result sits under the camera at the card's size, not the old full-screen sizes */
.ess-result .scan-dir,.ess-result .scan-time{font-size:inherit;line-height:inherit;font-weight:inherit}
.ess-result .scan-branch{font-size:inherit;color:inherit}
.ess-install-card{text-align:center;align-items:center}
.ess-install-title{font-size:22px;font-weight:800}
.ess-install-note{background:#eef8f5 !important;border-color:#cdeae2 !important;color:#134e48;font-size:14px}
.app-solo .app-back{color:#0F766E}
/* GC6 round 2 — from the first pictures */
.ess-money{position:relative}
.ess-money input{padding-right:56px !important;padding-left:14px !important}
.ess-money span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--t3);font-weight:700;pointer-events:none}
.ess-kv tbody th,.ess-kv tbody td{background:transparent !important}
.ess-kv td.v{font-family:inherit;font-variant-numeric:tabular-nums}
.ess-field .ess-filelink,.ess-filelink{color:var(--ac)}
.ess-field input.mono{font-family:var(--mono)}
.app-solo .ess-head{background:#fff;margin:-24px -16px 0;padding:12px 16px;border-bottom:1px solid #d5e0e0}
@media (max-width:760px){
  .app-shell .ap-phone td,.app-shell .ap-phone tr{background:transparent !important}
  .app-shell .ap-phone tr{background:var(--s) !important}
  .app-shell .tbl-toolbar button,.app-shell .tbl-toolbar .btn,.app-shell .idx-cc-wrap button{min-height:44px}
  .app-shell .wiz-switch .toggle-opt{min-height:44px;display:inline-flex;align-items:center}
}
.ess-cam-mark{font:800 72px/1 var(--sans,inherit);color:#5fd3b4}
.ess-cam-mark.held{color:#f5b54a}
.ess-row .grow small,.ess-row .grow b{overflow-wrap:anywhere}

/* OFF1 (mock 'off1-phone') — a scan kept on this phone while there is no connection; today's punches with their connection */
.off1-saved{display:flex;flex-direction:column;gap:12px}
.off1-saved[hidden]{display:none}
.off1-bar{border-radius:12px;padding:10px 14px}
.off1-t{width:100%;border-collapse:collapse;margin-top:8px;font-size:13px}
.off1-t th,.off1-t td{padding:6px 4px;border-bottom:1px solid var(--s3);text-align:start}
/* FX2: the waiting list on a phone (390 px) - the status column (the server's own words for a hold) wraps in its column, never cut */
.off1-t{table-layout:fixed}
.off1-t th:nth-child(1){width:30%}.off1-t th:nth-child(2){width:20%}
.off1-t td{white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top}
/* FX2: punch approvals - inside its card at any width: the long cells wrap, the actions stack in their column, the table scrolls inside the card */
.pap-card{overflow-x:auto;max-width:100%}
.pap-t{width:100%}
.pap-t th,.pap-t td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.pap-t td.pap-acts{width:1%;white-space:nowrap}
.pap-t td.pap-acts .inline-form{display:block;margin:0 0 4px}
.pap-t td.pap-acts .btn,.pap-t td.pap-acts .chip{width:100%;justify-content:center}
/* FX2: attendance freeze - the dates wrap, the list scrolls inside its card, Unfreeze always in view; the days a freeze marks absent */
.fz-form{flex-wrap:wrap}
/* FX3: the freeze and recalculation forms on one line - each date its own width, the reason the rest (up to 420px), the button
   beside them; they wrap on a narrow screen. Was: every field stretched across the card (".panel input" is 100% wide) */
.panel form.fz-form{display:flex;align-items:center;gap:8px}
.panel .fz-form input[type=date]{width:170px;flex:0 0 170px}
.panel .fz-form input[name=reason]{width:auto;flex:1 1 240px;max-width:420px}
.panel .fz-form .emp-picker{flex:0 1 280px;min-width:200px}
.panel .fz-form .btn{flex:0 0 auto}
.fz-scroll{overflow-x:auto;max-width:100%}
.fz-t th,.fz-t td{white-space:normal;overflow-wrap:anywhere}
.fz-t td:last-child{white-space:nowrap;width:1%}
.g11-absent{margin:8px 0}
.g11-absent-list{max-height:220px;overflow:auto;margin:6px 0 0;padding-inline-start:18px;font-size:13px}
.ess-punch-list{list-style:none;margin:8px 0 0;padding:0;font-size:12.5px;color:var(--t2,#555)}
.ess-punch-list li{padding:2px 0}
.ess-punch-list li[data-conn="offline"] [data-home-conn]{color:var(--ac);font-weight:700}
.ess-off1-status{margin-top:8px;font-size:12.5px;padding:8px 12px;border-radius:10px;background:var(--s2,#f3f5f5);border:1px dashed var(--s3)}
.ess-off1-status[hidden]{display:none}
.ess.scan [hidden]{display:none !important}   /* OFF1: the scan page hides its camera parts when a scan is kept offline */
