/* Starcon theme: white boxes with a thin grey outline on a light grey page, one accent colour (purple, blue, pink, green, orange or dark grey) for the top bar,
   the sidebar and the buttons. Light, dark (navy) and auto (follows the computer) modes. Flat: no gradients, soft corners, shadows only on menus.
   Bootstrap 5.3 comes from the CDN; its colours are overridden below. The choices are made in the top-right user menu (assets/app.js). */

:root {
  color-scheme: light;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --sidebar-width: 248px;
  --topbar-height: 60px;
  --radius: 3px;
  /* accent: purple (default); the other five are set below by html[data-accent] */
  --brand-900: #2a1f5c; --brand-800: #382a7a; --brand-700: #5b46b0; --brand-500: #7c69cc; --brand-300: #c4bbef; --brand-100: #ece9fa; --brand-rgb: 91, 70, 176;
  --side-text: #dcd7f2; --side-label: #a59cd6; --side-icon: #c4bbef;
  --tan: #f2a33a; --tan-dark: #d9861a; --tan-bg: #fdf1dc;   /* the highlight (active menu bar, tour frame) */
  --page-bg: #f7f8fa; --bg-card: #ffffff; --bg-hover: #f3f5f8; --bg-input: #ffffff;
  --border-color: #dfe3e8; --text-primary: #1f2a37; --text-secondary: #4b5767; --text-muted: #7b8696;
  --topbar-bg: var(--brand-700); --topbar-text: #ffffff; --topbar-border: transparent;
  --ok: #1f7a52; --ok-bg: #e3f3ea; --warn: #8a5f28; --warn-bg: var(--tan-bg); --bad: #b3362a; --bad-bg: #fbe5e2; --info: #1d6493; --info-bg: #e2eff8; --grey: #5f6672; --grey-bg: #eef0f3;
  --heat-0: #eceff3; --heat-1: color-mix(in srgb, var(--brand-500) 28%, var(--bg-card)); --heat-2: color-mix(in srgb, var(--brand-500) 55%, var(--bg-card)); --heat-3: var(--brand-500); --heat-4: var(--brand-900);
  --bs-body-bg: var(--page-bg); --bs-body-color: var(--text-primary); --bs-border-color: var(--border-color); --bs-link-color: var(--brand-700); --bs-link-hover-color: var(--brand-900);
  --bs-primary: var(--brand-700); --bs-primary-rgb: var(--brand-rgb); --bs-focus-ring-color: rgba(var(--brand-rgb), .25);
  --bs-border-radius: var(--radius); --bs-border-radius-sm: 2px; --bs-border-radius-lg: 4px; --bs-border-radius-xl: 5px; --bs-border-radius-xxl: 6px; --bs-border-radius-pill: 3px;
}
html[data-accent="blue"] {
  --brand-900: #0a2d57; --brand-800: #0f4488; --brand-700: #1368c4; --brand-500: #4a90dc; --brand-300: #a9cbf0; --brand-100: #e1eefb; --brand-rgb: 19, 104, 196;
  --side-text: #d9e5f4; --side-label: #8fb0d8; --side-icon: #a9cbf0;
}
html[data-accent="pink"] {
  --brand-900: #4a1230; --brand-800: #6b1b45; --brand-700: #b0457c; --brand-500: #cf6f9f; --brand-300: #ebb5d0; --brand-100: #f9e6f0; --brand-rgb: 176, 69, 124;
  --side-text: #f3dbe8; --side-label: #d79bbb; --side-icon: #ebb5d0;
}
html[data-accent="green"] {
  --brand-900: #123d2c; --brand-800: #1a5640; --brand-700: #3f8f68; --brand-500: #67b38e; --brand-300: #b3dcc6; --brand-100: #e2f3ea; --brand-rgb: 63, 143, 104;
  --side-text: #d8eee3; --side-label: #8fc2a8; --side-icon: #b3dcc6;
}
html[data-accent="orange"] {
  --brand-900: #5a2e08; --brand-800: #7a3f0c; --brand-700: #d98324; --brand-500: #e8a252; --brand-300: #f3cf9f; --brand-100: #fdf0dd; --brand-rgb: 217, 131, 36;
  --side-text: #f6e4cc; --side-label: #d9b07c; --side-icon: #f3cf9f;
}
html[data-accent="grey"] {
  --brand-900: #1f2328; --brand-800: #2d3239; --brand-700: #474e57; --brand-500: #6c737e; --brand-300: #b9bec6; --brand-100: #eceef1; --brand-rgb: 71, 78, 87;
  --side-text: #dfe2e6; --side-label: #9aa1ab; --side-icon: #b9bec6;
}
/* Dark mode: deep navy with the same grey-outlined boxes. Documents and PDFs stay on white paper. */
html[data-bs-theme="dark"] {
  color-scheme: dark;
  --page-bg: color-mix(in srgb, var(--brand-500) 5%, #151515); --bg-card: color-mix(in srgb, var(--brand-500) 7%, #202021); --bg-hover: color-mix(in srgb, var(--brand-500) 11%, #2b2b2c); --bg-input: color-mix(in srgb, var(--brand-500) 5%, #19191a); --border-color: color-mix(in srgb, var(--brand-500) 12%, #39393a);
  --text-primary: #ececec; --text-secondary: #bfbfc0; --text-muted: #909092; --brand-100: color-mix(in srgb, var(--brand-500) 20%, #202021);
  --tan-bg: #3a3022; --topbar-bg: color-mix(in srgb, var(--brand-500) 10%, #1b1b1c); --topbar-border: var(--border-color);
  --ok-bg: #173628; --ok: #6fcf9f; --warn: #e2b77d; --bad-bg: #3d1f1c; --bad: #f08b80; --info-bg: #243342; --info: #8cc0ea; --grey-bg: #2b2b2c; --grey: #a9b6c3;
  --heat-0: #2b2b2c; --heat-4: var(--brand-300);
  --bs-link-color: var(--brand-300); --bs-link-hover-color: #ffffff;
}
html[data-bs-theme="dark"] .btn-primary { --bs-btn-bg: var(--brand-500); --bs-btn-border-color: var(--brand-500); }
html[data-bs-theme="dark"] .dash-card-label i, html[data-bs-theme="dark"] .dash-head h2 i { color: var(--brand-300); }
html[data-bs-theme="dark"] .spark polyline { stroke: var(--brand-300); }
html[data-bs-theme="dark"] .badge.bg-primary { color: var(--brand-300) !important; }
html[data-bs-theme="dark"] a:not(.btn):not(.dash-card):not(.dash-arrival):not([class*="nav"]):not(.dropdown-item) { color: var(--bs-link-color); }
html[data-bs-theme="dark"] .form-control::placeholder { color: var(--text-muted); }
html[data-bs-theme="dark"] .table-register thead th a { color: inherit; }
html[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: var(--brand-300); --bs-btn-border-color: var(--brand-500); }

.shadow, .shadow-sm, .shadow-lg { box-shadow: none !important; }

/* Base and layout */
html, body { margin: 0; background: var(--page-bg); color: var(--text-primary); font-family: var(--font-main); }
body { min-height: 100vh; overflow-x: hidden; }
body { padding-top: var(--topbar-height); font-size: .92rem; }
body.no-shell { padding-top: 0; }   /* sign-in and error pages without the top bar */
#content { margin-left: var(--sidebar-width); min-height: calc(100vh - var(--topbar-height)); }
.terminal-container { padding: 22px 26px; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
a { color: var(--brand-700); }
h1, h2, h3, h4, h5, h6, .h4, .h5 { color: var(--text-primary); letter-spacing: -.01em; }

/* Bootstrap components */
.card, .modal-content, .dropdown-menu, .list-group-item { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }
.form-control, .form-select, .input-group-text { background-color: var(--bg-input); color: var(--text-primary); border-color: var(--border-color); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .16); }
.form-label { font-weight: 600; font-size: .84rem; color: var(--text-secondary); }
.form-check-input:checked { background-color: var(--brand-700); border-color: var(--brand-700); }
.btn { font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--brand-700); --bs-btn-border-color: var(--brand-700); --bs-btn-hover-bg: var(--brand-900); --bs-btn-hover-border-color: var(--brand-900);
  --bs-btn-active-bg: var(--brand-900); --bs-btn-active-border-color: var(--brand-900); --bs-btn-disabled-bg: var(--brand-500); --bs-btn-disabled-border-color: var(--brand-500); }
.btn-outline-primary { --bs-btn-color: var(--brand-700); --bs-btn-border-color: var(--brand-700); --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); }
.btn-outline-secondary, .btn-dark, .btn-light { --bs-btn-color: var(--text-secondary); --bs-btn-bg: var(--bg-card); --bs-btn-border-color: var(--border-color);
  --bs-btn-hover-color: var(--text-primary); --bs-btn-hover-bg: var(--bg-hover); --bs-btn-hover-border-color: var(--brand-300);
  --bs-btn-active-color: var(--text-primary); --bs-btn-active-bg: var(--brand-100); --bs-btn-active-border-color: var(--brand-300); }
.btn-warning, .btn-success { --bs-btn-color: var(--brand-900); --bs-btn-bg: var(--tan); --bs-btn-border-color: var(--tan); --bs-btn-hover-color: var(--brand-900);
  --bs-btn-hover-bg: var(--tan-dark); --bs-btn-hover-border-color: var(--tan-dark); --bs-btn-active-bg: var(--tan-dark); --bs-btn-active-border-color: var(--tan-dark); }
.btn-danger { --bs-btn-bg: var(--bad); --bs-btn-border-color: var(--bad); --bs-btn-hover-bg: #8f2a20; --bs-btn-hover-border-color: #8f2a20;
  --bs-btn-disabled-bg: #d98c84; --bs-btn-disabled-border-color: #d98c84; }
.btn-outline-danger { --bs-btn-color: var(--bad); --bs-btn-border-color: #e5b3ad; --bs-btn-hover-bg: var(--bad); --bs-btn-hover-border-color: var(--bad); }
.alert { border: 1px solid var(--border-color); border-left: 4px solid var(--brand-500); background: var(--bg-card); color: var(--text-primary); }
.alert-success { border-left-color: var(--ok); background: var(--ok-bg); }
.alert-danger { border-left-color: var(--bad); background: var(--bad-bg); }
.alert-warning { border-left-color: var(--warn); background: var(--warn-bg); }
.alert-info, .alert-secondary { border-left-color: var(--brand-500); background: var(--bg-hover); }
.pagination { --bs-pagination-color: var(--text-secondary); --bs-pagination-active-bg: var(--brand-700); --bs-pagination-active-border-color: var(--brand-700);
  --bs-pagination-hover-color: var(--brand-700); --bs-pagination-border-color: var(--border-color); --bs-pagination-focus-box-shadow: none; }
.nav-tabs { border-bottom-color: var(--border-color); }
.nav-tabs .nav-link { color: var(--text-muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; }
.nav-tabs .nav-link.active { color: var(--brand-700); background: none; border-bottom-color: var(--brand-700); }

/* Status chips: every Bootstrap badge colour becomes a tinted chip with a dot (Bootstrap marks bg-* !important, hence the same here) */
.badge { font-weight: 600; font-size: .72rem; padding: .32em .65em; letter-spacing: .01em; border: 1px solid transparent; }
.badge[class*="bg-"]::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; vertical-align: middle; background: currentColor; }
.badge.bg-success { background-color: var(--ok-bg) !important; color: var(--ok) !important; }
.badge.bg-warning { background-color: var(--warn-bg) !important; color: var(--warn) !important; }
.badge.bg-danger { background-color: var(--bad-bg) !important; color: var(--bad) !important; }
.badge.bg-info { background-color: var(--info-bg) !important; color: var(--info) !important; }
.badge.bg-primary { background-color: var(--brand-100) !important; color: var(--brand-700) !important; }
.badge.bg-secondary, .badge.bg-dark { background-color: var(--grey-bg) !important; color: var(--grey) !important; }
.badge-code { background: var(--bg-hover); border-color: var(--border-color); color: var(--text-primary); }

/* Sidebar: dark green, always open on a desktop */
#sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1000; display: flex; flex-direction: column; width: var(--sidebar-width); background: var(--brand-900); color: var(--side-text); }
.sidebar-scrollable-content { flex: 1 1 auto; overflow-y: auto; padding: 6px 0 24px; scrollbar-width: thin; scrollbar-color: var(--brand-700) transparent; }
#sidebar .brand-header { padding: 14px 18px; height: var(--topbar-height); display: flex; align-items: center; background: var(--bg-card); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.brand-logo-image { width: 150px; max-width: 100%; height: auto; display: block; }
#sidebar .nav-section-label { width: 100%; padding: 14px 18px 6px; display: flex; align-items: center; justify-content: space-between; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--side-label); background: none; border: 0; cursor: pointer; }
#sidebar .nav-section-label.collapsed-section .section-arrow { transform: rotate(-90deg); }
#sidebar .nav-section-items.section-hidden { display: none; }
#sidebar ul.nav-menu { list-style: none; margin: 0; padding: 0; }
#sidebar ul.nav-menu li a { display: flex; align-items: center; padding: 8px 18px; font-size: .86rem; font-weight: 500; color: var(--side-text); text-decoration: none; border-left: 3px solid transparent; }
#sidebar ul.nav-menu li a:hover { background: var(--brand-800); color: #fff; }
#sidebar ul.nav-menu li a.active { background: var(--brand-700); color: #fff; font-weight: 600; border-left-color: var(--tan); }
#sidebar ul.nav-menu li a i { width: 20px; margin-right: 12px; font-size: 1rem; text-align: center; color: var(--side-icon); }
#sidebar ul.nav-menu li a.active i { color: var(--tan); }

/* Top bar (accent colour; navy in dark mode) and the user menu at its right end */
.top-console { position: fixed; top: 0; right: 0; left: var(--sidebar-width); z-index: 950; height: var(--topbar-height); padding: 0 26px; display: flex; align-items: center; justify-content: space-between;
  background: var(--topbar-bg); color: var(--topbar-text); border-bottom: 1px solid var(--topbar-border); }
.top-console .brand-title { color: var(--topbar-text); }
.top-console .top-link { color: var(--topbar-text); opacity: .88; font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-console .top-link:hover { opacity: 1; color: var(--topbar-text); }
.top-console .avatar-btn { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: #f59e0b; color: #fff; font-weight: 700; font-size: .88rem;
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; cursor: pointer; }
.top-console .avatar-btn:hover, .top-console .avatar-btn[aria-expanded="true"] { border-color: #fff; }
.user-menu .dropdown-menu { min-width: 240px; margin-top: 10px; padding: 6px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .16) !important; }
.user-menu .user-id { display: block; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-size: .88rem; }
.user-menu .user-id small { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; }
.user-menu .dropdown-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; color: var(--text-secondary); font-size: .9rem; font-weight: 500; background: none; border: 0; border-radius: var(--radius); text-align: left; }
.user-menu .dropdown-item > .bi:first-child { width: 18px; font-size: 1.05rem; color: var(--text-muted); }
.user-menu .dropdown-item:hover, .user-menu .menu-sub:hover > .dropdown-item, .user-menu .menu-sub.open > .dropdown-item { background: var(--bg-hover); color: var(--text-primary); }
.user-menu .menu-sub { position: relative; }
.user-menu .sub-list { display: none; position: absolute; top: -7px; right: 100%; margin-right: 10px; min-width: 190px; padding: 6px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .16); }
.user-menu .sub-list::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 12px; }   /* no gap to lose the hover when the pointer crosses */
.user-menu .menu-sub:hover > .sub-list, .user-menu .menu-sub.open > .sub-list { display: block; }
.user-menu .sub-list .dropdown-item.active { background: var(--brand-100); color: var(--brand-700); }
.user-menu .sub-list .dropdown-item.active > .bi:first-child { color: var(--brand-700); }
html[data-bs-theme="dark"] .user-menu .sub-list .dropdown-item.active, html[data-bs-theme="dark"] .user-menu .sub-list .dropdown-item.active > .bi:first-child { color: var(--brand-300); }
.user-menu .tick { display: none; margin-left: auto; }
.user-menu .dropdown-item.active .tick { display: inline; }
.user-menu .swatch { display: inline-block; width: 16px; height: 16px; border-radius: var(--radius); }
.sw-purple { background: #5b46b0; } .sw-blue { background: #1368c4; } .sw-pink { background: #b0457c; } .sw-green { background: #3f8f68; } .sw-orange { background: #d98324; } .sw-grey { background: #474e57; }
.user-menu .dropdown-item.text-danger { color: var(--bad); }
@media (max-width: 575px) {   /* on a phone the submenu opens below its row instead of beside the menu */
  .user-menu .sub-list { position: static; margin: 2px 0 4px 12px; box-shadow: none; }
  .user-menu .sub-list::after { display: none; }
  .user-menu .dropdown-menu { min-width: 220px; }
}
.mobile-menu-toggle { display: none; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: var(--topbar-text); }
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 9990; background: rgba(10, 18, 32, .5); }
.sidebar-backdrop.show { display: block; }

