/* =====================================================================
   LCS Theme — corporate, colorful design system layered on app.css.
   Loaded last on every page, so it re-skins every screen without
   touching page markup. Palette: royal indigo primary + vivid accents.
   ===================================================================== */

:root {
  --ui-font: "Public Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --p: #2f66e0;
  --p-600: #2856c4;
  --p-700: #1f46a8;
  --p-50: #eef3fd;
  --p-100: #dbe6fb;
  --p-grad: #2f66e0;

  --c-violet: #7c4dff;
  --c-teal: #12b5a6;
  --c-green: #16a34a;
  --c-amber: #f59e0b;
  --c-rose: #f0476b;
  --c-sky: #0ea5e9;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1b2236;
  --text-2: #5d6782;
  --text-3: #8a93ab;
  --border: #e6eaf3;
  --border-2: #d9dfeb;

  --side-bg: #0f1433;
  --side-bg-2: #171e4a;
  --side-text: #a8b1d6;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-2: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -12px rgba(30, 41, 90, .16);
  --sh-3: 0 24px 48px -16px rgba(30, 41, 90, .28);

  /* re-point legacy tokens used throughout app.css */
  --navy: #2c2c2e;
  --navy-2: #3a3a3c;
  --navy-3: var(--p);
  --ink: var(--text);
  --muted: var(--text-2);
  --line: var(--border-2);
  --paper: var(--bg);
  --card: var(--surface);
  --gold: #f5b70a;
  --gold-2: #ffcf4a;
  --gold-ink: var(--p);
  --shadow: var(--sh-2);
  --radius: var(--r-lg);
  --sidebar: 272px;

  --bs-primary: #2f66e0;
  --bs-primary-rgb: 47, 102, 224;
  --bs-link-color: #2f66e0;
  --bs-link-color-rgb: 47, 102, 224;
  --bs-link-hover-color: #1f46a8;
  --bs-border-color: var(--border-2);
  --bs-body-font-family: var(--ui-font);
  --bs-secondary-color: var(--text-2);
}

