/* PAS V1 — the ERP look (Oct 24, Richard), laid over styles.css for signed-in pages.
   Top bar on the background above the page; the side menu is a rail of tabs, each with its own colour, and the
   open tab joins the page; the page takes the open tab's colour (stripe, small heading, main button, links,
   open sub-tab, payday pill). Warnings stay amber and problems red. Day and night. Font: Inter, kept in PAS. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/InterVariable.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/InterVariable-Italic.woff2) format("woff2"); }

:root {
  --bg: #e8eff7; --ink: #0a1a2b; --ink2: #475a70; --ink3: #7d90a5;
  --page: #fbfdff; --card: #ffffff; --card2: #f4f8fc; --line: rgba(10, 40, 70, .09);
  --brand2: #2b8cff; --cyan: #16c1d4; --gold: #e3a43a;
  --glass: rgba(255, 255, 255, .6); --glassline: rgba(255, 255, 255, .8);
  --shadow-x: 0 30px 80px -20px rgba(2, 50, 100, .22), 0 2px 6px rgba(2, 50, 100, .05);
  --text: var(--ink); --muted: var(--ink2); --faint: var(--ink3); --royal: #0262a3; --brand: #0262a3; --border: var(--line);
  --page-c: #0262a3;
  /* Oct 24 (Richard): the page is slightly see-through, so the drawings show faintly behind it. */
  --page-glass: rgba(251, 253, 255, .66);
}
body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); font-size: 14.5px;
  background: var(--bg) !important; font-feature-settings: "tnum" 1, "cv11" 1;
  background-image: radial-gradient(900px 520px at 8% -12%, rgba(43, 140, 255, .30), transparent 62%),
    radial-gradient(700px 520px at 104% 108%, rgba(22, 193, 212, .22), transparent 60%),
    radial-gradient(520px 420px at 62% 8%, rgba(227, 164, 58, .16), transparent 62%) !important;
  background-attachment: fixed !important; }
body::before, .hero::after, .side-art, .page-sky, .page-plan, .top-mark { display: none !important; }
h1, h2, h3, .hero h1 { font-family: "Inter", "Segoe UI", sans-serif !important; }
.i { stroke-width: 1.8; }

/* ---------------------------------------------------------------- the background art (faint) */
.shell::before, .shell::after { content: ""; position: fixed; z-index: 0; pointer-events: none; background-repeat: no-repeat; }
/* Oct 24 (Richard): the trees fill the same share of the side menu on any screen: the bottom 60% of its height,
   growing and shrinking with the screen (the picture keeps its shape; on very tall screens its sides are trimmed). */
