/* The ERP's own parts, laid over PAS's look (Oct 28, 2026, Richard). */

/* The Guide's search box stays, greyed, until the ERP has a Guide. */
.ask.off { cursor: not-allowed; opacity: .78; }
.ask.off .i, .ask.off .t { color: var(--ink3); }
.ask.off .soon { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(125, 144, 165, .16); color: var(--ink2); }

/* Small "to link with" notes under the flag, the bell and your circle. */
.report { position: relative; }
.soon-pop { position: absolute; top: 54px !important; right: -6px !important; left: auto !important; width: 270px !important; min-width: 0 !important;
  padding: 14px 16px !important; z-index: 60; }
.soon-pop p { margin-top: 4px; color: var(--ink2); }

/* Home and the pages that connect later. */
.main { padding-bottom: 120px !important; }
.stat .n { color: var(--ink3) !important; }
.stat .sub { font-size: 12.5px; }
/* Nov 3 (Richard, ERP Home by role, layout A): "For you" on the left, the three cards on the right; on a phone the
   cards drop under the list. A card stays a dash until it has data. */
.home-a { display: grid; grid-template-columns: minmax(0, 1fr) 380px;   /* Nov 25 (Mock-up C; sizes.css 26): was 300 */ gap: 18px; align-items: start; margin-top: 16px; }
/* Nov 10 (Richard, E8): the three cards on the right are the same height and fill the column beside For you */
.home-a { align-items: stretch; } .home-cards { grid-auto-rows: 1fr; }
.home-a .foryou { margin: 0 !important; }
.home-cards { display: grid; gap: 14px; }
.home-cards .stat { display: flex; flex-direction: row; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.home-cards .stat[href] { cursor: pointer; }
.home-cards .stat.has .n { color: var(--ink) !important; }
.foryou .fy-note { padding: 14px 18px; margin: 0; }
.foryou .fy-off { color: #b42318; font-weight: 600; }
html.dark .foryou .fy-off { color: #fca5a5; }
@media (max-width: 900px), (pointer: coarse) { .home-a { grid-template-columns: minmax(0, 1fr); } }
/* Nov 12 (Richard, mock-up E): "For you" shows two items per line on wide screens (left to right, then down, so the
   first item is still the most urgent); one per line on a phone, where Home is one column. An odd last item sits alone
   in the left column with no dividing line; the notes ("Nothing for you", "isn't answering") span the whole card. */
@media (min-width: 901px) and (pointer: fine), (min-width: 901px) and (pointer: none) {
  .foryou [data-for-you] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foryou [data-for-you] .row, .foryou [data-for-you] .two-l { min-width: 0; }
  .foryou [data-for-you] .row:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .foryou [data-for-you] .fy-note { grid-column: 1 / -1; }
}
/* Nov 12 (Richard): Submit a form above the three cards (the right column); under "For you" on a phone */
.home-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-side .home-cards { flex: 1; }
.home-forms { margin: 0 !important; padding: 14px 16px; }
.home-forms .phead { display: flex; align-items: center; gap: 8px; padding: 0 0 8px; font-weight: 700; }
.home-forms .phead .ci { width: 20px; height: 20px; }
.home-forms .fg-title { margin: 8px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.home-forms .fg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Nov 17 (Richard, Mock-up Z3): each name on one line (short names; tighter buttons) */
.home-forms .fg-row .btn { justify-content: flex-start; gap: 6px; min-width: 0; white-space: nowrap; text-align: left;
  padding-left: 10px; padding-right: 10px; font-size: 14px; }
.home-forms .fg-row .btn > span { overflow: hidden; text-overflow: ellipsis; }
.home-forms .fg-row .btn .ci { width: 18px; height: 18px; flex: none; }
.home-forms [data-form-note] { margin: 10px 0 0; }
/* Nov 12 (Richard: stay on the page): Submit a form opens PAS's form in a window over Home; full screen on a phone */
.fw-win { width: min(640px, 100%); padding: 14px 16px 16px !important; }
/* Nov 21 (Richard): a list opened from a For you line (Team forms to approve) gets a wider window; a phone still fills the screen. */
.fw-win.fw-list { width: min(880px, 100%); }
.fw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.fw-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.fw-x { border: 0; background: rgba(10, 40, 70, .08); border-radius: 10px; width: 34px; height: 34px; font-size: 16px; cursor: pointer;
  color: var(--ink); flex: none; }
html.dark .fw-x { background: rgba(255, 255, 255, .1); }
.fw-frame { display: block; width: 100%; height: 420px; border: 0; border-radius: 12px; background: transparent; }
.fw-note { margin: 6px 0; } .fw-note.fy-off { color: #b42318; font-weight: 600; }
.home-forms .fw-sent { color: #067647; font-weight: 600; }
html.dark .home-forms .fw-sent { color: #86efac; }
@media (max-width: 600px) { .fw-veil { padding: 0; } .fw-win { width: 100%; min-height: 100%; border-radius: 0 !important; }
  .fw-frame { height: calc(100vh - 90px) !important; } }
.home-forms .fy-off { color: #b42318; font-weight: 600; }
html.dark .home-forms .fy-off { color: #fca5a5; }
/* Nov 4 (Richard): Tasks. Tabs, coloured state pills, the windows over the list; Checked and Mark as done green,
   Send back red with an ✕ (Design Guide); the red "!" on the Tasks menu item. */
.nav-badge.alert, .side nav a .nav-badge.alert { background: #dc2626 !important; color: #fff !important; border-radius: 999px; min-width: 20px; text-align: center; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-tabs { display: flex; gap: 8px; margin: 16px 0 14px; }
.tk-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; text-decoration: none; color: var(--ink2) !important;
  background: rgba(255, 255, 255, .6); outline: 1px solid rgba(10, 40, 70, .12); }
html.dark .tk-tabs a { background: rgba(255, 255, 255, .06); outline-color: rgba(255, 255, 255, .12); }
.tk-tabs a.on, .tk-tabs a.on .n { background: #2563eb; color: #fff !important; outline: 0; }
.tk-tabs .n { margin-left: 6px; font-size: 12px; opacity: .85; }
.tk .row { display: flex; align-items: center; gap: 14px; }
.tk .two-l { flex: 1; }
.tk .fy-note { padding: 14px 18px; margin: 0; }                         /* Nov 4: lined up with the rows */
.tk-older { display: block; padding: 10px 18px 14px; font-size: 13.5px; font-weight: 600; }
.tk-win .pp[hidden] { display: none; }                                    /* Nov 4: the search really hides names */
.tk .sec { padding: 12px 18px 4px; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--ink3); text-transform: uppercase; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.p-due { background: #fef3c7; color: #92400e; } .p-over { background: #fee2e2; color: #b42318; } .p-back { background: #ffe4e6; color: #be123c; }
.p-open { background: #e0ecff; color: #1d4ed8; } .p-done { background: #dcfce7; color: #166534; } .p-check { background: #ede9fe; color: #6d28d9; }
html.dark .p-due { background: rgba(245, 158, 11, .18); color: #fcd34d; } html.dark .p-over, html.dark .p-back { background: rgba(239, 68, 68, .18); color: #fca5a5; }
html.dark .p-open { background: rgba(59, 130, 246, .18); color: #93c5fd; } html.dark .p-done { background: rgba(34, 197, 94, .18); color: #86efac; }
html.dark .p-check { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
.tk-veil { position: fixed; inset: 0; background: rgba(6, 12, 26, .58); backdrop-filter: blur(7px) saturate(115%); -webkit-backdrop-filter: blur(7px) saturate(115%); z-index: 80; display: grid;
  place-items: center; padding: 16px; overflow: auto; }
.tk-win { width: min(620px, 100%); padding: 22px 24px !important; margin: auto; }
.tk-win h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.tk-win .sub { color: var(--ink3); font-size: 13px; margin: 0 0 14px; }
.tk-win label, .tk-win .lbl { display: block; font-weight: 650; font-size: 13.5px; margin: 12px 0 6px; color: var(--ink); }
.tk-win label small { font-weight: 400; color: var(--ink3); }
.tk-win .inp { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(10, 40, 70, .18);
  font: inherit; font-size: 14px; background: #fff; color: #0f172a; }
html.dark .tk-win .inp { background: rgba(255, 255, 255, .06); color: #e5edf7; border-color: rgba(255, 255, 255, .14); }
.tk-win .big { min-height: 84px; resize: vertical; }
.tk-win .ppl { border: 1px solid rgba(10, 40, 70, .18); border-radius: 12px; margin-top: 6px; max-height: 190px; overflow: auto; }
html.dark .tk-win .ppl { border-color: rgba(255, 255, 255, .14); }
.tk-win .pp { display: flex; gap: 10px; align-items: center; margin: 0; padding: 7px 12px; border-top: 1px solid rgba(10, 40, 70, .08);
  font-weight: 400; font-size: 14px; cursor: pointer; }
.tk-win .pp:first-child { border-top: 0; } .tk-win .pp small { color: var(--ink3); margin-left: auto; }
.tk-win .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-win .chips label { margin: 0; } .tk-win .chips input[type=radio] { position: absolute; opacity: 0; }
.tk-win .chips span { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  outline: 1px solid rgba(10, 40, 70, .18); cursor: pointer; }
html.dark .tk-win .chips span { outline-color: rgba(255, 255, 255, .18); }
.tk-win .chips input:checked + span { background: #2563eb; color: #fff; outline: 0; }
.tk-win .chips input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.tk-win .chips .date { width: auto; padding: 6px 10px; }
.tk-win .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tk-win .txt { font-size: 14px; color: var(--ink); white-space: pre-line; }
.tk-win .note-box { background: #f8f1dc; color: #3b2f12; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 6px 0 0; }
html.dark .tk-win .note-box { background: rgba(250, 230, 170, .12); color: #f5e7c0; }
.tk-win .hist { font-size: 12.5px; color: var(--ink3); margin-top: 12px; line-height: 1.7; }
.btn.ok, html.dark .btn.ok { background: #16a34a !important; color: #fff !important; outline: 0 !important; }
.btn.no, html.dark .btn.no { background: #dc2626 !important; color: #fff !important; outline: 0 !important; }
/* Nov 4 (Richard): Announcements; the windows as in Tasks; the department list opens with "Choose departments".
   Nov 24, 2026 (Richard, Mock-up A; GBC Design Guide 4, "One fixed format"): the list is titles only, in two cards (Now,
   Past) with their counts; the tags, the line and the picture (fx-*) and the message (.msg) are shared with the sign-in
   pop-up and HR & Payroll's memos (sizes.css 22, text.css 15). Ended ones are no longer faded. */
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.an-list { display: grid; gap: 14px; margin-top: 14px; }
.an-list > .card { margin: 0 !important; }   /* Nov 10 (Richard, E13): the same gaps as the other pages (14 px, not 30) */
.an-group { padding-top: 6px !important; padding-bottom: 6px !important; }
.an-gh { padding: 10px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.an-gh .n { font-weight: 700; letter-spacing: 0; }
.an-row { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.an-row .tt { font-size: 15.5px; font-weight: 700; min-width: 0; }
.an-row .fx-tags { flex: none; }
.an-row .chev { margin-left: auto; font-size: 22px; line-height: 1; }
.an-none { margin: 0; padding: 12px 0 10px; }
.an-veil { position: fixed; inset: 0; background: rgba(6, 12, 26, .58); backdrop-filter: blur(7px) saturate(115%); -webkit-backdrop-filter: blur(7px) saturate(115%); z-index: 80; display: grid;
  place-items: center; padding: 16px; overflow: auto; }
.an-win { width: min(680px, 100%); padding: 22px 24px !important; margin: auto; }
.an-win h2 { margin: 0 0 4px; font-size: 19px; color: var(--ink); }
.an-win .sub { color: var(--ink3); font-size: 13px; margin: 0 0 12px; }
.an-win label, .an-win .lbl { display: block; font-weight: 650; font-size: 13.5px; margin: 12px 0 6px; color: var(--ink); }
.an-win label small { font-weight: 400; color: var(--ink3); }
.an-win .inp { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(10, 40, 70, .18);
  font: inherit; font-size: 14px; background: #fff; color: #0f172a; }
html.dark .an-win .inp { background: rgba(255, 255, 255, .06); color: #e5edf7; border-color: rgba(255, 255, 255, .14); }
.an-win .big { min-height: 96px; resize: vertical; }
.an-win .until { max-width: 220px; }
.an-win .drop { border: 2px dashed rgba(10, 40, 70, .25); border-radius: 12px; padding: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html.dark .an-win .drop { border-color: rgba(255, 255, 255, .25); }
.an-win .drop .thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.an-win .chk { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 0; }
.an-win .to { display: flex; flex-wrap: wrap; gap: 8px; }
.an-win .chip { margin: 0; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; }
.an-win .chip input { position: absolute; opacity: 0; }
.an-win .chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  outline: 1px solid rgba(10, 40, 70, .18); cursor: pointer; }
html.dark .an-win .chip span { outline-color: rgba(255, 255, 255, .18); }
.an-win .chip input:checked + span { background: #2563eb; color: #fff; outline: 0; }
.an-win .chip input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.an-win .depts { display: none; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.an-win .to:has(.to-some:checked) .depts { display: flex; }
@supports not selector(:has(*)) { .an-win .depts { display: flex; } }   /* older browsers: always shown */
.an-win .row2 { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; }
.an-win .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.an-win .acts form { margin: 0; }
/* Nov 21 (Richard, 1d): End now asks first in the same window; an ended one says it can't be shown again */
.an-win .an-confirm { margin: 16px 0 0; }
.an-win .an-confirm .acts { margin-top: 12px; }
.an-win .an-ended { margin: 12px 0 0; }
.soon-card { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px !important; margin-top: 18px; max-width: 760px; }
.soon-card .big-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #E3EAF3; color: var(--royal); flex: none; }
.soon-card .big-ic .i { width: 28px; height: 28px; }
html.dark .soon-card .big-ic { background: rgba(255, 255, 255, .06); }
.soon-card strong { font-size: 18px; }
.soon-card p { margin-top: 6px; color: var(--ink2); line-height: 1.5; }
.soon-card p.small { margin-top: 10px; }
.notes-pop p { margin-top: 6px; }

/* Oct 30 (Richard): the ERP logo sits beside Bellecitta on every module, and the logo spot is only as wide as the
   two logos (it was 218 px, leaving a gap before the search box). A Wheel module is named right after the ERP logo,
   with a gap before the search box; on a phone the name sits in the middle of the top bar, cut short with "…" if
   it is too long. The ERP's own pages show no name. Oct 30: the name's space is a fixed 160 px (the longest Wheel
   name, "Documentation", fits) and stays, empty, on the ERP's own pages, so the search box starts at one place. */
.top .brand { width: auto; }
.top .sec { display: inline-flex; align-items: center; gap: 8px; flex: none; width: 160px; box-sizing: border-box;
  margin: 0 14px 0 -2px; font-size: 15px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.top .sec .n { overflow: hidden; text-overflow: ellipsis; }
.top .sec .sep { opacity: .45; font-weight: 400; font-size: 18px; }
.top .sec .t { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--c, #475569); }
.top .sec .t .ico { width: 16px; height: 16px; }
@media (max-width: 760px), (pointer: coarse) {
  .top .sec { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; gap: 7px; font-size: 14px;
    width: auto; max-width: calc(100vw - 230px); }
  .top .sec .sep { display: none; }
  .top .sec .t { width: 24px; height: 24px; }
  .top .sec .n { overflow: hidden; text-overflow: ellipsis; }
}

/* Oct 30 (Richard): the one sign-in. The ERP logo under Bellecitta on the sign-in page; the account circle shows the
   signed-in person's initials; its menu has their name and role, Change password and Log out of every module. */
.signin-brand .signin-erp { width: 64px; height: 64px; }
.avatar.ini { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .3px; }

/* Oct 30 (Richard, batch 2): the ADMIN pages (look only until batch 3). */
.adm-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13.5px; color: var(--ink2); }
.adm-note a { color: var(--royal); }
.adm-card { padding: 16px 18px; margin-bottom: 14px; }
table.adm { width: 100%; border-collapse: collapse; font-size: 14px; }
table.adm th { text-align: left; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink3); padding: 6px 10px; }
table.adm td { padding: 9px 10px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.adm-role { display: inline-block; margin: 0 6px 4px 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #e0ecff; color: #1d4ed8; }
html.dark .adm-role { background: rgba(59, 130, 246, .18); color: #93c5fd; }
.adm-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(100, 116, 139, .15); color: var(--ink2); }
.adm-pill.ok { background: rgba(16, 179, 131, .15); color: #047857; }
.adm-pill.warn { background: rgba(225, 29, 72, .14); color: #be123c; }
html.dark .adm-pill.ok { color: #6ee7b7; } html.dark .adm-pill.warn { color: #fda4af; }
.adm-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink3); }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.adm-filter { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-filter select, .adm-filter input { width: auto !important; min-width: 200px; flex: none; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); font: inherit; }
/* Oct 30 (batch 3a): adding and changing logins on the Users page (Super Admins; switched on in batch 3b) */
.adm-form { max-width: 640px; display: grid; gap: 12px; }
.adm-form p { margin: 0; }
.adm-roles { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 0; }
.adm-roles legend { font-size: 13px; color: var(--ink3); padding: 0 6px; }
.adm-roles .checklist + .checklist { border-top: 1px solid var(--line); padding-top: 8px; }
.adm-form label.check { margin-top: 0; }
.adm-msg { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 0 12px; padding: 9px 14px; border-radius: 10px; font-size: 14px; }
.adm-msg.bad { background: rgba(225, 29, 72, .1); color: #be123c; }
.adm-msg.ok { background: rgba(16, 179, 131, .12); color: #047857; }
html.dark .adm-msg.bad { color: #fda4af; } html.dark .adm-msg.ok { color: #6ee7b7; }
.adm-otp { max-width: 640px; }
.adm-otp-pw { font: 700 26px/1.3 ui-monospace, Consolas, monospace; letter-spacing: 1px; margin: 10px 0; color: var(--ink); user-select: all; }
/* Oct 30 (batch 4): the status lines each module gives, above the connection line */
.status-box .sb-lines:empty { display: none; }
.status-box .sb-lines { margin-bottom: 4px; }
.status-box .sb-lines .sb-line a { color: inherit; text-decoration: none; }
/* Oct 30 (batch 4): parts the page fills in later stay out of sight until they have something (the bell number,
   the note dot, Delete, Mark as seen); a button or badge style must never show them early. */
.top [hidden], .notes-tab [hidden], .status-box [hidden] { display: none !important; }
/* Oct 30 (Richard, style E): the Roles page: pick a role and a module, the answer right below (as PAS's Roles). */
.rp-bar { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 16px 18px; margin: 0 0 14px; }
.rp-bar label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .4px; }
.rp-bar select { min-width: 260px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; }
.rp-res { padding: 16px 20px; }   /* Nov 10 (Richard, E1): full width, as the bars above it */
.rp-res h2 { margin: 0 0 2px; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.rp-sub { font-size: 13px; color: var(--ink2); margin: 0 0 12px; }
.rp-sec { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink3); margin: 12px 0 4px; }
.rp-li { display: flex; gap: 10px; align-items: center; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.rp-li.n { color: var(--ink3); }
.rp-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; }
.rp-ic.y { background: #10b383; color: #fff; }
.rp-ic.n { background: rgba(127, 127, 127, .18); color: var(--ink3); }
/* Oct 31 (Richard, style C): one Admin button right above the status box; its pages open upward. */
.side > .admin-wrap { position: relative; margin-top: auto; }
.side > .admin-wrap ~ .status-box { margin-top: 10px !important; }
.admin-wrap .admin-list { position: absolute; left: 0; right: 16px; bottom: calc(100% + 8px); padding: 8px; border-radius: 16px; z-index: 30;
  background: rgba(255, 255, 255, .94); box-shadow: 0 12px 30px rgba(10, 30, 60, .25); display: flex; flex-direction: column; gap: 4px; }
html.dark .admin-wrap .admin-list { background: rgba(16, 26, 46, .96); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.admin-wrap .admin-list[hidden] { display: none !important; }
.admin-wrap .admin-list a { border-radius: 12px !important; }
/* Nov 10 (Richard, E11): every name in the Admin menu on one line ("Problem reports" wrapped) */
.admin-wrap .admin-list a { white-space: nowrap; font-size: 14px; } .admin-wrap .admin-list a span { overflow: hidden; text-overflow: ellipsis; }
.admin-wrap .admin-list a.on::after { display: none; }
.admin-btn { display: flex; align-items: center; gap: 12px; position: relative; text-decoration: none; white-space: nowrap; }
/* Nov 10 (Richard, E2): the page's name on a small second line under "Admin", so long names (Problem reports) fit */
.admin-btn .tx { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.15; }
.admin-btn .pg { display: block; font-weight: 500; color: var(--ink2); font-size: 12px; margin-top: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.admin-btn .caret { margin-left: auto; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 6px solid var(--ink3); margin-right: 4px; }
.admin-btn[aria-expanded="true"] .caret { border-bottom: 0; border-top: 6px solid var(--ink3); }
.admin-btn.on { gap: 8px; }   /* on an admin page: room for "Admin · <page>" and a waiting number on one line */
.admin-btn.on .caret { margin-right: 0; }
/* Nov 22 (Richard, batch 4 item 7): the number waiting on the Admin pages sits on the right, just before the caret */
.admin-btn .nav-badge { flex: none; } .admin-btn .nav-badge + .caret { margin-left: 0; }
.admin-wrap .admin-list a .nav-badge { flex: none; overflow: visible; }
/* Oct 31 (Richard): the Access page. */
.acc-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 10px; border-radius: 12px; background: rgba(37, 99, 235, .08); font-size: 13.5px; color: var(--ink); }
.acc-bar b { margin-right: auto; }
.acc-res { max-width: none; }
/* Nov 22 (Richard, conflict check L1; GBC Design Guide 3): the standard tick, gold (gold.css) and 16 px (sizes.css 3), not its own blue 18 px */
table.acc input[type=checkbox] { width: 16px; height: 16px; }
.acc-pos { display: block; font-size: 12px; color: var(--ink3); }
.acc-no { color: var(--ink3); }
.acc-step { max-width: 720px; }
.acc-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px !important; }

/* Nov 4 (Richard): the one Guide in the top bar (erp/static/guide.js). */
.gbot-box { display: block; }
.gbot-down { margin: 0 14px 8px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; background: rgba(245, 158, 11, .12); color: #92400e; }
.gbot-down[hidden], .gbot-sugg[hidden] { display: none; }
html.dark .gbot-down { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.gb .gb-mod { display: block; font-size: 11px; font-weight: 600; color: var(--ink3); margin-bottom: 2px; }
.gb .gb-help { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.gb .gb-help button { font: inherit; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.gb .gb-help button:hover { border-color: var(--royal); }
.gb.locked { border-left: 3px solid #f59e0b; }
.gbot-go a.sel, .gbot-sugg .pick.sel, .gb .pick.sel { outline: 2px solid var(--royal); outline-offset: 1px; }
/* Nov 4 (Guide build): on a phone the account and bell menus sit inside the screen (PAS's "details.report .pop" rule
   outweighed the phone rule and pushed them off the right edge, hiding "Ask the Guide"). */
@media (max-width: 760px), (pointer: coarse) { details.report.hold .pop { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; } }
/* Nov 4, afternoon (Richard): type in the top-bar box itself; the panel below has no box of its own on a computer. */
.ask.typing { cursor: text; }
.ask.typing input[data-gbot-input] { flex: 1 1 auto !important; min-width: 0 !important; height: 30px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0 !important;
  font: inherit !important; font-size: 14.5px !important; color: var(--ink) !important; }
.ask.typing input[data-gbot-input]::placeholder { color: var(--ink3); opacity: 1; }
.ask.typing .kbd { flex: none; white-space: nowrap; }
.ask.typing:focus-within { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(43, 140, 255, .18), 0 8px 30px -12px rgba(2, 50, 100, .25); }
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) { .ask-wrap .gbot-panel .gbot-form { display: none; } }
/* Option C: Process Flow's steps that match, listed under the pages. */
.gbot-go { display: flex; flex-wrap: wrap; gap: 6px; }
.gbot-go .gb-head { flex-basis: 100%; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ink3); margin: 4px 0 0; }
.gbot-go a.gb-step, .gb a.gb-step { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 10px; background: rgba(71, 85, 105, .08); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.gb a.gb-step { margin-top: 6px; }
.gb-step .gb-step-map { flex: none; font-size: 11.5px; color: var(--ink2); }
html.dark .gbot-go a.gb-step, html.dark .gb a.gb-step { background: rgba(148, 163, 184, .12); }
/* Nov 21 (Richard): Ctrl K lists every page the login may open, grouped by module; a long list scrolls inside the
   panel (the messages keep their room below it). */
.gbot-panel .gbot-go { flex: 0 1 auto; max-height: 55%; overflow-y: auto; align-content: flex-start; }
/* Nov 21: while pages match, the suggested questions step aside (the list gets their room) and the list ends on a line,
   never cut against the chips below */
.gbot-panel:has(.gbot-go:not([hidden])) .gbot-sugg { display: none !important; }
.gbot-panel .gbot-go:not([hidden]) { padding-bottom: 10px; border-bottom: 1px solid rgba(10, 40, 70, .12); }
html.dark .gbot-panel .gbot-go:not([hidden]) { border-bottom-color: rgba(160, 195, 255, .14); }

/* Nov 7 (Richard): the Security tab, style A (neon ring gauges, a glowing line chart). Night in html.dark. */
.sec-title { margin: 2px 0 4px; font-size: 28px; }
.sec-pick { position: relative; }
.sec-pick > summary { list-style: none; cursor: pointer; font-weight: 600; }
.sec-pick > summary::after { content: " ▾"; }
.sec-pick .pop { position: absolute; z-index: 5; top: 44px; left: 0; min-width: 200px; padding: 6px; display: flex; flex-direction: column; }
.sec-pick .pop a { padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sec-pick .pop a.on, .sec-pick .pop a:hover { background: rgba(43, 140, 255, .14); }
.sec-light { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 11px; font-size: 12.5px; }
.sec-light small { display: block; color: var(--ink3); margin-top: 3px; }
.sec-light .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dot.ok { background: #16a36a; box-shadow: 0 0 8px rgba(22, 163, 106, .7); }
.dot.warn { background: #e3a43a; box-shadow: 0 0 8px rgba(227, 164, 58, .7); }
.dot.bad { background: #d9433b; box-shadow: 0 0 8px rgba(217, 67, 59, .7); }
.dot.off { background: #8597ad; }
.sec-light.overall.bad { background: rgba(217, 67, 59, .10); }
.sec-light.overall.warn { background: rgba(227, 164, 58, .12); }
.sec-card { padding: 14px 16px; }
.sec-card.wide { grid-column: span 2; }
.sec-card h3 { margin: 0 0 6px; font-size: 14.5px; }
.sec-card .cap { text-align: center; font-size: 10.5px; letter-spacing: 1.2px; font-weight: 600; color: var(--ink3); margin: 0 0 8px; }
.sec-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.sec-row a { font-weight: 600; }
.sec-lg { font-size: 11px; color: var(--ink3); }
.sec-lg b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; }
.sec-lg b.g { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.sec-lg b.r { background: #ff4d6d; box-shadow: 0 0 8px #ff4d6d; }
.sec-review { margin-top: 8px; }
.ok-text { color: #16a36a; } .bad-text { color: #d9433b; }
svg.ring { width: 100%; max-width: 230px; display: block; margin: 0 auto; }
svg.ring .seg { stroke-width: 16; fill: none; }
svg.ring .seg:not(.lit) { stroke: rgba(10, 26, 43, .12); }
svg.ring .seg.hot { stroke: #ff4d6d; filter: drop-shadow(0 0 4px #ff4d6d); }
svg.ring .limit { stroke: #ff4d6d; stroke-width: 3; stroke-linecap: round; }
svg.ring .dots { fill: none; stroke: rgba(10, 26, 43, .12); stroke-dasharray: 2 5; }
svg.ring .num { font-size: 44px; font-weight: 800; fill: var(--ink); }
svg.ring .unit { font-size: 12px; font-weight: 700; letter-spacing: 1px; fill: #0ea5c6; }
svg.chart { width: 100%; display: block; }
svg.chart .grid { stroke: rgba(10, 26, 43, .10); stroke-dasharray: 3 6; }
svg.chart .good { fill: none; stroke-width: 3; }
svg.chart .bad { fill: none; stroke: #ff4d6d; stroke-width: 2.5; stroke-dasharray: 6 5; }
svg.chart .dot { fill: #fff; stroke: #22d3ee; stroke-width: 2; }
svg.chart .cap { font-size: 11px; fill: var(--ink3); font-weight: 600; letter-spacing: 1px; }
html.dark .sec-light { background: #17253b; border-color: #263344; }
html.dark svg.ring .seg:not(.lit), html.dark svg.ring .dots { stroke: rgba(255, 255, 255, .12); }
html.dark svg.ring .num { fill: #e8f0fa; }
html.dark svg.ring .unit { fill: #22d3ee; }
html.dark svg.chart .grid { stroke: rgba(255, 255, 255, .10); }
html.dark .sec-card { box-shadow: 0 0 0 1px rgba(34, 211, 238, .18), 0 10px 40px rgba(34, 211, 238, .08); }

/* Nov 7 (Richard), Security tab 2: one SUPER ADMIN block at the bottom (Admin, then Security), Security's own living
   icon (Aegis Core in Quantum Lock's colours, "Energy pulse"), clickable status lights, the week chart. */
.side > .super-block { margin-top: auto; position: relative; }
.side > .super-block ~ .status-box { margin-top: 10px !important; }
.super-block .admin-wrap { position: relative; margin-bottom: 6px; }
.super-block .nav-sec { padding-top: 6px !important; }
.side a.sec-link { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative;
  background: linear-gradient(90deg, rgba(244, 114, 182, .14), rgba(139, 92, 246, .12), rgba(34, 211, 238, .10));
  --c: #8b5cf6; border-radius: 18px !important;
  box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, .45), 0 0 16px rgba(139, 92, 246, .18) !important; }
/* open: the same dark glass with a white light edge as every open menu item (look.css, Nov 9) */
.side a.sec-link.on { border-radius: 16px !important; }
.side a.sec-link .nav-badge { --c: #e3a43a; margin-left: auto; }   /* the count stays amber (badges use --c) */
.sti { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
svg.sec-ico { width: 34px; height: 34px; overflow: visible; }
svg.sec-ico .sx-orbit, svg.sec-ico .sx-core, svg.sec-ico .sx-pulse circle { transform-box: view-box; }
svg.sec-ico .sx-orbit { transform-origin: 32px 32px; animation: sx-spin 14s linear infinite; }
svg.sec-ico .sx-core { transform-origin: 32px 29px; animation: sx-breathe 2.5s ease-in-out infinite; }
svg.sec-ico .sx-pulse circle { transform-origin: 32px 29px; opacity: 0; animation: sx-ripple 2.5s ease-out infinite; }
svg.sec-ico.warn .sx-pulse circle, svg.sec-ico.warn .sx-core { animation-duration: 1s; }
@keyframes sx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes sx-breathe { 0%, 100% { opacity: .75; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes sx-ripple { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
@media (prefers-reduced-motion: reduce) {
  svg.sec-ico .sx-orbit, svg.sec-ico .sx-core, svg.sec-ico .sx-pulse circle { animation: none; }
}
a.sec-light { color: inherit; text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.sec-light:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 140, 255, .18); }
a.sec-light:focus-visible { outline: 2px solid #2b8cff; outline-offset: 2px; }
.sec-range { font-weight: 500; color: var(--ink3); font-size: 13px; margin-left: 6px; }
svg.chart .ghost { fill: none; stroke: #a78bfa; stroke-width: 2; stroke-dasharray: 2 4; opacity: .7; }
svg.chart .val { font-size: 10.5px; font-weight: 700; fill: var(--ink2); }
svg.chart .dt { font-size: 10.5px; font-weight: 500; }
svg.chart .now { fill: #0ea5c6; font-weight: 800; }
svg.chart .todaycol { fill: rgba(34, 211, 238, .10); stroke: rgba(34, 211, 238, .45); stroke-width: 1; }
svg.chart .todaytag { font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; fill: #0ea5c6; }
svg.chart .future { fill: rgba(10, 26, 43, .06); }
svg.chart .soon { font-size: 10.5px; fill: var(--ink3); font-style: italic; }
.sec-lg b.gh { background: #a78bfa; }
html.dark svg.chart .now, html.dark svg.chart .todaytag { fill: #22d3ee; }
html.dark svg.chart .future { fill: rgba(255, 255, 255, .06); }
html.dark .side a.sec-link { background: linear-gradient(90deg, rgba(244, 114, 182, .16), rgba(139, 92, 246, .14), rgba(34, 211, 238, .12)); }

/* Nov 7 (Richard), Security tab 3: Richard's design, tighter version (fits one 1500 x 950 screen): a status tag beside
   the title, six lights, two rows of cards, a slim Cloud readiness line. */
.main:has(> .sec-top) { padding-top: 18px !important; padding-bottom: 6px !important; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 8px; }
/* Nov 20 (Richard, item 15): the title and the All modules button share one middle (it was 4 px off) */
.sec-top { align-items: center; }
.sec-top .sec-tools { align-self: center; }
.sec-top .sec-titlerow .sec-title { margin: 0; }
.sec-titlerow { display: flex; align-items: center; gap: 14px; }
.sec-titlerow .sec-title { margin: 2px 0 0; font-size: 30px; line-height: 1.1; }
.sec-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid; }
.sec-tag .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sec-tag.warn { background: rgba(227, 164, 58, .16); color: #92400e; border-color: rgba(227, 164, 58, .45); }
.sec-tag.bad { background: rgba(217, 67, 59, .12); color: #b42318; border-color: rgba(217, 67, 59, .45); }
.sec-tag.ok { background: rgba(22, 163, 106, .12); color: #0f7a4f; border-color: rgba(22, 163, 106, .40); }
a.sec-tag:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(227, 164, 58, .25); }
.sec-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec-ro { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.sec-lights { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sec-lights .sec-light { padding: 7px 12px; border-radius: 12px; font-size: 13px; }
.sec-lights .sec-light b { font-size: 14px; }
.sec-lights .sec-light small { margin-top: 1px; font-size: 12.5px; }
.sec-row1, .sec-row2 { display: grid; gap: 12px; margin-bottom: 12px; align-items: stretch; }
.sec-row1 { grid-template-columns: 1fr 1.9fr 1fr; }
.sec-row2 { grid-template-columns: repeat(3, 1fr); }
.sec-row1:empty, .sec-row2:empty { display: none; }
.sec-row1 > .card, .sec-row2 > .card { margin: 0 !important; }
html body .main .card.sec-card { padding: 11px 16px !important; border-radius: 18px !important; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sec-h a { font-weight: 600; font-size: 13.5px; }
.sec-card h3 { margin-bottom: 4px; }
.sec-row1 svg.ring { max-width: 160px; margin: -2px auto 2px; }
.sec-row1 .cap { margin-bottom: 4px; font-size: 10px; }
.sec-row1 svg.chart { max-height: 190px; }
.sec-row1 .sec-row, .sec-row2 .sec-row { padding: 4px 0; font-size: 13px; }
.warn-text { color: #b7791f; font-weight: 700; }
html.dark .sec-tag.warn, html.dark .warn-text { color: #fbbf24; }
html.dark .sec-tag.bad { color: #ff8a80; } html.dark .sec-tag.ok { color: #4ade80; }
html.dark .sec-lights .sec-light { background: #13213a; border-color: #263449; }
@media (max-width: 900px), (pointer: coarse) { .sec-row1, .sec-row2 { grid-template-columns: 1fr; } .sec-lights { grid-template-columns: repeat(2, 1fr); } }

/* Nov 7 (Richard): Security's living icon before the page title (moves like the menu's; still for reduced motion). */
.sec-title-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; margin-right: -4px; }
.sec-title-ico svg.sec-ico { width: 44px; height: 44px; }

/* Nov 9 (Richard): Change password, the ERP's window over the page you're on (_topbar.html, erp.js): the screen behind
   dimmed and blurred, the window in glass, in every ERP page and in the shared frame (Process Flow). */
.gbc-pw-veil { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; pointer-events: auto;
  background: rgba(6, 12, 26, .58); backdrop-filter: blur(7px) saturate(115%); -webkit-backdrop-filter: blur(7px) saturate(115%); }
.gbc-pw-veil[hidden] { display: none; }
html body .gbc-pw-win { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; box-sizing: border-box; margin: 0;
  border-radius: 26px !important; padding: 26px 30px 22px !important; display: flex; flex-direction: column; gap: 12px; text-align: left;
  font-family: "DM Sans", "Segoe UI", sans-serif; color: #0d1f36; }
html.dark body .gbc-pw-win { color: #e9f2fc; }
.gbc-pw-win .pw-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #0262a3, #2b8cff); box-shadow: 0 10px 22px -10px #0262a3; }
.gbc-pw-win .pw-ic svg { width: 22px; height: 22px; }
.gbc-pw-win h2 { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.2px; color: #0b2f63; }
html.dark .gbc-pw-win h2 { color: #f1f6ff; }
.gbc-pw-win .pw-sub { margin: -4px 0 4px; font-size: 14px; color: #24426b; }
html.dark .gbc-pw-win .pw-sub { color: #c5d4e6; }
.gbc-pw-win .fld { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.gbc-pw-win .fld > span:first-child { font-size: 14px; font-weight: 700; color: #0b2f63; }
html.dark .gbc-pw-win .fld > span:first-child { color: #e3eefc; }
.gbc-pw-win .box { position: relative; display: flex; align-items: center; }
.gbc-pw-win .box > svg.i { position: absolute; left: 14px; width: 19px; height: 19px; color: #3d5a80; pointer-events: none; }
html.dark .gbc-pw-win .box > svg.i { color: #c5d4e6; }
.gbc-pw-win .box input { width: 100%; height: 46px; box-sizing: border-box; margin: 0; padding: 0 46px 0 44px; font-size: 15px;
  background: rgba(255, 255, 255, .62) !important; border: 1px solid rgba(10, 40, 70, .16) !important; border-radius: 14px !important; color: #0d1f36; }
html.dark .gbc-pw-win .box input { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .22) !important; color: #e9f2fc; }
.gbc-pw-win .eye { position: absolute; right: 7px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none;
  color: #3d5a80; display: grid; place-items: center; cursor: pointer; }
.gbc-pw-win .eye svg { width: 19px; height: 19px; }
.gbc-pw-win .eye[aria-pressed="true"] { color: #0262a3; }
html.dark .gbc-pw-win .eye { color: #c5d4e6; } html.dark .gbc-pw-win .eye[aria-pressed="true"] { color: #8cc4ff; }
.gbc-pw-win .pw-rules { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: #24426b; }
.gbc-pw-win .pw-rules li { display: flex; align-items: center; gap: 8px; }
.gbc-pw-win .pw-rules svg { width: 16px; height: 16px; color: #5d7593; }
.gbc-pw-win .pw-rules li.ok { color: #0c7a59; } .gbc-pw-win .pw-rules li.ok svg { color: #10b383; }
html.dark .gbc-pw-win .pw-rules { color: #c5d4e6; } html.dark .gbc-pw-win .pw-rules svg { color: #8197b1; }
html.dark .gbc-pw-win .pw-rules li.ok { color: #6ee7b7; } html.dark .gbc-pw-win .pw-rules li.ok svg { color: #34d399; }
.gbc-pw-win .pw-msg { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.gbc-pw-win .pw-msg[hidden] { display: none; }
.gbc-pw-win .pw-msg.good { background: rgba(16, 179, 131, .14); color: #0c7a59; }
.gbc-pw-win .pw-msg.bad { background: rgba(239, 85, 121, .14); color: #b4234a; }
html.dark .gbc-pw-win .pw-msg.good { color: #6ee7b7; } html.dark .gbc-pw-win .pw-msg.bad { color: #ff8fa8; }
.gbc-pw-win .pw-acts { display: flex; gap: 10px; margin-top: 4px; }
.gbc-pw-win .pw-acts .btn { height: 48px; border-radius: 14px !important; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.gbc-pw-win .pw-acts .btn.primary { flex: 1; }
/* Nov 21 (Richard, batch 3 item 2d): the sign-out warning (_topbar.html, erp.js): the Change password window's look,
   above every other window (it must be seen), narrower, with one button. */
.gbc-idle-veil { z-index: 96; }
html body .gbc-idle-win { width: min(420px, 100%); }
.gbc-idle-win .pw-sub { margin: -2px 0 6px; font-size: 15px; line-height: 1.45; }
@media (max-width: 760px), (pointer: coarse) { html body .gbc-pw-win { padding: 22px 20px 18px !important; } }

/* Nov 10 (Richard, E1): on the Admin pages and My notes the note and footer bars and the Add a login bar run the page's full
   width, as the title bar and the cards do (PAS's styles.css keeps paragraphs to 1100 px; not here). Forms stay half width. */
.main > p.adm-note, .main > p.adm-foot, .main > p:has(> a.btn) { max-width: none; }

/* Nov 10 (Richard, E12): on an Admin page the Admin button is lit (dark); its page name is light, by Day as at Night */
html body .side a.admin-btn.on .pg { color: rgba(255, 255, 255, .8) !important; }
/* Nov 10 (E9): the Security icon and a line icon inside the bell's icon tile */
.bell-item .k > .sec-ico.ci, .bell-item .k > .ci-line { width: 22px; height: 22px; }

/* Nov 13, 2026 (Richard, Locks; Mock-ups G, H, I): Admin -> Locks. One row per module (name, state, buttons on one
   centre line); the Lock window: two modes, the pick list 6 at a time with a search, reason and unlock time. */
.lk-card { padding: 6px 18px; }
.lk-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) 200px 190px; align-items: center; column-gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.lk-row:last-child { border-bottom: 0; }
.lk-dot { width: 12px; height: 12px; border-radius: 50%; }
/* Nov 14 (ERP check F4): one class per lockable module (an in-page colour was refused by the browser) */
.lk-dot.m-pas { background: #10b383; } .lk-dot.m-pfm { background: #475569; } .lk-dot.m-equipment { background: #0ea5a4; }
.lk-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lk-name b { font-size: 15px; } .lk-name small { opacity: .7; font-size: 12.5px; }
.lk-state { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: 13px; }
.lk-state .lk-pad { width: 15px; height: 15px; }
.lk-state.open { background: #dcfce7; color: #166534; }
.lk-state.lock { background: #334155; color: #fff; }
.lk-state.shut { background: #b91c1c; color: #fff; }
.lk-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
@media (max-width: 760px), (pointer: coarse) { .lk-row { grid-template-columns: 12px minmax(0, 1fr); row-gap: 8px; }
  .lk-state, .lk-acts { grid-column: 2; justify-content: flex-start; } }
.lk-win { width: min(580px, 94vw); max-height: 88vh; overflow: auto; box-sizing: border-box; padding: 20px 22px; }
.lk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lk-head h2 { margin: 0; font-size: 19px; }
.lk-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(13, 31, 54, .07);
  color: inherit; text-decoration: none; }
.lk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }   /* Nov 18 (F3): the same gap as the people below */
.lk-modes label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); cursor: pointer; }
.lk-modes label.on { border-color: #334155; background: rgba(51, 65, 85, .06); }
.lk-modes input { margin: 3px 0 0; width: auto; flex: none; }
.lk-modes span { text-align: left; } .lk-modes b { display: block; font-size: 14px; } .lk-modes small { font-size: 12px; opacity: .75; }
.lk-lab { display: block; font-weight: 700; font-size: 13px; margin: 0 0 6px; }
.lk-lab .muted { font-weight: 500; opacity: .7; }
.lk-search { position: relative; margin: 0 0 10px; }
.lk-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .55; }
.lk-search input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px 0 36px; border-radius: 10px; }
.lk-plist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.lk-p { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(13, 31, 54, .04); }
.lk-p[hidden] { display: none; }
.lk-p input { width: auto; flex: none; margin: 0; }
.lk-p b { display: block; font-size: 13.5px; } .lk-p small { font-size: 11.5px; opacity: .7; }
.lk-pager { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-size: 12.5px; opacity: .85; }
.lk-pgbtn { display: flex; gap: 6px; } .lk-pgbtn .btn { width: 32px; justify-content: center; padding: 0; }
.lk-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 16px; }
.lk-two input { width: 100%; box-sizing: border-box; height: 38px; }
.lk-when { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px; }
.lk-foot { display: flex; justify-content: flex-end; gap: 8px; }
.lk-foot .lk-pad { width: 15px; height: 15px; margin-right: 6px; }
@media (max-width: 600px) { .lk-modes, .lk-plist, .lk-two { grid-template-columns: 1fr; } }
html.dark .lk-p { background: rgba(255, 255, 255, .05); }
html.dark .lk-x { background: rgba(255, 255, 255, .08); }
html.dark .lk-modes label.on { border-color: #94a3b8; background: rgba(148, 163, 184, .1); }

/* Nov 16 (Richard): the account menu's Themes row: Vivid (today's look) or Serene, the chosen one filled in (blue in
   Vivid; amber in Serene, serene.css). */
.menu-pop .theme-row { cursor: default; }
.menu-pop .theme-row > span:first-of-type { flex: 1; }
.theme-pick { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(13, 31, 54, .06); }
.theme-pick button { border: 1px solid transparent; background: transparent; color: inherit; font: inherit; font-size: 12.5px;
  font-weight: 600; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.theme-pick button:hover { background: rgba(13, 31, 54, .08); }
.theme-pick button[aria-pressed="true"] { background: #0262a3; border-color: #0262a3; color: #fff; }
html.dark .theme-pick { background: rgba(255, 255, 255, .08); }
html.dark .theme-pick button:hover { background: rgba(255, 255, 255, .1); }
html.dark .theme-pick button[aria-pressed="true"] { background: #2b8cff; border-color: #2b8cff; color: #fff; }
/* Nov 17 (Richard, Mock-up D): Post an announcement: the two "To" choices had the top bar's small-button look (40 px
   tall, glass blur), which drew a shape behind each pill; the unselected one gets its own light fill. */
.an-win .chip { height: auto !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.an-win .chip input:not(:checked) + span { background: rgba(255, 255, 255, .85); outline: 1px solid rgba(10, 40, 70, .2); }
html.dark .an-win .chip input:not(:checked) + span { background: rgba(255, 255, 255, .08); outline-color: rgba(255, 255, 255, .25); color: #e5edf7; }
/* Nov 18 (Richard, Mock-up AD): Delete login, Show deleted, and the Inactive tag in history */
.adm-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Nov 21 (Richard, 2e): Users: a search box and filters on the left of the tools card (Add a login on the right), on one
   middle, 38 px tall (sizes.css); Change, Reset password and Unlock side by side on each row, wrapping, never sideways. */
.adm-user-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; flex: 1 1 520px; min-width: 0; }
.adm-user-find :is(input[type=search], select) { width: auto; height: 38px; box-sizing: border-box; margin: 0; }
.adm-user-find input[type=search] { flex: 1 1 220px; min-width: 180px; max-width: 320px; }
.adm-user-find select { flex: 0 1 auto; min-width: 150px; max-width: 260px; }
.adm-user-find label.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
td.adm-row-acts { min-width: 120px; }
td.adm-row-acts .btn { margin: 2px 6px 2px 0; }
/* Nov 21 (alignment, the next batch's pictures): a row's buttons sit side by side on one line (they stacked, doubling
   every row's height); the cell keeps them together at the row's right */
td.adm-row-acts { white-space: nowrap; }
td.adm-row-acts .btn { vertical-align: middle; }
tr.row-deleted td { opacity: .62; }
tr.row-deleted td:first-child { font-style: italic; }
.adm-pill.gone { white-space: nowrap; background: rgba(100, 116, 139, .18) !important; color: #475569 !important; }
html.dark .adm-pill.gone { background: rgba(203, 213, 225, .16) !important; color: #cbd5e1 !important; }
.tag-inactive { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(100, 116, 139, .16); color: #475569; vertical-align: 1px; white-space: nowrap; }
html.dark .tag-inactive { background: rgba(203, 213, 225, .16); color: #cbd5e1; }
html body .del-card.del-card .adm-head strong { color: #b42318 !important; }
html.dark body .del-card.del-card .adm-head strong { color: #fca5a5 !important; }
html body .btn.btn-delete, html body .btn.btn-delete:hover { background: linear-gradient(180deg, #ef4444, #dc2626) !important; color: #fff !important;
  border-color: transparent !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -8px rgba(220, 38, 38, .7) !important; }
html.dark body .btn.btn-delete, html.dark body .btn.btn-delete:hover { background: linear-gradient(180deg, #dc2626, #b91c1c) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 16px -8px rgba(239, 68, 68, .6) !important; }
/* the bar with Add a login and Show deleted is one glass card, like the bar it replaced (no text on the photo) */
.card.adm-tools { flex-direction: row; padding-top: 12px; padding-bottom: 12px; }

/* Nov 21 (Richard, one card format; GBC Design Guide section 3): a note at the foot of an Admin card is plain text on the
   card (it was a glass bar inside the card, a card in a card); its words start on the card's own edge. A note standing
   on the page keeps its glass (no text on the photo). */
html body .main :is(.card, section, form) p.adm-foot:not(.zz):not(.zy) { background: none !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 0 !important; }

/* Nov 24, 2026 (Richard; Mock-ups C2, D, E4b; GBC Design Guide 4): pop-up notices. The notice's window is the
   sign-out warning's small window (no ✕): one centred column, the PDFs side by side, a thin line, then the two buttons
   full width. A PDF opens inside it (the window widens; Back returns). Who has received it: a bar and two folded lists
   that scroll inside a fixed height, so the window stays the same size however many it reaches. Colours: text.css 15. */
.pn-veil { z-index: 96; }
.pn-win .pn-main { display: flex; flex-direction: column; gap: 6px; }
.pn-win .pn-text { margin: 0; text-align: left; }   /* Nov 24 (Mock-up A): the message as in the window */
.pn-win .pn-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 2px; }
.pn-win .pn-files .btn, .pn-win .pn-acts .btn { justify-content: center; width: 100%; }
.pn-win .pn-line { height: 1px; margin: 6px 0; background: rgba(11, 47, 99, .14); }
html.dark .pn-win .pn-line { background: rgba(255, 255, 255, .18); }
.pn-win .pn-acts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.pn-win .btn[disabled] { opacity: .5; cursor: not-allowed; }
html body .gbc-pw-win.pn-win.pn-wide { width: min(920px, 100%); }
.pn-win .pn-view { display: flex; flex-direction: column; gap: 10px; }
.pn-win .pn-view[hidden], .pn-win .pn-main[hidden] { display: none; }
.pn-win .pn-frame { width: 100%; height: min(70vh, 720px); border: 1px solid rgba(11, 47, 99, .18); border-radius: 12px; background: #fff; }
.an-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.an-win .an-popchk { flex-basis: 100%; }
.an-win .row2:has(input[name="popup"]:checked) > div:first-child { opacity: .45; pointer-events: none; }
.rc { margin-top: 12px; }
.rc .rc-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.rc .rc-bar { height: 10px; border-radius: 999px; background: rgba(11, 47, 99, .12); overflow: hidden; margin: 4px 0 2px; }
html.dark .rc .rc-bar { background: rgba(255, 255, 255, .16); }
.rc .rc-fill { display: block; height: 100%; background: #16a34a; border-radius: 999px; }
.rc-fill.rc-w0 { width: 0%; }
.rc-fill.rc-w5 { width: 5%; }
.rc-fill.rc-w10 { width: 10%; }
.rc-fill.rc-w15 { width: 15%; }
.rc-fill.rc-w20 { width: 20%; }
.rc-fill.rc-w25 { width: 25%; }
.rc-fill.rc-w30 { width: 30%; }
.rc-fill.rc-w35 { width: 35%; }
.rc-fill.rc-w40 { width: 40%; }
.rc-fill.rc-w45 { width: 45%; }
.rc-fill.rc-w50 { width: 50%; }
.rc-fill.rc-w55 { width: 55%; }
.rc-fill.rc-w60 { width: 60%; }
.rc-fill.rc-w65 { width: 65%; }
.rc-fill.rc-w70 { width: 70%; }
.rc-fill.rc-w75 { width: 75%; }
.rc-fill.rc-w80 { width: 80%; }
.rc-fill.rc-w85 { width: 85%; }
.rc-fill.rc-w90 { width: 90%; }
.rc-fill.rc-w95 { width: 95%; }
.rc-fill.rc-w100 { width: 100%; }
.rc details.rc-fold { border-top: 1px solid rgba(11, 47, 99, .14); padding: 6px 0; }
.rc details.rc-fold:last-of-type { border-bottom: 1px solid rgba(11, 47, 99, .14); }
html.dark .rc details.rc-fold { border-color: rgba(255, 255, 255, .18); }
.rc details.rc-fold > summary { cursor: pointer; font-weight: 700; }
.rc .rc-find { height: 34px; width: 100%; box-sizing: border-box; margin-top: 6px; border-radius: 9px; padding: 0 10px; }
.rc .rc-list { max-height: 176px; overflow-y: auto; margin: 6px 0 0; padding: 0 6px 0 2px; display: grid;
  grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 2px; font-size: 14px; line-height: 1.75; scrollbar-width: thin; }
.rc .rc-list > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .rc-list > span[hidden] { display: none; }
@media (max-width: 760px), (pointer: coarse) { .rc .rc-list { grid-template-columns: 1fr; } }
.pn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Nov 24, 2026 (Richard; Mock-ups F3, F4): Admin -> Privacy notice: the "Show" drop-down (a fold-out, on top of the
   table, dense glass so the table doesn't show through) and fixed column widths, so nothing shifts between picks. */
.pnf { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pnf-l { font-weight: 650; font-size: 13.5px; }
.pnf-d { position: relative; }
.pnf-d > summary.pnf-btn { list-style: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 38px; min-width: 220px; box-sizing: border-box; cursor: pointer; }
.pnf-d > summary::-webkit-details-marker { display: none; }
.pnf-car { font-size: 12px; opacity: .7; }
html body .main .pnf-d > .pnf-menu { position: absolute; top: 44px; left: 0; z-index: 60; min-width: 260px; margin: 0;
  padding: 6px !important; display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .97) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(10, 30, 60, .22) !important; }
html.dark body .main .pnf-d > .pnf-menu { background: rgba(16, 30, 54, .97) !important; }
.pnf-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 14px; box-sizing: border-box; }
.pnf-opt:hover, .pnf-opt.on { background: rgba(250, 204, 21, .28); }
.pnf-n { font-weight: 700; }
table.adm.pn-table { table-layout: fixed; width: 100%; }
table.adm.pn-table th:nth-child(1) { width: 26%; } table.adm.pn-table th:nth-child(2) { width: 20%; }
table.adm.pn-table th:nth-child(3) { width: 22%; } table.adm.pn-table th:nth-child(4) { width: 15%; }