/* Generic list, form and detail screens (Crud engine) */
.page-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.breadcrumb-text { font-size: .8rem; color: var(--text-muted); }
.panel { background: var(--bg-card); border: 1px solid var(--border-color); padding: 22px; }
.panel-narrow { max-width: 760px; margin: 0 auto; }
.table-responsive { border: 1px solid var(--border-color); }
.table-register { width: 100%; border-collapse: collapse; font-size: .8rem; }
.table-register thead th { background: var(--bg-hover); color: var(--text-muted); text-transform: uppercase; font-weight: 700; font-size: .7rem; letter-spacing: .04em; padding: 9px 7px; overflow-wrap: normal; word-break: normal;
  border-bottom: 1px solid var(--border-color); }
.table-register thead th a { color: inherit; text-decoration: none; }
.table-register tbody td { padding: 9px 7px; vertical-align: middle; border-bottom: 1px solid var(--border-color);
  white-space: normal; overflow-wrap: anywhere; }   /* long text wraps inside its row, so a list never needs sideways scrolling */
.table-register td.text-nowrap, .table-register td.action-icons { overflow: visible; max-width: none; }   /* chips, dates and actions are never cut */
.panel .table-sm th, .panel .table-sm td { white-space: nowrap; font-size: .8rem; vertical-align: middle; }   /* row tables inside forms and detail pages */
/* Help page: an index, then one section per job with its steps and a screenshot */
.help-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.help-index a { padding: 5px 10px; border: 1px solid var(--border-color); background: var(--bg-hover); color: var(--text-secondary); font-size: .8rem; font-weight: 600; text-decoration: none; }
.help-index a:hover { border-color: var(--brand-300); color: var(--brand-700); }
.help-section { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 24px; align-items: start; padding: 22px 0; border-top: 1px solid var(--border-color); scroll-margin-top: 80px; }
.help-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.help-section p { color: var(--text-secondary); }
.help-section ol { padding-left: 18px; margin-bottom: 14px; }
.help-section li { margin-bottom: 6px; line-height: 1.45; }
.help-shot { width: 100%; height: auto; border: 1px solid var(--border-color); }
@media (max-width: 900px) { .help-section { grid-template-columns: 1fr; } }

/* First-use tour (assets/app.js): a frame around the part being explained and a card with the text */
.tour-shade { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .45); }
.tour-frame { position: absolute; z-index: 10001; border: 3px solid var(--tan); pointer-events: none; transition: all .15s; }
.tour-card { position: absolute; z-index: 10002; width: 320px; max-width: calc(100vw - 24px); padding: 16px 18px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); border-top: 4px solid var(--brand-700); }
.tour-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.tour-card p { font-size: .86rem; color: var(--text-secondary); margin: 0 0 12px; }
.tour-card .tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--text-muted); }

/* Month calendar (employee portal) */
.table-register.cal { table-layout: fixed; }
.table-register.cal th { text-align: center; }
.table-register.cal td { height: 64px; vertical-align: top; font-weight: 600; white-space: normal; border-right: 1px solid var(--border-color); }
.table-register.cal td.cal-today { background: var(--brand-100); }
.cal-status { display: block; margin-top: 4px; padding: 2px 5px; font-size: .68rem; font-weight: 600; }
.cal-ok { background: var(--ok-bg); color: var(--ok); }
.cal-bad { background: var(--bad-bg); color: var(--bad); }
.cal-warn, .cal-leave { background: var(--tan-bg); color: var(--warn); }
.report-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.report-stat { padding: 12px 14px; background: var(--bg-hover); border: 1px solid var(--border-color); border-left: 3px solid var(--brand-500); }
.report-stat-label { display: block; font-size: .76rem; font-weight: 600; color: var(--text-muted); }
.report-stat-value { display: block; font-size: 1.15rem; font-weight: 700; }
.table-register tbody tr:last-child td { border-bottom: 0; }
.table-register tbody tr:hover { background: var(--bg-hover); }
/* The ACTION column stays at the right edge when a wide table scrolls sideways */
.table-register th.col-actions, .table-register td.action-icons { position: sticky; right: 0; z-index: 1; box-shadow: -1px 0 0 var(--border-color); }
.table-register th.col-actions { background: var(--bg-hover); }
.table-register td.action-icons { background: var(--bg-card); }
.table-register tbody tr:hover td.action-icons { background: var(--bg-hover); }
.action-icons a, .action-icons button { color: var(--text-muted); margin-right: 9px; font-size: .95rem; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.action-icons a:hover, .action-icons button:hover { color: var(--brand-700); }
.action-icons .icon-delete:hover { color: var(--bad); }
.action-icons form { display: inline; }
/* Forms: fields in a grid (one column on a phone), long fields across; the save bar stays in view on long forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 22px; }
.form-grid .field-wide { grid-column: 1 / -1; }
.form-grid .field-wide td:first-child input { min-width: 190px; }   /* the charge / document name column of row tables */
.form-actions { position: sticky; bottom: 0; z-index: 5; margin: 8px -22px -22px; padding: 14px 22px; background: var(--bg-card); border-top: 1px solid var(--border-color); }
.select-narrow { width: 75px; }
.select-filter { width: auto; max-width: 190px; }
.input-date { width: 150px; }
.input-search { width: 220px; }

/* Sign-in page: brand panel at the left, form at the right */
.login-wrap { min-height: calc(100vh - 40px); display: flex; align-items: stretch; justify-content: center; padding: 20px 0; }
.login-shell { display: flex; width: 100%; max-width: 980px; background: var(--bg-card); border: 1px solid var(--border-color); }
.login-brand { flex: 1 1 50%; min-height: 560px; position: relative; }
.login-tag { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 22px 24px; background: var(--brand-900); color: var(--side-text); font-size: .86rem; }
.login-tag h2 { color: #fff; font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.login-tag h2 span { color: var(--tan); }
.login-card { flex: 1 1 50%; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-card h1 { font-size: 1.5rem; font-weight: 700; }
.top-divider { height: 24px; }
.brand-title { max-width: 250px; }

/* Phones and small tablets: the sidebar is hidden and slides over the page from the menu button */
@media (max-width: 900px) {
  #sidebar { z-index: 9999; transform: translateX(-100%); }
  #sidebar.mobile-open { transform: translateX(0); }
  #content { margin-left: 0; }
  .top-console { left: 0; padding: 0 14px; }
  .mobile-menu-toggle { display: inline-flex; }
  .terminal-container { padding: 16px 14px; }
  .top-console .brand-title { max-width: 42vw; }
  .breadcrumb-text { display: none; }
  .table-register th.col-actions, .table-register td.action-icons { position: static; box-shadow: none; }   /* on a phone the table scrolls as a whole */
  .panel > .d-flex { flex-wrap: wrap; gap: 8px; }
  .heat { grid-template-columns: 74px repeat(12, minmax(0, 1fr)); gap: 3px; }
  .heat-month { font-size: .6rem; }
  .login-brand { display: none; }
  .login-card { padding: 32px 22px; }
}

/* Home page (dashboard.php) */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dash-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; }
.dash-card:hover { border-color: var(--brand-300); color: var(--text-primary); }
.dash-card-label { font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.dash-card-label i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; background: var(--brand-100); color: var(--brand-700); }
.dash-card-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dash-card-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.dash-change { font-size: .76rem; color: var(--text-muted); }
.dash-change.up { color: var(--ok); }
.dash-change.down { color: var(--bad); }
.spark polyline { fill: none; stroke: var(--brand-500); stroke-width: 2; }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.dash-wide { grid-column: span 8; }
.dash-side { grid-column: span 4; }
.dash-full { grid-column: 1 / -1; }
.dash-half { grid-column: span 6; }
.dash-quarter { grid-column: span 3; }
.dash-photo { position: relative; min-height: 260px; border: 1px solid var(--border-color); }
.dash-photo-tag { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; background: var(--brand-900); color: var(--tan); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.dash-photo-tag b { display: block; margin-top: 2px; color: #fff; font-size: .82rem; letter-spacing: 0; }
.dash-latest td:nth-last-child(-n+2) { white-space: nowrap; }   /* date and stage */
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.dash-head h2 i { color: var(--brand-700); margin-right: 6px; }
.dash-head a { font-size: .8rem; font-weight: 600; text-decoration: none; }
.heat { display: grid; grid-template-columns: 96px repeat(12, minmax(0, 1fr)); gap: 5px; align-items: center; }
.heat i { display: block; height: 26px; background: var(--heat-0); }
.heat-month { font-size: .7rem; color: var(--text-muted); text-align: center; }
.heat-label { font-size: .78rem; font-weight: 600; color: var(--text-secondary); }
.heat .heat-1, .heat-key .heat-1 { background: var(--heat-1); }
.heat .heat-2, .heat-key .heat-2 { background: var(--heat-2); }
.heat .heat-3, .heat-key .heat-3 { background: var(--heat-3); }
.heat .heat-4, .heat-key .heat-4 { background: var(--heat-4); }
.heat-key { font-size: .72rem; color: var(--text-muted); }
.heat-key i { display: inline-block; width: 12px; height: 12px; margin: 0 1px; vertical-align: middle; }
.dash-arrival { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-size: .84rem; }
.dash-arrival small { display: block; color: var(--text-muted); font-size: .74rem; }
.dash-arrival:hover b { color: var(--brand-700); }
@media (max-width: 1150px) { .dash-wide, .dash-side, .dash-half { grid-column: 1 / -1; } .dash-quarter { grid-column: span 6; } }
@media (max-width: 700px) { .dash-quarter { grid-column: 1 / -1; } }

/* Charts drawn by charts.js (flat; the accent colour and light brown) */
.chart svg { width: 100%; height: auto; }
.chart text { fill: var(--text-muted); font-size: 11px; }
.chart line { stroke: var(--border-color); }
.chart .s0 { fill: var(--brand-700); }
.chart .s1 { fill: var(--tan-dark); }
.chart .key { margin-right: 14px; font-size: .8rem; color: var(--text-secondary); }
.chart .key i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; }
.chart .key .s0 { background: var(--brand-700); }
.chart .key .s1 { background: var(--tan-dark); }

/* The owner's ship photo (tools/theme_references/ship.webp), kept inside this file so it adds no file: dashboard tile and sign-in page */
.photo-ship { background: var(--brand-900) url("data:image/webp;base64,UklGRuhfAABXRUJQVlA4WAoAAAAgAAAASAEAvAEASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaA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4uVkzNEOmCWCKRNG0os0Am0qQHpq+8ylbqefAyrMN29DJEanz0Bit6jixKwitHli/lDgcQKbMHHgAAAA=") center / cover no-repeat; }

/* Live tracking: summary boxes, a staff list and a map (Leaflet, from the CDN) */
.live-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.live-stat { padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); }
.live-stat-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.live-stat b { display: block; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: var(--grey); }
.dot.live, .live-avatar.live, .live-pin.live { background: #1f9d63; }
.dot.seen, .live-avatar.seen, .live-pin.seen { background: #e29a2b; }
.dot.none, .live-avatar.none, .live-pin.none { background: #98a2b0; }
.live-grid { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
.live-side { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); display: flex; flex-direction: column; height: 620px; }
.live-search { position: relative; padding: 12px 12px 8px; }
.live-search .bi { position: absolute; left: 24px; top: 50%; margin-top: -4px; color: var(--text-muted); }
.live-search input { padding-left: 32px; }
.live-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; border-bottom: 1px solid var(--border-color); }
.live-chips .chip { padding: 3px 11px; font-size: .78rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); cursor: pointer; }
.live-chips .chip.active { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.live-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; }
.live-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.live-item:hover { background: var(--bg-hover); }
.live-avatar, .live-pin { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .9rem; }
.live-info { display: flex; flex-direction: column; min-width: 0; }
.live-info small { color: var(--text-secondary); font-size: .76rem; }
.live-info small.text-muted { color: var(--text-muted) !important; }
.live-map-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 6px; }
.live-map { height: 608px; border-radius: var(--radius); z-index: 1; }
.live-pin-wrap { background: none; border: 0; }
.live-pin { width: 34px; height: 34px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .35); }
.live-popup b { display: block; }
.leaflet-container { font-family: var(--font-main); }
html[data-bs-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } .live-side { height: 340px; } .live-map { height: 420px; } }

/* Employee portal (attendance page): tabs, three cards, then the logs */
.hr-tabs { display: flex; gap: 22px; margin: 0 0 16px; border-bottom: 1px solid var(--border-color); }
.hr-tabs a { padding: 8px 2px 10px; font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.hr-tabs a:hover { color: var(--text-primary); }
.hr-tabs a.active { color: var(--text-primary); border-bottom-color: var(--brand-700); }
.hr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.hr-card, .hr-logs { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px 18px; }
.hr-card h3, .hr-logs h3 { font-size: 1.02rem; font-weight: 500; margin: 0 0 12px; }
.hr-sub { margin: -8px 0 10px; font-size: .78rem; color: var(--text-muted); }
.hr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hr-stats .report-stat { padding: 8px 10px; border-left-width: 3px; }
.hr-stats .report-stat-value { font-size: 1rem; }
.hr-avg { display: flex; gap: 28px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-color); }
.hr-avg small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .05em; color: var(--text-muted); }
.hr-avg b { font-size: 1.3rem; font-weight: 400; }
.hr-days { display: flex; gap: 8px; margin-bottom: 18px; }
.hr-day { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--border-color); border-radius: 50%; font-size: .66rem; font-weight: 600; color: var(--text-muted); }
.hr-day.today { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.hr-shift { font-size: .78rem; color: var(--text-secondary); margin-bottom: 6px; }
.hr-progress { display: block; width: 100%; height: 8px; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-hover); appearance: none; -webkit-appearance: none; }
.hr-progress::-webkit-progress-bar { background: var(--bg-hover); }
.hr-progress::-webkit-progress-value { background: var(--brand-500); border-radius: var(--radius); }
.hr-progress::-moz-progress-bar { background: var(--brand-500); border-radius: var(--radius); }
.hr-shift-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: .72rem; color: var(--text-muted); }
.hr-actions { display: flex; gap: 22px; align-items: flex-start; }
.hr-clock { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-hover); white-space: nowrap; }
.hr-clock b { display: block; font-size: 1.15rem; font-weight: 500; }
.hr-clock small { color: var(--text-muted); font-size: .74rem; }
.hr-links { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.hr-links a { font-size: .84rem; text-decoration: none; }
.hr-links a i { margin-right: 6px; }
.hr-tabrow { display: flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.hr-tabrow button { padding: 9px 20px; font-size: .84rem; font-weight: 500; color: var(--text-secondary); background: var(--bg-card); border: 0; border-right: 1px solid var(--border-color); cursor: pointer; }
.hr-tabrow button:last-child { border-right: 0; }
.hr-tabrow button.active { background: var(--brand-100); color: var(--text-primary); }
.hr-months { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.hr-months a { padding: 9px 20px; font-size: .84rem; font-weight: 600; color: var(--brand-700); text-decoration: none; border: 1px solid var(--border-color); margin-left: -1px; background: var(--bg-card); }
.hr-months a:first-child { border-radius: var(--radius); }
.hr-months a:last-child { border-radius: var(--radius); }
.hr-months a.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.hr-pane[hidden] { display: none; }
.hr-log td { vertical-align: middle; }
.hr-bar line { stroke: var(--border-color); stroke-width: 1; }
.hr-bar rect { fill: var(--brand-500); }
.hr-late { color: var(--bad); font-weight: 600; }
.hr-ontime { color: var(--ok); font-weight: 600; }
.hr-chip { display: inline-block; padding: 2px 9px; font-size: .74rem; font-weight: 600; border-radius: var(--radius); }
@media (max-width: 1100px) { .hr-cards { grid-template-columns: 1fr; } }

/* New layout: search box, "+ New" and the bell in the top bar; the Dashboard above the menu groups */
.top-search { position: relative; width: min(420px, 38vw); }
.top-search .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .75); font-size: .9rem; }
.top-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); font-size: .86rem; outline: 0; }
.top-search input::placeholder { color: rgba(255, 255, 255, .75); }
.top-search input:focus { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.top-new { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; color: var(--topbar-text); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); font-size: .84rem; font-weight: 600; cursor: pointer; }
.top-new:hover { background: rgba(255, 255, 255, .26); }
.top-bell { position: relative; width: 36px; height: 36px; color: var(--topbar-text); background: none; border: 0; font-size: 1.2rem; cursor: pointer; }
.bell-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--radius); background: #ef4444; color: #fff; font-size: .64rem; font-weight: 700; line-height: 17px; text-align: center; }
.quick-new .dropdown-menu, .quick-bell .dropdown-menu { min-width: 250px; margin-top: 10px; padding: 6px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .16) !important; }
.quick-new .dropdown-item, .quick-bell .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--text-secondary); font-size: .9rem; border-radius: var(--radius); }
.quick-new .dropdown-item .bi, .quick-bell .dropdown-item .bi { width: 18px; color: var(--text-muted); }
.quick-new .dropdown-item:hover, .quick-bell .dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.quick-bell .user-id { display: block; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-color); font-size: .88rem; }
#sidebar ul.nav-top { padding: 8px 0 4px; }
@media (max-width: 900px) { .top-search { width: 40vw; } }
@media (max-width: 575px) { .top-search { display: none; } }