.shell::before { left: 0; bottom: 0; width: 250px; height: 60vh; background-image: url(/static/art/sidebar-trees.webp);
  background-position: center bottom; background-size: auto 100%; opacity: .45; -webkit-mask-image: linear-gradient(transparent, #000 55%);
  mask-image: linear-gradient(transparent, #000 55%); }
.shell::after { top: 0; right: 0; width: 640px; height: 500px; background-image: url(/static/art/top-right-side.webp);
  background-position: right top; background-size: contain; opacity: .6;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 50%, transparent 85%); mask-image: radial-gradient(circle at 100% 0, #000 50%, transparent 85%); }
/* The skyline along the bottom, behind the page (Oct 24: back from the old look). Not on phones. */
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  body::after { content: ""; position: fixed; left: 250px; right: 0; bottom: 0; height: 190px; z-index: 0; pointer-events: none;
    background: url(/static/art/footer-skyline.webp) no-repeat center bottom / min(100%, 1500px) auto; }
}

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 26px 0 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top .brand { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0; width: 218px; flex: none; text-decoration: none; }
.top .brand > img { width: auto; height: 34px; }
/* Oct 26 (Richard): the PAS app icon (Gold / Prism Glass) instead of the spaced "P A S"; ready-made sizes, so it stays sharp. */
.top .brand .pas-icon { width: 52px; height: 52px; flex: none; padding-left: 12px; box-sizing: content-box; border-left: 1px solid var(--line); }
.top .sp { flex: 1; }
.ask-wrap { position: relative; display: block; right: auto; bottom: auto; z-index: auto; flex: 1 1 420px; max-width: 540px; min-width: 0; }
.ask { width: 100%; height: 44px; border-radius: 15px; background: var(--glass); border: 1px solid var(--glassline); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 10px; padding: 0 52px 0 14px; color: var(--ink3); font: inherit; font-size: 14px; cursor: text;
  box-shadow: 0 8px 30px -12px rgba(2, 50, 100, .25); }
.ask .i { color: var(--brand2); }
.ask .t { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd { font-size: 11px; color: var(--ink2); border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 2px 7px; font-weight: 600; }
details.report-flag { position: absolute; right: 5px; top: 4px; }
details.report-flag > summary { list-style: none; }
details.report-flag > summary::-webkit-details-marker { display: none; }
.flag-btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #f0764d, #ef5579); box-shadow: 0 8px 18px -8px #ef5579; }
.flag-btn .i { width: 16px; height: 16px; }
details.report-flag .pop { position: absolute; right: -5px; left: auto; top: 46px; width: 380px; z-index: 40; }
.chip { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 14px; background: var(--glass);
  border: 1px solid var(--glassline); font: inherit; font-size: 13px; color: var(--ink2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); white-space: nowrap; }
.chip b { color: var(--ink); font-weight: 600; }
.amounts-chip { cursor: pointer; }
.amounts-chip .amt-sw { width: 30px; height: 18px; border-radius: 9px; background: rgba(10, 40, 70, .15); position: relative; transition: background .15s; }
.amounts-chip .amt-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
/* Oct 28 (Richard): "Amounts": on = amounts shown (the switch to the right), off = hidden. */
html:not(.hide-amounts) .amounts-chip .amt-sw { background: var(--brand2); }
html:not(.hide-amounts) .amounts-chip .amt-sw::after { left: 12px; }
.mode { width: 72px; height: 40px; border-radius: 20px; position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 0 11px; border: 0; cursor: pointer; flex: none;
  background: linear-gradient(135deg, #bfe1ff, #ffe7b8); box-shadow: inset 0 2px 6px rgba(2, 50, 100, .12); color: #c98a12; }
.mode > .i + .i { color: #6a83a6; }
.mode .knob { position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  color: #e3a43a; box-shadow: 0 4px 12px -2px rgba(2, 50, 100, .35); transition: left .2s; }
.mode .k-moon { display: none; }
.hold { position: relative; }
.hold > summary { list-style: none; cursor: pointer; }
.hold > summary::-webkit-details-marker { display: none; }
.iconbtn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glassline);
  color: var(--ink2); position: relative; }
.iconbtn .cnt { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; font-size: 10.5px;
  font-weight: 700; display: grid; place-items: center; color: #fff; background: #ef5579; box-shadow: 0 0 0 2px var(--bg); }
/* Oct 24 (Richard, style "C"): the ERP ring (blue, cyan, gold) around a full-colour circle, white initials; the same in
   day and night. */
.top .avatar, .menu-pop .avatar { width: 42px; height: 42px; font-size: 13px; font-weight: 700; position: relative;
  border: 3px solid transparent; color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  background: linear-gradient(135deg, #2b8cff, #16c1d4 60%, #e3a43a) padding-box,
              conic-gradient(from 210deg, #2b8cff, #16c1d4, #e3a43a, #2b8cff) border-box !important;
  box-shadow: 0 6px 14px -6px rgba(2, 50, 100, .45), 0 0 0 1px rgba(255, 255, 255, .55) !important; }
.avatar-btn { border-radius: 50%; isolation: isolate; }
.hold .pop { position: absolute; right: 0; top: 50px; z-index: 40; width: 340px; }
.menu-pop { padding: 14px !important; }
.menu-pop .pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.menu-pop .pop-head form { margin: 0; }
.bell-item { display: flex; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--ink) !important; text-decoration: none;
  font-size: 13.5px; line-height: 1.35; border-radius: 8px; }
.bell-item:hover { background: var(--card2); }
.bell-item .k { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--royal); background: rgba(43, 140, 255, .12); }
.bell-item small { display: block; color: var(--ink3); font-size: 11.5px; }
.me-menu .pop { width: 290px; }
.menu-pop .who { display: flex; gap: 12px; align-items: center; padding: 2px 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; isolation: isolate; }
.menu-pop .who small { display: block; color: var(--ink3); font-size: 12px; }
.menu-pop .mi { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; color: var(--ink2) !important;
  text-decoration: none; background: none; border: 0; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.menu-pop a.mi:hover, .menu-pop button.mi:hover { background: var(--card2); color: var(--ink) !important; }
.menu-pop form { margin: 0; }
.menu-pop .company-pick { padding: 6px 8px; gap: 8px; color: var(--ink2); }
.menu-pop .company-pick select { flex: 1; min-width: 0; }

/* The Guide: opens under the ask box. */
.ask-wrap .gbot-panel { position: absolute; left: 0; right: 0; top: 52px; width: auto; max-width: none; min-width: 360px; height: auto; max-height: min(560px, calc(100vh - 100px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); border: 0; outline: 1px solid var(--line);
  box-shadow: var(--shadow-x); z-index: 40; }
.ask-wrap .gbot-panel[hidden] { display: none; }
.ask-wrap .gbot-panel header { background: transparent; color: var(--ink); padding: 12px 14px 4px; }
.ask-wrap .gbot-panel header strong { display: flex; align-items: center; gap: 8px; }
.ask-wrap .gbot-panel header strong .i { color: var(--brand2); }
.ask-wrap .gbot-panel header a { color: var(--royal); }
.ask-wrap .gbot-x { color: var(--ink2); }
.ask-wrap .gbot-clear { color: var(--ink2); border-color: var(--line); }
.ask-wrap .gbot-form { order: 0; border-top: 0; background: transparent; padding: 6px 14px 8px; }
.ask-wrap .gbot-form input { flex: 1; }
.gbot-go { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.gbot-go[hidden] { display: none; }
.gbot-go a { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(43, 140, 255, .1); color: var(--royal); text-decoration: none; }
.gbot-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.gbot-sugg .pick, .ask-wrap .gb .pick { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line);
  color: var(--ink2); cursor: pointer; }
.ask-wrap .gbot-msgs { background: var(--card2); flex: 1 1 auto; min-height: 120px; }
.ask-wrap .gbot-note { background: var(--card); color: var(--ink3); padding: 6px 14px 10px; }

/* ---------------------------------------------------------------- frame: the rail and the page */
.shell { grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 72px); position: relative; }
.side { background: transparent !important; border-right: 0 !important; color: var(--ink2); padding: 8px 0 18px 18px; top: 72px;
  height: calc(100vh - 72px); z-index: 2; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.nav-sec { color: var(--ink3) !important; font-size: 11px !important; font-weight: 700; letter-spacing: 1.6px !important; padding: 16px 12px 6px !important; }
.side a { height: 48px; border-radius: 16px !important; color: var(--ink2) !important; font-weight: 560; padding: 0 14px 0 9px !important;
  gap: 12px !important; position: relative; box-shadow: none !important; background: transparent; }
.side a .ti { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.side a .ti .i { width: 17px; height: 17px; vertical-align: 0; }
.side a:hover { background: rgba(255, 255, 255, .45) !important; }
/* Nov 9 (Richard): the open item no longer joins the page (the page panel is gone, so the connector and its curved
   corners went too). It is dark glass with a white light edge, Day and Night alike ("Fix B"); its icon keeps its colour. */
.side a.on { background: rgba(16, 28, 56, .84) !important; border: 1px solid rgba(255, 255, 255, .25) !important; color: #fff !important;
  font-weight: 650; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 6px rgba(140, 200, 255, .4), 0 0 30px 5px rgba(120, 190, 255, .7) !important; }
html.dark .side a.on { background: rgba(16, 28, 56, .68) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 6px rgba(140, 200, 255, .35), 0 0 30px 4px rgba(140, 200, 255, .6) !important; }
.side a.on .ti { background: var(--c); color: #fff; box-shadow: 0 8px 18px -6px var(--c); }
.nav-badge { margin-left: auto; background: color-mix(in srgb, var(--c) 15%, transparent) !important; color: color-mix(in srgb, var(--c) 80%, #000) !important; font-weight: 700; }
.nav-badge.exec { background: #111 !important; color: #fff !important; }
.status-box { margin: auto 16px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glassline);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; color: var(--ink2); position: relative; z-index: 1; }
.status-box .sb-line { display: flex; align-items: center; gap: 9px; position: relative; line-height: 1.35; }
.status-box .sb-line + .sb-line { margin-top: 4px; }
.status-box a { color: var(--ink2); text-decoration: none; }
.status-box a:hover { color: var(--royal); text-decoration: underline; }
.status-box .dot { flex: none; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #10b383;
  box-shadow: 0 0 0 4px rgba(16, 179, 131, .2); }
.status-box .dot.amber { background: #f29b0a; box-shadow: 0 0 0 4px rgba(242, 155, 10, .22); }
/* Nov 9 (Richard): no page panel behind the content; only what holds text is on glass (the cards and the text bars). */
.content { margin: 0 24px 24px 0; background: transparent; border-radius: 30px;
  min-height: calc(100vh - 96px) !important; position: relative; z-index: 1; }
.main { padding: 26px 34px 60px !important; position: relative; }
.main::before { content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--page-c), transparent 70%); }

/* ---------------------------------------------------------------- page parts */
.hero { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 0 6px !important; min-height: 0 !important; }
.hero .eyebrow { color: color-mix(in srgb, var(--page-c) 78%, #000) !important; letter-spacing: 1.6px; }
.hero h1 { font-size: 34px !important; font-weight: 650 !important; letter-spacing: -.7px !important; color: var(--ink) !important; }
.hero .meta { color: var(--ink2) !important; }
.main a:not(.btn):not(.tab):not(.row):not(.bell-item) { color: color-mix(in srgb, var(--page-c) 72%, #0a1a2b); }
.card, .table-wrap, fieldset, .stat, .plist, details.pop-modal > div, .period-list {
  background: var(--card) !important; border: 0 !important; border-radius: 22px !important; outline: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(2, 50, 100, .04) !important; }
.notice { background: linear-gradient(180deg, #fffaf0, #fff6e6) !important; border: 0 !important; border-radius: 18px !important;
  outline: 1px solid rgba(227, 164, 58, .35); }
.flash { border-radius: 16px !important; }
.stat { padding: 18px 20px !important; }
.stat .ic { border-radius: 12px !important; background: color-mix(in srgb, var(--page-c) 13%, transparent) !important; color: var(--page-c) !important; }
.stat.mint, .stat.sky { background: var(--card) !important; }
.stat .n { font-weight: 650 !important; letter-spacing: -.5px; }
.stat .lbl, .stat .small { color: var(--ink3) !important; }
h2 { font-weight: 650 !important; color: var(--ink) !important; }
h2::after, .plist .phead::after { display: none !important; }
th { background: transparent !important; color: var(--ink3) !important; font-weight: 650 !important; letter-spacing: .6px !important; border-bottom: 1px solid var(--line) !important; }
td { border-bottom: 1px solid var(--line) !important; }
tr.click:hover td, .plist a.row:hover { background: color-mix(in srgb, var(--page-c) 6%, #fff) !important; }
.plist .row { border-top: 1px solid var(--line) !important; }
.plist .round { border-radius: 12px !important; background: color-mix(in srgb, var(--page-c) 13%, transparent) !important; color: var(--page-c) !important; }
.plist .round.o { background: rgba(242, 155, 10, .14) !important; color: #b06f00 !important; }
.plist .round.g { background: rgba(16, 179, 131, .14) !important; color: #0c8a64 !important; }
.btn { border-radius: 12px !important; background: var(--card2) !important; border: 0 !important; outline: 1px solid var(--line); font-weight: 600; color: var(--ink) !important; }
.btn:hover { background: color-mix(in srgb, var(--page-c) 7%, var(--card2)) !important; }
.btn.primary, .hero .btn.primary { background: linear-gradient(135deg, var(--page-c), color-mix(in srgb, var(--page-c) 60%, #2b8cff)) !important;
  color: #fff !important; outline: 0; box-shadow: 0 10px 24px -10px var(--page-c) !important; }
.btn.danger { color: #c2334f !important; }
.btn.link { background: none !important; outline: 0; }
.tabs { background: var(--card2) !important; border: 0 !important; border-radius: 16px !important; outline: 1px solid var(--line); padding: 4px !important; }
.tabs a { border-radius: 12px !important; color: var(--ink2) !important; }
.tabs a.on { background: var(--card) !important; color: color-mix(in srgb, var(--page-c) 80%, #000) !important; box-shadow: 0 2px 8px rgba(2, 50, 100, .1); font-weight: 650; }
input, select, textarea { border-radius: 12px !important; border: 1px solid rgba(10, 40, 70, .14) !important; }
.pay-pill { border-radius: 999px; background: color-mix(in srgb, var(--page-c) 12%, transparent) !important; border: 0 !important;
  color: color-mix(in srgb, var(--page-c) 80%, #000) !important; }
.pill { font-weight: 650; }

/* ---------------------------------------------------------------- hidden amounts (screen only) */
/* Oct 27 (Step 4): every money amount is a span.amt ("₱1,500.00", "−₱350.00"): kept on one line. */
.amt { white-space: nowrap; }
html.hide-amounts .amt { color: transparent !important; position: relative; display: inline-block; min-width: 3.2em; text-shadow: none; }
html.hide-amounts .amt::after { content: "••••"; position: absolute; right: 0; top: 0; color: var(--ink3); letter-spacing: 1px; }
@media print {
  html.hide-amounts .amt { color: inherit !important; min-width: 0; }
  html.hide-amounts .amt::after { content: none; }
  .top, .side, .tabbar { display: none !important; }
  .content { margin: 0; box-shadow: none; outline: 0; }
  .content::before, .content::after { display: none; }
}

/* ---------------------------------------------------------------- night */
html.dark { color-scheme: dark; --page-glass: rgba(11, 20, 34, .74);
  --bg: #050a13; --ink: #e9f2fc; --ink2: #a3b6cb; --ink3: #6f849c;
  --page: #0b1422; --card: #101b2d; --card2: #0e1828; --line: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .05); --glassline: rgba(255, 255, 255, .09);
  --shadow-x: 0 40px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  --royal: #4aa3ff; --brand: #4aa3ff;
  --ok-bg: rgba(16, 179, 131, .14); --ok: #5fe0b4; --ok-line: rgba(16, 179, 131, .3);
  --warn-bg: rgba(242, 155, 10, .14); --warn: #ffc566; --warn-line: rgba(242, 155, 10, .3);
  --bad-bg: rgba(239, 85, 121, .15); --bad: #ff8fa8; --bad-line: rgba(239, 85, 121, .3); }
html.dark body { color: var(--ink);
  background-image: radial-gradient(900px 520px at 8% -12%, rgba(43, 140, 255, .26), transparent 62%),
    radial-gradient(700px 520px at 104% 108%, rgba(22, 193, 212, .14), transparent 60%),
    radial-gradient(520px 420px at 62% 8%, rgba(124, 92, 255, .12), transparent 62%) !important; }
html.dark .shell::before, html.dark .shell::after, html.dark body::after { filter: invert(1) hue-rotate(185deg) saturate(1.5) brightness(.95); mix-blend-mode: screen; }
html.dark .shell::before { opacity: .3; } html.dark .shell::after { opacity: .35; } html.dark body::after { opacity: .55; }
html.dark .top .brand > img:not(.pas-icon) { filter: brightness(0) invert(1); opacity: .95; }   /* Oct 26: the PAS icon keeps its colours */
html.dark .mode { background: linear-gradient(135deg, #0f1c3a, #24145a); color: #5f738b; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5); }
html.dark .mode > .i + .i { color: #c9d6ff; }
html.dark .mode .knob { left: 36px; background: #1d2b4a; color: #c9d6ff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 18px -2px rgba(124, 92, 255, .7); }
html.dark .mode .k-sun { display: none; }
html.dark .mode .k-moon { display: block; }
html.dark .amounts-chip .amt-sw { background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
html.dark:not(.hide-amounts) .amounts-chip .amt-sw { background: var(--brand2); box-shadow: none; }
html.dark .side a:hover { background: rgba(255, 255, 255, .04) !important; }
html.dark .side a .ti { background: color-mix(in srgb, var(--c) 20%, transparent); }
html.dark .side a.on .ti { background: var(--c); color: #fff; }
html.dark a { color: #7cbcff; }
/* Oct 24 (Richard: Summary's names were too bright): at night, text in the page's colour is mostly light grey-blue
   with a hint of the colour; the menu, the stripe and the buttons keep the full colour. */
html.dark .main { --page-t: color-mix(in srgb, var(--page-c) 35%, #c9d6e6); }
html.dark .main a:not(.btn):not(.tab):not(.row):not(.bell-item) { color: var(--page-t); }
html.dark h1, html.dark h2, html.dark h3, html.dark strong, html.dark b, html.dark .stat .n, html.dark .hero h1 { color: var(--ink) !important; }
html.dark .hero .eyebrow { color: var(--page-t) !important; }
html.dark .card, html.dark .table-wrap, html.dark fieldset, html.dark .stat, html.dark .plist, html.dark details.pop-modal > div,
html.dark .period-list, html.dark .stat.mint, html.dark .stat.sky, html.dark .modal {
  background: #101b2d !important; color: var(--ink); }
html.dark .notice { background: rgba(227, 164, 58, .10) !important; color: #f4d49a; outline-color: rgba(227, 164, 58, .3); }
html.dark .notice b, html.dark .notice strong, html.dark .notice a { color: #ffd98a !important; }
html.dark .flash { background: rgba(16, 179, 131, .12) !important; color: #9ff0d2 !important; border-color: rgba(16, 179, 131, .3) !important; }
html.dark .errors { background: rgba(239, 85, 121, .12) !important; color: #ffb3c4 !important; border-color: rgba(239, 85, 121, .3) !important; }
html.dark th { color: var(--ink3) !important; }
html.dark td { color: var(--ink); }
html.dark td, html.dark th { background-color: transparent !important; }
html.dark tr.click:hover td, html.dark .plist a.row:hover { background: rgba(255, 255, 255, .04) !important; }
html.dark .table-wrap td.sticky, html.dark td.sticky, html.dark th.sticky { background: var(--card) !important; }
html.dark .btn { background: rgba(255, 255, 255, .05) !important; color: var(--ink) !important; }
html.dark .tabs { background: rgba(255, 255, 255, .04) !important; }
html.dark .tabs a.on { background: rgba(255, 255, 255, .09) !important; color: var(--page-t) !important; }
html.dark input, html.dark select, html.dark textarea { background-color: rgba(255, 255, 255, .04) !important; color: var(--ink) !important;
  border-color: rgba(255, 255, 255, .12) !important; }
html.dark select option { background: #101b2d; color: var(--ink); }
html.dark .pay-pill { background: color-mix(in srgb, var(--page-c) 18%, transparent) !important; color: var(--page-t) !important; }
html.dark .pill { background: rgba(255, 255, 255, .07); color: var(--ink2); }
html.dark .pill.ok { background: var(--ok-bg) !important; color: var(--ok) !important; }
html.dark .pill.warn { background: var(--warn-bg) !important; color: var(--warn) !important; }
html.dark .pill.bad { background: var(--bad-bg) !important; color: var(--bad) !important; }
html.dark .muted, html.dark .small.muted, html.dark .stat .sub { color: var(--ink3) !important; }
html.dark .stat .ic { background: color-mix(in srgb, var(--page-c) 20%, transparent) !important; color: color-mix(in srgb, var(--page-c) 55%, #fff) !important; }
html.dark .plist .round { background: color-mix(in srgb, var(--page-c) 20%, transparent) !important; color: color-mix(in srgb, var(--page-c) 55%, #fff) !important; }
html.dark .chip, html.dark .chips a, html.dark .chips span { color: var(--ink2); }
html.dark .gbot-msgs .gb.bot { background: #16233a; color: var(--ink); border-color: var(--line); }
html.dark .gbot-msgs .gb.me { background: #1d4f8a; color: #fff; }
html.dark .gbot-go a { background: rgba(74, 163, 255, .14); color: #8cc4ff; }
html.dark .bell-item .k { background: rgba(74, 163, 255, .14); color: #8cc4ff; }
html.dark .legend { background: rgba(255, 255, 255, .04) !important; color: var(--ink2) !important; border-color: var(--line) !important; }
html.dark .test-banner { background: rgba(239, 85, 121, .12) !important; color: #ffb3c4 !important; }

/* ---------------------------------------------------------------- narrower screens: the top bar makes room */
@media (max-width: 1280px), (pointer: coarse) { .top .brand { width: auto; } .clock-chip [data-clock-date] { display: none; } }
@media (max-width: 1100px), (pointer: coarse) { .top .brand .pas-icon { display: none; } .amounts-chip .lbl { display: none; } .kbd { display: none; } }
@media (max-width: 900px), (pointer: coarse) { .clock-chip { display: none; } }

/* ---------------------------------------------------------------- phone: account circle and bell only */
@media (max-width: 760px), (pointer: coarse) {
  .top { height: 60px; padding: 0 12px; gap: 8px; }
  .top .brand { width: auto; }
  .top .brand > img { height: 28px; }
  .top .brand .pas-icon { display: none; }
  .menu-btn { display: inline-flex; border: 0; background: none; padding: 4px; color: var(--ink); cursor: pointer; }
  .ask-wrap { flex: 0 0 0; max-width: 0; }
  .ask { display: none; }
  .ask-wrap .gbot-panel { position: fixed; left: 10px; right: 10px; top: 64px; min-width: 0; }
  .top .chip, .top .mode, details.report-flag { display: none; }
  .hold .pop { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
  .shell { display: block; }
  .shell::before, .shell::after { display: none; }
  .side { position: fixed; top: 0; height: 100vh; background: var(--bg) !important; padding-top: 18px; }
  .side a.on::after { display: none; }
  .content { margin: 0; border-radius: 0; min-height: calc(100vh - 60px) !important; }
  .content::before, .content::after { display: none; }
  .main { padding: 18px 16px 150px !important; }
  .main::before { left: 16px; right: 16px; }
  .hero h1 { font-size: 26px !important; }
  .tabbar { background: color-mix(in srgb, var(--page) 92%, transparent) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line) !important; }
  .tabbar a { color: var(--ink2) !important; }
  .tabbar a.on { color: var(--royal) !important; }
  .phone-extra { display: block !important; }
}
/* On a phone the account menu also holds the switches the top bar has no room for. */
.phone-extra { display: none; }
.mi-report > summary { list-style: none; }
.mi-report > summary::-webkit-details-marker { display: none; }
.mi-report form { padding: 4px 8px 8px; }

/* Each menu item's colour; the page (main) takes the open item's colour. */
.tc-home { --c: #0262a3; --page-c: #0262a3; }   .tc-att { --c: #d39e00; --page-c: #b58600; }
.tc-forms { --c: #06b6d4; --page-c: #0891b2; }  .tc-sum { --c: #c026d3; --page-c: #c026d3; }
.tc-memo { --c: #9333ea; --page-c: #9333ea; }   .tc-team { --c: #0d9488; --page-c: #0d9488; }
.tc-appr { --c: #ea580c; --page-c: #ea580c; }   .tc-pay { --c: #10b383; --page-c: #0c9a70; }
.tc-emp { --c: #4f46e5; --page-c: #4f46e5; }    .tc-mine { --c: #65a30d; --page-c: #5a930b; }
.tc-set { --c: #64748b; --page-c: #64748b; }    .tc-users { --c: #64748b; --page-c: #64748b; }
.tc-logs { --c: #475569; --page-c: #475569; }

/* Wide tables: the name column that stays in place keeps a solid background (look.css clears th/td backgrounds). */
table.register tr > :first-child, table.att-grid tr > :first-child, th.sticky, td.sticky { background: var(--card) !important; }
table.register tr.total > :first-child { background: var(--card2) !important; }
html.dark table.register tr > :first-child, html.dark table.att-grid tr > :first-child, html.dark th.sticky, html.dark td.sticky { background: #101b2d !important; }
html.dark table.register tr.total > :first-child { background: #0e1828 !important; }
[data-scroll-arrows] table tr:first-child > th, table.sheet tr:first-child th, table.sheet tr > th:first-child { background: var(--card) !important; }
[data-scroll-arrows] table tr.total > td, [data-scroll-arrows] table tr.total > th { background: var(--card2) !important; }
html.dark [data-scroll-arrows] table tr:first-child > th, html.dark table.sheet tr:first-child th, html.dark table.sheet tr > th:first-child { background: #101b2d !important; }
html.dark [data-scroll-arrows] table tr.total > td, html.dark [data-scroll-arrows] table tr.total > th { background: #0e1828 !important; }
.topic-bar { top: 72px; }

/* ---------------------------------------------------------------- private notes (Oct 24) */
.notes-tab { position: fixed; right: 0; top: 46%; z-index: 25; }
.notes-tab > summary { list-style: none; cursor: pointer; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 0 14px 14px 0; font-size: 12.5px; font-weight: 650; color: #8a5a00;
  background: linear-gradient(160deg, #fff8e8, #ffefcc); box-shadow: 0 8px 24px -10px rgba(2, 50, 100, .35); border: 1px solid rgba(227, 164, 58, .4); border-left: 0; }
.notes-tab > summary::-webkit-details-marker { display: none; }
.notes-tab > summary .i { transform: rotate(90deg); }
.notes-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: #e3a43a; }
.notes-pop { position: absolute; right: 44px; top: -300px; width: min(765px, calc(100vw - 140px));   /* Nov 17 (Richard): 1.5x (was 510 px, 6 lines) */
  padding: 16px !important;
  background: linear-gradient(160deg, #fffaf0, #fff4dc) !important; outline-color: rgba(227, 164, 58, .35) !important; box-shadow: var(--shadow-x) !important; }
.notes-head { display: flex; justify-content: space-between; align-items: center; }
.notes-head strong { display: flex; gap: 8px; align-items: center; color: #8a5a00; }
.notes-pop textarea { width: 100%; background: #fff; }
.notes-pop .remind { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.notes-pop .remind input { width: auto; }
html.dark .notes-tab > summary { background: linear-gradient(160deg, #2a2110, #33280f); color: #f0c46e; border-color: rgba(227, 164, 58, .3); }
html.dark .notes-pop { background: linear-gradient(160deg, #1f1a10, #19150c) !important; }
html.dark .notes-head strong { color: #f0c46e; }
html.dark .notes-pop textarea { background: rgba(255, 255, 255, .04); }
/* My notes (Oct 24): one line per note; click to read it. */
.nl-row { border-top: 1px solid var(--line); }
.nl-row:first-child { border-top: 0; }
.nl-row > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 12px;
  align-items: center; padding: 12px 6px; border-radius: 12px; }
.nl-row > summary::-webkit-details-marker { display: none; }
.nl-row > summary:hover { background: var(--card2); }
.nl-row .ci { width: 22px; height: 22px; }
.nl-title { font-weight: 650; color: var(--ink); }
.nl-page { font-size: 12px; color: var(--ink3); font-weight: 500; margin-left: 8px; }
.nl-rem { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: rgba(227, 164, 58, .16); color: #8a5a00; white-space: nowrap; }
html.dark .nl-rem { color: #f0c46e; }
.nl-chev { color: var(--ink3); transition: transform .15s; }
.nl-row[open] .nl-chev { transform: rotate(90deg); }
.nl-body { padding: 4px 6px 14px 44px; }
.nl-body p { margin: 0 0 10px; white-space: pre-wrap; }
.nl-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nl-acts form { margin: 0; }
.nl-acts .muted { margin-left: auto; }
.notes-pop .note-title { width: 100%; font-weight: 600; }
@media (max-width: 760px), (pointer: coarse) {
  .notes-tab { top: auto; bottom: 120px; }
  .notes-pop { position: fixed; left: 10px; right: 10px; top: 80px; width: auto; }
  .nl-body { padding-left: 6px; }
}
@media print { .notes-tab { display: none !important; } }

/* Oct 24: the government deductions "stairs" at night: light text on every step. */
html.dark .stair { color: #e9f2fc !important; }
html.dark .stair.h5 { background: #2b5c92 !important; }

/* ---------------------------------------------------------------- true-colour icons (Oct 24) */
/* On their own neutral tile: soft blue-grey by day (a step darker than the card), faint light at night. */
.ci { width: 26px; height: 26px; display: block; flex: none; }
.stat .ic:has(> .ci) { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.plist .round:has(> .ci) { width: 38px; height: 38px; }
.plist .round .ci, .bell-item .k .ci { width: 24px; height: 24px; }
.bell-item .k { width: 36px; height: 36px; border-radius: 11px; }
.sb-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.sb-ic .ci { width: 20px; height: 20px; }
.stat .ic:has(> .ci), .plist .round:has(> .ci), .bell-item .k, .sb-ic { background: #E3EAF3 !important; outline: 1px solid rgba(10, 40, 70, .10); color: inherit !important; }
html.dark .stat .ic:has(> .ci), html.dark .plist .round:has(> .ci), html.dark .bell-item .k, html.dark .sb-ic { background: rgba(255, 255, 255, .06) !important; outline-color: rgba(255, 255, 255, .08); }
.year-cards .stat { display: flex; gap: 14px; align-items: flex-start; }
@media print { body::after { display: none !important; } }
/* The status box sits inside the side menu: its links must not take the menu's big link style. */
.side .status-box a { display: inline; height: auto; padding: 0 !important; gap: 0 !important; border-radius: 0 !important; font-size: inherit;
  font-weight: inherit; background: none !important; color: var(--ink2) !important; }
.side .status-box a:hover { color: var(--royal) !important; text-decoration: underline; }

/* Oct 24: at night, main buttons outside the page (the Notes window, pop-ups) keep their colour. */
html.dark .btn.primary { background: linear-gradient(135deg, var(--page-c), color-mix(in srgb, var(--page-c) 60%, #2b8cff)) !important; color: #fff !important; }
/* Oct 24 (Richard): an unsaved roster change keeps its icon; an amber dot (and the dotted outline) says "not saved yet". */
.rp-box { position: relative; }
.rp-dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E3A43A; box-shadow: 0 0 0 2px var(--card); }
/* Oct 24 (Richard): the Notes tab 50% longer than at first (about 88px to 132px); same width and text size. */
.notes-tab > summary { padding: 36px 8px; }

/* ---------------------------------------------------------------- File a form (Oct 26, Richard) */
.reason-btns { border: 0; padding: 0; margin: 0; }
.reason-btns legend { font-weight: 600; margin-bottom: 6px; }
.rb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rb { position: relative; display: block; cursor: pointer; margin: 0; }
.rb input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rb > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); transition: border-color .15s, background .15s; }
.rb strong { font-size: 14px; }
.rb small { color: var(--ink2); font-size: 12px; line-height: 1.35; }
.rb:hover > span { border-color: color-mix(in srgb, var(--page-c) 45%, transparent); }
.rb input:checked + span { border-color: var(--page-c); background: color-mix(in srgb, var(--page-c) 10%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-c) 18%, transparent); }
.rb input:focus-visible + span { outline: 2px solid var(--brand2); outline-offset: 2px; }
.ih-box { background: var(--card2); border-radius: 12px; }
.ih-box strong { display: block; font-size: 15px; }
.ih-box p { margin: 4px 0 0; }
.ff-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-buttons > details > summary { display: inline-flex; align-items: center; gap: 8px; }
.ff-buttons .ci { width: 20px; height: 20px; }
.modal-form .file-form { min-width: min(560px, 86vw); }
.form-summary { max-width: 560px; }
.sum-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.sum-table th { text-align: left; color: var(--ink2); font-weight: 500; padding: 7px 14px 7px 0; width: 38%; vertical-align: top;
  border-bottom: 1px solid var(--line); }
.sum-table td { padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

/* ---------------------------------------------------------------- Home for each role (Oct 26, Richard) */
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.hgrid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.hgrid:empty, .hgrid2:empty { display: none; }
.hcard { padding: 18px 20px !important; margin: 0 !important; min-width: 0; }
.hcard h3 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.hcard .big { font-size: 30px; font-weight: 650; letter-spacing: -.5px; }
.hcard .big.hstage { font-size: 22px; }
.hcard .sub { color: var(--ink3); font-size: 13px; }
.hcard .ic2 { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #E3EAF3;
  outline: 1px solid rgba(10, 40, 70, .1); }
html.dark .hcard .ic2 { background: rgba(255, 255, 255, .06); }
.hcard .ic2 .ci { width: 24px; height: 24px; display: block; }
.hrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hrow:first-of-type { border-top: 0; }
.hrow .grow { flex: 1; min-width: 0; }
.hrow small { display: block; color: var(--ink3); font-size: 12px; }
.home-approve .table-wrap { box-shadow: none; border: 0; padding: 0; background: transparent; }
@media (max-width: 1100px), (pointer: coarse) { .hgrid { grid-template-columns: 1fr 1fr; } .hgrid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px), (pointer: coarse) { .hgrid { grid-template-columns: 1fr; } }
/* Oct 26: a panel with its own card (Upload scans, Add a loan…) shown in the middle of the page: no box in a box. */
.modal.modal-form > .card.pop { position: static; width: auto; max-width: none; margin: 0; padding: 0; border: 0;
  box-shadow: none; background: transparent; }
.modal.modal-form:has(.file-form), .modal.modal-form:has(.upload-row), .modal.modal-form:has(form[action="/advances"]) { max-width: 660px; }
/* Oct 26: parts a form shows only when they apply (Unpaid lunch, Whole day, Location) stay hidden until then. */
[data-lunch-box][hidden], [data-whole-day-box][hidden], [data-ob-only][hidden] { display: none !important; }

/* ---------------------------------------------------------------- Late tracker (Oct 26, Richard) */
.month-nav { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.month-nav select.period-current { width: auto; flex: none; height: 48px; padding: 0 16px; font-size: 17px; font-weight: 650; border-radius: 14px; cursor: pointer; }
.late-tracker .more-days { display: inline; }
.late-tracker .more-days > summary { display: inline; cursor: pointer; color: var(--page-c); font-weight: 600; list-style: none; margin-left: 4px; }
.late-tracker .more-days > summary::-webkit-details-marker { display: none; }
.late-tracker .more-days[open] > summary { display: block; margin: 0 0 2px; }

/* ---------------------------------------------------------------- Weekly workers (Oct 26, Richard) */
.week-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.week-current { font-size: 17px; font-weight: 650; cursor: default; }
.job-row { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
.release-sheet table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.release-sheet th, .release-sheet td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.release-sheet .sign-line { min-width: 220px; border-bottom: 1px solid var(--ink3); }
.release-sheet .sign-row { display: flex; gap: 40px; margin-top: 28px; }
@media (max-width: 900px), (pointer: coarse) { .week-stats { grid-template-columns: 1fr 1fr; } .hero .period-nav:has(.week-current) { flex-wrap: wrap; } }
@media print { .release-sheet { box-shadow: none !important; border: 0 !important; } }

/* ================================================================ The new look (Oct 26, Richard)
   A townhouse photo behind everything (Day and Night; a regular copy for laptops, a 4K copy for big or sharp screens,
   chosen by the browser), a floating glass top bar, the page and cards as glass. The menu has no panel of its own:
   the open item is the page's own glass and joins the page with the curved corners, as before; the menu column only
   blurs the photo behind it, with the same blur as the page, so the open item and the page read as one surface.
   Nov 9 (Richard): replaced: no page panel and no column blur; glass only on what holds content (see --g-bg). */
.shell::before, .shell::after, body::after { display: none !important; }
body { background: #6d8fb5 url(/static/art/bg-day-2026-11-17-1920.jpg) center / cover fixed no-repeat !important; }
html.dark body { background: #0b1630 url(/static/art/bg-night-2026-11-17-1920.jpg) center / cover fixed no-repeat !important; }
@media (min-width: 1921px), (min-width: 1300px) and (min-resolution: 1.5dppx) {
  body { background-image: url(/static/art/bg-day-2026-11-17-3840.jpg) !important; }
  html.dark body { background-image: url(/static/art/bg-night-2026-11-17-3840.jpg) !important; }
}
.top { background: rgba(255, 255, 255, .42) !important; backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%); }
html.dark .top { background: rgba(14, 26, 52, .42) !important; }
/* Nov 9 (Richard): glass only on what holds content. The menu column and the page have no blur of their own; each
   menu button, card, status box and text bar is its own glass (--g-bg, --g-line, --g-blur). */
/* Nov 9, round 2 (Richard): Day is a clear crystal glass (a fine frost grain, a pool of light from the top-left, a
   fill of 50% white fading to 28%, a cut-glass rim drawn in the 1 px edge, a 14 px blur so the photo stays easy to
   make out, and layered depth); Night is the Attendance header card's navy glass (68%, blur 20). --g-solid is the
   denser version for a table's fixed column, so cells scrolling under it never show through. */
:root { --page-glass: rgba(255, 255, 255, .42);
  --g-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'180'%20height%3D'180'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.85'%20numOctaves%3D'3'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%20.55%20%200%200%200%200%20.62%20%200%200%200%200%20.72%20%200%200%200%20.07%200'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E") padding-box,
    radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 42%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(228, 240, 253, .28) 100%) padding-box,
    linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, .55) 22%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .3) 78%,
      rgba(255, 255, 255, .85) 100%) border-box;
  --g-line: transparent; --g-blur: blur(14px) saturate(170%) brightness(1.04);
  --g-shadow: inset 0 -12px 20px -16px rgba(255, 255, 255, .7), inset 0 0 20px rgba(255, 255, 255, .3),
    0 1px 2px rgba(15, 40, 80, .08), 0 10px 22px -10px rgba(15, 40, 80, .2), 0 30px 60px -28px rgba(15, 40, 80, .38);
  --g-solid: rgba(250, 252, 255, .9); }
html.dark { --page-glass: rgba(10, 20, 42, .52); --g-bg: rgba(16, 28, 56, .68); --g-line: rgba(255, 255, 255, .15);
  --g-blur: blur(20px) saturate(150%); --g-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6); --g-solid: rgba(16, 28, 56, .92); }
.side { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.side .nav-sec { color: #12263f !important; }
html.dark .side .nav-sec { color: #c3d3ea !important; }
.side a:not(.on) { color: #0d1f36 !important; font-weight: 600; }
html.dark .side a:not(.on) { color: #eef4fd !important; }
.side .status-box { background: var(--g-bg) !important; border: 1px solid var(--g-line) !important;
  backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
.main::before { display: none; }
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .top { margin: 14px 18px 0; height: 66px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 18px 40px -18px rgba(10, 30, 60, .35); }
  html.dark .top { border-color: rgba(255, 255, 255, .14); }
  .side { top: 94px !important; height: calc(100vh - 94px) !important; }
  .content { margin: 14px 18px 18px 0 !important; border-radius: 26px; }
}
/* cards and tables: their own glass (Nov 9: a stronger blur and tint now that no page panel sits behind them) */
.card, .table-wrap, .stat, .plist, fieldset, .hcard { background: var(--g-bg) !important;
  backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-line) !important; box-shadow: 0 12px 30px -16px rgba(10, 30, 60, .35) !important; }
html.dark .card, html.dark .table-wrap, html.dark .stat, html.dark .plist, html.dark fieldset, html.dark .hcard {
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6) !important; }
html.dark h1, html.dark .hero h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
/* Night: menu icons on light tiles in their own colour; badges and grey text a step brighter */
html.dark .side a:not(.on) .ti { background: color-mix(in srgb, var(--c) 30%, rgba(255, 255, 255, .10)) !important;
  color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); }
html.dark .side a:not(.on) .ti .i { color: color-mix(in srgb, var(--c) 35%, #fff) !important; }
html.dark .nav-badge:not(.exec), html.dark .tab-badge:not(.exec) {
  background: color-mix(in srgb, var(--c, #f29b0a) 55%, rgba(255, 255, 255, .16)) !important; color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
html.dark { --ink2: #c5d2e1; --ink3: #a3b5ca; --muted: #c5d2e1; --faint: #a3b5ca; }
html.dark .muted, html.dark .sub, html.dark .meta, html.dark small, html.dark .hrow small, html.dark th, html.dark .lbl,
html.dark .two-l small, html.dark .hero .meta, html.dark .stat .sub { color: #b9c8da !important; }
@media print { body { background: #fff !important; } }

/* ================================================================ Oct 26 (Richard): readability pass */
/* Menu (computer screens): a light glass pill behind every item, solid colour icon tiles, bigger text; the open item
   gets a stronger mark (Nov 9: no join with the page any more). */
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  html body .side a { font-size: 15.5px !important; }
  html body .side .nav-sec { font-size: 12px !important; color: #061528 !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, .95), 0 0 14px rgba(255, 255, 255, .8); }
  html.dark body .side .nav-sec { color: #dfe8f5 !important; text-shadow: none; }
  html body .side .status-box a { font-size: inherit !important; }
  html body .side a:not(.on) .ti, html.dark body .side a:not(.on) .ti { background: var(--c) !important;
    box-shadow: 0 6px 14px -6px var(--c) !important; }
  html body .side a:not(.on) .ti .i, html.dark body .side a:not(.on) .ti .i { color: #fff !important; }
  html body .side a:not(.on):not(.status-box a) { background: var(--g-bg) !important; border: 1px solid var(--g-line) !important;
    backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); border-radius: 16px !important;
    margin: 0 14px 6px 0 !important; color: #061528 !important; box-shadow: 0 6px 16px -10px rgba(10, 30, 60, .4) !important; }
  html.dark body .side a:not(.on):not(.status-box a) { color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6) !important; }
  html body .side a.on { font-weight: 800 !important; font-size: 16px !important; margin: 0 14px 6px 0 !important; }
  html body .side a.on .ti { width: 38px !important; height: 38px !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 8px 18px -6px var(--c) !important; }
}
/* "!" and counters: solid colour, white text; a white ring by day, a faint ring and soft glow at night. */
html body .nav-badge:not(.exec), html body .tab-badge:not(.exec), html.dark body .nav-badge:not(.exec), html.dark body .tab-badge:not(.exec) {
  background: var(--c, #e8930c) !important; color: #fff !important; font-weight: 800 !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 10px -3px var(--c, #e8930c) !important; }
html.dark body .nav-badge:not(.exec), html.dark body .tab-badge:not(.exec) {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .22), 0 0 12px -2px var(--c, #e8930c) !important; }
/* Needs attention: a banner at the very top of the page in its own orange (no page uses it). */
.attn-banner { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(242, 113, 28, .16), rgba(242, 113, 28, .04)); border: 1px solid rgba(242, 113, 28, .45); }
html.dark .attn-banner { background: linear-gradient(90deg, rgba(242, 113, 28, .28), rgba(242, 113, 28, .08)); border-color: rgba(255, 160, 90, .5); }
.attn-banner .attn-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f2711c; flex: none; }
.attn-banner .attn-ic .i { color: #fff !important; }
.attn-banner strong { font-size: 15px; color: var(--ink); }
.attn-banner .attn-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
html body .btn.attn-go, html.dark body .btn.attn-go { background: #f2711c !important; color: #fff !important; outline: 0 !important; font-weight: 700; }
html body .btn.attn-go::after { content: "\203A"; margin-left: 6px; font-weight: 800; }
@media (max-width: 760px), (pointer: coarse) { .attn-banner .attn-acts { margin-left: 0; } }
/* Notes tab: the night colours by day too, 25% taller, in the middle of the window's right edge. */
html body .notes-tab > summary { background: linear-gradient(160deg, #2a2110, #33280f); color: #f0c46e; border-color: rgba(227, 164, 58, .3);
  padding: 53px 8px; }
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) { .notes-tab { top: 50%; transform: translateY(-50%); } }
/* Every fieldset is a card with its heading inside: a colour tile (the page's menu colour) and bigger text. */
.main fieldset:not(.plain-fieldset) { position: relative; padding: 76px 24px 20px !important; border-radius: 22px !important;
  margin: 0 0 16px !important; min-width: 0; }
.main fieldset:not(.plain-fieldset) > legend { position: absolute; top: 16px; left: 24px; right: 24px; padding: 0 0 12px !important;
  background: none !important; border-radius: 0 !important; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750;
  color: #0d1f36 !important; border-bottom: 1px solid rgba(13, 31, 54, .10); }
html.dark .main fieldset:not(.plain-fieldset) > legend { color: #eef4fd !important; border-bottom-color: rgba(255, 255, 255, .10); }
.main fieldset > legend .lt { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--page-c); box-shadow: 0 6px 14px -6px var(--page-c); }
.main fieldset > legend .lt .i { color: #fff !important; width: 18px; height: 18px; }
.main fieldset label > span { font-size: 14px; }
/* Pop-ups: the page behind fades and blurs; the window is a glass card like the rest of PAS, with room around its text
   (the inner card's own outline used to hug the text). */
.modal-backdrop { background: rgba(6, 12, 26, .58) !important; backdrop-filter: blur(7px) saturate(115%); -webkit-backdrop-filter: blur(7px) saturate(115%); }
.modal { background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .85) !important; border-radius: 24px !important; padding: 24px 26px !important;
  box-shadow: 0 34px 70px -24px rgba(4, 12, 30, .6) !important; }
html.dark .modal { background: rgba(16, 28, 56, .94) !important; border-color: rgba(255, 255, 255, .14) !important; }
.modal .card.pop { outline: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.modal h3 { font-size: 19px !important; margin: 0 0 4px !important; }
.modal .form-choices { gap: 10px !important; margin: 16px 0 18px !important; }
.modal .form-choices a { grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px !important; border-radius: 16px !important;
  background: rgba(255, 255, 255, .7) !important; border: 1px solid rgba(13, 31, 54, .08) !important; }
html.dark .modal .form-choices a { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .10) !important; }
.modal .form-choices a strong { grid-column: 2; font-size: 15px; }
.modal .form-choices a span:not(.fc-ic) { grid-column: 2; font-size: 13px !important; }
.form-choices .fc-ic { grid-row: 1 / span 2; grid-column: 1; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--fc, var(--page-c)); }
.form-choices .fc-ic .i { color: #fff !important; width: 19px; height: 19px; }
.fc-time { --fc: #0891b2; } .fc-ot { --fc: #d39e00; } .fc-leave { --fc: #7c3aed; } .fc-me { --fc: #65a30d; } .fc-paper { --fc: #4f46e5; }
html.dark .modal .form-choices a strong { color: #fff !important; }
/* Cancel buttons have a colour of their own. */
html body .btn.cancel { background: color-mix(in srgb, #0262a3 12%, #fff) !important; color: #0262a3 !important;
  outline-color: color-mix(in srgb, #0262a3 30%, transparent) !important; }
/* Attendance: the Employees heading with the name search beside it. */
.grid-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 10px; }
.grid-head h3 { margin: 0 !important; }
.grid-head input[type=search] { width: 300px; max-width: 100%; }
/* Summary: the table fits a normal screen (headings wrap, the name column keeps its width). */
.summary-table th { white-space: normal; }
.summary-table td:first-child { min-width: 190px; }
.summary-table .pill { white-space: normal; }
/* Home: the position and department tags in night colours at night. */
html.dark .me-tag { background: rgba(242, 180, 127, .14) !important; border-color: rgba(242, 180, 127, .35) !important; color: #ffe2c4 !important; }
html.dark .me-tag .i { color: #f2b47f !important; }
/* Employee profile: the Add… and Scanner IDs… buttons sit beside their value, not under it. */
.kv dd > details.note-box.pop-modal { display: inline-block; margin-left: 8px; vertical-align: middle; }
/* Card headings with a colour tile (Payroll's status and Not ready cards). */
.ch { display: flex; align-items: center; gap: 12px; font-size: 18px !important; font-weight: 750 !important; }
.ch .lt { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--page-c);
  box-shadow: 0 6px 14px -6px var(--page-c); }
.ch .lt .i { color: #fff !important; width: 18px; height: 18px; }
/* Payroll (Oct 26, Richard): the tabs alone, then one status card with the actions; rarely used ones under More. */
.pay-status { display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: center; padding: 20px 24px !important; margin: 16px 0; }
.pay-status .st-line { color: var(--ink2); font-size: 14px; margin: 4px 0 0 48px; }
.pay-status .st-chips { display: flex; gap: 8px; margin: 10px 0 0 48px; flex-wrap: wrap; }
.pay-status .st-chips:empty { display: none; }
.pay-status .bar-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.btn.more::after { content: "\25BE"; margin-left: 6px; font-size: 11px; }
.more-menu .more-pop { display: flex; flex-direction: column; gap: 8px; width: 240px; right: 0; padding: 12px !important; }
.more-menu .more-pop form { margin: 0; }
.more-menu .more-pop .btn { width: 100%; justify-content: flex-start; }
@media (max-width: 900px), (pointer: coarse) { .pay-status { grid-template-columns: 1fr; } .pay-status .bar-acts { justify-content: flex-start; } }
.nr-card { padding: 18px 24px !important; margin: 16px 0; }
.nr-card > details > summary.nr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.nr-card > details > summary::-webkit-details-marker { display: none; }
.nr-card > details[open] > summary { margin-bottom: 12px; }
.nr-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nr-card details[open] .when-closed, .nr-card details:not([open]) .when-open { display: none; }
.nr-card .table-wrap { background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 !important; }
.title-row .toolbar { margin: 0 0 0 auto; }
/* Payroll's main action keeps the page colour; the Summary's last column has room for its notes. */
html body .pay-status .btn.compute { background: var(--page-c) !important; color: #fff !important; outline: 0 !important; }
.summary-table td:last-child { min-width: 230px; }
html.dark body .btn.cancel { background: rgba(96, 165, 250, .26) !important; color: #e3efff !important; outline-color: rgba(147, 197, 253, .55) !important; }

/* ================================================================ Oct 27 (Richard): forms in a window */
/* The window over the page: a header (Back to choices, the form's name, close) and the form's own page inside. */
.modal.page-form { max-width: 880px !important; width: 94vw; padding: 18px 20px 12px !important; }
.page-form .pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.page-form .pf-head h3 { margin: 0 !important; flex: 1; }
.page-form .back-choices { font-size: 13.5px; font-weight: 650; color: var(--royal, #0262a3); white-space: nowrap; }
html.dark .page-form .back-choices { color: #9cc7ff; }
.pf-frame { display: block; width: 100%; height: 60vh; border: 0; border-radius: 16px; background: transparent; }
/* The form's own page inside the window: no menu, top bar, page title, banner or notes; no background. */
html.embed, html.embed body { background: transparent !important; background-image: none !important; }
html.embed .top, html.embed .side, html.embed .tabbar, html.embed .notes-tab, html.embed .hero, html.embed .attn-banner,
html.embed .test-banner, html.embed .idle-note { display: none !important; }
html.embed .shell { display: block !important; min-height: 0 !important; padding: 0 !important; }
html.embed .content { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; min-height: 0 !important; }
html.embed .content::before, html.embed .content::after, html.embed .main::before { display: none !important; }
html.embed .main { padding: 2px 4px 8px !important; max-width: none !important; }
/* Cards in a window keep their heading inside, like on the page. */
.modal fieldset:not(.plain-fieldset) { position: relative; padding: 70px 20px 16px !important; border-radius: 20px !important; margin: 6px 0 14px !important; min-width: 0; }
.modal fieldset:not(.plain-fieldset) > legend { position: absolute; top: 14px; left: 20px; right: 20px; padding: 0 0 10px !important;
  background: none !important; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 750; color: #0d1f36 !important;
  border-bottom: 1px solid rgba(13, 31, 54, .10); }
html.dark .modal fieldset:not(.plain-fieldset) > legend { color: #eef4fd !important; border-bottom-color: rgba(255, 255, 255, .10); }
.modal fieldset > legend .lt { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--page-c, #0891b2); }
.modal fieldset > legend .lt .i { color: #fff !important; width: 17px; height: 17px; }
/* Date, Time in and Time out (or Start and End) on one row of three. */
.file-form .form-grid:has([name=time_in]), .file-form .form-grid:has([name=start_time]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 560px) { .file-form .form-grid:has([name=time_in]), .file-form .form-grid:has([name=start_time]) { grid-template-columns: 1fr !important; } }
/* 16 px between boxes stacked on a page (a table right above a card, a card above a notice…). */
.main :is(.table-wrap, .grid-wrap, .card, .notice, .stats, fieldset) + :is(.table-wrap, .grid-wrap, .card, .notice, .stats, fieldset, form, .actions) { margin-top: 16px; }
html.embed .form-grid:has([name=time_in]), html.embed .form-grid:has([name=start_time]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
/* In the window, boxes sit side by side as on a computer screen (one per row only on a phone). */
html.embed .form-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; }

/* ================================================================ Oct 27 (Richard): quick views (Round 2) */
.modal.page-form.quick { max-width: 1120px !important; width: 95vw; }
.quick-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(13, 31, 54, .1); }
html.dark .quick-foot { border-top-color: rgba(255, 255, 255, .1); }
html.quick .q-off { display: none !important; }
html.quick .person-flags, html.quick .table-wrap { margin: 0 !important; }
/* The forms list: two lines per form, the form type always first (a coloured tag), then name, date, status, buttons;
   the details on the second line. */
html.quick [data-quick="forms"] { background: none !important; outline: 0 !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; overflow: visible !important; }
html.quick [data-quick="forms"] table, html.quick [data-quick="forms"] tbody { display: block; }
html.quick [data-quick="forms"] tr:first-child { display: none; }
html.quick [data-quick="forms"] tr[data-kind] { display: grid; grid-template-columns: 150px minmax(0, 1.4fr) 130px 110px minmax(230px, auto);
  grid-template-areas: "kind who when state acts" "kind det det by by"; gap: 6px 14px; align-items: start; margin: 0 0 8px; padding: 12px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(13, 31, 54, .08); }
html.dark.quick [data-quick="forms"] tr[data-kind] { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .10); }
html.quick [data-quick="forms"] tr[data-kind].q-off { display: none !important; }
html.quick [data-quick="forms"] td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
html.quick [data-quick="forms"] td:nth-child(1) { grid-area: who; font-weight: 700; }
html.quick [data-quick="forms"] td:nth-child(2) { grid-area: when; white-space: nowrap; font-weight: 650; }
html.quick [data-quick="forms"] td:nth-child(3) { grid-area: kind; font-size: 12.5px; color: var(--ink2); }
html.quick [data-quick="forms"] td:nth-child(4) { grid-area: det; font-size: 13.5px; padding-top: 6px !important; border-top: 1px dashed rgba(13, 31, 54, .12) !important; }
html.quick [data-quick="forms"] td:nth-child(5) { grid-area: by; font-size: 12.5px; color: var(--ink2); text-align: right; padding-top: 6px !important;
  border-top: 1px dashed rgba(13, 31, 54, .12) !important; }
html.dark.quick [data-quick="forms"] td:nth-child(4), html.dark.quick [data-quick="forms"] td:nth-child(5) { border-top-color: rgba(255, 255, 255, .12) !important; }
html.quick [data-quick="forms"] td:nth-child(6) { grid-area: state; }
html.quick [data-quick="forms"] td:nth-child(7) { grid-area: acts; text-align: right; }
html.quick [data-quick="forms"] td:nth-child(3) > .pill:first-child { display: flex; justify-content: center; width: 126px; padding: 5px 10px;
  border-radius: 10px; font-weight: 750; font-size: 13px; color: #fff !important; margin-bottom: 4px; }
html.quick tr[data-kind="time"] td:nth-child(3) > .pill:first-child { background: #0891b2 !important; }
html.quick tr[data-kind="overtime"] td:nth-child(3) > .pill:first-child { background: #c98f00 !important; }
html.quick tr[data-kind="leave"] td:nth-child(3) > .pill:first-child { background: #7c3aed !important; }
html.quick [data-quick="forms"] td:nth-child(3) > .pill:first-child::before { content: none; }
.wf-count { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.wf-count button { font: inherit; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(13, 31, 54, .07); color: var(--ink); }
html.dark .wf-count button { background: rgba(255, 255, 255, .09); }
.wf-count button.on { background: #0262a3; color: #fff; }
html.dark .wf-count button.on { background: #2b8cff; }
@media (max-width: 760px), (pointer: coarse) {
  html.quick [data-quick="forms"] tr[data-kind] { grid-template-columns: 1fr 1fr; grid-template-areas: "kind state" "who when" "det det" "by by" "acts acts"; }
  html.quick [data-quick="forms"] td:nth-child(7) { text-align: left; }
}
/* Every pop-up window has a slight border: black by day, teal at night. */
html body .modal { border: 2px solid rgba(10, 14, 22, .85) !important; box-shadow: 0 0 0 4px rgba(10, 14, 22, .08), 0 34px 70px -24px rgba(4, 12, 30, .6) !important; }
html.dark body .modal { border-color: rgba(45, 212, 191, .6) !important; box-shadow: 0 0 0 4px rgba(45, 212, 191, .10), 0 34px 70px -24px rgba(0, 0, 0, .7) !important; }
html.quick [data-quick="forms"] td:nth-child(4) > :is(div, strong, span, .ba) { display: inline; }
html.quick [data-quick="forms"] td:nth-child(4) > :is(div, strong, span, .ba):not(:last-child)::after { content: "  ·  "; color: var(--ink3); font-weight: 400; }
html.quick main { min-height: 0 !important; }

/* Oct 27 (Richard): the Export window shows only the chosen file's own choices, in one tidy box. */
.export-sub[hidden] { display: none !important; }
.modal .export-sub { display: flex; flex-wrap: wrap; align-items: center; margin: 2px 0 12px !important; padding: 12px 14px !important;
  border-radius: 14px !important; gap: 6px 18px !important; }
.modal .export-sub > .small { flex-basis: 100%; font-weight: 700; margin: 0; }
.modal .export-sub label.check { margin: 0 !important; padding: 2px 0 !important; min-height: 0 !important; height: auto !important;
  display: inline-flex !important; align-items: center; gap: 6px; }
.modal .export-sub label:not(.check) { display: flex; align-items: center; gap: 10px; margin: 6px 0 0 !important; flex-basis: 100%; }
.modal .export-sub label:not(.check) > span { min-width: 60px; }
.modal .export-sub select, .modal .export-sub input:not([type=checkbox]):not([type=radio]) { width: auto !important; min-width: 160px; }

/* ================================================================ Oct 27 (Richard): Step 1, shared look and wording */
/* Decisions: Approve is green with white text; Reject is red with a ✕ in front. (Orange stays for "Needs attention".) */
html body .btn.approve, html.dark body .btn.approve { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important;
  outline: 0 !important; }
html body .btn.approve .i, html.dark body .btn.approve .i { color: #fff !important; }
html body .btn.approve:disabled { opacity: .55; }
html body .btn.reject { background: #fee2e2 !important; color: #b91c1c !important; border: 1px solid #fca5a5 !important; outline: 0 !important; }
html.dark body .btn.reject { background: rgba(220, 38, 38, .18) !important; color: #fecaca !important; border-color: rgba(252, 165, 165, .45) !important; }
.btn.reject .rx { font-weight: 800; margin-right: 6px; color: #dc2626; }
html.dark .btn.reject .rx { color: #fca5a5; }
/* Current / Next: where a payroll stands and who acts next (for a login without the button). */
.ba.cn b { color: var(--ink); }
/* A cramped notice: one short line, with View for the detail. */
.notice.one-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice.one-line > span { flex: 1; min-width: 220px; }
/* Windows: a wide one for a whole page to view (a payroll, a pay tab); a short quick view sits in the middle. */
.modal.page-form.wide { max-width: 1240px !important; width: 96vw; }
.modal-backdrop > .modal { margin: auto 0; }
/* The View Attendance window: wider; the date and the scans each on one line. */
html body .att-modal { max-width: 1240px; }
.att-modal .att-panel td:nth-child(1), .att-modal .att-panel td:nth-child(2) { white-space: nowrap; }

/* Top bar: an outline on Hide amounts, the clock and the Day/Night switch. */
html body .top .amounts-chip, html body .top .clock-chip, html body .top button.mode { border: 1.5px solid rgba(10, 14, 22, .55) !important; }
html.dark body .top .amounts-chip, html.dark body .top .clock-chip, html.dark body .top button.mode { border-color: rgba(45, 212, 191, .6) !important; }
/* Report a problem and Ask the Guide stay where they are, frosted, with the window border. (Nov 9: the bar no longer
   drops its blur while one is open: its glass is a layer behind it now, see "the top bar's glass" at the end.) */
html body .ask-wrap .gbot-panel, html body details.report-flag .pop { background: rgba(255, 255, 255, .72) !important;
  backdrop-filter: blur(22px) !important; -webkit-backdrop-filter: blur(22px) !important; border: 2px solid rgba(10, 14, 22, .85) !important; outline: 0 !important; }
html.dark body .ask-wrap .gbot-panel, html.dark body details.report-flag .pop { background: rgba(16, 28, 56, .74) !important; border-color: rgba(45, 212, 191, .6) !important; }

/* Notes tab: parchment yellow by day and night, a gold outline on three sides (none on the window's edge). The open tab
   joins its panel in one colour. (The tab is turned upside down, so its left border is the one on the window's edge.) */
html body .notes-tab > summary, html.dark body .notes-tab > summary { background: linear-gradient(160deg, #f6ecd2, #efe0b8) !important; color: #5a4318 !important;
  border: 2px solid #a8843f !important; border-left: 0 !important; }
html body .notes-tab > summary .i, html.dark body .notes-tab > summary .i { color: #5a4318 !important; }
html body .notes-pop, html.dark body .notes-pop { background: #f1e4c0 !important; color: #5a4318 !important; }
html body .notes-pop :is(strong, label, span, a, p, .muted), html.dark body .notes-pop :is(strong, label, span, a, p, .muted) { color: #5a4318 !important; }
html body .notes-pop :is(input, textarea), html.dark body .notes-pop :is(input, textarea) { background: #fffaf0 !important; color: #5a4318 !important;
  border-color: rgba(168, 132, 63, .55) !important; }
html body .notes-tab[open] > summary, html.dark body .notes-tab[open] > summary { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important; margin: 0 !important;
  background: transparent !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; }
html body .notes-tab[open] .notes-pop, html.dark body .notes-tab[open] .notes-pop { position: absolute !important; right: calc(100% - 2px) !important; left: auto !important;
  top: 50% !important; transform: translateY(-50%); margin: 0 !important; border-radius: 22px !important; border: 0 !important; outline: 0 !important;
  background: #f1e4c0 !important; background-image: none !important; box-shadow: -24px 18px 40px -26px rgba(60, 40, 5, .55) !important; }
html body .notes-tab[open]::before, html body .notes-tab[open]::after { content: ""; position: absolute; left: 0; width: 18px; height: 18px;
  pointer-events: none; z-index: 2; }
html body .notes-tab[open]::before { bottom: calc(100% - 1px); background: radial-gradient(circle at 100% 0, transparent 17.5px, #f1e4c0 18px); }
html body .notes-tab[open]::after { top: calc(100% - 1px); background: radial-gradient(circle at 100% 100%, transparent 17.5px, #f1e4c0 18px); }
html body .notes-tab[open], html.dark body .notes-tab[open] { border-radius: 0 !important; background: #f1e4c0 !important; }

/* Home: the Needs attention table fits 1,280 px, with room for the name. */
.home-attn table { width: 100%; }
.home-attn td:first-child, .home-attn th:first-child { min-width: 220px; }
.home-attn td:nth-child(4) .pill { white-space: normal; }

/* Name box rule: on a page with a search box and filters, the name box has its own full-width line; the filters below. */
.toolbar.name-first > input[type=search] { flex: 1 1 100%; width: 100%; max-width: none; }
.find-line { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.find-line input[type=search] { flex: 1; width: 100%; max-width: none; }
.toolbar.filter-line { margin: 0 0 6px; }

/* Forms: two lines per form, as in the quick view: kind | who | when | state | buttons, then details and who sent it. */
.main .forms-rows { background: none !important; outline: 0 !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; overflow: visible !important; padding: 0 !important; }
.forms-rows table, .forms-rows tbody { display: block; }
.forms-rows tr:first-child { display: none; }
.forms-rows tr[data-kind] { display: grid; grid-template-columns: 150px minmax(0, 1.4fr) 130px 110px minmax(230px, auto);
  grid-template-areas: "kind who when state acts" "kind det det by by"; gap: 6px 14px; align-items: start; margin: 0 0 8px; padding: 12px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(13, 31, 54, .08); }
html.dark .forms-rows tr[data-kind] { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .10); }
.forms-rows td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
.forms-rows td:nth-child(1) { grid-area: who; font-weight: 700; }
.forms-rows td:nth-child(2) { grid-area: when; white-space: nowrap; font-weight: 650; }
.forms-rows td:nth-child(3) { grid-area: kind; font-size: 12.5px; color: var(--ink2); }
.forms-rows td:nth-child(4) { grid-area: det; font-size: 13.5px; padding-top: 6px !important; border-top: 1px dashed rgba(13, 31, 54, .12) !important; }
.forms-rows td:nth-child(5) { grid-area: by; font-size: 12.5px; color: var(--ink2); text-align: right; padding-top: 6px !important;
  border-top: 1px dashed rgba(13, 31, 54, .12) !important; }
html.dark .forms-rows td:nth-child(4), html.dark .forms-rows td:nth-child(5) { border-top-color: rgba(255, 255, 255, .12) !important; }
.forms-rows td:nth-child(6) { grid-area: state; }
.forms-rows td:nth-child(7) { grid-area: acts; text-align: right; }
.forms-rows td:nth-child(3) > .pill:first-child { display: flex; justify-content: center; width: 126px; padding: 5px 10px; border-radius: 10px;
  font-weight: 750; font-size: 13px; color: #fff !important; margin-bottom: 4px; }
.forms-rows td:nth-child(3) > .pill:first-child::before { content: none; }
.forms-rows tr[data-kind="time"] td:nth-child(3) > .pill:first-child { background: #0891b2 !important; }
.forms-rows tr[data-kind="overtime"] td:nth-child(3) > .pill:first-child { background: #c98f00 !important; }
.forms-rows tr[data-kind="leave"] td:nth-child(3) > .pill:first-child { background: #7c3aed !important; }
/* Nov 20 (Richard: the window after Decide squeezed the name to one letter per line and cut off Reject): inside a
   window the list stacks to fit its width - the form type and the buttons on top, then the name, its status and the
   date, then the details and who sent it. The Forms page keeps its wide rows. GBC Design Guide section 4. */
[data-popup-root] .forms-rows tr[data-kind] { grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "kind kind acts" "who state when" "det det det" "by by by"; gap: 6px 12px; align-items: center; }
[data-popup-root] .forms-rows td:nth-child(1) { min-width: 0; overflow-wrap: anywhere; }
[data-popup-root] .forms-rows td:nth-child(2) { text-align: right; }
[data-popup-root] .forms-rows td:nth-child(3) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
[data-popup-root] .forms-rows td:nth-child(3) > .pill:first-child { margin-bottom: 0; }
[data-popup-root] .forms-rows td:nth-child(5) { padding-top: 0 !important; border-top: 0 !important; }
[data-popup-root] .forms-rows td:nth-child(7) { white-space: nowrap; }
/* The Immediate Head's Forms to approve: name, date, kind, reason, buttons. */
.forms-rows.team-rows tr[data-kind] { grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr) minmax(200px, auto);
  grid-template-areas: "kind who when acts" "kind det det acts"; }
.forms-rows.team-rows td:nth-child(5) { grid-area: acts; text-align: right; border: 0 !important; padding: 0 !important; font-size: inherit; }
.forms-rows.team-rows td:nth-child(2) { white-space: normal; }
@media (max-width: 760px), (pointer: coarse) {
  .forms-rows tr[data-kind], .forms-rows.team-rows tr[data-kind] { grid-template-columns: 1fr 1fr;
    grid-template-areas: "kind state" "who when" "det det" "by by" "acts acts"; }
  .forms-rows td:nth-child(7), .forms-rows.team-rows td:nth-child(5) { text-align: left; }
}

/* Summary page only: plum text by day (the page's colour a deeper plum); night unchanged. */
html:not(.dark) .main.tc-sum:has(.summary-table) { --page-c: #7e1590; --c: #7e1590; color: #6d1180; }
html:not(.dark) .main.tc-sum:has(.summary-table) :is(h1, h2, h3, td, th, p, .muted, small, a:not(.btn)) { color: #6d1180 !important; }

/* Approvals: a wider Asked by column; the buttons in fixed columns (View | Approve | Reject), right-aligned. */
.inbox th.asked, .inbox td:nth-child(3) { min-width: 150px; }
.inbox td.decide .decide-row { display: grid !important; grid-template-columns: 92px 112px 96px; justify-content: end; align-items: center; gap: 6px; }
.inbox td.decide .decide-row > * { justify-self: stretch; min-width: 0; }
.inbox td.decide .decide-row .btn, .inbox td.decide .decide-row summary.btn { width: 100%; justify-content: center; }
.inbox td.decide .decide-row .slot-pill { justify-self: center; white-space: normal; text-align: center; }
.inbox td.decide .decide-all { display: flex; justify-content: flex-end; margin: 6px 0 0 !important; }

/* ================================================================ Oct 27 (Richard): Step 2, Payroll */
/* The Payroll tabs: two boxes side by side, outside any card (the wrapper has no card background on every Payroll page). */
html body .pay-bar, html.dark body .pay-bar { background: none !important; border: 0 !important; box-shadow: none !important;
  outline: 0 !important; padding: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.pay-bar.pay-tabs2 { justify-content: flex-start; gap: 12px; margin: 0 0 12px; }
.pay-bar.pay-tabs2 .tabs { padding: 4px !important; }
.pay-bar.pay-tabs2 .tabs a { height: auto; font-size: 13.5px; padding: 7px 10px; }
/* The status card: three compact rows. */
html body .card.pay-status { display: block; padding: 14px 18px !important; }
.pay-status .ps-row1 { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.pay-status .ps-row1 .ch { font-size: 16px !important; }
.pay-status .ps-row1 .st-chips { margin: 0; }
.pay-status .ps-ba { margin-left: auto; }
.pay-status .ps-ba:not(:has(.ba)) { display: none; }
.pay-status .ps-ba .ba { margin: 0; }
.pay-status .st-line { margin: 6px 0 0 48px; font-size: 13px; }
.pay-status .bar-acts { justify-content: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* More: a solid panel with the window border; each item has a one-line hint. */
html body .more-menu .more-pop { min-width: 340px; width: auto; background: #fff !important; border: 2px solid rgba(10, 14, 22, .85) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; left: 0; right: auto; }
html.dark body .more-menu .more-pop { background: #0f1a2b !important; border-color: rgba(45, 212, 191, .6) !important; }
.more-menu .more-pop .btn.mm-item { height: auto; align-items: flex-start; text-align: left; padding: 8px 10px; white-space: normal; }
.mm-item > span { display: flex; flex-direction: column; gap: 2px; }
.mm-item small { font-weight: 400; font-size: 12px; color: var(--ink2); }
/* A heading with its buttons on the right (Adjustments, Benefits, Uploads). */
.title-row .tr-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.title-row .tr-acts details { margin: 0; }
/* Windows with numbered cards (Upload tax refunds, Add an adjustment): every card left-aligned, buttons bottom right. */
.modal.modal-form:has(.num-cards) { max-width: 640px; width: 94vw; }
.num-cards form { gap: 12px; }
.num-cards .num-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 14px; margin: 0; text-align: left; }
.num-cards .num-card > legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.num-cards .num-card ul { margin: 4px 0 0; padding-left: 18px; }
.nc-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.nc-row p { margin: 0; }
.drop-box { display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: left; cursor: pointer; }
.drop-box > span { display: block; font-weight: 600; margin-bottom: 8px; }
.actions.end { justify-content: flex-end; }
.adj-form select[size] { width: 100%; }
.seg2 { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.seg2 label { position: relative; margin: 0; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg2 span { display: block; padding: 8px 14px; font-weight: 600; }
.seg2 input:checked + span { background: var(--page-c, #0d9488); color: #fff; }
.seg2 input:focus-visible + span { outline: 2px solid var(--brand2); outline-offset: -2px; }
.amt-row { display: flex; gap: 10px; align-items: center; }
.peso { display: flex; align-items: center; gap: 6px; margin: 0; flex: 1; }
.peso > span { font-weight: 700; }
/* Cash advances: Add a loan at the right end of the filter row; Job orders: Approve / Reject in fixed places. */
.toolbar.adv-filter > details { margin-left: auto; }
.toolbar.adv-filter > form { margin: 0; }
.jobs-table .jo-acts { display: grid; grid-template-columns: 104px 96px; gap: 6px; align-items: center; }
/* Prints: the bar's button on the right, the tick column narrow. */
.pay-bar.print-bar { justify-content: space-between; }
th.tick, td.tick { width: 36px; }
/* Year: the count line with View all; the one-person window; View all, a page of its own. */
.year-count { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.yp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.yp-head h1 { font-size: 20px; margin: 0 0 2px; }
html.embed .yp-head h1 { display: none; }
.yp-acts { display: flex; gap: 8px; flex: none; }
.yp-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card2); outline: 1px solid var(--line); margin: 6px 0 10px; }
.yp-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yp-tabs label { padding: 6px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13.5px; margin: 0; }
.yp-tabs input:checked + label { background: var(--card); box-shadow: 0 2px 8px rgba(2, 50, 100, .1); }
.yp-tabs input:focus-visible + label { outline: 2px solid var(--brand2); }
.yp-wrap:has(#yg-pay:checked) .ypt :is(.g-ded, .g-13),
.yp-wrap:has(#yg-ded:checked) .ypt :is(.g-pay, .g-13),
.yp-wrap:has(#yg-13:checked) .ypt :is(.g-pay, .g-ded) { display: none; }
.yp-wrap:not(:has(#yg-13:checked, #yg-all:checked)) .yp-13 { display: none; }
.ypt tr.muted td { opacity: .6; }
.shell:has(.year-all) { grid-template-columns: minmax(0, 1fr); }
.shell:has(.year-all) .side { display: none; }
.main:has(.year-all) { padding: 12px 18px 24px !important; }
.ya-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ya-head h1 { font-size: 18px; margin: 0; }
.ya-acts { margin-left: auto; display: flex; gap: 8px; }
.ya-scroll { overflow: auto; max-height: calc(100vh - 140px); border-radius: 14px; background: var(--card, #fff); outline: 1px solid var(--line); }
.ya-table { border-collapse: separate; border-spacing: 0; margin: 0; }
.ya-table th, .ya-table td { white-space: nowrap; }
.ya-table thead th { position: sticky; top: 0; z-index: 2; background: #eef3f9; }
.ya-table tr.ya-groups th { height: 34px; box-sizing: border-box; text-align: center; }
.ya-table tr.ya-cols th { top: 34px; }
.ya-table .ya-emp { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 210px; }
.ya-table thead .ya-emp { z-index: 3; background: #eef3f9; text-align: left; }
html.dark .ya-table thead th, html.dark .ya-table thead .ya-emp { background: #13223a; }
html.dark .ya-table .ya-emp, html.dark .ya-scroll { background: #0f1a2b; }
@media print { .ya-scroll { max-height: none; overflow: visible; } .ya-head .btn { display: none; } }
/* Benefits: Final pay's people without one yet; the missing cut-offs list. */
.notice.fp-due { margin: 0 0 8px; }
.notice.fp-due > details { margin-left: auto; }
.missing-list { columns: 2; margin: 6px 0 10px; }

/* ================================================================ Oct 27 (Richard): Step 3, Employees, My records */
/* Settings → Company rules: the 13th month release card (Super Admins only), as approved (make_13). */
html body .card.t13 { padding: 18px 20px; margin: 18px 0; border: 1.5px solid rgba(13, 148, 136, .35); }
.t13-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.t13-h h2 { margin: 0; }
.t13-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(13, 31, 54, .08); color: #0d1f36; }
html.dark .t13-tag { background: rgba(255, 255, 255, .1); color: #e2e8f0; }
.card.t13 > p { margin: 2px 0 12px; font-size: 13px; opacity: .75; }
.t13-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(13, 31, 54, .08); }
html.dark .t13-row { border-top-color: rgba(255, 255, 255, .1); }
.t13-row strong { display: block; font-size: 14.5px; }
.t13-row small { font-size: 12.5px; opacity: .65; }
.seg13 { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(13, 31, 54, .06); }
html.dark .seg13 { background: rgba(255, 255, 255, .07); }
.seg13 > span, .seg13 > details > summary { display: block; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; list-style: none; }
.seg13 > details > summary::-webkit-details-marker { display: none; }
.seg13 > details > summary:hover { background: rgba(13, 148, 136, .12); }
.seg13 > span.on { background: #0d9488; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); cursor: default; }
html.dark .seg13 > span.on { background: #14b8a6; color: #04201d; }
.card.t13 > p.t13-foot { margin: 8px 0 0; font-size: 12.5px; opacity: .7; }
/* The employee record head: ‹ All employees top left, the status pills beside the name, Edit details + More ▾. */
.hero.emp-head { padding-top: 14px; }
.hero.emp-head .emp-back { margin-bottom: 8px; position: relative; z-index: 2; }
.emp-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.emp-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.emp-pills .pill { font-size: 12.5px; }
.emp-head .emp-sub { font-size: 14px; }
.hero:has(details.emp-more[open]) { overflow: visible; z-index: 20; }
.emp-more { position: relative; }
.emp-more .more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px !important; }
.more-pop .btn.mm-item.mm-danger { color: #b91c1c; }
html.dark .more-pop .btn.mm-item.mm-danger { color: #fecaca; }
.more-pop details.pop-modal { margin: 0; }
.more-pop details.pop-modal > summary { list-style: none; }
.more-pop details.pop-modal > summary::-webkit-details-marker { display: none; }
/* Profile: Employment full width, two label/value columns, each button right of its value; three cards below. */
.card.emp-card { margin-bottom: 16px; }
dl.kv.kv2 { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) minmax(110px, 160px) minmax(0, 1fr); gap: 10px 18px; }
dl.kv.kv2 dd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
dl.kv.kv2 dd > details { margin-left: auto; }
@media (max-width: 900px), (pointer: coarse) { dl.kv.kv2 { grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); } }
.three { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-bottom: 16px; }
@media (max-width: 1000px), (pointer: coarse) { .three { grid-template-columns: 1fr; } }
/* Pay tab: one Pending approval card, a row per change. */
.card.pay-pending { border-left: 4px solid #E0A23B; }
.pp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 14px; align-items: center; padding: 10px 0;
  border-top: 1px solid var(--line); }
.pp-row strong { display: block; }
.pp-row small { opacity: .75; }
.pp-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pp-acts form { margin: 0; }
.card.tax-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card.tax-line h2 { margin: 0; font-size: 16px; }
.card.tax-line .tl-text { flex: 1; min-width: 200px; }
.card.tax-line > details { margin: 0; }
/* Leave credits: two tiles, VACATION and SICK. */
.lc-tiles { display: grid; grid-template-columns: repeat(2, minmax(120px, 200px)); gap: 12px; margin: 8px 0; }
.lc-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(13, 148, 136, .08);
  border: 1px solid rgba(13, 148, 136, .25); }
html.dark .lc-tile { background: rgba(45, 212, 191, .08); border-color: rgba(45, 212, 191, .3); }
.lc-k { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; opacity: .75; }
.lc-n { font-size: 24px; font-weight: 800; }
.lc-line { margin: 4px 0 0; }
.lc-none { margin: 6px 0; }
/* Attendance tab: one-line dates and scans; the ⓘ that holds a note's whole sentence. */
.info-i { cursor: help; font-style: normal; opacity: .8; }
table.att-days td.small { min-width: 150px; }
/* Employees: Pending approval in one line; its window's table, the start date in purple. */
.notice.pend-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice.pend-line > details { margin-left: auto; }
.modal.modal-form:has(.pend-table) { max-width: 980px; width: 96vw; }
.pend-table b.starts { color: #7e1590; }
html.dark .pend-table b.starts { color: #e9a8f5; }
/* Teams: No Immediate Head first (amber, two columns), then a card per head in two columns. */
.card.team-none { border-left: 4px solid #E0A23B; background: #FFF8EC; }
html.dark .card.team-none { background: #403624; }
.team-none table.tm-two tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.team-none table, .team-card table { margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin: 14px 0; }
@media (max-width: 900px), (pointer: coarse) { .team-grid { grid-template-columns: 1fr; } .team-none table.tm-two tbody { grid-template-columns: 1fr; } }
.tm-head { display: flex; flex-direction: column; margin-bottom: 6px; }
.team-card td, .team-none td { padding: 5px 6px; }
/* Imports: the "See the columns" fold in card 1. */
.see-cols { margin-top: 8px; }
/* My records: Details in three cards; the Year tab's four tiles and one wide 13th month card. */
.me-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px), (pointer: coarse) { .me-cards { grid-template-columns: 1fr; } }
.year-cards.yc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px), (pointer: coarse) { .year-cards.yc4 { grid-template-columns: 1fr 1fr; } }
.card.th13-card { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.th13-head { display: flex; gap: 12px; align-items: center; }
.th13-head .lbl { font-weight: 600; }
.th13-head .n { font-size: 22px; font-weight: 800; }
.th13-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.th13-halves > div { padding: 10px 14px; border-radius: 12px; background: rgba(13, 31, 54, .04); }
html.dark .th13-halves > div { background: rgba(255, 255, 255, .05); }
@media (max-width: 800px), (pointer: coarse) { .card.th13-card, .th13-halves { grid-template-columns: 1fr; } }

/* ================================================================ Build 2, Step A (Oct 27, Richard) */
/* A3 Attendance grids (Employees and Guards): "Mon" over the date, day columns 50px wide, the name column as wide as
   the longest name; the grid and its frame only as wide as the table (no gap on wide screens). */
html body table.att-grid { width: auto; table-layout: auto; }
html body table.att-grid th:not(.who):not(.r), html body table.att-grid td:not(.who):not(.c) { width: 50px; min-width: 50px; max-width: 50px;
  padding-left: 2px; padding-right: 2px; text-align: center; }
html body table.att-grid th:not(.who) { font-size: 13px; line-height: 1.25; }
html body table.att-grid .who { min-width: 240px; width: auto; padding-right: 24px; white-space: nowrap; }
/* Oct 27 (Richard): 2px bigger letters; a very long name wraps (name column at most 280px) so all the days stay on screen. */
html body table.att-grid { font-size: 14px; }
html body table.att-grid button.pop { font-size: 14px; width: 26px; height: 26px; }
html body table.att-grid td.who, html body table.att-grid th.who { white-space: normal; min-width: 200px; max-width: 280px; }
html body .grid-wrap:has(> table.att-grid) { width: fit-content; max-width: 100%; }
html body .scroll-frame:has(table.att-grid) { width: fit-content; max-width: 100%; }

/* A4 Smooth page change: the new page fades in (0.18 s) while the top bar and the menu stay still (Chrome, Edge,
   Safari). Browsers without it (Firefox) fade the page area in (0.15 s); theme.js marks them html.no-vt before the
   page draws. Nothing moves for someone who asked their computer for less motion. The window is painted in the
   photo's own colour from the first moment, so nothing flashes dark between pages. */
html { background-color: #6d8fb5; }
html.dark { background-color: #0b1630; }
@media print { html, html.dark { background: #fff; } }
html:not(.embed) body { min-height: 100vh; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
  .top { view-transition-name: pas-top; }
  .side { view-transition-name: pas-side; }
  ::view-transition-group(pas-top), ::view-transition-group(pas-side) { animation: none; }
  ::view-transition-old(pas-top), ::view-transition-old(pas-side) { display: none; }
  ::view-transition-new(pas-top), ::view-transition-new(pas-side) { animation: none; }
  html.no-vt .main { animation: pas-page-in .15s ease-out; }
}
@keyframes pas-page-in { from { opacity: 0; } to { opacity: 1; } }
/* A frosted panel open in the top bar must blur the page behind it, and a named bar would stop that. */
html body .top:has(.gbot-panel:not([hidden]), details.report-flag[open], details.bell-menu[open], details.me-menu[open]) { view-transition-name: none; }
html.embed .top, html.embed .side { view-transition-name: none; }

/* A5 The top bar as tall as the PAS logo (52 px; computer screens; the phone's bar is unchanged): 36 px buttons, a
   38 px Guide box; the menu and the page start higher to match (14 + 52 + 2 border + 14 = 82 px). */
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  html body .top { height: 52px; box-sizing: content-box; padding-top: 0; padding-bottom: 0; }
  html body .shell { min-height: calc(100vh - 82px); }
  html body .top .brand, html body .top .brand .pas-icon { height: 52px; }
  html body .top :is(.amounts-chip, .clock-chip) { height: 36px; }
  html body .top button.mode { height: 36px; }
  html body .top button.mode .knob { width: 28px; height: 28px; }
  html.dark body .top button.mode .knob { left: 40px; }
  html body .top .iconbtn { width: 36px; height: 36px; border-radius: 12px; }
  html body .top .avatar-btn .avatar { width: 36px; height: 36px; font-size: 12px; }
  html body .top .ask-wrap { height: 38px; }
  html body .top .ask { height: 38px; border-radius: 13px; padding-right: 44px; }
  html body .top details.report-flag { top: 4px; right: 4px; }
  html body .top .flag-btn { width: 30px; height: 30px; border-radius: 10px; }
  html body .top details.report-flag .pop { top: 40px; right: -4px; }
  html body .ask-wrap .gbot-panel { top: 46px; }
  html body .top .hold .pop { top: 46px; }
}

/* A8 Notifications and the account menu: a near-solid frosted panel with the window border. (Nov 9: the top bar keeps
   its look while one is open; its glass is a layer behind it, see "the top bar's glass" at the end.) */
html body .top details:is(.bell-menu, .me-menu)[open] > .menu-pop { background: rgba(255, 255, 255, .80) !important;
  backdrop-filter: blur(28px) saturate(1.3) !important; -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
  border: 1.5px solid rgba(10, 14, 22, .85) !important; outline: 0 !important; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45) !important; }
html.dark body .top details:is(.bell-menu, .me-menu)[open] > .menu-pop { background: rgba(15, 26, 43, .82) !important;
  border-color: rgba(45, 212, 191, .6) !important; }

/* ===================================================================== Build 2, Step B (Oct 27, Richard): pages */
.nw { white-space: nowrap; }
.lb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.lb-head .lb-h { margin: 0 auto 0 0 !important; }
.lb-head details.how, .lb-head details.pop-modal { margin: 0; }
/* Compact windows (a few boxes, no numbered cards): Add / Edit user 480px, Change password 400px. */
.modal.page-form.narrow { max-width: 480px !important; width: 94vw; }
.modal.page-form.slim { max-width: 400px !important; width: 94vw; }
html.embed .card.uw-card, html.embed .card.pw-card { background: none !important; box-shadow: none !important; border: 0 !important;
  outline: 0 !important; padding: 0 !important; max-width: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
form.uw, form.pw-form { display: flex; flex-direction: column; gap: 10px; }
form.uw label, form.pw-form label, .uw-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin: 0; }
form.uw :is(input, select), form.pw-form input { width: 100%; box-sizing: border-box; }
.uw-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uw-note { font-size: 12px; color: var(--ink3); margin-top: -4px; }
.uw-sub { font-size: 12.5px; color: var(--ink3); margin: 0; }
html:not(.embed) .uw-sub { display: none; }
.uw-ro { padding: 9px 12px; border-radius: 10px; background: rgba(13, 31, 54, .05); font-weight: 600; font-size: 14px; }
html.dark .uw-ro { background: rgba(255, 255, 255, .06); }
.uw-acts, .pw-acts, .jo-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
/* B5 Change password: the live checks, grey until met, then green. */
.pw-checks { margin: 0 !important; font-size: 12px; font-weight: 600; color: var(--ink3); }
.pw-checks span { color: #94a3b8; }
.pw-checks span.met { color: #15803d; }
html.dark .pw-checks span.met { color: #4ade80; }
/* B6 Users: the access review on one line; one line per person; More holds Reset password and Deactivate. */
.card.ar-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px !important; margin: 16px 0 !important; font-size: 13.5px; }
.ar-line .ar-done { margin-left: auto; }
.user-list td { vertical-align: middle; }
.user-list td.u-acts { white-space: nowrap; text-align: right; }
.u-more { position: relative; display: inline-block; margin: 0; }
.u-more .more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px !important; }
.table-wrap.user-wrap:has(details.u-more[open]) { overflow: visible; }
/* B1 My records, Benefits: three tiles, the tax-free room as a thin teal bar. */
.bn-tiles, .bk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 12px; }
.bn-st.ok, .bk-on { color: #15803d !important; }
.bn-st.warn, .bk-none { color: #b45309 !important; }
.bn-st.bad { color: #b91c1c !important; }
html.dark :is(.bn-st.ok, .bk-on) { color: #4ade80 !important; }
html.dark :is(.bn-st.warn, .bk-none) { color: #fbbf24 !important; }
html.dark .bn-st.bad { color: #fca5a5 !important; }
progress.bn-bar { display: block; width: 100%; height: 6px; margin-top: 8px; border: 0; border-radius: 99px; overflow: hidden;
  background: rgba(13, 31, 54, .1); -webkit-appearance: none; appearance: none; }
progress.bn-bar::-webkit-progress-bar { background: rgba(13, 31, 54, .1); border-radius: 99px; }
progress.bn-bar::-webkit-progress-value { background: #0d9488; border-radius: 99px; }
progress.bn-bar::-moz-progress-bar { background: #0d9488; border-radius: 99px; }
html.dark progress.bn-bar, html.dark progress.bn-bar::-webkit-progress-bar { background: rgba(255, 255, 255, .12); }
.bn-table tr.muted td { color: var(--ink3); }
/* B4 Job order: two cards (Where and what; Workers and times), Cancel / Submit bottom right. */
.card:has(> form.job-form) { background: none !important; box-shadow: none !important; border: 0 !important; outline: 0 !important;
  padding: 0 !important; max-width: 760px; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
form.job-form { gap: 14px; }
form.job-form fieldset.jo-card { margin: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.jo-g3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.jo-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:is(.jo-g3, .jo-g2) label, .jo-card > label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.jo-note { margin: 0 !important; font-size: 12.5px; }
/* B8 Settings: two labelled rows of tabs. */
.st-pair { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.st-box { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-t { width: 78px; flex: 0 0 78px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5b6b80; }
html.dark .st-t { color: #94a3b8; }
.st-box nav.tabs { margin: 0 !important; display: flex !important; flex-wrap: nowrap; width: auto !important; overflow-x: auto;
  padding: 4px !important; gap: 2px !important; }
.st-box nav.tabs a { padding: 7px 11px !important; font-size: 13.5px !important; white-space: nowrap; }
.sub-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.sub-h .lb-h { font-size: 18px; margin: 0 !important; }
.sub-h .muted { font-size: 13px; }
.sub-h .sub-act { margin-left: auto; }
@media (max-width: 760px), (pointer: coarse) { .st-box { flex-direction: column; align-items: flex-start; gap: 4px; } .st-box nav.tabs { max-width: 100%; } }
/* B9 Schedules: Assign (wider) and Add side by side, tops aligned, each as tall as its content. */
.sched-table td { white-space: nowrap; }
.sched-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; margin-top: 16px; }
.sched-two > .card { margin: 0 !important; }
.form-grid.g2 { grid-template-columns: 1fr 1fr !important; }
.tint-hint { font-size: 12px; margin: -2px 0 2px !important; padding: 7px 10px; border-radius: 10px; background: rgba(13, 148, 136, .08); color: var(--ink2); }
html.dark .tint-hint { background: rgba(45, 212, 191, .10); }
.days-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 6px; }
.days-row label.check { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; }
/* B10 Holidays: the table full width. */
.table-wrap.hol-table { width: 100%; }
.hol-remove { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
/* B11 PAS start, B14 Guide Bot: one line card, the button on the right. */
.card.one-line { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px !important; font-size: 14px; }
.one-line .ol-act { margin-left: auto; white-space: nowrap; }
/* B12 Backups: three tiles; the Daily backup switch is a link. */
.bk-tile.warn .n { color: #b45309; }
html.dark .bk-tile.warn .n { color: #fbbf24; }
.bk-switch { display: inline; margin: 0; }
summary.linklike { display: inline; list-style: none; cursor: pointer; color: var(--royal, #0262a3); font-weight: 600; text-decoration: underline; }
summary.linklike::-webkit-details-marker { display: none; }
html.dark summary.linklike { color: #9cc7ff; }
.prog-list { margin-top: 0; }
/* B13 Payroll calculations: the switches that differ, on one line, with View. */
.notice.calc-off { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 !important; }
.notice.calc-off .calc-off-view { margin-left: auto; }
.calc-off-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px), (pointer: coarse) {
  .bn-tiles, .bk-tiles, .sched-two, .uw-2, .jo-g3, .jo-g2 { grid-template-columns: 1fr; }
  .one-line .ol-act, .ar-line .ar-done { margin-left: 0; }
}

/* ================================================================ Oct 28 (Richard): top bar */
/* Report a problem: a lighter grey square, a filled light-red flag centred (as much space left of the pole as right of the flag),
   the top bar's outline (dark by day, teal at night). */
html body .top .flag-btn { background: #50565f; background-image: none; color: #f87171; border: 1.5px solid rgba(10, 14, 22, .55); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
html.dark body .top .flag-btn { border-color: rgba(45, 212, 191, .6); }
html body .top .flag-btn .flag-solid { width: 20px; height: 20px; display: block; }
/* Amounts: snug around its words; the eye shows when amounts are shown, the slashed eye when hidden. */
html body .top .amounts-chip { padding: 0 8px 0 10px; gap: 6px; font-size: 13px; }
html body .top .amounts-chip .amt-sw { width: 26px; height: 16px; border-radius: 8px; }
html body .top .amounts-chip .amt-sw::after { width: 12px; height: 12px; }
.amounts-chip .ic-shown, .amounts-chip .ic-hidden { display: inline-flex; }
html.hide-amounts .amounts-chip .ic-shown, html:not(.hide-amounts) .amounts-chip .ic-hidden { display: none; }
/* Oct 28 (Richard): picture icons fill about two-thirds of their tile. Waiting for you on Home gets bigger tiles (52px)
   and icons (34px); elsewhere only the icon grows, the tiles and the layout stay the same. */
html body .plist .round:has(> .ci) { width: 52px; height: 52px; border-radius: 14px; }
html body .plist .round .ci { width: 34px; height: 34px; }
html body .stat .ic:has(> .ci) .ci { width: 30px; height: 30px; }
html body .hcard .ic2 .ci { width: 28px; height: 28px; }

/* Oct 28 (Richard): the connection to PAS. The status box's last line says Online, Reconnecting or Offline (a slashed
   wifi sign when it isn't online). When PAS can't be reached, a window covers the page with a thicker blur than other
   windows, so nobody keeps typing; it closes by itself when PAS answers. */
.conn-line .wifi-off, .conn-line:not(.on) .wifi-on { display: none; }
.conn-line:not(.on) .wifi-off { display: block; }
.conn-line .conn-w { font-weight: 700; }
.conn-line.on .conn-w { color: #0b8a5f; }
.conn-line.re .conn-w { color: #b86e00; }
.conn-line.off .conn-w { color: #c02626; }
html.dark .conn-line.on .conn-w { color: #34d399; }
html.dark .conn-line.re .conn-w { color: #fbbf24; }
html.dark .conn-line.off .conn-w { color: #f87171; }
.conn-back { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 12, 26, .45); backdrop-filter: blur(18px) saturate(110%); -webkit-backdrop-filter: blur(18px) saturate(110%); }
.conn-back[hidden] { display: none; }
.conn-box { width: min(440px, 100%); padding: 26px 28px 22px; border-radius: 22px; text-align: center; color: #0b1626;
  background: rgba(255, 255, 255, .94); border: 2px solid rgba(10, 14, 22, .85); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
html.dark .conn-box { background: rgba(16, 24, 40, .94); border-color: rgba(45, 212, 191, .6); color: #e8eef7; }
.conn-box .cic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center;
  background: #fdecec; color: #c02626; }
html.dark .conn-box .cic { background: rgba(248, 113, 113, .16); color: #f87171; }
.conn-box .cic svg { width: 34px; height: 34px; }
.conn-box h3 { margin: 0 0 6px; font-size: 21px; color: inherit; }
.conn-box p { margin: 0 0 6px; font-size: 15px; line-height: 1.45; opacity: .85; }
.conn-box .conn-re { display: inline-flex; align-items: center; gap: 9px; margin: 10px 0 16px; font-weight: 700; color: #b86e00; }
html.dark .conn-box .conn-re { color: #fbbf24; }
.conn-box .spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .conn-box .spin { animation: conn-spin 1s linear infinite; }
}
@keyframes conn-spin { to { transform: rotate(360deg); } }
.conn-box .actions { display: flex; justify-content: center; }
/* A form kept from before the connection was lost comes back with this note above it. */
.keep-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: #fff4e0; border: 1px solid #f2c27a; color: #6b3f00; }
html.dark .keep-note { background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .45); color: #fde7b0; }

/* Oct 28 (Richard): the menu's blur starts just above "WORK" (8 px), not right under the top bar; the clear photo
   shows in the gap, and the menu items stay where they were. Computer screens only. */
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  html body .side { top: 100px !important; height: calc(100vh - 100px) !important; padding-top: 0 !important; }
  html body .side nav > .nav-sec:first-child { padding-top: 6px !important; }
}

/* Oct 28 (Richard): Night's moon in the Day/Night circle is white with a soft glow, so it stands out. */
html.dark body .top button.mode .knob { color: #fff !important; }
html.dark body .top button.mode .knob .i { stroke-width: 2.4;
  filter: drop-shadow(0 0 3px rgba(220, 230, 255, .95)) drop-shadow(0 0 7px rgba(160, 180, 255, .7)); }

/* ================================================================ Nov 9, 2026 (Richard): no text outside glass
   With no page panel, every piece of text on a page sits on glass: the cards and tables already are; the title row
   (.welcome), the notes and footnotes, the Org Chart's path and Security's title and tools get a glass bar of their
   own. Loose paragraphs and headings straight on the page get one too, so a new page follows the rule by itself. */
.main :is(.welcome, .adm-note, .adm-foot, .org-nav, .sec-titlerow, .sec-tools),
.main > :is(h1, h2, h3, p) { background: var(--g-bg); border: 1px solid var(--g-line);
  backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); border-radius: 18px;
  box-shadow: 0 10px 26px -16px rgba(10, 30, 60, .35); }
.main .welcome { padding: 12px 18px; }
.main :is(.adm-note, .adm-foot), .main > :is(h1, h2, h3, p) { padding: 10px 16px; }
.main .org-nav { padding: 8px 14px; }
.main .sec-titlerow { padding: 8px 14px; width: fit-content; }
.main .sec-tools { padding: 6px 8px 6px 14px; }
html.dark .main :is(.welcome, .adm-note, .adm-foot, .org-nav, .sec-titlerow, .sec-tools), html.dark .main > :is(h1, h2, h3, p) {
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6); }

/* Nov 9: notices and tab rows keep their own colour, on glass too (at night their tint alone is too faint) */
.main :is(.notice, nav.tabs) { backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
html.dark .main nav.tabs { background: var(--g-bg) !important; }
/* the ERP's own pieces that were too faint at night: Tasks' tabs, the Org Chart's boxes, the admin filter rows */
.main :is(.tk-tabs a, .org-tree .node) { backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur); }
html.dark .main .org-tree .node:not(.cur) { background-color: var(--g-bg); }
.main .adm-filter { background: var(--g-bg); border: 1px solid var(--g-line); backdrop-filter: var(--g-blur);
  -webkit-backdrop-filter: var(--g-blur); border-radius: 18px; padding: 10px 14px; }
/* at night a notice keeps its colour over a dark glass layer, so bright lights in the photo never show through its text */
html.dark .main .notice { box-shadow: inset 0 0 0 999px rgba(16, 28, 56, .55); }

/* ================================================================ Nov 9, round 2 (Richard): one glass for everything
   Every piece that holds content uses the same glass (--g-bg, --g-line, --g-blur, --g-shadow above): cards, tables,
   stat boxes, Security's chips and cards, the text bars, tab rows, filter rows, the Org Chart's boxes, the menu buttons
   and the status box. This replaces the solid Night cards (#101b2d / #17253b) that outranked the glass before. Windows
   (pop-ups) and the small lists that open from a button keep their own, denser look so they read over the page. */
html body :is(.card:not(.pop), .table-wrap, .stat, .plist, fieldset, .hcard, .sec-light, .main .welcome, .main .adm-note,
  .main .adm-foot, .main .org-nav, .main .sec-titlerow, .main .sec-tools, .main > :is(h1, h2, h3, p), .main .adm-filter,
  .main nav.tabs, .main .tk-tabs, .main .org-tree .node, .side .status-box, .side a:not(.on):not(.status-box a), .side a.admin-btn:not(.on)) {
  background: var(--g-bg) !important; border-color: var(--g-line) !important; border-style: solid !important;
  backdrop-filter: var(--g-blur) !important; -webkit-backdrop-filter: var(--g-blur) !important; box-shadow: var(--g-shadow) !important; }
/* the bars all take the header card's shape */
.main :is(nav.tabs, .tk-tabs) { border-radius: 18px; padding: 6px; border-width: 1px; }
/* a table's fixed column (if any): the denser glass, so cells scrolling under it never show through */
html body .table-wrap :is(th.sticky, td.sticky) { background: var(--g-solid) !important; }

/* ================================================================ Nov 9, round 3 (Richard): the same look, whatever is open
   The top bar's glass: a layer behind the bar instead of the bar itself. A blur inside a blur does not show, so the bar
   used to drop its blur (and change) while the bell, the account menu, Report a problem or the Guide was open; with the
   glass on its own layer the bar never changes and those panels blur the page themselves. */
html body .top { isolation: isolate; background: transparent !important; backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important; }
html body .top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .42); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
html.dark body .top::before { background: rgba(14, 26, 52, .42); }
html.embed body .top::before { content: none; }
/* Hover: the open item keeps its dark glass and white light edge; the other menu buttons brighten a little and stay glass. */
html body .side a.on:not(.zz):hover { background: rgba(16, 28, 56, .84) !important; }
html.dark body .side a.on:not(.zz):hover { background: rgba(16, 28, 56, .68) !important; }
html body :is(.side a:not(.on):not(.status-box a), .side a.admin-btn:not(.on)):hover { filter: brightness(1.07); }
/* Notes: parchment glass in Day and Night (the parchment colour, see-through, with the blur, the rim and the depth). */
:root { --n-bg: linear-gradient(160deg, rgba(248, 239, 214, .72), rgba(239, 224, 184, .58)); --n-line: rgba(255, 255, 255, .75); }
html.dark { --n-bg: linear-gradient(160deg, rgba(58, 45, 18, .72), rgba(40, 31, 12, .66)); --n-line: rgba(227, 164, 58, .32); }
html body :is(.notes-tab > summary, .notes-pop), html.dark body :is(.notes-tab > summary, .notes-pop) {
  background: var(--n-bg) !important; border: 1px solid var(--n-line) !important;
  backdrop-filter: blur(14px) saturate(160%) !important; -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  box-shadow: var(--g-shadow) !important; }
html.dark body .notes-tab > summary, html.dark body .notes-tab > summary .i { color: #f0c46e !important; }
html.dark body .notes-pop :is(strong, label, span, a, p, .muted) { color: #f3d9a4 !important; }
html.dark body .notes-pop :is(input, textarea) { background: rgba(255, 250, 240, .08) !important; color: #f6e7c4 !important; }
html body .notes-tab[open] > summary, html.dark body .notes-tab[open] > summary { background: transparent !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border: 0 !important; }
/* Payroll's More menu: the same near-solid frosted panel as the bell and the account menu (it was solid, with no blur). */
html body .more-menu .more-pop { background: rgba(255, 255, 255, .80) !important; backdrop-filter: blur(28px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.3) !important; }
html.dark body .more-menu .more-pop { background: rgba(15, 26, 43, .82) !important; }

/* Nov 9, round 3 (b): two fixes found while checking.
   1. The top bar and the side menu no longer carry a page-to-page name (view-transition-name, Oct 27 A4). A named
      part stops the blur of everything inside it, so in Chrome the side menu's buttons and the top bar's glass layer
      showed the photo sharp behind them (only their tint was glass). The content swap keeps them still now; a full
      page load (after a save) still fades as a whole.
   2. Notes, open: the panel, the open tab and its two small corners are one piece of the same parchment glass (the
      open panel's own solid parchment rule used to win; the tab's glass sits on the tab button, because a blurred
      parent would stop the panel's own blur, and the corners are shaped with a mask). */
html body .top, html body .side { view-transition-name: none !important; }
:root { --n-bg: rgba(246, 234, 200, .72); --n-blur: blur(14px) saturate(160%); }
html.dark { --n-bg: rgba(50, 39, 15, .74); }
html body .notes-tab .notes-pop:not(.zz):not(.zy), html.dark body .notes-tab .notes-pop:not(.zz):not(.zy) {   /* beats the general glass rule in Day too */ background: var(--n-bg) !important;
  background-image: none !important; backdrop-filter: var(--n-blur) !important; -webkit-backdrop-filter: var(--n-blur) !important; }
html body .notes-tab[open]:not(.zz), html.dark body .notes-tab[open]:not(.zz) { background: transparent !important; }
html body .notes-tab[open] > summary:not(.zz), html.dark body .notes-tab[open] > summary:not(.zz) { background: var(--n-bg) !important;
  backdrop-filter: var(--n-blur) !important; -webkit-backdrop-filter: var(--n-blur) !important; }
html body .notes-tab[open]::before, html body .notes-tab[open]::after { background: var(--n-bg) !important;
  backdrop-filter: var(--n-blur); -webkit-backdrop-filter: var(--n-blur); }
html body .notes-tab[open]::before { -webkit-mask: radial-gradient(circle at 100% 0, transparent 17.5px, #000 18px);
  mask: radial-gradient(circle at 100% 0, transparent 17.5px, #000 18px); }
html body .notes-tab[open]::after { -webkit-mask: radial-gradient(circle at 100% 100%, transparent 17.5px, #000 18px);
  mask: radial-gradient(circle at 100% 100%, transparent 17.5px, #000 18px); }

/* Nov 18, 2026 (Richard): the new ERP logo has a Day file (navy letters) and a Night file (light letters); one shows. */
html.dark .erp-day, html:not(.dark) .erp-night { display: none !important; }

/* Nov 13, 2026 (Richard: alignment, way A; same rules as PAS's look.css): a button with an icon at the front no longer
   rides above a plain one on the same line; the Guide's Ask button is centred beside the question box on a phone. */
.btn { vertical-align: middle; }
.gbot-form { align-items: center; }