/* ---------- Base ---------- */
body.app-body,
body.auth-body,
body.payroll-print-body,
body {
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.app-body { background: var(--bg); color: var(--text); font-size: 14.5px; }
a { color: var(--p); }
a:hover { color: var(--p-700); }
.text-secondary { color: var(--text-2) !important; }
.text-primary { color: var(--p) !important; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--ui-font); color: var(--text); letter-spacing: -.01em; }
.h6, h6 { font-weight: 700; }
::selection { background: rgba(47, 102, 224, .18); }
* { scrollbar-width: thin; scrollbar-color: #c9d0e2 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #cfd5e6; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* every "display" number that used Fraunces now uses the UI face */
.page-title, .stat-card .value, .brand-title, .value, .login-hero-title { font-family: var(--ui-font) !important; }

/* ---------- Sidebar ----------
   A quiet, light source list in the spirit of macOS / elementary OS:
   neutral surface, monochrome icons, one soft selection, no gradients. */
.sidebar,
.sidebar[class] {
  background: #fbfbfc;
  background-image: none;
  color: #3a3a3c;
  padding: 16px 12px 12px;
  border-right: 1px solid rgba(0, 0, 0, .07);
}
.side-brand {
  gap: 10px;
  padding: 4px 8px 16px;
  margin-bottom: 6px;
  border-bottom: 0;
}
.side-logo { width: 34px; height: 34px; border-radius: 9px; background: transparent; padding: 0; box-shadow: none; }
.side-brand .mark { width: 34px; height: 34px; border-radius: 9px; background: #1d1d1f; color: #fff; font-size: 14px; }
.side-brand h1 { font-size: 13.5px; font-weight: 650; color: #1d1d1f; letter-spacing: -.01em; }
.side-brand small {
  display: block;
  margin-top: 1px;
  padding: 0;
  background: none;
  border: 0;
  color: #8e8e93;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.side-nav { padding-right: 2px; margin-right: -4px; }
.nav-group { margin-top: 14px; }
.nav-group-toggle {
  color: #8e8e93;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 10px 4px;
  opacity: 1;
}
.nav-group-toggle i { opacity: 0; font-size: 11px; transition: opacity .15s ease, transform .2s ease; }
.nav-group-toggle:hover { color: #3a3a3c; }
.nav-group-toggle:hover i,
.nav-group-toggle:focus-visible i,
.nav-group.is-collapsed .nav-group-toggle i { opacity: .7; }
.nav-group-body { gap: 1px; }
.nav-link-app {
  color: #3a3a3c;
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 500;
  gap: 10px;
  transition: background .12s ease, color .12s ease;
}
.nav-link-app > i {
  width: 18px;
  flex: 0 0 18px;
  font-size: 15.5px;
  line-height: 1;
  text-align: center;
  color: #6e6e73;
  background: none;
}
.nav-link-app:hover { background: rgba(0, 0, 0, .045); color: #1d1d1f; }
.nav-link-app.active {
  background: rgba(0, 0, 0, .065);
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: none;
}
.nav-link-app.active > i { color: var(--p); background: none; }
.nav-link-app:focus-visible { outline: 2px solid rgba(47, 102, 224, .45); outline-offset: -2px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .12); }

.side-user {
  background: none;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .07);
  border-radius: 0;
  padding: 12px 6px 2px;
  margin-top: 10px;
}
.side-user .text-white { color: #1d1d1f !important; font-size: 13px !important; font-weight: 600 !important; }
.side-user-meta { font-size: 11.5px; color: #8e8e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .avatar-img, .side-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.side-user .btn-outline-light { color: #8e8e93; border: 0; border-radius: 8px; }
.side-user .btn-outline-light:hover { background: rgba(0, 0, 0, .06); color: #1d1d1f; }
.avatar { background: #e5e5ea; color: #3a3a3c; font-weight: 650; }
.avatar-img { background: #e5e5ea; }

@media (max-width: 1100px) {
  body.nav-open .sidebar { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px rgba(0, 0, 0, .18); }
  .nav-backdrop { background: rgba(0, 0, 0, .25) !important; backdrop-filter: blur(2px); }
}

/* ---------- Topbar ---------- */
.topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 26px;
  min-height: 70px;
}
.nav-toggle {
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-2);
  font-size: 20px;
  background: #fff;
  box-shadow: var(--sh-1);
}
.nav-toggle:hover { color: var(--p); border-color: var(--p-100); background: var(--p-50); }
.page-kicker {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700;
  margin: 0;
}
.page-title { font-size: 1.3rem !important; font-weight: 750; color: var(--text) !important; letter-spacing: -.02em; }
.topbar-actions .btn-outline-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--text-2);
  box-shadow: var(--sh-1);
}
.topbar-actions .btn-outline-secondary:hover { color: var(--p); border-color: var(--p-100); background: var(--p-50); }
.topbar-me {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e5e5ea;
  color: #3a3a3c;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  flex: 0 0 auto;
}
.topbar-me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.topbar-me:hover { color: #1d1d1f; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.topbar-me-online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.notify-badge { background: var(--c-rose) !important; }
.notify-panel { border-radius: var(--r-lg) !important; border: 1px solid var(--border) !important; box-shadow: var(--sh-3) !important; overflow: hidden; }
.call-dir-alert { background: #fff1f3; border-color: #fecdd6; color: #be123c; }

.content { padding: 24px 26px 48px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; font-size: 13.8px; letter-spacing: .005em; transition: all .15s ease; }
.btn-sm { border-radius: 8px; font-size: 12.5px; }
.btn-lg { border-radius: 12px; }
.btn-gold,
.btn-primary {
  background: var(--p) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}
.btn-gold:hover, .btn-primary:hover, .btn-gold:focus-visible, .btn-primary:focus-visible {
  color: #fff !important;
  background: var(--p-600) !important;
}
.btn-navy {
  background: #2c2c2e;
  color: #fff;
  border: 0;
}
.btn-navy:hover { background: #3a3a3c; color: #fff; }
.btn-outline-secondary {
  --bs-btn-color: var(--text-2);
  --bs-btn-border-color: var(--border-2);
  --bs-btn-hover-bg: var(--p-50);
  --bs-btn-hover-color: var(--p);
  --bs-btn-hover-border-color: var(--p-100);
  --bs-btn-active-bg: var(--p-100);
  --bs-btn-active-color: var(--p-700);
  --bs-btn-active-border-color: var(--p-100);
  background: #fff;
}
.btn-outline-danger {
  --bs-btn-color: #e11d48;
  --bs-btn-border-color: #fecdd6;
  --bs-btn-hover-bg: #fff1f3;
  --bs-btn-hover-color: #be123c;
  --bs-btn-hover-border-color: #fda4b4;
}
.btn-outline-primary {
  --bs-btn-color: var(--p);
  --bs-btn-border-color: var(--p-100);
  --bs-btn-hover-bg: var(--p);
  --bs-btn-hover-border-color: var(--p);
}
.btn-danger { background: linear-gradient(135deg, #f0476b, #e11d48); border: 0; }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); border: 0; }
.btn-soft {
  background: var(--p-50);
  color: var(--p);
  border: 1px solid transparent;
}
.btn-soft:hover { background: var(--p-100); color: var(--p-700); }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(47, 102, 224, .2) !important; }

/* ---------- Cards ---------- */
.card-soft,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card-soft:hover { box-shadow: var(--sh-2); }
.card-soft { transition: box-shadow .2s ease; }
.card-soft > .h6:first-child,
.card-soft h3.h6 { font-size: 15px; font-weight: 700; }

/* stat cards cycle through the accent palette */
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 18px 18px 16px;
  --tone: var(--p);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tone);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--tone);
  opacity: .07;
}
.stat-card .label { color: var(--text-2); font-size: 11.5px; letter-spacing: .07em; font-weight: 700; }
.stat-card .value { font-size: 1.85rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat-card .hint { color: var(--text-3); }
.stat-grid > :nth-child(5n+1), .row > :nth-child(5n+1) > .stat-card { --tone: #2f66e0; }
.stat-grid > :nth-child(5n+2), .row > :nth-child(5n+2) > .stat-card { --tone: #7c4dff; }
.stat-grid > :nth-child(5n+3), .row > :nth-child(5n+3) > .stat-card { --tone: #12b5a6; }
.stat-grid > :nth-child(5n+4), .row > :nth-child(5n+4) > .stat-card { --tone: #f59e0b; }
.stat-grid > :nth-child(5n+5), .row > :nth-child(5n+5) > .stat-card { --tone: #f0476b; }
.icon-blob {
  background: color-mix(in srgb, var(--tone, var(--p)) 13%, #fff) !important;
  color: var(--tone, var(--p)) !important;
  border-radius: 12px !important;
}

/* ---------- Tables ---------- */
.table-wrap { border-radius: var(--r-lg); }
.table-app { font-size: 13.6px; }
.table-app thead th {
  background: #f8f9fd;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.table-app thead th a { color: var(--text-2); }
.table-app thead th a:hover { color: var(--p); }
.table-app tbody td { border-bottom: 1px solid #eef1f7; color: var(--text); }
.table-app tbody tr { transition: background .12s ease; }
.table-app tbody tr:hover { background: #f6f8ff; }
.table-app tr.is-editing { background: #fffbeb; }
.table > :not(caption) > * > * { border-color: #eef1f7; }

/* DataTables */
div.dt-container .dt-search input,
div.dt-container .dt-length select,
div.dt-container .dt-input {
  border: 1px solid var(--border-2) !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  background: #fff;
}
div.dt-container .dt-search input:focus { border-color: var(--p) !important; box-shadow: 0 0 0 4px rgba(47, 102, 224, .12); outline: 0; }
div.dt-container .dt-paging .dt-paging-button,
.page-link { border-radius: 8px !important; margin: 0 2px; border: 0 !important; color: var(--text-2) !important; }
div.dt-container .dt-paging .dt-paging-button.current,
.page-item.active .page-link { background: var(--p-grad) !important; color: #fff !important; }
div.dt-container .dt-info { color: var(--text-3); font-size: 12.5px; }
.dt-buttons .btn { border-radius: 9px !important; }

/* ---------- Forms ---------- */
.form-label { font-size: 12.8px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control,
.form-select {
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:hover, .form-select:hover { border-color: #c3cbe0; }
.form-control:focus,
.form-select:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(47, 102, 224, .12);
}
.form-control::placeholder { color: #a5adc2; }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-text { color: var(--text-3); font-size: 12px; }
.input-group-text { background: #f6f8fc; border-color: var(--border-2); color: var(--text-2); border-radius: 10px; }
.form-check-input { border-color: #c3cbe0; }
.form-check-input:checked { background-color: var(--p); border-color: var(--p); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(47, 102, 224, .14); border-color: var(--p); }
.form-switch .form-check-input:checked { background-color: var(--c-green); border-color: var(--c-green); }

/* ---------- Pills / badges ---------- */
.status-pill { border-radius: 99px; font-weight: 650; font-size: 11.8px; padding: 4px 10px; }
.st-assigned { background: #e6eefc; color: #2f48d8; }
.st-upcoming { background: #e0f2fe; color: #0369a1; }
.st-progress { background: #fff4db; color: #b45309; }
.st-done { background: #dcfce7; color: #15803d; }
.st-hold { background: #f1ebff; color: #6d28d9; }
.st-cancel { background: #ffe4ea; color: #be123c; }
.badge { border-radius: 99px; font-weight: 650; }
.text-bg-primary, .bg-primary { background-color: var(--p) !important; }

/* ---------- Subnav / tabs ---------- */
.app-subnav { background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-1); padding: 4px; }
.app-subnav-link { color: var(--text-2); font-weight: 600; }
.app-subnav-link:hover { background: var(--p-50); color: var(--p); }
.app-subnav-link.is-on { background: var(--p-grad); color: #fff; box-shadow: none; }
.nav-tabs { border-bottom: 1px solid var(--border); gap: 4px; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; border-radius: 0; }
.nav-tabs .nav-link:hover { color: var(--p); }
.nav-tabs .nav-link.active { color: var(--p); border-bottom-color: var(--p); background: transparent; }
.nav-pills .nav-link.active { background: var(--p-grad); }

/* ---------- Alerts / modals / dropdowns ---------- */
.alert { border: 0; border-radius: var(--r); border-left: 4px solid currentColor; box-shadow: var(--sh-1); font-weight: 500; }
.alert-success { background: #ecfdf3; color: #166534; }
.alert-danger { background: #fff1f3; color: #be123c; }
.alert-warning { background: #fffbeb; color: #a16207; }
.alert-info { background: #eef6ff; color: #1d4ed8; }
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--sh-3); }
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; }
.modal-title { font-weight: 750; font-size: 1.05rem; }
.modal-body { padding: 20px 22px; }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 22px; background: #fafbfe; border-radius: 0 0 18px 18px; }
.modal-backdrop.show { opacity: .45; }
.action-confirm-card { background: #fff !important; color: var(--text) !important; }
.action-confirm-card .btn-close-white { filter: none; }
.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-3); padding: 6px; }
.dropdown-item { border-radius: 8px; font-size: 13.6px; padding: 7px 10px; }
.dropdown-item:hover { background: var(--p-50); color: var(--p); }
.dropdown-item.active, .dropdown-item:active { background: var(--p); }
.toast-stack .toast, .toast { border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--border); }
.empty-state { color: var(--text-3); }
.empty-state i { color: var(--p); opacity: .6; }
details > summary { cursor: pointer; color: var(--p); }
code { color: #c026d3; }
.perm-group { background: #f8f9fd; border: 1px solid var(--border); border-radius: var(--r); }
.perm-group-title { color: var(--text); font-weight: 700; }

/* ---------- Comms (Teams shell) ---------- */
.teams { font-family: var(--ui-font); }
.teams-rail { background: #f7f8fc; border-right: 1px solid var(--border); }
.teams-rail a { border-radius: 10px; color: var(--text-2); }
.teams-rail a:hover { background: #eef1fb; color: var(--text); }
.teams-rail a.is-on { background: #fff; color: var(--p); box-shadow: inset 3px 0 0 var(--p), var(--sh-1); }
.teams-badge { background: var(--c-rose); }

/* =====================================================================
   UI kit (technician portal and new screens)
   ===================================================================== */
.ui-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 20px; }
.ui-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ui-card-head h4 { font-size: 15.5px; font-weight: 750; margin: 0; }
.ui-card-head p { color: var(--text-3); font-size: 12.8px; margin: 2px 0 0; }
.ui-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 750; margin: 6px 0 12px; }

.ui-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 30px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(500px 240px at 90% -20%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(400px 260px at 10% 130%, rgba(18, 181, 166, .45), transparent 60%),
    linear-gradient(120deg, #2f48d8 0%, #5a3df0 55%, #8b3dff 100%);
  box-shadow: 0 20px 40px -20px rgba(61, 70, 220, .65);
}
.ui-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  pointer-events: none;
}
.ui-hero > * { position: relative; z-index: 1; }
.ui-hero-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ui-hero-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 6px 0 6px; }
.ui-hero-copy { margin: 0; max-width: 560px; opacity: .88; }
.ui-hero .btn-light { color: var(--p-700); border-radius: 11px; }
.ui-hero .btn-outline-light { border-radius: 11px; border-color: rgba(255,255,255,.5); }
.ui-hero-balance {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 18px 22px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
}
.ui-hero-balance span { font-size: 12px; font-weight: 600; opacity: .85; }
.ui-hero-balance strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ui-hero-balance small { opacity: .8; }

.ui-stat {
  --tone: var(--p);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--sh-1);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.ui-stat::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--tone); opacity: .07; }
.ui-stat-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; color: #fff; background: var(--tone); box-shadow: 0 8px 18px -8px var(--tone); }
.ui-stat span { display: block; font-size: 12px; font-weight: 650; color: var(--text-2); }
.ui-stat strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.2; }
.ui-stat small { color: var(--text-3); font-size: 12px; }
.ui-stat-blue { --tone: #2f66e0; }
.ui-stat-violet { --tone: #7c4dff; }
.ui-stat-teal { --tone: #12b5a6; }
.ui-stat-amber { --tone: #f59e0b; }
.ui-stat-green { --tone: #16a34a; }
.ui-stat-rose { --tone: #f0476b; }

.ui-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11.8px; font-weight: 700; white-space: nowrap; }
.ui-badge-green { background: #dcfce7; color: #15803d; }
.ui-badge-blue { background: #e6eefc; color: #2f48d8; }
.ui-badge-amber { background: #fff4db; color: #b45309; }
.ui-badge-violet { background: #f1ebff; color: #6d28d9; }
.ui-badge-teal { background: #d5f5f1; color: #0f766e; }
.ui-badge-rose { background: #ffe4ea; color: #be123c; }
.ui-badge-light { background: rgba(255,255,255,.22); color: #fff; }

.ui-ic-blue { color: #2f66e0; background: #e6eefc; }
.ui-ic-violet { color: #7c4dff; background: #f1ebff; }
.ui-ic-teal { color: #0f9b8e; background: #d5f5f1; }
.ui-ic-amber { color: #d97706; background: #fff4db; }
.ui-ic-green { color: #16a34a; background: #dcfce7; }
.ui-ic-rose { color: #e11d48; background: #ffe4ea; }

.ui-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 5px; box-shadow: var(--sh-1); width: fit-content; max-width: 100%; }
.ui-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 650; font-size: 13.5px; }
.ui-tab:hover { background: var(--p-50); color: var(--p); }
.ui-tab.is-active { background: var(--p-grad); color: #fff; box-shadow: none; }

.ui-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 13.6px; }
.ui-banner > i { font-size: 18px; line-height: 1.2; }
.ui-banner-violet { background: linear-gradient(90deg, #f3eeff, #eef1ff); color: #4c1d95; border: 1px solid #e4dbff; }
.ui-banner-blue { background: #eef4ff; color: #1e3a8a; border: 1px solid #dbe5ff; }

.ui-empty { text-align: center; padding: 34px 16px; color: var(--text-3); }
.ui-empty > i { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 26px; color: var(--p); background: var(--p-50); margin-bottom: 10px; }
.ui-empty p { margin: 0 auto 10px; max-width: 360px; }

.ui-bars { display: flex; align-items: flex-end; gap: 14px; height: 230px; padding: 24px 4px 0; }
.ui-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.ui-bar i { display: block; width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #7c4dff, #2f66e0); box-shadow: 0 10px 18px -10px rgba(47, 102, 224, .8); transition: filter .15s; }
.ui-bar:nth-child(3n+2) i { background: linear-gradient(180deg, #2dd4bf, #12b5a6); box-shadow: 0 10px 18px -10px rgba(18,181,166,.8); }
.ui-bar:nth-child(3n) i { background: linear-gradient(180deg, #fbbf24, #f59e0b); box-shadow: 0 10px 18px -10px rgba(245,158,11,.8); }
.ui-bar:hover i { filter: brightness(1.1); }
.ui-bar em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.ui-bar:hover em { opacity: 1; }
.ui-bar span { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.ui-paycard {
  --tone-a: #2f66e0; --tone-b: #7c4dff;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: radial-gradient(240px 160px at 110% -10%, rgba(255,255,255,.28), transparent 60%), linear-gradient(135deg, var(--tone-a), var(--tone-b));
  box-shadow: 0 16px 30px -18px var(--tone-a);
}
.ui-paycard-violet { --tone-a: #6a4cff; --tone-b: #b14dff; }
.ui-paycard-amber { --tone-a: #f59e0b; --tone-b: #f0476b; }
.ui-paycard-teal { --tone-a: #0ea5a4; --tone-b: #2f66e0; }
.ui-paycard-num { font-family: "IBM Plex Mono", monospace; font-size: 1.1rem; letter-spacing: .08em; font-weight: 600; word-break: break-all; }

.ui-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-choice label { cursor: pointer; }
.ui-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ui-choice span { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1.5px solid var(--border-2); border-radius: 12px; font-weight: 600; font-size: 13px; transition: all .15s; }
.ui-choice span i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 15px; }
.ui-choice input:checked + span { border-color: var(--p); background: var(--p-50); box-shadow: 0 0 0 3px rgba(47, 102, 224, .12); }

.ui-doc { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-1); height: 100%; flex-wrap: wrap; transition: box-shadow .2s, transform .2s; }
.ui-doc:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.ui-doc-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; font-size: 21px; }
.ui-doc-actions { display: flex; gap: 6px; width: 100%; justify-content: flex-end; }

.ui-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 13px; transition: all .15s; }
.ui-quick a i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 18px; }
.ui-quick a:hover { border-color: var(--p-100); background: #fafbff; transform: translateY(-2px); box-shadow: var(--sh-2); }

.payroll-stub-wrap { overflow-x: auto; }

/* =====================================================================
   Auth (unified login) + error pages
   ===================================================================== */
body.auth-body { margin: 0; min-height: 100vh; background: #f4f6fb; color: var(--text); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.auth-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 56px clamp(28px, 6vw, 84px);
  background:
    radial-gradient(700px 420px at 0% 0%, rgba(124, 77, 255, .55), transparent 60%),
    radial-gradient(600px 420px at 100% 100%, rgba(18, 181, 166, .4), transparent 60%),
    linear-gradient(140deg, #141a46 0%, #1f2a78 50%, #2b2f8f 100%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
}
.auth-hero-glow i { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: authFloat 14s ease-in-out infinite; }
.auth-hero-glow i:nth-child(1) { width: 260px; height: 260px; background: #2f66e0; top: 12%; right: 8%; }
.auth-hero-glow i:nth-child(2) { width: 200px; height: 200px; background: #f0476b; bottom: 10%; left: 6%; animation-delay: -5s; opacity: .35; }
.auth-hero-glow i:nth-child(3) { width: 180px; height: 180px; background: #f59e0b; top: 55%; right: 30%; animation-delay: -9s; opacity: .28; }
@keyframes authFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -24px); } }
@media (prefers-reduced-motion: reduce) { .auth-hero-glow i { animation: none; } }
.auth-hero-inner { position: relative; z-index: 1; max-width: 560px; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 42px; }
.auth-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 13px; padding: 5px; }
.auth-brand-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--p-grad); color: #fff; font-weight: 800; font-size: 14px; }
.auth-hero-title { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.auth-hero-title span { background: linear-gradient(90deg, #a5b4ff, #5eead4 60%, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero-copy { font-size: 1.02rem; color: rgba(229, 233, 255, .82); max-width: 480px; margin-bottom: 30px; }
.auth-portals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.auth-portal { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.auth-portal > i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2f66e0, #7c4dff); font-size: 18px; }
.auth-portal.is-tech > i { background: linear-gradient(135deg, #12b5a6, #22c55e); }
.auth-portal strong { display: block; font-size: 14px; }
.auth-portal span { display: block; font-size: 12.5px; color: rgba(229, 233, 255, .72); margin-top: 2px; }
.auth-hero-foot { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: rgba(229, 233, 255, .7); }
.auth-hero-foot i { margin-right: 4px; color: #a5b4ff; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card-logo { margin-bottom: 22px; }
.auth-card-logo img { height: 52px; width: auto; object-fit: contain; }
.auth-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; color: var(--text); }
.auth-sub { color: var(--text-2); margin-bottom: 24px; }
.auth-alert { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px; background: #eef4ff; color: #1e40af; font-weight: 500; }
.auth-alert-danger { background: #fff1f3; color: #be123c; }
.auth-alert-success { background: #ecfdf3; color: #166534; }
.auth-alert-warning { background: #fffbeb; color: #a16207; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; color: var(--text); }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > i { position: absolute; left: 14px; color: var(--text-3); font-size: 16px; pointer-events: none; }
.auth-input input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  padding: 0 44px 0 42px;
  font-size: 15px;
  font-family: var(--ui-font);
  color: var(--text);
  background: #fbfcfe;
  transition: all .15s ease;
}
.auth-input input.mono { font-family: "IBM Plex Mono", monospace; letter-spacing: .2em; }
.auth-input input:focus { outline: 0; border-color: var(--p); background: #fff; box-shadow: 0 0 0 4px rgba(47, 102, 224, .14); }
.auth-input input:focus + .auth-eye, .auth-input:focus-within > i { color: var(--p); }
.auth-eye { position: absolute; right: 8px; border: 0; background: transparent; color: var(--text-3); width: 34px; height: 34px; border-radius: 9px; }
.auth-eye:hover { background: var(--p-50); color: var(--p); }
.login-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.auth-card .login-hcaptcha { margin: 6px 0 18px; min-height: 78px; border-radius: 12px; }
.auth-card .login-hcaptcha.is-invalid { outline: 2px solid #f0476b; outline-offset: 3px; }
.auth-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--p-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 24px -12px rgba(47, 102, 224, .8);
  transition: all .15s ease;
}
.auth-submit:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); }
.auth-foot { margin-top: 22px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.auth-copy { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--text-3); }
.err-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(600px 300px at 50% 0%, #e8ecff, transparent 70%), #f4f6fb; }
.err-card { text-align: center; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 40px 32px; box-shadow: var(--sh-3); }
.err-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--p-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { padding: 36px 24px; }
  .auth-brand { margin-bottom: 22px; }
  .auth-hero-copy, .auth-hero-foot { display: none; }
  .auth-portals { margin-bottom: 0; }
  .auth-panel { padding-top: 32px; }
}
@media (max-width: 520px) { .auth-portals { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .ui-hero { padding: 22px; }
  .ui-hero-balance { width: 100%; }
  .ui-bars { gap: 6px; }
  .topbar-me { display: none; }
}
@media print {
  .topbar-me { display: none !important; }
}

/* Public pages (forms, e-signing) */
body.public-page { background: radial-gradient(900px 340px at 50% -80px, #e3e8ff, transparent 70%), #f4f6fb !important; }
body.public-page > .container > .card-soft:first-child { box-shadow: inset 0 4px 0 #2f66e0, var(--sh-2); }

/* Legacy display faces (Fraunces/Georgia/Outfit) → UI face */
.brand-title, .cal-week-date, .day-nav-date, .dir-letter, .exp-month-name, .hr-builder-brand, .mark,
.paystub, .tech-avail-fee, .trip-fee-amount, body.has-teams:not(.has-mail) .page-title,
.lcs-board[data-area="chat"], .lcs-ring, .mail-settings, .outlook, .shift-dialog.is-pick .shift-user-pick {
  font-family: var(--ui-font) !important;
}
.day-nav-date, .exp-month-name, .cal-week-date { font-weight: 750; letter-spacing: -.02em; }
.lcs-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Section tabs (Payroll, Availability, HR …) → pill segmented control */
.avail-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%;
  background: #fff; border: 1px solid var(--border) !important; border-radius: 14px; padding: 5px;
  box-shadow: var(--sh-1); margin-bottom: 18px;
}
.avail-tab {
  border: 0 !important; border-radius: 10px !important; background: transparent !important;
  color: var(--text-2) !important; font-weight: 650; font-size: 13.5px; padding: 8px 14px !important;
  margin: 0 !important; box-shadow: none !important; text-decoration: none;
}
.avail-tab:hover { background: var(--p-50) !important; color: var(--p) !important; }
.avail-tab.active { background: var(--p-grad) !important; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(47,102,224,.6) !important; }

/* Toasts */
.sys-toast {
  background: #fff !important; color: var(--text) !important;
  border: 1px solid var(--border); border-left: 4px solid var(--p) !important;
  border-radius: 14px !important; box-shadow: var(--sh-3) !important;
}
.sys-toast-actor { color: var(--text) !important; }
.sys-toast strong { color: var(--p) !important; font-size: 11px !important; }

/* DataTables export buttons */
.dt-buttons .btn-secondary, .dt-buttons .dt-button {
  background: var(--p-50) !important; color: var(--p) !important; border: 1px solid transparent !important;
  font-weight: 650; box-shadow: none !important;
}
.dt-buttons .btn-secondary:hover, .dt-buttons .dt-button:hover { background: var(--p-100) !important; color: var(--p-700) !important; }

/* Quieter cards: color lives only in the small icon, no decorative blobs or stripes */
.stat-card::before, .stat-card::after, .ui-stat::after { display: none !important; }
.ui-stat-icon { box-shadow: none; }

/* =====================================================================
   Pastel presets — a pale, mixed palette (sky, lavender, mint, butter,
   blush, peach, aqua). Each preset exposes the same four tokens so any
   component can wear any tone:
     --t-bg  pale wash      --t-bd  hairline border
     --t-ink readable text  --t      mid tone (icons, dots, active marks)
   Use .tone-<name> on any card, button, badge or menu to opt in.
   ===================================================================== */
:root {
  --sky-bg: #edf4fd;    --sky-bd: #d3e3f8;    --sky-ink: #1f5aa6;    --sky: #5b9be6;
  --lav-bg: #f3effd;    --lav-bd: #e2d9fa;    --lav-ink: #5a3fb0;    --lav: #9077ee;
  --mint-bg: #ebf8f1;   --mint-bd: #cdeedb;   --mint-ink: #1d7449;   --mint: #4dbb83;
  --butter-bg: #fdf7e2; --butter-bd: #f4e5b0; --butter-ink: #85600e; --butter: #e2b23c;
  --blush-bg: #fdeff2;  --blush-bd: #f7d5dd;  --blush-ink: #ad3550;  --blush: #ec7590;
  --peach-bg: #fdf1e7;  --peach-bd: #f7dcc6;  --peach-ink: #9e4f1a;  --peach: #ef9a5e;
  --aqua-bg: #e9f7f6;   --aqua-bd: #c8ebe7;   --aqua-ink: #17706a;   --aqua: #45b7ad;
}
.tone-sky    { --t-bg: var(--sky-bg);    --t-bd: var(--sky-bd);    --t-ink: var(--sky-ink);    --t: var(--sky); }
.tone-lav    { --t-bg: var(--lav-bg);    --t-bd: var(--lav-bd);    --t-ink: var(--lav-ink);    --t: var(--lav); }
.tone-mint   { --t-bg: var(--mint-bg);   --t-bd: var(--mint-bd);   --t-ink: var(--mint-ink);   --t: var(--mint); }
.tone-butter { --t-bg: var(--butter-bg); --t-bd: var(--butter-bd); --t-ink: var(--butter-ink); --t: var(--butter); }
.tone-blush  { --t-bg: var(--blush-bg);  --t-bd: var(--blush-bd);  --t-ink: var(--blush-ink);  --t: var(--blush); }
.tone-peach  { --t-bg: var(--peach-bg);  --t-bd: var(--peach-bd);  --t-ink: var(--peach-ink);  --t: var(--peach); }
.tone-aqua   { --t-bg: var(--aqua-bg);   --t-bd: var(--aqua-bd);   --t-ink: var(--aqua-ink);   --t: var(--aqua); }
.card-soft[class*="tone-"], .ui-card[class*="tone-"] { background: var(--t-bg); border-color: var(--t-bd); }
.btn[class*="tone-"], .badge[class*="tone-"] { background: var(--t-bg) !important; color: var(--t-ink) !important; border: 1px solid var(--t-bd) !important; }
.btn[class*="tone-"]:hover { background: color-mix(in srgb, var(--t-bg) 55%, var(--t-bd)) !important; }

/* ---------- Links: no stray underlines ----------
   Bootstrap underlines every <a>. Components (buttons, tabs, cards, menu
   rows, chips) never want it; plain inline text links show it on hover. */
a, a:hover, a:focus { text-decoration: none; }
a:not([class]):hover,
p a:hover, .form-text a:hover, .alert a:hover, .small a:hover, small a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.btn:hover, .nav-link:hover, .dropdown-item:hover, .nav-link-app:hover, .ui-tab:hover, .avail-tab:hover,
.app-subnav-link:hover, .page-link:hover, .ui-quick a:hover, .status-pill:hover, .badge:hover { text-decoration: none !important; }
.call-dir-alert a { text-decoration: underline; }

/* ---------- Sidebar: each section wears its own pastel ---------- */
.side-nav > .nav-link-app,
.nav-group[data-nav-group="work"]     { --t-bg: var(--sky-bg);    --t-ink: var(--sky-ink);    --t: var(--sky); }
.nav-group[data-nav-group="planning"] { --t-bg: var(--mint-bg);   --t-ink: var(--mint-ink);   --t: var(--mint); }
.nav-group[data-nav-group="comms"]    { --t-bg: var(--lav-bg);    --t-ink: var(--lav-ink);    --t: var(--lav); }
.nav-group[data-nav-group="people"]   { --t-bg: var(--peach-bg);  --t-ink: var(--peach-ink);  --t: var(--peach); }
.nav-group[data-nav-group="wallet"]   { --t-bg: var(--aqua-bg);   --t-ink: var(--aqua-ink);   --t: var(--aqua); }
.nav-group[data-nav-group="account"]  { --t-bg: var(--butter-bg); --t-ink: var(--butter-ink); --t: var(--butter); }
.nav-group[data-nav-group="admin"]    { --t-bg: var(--blush-bg);  --t-ink: var(--blush-ink);  --t: var(--blush); }
.side-nav .nav-link-app > i { color: var(--t, #6e6e73); }
.side-nav .nav-link-app:hover { background: color-mix(in srgb, var(--t-bg, #f2f2f4) 70%, #fff); color: #1d1d1f; }
.side-nav .nav-link-app.active { background: var(--t-bg, rgba(0,0,0,.065)); color: var(--t-ink, #1d1d1f); }
.side-nav .nav-link-app.active > i { color: var(--t-ink, var(--p)); }
.nav-group-toggle::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--t, #c7c7cc);
}

/* ---------- Stat cards: pale washes that rotate through the palette ---------- */
.stat-grid > :nth-child(5n+1), .row > :nth-child(5n+1) > .stat-card, .ui-stat-blue   { --t-bg: var(--sky-bg);    --t-bd: var(--sky-bd);    --t-ink: var(--sky-ink);    --t: var(--sky); }
.stat-grid > :nth-child(5n+2), .row > :nth-child(5n+2) > .stat-card, .ui-stat-violet { --t-bg: var(--lav-bg);    --t-bd: var(--lav-bd);    --t-ink: var(--lav-ink);    --t: var(--lav); }
.stat-grid > :nth-child(5n+3), .row > :nth-child(5n+3) > .stat-card, .ui-stat-green  { --t-bg: var(--mint-bg);   --t-bd: var(--mint-bd);   --t-ink: var(--mint-ink);   --t: var(--mint); }
.stat-grid > :nth-child(5n+4), .row > :nth-child(5n+4) > .stat-card, .ui-stat-amber  { --t-bg: var(--butter-bg); --t-bd: var(--butter-bd); --t-ink: var(--butter-ink); --t: var(--butter); }
.stat-grid > :nth-child(5n+5), .row > :nth-child(5n+5) > .stat-card, .ui-stat-rose   { --t-bg: var(--blush-bg);  --t-bd: var(--blush-bd);  --t-ink: var(--blush-ink);  --t: var(--blush); }
.ui-stat-teal { --t-bg: var(--aqua-bg); --t-bd: var(--aqua-bd); --t-ink: var(--aqua-ink); --t: var(--aqua); }
.stat-card, .ui-stat {
  background: var(--t-bg, var(--surface));
  border-color: var(--t-bd, var(--border));
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover, .ui-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--t, #888) 70%, transparent); }
.stat-card .label { color: var(--t-ink, var(--text-2)); opacity: .9; }
.stat-card .hint { color: color-mix(in srgb, var(--t-ink, #8a93ab) 60%, #8a93ab); }
.icon-blob, .ui-stat-icon {
  background: #fff !important;
  color: var(--t-ink, var(--p)) !important;
  box-shadow: 0 0 0 1px var(--t-bd, var(--border)) !important;
}
.ui-stat span { color: var(--t-ink, var(--text-2)); }
.ui-stat small a { color: var(--t-ink); font-weight: 600; }

/* ---------- Cards: a small tone mark beside every card title ---------- */
.card-soft > h3.h6:first-child::before,
.card-soft > div > h3.h6:first-child::before,
.ui-card-head h4::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 3px;
  margin-right: 9px;
  vertical-align: 2px;
  background: var(--t, var(--sky));
}
.row > [class*="col"]:nth-child(5n+1) { --t: var(--sky); }
.row > [class*="col"]:nth-child(5n+2) { --t: var(--lav); }
.row > [class*="col"]:nth-child(5n+3) { --t: var(--mint); }
.row > [class*="col"]:nth-child(5n+4) { --t: var(--butter); }
.row > [class*="col"]:nth-child(5n+5) { --t: var(--blush); }
.row > [class*="col"] > .card-soft + .card-soft,
.row > [class*="col"] > .ui-card + .ui-card { --t: var(--peach); }
.card-soft, .ui-card { border-color: #ebeef4; }

/* ---------- Buttons: soft presets, chosen by what the button does ---------- */
.btn-soft { background: var(--sky-bg); color: var(--sky-ink); border: 1px solid var(--sky-bd); }
.btn-soft:hover { background: var(--sky-bd); color: var(--sky-ink); }
.btn-outline-secondary { --bs-btn-hover-bg: #f4f6fa; --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: var(--border-2); }
.btn-outline-secondary:has(.bi-plus, .bi-plus-lg, .bi-plus-circle, .bi-plus-square, .bi-person-plus, .bi-check, .bi-check2, .bi-check-lg, .bi-check2-circle, .bi-save) { --t-bg: var(--mint-bg); --t-bd: var(--mint-bd); --t-ink: var(--mint-ink); }
.btn-outline-secondary:has(.bi-download, .bi-upload, .bi-cloud-upload, .bi-cloud-download, .bi-file-earmark-arrow-down, .bi-file-earmark-spreadsheet, .bi-filetype-csv, .bi-filetype-pdf, .bi-box-arrow-up-right) { --t-bg: var(--sky-bg); --t-bd: var(--sky-bd); --t-ink: var(--sky-ink); }
.btn-outline-secondary:has(.bi-pencil, .bi-pencil-square, .bi-pen, .bi-gear, .bi-sliders) { --t-bg: var(--butter-bg); --t-bd: var(--butter-bd); --t-ink: var(--butter-ink); }
.btn-outline-secondary:has(.bi-printer, .bi-eye, .bi-funnel, .bi-filter, .bi-search, .bi-calendar3, .bi-calendar-event) { --t-bg: var(--lav-bg); --t-bd: var(--lav-bd); --t-ink: var(--lav-ink); }
.btn-outline-secondary:has(.bi-arrow-clockwise, .bi-arrow-repeat, .bi-arrow-counterclockwise, .bi-send, .bi-envelope) { --t-bg: var(--aqua-bg); --t-bd: var(--aqua-bd); --t-ink: var(--aqua-ink); }
.btn-outline-secondary:has(.bi-trash, .bi-trash3, .bi-x-circle, .bi-x-lg, .bi-archive) { --t-bg: var(--blush-bg); --t-bd: var(--blush-bd); --t-ink: var(--blush-ink); }
.btn-outline-secondary:has(i[class*="bi-"]) {
  background: var(--t-bg, #fff);
  color: var(--t-ink, var(--text-2));
  border-color: var(--t-bd, var(--border-2));
}
.btn-outline-secondary:has(i[class*="bi-"]):hover {
  background: color-mix(in srgb, var(--t-bg, #f4f6fa) 50%, var(--t-bd, #e6eaf3));
  color: var(--t-ink, var(--text));
  border-color: var(--t-bd, var(--border-2));
}
.btn-outline-danger { --bs-btn-color: var(--blush-ink); --bs-btn-border-color: var(--blush-bd); --bs-btn-bg: var(--blush-bg); --bs-btn-hover-bg: var(--blush-bd); --bs-btn-hover-color: var(--blush-ink); --bs-btn-hover-border-color: var(--blush-bd); --bs-btn-active-bg: var(--blush-bd); --bs-btn-active-color: var(--blush-ink); }
.btn-outline-primary { --bs-btn-bg: var(--sky-bg); --bs-btn-border-color: var(--sky-bd); --bs-btn-color: var(--sky-ink); --bs-btn-hover-bg: var(--sky-bd); --bs-btn-hover-color: var(--sky-ink); --bs-btn-hover-border-color: var(--sky-bd); }
.btn-danger { background: #e5536f; color: #fff; }
.btn-danger:hover { background: #d4405d; color: #fff; }
.btn-success { background: #2fa36b; color: #fff; }
.btn-success:hover { background: #258c5a; color: #fff; }
.btn-warning { background: var(--butter-bg); color: var(--butter-ink); border: 1px solid var(--butter-bd); }
.btn-info { background: var(--aqua-bg); color: var(--aqua-ink); border: 1px solid var(--aqua-bd); }
.dt-buttons .btn-secondary, .dt-buttons .dt-button { background: var(--sky-bg) !important; color: var(--sky-ink) !important; border: 1px solid var(--sky-bd) !important; }
.dt-buttons .btn-secondary:hover, .dt-buttons .dt-button:hover { background: var(--sky-bd) !important; color: var(--sky-ink) !important; }

/* ---------- Tabs & segmented controls: each tab owns a tone ---------- */
.avail-tab:nth-child(6n+1), .ui-tab:nth-child(6n+1), .app-subnav-link:nth-child(6n+1) { --t-bg: var(--sky-bg);    --t-ink: var(--sky-ink); }
.avail-tab:nth-child(6n+2), .ui-tab:nth-child(6n+2), .app-subnav-link:nth-child(6n+2) { --t-bg: var(--lav-bg);    --t-ink: var(--lav-ink); }
.avail-tab:nth-child(6n+3), .ui-tab:nth-child(6n+3), .app-subnav-link:nth-child(6n+3) { --t-bg: var(--mint-bg);   --t-ink: var(--mint-ink); }
.avail-tab:nth-child(6n+4), .ui-tab:nth-child(6n+4), .app-subnav-link:nth-child(6n+4) { --t-bg: var(--butter-bg); --t-ink: var(--butter-ink); }
.avail-tab:nth-child(6n+5), .ui-tab:nth-child(6n+5), .app-subnav-link:nth-child(6n+5) { --t-bg: var(--peach-bg);  --t-ink: var(--peach-ink); }
.avail-tab:nth-child(6n+6), .ui-tab:nth-child(6n+6), .app-subnav-link:nth-child(6n+6) { --t-bg: var(--blush-bg);  --t-ink: var(--blush-ink); }
.avail-tab:hover, .ui-tab:hover, .app-subnav-link:hover { background: color-mix(in srgb, var(--t-bg) 60%, #fff) !important; color: var(--t-ink) !important; }
.avail-tab.active, .ui-tab.is-active, .app-subnav-link.is-on {
  background: var(--t-bg) !important;
  color: var(--t-ink) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ink) 14%, transparent) !important;
}
.nav-pills .nav-link.active { background: var(--sky-bg); color: var(--sky-ink); }
.nav-tabs .nav-link.active { color: var(--sky-ink); border-bottom-color: var(--sky); }
.page-item.active .page-link, div.dt-container .dt-paging .dt-paging-button.current { background: var(--sky-bg) !important; color: var(--sky-ink) !important; box-shadow: inset 0 0 0 1px var(--sky-bd); }

/* ---------- Menus ---------- */
.dropdown-menu { border-color: #ebeef4; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sky-bg); color: var(--sky-ink); }
.dropdown-item.active, .dropdown-item:active { background: var(--sky-bd); color: var(--sky-ink); }
.dropdown-item > i { color: var(--t, var(--sky)); margin-right: 6px; }
.dropdown-menu > li:nth-child(6n+2) .dropdown-item, .dropdown-menu > .dropdown-item:nth-child(6n+2) { --t: var(--lav); }
.dropdown-menu > li:nth-child(6n+3) .dropdown-item, .dropdown-menu > .dropdown-item:nth-child(6n+3) { --t: var(--mint); }
.dropdown-menu > li:nth-child(6n+4) .dropdown-item, .dropdown-menu > .dropdown-item:nth-child(6n+4) { --t: var(--butter); }
.dropdown-menu > li:nth-child(6n+5) .dropdown-item, .dropdown-menu > .dropdown-item:nth-child(6n+5) { --t: var(--peach); }
.dropdown-menu > li:nth-child(6n+6) .dropdown-item, .dropdown-menu > .dropdown-item:nth-child(6n+6) { --t: var(--blush); }
.dropdown-item.text-danger:hover { background: var(--blush-bg); color: var(--blush-ink) !important; }

/* ---------- Badges, alerts, tables in the same family ---------- */
.ui-badge-green  { background: var(--mint-bg);   color: var(--mint-ink); }
.ui-badge-blue   { background: var(--sky-bg);    color: var(--sky-ink); }
.ui-badge-amber  { background: var(--butter-bg); color: var(--butter-ink); }
.ui-badge-violet { background: var(--lav-bg);    color: var(--lav-ink); }
.ui-badge-teal   { background: var(--aqua-bg);   color: var(--aqua-ink); }
.ui-badge-rose   { background: var(--blush-bg);  color: var(--blush-ink); }
.ui-ic-blue   { color: var(--sky-ink);    background: var(--sky-bg); }
.ui-ic-violet { color: var(--lav-ink);    background: var(--lav-bg); }
.ui-ic-teal   { color: var(--aqua-ink);   background: var(--aqua-bg); }
.ui-ic-amber  { color: var(--butter-ink); background: var(--butter-bg); }
.ui-ic-green  { color: var(--mint-ink);   background: var(--mint-bg); }
.ui-ic-rose   { color: var(--blush-ink);  background: var(--blush-bg); }
.alert { border-left-width: 0; box-shadow: none; border: 1px solid transparent; }
.alert-success { background: var(--mint-bg);   color: var(--mint-ink);   border-color: var(--mint-bd); }
.alert-danger  { background: var(--blush-bg);  color: var(--blush-ink);  border-color: var(--blush-bd); }
.alert-warning { background: var(--butter-bg); color: var(--butter-ink); border-color: var(--butter-bd); }
.alert-info    { background: var(--sky-bg);    color: var(--sky-ink);    border-color: var(--sky-bd); }
.ui-banner-violet { background: var(--lav-bg); color: var(--lav-ink); border-color: var(--lav-bd); }
.ui-banner-blue   { background: var(--sky-bg); color: var(--sky-ink); border-color: var(--sky-bd); }
.table-app thead th { background: #f8f9fc; }
.table-app tbody tr:hover { background: color-mix(in srgb, var(--sky-bg) 70%, #fff); }
.table-app tbody td a:not(.btn):not(.status-pill) { font-weight: 600; }
.sys-toast { border-left-color: var(--lav) !important; }
.sys-toast strong { color: var(--lav-ink) !important; }
.empty-state i, .ui-empty > i { color: var(--lav-ink); background: var(--lav-bg); }
.form-check-input:checked { background-color: var(--sky-ink); border-color: var(--sky-ink); }
.form-switch .form-check-input:checked { background-color: var(--mint); border-color: var(--mint); }

/* ---------- Technician home: pastel hero, cards and chart ---------- */
.ui-hero {
  color: var(--text);
  background:
    radial-gradient(420px 240px at 100% 0%, var(--butter-bg), transparent 70%),
    radial-gradient(460px 260px at 0% 100%, var(--mint-bg), transparent 70%),
    var(--lav-bg);
  border: 1px solid var(--lav-bd);
  box-shadow: none;
}
.ui-hero::after { display: none; }
.ui-hero-kicker { color: var(--lav-ink); opacity: 1; }
.ui-hero-title { color: var(--text); }
.ui-hero-copy { color: var(--text-2); opacity: 1; }
.ui-hero .btn-light { background: #fff; color: var(--lav-ink); border: 1px solid var(--lav-bd); }
.ui-hero .btn-light:hover { background: #fff; color: var(--lav-ink); box-shadow: 0 6px 16px -10px var(--lav); }
.ui-hero .btn-outline-light { color: var(--lav-ink); border-color: var(--lav-bd); background: transparent; }
.ui-hero .btn-outline-light:hover { background: rgba(255, 255, 255, .7); color: var(--lav-ink); }
.ui-hero-balance { background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .9); color: var(--text); }
.ui-hero-balance span, .ui-hero-balance small { color: var(--text-2); opacity: 1; }
.ui-hero-balance strong { color: var(--text); }
.ui-bar i { background: var(--lav); box-shadow: none; opacity: .75; }
.ui-bar:nth-child(3n+2) i { background: var(--aqua); box-shadow: none; }
.ui-bar:nth-child(3n) i { background: var(--butter); box-shadow: none; }
.ui-bar:hover i { opacity: 1; filter: none; }
.ui-paycard, .ui-paycard-blue { --t-bg: var(--sky-bg); --t-bd: var(--sky-bd); --t-ink: var(--sky-ink); }
.ui-paycard-violet { --t-bg: var(--lav-bg);    --t-bd: var(--lav-bd);    --t-ink: var(--lav-ink); }
.ui-paycard-amber  { --t-bg: var(--butter-bg); --t-bd: var(--butter-bd); --t-ink: var(--butter-ink); }
.ui-paycard-teal   { --t-bg: var(--aqua-bg);   --t-bd: var(--aqua-bd);   --t-ink: var(--aqua-ink); }
.ui-paycard {
  color: var(--t-ink);
  background: radial-gradient(220px 140px at 110% -10%, rgba(255, 255, 255, .85), transparent 65%), var(--t-bg);
  border: 1px solid var(--t-bd);
  box-shadow: none;
}
.ui-paycard .ui-badge-light { background: #fff; color: var(--t-ink); border: 1px solid var(--t-bd); }
.ui-quick a:nth-child(4n+1):hover { background: var(--mint-bg);   border-color: var(--mint-bd); }
.ui-quick a:nth-child(4n+2):hover { background: var(--sky-bg);    border-color: var(--sky-bd); }
.ui-quick a:nth-child(4n+3):hover { background: var(--lav-bg);    border-color: var(--lav-bd); }
.ui-quick a:nth-child(4n+4):hover { background: var(--butter-bg); border-color: var(--butter-bd); }
.ui-quick a:hover { box-shadow: none; }
.ui-doc:hover { box-shadow: 0 10px 24px -18px rgba(30, 41, 90, .35); }
.ui-choice input:checked + span { border-color: var(--lav); background: var(--lav-bg); box-shadow: none; }
/* links inside chat messages stay visibly underlined so they read as links */
.lcs-msg-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.nav-group-toggle { justify-content: flex-start; }
.nav-group-toggle > i { margin-left: auto; }

/* =====================================================================
   Round 3 — brand block, topbar actions, account menu, tech hub
   ===================================================================== */

/* Sidebar brand block sits on a soft lavender → sky wash */
.side-brand {
  background: linear-gradient(135deg, var(--lav-bg), var(--sky-bg));
  border: 1px solid var(--lav-bd);
  border-radius: 14px;
  padding: 12px 12px;
  margin: 0 0 12px;
}
.side-brand small { color: var(--lav-ink); }

/* Sign out: a clear blush button instead of a faint icon */
.side-user .side-signout,
.side-user .btn-outline-light.side-signout {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  padding: 0;
  border-radius: 10px;
  background: var(--blush-bg);
  color: var(--blush-ink);
  border: 1px solid var(--blush-bd) !important;
  font-size: 16px;
}
.side-user .side-signout:hover { background: var(--blush-bd); color: var(--blush-ink); }

/* Topbar quick tools wear their own pastel */
.topbar-actions .tech-avail-btn { background: var(--mint-bg); color: var(--mint-ink); border-color: var(--mint-bd); }
.topbar-actions .tech-avail-btn:hover { background: var(--mint-bd); color: var(--mint-ink); border-color: var(--mint-bd); }
.topbar-actions .trip-fee-btn { background: var(--peach-bg); color: var(--peach-ink); border-color: var(--peach-bd); }
.topbar-actions .trip-fee-btn:hover { background: var(--peach-bd); color: var(--peach-ink); border-color: var(--peach-bd); }
.topbar-actions .rtcheck-btn { background: var(--lav-bg); color: var(--lav-ink); border-color: var(--lav-bd); }
.topbar-actions .rtcheck-btn:hover { background: var(--lav-bd); color: var(--lav-ink); border-color: var(--lav-bd); }
.topbar-actions .tech-avail-btn, .topbar-actions .trip-fee-btn, .topbar-actions .rtcheck-btn { box-shadow: none; }

/* Dashboard Eastern Time clock, sits before Tech availability */
.topbar-actions .et-clock {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--mint-bg); border: 1px solid var(--mint-bd);
  color: #15803d; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.topbar-actions .et-clock-tz { font-size: .75em; font-weight: 700; letter-spacing: .04em; opacity: .8; }

/* Avatar → account menu */
button.topbar-me { border: 0; padding: 0; cursor: pointer; }
.topbar-me[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--sky-bd); }
.me-menu { min-width: 250px; padding: 6px; }
.me-menu-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; margin: -6px -6px 6px; border-bottom: 1px solid var(--border); background: var(--sky-bg); border-radius: 12px 12px 0 0; }
.me-menu-head .avatar, .me-menu-head .avatar-img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; }
.me-menu-head strong { display: block; font-size: 13.5px; color: var(--text); }
.me-menu-head small { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-menu .dropdown-item { display: flex; align-items: center; gap: 9px; }
.me-menu .dropdown-item > i { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; margin: 0; background: var(--t-bg); color: var(--t-ink); }
.me-menu .dropdown-item:hover { background: var(--t-bg); color: var(--t-ink); }
.me-menu form { margin: 0; }
.me-menu .me-menu-signout { color: var(--blush-ink); font-weight: 600; }
.me-menu .me-menu-signout > i { background: var(--blush-bg); color: var(--blush-ink); }
.me-menu .me-menu-signout:hover { background: var(--blush-bg); color: var(--blush-ink); }
@media (max-width: 768px) { .topbar-me { display: inline-grid !important; width: 36px; height: 36px; } }

/* Public sign-in: logo without the white tile */
.auth-brand img { background: transparent; padding: 0; border-radius: 0; }

/* Sidebar counts */
.nav-link-app { position: relative; }
.nav-count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--t-bg, var(--sky-bg)); color: var(--t-ink, var(--sky-ink)); border: 1px solid color-mix(in srgb, var(--t-ink, #1f5aa6) 18%, transparent); }

/* ---------- Tech hub components ---------- */
.tech-joblist { display: flex; flex-direction: column; gap: 10px; }
.tech-job { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.tech-job:hover { border-color: var(--sky-bd); background: #fcfdff; }
.tech-job.is-today { background: var(--sky-bg); border-color: var(--sky-bd); }
.tech-job-date { flex: 0 0 56px; text-align: center; border-radius: 12px; background: var(--lav-bg); color: var(--lav-ink); padding: 6px 4px; line-height: 1.1; align-self: flex-start; }
.tech-job.is-today .tech-job-date { background: #fff; color: var(--sky-ink); }
.tech-job-date span, .tech-job-date small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tech-job-date strong { display: block; font-size: 1.35rem; font-weight: 800; }
.tech-job-main { min-width: 0; flex: 1; }
.tech-job-client { font-weight: 650; margin-top: 3px; }
.tech-job-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.tech-job-meta a { color: var(--sky-ink); }
.tech-job-notes { margin-top: 8px; font-size: 12.5px; background: var(--butter-bg); color: var(--butter-ink); border-radius: 10px; padding: 8px 10px; }
.tech-todo { display: flex; flex-direction: column; gap: 8px; }
.tech-todo a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--t-bg); color: var(--t-ink); border: 1px solid transparent; font-weight: 600; font-size: 13.5px; transition: border-color .15s, transform .15s; }
.tech-todo a:hover { border-color: color-mix(in srgb, var(--t-ink) 20%, transparent); transform: translateX(2px); color: var(--t-ink); }
.tech-todo a > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #fff; font-size: 16px; }
.tech-todo a strong { margin-left: auto; font-size: 1.15rem; }
.tech-agenda { display: flex; flex-direction: column; }
.tech-agenda-day { display: flex; gap: 14px; padding: 9px 4px; border-bottom: 1px solid #f0f2f7; }
.tech-agenda-day:last-child { border-bottom: 0; }
.tech-agenda-day.is-today { background: var(--sky-bg); border-radius: 10px; padding-left: 8px; }
.tech-agenda-day.is-off { background: var(--blush-bg); border-radius: 10px; padding-left: 8px; }
.tech-agenda-date { flex: 0 0 64px; line-height: 1.15; }
.tech-agenda-date strong { display: block; font-size: 13px; }
.tech-agenda-date span { font-size: 12px; color: var(--text-3); }
.tech-agenda-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.tech-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.3px; background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-bd); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-week > div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 9px; font-size: 13px; }
.tech-week > div:nth-child(odd) { background: #f8f9fc; }
.tech-week > div.is-today { background: var(--sky-bg); color: var(--sky-ink); font-weight: 650; }
.tech-week b { font-weight: 650; color: var(--mint-ink); }
.tech-week b.is-off { color: var(--text-3); font-weight: 500; }
.tech-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f2f7; font-size: 13px; }
.tech-line:last-child { border-bottom: 0; }
.tech-line > i { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: var(--lav-bg); color: var(--lav-ink); }
.tech-line strong { display: block; font-weight: 650; }
.tech-line small { display: block; color: var(--text-2); white-space: pre-wrap; }
.tech-task.is-closed { opacity: .75; }
.tech-progress { height: 10px; border-radius: 99px; background: #eef1f6; overflow: hidden; margin-top: 12px; }
.tech-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--aqua)); }
.tech-progress-num { font-size: 1.6rem; font-weight: 800; color: var(--mint-ink); }
.tech-meter { display: grid; grid-template-columns: 170px 1fr 34px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.tech-meter > div { height: 8px; border-radius: 99px; background: #f0f2f7; overflow: hidden; }
.tech-meter > div i { display: block; height: 100%; border-radius: 99px; background: currentColor; }
.tech-meter b { text-align: right; }
.tech-tickets { display: flex; flex-direction: column; gap: 8px; }
.tech-ticket-row { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); transition: border-color .15s, background .15s; }
.tech-ticket-row:hover { border-color: var(--lav-bd); background: var(--lav-bg); color: var(--text); }
.tech-ticket-row > i { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; font-size: 17px; }
.tech-ticket-row > div { min-width: 0; flex: 1; }
.tech-ticket-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-ticket-row small { color: var(--text-2); }
.tech-thread { display: flex; flex-direction: column; gap: 10px; }
.tech-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.6px; }
.tech-msg.is-tech { background: var(--sky-bg); border: 1px solid var(--sky-bd); align-self: flex-start; }
.tech-msg.is-staff { background: var(--lav-bg); border: 1px solid var(--lav-bd); align-self: flex-end; }
.tech-msg-head { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 12.5px; }
.tech-msg-head small { color: var(--text-3); }
.tech-pick { max-height: 220px; overflow: auto; border: 1px solid var(--border-2); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tech-pick label { display: flex; gap: 8px; align-items: center; }
.tech-review .btn { padding: 2px 7px; }
.tech-sync-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1080; border: 1px solid var(--mint-bd); background: var(--mint-bg); color: var(--mint-ink); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 12px 28px -16px rgba(30, 41, 90, .35); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.tech-sync-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 576px) { .tech-meter { grid-template-columns: 120px 1fr 28px; } .tech-msg { max-width: 100%; } }
.topbar-actions .btn.tech-avail-btn { background: var(--mint-bg); color: var(--mint-ink); border-color: var(--mint-bd); }
.topbar-actions .btn.tech-avail-btn:hover { background: var(--mint-bd); color: var(--mint-ink); }
.topbar-actions .btn.trip-fee-btn { background: var(--peach-bg); color: var(--peach-ink); border-color: var(--peach-bd); }
.topbar-actions .btn.trip-fee-btn:hover { background: var(--peach-bd); color: var(--peach-ink); }
.topbar-actions .btn.rtcheck-btn { background: var(--lav-bg); color: var(--lav-ink); border-color: var(--lav-bd); }
.topbar-actions .btn.rtcheck-btn:hover { background: var(--lav-bd); color: var(--lav-ink); }
.tech-review { flex-wrap: wrap; justify-content: flex-end; max-width: 230px; }
.tech-review .form-control { width: 100% !important; }
td.text-end > form.d-inline { margin-left: 4px; }

/* =====================================================================
   Round 4 — pastel tables
   Each card carries a table tone (--c-*): it follows the column the card
   sits in, and full-width cards default to sky. Tables then wear it in the
   header, the zebra rows, the hover and the work-order chips.
   ===================================================================== */
.content { --c-bg: var(--sky-bg); --c-bd: var(--sky-bd); --c-ink: var(--sky-ink); --c: var(--sky); }
.row > [class*="col"]:nth-child(5n+1) { --c-bg: var(--sky-bg);    --c-bd: var(--sky-bd);    --c-ink: var(--sky-ink);    --c: var(--sky); }
.row > [class*="col"]:nth-child(5n+2) { --c-bg: var(--lav-bg);    --c-bd: var(--lav-bd);    --c-ink: var(--lav-ink);    --c: var(--lav); }
.row > [class*="col"]:nth-child(5n+3) { --c-bg: var(--mint-bg);   --c-bd: var(--mint-bd);   --c-ink: var(--mint-ink);   --c: var(--mint); }
.row > [class*="col"]:nth-child(5n+4) { --c-bg: var(--butter-bg); --c-bd: var(--butter-bd); --c-ink: var(--butter-ink); --c: var(--butter); }
.row > [class*="col"]:nth-child(5n+5) { --c-bg: var(--blush-bg);  --c-bd: var(--blush-bd);  --c-ink: var(--blush-ink);  --c: var(--blush); }
/* the dashboard's second full-width card (Open tasks) goes mint */
.content > .row + .card-soft { --c-bg: var(--mint-bg); --c-bd: var(--mint-bd); --c-ink: var(--mint-ink); --c: var(--mint); --t: var(--mint); }
.card-soft.tone-sky, .card-soft.tone-lav, .card-soft.tone-mint, .card-soft.tone-butter, .card-soft.tone-blush, .card-soft.tone-peach, .card-soft.tone-aqua {
  --c-bg: var(--t-bg); --c-bd: var(--t-bd); --c-ink: var(--t-ink); --c: var(--t);
}

.card-soft:has(> .table-wrap) { overflow: hidden; }
.card-soft > .table-wrap:last-child, .card-soft > .table-wrap:last-child .table-app { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.table-app thead th {
  background: var(--c-bg);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-bd);
  border-top: 1px solid var(--c-bd);
  font-size: 11px;
  letter-spacing: .07em;
}
.table-app thead th:first-child { padding-left: 22px; }
.table-app tbody td:first-child { padding-left: 22px; }
.table-app thead th a { color: var(--c-ink); }
.table-app thead th a:hover { color: var(--text); }
.table-app tbody td { border-bottom: 1px solid color-mix(in srgb, var(--c-bd) 45%, #eef1f6); }
.table-app tbody tr:nth-child(even) { background: color-mix(in srgb, var(--c-bg) 38%, #fff); }
.table-app tbody tr:hover { background: color-mix(in srgb, var(--c-bg) 85%, #fff); }
.table-app tbody tr:last-child td { border-bottom: 0; }
.table-app tbody tr { box-shadow: inset 3px 0 0 transparent; transition: background .12s ease, box-shadow .12s ease; }
.table-app tbody tr:hover { box-shadow: inset 3px 0 0 var(--c); }
.table-app tfoot th { background: var(--c-bg); color: var(--c-ink); border-top: 1px solid var(--c-bd); }
.table-app tr.is-editing, .table-app tr.is-editing:hover { background: var(--butter-bg); box-shadow: inset 3px 0 0 var(--butter); }

/* cells */
.table-app .wo-num,
.table-app a.mono:not(.btn) {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--c-bd);
  color: var(--c-ink);
  font-weight: 650;
  font-size: 12.8px;
  line-height: 1.5;
}
.table-app .wo-num:hover, .table-app a.mono:not(.btn):hover { background: var(--c-bg); color: var(--c-ink); text-decoration: none; }
.sched-date { color: var(--peach-ink); font-weight: 650; }
.sched-time { color: var(--mint-ink); }
div.sched-time { display: inline-block; margin-top: 3px; padding: 0 7px; border-radius: 6px; background: var(--mint-bg); font-size: 11.5px; line-height: 1.6; }
.table-app td .text-secondary { color: var(--text-3) !important; }
.table-app td > .status-pill, .table-app td > .ui-badge { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }
.tech-name { border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }

/* empty table row */
.table-app td[colspan].text-center { color: var(--text-3); background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--c-bg) 45%, transparent) 10px 20px); padding: 28px 14px !important; }

/* card header links ("View day", "View all", "Open tech desk") become soft pills */
.card-soft > .d-flex > a:last-child:not(.btn),
.card-soft > div[class*="px-"] > a:last-child:not(.btn) {
  font-size: 12.5px;
  font-weight: 650;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--c-bg, var(--sky-bg));
  color: var(--c-ink, var(--sky-ink));
  border: 1px solid var(--c-bd, var(--sky-bd));
}
.card-soft > .d-flex > a:last-child:not(.btn):hover,
.card-soft > div[class*="px-"] > a:last-child:not(.btn):hover { background: var(--c-bd, var(--sky-bd)); text-decoration: none; }
.card-soft > .d-flex > a:last-child:not(.btn)::after,
.card-soft > div[class*="px-"] > a:last-child:not(.btn)::after { content: " →"; }

/* "Load more" strip under the dashboard table */
.dash-today-more { background: color-mix(in srgb, var(--c-bg) 50%, #fff); border-top: 1px solid var(--c-bd); }

/* Dashboard side cards: online users + daily status bars */
.live-user { border-radius: 10px; padding-left: 6px; padding-right: 6px; transition: background .12s; }
.live-user:hover { background: var(--c-bg); }
.bar-row { padding: 4px 0; }
.bar-track { height: 10px; background: color-mix(in srgb, var(--c-bg) 70%, #eef1f6); }
.bar-fill { filter: saturate(.7) brightness(1.18); }

/* DataTables chrome picks up the same tone */
div.dt-container .dt-search input:focus { border-color: var(--c) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent) !important; }
div.dt-container .dt-paging .dt-paging-button.current { background: var(--c-bg) !important; color: var(--c-ink) !important; box-shadow: inset 0 0 0 1px var(--c-bd); }
.table-app .wo-num, .table-app a.mono:not(.btn), .table-app .sched-date, .table-app .sched-time, .table-app .status-pill, .table-app .tech-name { white-space: nowrap; }

/* =====================================================================
   Round 5 — type-to-search dropdowns + soft-touch buttons
   ===================================================================== */
/* searchable selects carry a tiny magnifier next to the chevron */
select.form-select.ss-select {
  background-image:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a93ab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='6.5' cy='6.5' r='4.5' fill='none' stroke='%23a5adc2' stroke-width='1.6'/%3e%3cpath d='m10 10 3.5 3.5' stroke='%23a5adc2' stroke-width='1.6' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat, no-repeat;
  background-position: right .75rem center, right 2.1rem center;
  background-size: 14px 10px, 12px 12px;
  padding-right: 3.2rem;
}
select.ss-open, input.ss-suggest.ss-open { border-color: var(--sky) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 18%, transparent) !important; }

.ss-panel {
  position: fixed;
  z-index: 2000;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(30, 41, 90, .35), 0 2px 6px rgba(16, 24, 40, .06);
  overflow: hidden;
  font-size: 13.8px;
  transform-origin: top center;
}
.ss-panel.is-on { display: flex; animation: ssIn .14s ease-out; }
.ss-panel.is-up { transform-origin: bottom center; }
@keyframes ssIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.ss-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--sky-bg); border-bottom: 1px solid var(--sky-bd); }
.ss-search[hidden] { display: none; }
.ss-search i { color: var(--sky-ink); }
.ss-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 3px 0; }
.ss-search input::placeholder { color: #93a0bb; }
.ss-count { font-size: 11px; font-weight: 650; color: var(--sky-ink); white-space: nowrap; opacity: .8; }
.ss-list { overflow-y: auto; padding: 5px; min-height: 0; flex: 1; overscroll-behavior: contain; }
.ss-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px; cursor: pointer; color: var(--text); line-height: 1.35; }
.ss-opt.is-active { background: var(--sky-bg); color: var(--sky-ink); }
.ss-opt.is-selected { font-weight: 650; }
.ss-opt.is-selected i { color: var(--mint-ink); }
.ss-opt.is-empty { color: var(--text-3); }
.ss-opt.is-disabled { opacity: .45; cursor: default; }
.ss-opt mark { background: var(--butter-bg); color: var(--butter-ink); padding: 0 1px; border-radius: 3px; box-shadow: inset 0 -1px 0 var(--butter-bd); }
.ss-group { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--lav-ink); }
.ss-none { padding: 16px 12px; color: var(--text-3); text-align: center; font-size: 13px; }
.ss-panel.is-suggest .ss-list { padding: 4px; }

/* ---------- soft-touch buttons ---------- */
.btn {
  transition: transform .14s cubic-bezier(.2, .8, .3, 1), box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:not(:disabled):not(.disabled):not(.btn-link):not(.btn-close):hover { transform: translateY(-1px); }
.btn:not(:disabled):not(.disabled):not(.btn-link):not(.btn-close):active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.btn-group > .btn:hover, .btn-group > .btn:active { transform: none !important; }
.btn-primary, .btn-gold {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 24, 40, .12) !important;
}
.btn-primary:hover, .btn-gold:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 18px -10px rgba(47, 102, 224, .75) !important;
}
.btn-navy { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-navy:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px -10px rgba(0, 0, 0, .5); }
.btn-outline-secondary:hover, .btn-soft:hover, .btn-outline-danger:hover, .btn-outline-primary:hover,
.btn[class*="tone-"]:hover, .topbar-actions .btn:hover {
  box-shadow: 0 6px 14px -10px rgba(30, 41, 90, .45);
}
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--sky) 70%, transparent) !important; }
.touch-layer { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.touch-ink {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .16;
  transform: scale(0);
  animation: touchInk .55s ease-out forwards;
  pointer-events: none;
}
.btn-primary .touch-ink, .btn-gold .touch-ink, .btn-navy .touch-ink, .btn-danger .touch-ink, .btn-success .touch-ink { background: #fff; opacity: .28; }
@keyframes touchInk { to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none !important; }
  .ss-panel.is-on { animation: none; }
}

/* =====================================================================
   Round 6 — Company map, Technician directory, Technician profile
   ===================================================================== */
/* ---------- company map ---------- */
.cmap { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; height: calc(100vh - 150px); min-height: 560px; }
.cmap.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
.cmap.is-collapsed .cmap-panel { opacity: 0; pointer-events: none; padding: 0; border: 0; }
.cmap-panel { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-1); transition: opacity .2s; min-width: 0; }
.cmap-panel-head { display: flex; justify-content: space-between; align-items: flex-start; }
.cmap-panel-head h3 { font-size: 1.2rem; font-weight: 800; margin: 2px 0 0; letter-spacing: -.02em; }
.cmap-kicker { margin: 0; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--lav-ink); }
.cmap-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmap-kpis button { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 12px; border-radius: 13px; border: 1.5px solid transparent; background: #f6f7fa; color: var(--text-3); text-align: left; transition: all .16s; position: relative; }
.cmap-kpis button strong { font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: var(--text-2); }
.cmap-kpis button span { font-size: 12px; font-weight: 650; }
.cmap-kpis button::after { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; right: 10px; top: 9px; font-size: 14px; opacity: 0; transition: opacity .15s; }
.cmap-kpis button.is-on { background: var(--t-bg); border-color: var(--t-bd); color: var(--t-ink); }
.cmap-kpis button.is-on strong { color: var(--t-ink); }
.cmap-kpis button.is-on::after { opacity: 1; }
.cmap-kpis button:hover { transform: translateY(-1px); }
.cmap-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 12px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s; }
.cmap-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 16%, transparent); background: #fff; }
.cmap-search i { color: var(--text-3); }
.cmap-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; }
.cmap-toggles { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.cmap-toggles label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cmap-toggles .form-check-input { margin: 0; }
.cmap-section-title { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 8px; }
.cmap-states { display: flex; flex-direction: column; gap: 2px; }
.cmap-states button { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; color: var(--text); text-align: left; }
.cmap-states button:hover { background: var(--mint-bg); color: var(--mint-ink); }
.cmap-states button b { min-width: 26px; text-align: center; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--mint-bg); color: var(--mint-ink); }
.cmap-results { display: flex; flex-direction: column; gap: 2px; }
.cmap-results button, .cmap-nearest a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--text); width: 100%; }
.cmap-results button:hover, .cmap-nearest a:hover { background: var(--sky-bg); color: var(--text); }
.cmap-res-av { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-bd); }
.cmap-res-txt { flex: 1; min-width: 0; line-height: 1.2; }
.cmap-res-txt strong { display: block; font-size: 13.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-res-txt small { color: var(--text-3); font-size: 12px; }
.cmap-none { color: var(--text-3); font-size: 13px; margin: 6px 4px; }
.cmap-hint { margin: auto 0 0; font-size: 12px; color: var(--text-3); background: #f8f9fc; border-radius: 10px; padding: 9px 11px; }
.cmap-stage { position: relative; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-1); background: #eaf2fb; }
.cmap-map { position: absolute; inset: 0; background: #eaf2fb; }
.cmap-map .cmap-tiles, .tprof-map .cmap-tiles { filter: sepia(.35) hue-rotate(172deg) saturate(1.7) brightness(1.05) contrast(.92); }
.cmap-map .cmap-labels { opacity: .8; }
.cmap-legend { position: absolute; left: 14px; top: 14px; z-index: 500; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 120px); padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 18px -12px rgba(30, 41, 90, .4); font-size: 12px; color: var(--text-2); font-weight: 600; }
.cmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmap-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: 0 0 auto; }
.cmap-dot.is-hq { background: var(--lav); border-radius: 3px; }
.cmap-dot.is-available { background: var(--mint); }
.cmap-dot.is-pending { background: var(--butter); }
.cmap-dot.is-terminated { background: var(--blush); }
.cmap-dot.is-contact { background: var(--sky); }
.cmap-dot.is-site { background: var(--peach-bg); box-shadow: 0 0 0 1.5px var(--peach); }
.cmap-tools { position: absolute; right: 14px; top: 14px; z-index: 500; display: flex; flex-direction: column; gap: 6px; }
.cmap-tools .btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: #fff; box-shadow: 0 6px 16px -10px rgba(30, 41, 90, .5); }
.cmap-nearest { position: absolute; right: 14px; bottom: 96px; z-index: 600; width: 300px; max-width: calc(100% - 28px); padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border: 1px solid var(--mint-bd); box-shadow: 0 18px 40px -18px rgba(30, 41, 90, .45); animation: ssIn .18s ease-out; }
.cmap-nearest-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 13px; color: var(--mint-ink); }
.cmap-nearest-head .btn-close { font-size: 10px; }
.cmap-nearest a b { font-size: 12.5px; color: var(--mint-ink); white-space: nowrap; }
.cmap-nearest-note { margin: 6px 4px 0; font-size: 11px; color: var(--text-3); }
.leaflet-container { font-family: var(--ui-font); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 16px -10px rgba(30, 41, 90, .5) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--text-2) !important; border-color: var(--border) !important; }
.leaflet-control-zoom a:hover { background: var(--sky-bg) !important; color: var(--sky-ink) !important; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .7) !important; border-radius: 8px 0 0 0; font-size: 10px; }
.leaflet-control-scale-line { border-color: var(--text-3); color: var(--text-2); background: rgba(255, 255, 255, .7); border-radius: 0 0 4px 4px; }

/* pins */
.cmap-pin-wrap { background: none; border: 0; }
.cmap-pin { position: relative; width: 34px; height: 42px; transition: transform .18s cubic-bezier(.2, .8, .3, 1.4); transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px rgba(30, 41, 90, .25)); }
.cmap-pin::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 26px; transform: translateX(-50%) rotate(45deg); border-radius: 50% 50% 4px 50%; background: #fff; bottom: 6px; }
.cmap-pin > span { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: -.02em; background: var(--t-bg); color: var(--t-ink); box-shadow: inset 0 0 0 2.5px var(--ring, var(--mint)); overflow: hidden; margin-top: 3px; }
.cmap-pin > span img { width: 100%; height: 100%; object-fit: cover; }
.cmap-pin.is-available { --ring: var(--mint); }
.cmap-pin.is-pending { --ring: var(--butter); }
.cmap-pin.is-terminated { --ring: var(--blush); opacity: .8; }
.cmap-pin.is-contact { --ring: var(--sky); }
.cmap-pin.is-big { width: 46px; height: 54px; }
.cmap-pin.is-big::before { width: 36px; height: 36px; bottom: 8px; }
.cmap-pin.is-big > span { left: 4px; width: 38px; height: 38px; font-size: 14px; }
.leaflet-marker-icon:hover .cmap-pin, .leaflet-marker-icon.is-hover .cmap-pin, .leaflet-marker-icon:focus .cmap-pin { transform: scale(1.22) translateY(-2px); }
.leaflet-marker-icon.is-flash .cmap-pin { animation: pinFlash 1.1s ease-in-out 2; }
@keyframes pinFlash { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35) translateY(-4px); } }
.cmap-hq { position: relative; width: 54px; height: 54px; display: grid; place-items: center; }
.cmap-hq > span { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; color: #fff; background: linear-gradient(135deg, #9077ee, #5b9be6); box-shadow: 0 0 0 3px #fff, 0 10px 22px -8px rgba(90, 63, 176, .7); transition: transform .2s; }
.leaflet-marker-icon:hover .cmap-hq > span { transform: scale(1.08) rotate(-4deg); }
.cmap-hq-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(144, 119, 238, .35); animation: hqPulse 2.4s ease-out infinite; }
@keyframes hqPulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.cmap-cluster { border-radius: 50%; display: grid; place-items: center; background: rgba(77, 187, 131, .22); transition: transform .15s; }
.cmap-cluster span { width: 74%; height: 74%; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mint-ink); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 2.5px var(--mint), 0 6px 14px -8px rgba(30, 41, 90, .5); }
.leaflet-marker-icon:hover .cmap-cluster { transform: scale(1.1); }
.cmap-probe { width: 22px; height: 22px; border-radius: 50%; background: rgba(29, 116, 73, .15); display: grid; place-items: center; animation: hqPulse 1.6s ease-out infinite; }
.cmap-probe i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 3px #fff; }
.cmap-route { stroke-dashoffset: 0; animation: routeDash 1.2s linear infinite; }
@keyframes routeDash { to { stroke-dashoffset: -26; } }
.cmap-site { transition: opacity .2s; }

/* hover card */
.leaflet-tooltip.cmap-tip { padding: 0; border: 0; background: transparent; box-shadow: none; }
.leaflet-tooltip.cmap-tip::before { display: none; }
.cmap-card { width: 260px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border: 1px solid var(--t-bd); box-shadow: 0 20px 44px -20px rgba(30, 41, 90, .55), 0 2px 6px rgba(16, 24, 40, .06); color: var(--text); white-space: normal; animation: ssIn .14s ease-out; }
.cmap-card.is-small { width: 230px; }
.cmap-card-head { display: flex; gap: 10px; align-items: center; }
.cmap-card-head strong { display: block; font-size: 14px; font-weight: 750; line-height: 1.2; }
.cmap-card-head small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.cmap-card-av { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--t-bg); color: var(--t-ink); overflow: hidden; }
.cmap-card-av img { width: 100%; height: 100%; object-fit: cover; }
.cmap-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cmap-card-tags b, .cmap-card-tags em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #f3f5f9; color: var(--text-2); }
.cmap-card-tags b.is-available { background: var(--mint-bg); color: var(--mint-ink); }
.cmap-card-tags b.is-pending { background: var(--butter-bg); color: var(--butter-ink); }
.cmap-card-tags b.is-terminated { background: var(--blush-bg); color: var(--blush-ink); }
.cmap-card-tags b.is-hq { background: var(--lav-bg); color: var(--lav-ink); }
.cmap-card-tags b.is-site { background: var(--peach-bg); color: var(--peach-ink); }
.cmap-card-addr { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.cmap-card-nums { display: flex; gap: 6px; margin-top: 10px; }
.cmap-card-nums div { flex: 1; text-align: center; padding: 6px 4px; border-radius: 10px; background: var(--t-bg); }
.cmap-card-nums strong { display: block; font-size: 15px; font-weight: 800; color: var(--t-ink); line-height: 1.1; }
.cmap-card-nums span { font-size: 10.5px; color: var(--text-2); font-weight: 600; }
.cmap-card-skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cmap-card-skills span { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: #f6f7fa; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmap-card-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-2); font-size: 11.5px; color: var(--t-ink); font-weight: 650; }
.leaflet-tooltip.cmap-tip-mini { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--sh-2); font-family: var(--ui-font); font-size: 12.5px; }
@media (max-width: 992px) {
  .cmap { grid-template-columns: 1fr; height: auto; }
  .cmap-panel { order: 2; }
  .cmap-stage { height: 68vh; min-height: 420px; }
  .cmap.is-collapsed { grid-template-columns: 1fr; }
  .cmap-legend { max-width: calc(100% - 70px); }
}

/* ---------- technician directory ---------- */
.tdir-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin-bottom: 10px; }
.tdir-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 10px; background: #fbfcfe; }
.tdir-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 16%, transparent); background: #fff; }
.tdir-search i { color: var(--text-3); }
.tdir-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; }
.tdir-bar .form-select { width: auto; flex: 0 1 220px; min-width: 160px; }
.tdir-seg, .tdir-view { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: #f3f5f9; }
.tdir-seg button, .tdir-view button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.tdir-seg button b { font-size: 11px; margin-left: 4px; color: var(--text-3); }
.tdir-seg button.is-on, .tdir-view button.is-on { background: #fff; color: var(--sky-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.tdir-count { font-size: 12.5px; color: var(--text-3); margin: 4px 2px 10px; }
.tdir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tdir-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-1); transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s, border-color .18s; overflow: hidden; }
.tdir-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 58px; background: linear-gradient(135deg, var(--t-bg), color-mix(in srgb, var(--t-bg) 30%, #fff)); }
.tdir-card > * { position: relative; }
.tdir-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(30, 41, 90, .5); border-color: var(--t-bd); }
.tdir-card[hidden] { display: none; }
.tdir-card-link { position: absolute !important; inset: 0; z-index: 1; border-radius: inherit; }
.tdir-card .tdir-actions, .tdir-card .tdir-actions a { position: relative; z-index: 2; }
.tdir-card-top { display: flex; gap: 12px; align-items: center; }
.tdir-card-top h4 { font-size: 15px; font-weight: 750; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdir-card-top p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdir-card-top > .min-w-0 { flex: 1; }
.tdir-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: #fff; color: var(--t-ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--t-bd), 0 8px 18px -12px rgba(30, 41, 90, .6); overflow: hidden; }
.tdir-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tdir-avatar.is-xl { width: 88px; height: 88px; flex-basis: 88px; border-radius: 26px; font-size: 30px; box-shadow: 0 0 0 4px #fff, 0 16px 30px -14px rgba(30, 41, 90, .55); }
.tdir-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tdir-meta span { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 7px; background: #f4f6fa; color: var(--text-2); }
.tdir-meta span.is-portal { background: var(--lav-bg); color: var(--lav-ink); }
.tdir-skills { display: flex; gap: 5px; overflow: hidden; }
.tdir-skills span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--t-bg, var(--sky-bg)); color: var(--t-ink, var(--sky-ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.tdir-skills span.is-more { background: #f3f5f9; color: var(--text-3); }
.tdir-skills.is-wrap { flex-wrap: wrap; }
.tdir-skills.is-wrap span { max-width: 100%; }
.tdir-skills.is-tools span { background: var(--butter-bg); color: var(--butter-ink); }
.tdir-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f2f7; }
.tdir-num strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.tdir-num span { font-size: 11px; color: var(--text-3); }
.tdir-actions { margin-left: auto; display: flex; gap: 5px; }
.tdir-actions .btn { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: var(--t-bg); color: var(--t-ink); border-color: var(--t-bd); }
.tdir-grid.is-list { grid-template-columns: 1fr; gap: 6px; }
.tdir-grid.is-list .tdir-card { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; gap: 14px; }
.tdir-grid.is-list .tdir-card::before { width: 5px; height: auto; inset: 0 auto 0 0; }
.tdir-grid.is-list .tdir-card-top { flex: 1 1 320px; min-width: 0; }
.tdir-grid.is-list .tdir-skills { display: none; }
.tdir-grid.is-list .tdir-foot { margin: 0; padding: 0; border: 0; }
.tdir-grid.is-list .tdir-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; font-size: 13px; }

/* ---------- technician profile ---------- */
.tprof-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 26px 26px 22px; margin-bottom: 18px; border-radius: 22px; border: 1px solid var(--t-bd);
  background: radial-gradient(420px 200px at 100% 0%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(380px 220px at 0% 120%, color-mix(in srgb, var(--t-bg) 40%, #fff), transparent 70%), var(--t-bg); }
.tprof-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .45); pointer-events: none; }
.tprof-hero > * { position: relative; z-index: 1; }
.tprof-hero-main { display: flex; gap: 18px; align-items: center; min-width: 0; }
.tprof-hero h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin: 0; }
.tprof-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; color: var(--t-ink); font-size: 13px; font-weight: 600; }
.tprof-sub span { display: inline-flex; gap: 5px; align-items: center; }
.tprof-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tprof-hero-actions .btn-light { background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .95); color: var(--t-ink); }
.tprof-hero-actions .btn-light:hover { background: #fff; color: var(--t-ink); }
.tprof-map { height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #eaf2fb; }

.tprof-checks { display: flex; flex-direction: column; gap: 6px; }
.tprof-checks > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.tprof-checks > div span { flex: 1; }
.tprof-checks > div b { font-size: 12px; }
.tprof-checks .is-ok { background: var(--mint-bg); color: var(--mint-ink); }
.tprof-checks .is-no { background: var(--blush-bg); color: var(--blush-ink); }
.tprof-checks .is-na { background: #f5f6f9; color: var(--text-3); }
.tprof-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tprof-week > div { text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid transparent; }
.tprof-week > div span { display: block; font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.tprof-week > div b { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tprof-week .is-on { background: var(--mint-bg); color: var(--mint-ink); }
.tprof-week .is-off { background: #f5f6f9; color: var(--text-3); }
.tprof-week .is-today { border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 15%, transparent); }
.tprof-bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.tprof-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.tprof-bar { position: relative; width: 100%; max-width: 30px; flex: 1; }
.tprof-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px 8px 3px 3px; }
.tprof-bar i.is-all { background: var(--lav-bg); box-shadow: inset 0 0 0 1px var(--lav-bd); }
.tprof-bar i.is-done { background: var(--lav); opacity: .8; }
.tprof-bars span { font-size: 11px; color: var(--text-3); }
.tprof-client { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.tprof-client span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tprof-client div { height: 8px; border-radius: 99px; background: #f0f2f7; overflow: hidden; }
.tprof-client div i { display: block; height: 100%; border-radius: 99px; background: var(--peach); }
.tprof-client b { text-align: right; }
@media (max-width: 576px) {
  .tprof-week { grid-template-columns: repeat(4, 1fr); }
  .tprof-hero { padding: 20px; }
  .tprof-hero-main { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Round 7 — retire the last legacy navy/gold blocks, page by page
   ===================================================================== */
/* Notifications dropdown: light, pastel */
.notify-panel { background: #fff !important; color: var(--text) !important; }
.notify-head { color: var(--text); font-weight: 750; letter-spacing: .06em; border-bottom: 1px solid var(--border); background: var(--sky-bg); }
.notify-switch { border-color: var(--border-2); color: var(--text-2); background: #fff; }
.notify-switch.is-on { background: var(--mint-bg); border-color: var(--mint-bd); color: var(--mint-ink); }
.notify-switch.is-off { background: var(--blush-bg); border-color: var(--blush-bd); color: var(--blush-ink); }
.notify-status { color: var(--text-3); }
.notify-mark-all { color: var(--sky-ink); }
.notify-mark-all:hover { color: var(--sky-ink); }
.notify-item { border-bottom: 1px solid #f0f2f7; }
.notify-item:hover { background: var(--sky-bg); }
.notify-item strong { color: var(--text); }
.notify-item span { color: var(--text-3); }
.notify-item .notify-action { color: var(--text-2); }
.notify-item:not(.is-read) { box-shadow: inset 3px 0 0 var(--sky); }
.notify-foot { color: var(--sky-ink) !important; border-top: 1px solid var(--border) !important; background: #fafbfe; font-weight: 600; }
.notify-list .text-secondary { color: var(--text-3) !important; }

/* Toasts + confirm dialog (legacy dark cards) */
.sys-toast-actor, .sys-toast span { color: var(--text-2) !important; }
.action-confirm-card { border: 0 !important; }

/* Availability grid */
.avail-grid thead th, .avail-grid thead th.sticky-fn, .avail-grid thead th.sticky, .avail-grid thead th.sticky-end {
  background: var(--sky-bg) !important; color: var(--sky-ink) !important; border-bottom: 1px solid var(--sky-bd); font-weight: 750;
}
.avail-grid td.sticky-fn, .avail-grid td.sticky { background: #f7f9fd; }
.avail-grid tbody tr:nth-child(even) td { background: #fafbfe; }
.avail-grid tbody tr:hover td { background: var(--sky-bg); }
.avail-grid td.day-col.is-open { background: var(--mint-bg) !important; color: var(--mint-ink); }
.avail-grid td.day-col.is-off { background: var(--blush-bg) !important; color: var(--blush-ink); }
.avail-grid td.day-col.is-off .avail-input { color: var(--blush-ink); }
.avail-grid tbody tr:hover td.day-col.is-off { background: var(--blush-bd) !important; }
.avail-grid td.day-col.is-oncall { background: var(--butter-bg) !important; }
.avail-grid tbody tr.is-unavailable td,
.avail-grid tbody tr.is-unavailable td.sticky,
.avail-grid tbody tr.is-unavailable td.sticky-fn,
.avail-grid tbody tr.is-unavailable td.sticky-end,
.avail-grid tbody tr.is-unavailable td.day-col,
.avail-grid tbody tr.is-unavailable td.day-col.is-open,
.avail-grid tbody tr.is-unavailable td.day-col.is-off,
.avail-grid tbody tr.is-unavailable td.day-col.is-oncall,
.avail-grid tbody tr.is-unavailable:hover td,
.avail-grid tbody tr.is-unavailable:hover td.day-col.is-off { background: #fff6d6 !important; }
.avail-grid tbody tr.is-unavailable td.sticky { box-shadow: inset 3px 0 0 var(--butter), 2px 0 0 #e2e7f0; }
.avail-grid td.sticky.has-notes, .avail-grid td.sticky.has-notes .avail-input { background: var(--lav-bg); }
.avail-grid th.sticky, .avail-grid td.sticky { box-shadow: 2px 0 0 #e2e7f0; }
.btn-avail-off { background: var(--butter-bg); border: 1px solid var(--butter-bd); color: var(--butter-ink); }
.btn-avail-off:hover { background: var(--butter-bd); color: var(--butter-ink); }
.avail-live-dot.is-on { background: var(--mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 25%, transparent); }
.avail-tip { background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: 0 18px 40px -18px rgba(30, 41, 90, .45); }
.avail-tip-kicker { color: var(--lav-ink); }
.avail-tip-edit { background: #fbfcfe; color: var(--text); border: 1px solid var(--border-2); }
.avail-tip-edit:focus { outline: 2px solid var(--sky); }
.avail-tip-copy { background: var(--sky-bg); color: var(--sky-ink); border: 1px solid var(--sky-bd); border-radius: 8px; }
.avail-tip-copy.is-copied { background: var(--mint-bg); color: var(--mint-ink); border-color: var(--mint-bd); }
.avail-add-form .modal-header { background: var(--lav-bg) !important; color: var(--text) !important; }
.avail-add-form .modal-header .btn-close { filter: none; }

/* Payroll schedule */
.pay-schedule { border-color: var(--border); box-shadow: var(--sh-1); }
.pay-schedule table { color: var(--text); }
.pay-schedule thead th { background: var(--sky-bg); color: var(--sky-ink); border-bottom: 1px solid var(--sky-bd); }
.pay-schedule tbody tr:nth-child(even) td { background: #fafbfe; }
.pay-schedule tbody tr.is-next td { background: var(--mint-bg) !important; color: var(--mint-ink); box-shadow: inset 0 1px 0 var(--mint-bd), inset 0 -1px 0 var(--mint-bd); }
.pay-schedule tbody tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--mint), inset 0 1px 0 var(--mint-bd), inset 0 -1px 0 var(--mint-bd); }
.pay-schedule tbody tr.is-upcoming td { color: var(--text); }
.pay-pill-past { background: #f1f3f8; color: var(--text-3); }
.pay-pill-next { background: var(--mint); color: #fff; box-shadow: 0 6px 14px -8px var(--mint); }
.pay-pill-upcoming { background: var(--butter-bg); color: var(--butter-ink); box-shadow: inset 0 0 0 1px var(--butter-bd); }
.payroll-next-row td { background: var(--mint-bg) !important; }
.audit-row:hover td { background: var(--sky-bg); }

/* Calendar */
.cal-cell.is-today .cal-cell-num { background: var(--sky); color: #fff; }
.cal-timeoff-bar { background: var(--blush-bg); color: var(--blush-ink); box-shadow: inset 3px 0 0 var(--blush), inset 0 0 0 1px var(--blush-bd); border-radius: 6px; font-weight: 650; }
.cal-timeoff-bar:hover { background: var(--blush-bd); color: var(--blush-ink); filter: none; }
.cal-timeoff-peek { background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: 0 18px 40px -18px rgba(30, 41, 90, .45); }
.cal-timeoff-peek-kicker { color: var(--blush-ink); }
.cal-timeoff-peek-range { color: var(--text-2); }
.cal-timeoff-peek-note { color: var(--text-2); }
[data-cal-day].is-drop-target { outline-color: var(--sky); background: var(--sky-bg); }

/* Scheduling board columns */
.sched-head { background: var(--sky-bg); color: var(--text); border-bottom: 1px solid var(--sky-bd); }
.sched-head .cal-week-dow { color: var(--sky-ink); }
.sched-head .cal-week-date { color: var(--text); }
.sched-head .cal-week-count { color: var(--text-3); }

/* New work order timestamp strip */
.timestamp-strip { background: var(--lav-bg); color: var(--lav-ink); border: 1px solid var(--lav-bd); }
.timestamp-strip span { color: var(--text); font-weight: 700; }

/* Public form headers */
.form-public-head { background: linear-gradient(135deg, var(--lav-bg), var(--sky-bg)) !important; color: var(--text) !important; border-bottom: 1px solid var(--lav-bd); }
.form-public-head h1, .form-public-head h2, .form-public-head .h3, .form-public-head p { color: var(--text) !important; }

/* Bars with status colours (dashboard daily status, tech stats load): pastel set */
.bar-fill { filter: none; --assigned: var(--sky); --upcoming: var(--aqua); --progress: var(--butter); --done: var(--mint); --hold: var(--lav); --cancel: var(--blush); --reassigned: var(--peach); --gold: var(--butter); }

/* Legacy subnav + dark "navy" buttons → soft ink */
.app-subnav-link.is-on { background: var(--sky-bg); color: var(--sky-ink); }
.btn-navy { background: #2a3142; }
.btn-navy:hover { background: #363e52; }
.mark { background: linear-gradient(135deg, #9077ee, #5b9be6) !important; color: #fff !important; }

/* Generic polish for every page */
.page-title-row { gap: 12px; }
.content > .card-soft, .content > form.card-soft, .content > .ui-card { animation: pageIn .28s ease-out both; }
.content > .row, .content > .stat-grid { animation: pageIn .28s ease-out both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .content > * { animation: none !important; } }
.form-control:disabled, .form-control[readonly] { background: #f6f7fa; color: var(--text-2); }
hr { border-color: var(--border); opacity: 1; }
.list-group-item { border-color: var(--border); }
.list-group-item.active { background: var(--sky-bg); color: var(--sky-ink); border-color: var(--sky-bd); }
.progress { background: #eef1f6; border-radius: 99px; }
.progress-bar { background: var(--sky); }
.accordion-button:not(.collapsed) { background: var(--sky-bg); color: var(--sky-ink); box-shadow: none; }
.accordion-item { border-color: var(--border); }
.table:not(.table-app) > thead > tr > th { background: var(--sky-bg); color: var(--sky-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom-color: var(--sky-bd); }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-striped-bg: #fafbfe; }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: var(--sky-bg); }
input[type="file"].form-control::file-selector-button { background: var(--sky-bg); color: var(--sky-ink); border-right: 1px solid var(--sky-bd); font-weight: 600; }
input[type="file"].form-control:hover:not(:disabled)::file-selector-button { background: var(--sky-bd); }
.form-control-color { border-radius: 10px; }
kbd { background: #f1f3f8; color: var(--text-2); border: 1px solid var(--border-2); box-shadow: inset 0 -1px 0 var(--border-2); }

/* Copy-to-clipboard chips (assets/ui-touch.js) */
.copy-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 12px; vertical-align: middle; opacity: .35; transition: opacity .15s, background .15s, color .15s; cursor: pointer; }
*:hover > .copy-chip, .copy-chip:focus-visible, tr:hover .copy-chip, .tech-line:hover .copy-chip { opacity: 1; }
.copy-chip:hover { background: var(--sky-bg); color: var(--sky-ink); border-color: var(--sky-bd); }
.copy-chip.is-copied { opacity: 1; background: var(--mint-bg); color: var(--mint-ink); border-color: var(--mint-bd); }
@media (hover: none) { .copy-chip { opacity: .8; } }
/* pay rate on profiles + directory */
.tprof-rate-chip { padding: 1px 9px; border-radius: 99px; background: rgba(255, 255, 255, .75); color: var(--mint-ink); }
.tprof-pay { background: linear-gradient(160deg, var(--mint-bg), #fff 60%); border-color: var(--mint-bd); }
.tprof-pay-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.tprof-pay-now strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--mint-ink); line-height: 1; }
.tprof-pay-now span { color: var(--text-2); font-weight: 600; }
.tprof-pay-now em { font-style: normal; margin-left: auto; }
.tprof-pay-hist { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--mint-bd); }
.tprof-pay-hist > div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 8px; border-radius: 9px; font-size: 13px; color: var(--text-2); }
.tprof-pay-hist > div b { color: var(--text); }
.tprof-pay-hist > div small { grid-column: 1 / -1; color: var(--text-3); font-size: 11.5px; }
.tprof-pay-hist > div.is-current { background: #fff; box-shadow: inset 0 0 0 1px var(--mint-bd); }
.tdir-meta span.is-rate { background: var(--mint-bg); color: var(--mint-ink); }

/* Sign-in brand lockup: corporate logo + name with a hairline divider */
.auth-brand { gap: 16px; margin-bottom: 44px; }
.auth-brand img { width: 56px; height: 56px; }
.auth-brand-text {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .22);
}
.auth-brand-text strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.auth-brand-text strong span { background: linear-gradient(90deg, #a5b4ff, #5eead4 60%, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand-text small {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(229, 233, 255, .66);
}
@media (max-width: 960px) { .auth-brand { margin-bottom: 22px; } .auth-brand img { width: 46px; height: 46px; } .auth-brand-text strong { font-size: 21px; } }

/* Sign-in hero: high-end animated IT backdrop
   (aurora drift + moving grid + scan line + live network canvas in auth-hero.js) */
.auth-hero {
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(124, 77, 255, .45), transparent 60%),
    radial-gradient(760px 520px at 100% 100%, rgba(18, 181, 166, .32), transparent 60%),
    linear-gradient(140deg, #0b1036 0%, #141d5e 45%, #22297f 100%);
  background-size: 160% 160%, 160% 160%, 100% 100%;
  animation: authAurora 26s ease-in-out infinite alternate;
}
@keyframes authAurora {
  0%   { background-position: 0% 0%, 100% 100%, 0 0; }
  50%  { background-position: 30% 20%, 70% 80%, 0 0; }
  100% { background-position: 10% 40%, 90% 60%, 0 0; }
}
.auth-hero::before {
  background-image:
    linear-gradient(rgba(165, 180, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 35% 45%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 35% 45%, #000 10%, transparent 78%);
  animation: authGrid 18s linear infinite;
}
@keyframes authGrid { to { background-position: 44px 44px, 44px 44px; } }
.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(5, 8, 30, .55), transparent 60%);
}
.auth-net { position: absolute; inset: 0; pointer-events: none; }
.auth-scan {
  position: absolute;
  left: 0; right: 0; top: -30%;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(94, 234, 212, .06) 70%, rgba(94, 234, 212, .22) 99%, transparent);
  display: none; /* scanning line removed */
}
@keyframes authScan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(440%); opacity: 0; } }
.auth-hero-glow i { opacity: .38; }
.auth-hero-glow i:nth-child(2) { opacity: .22; }
.auth-hero-glow i:nth-child(3) { opacity: .18; }
.auth-hero-inner { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .auth-hero, .auth-hero::before, .auth-scan { animation: none; }
  .auth-scan { display: none; }
}

/* Availability: name + FN ID are locked inline (edit through the Edit dialog). */
.avail-input.avail-locked { cursor: default; }
.avail-input.avail-locked:focus { outline: 1px solid var(--sky-bd, #d3e3f8); background: transparent; }

/* Technician schedule self-service (portal) + dispatch feed */
.tsched-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.tsched-day { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--sky-ink); font-weight: 650; }
.tsched-note { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--butter-bg); border: 1px solid var(--butter-bd); color: var(--butter-ink); }
.tsched-note small { display: block; font-weight: 650; opacity: .8; }
.tsched-note p { margin: 2px 0 0; color: #3a3320; font-size: 13px; white-space: pre-wrap; }
.tsched-list { display: flex; flex-direction: column; gap: 6px; }
.tsched-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; color: inherit; text-decoration: none; transition: background .15s; }
.tsched-row:hover { background: var(--sky-bg); border-color: var(--sky-bd); color: inherit; }
.tsched-row strong { display: block; font-size: 14px; }
.tsched-row small { color: #6b7280; font-size: 12px; }
.tsched-ic { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-bg); color: var(--mint-ink); border: 1px solid var(--mint-bd); }
.tsched-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tsched-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--lav-bg); border: 1px solid var(--lav-bd); color: var(--lav-ink); }
.tsched-chip s { opacity: .6; }
.tsched-quote { display: block; margin-top: 6px; font-size: 13px; color: #6b5a1c; background: var(--butter-bg); border-radius: 8px; padding: 4px 8px; }
.avail-tech-note { color: var(--butter); margin-right: 4px; cursor: help; font-size: 13px; }
.tsched-dash .tsched-list { padding: 4px 16px 4px; }
.tsched-foot { padding: 4px 28px 18px; font-size: 13px; }
.tsched-foot a { color: #6b7280; text-decoration: none; }
.tsched-foot a:hover { color: #2f66e0; }

/* Sign-in maths puzzle: same footprint as the hCaptcha widget it replaces (303 × 78). */
.auth-card .login-puzzle {
  width: 303px; max-width: 100%; height: 78px; min-height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 14px; border: 1px solid #d5dae3; border-radius: 6px; background: #f9fafb; box-shadow: 0 1px 2px rgba(15, 27, 61, .06);
}
.login-puzzle-q { display: flex; align-items: center; gap: 10px; margin: 0; cursor: text; }
.login-puzzle-sum { font-family: "IBM Plex Mono", monospace; font-size: 19px; font-weight: 600; color: var(--text); white-space: nowrap; letter-spacing: .02em; }
.login-puzzle input {
  width: 58px; height: 40px; border: 1.5px solid #c9d0dc; border-radius: 6px; background: #fff; text-align: center;
  font-family: "IBM Plex Mono", monospace; font-size: 18px; font-weight: 600; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.login-puzzle input:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px rgba(47, 102, 224, .14); }
.login-puzzle-brand { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--text-3); text-align: center; line-height: 1.1; }
.login-puzzle-brand i { font-size: 22px; color: #149a7c; }
.login-puzzle-brand b { font-size: 10.5px; font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.login-puzzle-brand small { font-size: 9px; }

/* ---- LCS Connect desktop app: communication only (2026-10-16) -------------
   The app shows LCS Connect and nothing else, so the site navigation and the
   work-order tools are hidden; the Connect rail (Chat, Calls, Calendar, Shifts,
   Mail, Apps) is the navigation. */
body.is-desktop-app .app-shell { display: block !important; }
body.is-desktop-app .sidebar,
body.is-desktop-app .nav-backdrop,
body.is-desktop-app .nav-toggle,
body.is-desktop-app .tech-avail-btn,
body.is-desktop-app .trip-fee-btn,
body.is-desktop-app .rtcheck-btn,
body.is-desktop-app .topbar-actions > .btn-gold,
body.is-desktop-app .topbar-actions > a.btn,
body.is-desktop-app .notify-foot,
body.is-desktop-app .me-menu a.dropdown-item:not([href$="/profile"]) { display: none !important; }
body.is-desktop-app .topbar { padding-top: 10px; padding-bottom: 10px; }
/* Desktop app: no Apps launcher (it pointed outside the app). */
body.is-desktop-app a[href*="/comms/apps"] { display: none !important; }

/* ===================== Sidebar pins (begin) ===================== */
.side-nav > .nav-pin-row,
.nav-pin-row[data-pin-tone="home"]     { --t-bg: var(--sky-bg);    --t-ink: var(--sky-ink);    --t: var(--sky); }
.nav-pin-row[data-pin-tone="work"]     { --t-bg: var(--sky-bg);    --t-ink: var(--sky-ink);    --t: var(--sky); }
.nav-pin-row[data-pin-tone="planning"] { --t-bg: var(--mint-bg);   --t-ink: var(--mint-ink);   --t: var(--mint); }
.nav-pin-row[data-pin-tone="comms"]    { --t-bg: var(--lav-bg);    --t-ink: var(--lav-ink);    --t: var(--lav); }
.nav-pin-row[data-pin-tone="people"]   { --t-bg: var(--peach-bg);  --t-ink: var(--peach-ink);  --t: var(--peach); }
.nav-pin-row[data-pin-tone="wallet"]   { --t-bg: var(--aqua-bg);   --t-ink: var(--aqua-ink);   --t: var(--aqua); }
.nav-pin-row[data-pin-tone="account"]  { --t-bg: var(--butter-bg); --t-ink: var(--butter-ink); --t: var(--butter); }
.nav-pin-row[data-pin-tone="admin"]    { --t-bg: var(--blush-bg);  --t-ink: var(--blush-ink);  --t: var(--blush); }
.nav-group-pins { margin-top: 6px; }
.nav-group-pins .nav-group-toggle::before { background: #8e8e93; }

.nav-pin-row { position: relative; display: flex; flex-direction: column; }
.nav-pin-row > .nav-link-app { transition: background .12s ease, color .12s ease, padding .12s ease; }
.nav-pin-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8e8e93;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s ease, background .12s ease, color .12s ease;
}
.nav-pin-btn i { transform: rotate(0deg); }
.nav-pin-row:hover .nav-pin-btn,
.nav-pin-row:focus-within .nav-pin-btn,
.nav-pin-btn:focus-visible { opacity: 1; }
.nav-pin-row:hover > .nav-link-app,
.nav-pin-row:focus-within > .nav-link-app { padding-right: 34px; }
.nav-pin-btn:hover { background: color-mix(in srgb, var(--t-bg, #f2f2f4) 85%, #fff); color: var(--t-ink, #1d1d1f); }
.nav-pin-btn:focus-visible { outline: 2px solid rgba(47, 102, 224, .45); outline-offset: -2px; }
.nav-pin-btn[aria-pressed="true"] { color: var(--t-ink, #3a3a3c); }
/* Pinned links elsewhere in the menu keep a faint marker so the state is visible at a glance. */
.nav-pin-row:not(.is-pin-item) .nav-pin-btn[aria-pressed="true"] { opacity: .45; }
.nav-pin-row:not(.is-pin-item):hover .nav-pin-btn[aria-pressed="true"] { opacity: 1; }
.nav-pin-row:not(.is-pin-item):has(.nav-pin-btn[aria-pressed="true"]) > .nav-link-app { padding-right: 34px; }

.nav-pin-row.is-pin-item { cursor: grab; }
.nav-pin-row.is-pin-item.is-dragging { opacity: .45; }
.nav-pin-row.is-pin-item.is-dragging > .nav-link-app { background: var(--t-bg, rgba(0,0,0,.05)); }
.side-nav.pins-failed .nav-group-pins .nav-group-toggle { color: var(--blush-ink, #a33); }

/* Touch screens have no hover: keep the pin reachable but quiet. */
@media (hover: none) {
  .nav-pin-btn { opacity: .5; }
  .nav-pin-row > .nav-link-app { padding-right: 34px; }
}
/* ===================== Sidebar pins (end) ======================= */

/* Toast stack (app.js pushToast): cards are absolutely placed; JS sets each card's offset and the stack height. */
.toast-stack { display: block !important; position: fixed; top: 18px; right: 18px; width: min(360px, calc(100vw - 24px)); height: 0; gap: 0; pointer-events: none; }
.toast-stack > * { pointer-events: auto; }
.toast-stack .sys-toast {
  position: absolute; top: 0; left: 0; right: 0; margin: 0;
  padding: 12px 40px 14px 14px !important; overflow: hidden; transform-origin: top center;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}
.toast-stack .sys-toast.is-behind { pointer-events: none; }
.toast-stack .sys-toast.is-behind > * { opacity: 0; transition: opacity .15s; }
.sys-toast-body { white-space: pre-line; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.sys-toast-close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 8px;
  display: grid; place-items: center; background: transparent; color: var(--text-3); font-size: 12px; cursor: pointer;
}
.sys-toast-close:hover, .sys-toast-close:focus-visible { background: var(--p-50); color: var(--p); outline: none; }
.sys-toast-timer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left center;
  background: color-mix(in srgb, var(--p) 45%, transparent); pointer-events: none;
}
.toast-stack-bar {
  position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px;
  border-radius: 999px; background: color-mix(in srgb, var(--surface, #fff) 92%, transparent); border: 1px solid var(--border);
  box-shadow: var(--sh-2, 0 4px 12px rgba(15, 30, 60, .08)); font-size: 12px; color: var(--text-3);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1); backdrop-filter: blur(8px);
}
.toast-stack-bar button { border: 0; border-radius: 999px; padding: 3px 10px; background: var(--p-50); color: var(--p); font-weight: 650; font-size: 12px; }
.toast-stack-bar button:hover { background: var(--p); color: #fff; }
@media (prefers-reduced-motion: reduce) { .toast-stack .sys-toast, .toast-stack-bar { transition: none; } }

/* Section bar (people_nav in hr.php): Hiring + HR in one row, grouped, scrolls sideways on small screens. */
.sec-nav {
  display: flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 5px; width: fit-content; max-width: 100%;
  background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--sh-1);
  overflow-x: auto; scrollbar-width: none;
}
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav-group { display: flex; align-items: center; gap: 2px; flex: none; }
.sec-nav-label { font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 0 8px 0 6px; }
.sec-nav-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--border); flex: none; }
.sec-nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  color: var(--text-2); text-decoration: none; font-weight: 650; font-size: 13.5px; transition: background .15s, color .15s;
}
.sec-nav-link i { font-size: 14px; opacity: .8; }
.sec-nav-link:hover { background: var(--p-50); color: var(--p); }
.sec-nav-link.is-on { background: var(--p-50); color: var(--p); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 22%, transparent); }
.sec-nav-link.is-on i { opacity: 1; }
.sec-nav-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--text-3) 14%, transparent); color: var(--text-2);
}
.sec-nav-link.is-on .sec-nav-count { background: var(--p); color: #fff; }

/* Breadcrumb + previous/next on detail pages */
.sec-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.sec-crumbs-path { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); min-width: 0; }
.sec-crumbs-path a { color: var(--text-2); text-decoration: none; font-weight: 600; border-radius: 6px; }
.sec-crumbs-path a:hover { color: var(--p); text-decoration: underline; }
.sec-crumbs-path > i { font-size: 10px; opacity: .6; }
.sec-crumbs-path [aria-current] { color: var(--text); font-weight: 700; }
.sec-crumbs-pager { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); box-shadow: var(--sh-1); font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sec-crumbs-pager span { padding: 0 6px; }
.sec-crumbs-step { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); text-decoration: none; }
.sec-crumbs-step:hover { background: var(--p-50); color: var(--p); }
.sec-crumbs-step.is-off { opacity: .35; }
@media (max-width: 640px) { .sec-nav { width: 100%; } .sec-crumbs-pager span { display: none; } }

/* ---------- Waiting WO ---------- */
.side-nav .nav-link-app.is-alert, .side-nav .nav-link-app.is-alert > i { color: #d92d20; }
.side-nav .nav-link-app.is-alert:hover { background: #fef3f2; color: #b42318; }
.side-nav .nav-link-app.is-alert.active { background: #fee4e2; color: #b42318; }
.side-nav .nav-link-app.is-alert.active > i { color: #b42318; }
.wwo-week { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.wwo-week strong { font-size: 15px; font-weight: 750; }
.wwo-days { display: flex; gap: 4px; }
.wwo-days span { flex: 1; text-align: center; font-size: 11px; font-weight: 650; padding: 3px 0; border-radius: 7px; background: #f4f6fa; color: var(--text-3); }
.wwo-days span.is-open { background: var(--mint-bg, #e7f6ee); color: var(--mint-ink, #146c43); }
.wwo-group { margin-top: 22px; }
.wwo-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wwo-group-head h3 { font-size: 17px; font-weight: 750; margin: 0; display: flex; align-items: center; gap: 8px; }
.wwo-group-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.wwo-group-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--t-bg); color: var(--t-ink); }
.wwo-none { padding: 18px; border: 1px dashed var(--border); border-radius: 14px; text-align: center; color: var(--text-3); font-size: 13px; margin: 0; }
.wwo-none[hidden] { display: none; }
.wwo-filter { cursor: pointer; transition: transform .15s, box-shadow .15s, outline-color .15s; outline: 2px solid transparent; outline-offset: 2px; }
.wwo-filter:hover { transform: translateY(-2px); }
.wwo-filter.is-on { outline-color: var(--t, var(--tone, #94a3b8)); }
.wwo-group[hidden] { display: none; }

/* ---------- Dispatch activity (tech profile + Waiting WO) ---------- */
.tdn-form { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #f8f9fc; border: 1px solid var(--border); margin-bottom: 14px; }
.tdn-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.tdn-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.tdn-kinds span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: #fff; border: 1px solid var(--border); color: var(--text-2); cursor: pointer; }
.tdn-kinds input:checked + span { background: var(--t-bg); border-color: var(--t-bd); color: var(--t-ink); }
.tdn-kinds input:focus-visible + span { outline: 2px solid var(--t); outline-offset: 1px; }
.tdn-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tdn-form-foot small { color: var(--text-3); }
.tdn-empty { color: var(--text-3); font-size: 13px; margin: 0; }
.tdn-day { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin: 12px 0 6px; }
.tdn-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f2f7; }
.tdn-item:last-child { border-bottom: 0; }
.tdn-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; display: grid; place-items: center; background: var(--t-bg); color: var(--t-ink); font-size: 14px; }
.tdn-main { flex: 1; min-width: 0; }
.tdn-meta { font-size: 12.5px; color: var(--text-2); }
.tdn-meta b { color: var(--text-1, #1d1d1f); }
.tdn-main p { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.tdn-del button { border: 0; background: none; color: var(--text-3); padding: 2px 4px; border-radius: 6px; }
.tdn-del button:hover { background: #f4f6fa; color: #b42318; }
.wwo-act { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 8px; border-radius: 9px; background: #f4f6fa; color: var(--text-2); text-decoration: none; }
.wwo-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wwo-act.is-today { background: var(--mint-bg); color: var(--mint-ink); }
.wwo-act.is-none { background: #fef3f2; color: #b42318; }
.wwo-act:hover { filter: brightness(.97); }
.wwo-note-btn { position: relative; z-index: 2; border: 0; background: var(--sky-bg); color: var(--sky-ink); width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 12px; vertical-align: 1px; margin-left: 4px; padding: 0; }
.wwo-note-btn:hover { background: var(--sky-bd); }
.tdir-card-top h4:has(.wwo-note-btn) { overflow: visible; white-space: normal; }
.wwo-dialog { border: 0; border-radius: 18px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 60px -20px rgba(30, 41, 90, .45); }
.wwo-dialog::backdrop { background: rgba(15, 23, 42, .35); }
.wwo-dialog form { display: grid; gap: 12px; padding: 18px; }
.wwo-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wwo-dialog-head h4 { margin: 0; font-size: 16px; font-weight: 750; }
.wwo-dialog-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.wwo-dialog-x { border: 0; background: none; color: var(--text-3); padding: 4px 6px; border-radius: 8px; }
.wwo-dialog-x:hover { background: #f4f6fa; }
.wwo-dialog-err { margin: 0; font-size: 13px; color: #b42318; }
.wwo-dialog-err[hidden] { display: none; }
.wwo-dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }

/* Background Check Refund Tracker (Payroll Center → tab=bgc) */
.bgc .bgc-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bgc .bgc-stats .stat-card { padding: 14px 16px; min-height: 0; }
.bgc .bgc-stats .stat-card .value { font-size: 24px; }
@media (max-width: 1399.98px) { .bgc .bgc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .bgc .bgc-stats { grid-template-columns: 1fr 1fr; } }
.bgc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bgc-chip { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.bgc-chip:hover { border-color: var(--p-100); color: var(--p); background: var(--p-50); }
.bgc-chip.is-active { background: var(--sky-bg); border-color: var(--sky-bd); color: var(--sky-ink); }
.bgc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.bgc-layout.has-panel .bgc-panel { order: -1; }
@media (min-width: 1800px) {
  .bgc-layout.has-panel { grid-template-columns: minmax(0, 1fr) 380px; }
  .bgc-layout.has-panel .bgc-panel { order: 0; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}
@media (min-width: 992px) and (max-width: 1799.98px) {
  .bgc-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .bgc-panel > .bgc-panel-head, .bgc-panel > .bgc-facts, .bgc-panel > .bgc-note { grid-column: 1 / -1; }
  .bgc-panel .bgc-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.bgc-table .table-app td { vertical-align: middle; }
.bgc-row.is-selected > td { background: var(--sky-bg); }
.bgc-name { color: var(--text); font-weight: 600; text-decoration: none; }
.bgc-name:hover { color: var(--p); text-decoration: underline; }
.bgc-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.bgc-of { color: var(--text-3); font-size: 12px; }
.bgc-meter { height: 4px; border-radius: 99px; background: var(--border); margin-top: 4px; min-width: 56px; overflow: hidden; }
.bgc-meter span { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.bgc-sub { color: var(--text-3); font-size: 11.8px; line-height: 1.4; }
.bgc-flag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: var(--lav-bg); color: var(--lav-ink); vertical-align: 1px; }
.bgc .ui-badge-gray { background: #f1f3f8; color: var(--text-2); }
.bgc-badge .bi { font-size: 10px; }
.bgc-panel { padding: 18px; }
.bgc-panel-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bgc-panel-head h3 { font-size: 18px; font-weight: 700; margin: 2px 0; }
.bgc-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.bgc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 12px; border-radius: var(--r); background: var(--bg); margin-bottom: 10px; font-size: 13px; }
.bgc-facts > div > span:first-child { display: block; color: var(--text-3); font-size: 11.5px; margin-bottom: 2px; }
.bgc-note { padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg); font-size: 12.5px; margin-bottom: 8px; color: var(--text-2); }
.bgc-note-blue { background: var(--sky-bg); color: var(--sky-ink); }
.bgc-note-amber { background: var(--butter-bg); color: var(--butter-ink); }
.bgc-sec { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.bgc-sec h4 { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.bgc-form .form-label { font-size: 11.5px; margin-bottom: 2px; color: var(--text-2); }
.bgc-paid { padding: 10px 12px; border-radius: var(--r-sm); background: var(--mint-bg); color: var(--mint-ink); margin-bottom: 8px; }
.bgc-details { margin-top: 6px; }
.bgc-details > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--p); }
.bgc-details > form { margin-top: 8px; }
.bgc-wos { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow: auto; font-size: 12.5px; counter-reset: wo; }
.bgc-wos li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--border); counter-increment: wo; }
.bgc-wos li::before { content: counter(wo) "."; color: var(--text-3); width: 22px; flex: none; }
.bgc-wos li > span:first-of-type { flex: 1; }
.bgc-wos li.is-tenth { color: var(--mint-ink); font-weight: 700; }
.bgc-log { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.bgc-log li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.bgc-log li:last-child { border-bottom: 0; }
.bgc-log li.is-void { opacity: .65; text-decoration: line-through; }
.bgc-log li.is-void .bgc-sub { text-decoration: none; }
.bgc-change { font-size: 12px; color: var(--text-2); }
.bgc-change span:first-child { color: var(--text-3); }
.bgc-tick-form { display: inline-block; margin: 0; }
.bgc-tick { position: relative; display: inline-grid; place-items: center; cursor: pointer; margin: 0; }
.bgc-tick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.bgc-tick-mark { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--border-2); background: var(--surface); display: grid; place-items: center; color: transparent; font-size: 15px; transition: background .15s, border-color .15s, color .15s; }
.bgc-tick:hover .bgc-tick-mark { border-color: var(--mint); }
.bgc-tick input:focus-visible + .bgc-tick-mark { outline: 2px solid var(--p-100); outline-offset: 2px; }
.bgc-tick.is-paid .bgc-tick-mark, .bgc-tick input:checked + .bgc-tick-mark { background: var(--mint); border-color: var(--mint); color: #fff; }
.bgc-tick.is-locked { cursor: not-allowed; }
.bgc-tick.is-locked:not(.is-paid) .bgc-tick-mark { background: var(--bg); border-style: dashed; }
.bgc-tick.is-locked:hover .bgc-tick-mark { border-color: var(--border-2); }
.bgc-tick.is-busy { opacity: .5; pointer-events: none; }