.todo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--tan); border-radius: var(--radius); }
.todo-title { font-size: .84rem; font-weight: 700; color: var(--text-secondary); margin-right: 6px; }
.todo-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: .84rem; color: var(--text-primary); text-decoration: none; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: var(--radius); }
.todo-item:hover { border-color: var(--brand-500); color: var(--text-primary); }
.todo-item b { color: var(--brand-700); }
html[data-bs-theme="dark"] .todo-item b { color: var(--brand-300); }

/* New layout: list page header, status tabs and toolbar */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.page-head .list-actions { margin: 0 !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.page-head .list-actions > div { display: flex; gap: 8px; flex-wrap: wrap; }
.list-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 14px; border-bottom: 1px solid var(--border-color); }
.list-tabs a { padding: 8px 14px; font-size: .82rem; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; text-transform: capitalize; }
.list-tabs a:hover { color: var(--text-primary); }
.list-tabs a.active { color: var(--brand-700); border-bottom-color: var(--brand-700); }
html[data-bs-theme="dark"] .list-tabs a.active { color: var(--brand-300); border-bottom-color: var(--brand-300); }
.erp #searchForm > div:last-child { order: -1; }
.erp #searchForm > div:last-child label { display: none; }
.erp #searchForm .input-search { width: 280px; }

/* New layout: record header chip, tabs and the activity timeline */
.head-chip { margin-left: 8px; font-size: .9rem; vertical-align: middle; }
.page-head .breadcrumb-text a { color: inherit; }
.detail-tabs { margin-bottom: 18px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--border-color); margin-left: 5px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline-dot { position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-500); border: 2px solid var(--bg-card); }

/* New layout: forms with a section heading and boxed row tables */
.form-section { grid-column: 1 / -1; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.form-section .bi { margin-right: 6px; color: var(--brand-500); }
.form-section { display: flex; align-items: center; }
.form-badge { margin-left: auto; padding: 3px 10px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--brand-50, #f4f6f8); color: var(--text-muted); font-size: .75rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.erp .form-card { padding: 14px; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: var(--radius); }
.erp .form-card > .form-label { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.erp .form-actions { border-radius: var(--radius); }

/* New layout, list pages: the page stays still and only the table scrolls, so the title, the buttons and the search stay where they are */
@media (min-width: 901px) {
  body.no-page-scroll { height: 100vh; overflow: hidden; }
  body.no-page-scroll #content { height: calc(100vh - var(--topbar-height)); min-height: 0; display: flex; flex-direction: column; }
  .terminal-container.fixed-page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 16px; }
  .fixed-page > .page-head, .fixed-page > .alert { flex: 0 0 auto; }
  .fixed-page > .panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .fixed-page > .panel > * { flex: 0 0 auto; }
  .fixed-page > .panel > #listResults { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .fixed-page #listResults > .table-responsive { flex: 1 1 auto; min-height: 0; overflow: hidden auto; }
  .fixed-page #listResults > :not(.table-responsive) { flex: 0 0 auto; }
  .fixed-page .table-register thead th { position: sticky; top: 0; z-index: 3; }
  .fixed-page .table-register th.col-actions { z-index: 4; }
}
#listResults.is-loading { opacity: .55; transition: opacity .15s; }

@media (min-width: 901px) {
  .fixed-page > .panel > .report-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
}
.doc-label { display: inline-block; min-width: 190px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); }

/* Very small rounded corners (3 px, --radius); the avatar, the status dots, the map pins and the weekday circles are round. Leaflet parts follow the same radius. */
.leaflet-bar, .leaflet-bar a, .leaflet-popup-content-wrapper, .leaflet-control-attribution, .leaflet-container { border-radius: var(--radius) !important; }
.hr-progress::-webkit-progress-bar, .hr-progress::-webkit-progress-value, .hr-progress::-moz-progress-bar { border-radius: var(--radius); }

/* No sideways scrolling on a desktop: tables fit the width and wrap. A phone keeps the sideways scroll (a wide table cannot wrap into 390 px). Short values (dates, amounts, chips, the action icons) stay on one line. */
@media (min-width: 901px) { .table-responsive { overflow-x: hidden; } }
.table-register td.text-nowrap { white-space: nowrap; }   /* dates and amounts stay whole */
.table-register td.action-icons { white-space: normal !important; min-width: 92px; max-width: 150px; }   /* the icons wrap onto a second line when there are many */
.table-register .badge { white-space: normal; }

/* Wide lists: columns marked secondary are hidden until "All columns" is pressed */
.table-register.cols-compact .col-secondary { display: none; }
html[data-all-cols] .table-register.cols-compact .col-secondary { display: table-cell; }
html[data-all-cols] .table-responsive { overflow-x: auto !important; }

/* List styles (the three buttons above a list: Rich, Tiles, Inbox). They only apply on a desktop; a phone, the print page and the plain tables keep the plain table above
   (the buttons are hidden on a phone). The style sits on #listResults as data-list-style, set by the server and by assets/app.js. */
.list-style-toggle, .lead-av, .list-sortbar, .phone-view-toggle { display: none; }   /* the initials show only in the Rich style, on a desktop */
@media (min-width: 901px) {
  .list-style-toggle { display: inline-flex; align-self: center; padding: 3px; gap: 2px; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: 5px; }
  .list-style-toggle button { width: 34px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: transparent; color: var(--text-muted); font-size: .95rem; cursor: pointer; }
  .list-style-toggle button:hover { color: var(--text-primary); }
  .list-style-toggle button.active { background: var(--bg-card); color: var(--brand-700); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
  html[data-bs-theme="dark"] .list-style-toggle button.active { color: var(--brand-300); }

  #listResults[data-list-style="rich"] .table-register .badge { white-space: nowrap; }

  /* Rich: no boxes at all. An airy list with initials beside the name, a muted ID, a brand-coloured header line, pill chips, and row actions that appear on hover */
  #listResults[data-list-style="rich"] > .table-responsive { border: 0; background: transparent; }
  #listResults[data-list-style="rich"] .table-register { border-collapse: separate; border-spacing: 0; }
  #listResults[data-list-style="rich"] .table-register thead th { background: var(--bg-card); color: var(--brand-700); padding: 10px 14px; border-bottom: 0; box-shadow: inset 0 -2px 0 var(--brand-300); letter-spacing: .08em; }
  html[data-bs-theme="dark"] #listResults[data-list-style="rich"] .table-register thead th { color: var(--brand-300); }
  #listResults[data-list-style="rich"] .table-register th.col-actions { background: var(--bg-card); box-shadow: inset 0 -2px 0 var(--brand-300); }
  #listResults[data-list-style="rich"] .table-register td.action-icons { white-space: nowrap !important; min-width: 116px; }
  #listResults[data-list-style="rich"] .table-register tbody td { padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border-color) 45%, transparent); }
  #listResults[data-list-style="rich"] .table-register tbody tr:last-child td { border-bottom: 0; }
  #listResults[data-list-style="rich"] .table-register tbody tr:hover { background: transparent; }
  #listResults[data-list-style="rich"] .table-register tbody tr:hover td { background: color-mix(in srgb, var(--brand-500) 8%, var(--bg-card)); }
  #listResults[data-list-style="rich"] .table-register tbody tr:hover td:first-child { border-radius: 5px 0 0 5px; }
  #listResults[data-list-style="rich"] .table-register tbody tr:hover td:last-child { border-radius: 0 5px 5px 0; }
  #listResults[data-list-style="rich"] .table-register td.col-key { white-space: nowrap; color: var(--text-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
  #listResults[data-list-style="rich"] .table-register td.col-key::before { content: '#'; }
  #listResults[data-list-style="rich"] .lead-wrap { display: flex; align-items: center; gap: 11px; }
  #listResults[data-list-style="rich"] .lead-text { font-weight: 700; color: var(--text-primary); min-width: 0; }
  #listResults[data-list-style="rich"] .lead-av { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
  #listResults[data-list-style="rich"] .av-0 { background: var(--brand-100); color: var(--brand-700); }
  #listResults[data-list-style="rich"] .av-1 { background: var(--ok-bg); color: var(--ok); }
  #listResults[data-list-style="rich"] .av-2 { background: var(--warn-bg); color: var(--warn); }
  #listResults[data-list-style="rich"] .av-3 { background: var(--bad-bg); color: var(--bad); }
  #listResults[data-list-style="rich"] .av-4 { background: var(--info-bg); color: var(--info); }
  #listResults[data-list-style="rich"] .av-5 { background: var(--grey-bg); color: var(--grey); }
  #listResults[data-list-style="rich"] .av-6 { background: var(--tan-bg); color: var(--tan-dark); }
  #listResults[data-list-style="rich"] .av-7 { background: var(--brand-300); color: var(--brand-900); }
  #listResults[data-list-style="rich"] .table-register .badge { border-radius: 999px; padding: .4em .85em; }
  #listResults[data-list-style="rich"] .table-register .badge[class*="bg-"]::before { border-radius: 50%; }
  #listResults[data-list-style="rich"] .table-register td.text-nowrap { font-variant-numeric: tabular-nums; color: var(--text-secondary); }
  #listResults[data-list-style="rich"] .table-register td.action-icons { box-shadow: none; }
  #listResults[data-list-style="rich"] .table-register td.action-icons > * { opacity: .3; transition: opacity .15s; }
  #listResults[data-list-style="rich"] .table-register tbody tr:hover td.action-icons > *, #listResults[data-list-style="rich"] .table-register td.action-icons:focus-within > * { opacity: 1; }
  #listResults[data-list-style="rich"] .table-register td.action-icons a, #listResults[data-list-style="rich"] .table-register td.action-icons button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 2px; border-radius: 50%; }
  #listResults[data-list-style="rich"] .table-register td.action-icons a:hover, #listResults[data-list-style="rich"] .table-register td.action-icons button:hover { background: var(--brand-100); }
  #listResults[data-list-style="rich"] .table-register td.action-icons .icon-delete:hover { background: var(--bad-bg); }

  /* The sort bar replaces the column headers in Tiles and Inbox (same links, same server-side sorting) */
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) > .list-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: .78rem; color: var(--text-muted); }
  .list-sortbar span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; margin-right: 4px; }
  .list-sortbar a { padding: 4px 11px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-card); color: var(--text-secondary); text-decoration: none; font-weight: 600; }
  .list-sortbar a:hover { border-color: var(--brand-300); color: var(--brand-700); }
  .list-sortbar a.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

  /* Shared by Tiles and Inbox: the table is taken apart, so no column grid is left; initials, pill chips and the labels come from data-label */
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) > .table-responsive { border: 0; background: transparent; overflow-x: hidden; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) :is(.table-register, thead, tbody) { display: block; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register thead { display: none; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register tbody td { border: 0; background: none; padding: 0; max-width: none; box-shadow: none; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register td:empty { display: none; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register td.col-secondary { display: none; }
  html[data-all-cols] #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register td.col-secondary:not(:empty) { display: flex; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register td.action-icons { position: static; min-width: 0; max-width: none; white-space: nowrap !important; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register tbody td[colspan] { display: block; padding: 28px; text-align: center; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register tbody td { min-width: 0; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .lead-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .lead-text { font-weight: 700; color: var(--text-primary); min-width: 0; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .lead-av { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: .76rem; font-weight: 700; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-0 { background: var(--brand-100); color: var(--brand-700); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-1 { background: var(--ok-bg); color: var(--ok); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-2 { background: var(--warn-bg); color: var(--warn); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-3 { background: var(--bad-bg); color: var(--bad); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-4 { background: var(--info-bg); color: var(--info); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-5 { background: var(--grey-bg); color: var(--grey); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-6 { background: var(--tan-bg); color: var(--tan-dark); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .av-7 { background: var(--brand-300); color: var(--brand-900); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register .badge { border-radius: 999px; padding: .4em .85em; white-space: nowrap; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register .badge[class*="bg-"]::before { border-radius: 50%; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .action-icons :is(a, button) { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 2px; border-radius: 50%; }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .action-icons :is(a, button):hover { background: var(--brand-100); }
  #listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .action-icons .icon-delete:hover { background: var(--bad-bg); }

  /* Tiles: a gallery of cards, several to a row. Name and avatar on top, an ID chip in the corner, the other fields as Label: value, the actions in a footer strip */
  #listResults[data-list-style="tiles"] .table-register tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; padding: 2px 2px 14px; }
  #listResults[data-list-style="tiles"] .table-register tbody tr { position: relative; display: flex; flex-direction: column; padding: 18px 18px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: transform .15s, box-shadow .15s, border-color .15s; }
  #listResults[data-list-style="tiles"] .table-register tbody tr:hover { background: var(--bg-card); transform: translateY(-3px); border-color: var(--brand-300); box-shadow: 0 12px 26px rgba(16, 24, 40, .13); }
  html[data-bs-theme="dark"] #listResults[data-list-style="tiles"] .table-register tbody tr:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }
  #listResults[data-list-style="tiles"] .table-register tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: .8rem; }
  #listResults[data-list-style="tiles"] .table-register tbody td[data-label]::before { content: attr(data-label); flex: 0 0 34%; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
  #listResults[data-list-style="tiles"] .table-register tbody td.col-lead { order: -2; display: block; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-color); font-size: 1rem; }
  #listResults[data-list-style="tiles"] .table-register tbody td.col-lead::before { display: none; }
  #listResults[data-list-style="tiles"] .table-register tbody td.col-key { order: -3; align-self: flex-start; margin-bottom: 10px; padding: 2px 9px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  #listResults[data-list-style="tiles"] .table-register tbody td.col-key::before { content: '#'; flex: none; font-size: .7rem; color: inherit; letter-spacing: 0; }
  #listResults[data-list-style="tiles"] .table-register tbody td:has(> input[type="checkbox"]) { position: absolute; top: 16px; right: 14px; display: block; padding: 0; }
  #listResults[data-list-style="tiles"] .table-register tbody td.text-nowrap { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  #listResults[data-list-style="tiles"] .table-register tbody td.action-icons { order: 99; display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-color); }

  /* Inbox: no table at all. One slim row per record, like a mail list: name and status on the first line, the other fields as a muted second line, actions at the right */
  #listResults[data-list-style="inbox"] .table-register tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); border-left: 3px solid transparent; }
  #listResults[data-list-style="inbox"] .table-register tbody tr:last-child { border-bottom: 0; }
  #listResults[data-list-style="inbox"] .table-register tbody tr:hover { background: color-mix(in srgb, var(--brand-500) 6%, var(--bg-card)); border-left-color: var(--brand-500); }
  #listResults[data-list-style="inbox"] .table-register tbody tr::after { content: ''; order: 4; flex: 0 0 100%; height: 0; }
  #listResults[data-list-style="inbox"] .table-register tbody td { order: 5; display: inline-flex; gap: 5px; font-size: .74rem; color: var(--text-muted); }
  #listResults[data-list-style="inbox"] .table-register tbody td[data-label]::before { content: attr(data-label) ':'; font-weight: 700; text-transform: uppercase; font-size: .62rem; letter-spacing: .05em; align-self: center; }
  #listResults[data-list-style="inbox"] .table-register tbody td:has(> input[type="checkbox"]) { order: 0; display: block; }
  #listResults[data-list-style="inbox"] .table-register tbody td.col-key { order: 0; min-width: 52px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
  #listResults[data-list-style="inbox"] .table-register tbody td.col-key::before { content: '#'; }
  #listResults[data-list-style="inbox"] .table-register tbody td.col-lead { order: 1; flex: 1 1 0; min-width: 0; display: block; font-size: .92rem; color: var(--text-primary); }
  #listResults[data-list-style="inbox"] .table-register tbody td.col-lead::before { display: none; }
  #listResults[data-list-style="inbox"] .table-register tbody td:has(.badge):not(.col-lead) { order: 2; margin-left: auto; }
  #listResults[data-list-style="inbox"] .table-register tbody td:has(.badge):not(.col-lead)::before { display: none; }
  #listResults[data-list-style="inbox"] .table-register tbody td.action-icons { order: 3; display: inline-flex; margin-left: 6px; }
  #listResults[data-list-style="inbox"] .table-register tbody td.action-icons > * { opacity: .3; transition: opacity .15s; }
  #listResults[data-list-style="inbox"] .table-register tbody tr:hover td.action-icons > *, #listResults[data-list-style="inbox"] .table-register td.action-icons:focus-within > * { opacity: 1; }
  #listResults[data-list-style="inbox"] .table-register tbody td.text-nowrap { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
}

/* Phones and tablets: the card layout for every list */
@media (max-width: 900px) {
  /* The sort bar replaces the column headers in Tiles and Inbox (same links, same server-side sorting) */
  :where(html:not([data-phone-list])) #listResults[data-list-style] > .list-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: .78rem; color: var(--text-muted); }
  .list-sortbar span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; margin-right: 4px; }
  .list-sortbar a { padding: 4px 11px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-card); color: var(--text-secondary); text-decoration: none; font-weight: 600; }
  .list-sortbar a:hover { border-color: var(--brand-300); color: var(--brand-700); }
  .list-sortbar a.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

  /* Shared by Tiles and Inbox: the table is taken apart, so no column grid is left; initials, pill chips and the labels come from data-label */
  :where(html:not([data-phone-list])) #listResults[data-list-style] > .table-responsive { border: 0; background: transparent; overflow-x: hidden; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] :is(.table-register, thead, tbody) { display: block; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register thead { display: none; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td { border: 0; background: none; padding: 0; max-width: none; box-shadow: none; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register td:empty { display: none; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register td.col-secondary { display: none; }
  html[data-all-cols] :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register td.col-secondary:not(:empty) { display: flex; }
  #listResults[data-list-style="rich"] .table-register td.action-icons { position: static; min-width: 0; max-width: none; white-space: nowrap !important; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td[colspan] { display: block; padding: 28px; text-align: center; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .lead-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .lead-text { font-weight: 700; color: var(--text-primary); min-width: 0; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .lead-av { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: .76rem; font-weight: 700; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-0 { background: var(--brand-100); color: var(--brand-700); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-1 { background: var(--ok-bg); color: var(--ok); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-2 { background: var(--warn-bg); color: var(--warn); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-3 { background: var(--bad-bg); color: var(--bad); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-4 { background: var(--info-bg); color: var(--info); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-5 { background: var(--grey-bg); color: var(--grey); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-6 { background: var(--tan-bg); color: var(--tan-dark); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .av-7 { background: var(--brand-300); color: var(--brand-900); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register .badge { border-radius: 999px; padding: .4em .85em; white-space: nowrap; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register .badge[class*="bg-"]::before { border-radius: 50%; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .action-icons :is(a, button) { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 2px; border-radius: 50%; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .action-icons :is(a, button):hover { background: var(--brand-100); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .action-icons .icon-delete:hover { background: var(--bad-bg); }

  /* Tiles: a gallery of cards, several to a row. Name and avatar on top, an ID chip in the corner, the other fields as Label: value, the actions in a footer strip */
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; padding: 2px 2px 14px; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody tr { position: relative; display: flex; flex-direction: column; padding: 18px 18px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: transform .15s, box-shadow .15s, border-color .15s; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody tr:hover { background: var(--bg-card); transform: translateY(-3px); border-color: var(--brand-300); box-shadow: 0 12px 26px rgba(16, 24, 40, .13); }
  html[data-bs-theme="dark"] :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody tr:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: .8rem; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td[data-label]::before { content: attr(data-label); flex: 0 0 34%; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td.col-lead { order: -2; display: block; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--border-color); font-size: 1rem; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td.col-lead::before { display: none; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td.col-key { order: -3; align-self: flex-start; margin-bottom: 10px; padding: 2px 9px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td.col-key::before { content: '#'; flex: none; font-size: .7rem; color: inherit; letter-spacing: 0; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td:has(> input[type="checkbox"]) { position: absolute; top: 16px; right: 14px; display: block; padding: 0; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td.text-nowrap { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td.action-icons { order: 99; display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-color); }

  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td { min-width: 0; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody tr { padding: 14px 14px 10px; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody { grid-template-columns: minmax(0, 1fr); }
}

/* Dashboard, reports and the employee portal: the same look as the Rich list (brand header line, airy rows, soft row highlight, pill chips).
   report.php and form.php mark their panels (rich-tables, form-settings); the dashboard and the portal tabs already have their own classes. */
:is(.rich-tables, .dash-latest, .hr-pane) .table-responsive { border: 0; background: transparent; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) { border-collapse: separate; border-spacing: 0; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) thead th { background: var(--bg-card); color: var(--brand-700); padding: 10px 14px; border-bottom: 0; box-shadow: inset 0 -2px 0 var(--brand-300); letter-spacing: .08em; }
html[data-bs-theme="dark"] :is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) thead th { color: var(--brand-300); }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) tbody td { padding: 12px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border-color) 45%, transparent); }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) tbody tr:last-child td { border-bottom: 0; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) tbody tr:hover { background: transparent; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) tbody tr:hover td { background: color-mix(in srgb, var(--brand-500) 8%, var(--bg-card)); }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) tbody tr:hover td:first-child { border-radius: 5px 0 0 5px; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) tbody tr:hover td:last-child { border-radius: 0 5px 5px 0; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) .badge { border-radius: 999px; padding: .4em .85em; white-space: nowrap; }
:is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) td.text-nowrap { font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.rich-tables .report-stat { border-radius: 8px; }
.dash-card, .panel.dash-side, .panel.dash-wide, .panel.dash-full { border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06); }
html[data-bs-theme="dark"] :is(.dash-card, .panel.dash-side, .panel.dash-wide, .panel.dash-full) { box-shadow: 0 0 0 1px var(--border-color); }
.dash-card { transition: transform .15s, border-color .15s, box-shadow .15s; }
.dash-card:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: 0 8px 20px rgba(16, 24, 40, .12); }

/* Settings (the tabbed form): a soft card, pill tabs, brand section headings and filled fields */
.form-settings { border: 0; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .07); }
html[data-bs-theme="dark"] .form-settings { box-shadow: 0 0 0 1px var(--border-color); }
.form-settings .nav-tabs { display: inline-flex; gap: 4px; padding: 4px; border-bottom: 0; background: var(--bg-hover); border-radius: 6px; }
.form-settings .nav-tabs .nav-link { border: 0; border-radius: 4px; padding: 7px 16px; font-weight: 600; color: var(--text-muted); }
.form-settings .nav-tabs .nav-link:hover { color: var(--text-primary); }
.form-settings .nav-tabs .nav-link.active { background: var(--bg-card); color: var(--brand-700); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
html[data-bs-theme="dark"] .form-settings .nav-tabs .nav-link.active { color: var(--brand-300); }
.form-settings .form-section { color: var(--brand-700); border-bottom: 2px solid var(--brand-300); }
html[data-bs-theme="dark"] .form-settings .form-section { color: var(--brand-300); }
.form-settings .form-label { font-size: .78rem; font-weight: 700; color: var(--text-secondary); }
.form-settings :is(.form-control, .form-select) { background-color: var(--bg-hover); border-color: transparent; border-radius: 6px; padding-top: .55rem; padding-bottom: .55rem; }
.form-settings :is(.form-control, .form-select):focus { background-color: var(--bg-card); border-color: var(--brand-500); }

/* A table inside a cell (the document rows of Courier Inward / Outward) stays a real table inside a Tiles card, an Inbox row or a phone card */
#listResults[data-list-style] .table-register tbody td:has(> table) { overflow: visible; min-width: 240px; max-width: none; white-space: normal; }   /* never a scroll bar inside a cell: the small table fits the cell and its text wraps */
#listResults[data-list-style] td table.table-sm { display: table !important; width: 100%; min-width: 0; margin: 0; }
#listResults[data-list-style] td table.table-sm thead { display: table-header-group !important; }
#listResults[data-list-style] td table.table-sm tbody { display: table-row-group !important; padding: 0 !important; }
#listResults[data-list-style] td table.table-sm tr { display: table-row !important; padding: 0 !important; border: 0 !important; transform: none !important; box-shadow: none !important; background: none !important; }
#listResults[data-list-style] td table.table-sm thead th { background: var(--bg-hover) !important; box-shadow: none !important; color: var(--text-muted) !important; font-size: .64rem !important; letter-spacing: .04em !important; }
#listResults[data-list-style] td table.table-sm :is(td, th) { display: table-cell !important; padding: .3rem .5rem !important; border: 1px solid var(--border-color) !important; font-size: .74rem; color: var(--text-primary); white-space: normal; overflow: visible; max-width: none; overflow-wrap: break-word; text-overflow: clip; }
#listResults[data-list-style] td table.table-sm td::before { content: none !important; }

/* Report tables are wide: keep words whole and let the table scroll sideways instead of breaking job numbers and amounts into pieces */
.rich-tables .table-responsive { overflow-x: auto !important; }
.rich-tables .table-register:not(.cal) :is(td, th) { overflow-wrap: normal; word-break: normal; }
.rich-tables .table-register:not(.cal) tbody td { padding: 12px 10px; }
.rich-tables .table-register:not(.cal) thead th { padding: 10px; }
#listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register tbody td:has(> table) { display: block !important; }
#listResults:is([data-list-style="tiles"], [data-list-style="inbox"]) .table-register tbody td:has(> table)::before { display: block !important; margin-bottom: 6px; }
@media (max-width: 900px) {
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td:has(> table) { display: block !important; }
  :where(html:not([data-phone-list])) #listResults[data-list-style] .table-register tbody td:has(> table)::before { display: block !important; margin-bottom: 6px; }
}
/* Rich: a name never breaks letter by letter when a wide cell (documents) takes the room */
#listResults[data-list-style="rich"] .table-register tbody td.col-lead { overflow-wrap: normal; min-width: 150px; }
.rich-tables .table-register:not(.cal) thead th { padding: 10px 8px; letter-spacing: .04em; }
.rich-tables .table-register:not(.cal) tbody td { padding: 12px 8px; }

/* Sub-tabs: pages that belong together (Time = Attendance + Leave Approvals) */
.sub-tabs { gap: 4px; padding: 4px; background: var(--bg-hover); border-radius: 6px; display: inline-flex; }
.sub-tabs .nav-link { border-radius: 4px; padding: 6px 16px; font-weight: 600; font-size: .85rem; color: var(--text-muted); }
.sub-tabs .nav-link:hover { color: var(--text-primary); }
.sub-tabs .nav-link.active { background: var(--bg-card); color: var(--brand-700); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
html[data-bs-theme="dark"] .sub-tabs .nav-link.active { color: var(--brand-300); }

/* Phones: the search row (box, All columns, button) fits the screen instead of pushing the page sideways. */
@media (max-width: 575.98px) {
  .erp #searchForm > div:last-child { width: 100%; flex-wrap: nowrap; }
  .erp #searchForm .input-search { width: auto; min-width: 0; flex: 1 1 0; }
}

/* Import page: the column names the file may hold. */
.import-col { display: inline-block; margin: 0 .25rem .25rem 0; padding: .1rem .5rem; border: 1px solid var(--border, #dee2e6); border-radius: 6px; background: var(--bg-hover, #f3f4f6); font-size: .75rem; font-weight: 600; }

/* Sidebar: a line between the work groups and the personal / admin groups (My Space, HR, Admin). */
#sidebar .nav-divider { margin: 10px 18px 4px; border-top: 1px solid rgba(255, 255, 255, .22); }

/* Search: the result groups, the jump chips, and the recent searches (list under the top box and on the search page). */
.search-group { margin: 0 !important; font-weight: 700; }
.search-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-jump a { display: inline-flex; gap: .4rem; align-items: center; padding: .2rem .65rem; border: 1px solid var(--border, #dee2e6); border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.search-jump a span { padding: 0 .4rem; border-radius: 999px; background: var(--bg-hover, #eef0f4); font-size: .72rem; }
.search-recent { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.search-recent .recent-item, .search-recent .recent-clear { padding: .2rem .65rem; border: 1px solid var(--border, #dee2e6); border-radius: 999px; background: transparent; color: inherit; font-size: .8rem; text-decoration: none; }
.search-recent .recent-clear { border-style: dashed; opacity: .7; }
.top-search .search-recent-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; padding: .35rem; background: var(--bg-panel, #fff); color: var(--text, #212529); border: 1px solid var(--border, #dee2e6); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.top-search .search-recent-pop[hidden] { display: none; }
.top-search .search-recent-pop .recent-item { padding: .4rem .6rem; border-radius: 6px; color: inherit; font-size: .85rem; text-decoration: none; }
.top-search .search-recent-pop .recent-item:hover { background: var(--bg-hover, #f3f4f6); }
.top-search .search-recent-pop .recent-item .bi { position: static; transform: none; color: inherit; opacity: .6; margin-right: .25rem; }
.top-search .search-recent-pop .recent-clear { align-self: flex-end; border: 0; background: transparent; color: inherit; opacity: .6; font-size: .75rem; padding: .2rem .5rem; }
.search-count { padding: .05rem .5rem; border-radius: 999px; background: var(--bg-hover, #eef0f4); font-size: .75rem; font-weight: 700; }

/* Two-step sign-in: QR code (always black on white, also in dark mode, or phones cannot read it), setup key and backup codes */
.qr-box .qr-img { display: block; width: 200px; height: 200px; image-rendering: pixelated; background: #fff; border-radius: 6px; }
.setup-key code { font-size: 1.05rem; letter-spacing: .08em; user-select: all; }
.code-input { max-width: 12rem; font-family: 'JetBrains Mono', monospace; font-size: 1.15rem; letter-spacing: .15em; }
.backup-codes { columns: 2; max-width: 22rem; font-size: 1.05rem; }
.backup-codes code { letter-spacing: .06em; }

/* Page guide drawer (opened by "This page" in the top bar; no backdrop, so the page underneath stays usable). */
.help-page-btn { background: transparent; border: 0; cursor: pointer; font: inherit; }
.help-drawer { --bs-offcanvas-width: min(460px, 100vw); display: flex; flex-direction: column; }
.help-drawer .offcanvas-body { overflow-y: auto; padding-top: .25rem; }
.help-bar { flex: 0 0 auto; padding: 0 var(--bs-offcanvas-padding-x, 1rem) .25rem; border-bottom: 1px solid var(--border, #dee2e6); }
.help-bar:empty { display: none; }
.help-bar .help-meta { margin-bottom: .5rem; }
.help-toc { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.help-toc a { padding: .1rem .55rem; border: 1px solid var(--border, #dee2e6); border-radius: 999px; font-size: .75rem; text-decoration: none; color: inherit; }
.help-h { font-weight: 700; margin: 1rem 0 .4rem; }
.help-steps li { margin-bottom: .35rem; padding: .15rem .35rem; border-radius: 6px; }
.help-steps li.current { background: var(--bg-hover, #eef0f4); font-weight: 600; }
.help-stepnav { display: flex; gap: .5rem; }
.help-field { padding: .4rem 0; border-bottom: 1px solid var(--border, #e9ecef); }
.help-fig { margin: 0 0 .75rem; }
.help-thumb { width: 100%; max-height: 120px; object-fit: cover; object-position: top; border: 1px solid var(--border, #dee2e6); border-radius: 6px; cursor: zoom-in; }
.shot-viewer { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; outline: 0; }
.shot-box { max-width: min(1100px, 100vw - 120px); max-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 1rem 0; }
.shot-pane { max-width: 100%; max-height: calc(100vh - 170px); overflow-y: auto; border-radius: 6px; background: #fff; }
.shot-img { display: block; max-width: 100%; height: auto; }
.shot-cap { color: #fff; margin-top: .75rem; text-align: center; font-size: .95rem; max-width: 800px; }
.shot-count { color: #adb5bd; font-size: .8rem; margin-top: .25rem; }
.shot-btn { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
.shot-btn:hover { background: rgba(255, 255, 255, .3); }
.shot-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.shot-next { right: 16px; top: 50%; transform: translateY(-50%); }
.shot-close { right: 16px; top: 16px; font-size: 1.75rem; }
.help-links { padding-left: 1.1rem; font-size: .875rem; }
.help-foot { display: flex; gap: .5rem; padding: .6rem 1rem; border-top: 1px solid var(--border, #dee2e6); }

/* No sideways scrolling: when a row is crowded the action icons and the stage menu wrap onto a second line inside the row, and long cells wrap. */
@media (min-width: 901px) {
  #listResults[data-list-style="rich"] .table-register td.action-icons { white-space: normal !important; min-width: 84px; max-width: 128px; flex-wrap: wrap; }
  #listResults[data-list-style="rich"] .table-register td.action-icons > * { vertical-align: middle; margin: 1px 0; }
  .table-register td.action-icons select { min-width: 76px; max-width: 100%; }
  #listResults[data-list-style="rich"] .table-register tbody td.col-lead { min-width: 0; }
}

/* Enquiry list: the stage chip is a button that opens the stage list; QN chips are buttons to the quotations. */
.stage-pick { display: inline-block; }
.stage-btn { border: 0; background: none; padding: 0; cursor: pointer; line-height: 1; }
.stage-btn::after { margin-left: 4px; vertical-align: middle; opacity: .6; }
.stage-pick .dropdown-menu { font-size: .8rem; min-width: 150px; z-index: 1085; }
.stage-pick .dropdown-menu form { margin: 0; }
.qn-btn { display: inline-block; margin: 1px 3px 1px 0; padding: 3px 9px; border: 1px solid var(--border-color); border-radius: 999px; font-size: .7rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.qn-pq { background: #d97706; color: #fff; border-color: #d97706; }
.qn-sq { background: #2563eb; color: #fff; border-color: #2563eb; }
a.qn-btn:hover { filter: brightness(.95); text-decoration: none; }

/* Popup over a list (view, edit, print, email of one record): the page runs in an iframe without the shell. */
.popup-dialog { max-width: min(1500px, 96vw); width: 96vw; margin: 1rem auto; }
.record-popup .modal-content { height: calc(100vh - 2rem); }
.popup-zoom { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 14px; }
.popup-zoom .form-range { width: 170px; }
.popup-zoom .btn { min-width: 34px; line-height: 1.2; }
.popup-zoom-val { min-width: 56px !important; font-variant-numeric: tabular-nums; }
.record-popup .modal-body { overflow: hidden; }
.popup-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--bg-page, #f6f7f9); }
body.embedded { padding-top: 0; background: transparent; }
body.embedded .terminal-container { padding: 14px 18px; }
body.embedded .breadcrumb-text, body.embedded .page-head .list-actions .back-list { display: none; }

/* Compact list (the earlier look): a coloured header bar, one small line per row, every column on that line. */
@media (min-width: 901px) {
  #listResults[data-list-style="compact"] .table-responsive { border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); }
  #listResults[data-list-style="compact"] .table-register { border-collapse: collapse; font-size: .76rem; }
  #listResults[data-list-style="compact"] .table-register thead th { background: var(--brand-700); color: #fff; padding: 7px 8px; font-size: .68rem; white-space: nowrap; box-shadow: none; }
  #listResults[data-list-style="compact"] .table-register tbody td { padding: 3px 8px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
  #listResults[data-list-style="compact"] .table-register tbody tr:hover td { background: var(--bg-hover); }
  #listResults[data-list-style="compact"] .table-register td.action-icons { white-space: nowrap !important; min-width: 0; max-width: none; overflow: visible; }
  #listResults[data-list-style="compact"] .table-register td.action-icons > *, #listResults[data-list-style="compact"] .table-register td.action-icons form { display: inline-block; vertical-align: middle; margin: 0 1px; }
  #listResults[data-list-style="compact"] .table-register td.action-icons a, #listResults[data-list-style="compact"] .table-register td.action-icons button.icon-delete, #listResults[data-list-style="compact"] .table-register td.action-icons button.icon-action { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: .8rem; }
  #listResults[data-list-style="compact"] .table-register .badge { padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
  #listResults[data-list-style="compact"] .table-register th.col-actions { background: var(--brand-700); color: #fff; box-shadow: none; }
  #listResults[data-list-style="compact"] .table-register .qn-btn { padding: 1px 8px; margin: 0 2px 0 0; }
  #listResults[data-list-style="compact"] .table-register .stage-btn .badge { padding: .25em .7em; }
}

/* Compact list, fit: nothing overlaps. The pinned action column is not used here (every column fits on the line instead), long text is cut short, and the stage and QN chips are never cut. */
@media (min-width: 901px) {
  #listResults[data-list-style="compact"] .table-register { font-size: .74rem; }
  #listResults[data-list-style="compact"] .table-register thead th { padding: 6px 5px; }
  #listResults[data-list-style="compact"] .table-register tbody td { padding: 3px 5px; max-width: 105px; }
  #listResults[data-list-style="compact"] .table-register :is(th.col-actions, td.action-icons) { position: static; box-shadow: none; }
  #listResults[data-list-style="compact"] .table-register tbody td:has(.stage-pick, .qn-btn) { max-width: none; overflow: visible; }
  #listResults[data-list-style="compact"] .table-register td.action-icons a, #listResults[data-list-style="compact"] .table-register td.action-icons button.icon-delete, #listResults[data-list-style="compact"] .table-register td.action-icons button.icon-action { width: 22px; height: 22px; }
  #listResults[data-list-style="compact"] .table-register td.action-icons > *, #listResults[data-list-style="compact"] .table-register td.action-icons form { margin: 0; }
}

/* Compact list: a little more room now that the ID column is gone. */
@media (min-width: 901px) {
  #listResults[data-list-style="compact"] .table-register thead th { padding: 9px 8px; }
  #listResults[data-list-style="compact"] .table-register tbody td { padding: 7px 8px; max-width: 120px; }
  #listResults[data-list-style="compact"] .table-register td.action-icons > *, #listResults[data-list-style="compact"] .table-register td.action-icons form { margin: 0 2px; }
}

.table-register tr.row-link { cursor: pointer; }

/* Compact list: the ACTION header stays at the top with the other headers when the rows scroll (it is not pinned sideways). */
@media (min-width: 901px) {
  #listResults[data-list-style="compact"] .table-register th.col-actions { position: sticky; top: 0; right: auto; z-index: 3; }
}

.qn-make { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 2px; border-radius: 4px; color: var(--text-muted); text-decoration: none; }
.qn-make:hover { background: var(--bg-hover); color: var(--brand-700); }

/* QN icons when there is no quotation yet: outlined in the same colours as the filled buttons. */
.qn-make { width: 26px; height: 26px; border: 1.5px solid currentColor; background: transparent; }
.qn-make-pq { color: #d97706; }
.qn-make-sq { color: #2563eb; }
.qn-make-pq:hover { background: #fff3e0; color: #b45309; }
.qn-make-sq:hover { background: #e8f0ff; color: #1d4ed8; }

/* Charge lines: the calculated cells of each row and the totals under them. */
.line-calc { min-width: 84px; background: var(--bg-hover); text-align: right; }
.line-totals { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 14px; }
.line-total { flex: 1 1 150px; max-width: 260px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); }
.line-total span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.line-total strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.line-total.main strong { font-size: 1.1rem; color: var(--brand-700); }

/* The calculated figures of a charge line sit in a row of their own under it. */
.line-calc-row > td { padding: 2px 8px 10px !important; border-top: 0 !important; background: var(--bg-hover); }
.line-calc-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; }
.line-calc-grid label { margin: 0; }
.line-calc-grid span { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.line-calc-grid .line-calc { min-width: 0; background: var(--bg-card); }

/* Quotation forms: the form is split into cards (details, charge lines), in the theme's own colours. Nothing scrolls sideways: five fields to a row, and the
   charge table is laid out to fit the card. */
.qcard { padding: 18px 22px 20px; }
.qcard-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.qcard-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.qcard-title .bi { margin-right: 6px; color: var(--brand-600, var(--brand-700)); }
.qcard-head > .btn, .qcard-head > .form-badge { margin-left: auto; }
.qcard-head > .form-badge + .btn { margin-left: 0; }
.qc-card { margin: 0 0 14px; padding: 14px 16px 6px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); }
.qc-card-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.qc-card-title .bi { margin-right: 6px; color: var(--brand-500); }
.qcard .form-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 14px; }
.qcard .form-grid > .field-wide { grid-column: 1 / -1; }
.qcard .form-grid > div { margin-bottom: 10px !important; }
.qcard .form-label { margin-bottom: 3px; font-size: .66rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-secondary); }
.qcard .form-control, .qcard .form-select { padding: 5px 9px; font-size: .8rem; }
.qcard .form-card { margin: 0; }
.qcard .table-responsive { overflow: visible; }
.qcard .table { table-layout: fixed; width: 100%; margin-bottom: 4px; }
.qcard .table thead th { padding: 7px 6px; background: var(--brand-700); color: #fff; font-size: .64rem; text-transform: uppercase; letter-spacing: .03em; border-color: var(--brand-700); overflow-wrap: anywhere; }
.qcard .table td { padding: 4px 3px; border-color: var(--border-color); }
.qcard .table .form-control, .qcard .table .form-select { min-width: 0; padding: 4px 6px; }
.qcard .table thead th:first-child { width: 22%; }
.qcard .table thead th:last-child { width: 44px; }
.qcard .line-calc-row > td { background: var(--bg-hover); }
.qcard .line-calc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.qcard .line-total.main strong { color: var(--brand-700); }
.qcard .form-actions { margin-top: 4px; }
/* the order of the fields, as on the earlier quotation screens */
.qc-sales .f-invoice_no { order: 1; } .qc-sales .f-quotation_no { order: 2; } .qc-sales .f-quotation_date { order: 3; } .qc-sales .f-customer { order: 4; } .qc-sales .f-email_id { order: 5; }
.qc-sales .f-consignee { order: 6; } .qc-sales .f-shipper { order: 7; } .qc-sales .f-notify_party { order: 8; } .qc-sales .f-pol { order: 9; } .qc-sales .f-pod { order: 10; }
.qc-sales .f-vessel_name { order: 11; } .qc-sales .f-voyage_number { order: 12; } .qc-sales .f-shipper_ref_no { order: 13; } .qc-sales .f-po_no { order: 14; } .qc-sales .f-validity_date { order: 15; }
.qc-sales .f-pl { order: 16; } .qc-sales .f-special_note { order: 17; } .qc-sales .f-items_json { order: 18; }
.qc-purchase .f-invoice_no { order: 1; } .qc-purchase .f-quotation_no { order: 2; } .qc-purchase .f-quotation_date { order: 3; } .qc-purchase .f-Vendor_Name { order: 4; } .qc-purchase .f-email_id { order: 5; }
.qc-purchase .f-customer { order: 6; } .qc-purchase .f-shipper { order: 7; } .qc-purchase .f-pol { order: 8; } .qc-purchase .f-pod { order: 9; } .qc-purchase .f-vessel_name { order: 10; }
.qc-purchase .f-voyage_number { order: 11; } .qc-purchase .f-shipper_ref_no { order: 12; } .qc-purchase .f-po_no { order: 13; } .qc-purchase .f-pl { order: 14; } .qc-purchase .f-special_note { order: 15; } .qc-purchase .f-items_json { order: 16; }
@media (max-width: 900px) { .qcard .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qcard .table-responsive { overflow-x: auto; } }

/* Quotation forms, compact: the whole form is meant to fit one screen (no page scroll for a normal quotation). */
.qcard { padding: 10px 14px 12px; }
.qcard-head { margin-bottom: 8px; }
.qcard-title { font-size: 1.1rem; }
.qcard .alert { margin: 0 0 8px; padding: 3px 10px; font-size: .72rem; }
.qcard .qc-card { margin-bottom: 8px; padding: 8px 12px 2px; }
.qcard .qc-card-title { margin-bottom: 8px; padding-bottom: 5px; font-size: .7rem; }
.qcard .form-grid { gap: 0 12px; }
.qcard .form-grid > div { margin-bottom: 6px !important; }
.qcard .form-label { margin-bottom: 1px; font-size: .62rem; }
.qcard .form-control, .qcard .form-select { padding: 3px 8px; font-size: .78rem; min-height: 28px; }
.qcard .form-text { display: none; }
.qcard .form-grid > .f-special_note { grid-column: span 4; }
.qcard textarea.form-control { height: 28px; min-height: 28px; resize: none; overflow: hidden; }
.qcard .table thead th { padding: 5px 5px; }
.qcard .table td { padding: 2px 3px; }
.qcard .line-calc-row > td { padding: 0 6px 5px !important; }
.qcard .line-calc-grid { gap: 8px; }
.qcard .line-calc-grid span { font-size: .58rem; }
.qcard .line-totals { margin: 6px 0 6px; gap: 10px; }
.qcard .line-total { padding: 4px 10px; flex: 1 1 130px; }
.qcard .line-total strong { font-size: .85rem; }
.qcard .line-total.main strong { font-size: .95rem; }
.qcard [data-action="add-row"] { margin: 0 0 6px; }
.qcard .form-actions { padding-top: 0; }
.qcard .form-actions .btn { padding: 5px 16px; font-size: .82rem; }

/* Quotation forms: charge lines, no crowding. Space between the line, its calculated row, the totals and the Add row button. */
.qcard .qc-card { padding-bottom: 12px; }
.qcard .table-responsive { margin-bottom: 0; }
.qcard .table tbody tr:not(.line-calc-row) > td { padding-top: 6px; padding-bottom: 4px; }
.qcard .line-calc-row > td { padding: 4px 8px 10px !important; border-bottom: 1px solid var(--border-color); }
.qcard .line-calc-grid { gap: 12px; }
.qcard .line-calc-grid label { display: flex; flex-direction: column; gap: 2px; }
.qcard .line-totals { clear: both; margin: 12px 0 10px; gap: 12px; }
.qcard .line-total { padding: 6px 12px; }
.qcard .form-card > .btn[data-action="add-row"], .qcard .field-wide > .btn[data-action="add-row"] { display: inline-flex; align-items: center; position: static; margin: 4px 0 0; padding: 4px 14px; line-height: 1.3; }


/* Quotation forms: one row per charge line (inputs and calculated cells side by side), the Add button in the table header. */
.qcard .table thead th:first-child { width: 15%; }
.qcard .table thead th:last-child { width: 40px; padding: 3px; text-align: center; }
.qcard .table thead th { padding: 6px 4px; font-size: .58rem; }
.qcard .table td { padding: 3px 2px; }
.qcard .table .form-control, .qcard .table .form-select { padding: 3px 4px; font-size: .72rem; }
.qcard .table .line-calc { min-width: 0; padding: 3px 4px; text-align: right; background: var(--bg-hover); }
.qcard .table td:last-child .btn { padding: 2px 6px; }
.qc-add { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .28); color: #fff; font-size: .8rem; cursor: pointer; }
.qc-add:hover { background: rgba(255, 255, 255, .5); }

/* Popups: a dark title bar (as on the send-email window); the customer name in the quotation list opens that window. */
.record-popup .modal-header { background: #20242b; color: #fff; border-bottom: 0; }
.record-popup .modal-title { font-weight: 700; color: #fff; }
.record-popup .btn-close { filter: invert(1) grayscale(1); opacity: .8; }
.record-popup .popup-zoom .btn { border-color: rgba(255, 255, 255, .4); color: #fff; }
.record-popup .popup-zoom .btn:hover { background: rgba(255, 255, 255, .15); }
.cust-link { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--text-muted); }
.cust-link:hover { color: var(--brand-700); border-bottom-style: solid; }
.key-link { font-weight: 700; text-decoration: none; }   /* a record number in a list that opens the edit form (a column marked edit_link) */
.key-link:hover { text-decoration: underline; }

/* Vendor multi-select (email this enquiry). */
.vpick { position: relative; }
.vpick-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); color: var(--text-primary); font-size: .85rem; text-align: left; cursor: pointer; }
.vpick-menu { position: absolute; z-index: 30; left: 0; right: 0; margin-top: 4px; padding: 8px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
.vpick-menu[hidden] { display: none; }
.vpick-search { margin-bottom: 6px; }
.vpick-list { max-height: 220px; overflow-y: auto; }
.vpick-item { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 6px 8px; border-radius: 4px; font-size: .82rem; cursor: pointer; }
.vpick-item[hidden] { display: none; }
.vpick-item:hover { background: var(--bg-hover); }
.vpick-item input { margin-top: 3px; }
.vpick-item small { display: block; }

/* Popups, compact: the page inside carries no title, back button or frame of its own; the email window is small and as tall as its form; the zoom buttons are readable. */
body.embedded .form-head { display: none; }
body.embedded .terminal-container { padding: 12px 16px; }
body.embedded .panel { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; max-width: none; }
body.embedded .panel-narrow { max-width: none; }
body.embedded .form-section { display: none; }
body.embedded .form-actions { margin-top: 6px; }
.record-popup .popup-zoom .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.record-popup .popup-zoom .btn .bi { color: #fff; }
.record-popup .popup-zoom .form-range { accent-color: #fff; }
.record-popup.popup-small .popup-zoom { display: none; }
.record-popup.popup-small .popup-dialog { max-width: 780px; width: 92vw; }
.record-popup.popup-small .modal-content { height: auto; }
.record-popup.popup-small .popup-frame { height: 500px; }
.record-popup .modal-header { padding-top: 8px; padding-bottom: 8px; }
.vpick-list { max-height: 170px; }

/* Enquiry form: the same compact cards. */
.qc-enquiry .dim-card { margin: 0 0 8px; }
.qc-enquiry .dim-card > div:first-child { padding: 5px 10px !important; }
.qc-enquiry .dim-card .btn { padding: 2px 10px; font-size: .75rem; }
.qc-enquiry .form-grid > .f-special_instructions textarea.form-control { height: 52px; min-height: 52px; }
.qc-enquiry .form-grid > .f-dimensions_json { grid-column: 1 / -1; }
.qc-enquiry .form-card { padding: 0; border: 0; background: transparent; box-shadow: none; }

/* The confirm dialog (Save? / Delete?) in the middle of the page. */
.ask-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, .45); }
.ask-box { width: min(380px, 100%); padding: 24px 24px 20px; border-radius: 12px; background: var(--bg-card, #fff); color: var(--text-primary); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: ask-in .14s ease-out; }
.ask-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: 1.5rem; }
.ask-icon.danger { background: var(--bad-bg, #fee2e2); color: var(--bad, #dc2626); }
.ask-box h5 { margin: 0 0 6px; font-weight: 800; }
.ask-box p { margin: 0 0 18px; color: var(--text-secondary); font-size: .9rem; }
.ask-actions { display: flex; justify-content: center; gap: 12px; }
@keyframes ask-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* Email window: one column, in the order of the old window (vendors, field choice, To, Cc, Bcc, Send); as tall as the form, so no wasted area. */
.form-one .form-grid { grid-template-columns: 1fr; gap: 0; }
.form-one .form-grid > div { margin-bottom: 10px !important; }
.form-one .vpick-menu { position: static; margin-top: 6px; box-shadow: none; }
.record-popup.popup-small .popup-dialog { max-width: 520px; }
.record-popup.popup-small .popup-frame { height: 380px; }

/* A form in a popup: the popup's own title bar names it, so the form's title and Back button are left out (the "Created by" label stays); no zoom bar. */
body.embedded .qcard-head .qcard-title, body.embedded .qcard-head > .btn { display: none; }
body.embedded .qcard-head { justify-content: flex-end; margin-bottom: 6px; }
.record-popup.popup-form .popup-zoom { display: none; }
body.embedded .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 10px 16px; background: var(--bg-card, #fff); border-top: 1px solid var(--border-color); }

/* Dimensions and package rows, as in the old project: a card with the title and the Add Row button, a light header, and the three figures under it. */
.qcard .dim-card { border-radius: var(--radius); background: var(--bg-hover); }
.qcard .dim-card .table thead th { background: transparent; color: var(--text-muted); border-color: var(--border-color); }
.qcard .dim-card .table { background: transparent; }
.qcard .dim-card .btn-success { background: var(--brand-600, var(--brand-700)); border-color: var(--brand-600, var(--brand-700)); color: #fff; font-weight: 700; }
.line-sum { font-weight: 700; background: var(--bg-hover); }
.f-sum_qty .line-sum { color: var(--brand-700); }
.f-sum_cbm .line-sum { color: #0f766e; }
.f-sum_vol .line-sum { color: #15803d; }

/* Dimensions and package rows: the look of the old project's card (green Add Row, roomy white boxes, the three figures in colour). */
.qc-enquiry .dim-card { border: 1px solid var(--border-color); border-radius: 8px; background: #f5f7fa; overflow: hidden; }
.qc-enquiry .dim-card > div:first-child { padding: 12px 16px !important; background: #f5f7fa !important; border-bottom: 1px solid var(--border-color) !important; }
.qc-enquiry .dim-card > div:first-child strong { font-size: .95rem; font-weight: 800; color: var(--text-primary); }
.qc-enquiry .dim-card .btn-success { padding: 6px 14px; border: 0; border-radius: 6px; background: #087f5b; color: #fff; font-size: .8rem; font-weight: 700; }
.qc-enquiry .dim-card .btn-success:hover { background: #066a4d; }
.qc-enquiry .dim-card .table thead th { padding: 10px 8px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .03em; color: #475569; background: #f5f7fa; border: 0; }
.qc-enquiry .dim-card .table tbody td { padding: 6px 4px; border: 0; border-top: 1px solid #e5e9ef; background: #f5f7fa; }
.qc-enquiry .dim-card .table .form-control, .qc-enquiry .dim-card .table .form-select { padding: 7px 10px; min-height: 34px; border-radius: 6px; background-color: #fff; font-size: .85rem; }
.qc-enquiry .dim-card .table td:last-child .btn { width: 26px; height: 26px; padding: 0; border-radius: 6px; background: #fff; border: 1px solid #f3c1c1; color: #dc2626; }
.qc-enquiry .f-package_type .form-label, .qc-enquiry .f-sum_qty .form-label, .qc-enquiry .f-sum_cbm .form-label, .qc-enquiry .f-sum_vol .form-label { text-transform: none; font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.qc-enquiry .f-package_type .form-select, .qc-enquiry .line-sum { min-height: 36px; padding: 7px 10px; border-radius: 6px; background-color: #fff; font-size: .85rem; }
.qc-enquiry .f-sum_qty .line-sum { color: #2563eb; }
.qc-enquiry .f-sum_cbm .line-sum { color: #0f766e; }
.qc-enquiry .f-sum_vol .line-sum { color: #15803d; }

.qc-enquiry .dim-card .table thead th:last-child { width: 58px; padding: 10px 2px 6px; text-align: center; font-size: .6rem; }
/* Star Profile: the mail box in the details window. */
.star-mail { background: var(--bg-hover); }
.star-mail .form-control { max-width: 380px; flex: 1 1 260px; }

/* Tracking: the customer page (/track, no ERP around it) and the Shipment Tracking page inside the ERP share these pieces and the theme variables above. */
.tk-body { --tk-r: 14px; --tk-shadow: 0 1px 2px rgba(31, 42, 55, .05), 0 8px 24px rgba(31, 42, 55, .07); padding-top: 0; margin: 0; background: var(--page-bg); color: var(--text-primary); font-family: var(--font-main); font-size: .95rem; line-height: 1.55; }
.tk-inside { --tk-r: 14px; --tk-shadow: 0 1px 2px rgba(31, 42, 55, .05), 0 8px 24px rgba(31, 42, 55, .07); margin-bottom: 8px; }
.tk-top { background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 60%, var(--brand-500) 100%); color: #fff; padding-bottom: 72px; }
.tk-top-in { max-width: 900px; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: center; gap: 14px; }
.tk-logo-box { background: #fff; border-radius: 12px; padding: 7px 14px; display: flex; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.tk-logo { height: 36px; width: auto; display: block; }
.tk-top-title { font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.tk-top-sub { font-size: .8rem; opacity: .85; }
.tk-wrap { max-width: 900px; margin: -52px auto 0; padding: 0 20px 56px; }
.tk-search { background: var(--bg-card); border-radius: var(--tk-r); padding: 24px; box-shadow: var(--tk-shadow); }
.tk-search h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.tk-search p { margin: 0 0 18px; color: var(--text-muted); font-size: .88rem; }
.tk-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.tk-fields label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; }
.tk-fields input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: 10px; background: var(--bg-input); color: var(--text-primary); font: inherit; transition: border-color .15s, box-shadow .15s; }
.tk-fields input:focus { outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
.tk-fields button { padding: 12px 28px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .35); transition: transform .12s, box-shadow .12s; }
.tk-fields.tk-one { grid-template-columns: 1fr auto; }
.tk-fields button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(var(--brand-rgb), .45); }
/* The Copy link button inside the big Track Page button (home page, Shipment Tracking): at the right end, over the button, a control of its own */
.track-wrap { position: relative; }
.track-wrap > a.btn-lg { padding-right: 130px; padding-left: 130px; }
.track-wrap .track-copy { position: absolute; top: 50%; right: calc(var(--bs-gutter-x) * .5 + 10px); transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: .8rem; font-weight: 700; white-space: nowrap; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius); cursor: pointer; }
.track-wrap .track-copy:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 575px) { .track-wrap > a.btn-lg { padding-left: 14px; text-align: left; } }
/* Roles & Permissions: one collapsible group per sidebar group; each cell holds up to four small tick boxes (V A E D). */
.ra-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.ra-bar-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.ra-bar a.chip { padding: 3px 11px; font-size: .78rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); text-decoration: none; }
.ra-bar a.chip.active { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.ra-legend { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .78rem; color: var(--text-secondary); }
.ra-legend b { margin-left: 8px; color: var(--text-primary); }
.ra-group { margin-bottom: 10px; border: 1px solid var(--border-color); background: var(--bg-card); }
.ra-group > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; user-select: none; font-size: .85rem; letter-spacing: .04em; background: var(--bg-hover); }
.ra-group > summary::-webkit-details-marker { display: none; }
.ra-group > summary .bi-chevron-right { font-size: .75rem; color: var(--text-muted); transition: transform .15s; }
.ra-group[open] > summary .bi-chevron-right { transform: rotate(90deg); }
.ra-count { padding: 1px 8px; font-size: .72rem; font-weight: 600; letter-spacing: 0; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 999px; }
.ra-count-changed { color: #8a5a00; background: #fff4d6; border-color: #f0d48a; }
.ra-group .table-responsive { border: 0; }
.ra-table { width: 100%; margin: 0; table-layout: fixed; }
.ra-table th:first-child { width: 22%; }
.ra-table th:nth-child(2) { width: 6%; }
.ra-table thead th { position: static; white-space: nowrap; }
.ra-table td { white-space: nowrap; }
.ra-table td.ra-page { font-weight: 600; white-space: normal; }
.ra-table td.ra-cell { overflow: visible; max-width: none; padding-left: 4px; padding-right: 4px; }
.ra-table td.ra-page .bi { margin-right: 6px; color: var(--text-muted); }
.ra-table td.ra-page .bi-lock { margin: 0 0 0 6px; font-size: .75rem; }
.ra-table td.ra-fixed { color: var(--text-muted); font-size: .8rem; }
.ra-table tr.ra-all td { background: var(--bg-hover); font-size: .78rem; color: var(--text-secondary); }
.ra-letter { display: inline-block; min-width: 26px; margin-right: 3px; text-align: center; font-size: .75rem; font-weight: 700; color: var(--text-secondary); }
.ra-box { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 2px 3px; font-size: .7rem; font-weight: 700; color: var(--text-muted); border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.ra-box input { margin: 0; accent-color: var(--brand-700); cursor: pointer; }
.ra-box:has(input:checked) { color: var(--text-primary); }
.ra-box:hover { background: var(--bg-hover); }
.ra-box.ra-changed { background: #fff4d6; border-color: #f0d48a; color: #8a5a00; }
html[data-bs-theme="dark"] :is(.ra-box.ra-changed, .ra-count-changed) { background: #4a3a10; border-color: #7a6220; color: #ffe08a; }
.ra-save { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); }

/* World clocks beside the home page title (both layouts; the Modern look is set in its own block below). */
.dash-clocks { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-clock { display: flex; flex-direction: column; min-width: 140px; padding: 7px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); line-height: 1.25; }
.dash-clock-place { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-secondary); }
.dash-clock-place small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.dash-clock-place .bi { margin-right: 3px; color: var(--brand-500); }
.dash-clock-time { margin: 2px 0 0; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-primary); white-space: nowrap; }
.dash-clock-date { font-size: .72rem; color: var(--text-muted); }
@media (max-width: 900px) { .dash-clocks { width: 100%; } .dash-clock { flex: 1 1 0; min-width: 0; padding: 6px 8px; } .dash-clock-time { font-size: 1rem; } }
/* The same clocks in the top bar of every page (the default; user menu, Clocks): small, without the city and the date. A screen too narrow for
   them shows the home page clocks instead (.when-narrow). */
.top-clocks { display: flex; gap: 6px; }
.top-console .top-clocks .dash-clock { min-width: 0; padding: 3px 10px; color: var(--topbar-text); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); line-height: 1.2; }
.top-console .top-clocks :is(.dash-clock-place, .dash-clock-place .bi, .dash-clock-time) { color: inherit; }
.top-console .top-clocks .dash-clock-place { font-size: .6rem; opacity: .9; }
.top-console .top-clocks .dash-clock-place small, .top-console .top-clocks .dash-clock-date { display: none; }
.top-console .top-clocks .dash-clock-time { margin: 0; font-size: .82rem; }
.dash-clocks.when-narrow { display: none; }
@media (max-width: 1199px) { .top-clocks { display: none; } .dash-clocks.when-narrow { display: flex; } }
/* The job picker of the track page: only for signed-in staff who opened the page from inside the ERP */
.tk-pick { margin: 14px 0 18px; padding: 14px 16px; background: var(--brand-100); border-radius: 12px; }
.tk-pick label { display: block; margin-bottom: 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }
.tk-pick > div { display: flex; gap: 10px; }
.tk-pick select { flex: 1 1 auto; min-width: 0; padding: 11px 12px; border: 1.5px solid var(--border-color); border-radius: 10px; background: var(--bg-input); color: var(--text-primary); font: inherit; }
.tk-pick select:disabled, .tk-pick button:disabled { opacity: .55; cursor: not-allowed; background-color: var(--bg-hover, #e9ecef); color: var(--text-muted); }
.tk-pick button:disabled { background: var(--text-muted); color: #fff; }
.tk-pick select:focus { outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
.tk-pick button { flex: 0 0 auto; padding: 11px 22px; border: 0; border-radius: 10px; background: var(--brand-700); color: #fff; font-weight: 700; cursor: pointer; }
.tk-pick small { display: block; margin-top: 8px; font-size: .76rem; color: var(--text-secondary); }
@media (max-width: 600px) { .tk-pick > div { flex-direction: column; } }
.tk-hint { color: var(--text-secondary); margin: 18px 4px 0; text-align: center; }
.tk-error { color: var(--bad); background: var(--bad-bg); border-radius: 10px; padding: 12px 16px; margin-top: 18px; font-weight: 600; }
.tk-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-card); border-radius: var(--tk-r); padding: 22px 24px; margin-top: 20px; box-shadow: var(--tk-shadow); position: relative; overflow: hidden; }
.tk-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--brand-700), var(--tan)); }
.tk-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-500); }
.tk-no { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 600; margin: 2px 0 4px; color: var(--brand-900); letter-spacing: -.02em; }
.tk-route { color: var(--text-secondary); font-weight: 600; }
.tk-route::before { content: "\F3E7"; font-family: bootstrap-icons; margin-right: 6px; color: var(--brand-500); }
.tk-now { text-align: right; display: grid; gap: 6px; justify-items: end; }
.tk-now small { color: var(--text-muted); font-size: .75rem; }
.tk-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-100); color: var(--brand-800); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .85rem; }
.tk-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .6); animation: tk-pulse 1.8s infinite; }
@keyframes tk-pulse { 70% { box-shadow: 0 0 0 8px rgba(var(--brand-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); } }
.tk-card { background: var(--bg-card); border-radius: var(--tk-r); padding: 22px 24px; margin-top: 18px; box-shadow: var(--tk-shadow); }
.tk-card h2 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 18px; }
.tk-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.tk-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--text-muted); padding: 0 4px; }
.tk-steps li::after { content: ""; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 3px; border-radius: 2px; background: var(--border-color); }
.tk-steps li:last-child::after { display: none; }
.tk-steps li i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: var(--grey-bg); color: var(--text-muted); margin-bottom: 8px; position: relative; z-index: 1; }
.tk-steps li b { font-weight: 700; font-size: .82rem; line-height: 1.25; }
.tk-steps li span { font-size: .76rem; }
.tk-steps li.done { color: var(--text-primary); }
.tk-steps li.done i { background: var(--brand-700); color: #fff; }
.tk-steps li.done::after { background: var(--brand-700); }
.tk-steps li.now i { background: var(--tan); color: #fff; box-shadow: 0 0 0 5px var(--tan-bg); }
.tk-steps li.now::after { background: linear-gradient(90deg, var(--tan), var(--border-color)); }
.tk-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tk-details > div { background: var(--page-bg); border-radius: 10px; padding: 12px 14px; }
.tk-details dt { color: var(--text-muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.tk-details dd { margin: 3px 0 0; font-weight: 700; word-break: break-word; }
.tk-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); user-select: none; }
.tk-more > summary::-webkit-details-marker { display: none; }
.tk-more > summary > span:first-child { flex: 1; }
.tk-more-hint { font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--brand-700); font-size: .8rem; }
.tk-more .tk-hide, .tk-more[open] .tk-show { display: none; }
.tk-more[open] .tk-hide { display: inline; }
.tk-more > summary i { transition: transform .2s; color: var(--brand-700); font-size: 1rem; }
.tk-more[open] > summary i { transform: rotate(180deg); }
.tk-more > summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: 6px; }
.tk-more[open] > summary { margin-bottom: 18px; }
.tk-foot { margin-top: 40px; text-align: center; color: var(--text-muted); font-size: .78rem; }
@media (max-width: 760px) {
  .tk-fields, .tk-fields.tk-one { grid-template-columns: 1fr; } .tk-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-now { text-align: left; justify-items: start; } .tk-no { font-size: 1.25rem; }
  .tk-steps { flex-direction: column; gap: 0; } .tk-steps li { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 0 0 18px; }
  .tk-steps li i { margin: 0; flex: none; } .tk-steps li span { margin-left: auto; }
  .tk-steps li::after { top: 40px; bottom: 0; left: 19px; right: auto; width: 3px; height: auto; }
}
@media (max-width: 480px) { .tk-details { grid-template-columns: 1fr; } }

/* ============================================================================================================================================
   MODERN LAYOUT (body.layout-modern; chosen in the user menu, Layout). The same pages, menu and markup as the Standard layout: only the look
   differs. Every rule below starts with .layout-modern, so the Standard layout is never touched. Light sidebar and top bar, soft cards with a
   shadow in place of outlined boxes, rounder corners, pill tabs and chips. The accent colours and light / dark / auto keep working: the
   colours are the same variables, set again on the body.
   ============================================================================================================================================ */
.layout-modern {
  --radius: 8px; --card-radius: 14px;
  --page-bg: #f3f4f8; --bg-card: #ffffff; --bg-hover: #f4f5f9; --bg-input: #ffffff; --border-color: #e5e7ee;
  --text-primary: #111827; --text-secondary: #475467; --text-muted: #8590a2;
  --topbar-bg: color-mix(in srgb, var(--bg-card) 88%, transparent); --topbar-text: var(--text-primary); --topbar-border: var(--border-color);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .05); --shadow-pop: 0 16px 40px rgba(16, 24, 40, .16);
  --on-accent: var(--brand-700);   /* accent-coloured text on a light surface */
  --bs-body-bg: var(--page-bg); --bs-body-color: var(--text-primary); --bs-border-color: var(--border-color);
  --bs-border-radius: 8px; --bs-border-radius-sm: 7px; --bs-border-radius-lg: 12px; --bs-border-radius-xl: 14px; --bs-border-radius-xxl: 16px; --bs-border-radius-pill: 999px;
  background: var(--page-bg); color: var(--text-primary);
}
html[data-bs-theme="dark"] .layout-modern {
  --page-bg: color-mix(in srgb, var(--brand-500) 5%, #141414); --bg-card: color-mix(in srgb, var(--brand-500) 7%, #1f1f20); --bg-hover: color-mix(in srgb, var(--brand-500) 11%, #2a2a2b); --bg-input: color-mix(in srgb, var(--brand-500) 5%, #18181a); --border-color: color-mix(in srgb, var(--brand-500) 12%, #38383a);
  --text-primary: #ececec; --text-secondary: #bfbfc0; --text-muted: #909092;
  --shadow-card: 0 0 0 1px var(--border-color); --shadow-pop: 0 16px 40px rgba(0, 0, 0, .55);
  --on-accent: var(--brand-300);
}
body.embedded.layout-modern { background: transparent; }
html:has(> body.layout-modern:not(.embedded)) { --page-bg: #f3f4f8; }   /* the area outside the body (a scaled page is shorter than the window) has the same colour */
html[data-bs-theme="dark"]:has(> body.layout-modern:not(.embedded)) { --page-bg: color-mix(in srgb, var(--brand-500) 5%, #141414); }

/* Sidebar: light, always open on a desktop; the current page is a tinted pill */
.layout-modern #sidebar { background: var(--bg-card); color: var(--text-secondary); border-right: 1px solid var(--border-color); }
.layout-modern #sidebar .brand-header { border: 0; background: transparent; }
.layout-modern .sidebar-scrollable-content { padding: 4px 10px 24px; scrollbar-color: var(--border-color) transparent; }
.layout-modern #sidebar .nav-section-label { padding: 16px 12px 6px; color: var(--text-muted); letter-spacing: .08em; }
.layout-modern #sidebar ul.nav-menu li a { margin: 1px 0; padding: 8px 12px; color: var(--text-secondary); border-left: 0; border-radius: var(--radius); }
.layout-modern #sidebar ul.nav-menu li a i { margin-right: 10px; color: var(--text-muted); }
.layout-modern #sidebar ul.nav-menu li a:hover { background: var(--bg-hover); color: var(--text-primary); }
.layout-modern #sidebar ul.nav-menu li a.active { background: var(--brand-100); color: var(--on-accent); font-weight: 700; }
.layout-modern #sidebar ul.nav-menu li a.active i { color: var(--on-accent); }
.layout-modern #sidebar ul.nav-top { padding: 4px 0; }
.layout-modern #sidebar .nav-divider { margin: 12px 12px 2px; border-top-color: var(--border-color); }
html[data-bs-theme="dark"] .layout-modern .brand-logo-image { padding: 4px 8px; background: #fff; border-radius: var(--radius); }

/* Top bar: the page colour with a hairline, a soft search box, the accent only on "+ New" and the avatar */
.layout-modern .top-console { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.layout-modern .top-search .bi { color: var(--text-muted); }
.layout-modern .top-search input { height: 38px; color: var(--text-primary); background: var(--bg-hover); border-color: transparent; border-radius: 10px; }
.layout-modern .top-search input::placeholder { color: var(--text-muted); }
.layout-modern .top-search input:focus { background: var(--bg-card); border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .16); }
.layout-modern .top-new { height: 36px; padding: 0 14px; color: #fff; background: var(--brand-700); border: 0; box-shadow: 0 1px 2px rgba(var(--brand-rgb), .4); }
.layout-modern .top-new:hover { background: var(--brand-900); }
.layout-modern .top-bell { color: var(--text-secondary); border-radius: 50%; }
.layout-modern .top-bell:hover, .layout-modern .top-bell[aria-expanded="true"] { background: var(--bg-hover); color: var(--text-primary); }
.layout-modern .bell-count { border-radius: 999px; box-shadow: 0 0 0 2px var(--bg-card); }
.layout-modern .top-console .top-link { padding: 6px 10px; color: var(--text-secondary); opacity: 1; border-radius: var(--radius); }
.layout-modern .top-console .top-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.layout-modern .top-console .avatar-btn { background: var(--brand-700); border: 0; box-shadow: 0 0 0 3px var(--brand-100); }
.layout-modern .mobile-menu-toggle { background: transparent; border-color: var(--border-color); color: var(--text-primary); }
.layout-modern .dropdown-menu, .layout-modern .user-menu .sub-list { border-radius: 12px; box-shadow: var(--shadow-pop) !important; }
.layout-modern .sub-list .dropdown-item.active, .layout-modern .sub-list .dropdown-item.active > .bi:first-child { color: var(--on-accent); }

/* Page: bigger title, cards with a shadow, rounder controls */
.layout-modern .terminal-container { padding: 24px 28px; }
.layout-modern .page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.layout-modern .panel, .layout-modern .card { border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
.layout-modern .panel { border-color: transparent; }
html[data-bs-theme="dark"] .layout-modern .panel { border-color: var(--border-color); box-shadow: none; }
.layout-modern .btn-primary { box-shadow: 0 1px 2px rgba(var(--brand-rgb), .35); }
.layout-modern .form-control, .layout-modern .form-select { border-radius: var(--radius); }
.layout-modern .form-control:focus, .layout-modern .form-select:focus { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
/* No coloured bar at the left edge of any box (notices, the to-do row, the figure boxes, an Inbox row): the tint or the icon says what it is */
.layout-modern .alert { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.layout-modern .report-stat, .layout-modern .hr-stats .report-stat { border: 0; }
.layout-modern #listResults[data-list-style="inbox"] .table-register tbody tr, .layout-modern #listResults[data-list-style="inbox"] .table-register tbody tr:hover { border-left-color: transparent; }
.layout-modern .badge { border-radius: 999px; padding: .38em .8em; }
.layout-modern .badge[class*="bg-"]::before { border-radius: 50%; }
.layout-modern .pagination .page-link { margin: 0 2px; border: 0; border-radius: var(--radius) !important; }
.layout-modern .todo-row { border: 0; border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
.layout-modern .todo-item { border-radius: 999px; }
.layout-modern .dash-card, .layout-modern .dash-photo, .layout-modern .report-stat, .layout-modern .login-shell { border-radius: var(--card-radius); }
.layout-modern .top-console .top-clocks .dash-clock { padding: 4px 12px; color: var(--text-primary); background: var(--bg-hover); border: 0; border-radius: 10px; box-shadow: none; }
.layout-modern .top-console .top-clocks .dash-clock:first-child { color: #fff; background: var(--brand-700); }
.layout-modern .ra-group { border: 0; border-radius: var(--card-radius); box-shadow: var(--shadow-card); overflow: hidden; }
.layout-modern .ra-group > summary { padding: 12px 16px; background: var(--bg-card); }
.layout-modern .ra-group[open] > summary { border-bottom: 1px solid var(--border-color); }

/* Sign-in pages (sign in, sign-in code, forgot password, admin recovery): a floating card on a softly tinted page, the photo set inside it */
html:has(> body.layout-modern:not(.erp)) { background: radial-gradient(1100px 620px at 12% -10%, rgba(var(--brand-rgb), .16), transparent 62%), radial-gradient(900px 560px at 100% 110%, rgba(var(--brand-rgb), .12), transparent 60%), var(--page-bg); background-attachment: fixed; }
.layout-modern:not(.erp) { background: transparent; }   /* the tint is on the whole window, not only the (scaled, shorter) body */
.layout-modern:not(.erp) .login-wrap { align-items: center; padding: 28px 16px; }
.layout-modern:not(.erp) .login-shell { max-width: 1020px; padding: 12px; border: 0; border-radius: 24px; box-shadow: var(--shadow-pop); }
.layout-modern:not(.erp) .login-card { padding: 44px 48px; }
.layout-modern:not(.erp) .login-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.layout-modern:not(.erp) .login-card .form-label { margin-bottom: 6px; font-size: .8rem; font-weight: 700; color: var(--text-secondary); }
.layout-modern:not(.erp) .login-card .form-control { min-height: 46px; padding: 10px 14px; border-radius: 12px; background: var(--bg-hover); border-color: transparent; }
.layout-modern:not(.erp) .login-card .form-control:focus { background: var(--bg-input); border-color: var(--brand-500); }
.layout-modern:not(.erp) .login-card .btn-primary { min-height: 48px; font-weight: 700; border-radius: 12px; box-shadow: 0 8px 20px rgba(var(--brand-rgb), .28); }
.layout-modern:not(.erp) .login-card form a { font-weight: 600; color: var(--on-accent); text-decoration: none; }
.layout-modern:not(.erp) .login-card form a:hover { text-decoration: underline; }
.layout-modern:not(.erp) .login-brand { min-height: 580px; border-radius: 16px; overflow: hidden; }
.layout-modern:not(.erp) .login-tag { left: 16px; right: 16px; bottom: 16px; padding: 20px 22px; color: rgba(255, 255, 255, .88); background: rgba(12, 18, 32, .5); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.layout-modern:not(.erp) .login-tag h2 { font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 900px) { .layout-modern:not(.erp) .login-shell { max-width: 460px; padding: 0; } .layout-modern:not(.erp) .login-card { padding: 34px 24px; } }
.layout-modern .dash-card-label i { border-radius: var(--radius); }
.layout-modern .dash-photo { overflow: hidden; }

/* Home page: the same blocks as the Standard layout in another order (title and clocks, notices, to-do, the figures, quick links, then the latest records beside
   the arrivals, and the charts). The order is set here, so views/dashboard.php holds one copy of each block. */
.layout-modern .dash-page { display: flex; flex-direction: column; }
.layout-modern .dash-page > .dash-stats { order: 1; }
.layout-modern .dash-page > .dash-track, .layout-modern .dash-page > .dash-links { order: 2; }
.layout-modern .dash-page > .dash-grid { order: 3; }
.layout-modern .dash-top { align-items: center !important; }
.layout-modern .dash-clocks { gap: 10px; }
.layout-modern .dash-clock { min-width: 150px; padding: 10px 16px; border: 0; border-radius: 12px; box-shadow: var(--shadow-card); }
.layout-modern .dash-clock-place .bi { color: var(--tan-dark); }
.layout-modern .dash-clock-place .bi-moon-stars { color: var(--on-accent); }
.layout-modern .dash-clock-time { font-size: 1.2rem; letter-spacing: -.01em; }
.layout-modern .dash-clock:first-child { background: var(--brand-700); }
.layout-modern .dash-clock:first-child :is(.dash-clock-place, .dash-clock-place small, .dash-clock-place .bi, .dash-clock-time, .dash-clock-date) { color: #fff; }
.layout-modern .dash-clock:first-child :is(.dash-clock-place small, .dash-clock-date) { opacity: .8; }
.layout-modern .dash-stats { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.layout-modern .dash-card { gap: 10px; padding: 18px 20px; border-color: transparent; box-shadow: var(--shadow-card); }
html[data-bs-theme="dark"] .layout-modern .dash-card { border-color: var(--border-color); }
.layout-modern .dash-card-label { display: flex; align-items: center; color: var(--text-muted); }
.layout-modern .dash-card-label i { flex: 0 0 auto; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; font-size: 1rem; color: var(--on-accent); }
.layout-modern .dash-card-value { font-size: 1.9rem; font-weight: 800; }
.layout-modern .dash-card-value.is-text { font-size: 1.25rem; line-height: 1.3; }   /* words, not a figure ("Not clocked in") */
.layout-modern .dash-card { overflow: hidden; }
.layout-modern .dash-card-row .spark { flex: 0 1 auto; min-width: 0; }
.layout-modern .dash-change { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--bg-hover); font-weight: 600; }
.layout-modern .dash-change.up { background: var(--ok-bg); } .layout-modern .dash-change.down { background: var(--bad-bg); }
.layout-modern .dash-track { --bs-gutter-x: 16px; }
.layout-modern .dash-track .btn-lg { display: flex; align-items: center; padding: 14px 18px !important; font-size: .92rem; text-align: left; color: var(--text-primary); background: var(--bg-card); border: 0; border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
.layout-modern .dash-track .btn-lg:hover { color: var(--on-accent); background: var(--bg-card); box-shadow: 0 6px 18px rgba(16, 24, 40, .12); }
.layout-modern .dash-track .btn-lg .bi { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 12px !important; border-radius: 10px; background: var(--brand-100); color: var(--on-accent); }
.layout-modern .dash-track .btn-lg::after { content: '\F138'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--text-muted); font-weight: 400; }
.layout-modern .track-wrap a.btn-lg::after { content: none; }   /* the Copy link button sits where the arrow would be */
.layout-modern .track-wrap .track-copy { right: calc(var(--bs-gutter-x) * .5 + 14px); border-radius: 999px; }
.layout-modern .dash-track.row .track-copy { color: var(--on-accent); background: var(--brand-100); border-color: transparent; }   /* on the home page the button is a white tile */
.layout-modern .dash-track.row .track-copy:hover { background: var(--brand-700); color: #fff; }
.layout-modern .dash-links .btn { padding: 6px 14px; border-radius: 999px; }
.layout-modern .dash-grid { gap: 16px; }
.layout-modern .dash-grid > .dash-latest { order: 1; }
.layout-modern .dash-grid > .panel.dash-quarter { order: 2; }
.layout-modern .dash-grid > .dash-half { order: 3; }
.layout-modern .dash-grid > .dash-side { order: 4; }
.layout-modern .dash-grid > .dash-photo { order: 5; min-height: 220px; border: 0; }
@media (min-width: 1151px) {
  .layout-modern .dash-grid:has(> .dash-side) > .panel.dash-quarter { grid-column: span 4; }
  .layout-modern .dash-grid:has(> .dash-side) > .dash-side { grid-column: span 3; }
}
.layout-modern .dash-head h2 { font-size: .95rem; font-weight: 800; }
.layout-modern .dash-head h2 i { color: var(--on-accent); }
.layout-modern .heat { gap: 4px; }
.layout-modern .heat i { height: 24px; border-radius: 6px; }
.layout-modern .heat-key i { border-radius: 4px; }
.layout-modern .dash-arrival { margin: 0 -8px; padding: 10px 8px; border-top: 0; border-radius: var(--radius); }
.layout-modern .dash-arrival:hover { background: var(--bg-hover); }
.layout-modern .dash-arrival + .dash-arrival { box-shadow: inset 0 1px 0 var(--border-color); }
.layout-modern .dash-photo-tag { border-radius: 10px; }
@media (max-width: 900px) { .layout-modern .dash-clock { min-width: 0; padding: 8px 10px; } .layout-modern .dash-clock-time { font-size: 1rem; } }

/* Lists: pill status tabs, a soft toolbar, and quiet table headers */
.layout-modern .list-tabs { gap: 4px; margin: -4px 0 14px; padding: 4px; display: inline-flex; max-width: 100%; border: 0; background: var(--bg-hover); border-radius: 10px; }
.layout-modern .list-tabs a { margin: 0; padding: 6px 14px; border: 0; border-radius: 7px; }
.layout-modern .list-tabs a.active { background: var(--bg-card); color: var(--on-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .14); }
.layout-modern .sub-tabs, .layout-modern .form-settings .nav-tabs { border-radius: 10px; }
.layout-modern .sub-tabs .nav-link, .layout-modern .form-settings .nav-tabs .nav-link { border-radius: 7px; }
.layout-modern #searchForm .form-control, .layout-modern #searchForm .form-select { background-color: var(--bg-hover); border-color: transparent; }
.layout-modern #searchForm .form-control:focus, .layout-modern #searchForm .form-select:focus { background-color: var(--bg-card); border-color: var(--brand-500); }
.layout-modern .list-style-toggle { border: 0; border-radius: 10px; }
.layout-modern .list-style-toggle button { border-radius: 7px; }
.layout-modern .table-responsive { border-color: transparent; border-radius: var(--radius); }
.layout-modern .table-register thead th { background: var(--bg-card); color: var(--text-muted); padding: 11px 10px; }
.layout-modern .table-register tbody td { padding: 11px 10px; border-bottom-color: color-mix(in srgb, var(--border-color) 60%, transparent); }
.layout-modern .table-register th.col-actions { background: var(--bg-card); }
.layout-modern .table-register th.col-actions, .layout-modern .table-register td.action-icons { box-shadow: none; }
@media (min-width: 901px) {
  .layout-modern #listResults[data-list-style="rich"] .table-register thead th, .layout-modern #listResults[data-list-style="rich"] .table-register th.col-actions,
  .layout-modern :is(.rich-tables, .dash-latest, .hr-pane) .table-register:not(.cal) thead th { color: var(--text-muted); box-shadow: inset 0 -1px 0 var(--border-color); }
  .layout-modern #listResults[data-list-style="rich"] .table-register tbody tr:hover td { background: var(--bg-hover); }
  .layout-modern #listResults[data-list-style="rich"] .table-register tbody tr:hover td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .layout-modern #listResults[data-list-style="rich"] .table-register tbody tr:hover td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .layout-modern #listResults[data-list-style="rich"] .table-register td.action-icons a, .layout-modern #listResults[data-list-style="rich"] .table-register td.action-icons button { border-radius: var(--radius); }
  .layout-modern #listResults[data-list-style="compact"] .table-responsive { border-color: var(--border-color); border-radius: 10px; }
  .layout-modern #listResults[data-list-style="compact"] .table-register thead th, .layout-modern #listResults[data-list-style="compact"] .table-register th.col-actions { background: var(--brand-100); color: var(--on-accent); }
  .layout-modern #listResults[data-list-style="tiles"] .table-register tbody tr { border-color: transparent; border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
  html[data-bs-theme="dark"] .layout-modern #listResults[data-list-style="tiles"] .table-register tbody tr { border-color: var(--border-color); }
}

/* The small table inside a list cell or a record page (the documents of Courier Inward / Outward): a soft rounded block, no grid lines, a hairline between its rows */
.layout-modern table.table-sm.table-bordered:not(form *), .layout-modern #listResults[data-list-style] td table.table-sm { border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: var(--bg-hover); border: 0; border-radius: 10px; --bs-table-bg: transparent; }
.layout-modern table.table-sm.table-bordered:not(form *) :is(th, td), .layout-modern #listResults[data-list-style] td table.table-sm :is(th, td) { padding: .4rem .7rem !important; border: 0 !important; background: transparent !important; }
.layout-modern table.table-sm.table-bordered:not(form *) thead th, .layout-modern #listResults[data-list-style] td table.table-sm thead th { padding-bottom: .15rem !important; color: var(--text-muted) !important;
  font-size: .62rem !important; font-weight: 700; letter-spacing: .06em !important; text-transform: uppercase; }
.layout-modern table.table-sm.table-bordered:not(form *) tbody tr + tr td, .layout-modern #listResults[data-list-style] td table.table-sm tbody tr + tr td { border-top: 1px solid var(--border-color) !important; }
.layout-modern table.table-sm.table-bordered:not(form *) tbody td:first-child, .layout-modern #listResults[data-list-style] td table.table-sm tbody td:first-child { font-weight: 600; }
.layout-modern table.table-sm.table-bordered:not(form *) tbody td:not(:first-child), .layout-modern #listResults[data-list-style] td table.table-sm tbody td:not(:first-child) { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Forms and record pages: the same cards, section headings without a rule, a ring on the timeline dots */
.layout-modern .form-section { padding-bottom: 6px; border-bottom: 0; color: var(--on-accent); }
.layout-modern .form-badge { border-radius: 999px; background: var(--bg-hover); }
.layout-modern .form-card { border-color: transparent; border-radius: 12px; }
.layout-modern .form-actions { border-radius: 0 0 var(--card-radius) var(--card-radius); }
.layout-modern .head-chip .badge { font-size: .78rem; }
.layout-modern .timeline-dot { box-shadow: 0 0 0 3px var(--brand-100); }

/* Popups: a light title bar, a rounded window, a deeper shadow */
.layout-modern .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-pop); }
.layout-modern .modal-header, .layout-modern .modal-footer { border-color: var(--border-color); }
.layout-modern .record-popup .modal-header { background: var(--bg-card); color: var(--text-primary); border-bottom: 1px solid var(--border-color); }
.layout-modern .record-popup .modal-title { color: var(--text-primary); }
.layout-modern .record-popup .popup-zoom .btn, .layout-modern .record-popup .popup-zoom .btn .bi { color: var(--text-secondary); }
.layout-modern .record-popup .popup-zoom .btn { border-color: var(--border-color); }
.layout-modern .record-popup .popup-zoom .btn:hover { background: var(--bg-hover); }
.layout-modern .record-popup .popup-zoom .form-range { accent-color: var(--brand-700); }
html:not([data-bs-theme="dark"]) .layout-modern .record-popup .btn-close { filter: none; }
.layout-modern .popup-frame { background: var(--page-bg); }
.layout-modern .ask-box { border-radius: 18px; box-shadow: var(--shadow-pop); }
.layout-modern .help-drawer { box-shadow: var(--shadow-pop); }

@media (max-width: 900px) {
  .layout-modern .terminal-container { padding: 16px 14px; }
  .layout-modern #sidebar.mobile-open { box-shadow: var(--shadow-pop); }
  .layout-modern .list-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .layout-modern .list-tabs a { white-space: nowrap; }
}

/* SOLID RULE (owner, 2026-11-16): do NOT remove or weaken this block. On a phone and tablet every list page keeps the flex container: the page does not scroll,
   the header, tabs and filters stay on top, and ONLY the list scrolls, in the Tiles view and in the List view alike. A change to the list pages must keep it
   (tools/tests/layout-switch.sh checks that it is still here).
   Phones and tablets, list pages (both layouts): the same fixed page as on a desktop (the flex container above): the header, tabs and filters
   stay on top and only the list scrolls, so it is always in view. Everything above the list is ONE line that swipes sideways instead of wrapping:
   the page tabs (Enquiries, Sales quotations...), the buttons, the status tabs, the filters and the sort chips. */
@media (max-width: 900px) {
  body.no-page-scroll { height: 100vh; height: 100dvh; overflow: hidden; }
  body.no-page-scroll #content { height: calc(100vh - var(--topbar-height)); height: calc(100dvh - var(--topbar-height)); min-height: 0; display: flex; flex-direction: column; }
  .terminal-container.fixed-page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
  .fixed-page > .page-head, .fixed-page > .alert, .fixed-page > .sub-tabs { flex: 0 0 auto; }
  .fixed-page > .panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px; }
  .fixed-page > .panel > * { flex: 0 0 auto; }
  .fixed-page > .panel > #listResults { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .fixed-page #listResults > .table-responsive { flex: 1 1 auto; min-height: 0; overflow: hidden auto; }
  .fixed-page #listResults > :not(.table-responsive) { flex: 0 0 auto; }
  .fixed-page > .panel > .report-body { flex: 1 1 auto; min-height: 0; overflow: auto; }

  .sub-tabs, .list-tabs, .page-head .list-actions, .erp #searchForm > div:first-child, #listResults > .list-sortbar {
    flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch;   /* !important: the markup has Bootstrap's flex-wrap on some of these */
  }
  .page-head .list-actions > div { flex-wrap: nowrap; flex: 0 0 auto; }   /* the export buttons and the Add button scroll together as one line */
  /* The scroll bar stays VISIBLE as a thin line under every swipeable row and under / beside the list: it shows that the row slides and how far (a custom
     ::-webkit-scrollbar is always drawn, also on a phone, where the default bar fades out; Firefox gets the standard properties instead). */
  .sub-tabs::-webkit-scrollbar, .list-tabs::-webkit-scrollbar, .page-head .list-actions::-webkit-scrollbar, .erp #searchForm > div:first-child::-webkit-scrollbar,
  #listResults > .list-sortbar::-webkit-scrollbar, .fixed-page #listResults > .table-responsive::-webkit-scrollbar { height: 3px; width: 3px; }
  .sub-tabs::-webkit-scrollbar-track, .list-tabs::-webkit-scrollbar-track, .page-head .list-actions::-webkit-scrollbar-track, .erp #searchForm > div:first-child::-webkit-scrollbar-track,
  #listResults > .list-sortbar::-webkit-scrollbar-track, .fixed-page #listResults > .table-responsive::-webkit-scrollbar-track { background: color-mix(in srgb, var(--brand-500) 14%, transparent); border-radius: 3px; margin: 0 12px; }
  .sub-tabs::-webkit-scrollbar-thumb, .list-tabs::-webkit-scrollbar-thumb, .page-head .list-actions::-webkit-scrollbar-thumb, .erp #searchForm > div:first-child::-webkit-scrollbar-thumb,
  #listResults > .list-sortbar::-webkit-scrollbar-thumb, .fixed-page #listResults > .table-responsive::-webkit-scrollbar-thumb { background: var(--brand-500); border-radius: 3px; }
  .sub-tabs, .list-tabs, .page-head .list-actions, .erp #searchForm > div:first-child, #listResults > .list-sortbar { padding-bottom: 8px; }   /* space between the row and its bar */
  @supports not selector(::-webkit-scrollbar) {
    .sub-tabs, .list-tabs, .page-head .list-actions, .erp #searchForm > div:first-child, #listResults > .list-sortbar, .fixed-page #listResults > .table-responsive { scrollbar-width: thin; scrollbar-color: var(--brand-500) transparent; }
  }
  .sub-tabs { display: flex; max-width: 100%; margin-bottom: 8px !important; }
  .sub-tabs .nav-item, .list-tabs a { flex: 0 0 auto; white-space: nowrap; }
  .list-tabs { margin: 0 0 8px; }
  .page-head { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 6px; margin-bottom: 8px; }
  .page-head .list-actions { justify-content: flex-start; width: 100%; }
  .page-head .list-actions .btn, .page-head .list-actions > div > * { flex: 0 0 auto; white-space: nowrap; }
  .page-head .page-title { margin-bottom: 0; }
  .page-head .breadcrumb-text { display: none; }
  .erp #searchForm { flex-direction: column; align-items: stretch; flex-wrap: nowrap; margin-bottom: 8px !important; }
  .erp #searchForm > div { width: 100%; }
  .erp #searchForm > div:first-child > * { flex: 0 0 auto; white-space: nowrap; }
  #listResults > .list-sortbar { margin-bottom: 8px; }
  #listResults > .list-sortbar > * { flex: 0 0 auto; white-space: nowrap; }

  /* Phone view switch: Tiles (cards, the default) or List (the plain table, inside the same fixed page: it scrolls both ways under a sticky header).
     Saved per browser by assets/app.js, which sets data-phone-list on <html>; the card rules above skip the page when it is set. */
  .phone-view-toggle { display: inline-flex; position: absolute; top: 0; right: 0; padding: 3px; gap: 2px; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: 8px; }
  .phone-view-toggle button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font-size: .78rem; font-weight: 600; }
  .phone-view-toggle button.active { background: var(--bg-card); color: var(--brand-700); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
  html[data-bs-theme="dark"] .phone-view-toggle button.active { color: var(--brand-300); }
  .page-head { position: relative; }
  .page-head > div:first-child { padding-right: 140px; min-height: 34px; }
  html[data-phone-list] .fixed-page #listResults > .table-responsive { overflow: auto; -webkit-overflow-scrolling: touch; }
  html[data-phone-list] .fixed-page .table-register thead th { position: sticky; top: 0; z-index: 3; }
  html[data-phone-list] .fixed-page .table-register th.col-actions { z-index: 4; }
  html[data-phone-list] .fixed-page .table-register td.action-icons { position: sticky; right: 0; z-index: 2; background: var(--bg-card); box-shadow: -1px 0 0 var(--border-color); }   /* the icons stay at the right edge while the table swipes */
  /* The Action column is about half as wide as before: the icons stand 3 up and 3 down (two rows of three) instead of one long row. !important beats the nowrap of the list styles. */
  html[data-phone-list] #listResults .table-register :is(th.col-actions, td.action-icons) { width: 104px; min-width: 104px; max-width: 104px; padding: 4px 6px; text-align: center; }
  html[data-phone-list] #listResults .table-register td.action-icons { white-space: normal !important; font-size: 0; line-height: 0; }
  html[data-phone-list] #listResults .table-register td.action-icons > :is(a, button, form) { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; margin: 0; padding: 0; vertical-align: top; }
  html[data-phone-list] #listResults .table-register td.action-icons form :is(a, button) { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; margin: 0; padding: 0; }
  html[data-phone-list] #listResults .table-register td.action-icons :is(a, button) { font-size: .95rem; }
  html[data-phone-list] #listResults .table-register { width: max-content; min-width: 100%; }   /* as wide as its columns: the table swipes sideways instead of squeezing */
  html[data-phone-list] #listResults .table-register :is(th, td) { white-space: nowrap; overflow-wrap: normal; word-break: normal; max-width: none; padding: 9px 12px; }

  /* No arrows and no fade (owner, 2026-11-16): the thin scroll bar under the row is the only swipe hint. (hs-l / hs-r are still set by assets/app.js, unused by the CSS.) */
}


/* Home page Track Page button: the theme accent colour in both layouts */
.dash-track .btn-lg, .layout-modern .dash-track .btn-lg { color: #fff; background: var(--brand-700); border: 0; }
.dash-track .btn-lg:hover, .layout-modern .dash-track .btn-lg:hover { color: #fff; background: var(--brand-800); }
.layout-modern .dash-track .btn-lg .bi { background: rgba(255, 255, 255, .18); color: #fff; }
.layout-modern .dash-track.row .track-copy { color: #fff; background: rgba(255, 255, 255, .18); }
.layout-modern .dash-track.row .track-copy:hover { background: rgba(255, 255, 255, .32); color: #fff; }
html[data-bs-theme="dark"] .dash-track .btn-lg, html[data-bs-theme="dark"] .layout-modern .dash-track .btn-lg { background: var(--brand-700); }

/* Name at the bottom of the sidebar */
#sidebar .sidebar-user { flex: 0 0 auto; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--side-text); font-size: .86rem; font-weight: 600; }
#sidebar .sidebar-user small { display: block; color: var(--side-label); font-size: .72rem; font-weight: 500; }
.layout-modern #sidebar .sidebar-user { margin: 0 10px 10px; padding: 10px 12px; border-top: 1px solid var(--border-color); color: var(--text-primary); }
.layout-modern #sidebar .sidebar-user small { color: var(--text-muted); }

/* Floating notices, bottom right, until closed */
.notice-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1080; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); }
.notice-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); border-left: 4px solid var(--brand-500);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font-size: .86rem; }
.notice-card > .bi { margin-top: 2px; color: var(--brand-500); }
.notice-card > div { flex: 1 1 auto; min-width: 0; }
.notice-card b, .notice-card span { display: block; }
.notice-card span { margin: 2px 0; color: var(--text-secondary); }
.notice-close { flex: 0 0 auto; padding: 2px 4px; color: var(--text-muted); background: none; border: 0; cursor: pointer; }
.notice-close:hover { color: var(--text-primary); }

/* Close button of a notice: small, vertically centred at the right end, whatever the height of the notice */
.alert-dismissible { padding-right: 2.75rem !important; }
.alert-dismissible > .btn-close { top: 50%; right: 12px; width: 8px; height: 8px; padding: 6px; margin: 0; transform: translateY(-50%); background-size: 8px; opacity: .55; }
.alert-dismissible > .btn-close:hover { opacity: 1; }
