:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --navy-3: #1a3a66;
  --ink: #1c2430;
  --muted: #5b6778;
  --line: #d7deea;
  --paper: #f3f6fb;
  --card: #ffffff;
  --gold: #c9a227;
  --gold-2: #e0bc4a;
  --gold-ink: #6b5410;
  --assigned: #2b6cb0;
  --reassigned: #c6ff00;
  --upcoming: #3b82f6;
  --progress: #c27803;
  --done: #1b7f5a;
  --hold: #6b5b95;
  --cancel: #9b3b3b;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --radius: 16px;
  --sidebar: 268px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.app-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
}

a { color: var(--navy-3); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.01em;
}

/* ---------- Login ---------- */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-brand {
  background:
    radial-gradient(1200px 500px at -10% -10%, rgba(201, 162, 39, 0.18), transparent 50%),
    linear-gradient(165deg, #071526 0%, var(--navy) 48%, #16365f 100%);
  color: #f4f1e8;
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 20% 20%, #000 0, transparent 72%);
  pointer-events: none;
}

.brand-kicker {
  color: var(--gold-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

.brand-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 14px 0 12px;
}

.brand-copy {
  max-width: 440px;
  color: rgba(244, 241, 232, 0.78);
  font-size: 1.05rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.demo-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(224, 188, 74, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-chip strong { color: #fff; }
.demo-chip span { color: rgba(244,241,232,0.7); font-size: 13px; }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: #eef3f8;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px 36px 28px;
  border: 1px solid #e7edf5;
}

.mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.form-label { font-weight: 560; color: var(--navy); font-size: 13px; }

.form-control, .form-select {
  border-radius: 10px;
  border-color: #cfd8e6;
  padding: 0.62rem 0.8rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.18);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a2106;
  border: 0;
  font-weight: 650;
  border-radius: 10px;
}

.btn-gold:hover { color: #2a2106; filter: brightness(1.05); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 0;
  font-weight: 600;
  border-radius: 10px;
}

.btn-navy:hover { color: #fff; background: var(--navy-2); }

/* ---------- App shell ---------- */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}

.sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, #081526 100%);
  color: #dbe4f0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  min-width: 0;
}

.side-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 8px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}

.side-brand h1 {
  font-size: 14px;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  font-weight: 650;
}

.side-brand small {
  color: var(--gold-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.nav-link-app {
  color: #c5d0e0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link-app.active {
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-2);
}

.side-user {
  margin-top: auto;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}

.topbar-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.nav-backdrop {
  display: none;
}

.side-user .flex-grow-1 { min-width: 0; }
.side-user .text-white,
.side-user div[style] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar {
  gap: 12px;
}
.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.nav-open {
  overflow: hidden;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #2a2106;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.main {
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-kicker {
  color: var(--gold-ink);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  margin: 0;
}

.page-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  margin: 2px 0 0;
  color: var(--navy);
}

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

.card-soft {
  background: var(--card);
  border: 1px solid #e6ecf4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.stat-card {
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}

.stat-card .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
}

.stat-card .value {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.1;
  margin-top: 6px;
}

.stat-card .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }

.rev-formula {
  background: #f7f3e8;
  border: 1px solid #ead9a8;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--navy);
  display: grid;
  gap: 6px;
}

.rev-neg { color: #b42318; font-weight: 650; }
.rev-pos { color: #0f766e; font-weight: 650; }

.rev-doc-list {
  display: grid;
  gap: 10px;
}

.rev-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.rev-doc-card:hover {
  border-color: #d4c48a;
  color: inherit;
}

.rev-doc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf6ee;
  color: #1f7a46;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rev-sheet-wrap {
  max-height: 70vh;
  overflow: auto;
}

.rev-sheet-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.live-user-feed {
  max-height: calc(3 * (36px + 16px) + 2px);
  overflow-y: auto;
}

.live-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}

.live-user:last-child { border-bottom: 0; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  flex-shrink: 0;
}

.icon-blob {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f6eed4;
  color: var(--gold-ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.st-assigned { background: #e8f1fb; color: var(--assigned); }
.st-reassigned { background: #e8ff00; color: #141800; }
.st-upcoming { background: #dbeafe; color: var(--upcoming); }
.st-progress { background: #fff3dc; color: var(--progress); }
.st-done { background: #e5f6ee; color: var(--done); }
.st-hold { background: #eee8f8; color: var(--hold); }
.st-cancel { background: #f8e6e6; color: var(--cancel); }

.tech-roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tech-roster-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tech-roster-list li:last-child { border-bottom: 0; }

.table-wrap { overflow: auto; }

.table-app {
  margin: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-app thead th {
  background: #f7f9fc;
  color: #4d5b70;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 12px 14px;
}

.table-app thead th a {
  color: inherit;
  text-decoration: none;
}

.table-app thead th a:hover { color: var(--navy); }

.table-app tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}

.table-app tbody tr:hover { background: #fbf8ee; }

.dir-notes {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 13px;
}
.table-app tr.is-editing { background: #fff8e8; }

.sched-date {
  font-weight: 650;
  color: #e67e22;
}
.sched-time {
  font-size: 12px;
  font-weight: 650;
  color: #15803d;
  letter-spacing: .01em;
}
span.sched-time { margin-left: 8px; }
dd.sched-time { font-size: inherit; }

.wo-num {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}

.wo-num:hover { color: var(--gold-ink); }
a.wo-num[data-copy-hover],
span.wo-num[data-copy-hover] { cursor: pointer; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 0.8fr 0.8fr auto;
  gap: 10px;
}

.dash-today-scroll {
  max-height: 420px;
  overflow: auto;
}

.dash-today-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.dash-today-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 16px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row { display: grid; grid-template-columns: 110px 1fr 32px; gap: 10px; align-items: center; }
.bar-track { height: 8px; background: #e8eef6; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }

.note-box {
  background: #f8f4e8;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  white-space: pre-wrap;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.meta-grid dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; }
.meta-grid dd { margin: 0 0 10px; font-size: 1.02rem; }

.flash-stack { position: sticky; top: 76px; z-index: 30; }

.action-btns .btn { padding: 0.2rem 0.45rem; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}

.timestamp-strip {
  background: #0b1f3a;
  color: #e8edf5;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.timestamp-strip span { color: var(--gold-2); }

@media (max-width: 1200px) {
  .stat-grid, .stat-grid-5 { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1100px) {
  .login-shell, .app-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; padding: 36px 28px; }
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar), 86vw);
    height: 100vh;
    height: 100dvh;
    z-index: 1300;
    transform: translateX(-110%);
    transition: transform .22s ease;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    box-shadow: none;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
  }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 16, 0.55);
    z-index: 1200;
  }
  body.nav-open .nav-backdrop {
    display: block;
  }
  .side-brand { margin-bottom: 12px; }
  .nav-link-app { padding: 8px 10px; }
}

@media (max-width: 768px) {
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .stat-grid, .filter-bar, .meta-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; }
  .card-soft { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- Admin calendar ---------- */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.cal-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.cal-dot.cal-assigned, .cal-chip.cal-assigned { --chip: var(--assigned); --chip-bg: #e8f1fb; }
.cal-dot.cal-reassigned, .cal-chip.cal-reassigned { --chip: #9acc00; --chip-bg: #f3ff4d; }
.cal-dot.cal-upcoming, .cal-chip.cal-upcoming { --chip: var(--upcoming); --chip-bg: #dbeafe; }
.cal-dot.cal-progress, .cal-chip.cal-progress { --chip: var(--progress); --chip-bg: #fff3dc; }
.cal-dot.cal-done, .cal-chip.cal-done { --chip: var(--done); --chip-bg: #e5f6ee; }
.cal-dot.cal-hold, .cal-chip.cal-hold { --chip: var(--hold); --chip-bg: #eee8f8; }
.cal-dot.cal-cancel, .cal-chip.cal-cancel { --chip: var(--cancel); --chip-bg: #f8e6e6; }
.cal-chip.cal-upcoming { color: #1d4ed8; }
.st-reschedule { background: #fde8dc; color: #c45c26; }
.cal-dot { background: var(--chip, #888); }

.cal-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--chip-bg, #eef2f6);
  border-left: 3px solid var(--chip, var(--navy));
  color: var(--navy);
  text-decoration: none;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.cal-chip:hover { color: var(--navy); filter: brightness(0.97); box-shadow: 0 2px 8px rgba(11,31,58,.08); }
.cal-chip-wo { font-weight: 700; }
.cal-chip-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip-lg { padding: 8px 10px; font-size: 12px; }
.cal-chip-wo { font-weight: 700; font-size: 12px; letter-spacing: .01em; }
.cal-chip-time { color: var(--chip); font-weight: 700; font-size: 11px; }
.cal-chip-sub { color: var(--muted); }

.cal-month-head, .cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-month-head {
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
  color: #4d5b70;
}
.cal-month-head > div { padding: 10px 8px; }
.cal-cell {
  min-height: 148px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  padding: 8px;
}
.cal-cell.is-out { background: #f6f8fb; opacity: .7; }
.cal-cell.is-today { background: #fff8e6; }
.cal-cell-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 6px;
}
.cal-cell.is-today .cal-cell-num { background: var(--navy); color: #fff; }
.cal-more {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  color: var(--gold-ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
}
.cal-more:hover { text-decoration: underline; }
.cal-day-pop {
  position: fixed;
  z-index: 1090;
  width: min(340px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.2);
  padding: 10px 10px 8px;
}
.cal-day-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.cal-day-pop-kicker {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-ink);
}
.cal-day-pop-list {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 520px;
}
.cal-week-col { border-right: 1px solid #edf1f6; display: flex; flex-direction: column; min-width: 0; }
.cal-week-col:last-child { border-right: 0; }
.cal-week-head {
  display: block;
  padding: 12px 10px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  background: #f7f9fc;
}
.cal-week-col.is-today .cal-week-head, .cal-day.is-today { background: #fff8e6; }
.cal-week-dow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cal-week-date { font-family: "Fraunces", serif; font-size: 1.15rem; }
.cal-week-count { font-size: 11px; color: var(--muted); }
.cal-week-body { padding: 8px; flex: 1; }
.cal-empty { color: var(--muted); font-size: 12px; padding: 8px 2px; }

.cal-day { overflow: hidden; }
.cal-day-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  border-bottom: 1px solid #edf1f6;
  min-height: 64px;
}
.cal-day-time {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f7f9fc;
  border-right: 1px solid #edf1f6;
}
.cal-day-slot { padding: 8px; }

@media (max-width: 1100px) {
  .cal-week { grid-template-columns: 1fr; min-height: 0; }
  .cal-week-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .cal-month-grid, .cal-month-head { min-width: 720px; }
  .cal-month { overflow-x: auto; }
}

.cal-tech-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.cal-tech-col { min-height: 280px; display: flex; flex-direction: column; overflow: hidden; }
.cal-tech-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px 10px;
  background: #0b1f3a;
  color: #fff;
}
.cal-tech-head .cal-week-dow { color: var(--gold-2); }
.cal-tech-head .cal-week-date { color: #fff; font-size: 1.05rem; }
.cal-tech-head .cal-week-count { color: #c5d0e0; }
.cal-tech-body { padding: 10px; flex: 1; background: #fff; }
.cal-tech-board.is-today .cal-tech-col { box-shadow: 0 0 0 1px rgba(201,162,39,.35); }

.tech-name {
  display: inline-block;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.tech-name-plain {
  padding: 0;
  background: transparent !important;
  border-radius: 0;
}
.cal-tech-head .tech-name,
.sched-head .tech-name {
  max-width: 180px;
}
.cal-chip-tech { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip-status {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cancel);
}

.wo-peek {
  position: fixed;
  z-index: 1080;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.18);
  padding: 16px 16px 12px;
  pointer-events: none;
}
.wo-peek-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-ink);
}
.wo-peek-wo { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 2px 0 4px; }
.wo-peek-line { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.wo-peek-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 10px; }
.wo-peek-dl dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.wo-peek-dl dd { margin: 0; font-size: 13px; }
.wo-peek-notes {
  background: #f8f4e8;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  font-size: 12px;
  white-space: pre-wrap;
  max-height: 90px;
  overflow: hidden;
}
.wo-peek-hint { margin-top: 10px; font-size: 11px; color: var(--muted); font-weight: 650; }

.day-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.day-nav-label { min-width: 200px; flex: 1; }
.day-nav-weekday {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-ink);
}
.day-nav-date {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.15;
}
.day-nav-clock {
  margin-top: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--gold-ink);
}
.day-nav-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.day-nav-count {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.sched-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.sched-col { min-height: 260px; display: flex; flex-direction: column; overflow: hidden; }
.sched-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  background: #122a4d;
  color: #fff;
}
.sched-head .cal-week-dow { color: var(--gold-2); }
.sched-head .cal-week-date { color: #fff; font-size: 1.05rem; }
.sched-head .cal-week-count { color: #c5d0e0; }
.sched-body { padding: 10px; flex: 1; }

.nav-section {
  color: var(--gold-2);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 12px 4px;
  opacity: .85;
}
.side-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #0b1f3a; }
.avatar-img.lg { width: 64px; height: 64px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.avatar-choice { display: block; cursor: pointer; }
.avatar-choice input { position: absolute; opacity: 0; }
.avatar-choice img { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; background: #0b1f3a; }
.avatar-choice input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.25); }
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 1080; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 24px)); }
.sys-toast { background: #0b1f3a; color: #e8edf5; border-left: 3px solid var(--gold); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; }
.sys-toast-actor { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.sys-toast strong { display: block; color: var(--gold-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lock-screen { position: fixed; inset: 0; z-index: 2000; background: radial-gradient(800px 400px at 20% 0%, rgba(201,162,39,.18), transparent 50%), #050d18; display: grid; place-items: center; }
.lock-card { width: min(380px, calc(100vw - 32px)); background: rgba(11,31,58,.92); border: 1px solid rgba(201,162,39,.25); border-radius: 20px; padding: 28px; color: #e8edf5; text-align: center; position: relative; overflow: hidden; }
.lock-pulse { position: absolute; inset: auto -20% 60%; height: 120px; background: radial-gradient(circle, rgba(56,189,248,.18), transparent 70%); pointer-events: none; }
.lock-kicker { color: var(--gold-2); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
.pin-display { font-size: 28px; letter-spacing: .4em; margin: 12px 0 16px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pin-pad button { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 0; font-weight: 650; }
.pin-pad button:hover { background: rgba(201,162,39,.2); }
.lock-error { color: #f3b4b4; margin-top: 10px; }
.action-confirm-card { background: #0b1f3a; color: #e8edf5; border: 1px solid rgba(201,162,39,.3); }
.danger-panel { border: 1px solid rgba(155,59,59,.35); }
.app-body.is-locked .app-shell { filter: blur(6px); pointer-events: none; user-select: none; }
.sidebar { background-image: linear-gradient(180deg, rgba(56,189,248,.05), transparent 30%), linear-gradient(165deg, #071526 0%, var(--navy) 48%, #16365f 100%); }

.login-secure { min-height: 100vh; margin: 0; background: #050910; color: #d7dee8; }
.login-secure-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(700px 280px at 50% -10%, rgba(201,162,39,.12), transparent 50%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px), #050910; }
.login-secure-card { width: min(420px, 100%); background: #0b1524; border: 1px solid rgba(201,162,39,.28); border-radius: 8px; padding: 36px 32px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.login-secure-mark { width: 72px; height: 72px; border-radius: 16px; background: #fff; border: 1px solid rgba(201,162,39,.4); display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.login-secure-mark span { color: var(--gold-2); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.login-secure-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: #fff; padding: 6px; display: block; margin-bottom: 18px; border: 1px solid rgba(201,162,39,.28); }
.login-secure-kicker { color: #c45c26; letter-spacing: .22em; text-transform: uppercase; font-size: 11px; font-weight: 650; margin-bottom: 6px; }
.login-secure-card h1 { font-size: 1.45rem; margin: 0 0 8px; color: #f4f1e8; }
.login-secure-copy { color: #9db0c9; font-size: 14px; margin-bottom: 22px; }
.login-secure-foot { color: #6d7d90; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 0; }
.notify-wrap { position: relative; }
.notify-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 99px; background: #c45c26; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.notify-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 80vw); background: #0b1f3a; color: #e8edf5; border: 1px solid rgba(201,162,39,.25); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; }
.notify-head { padding: 10px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.notify-list { max-height: 320px; overflow: auto; }
.notify-item { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.notify-item:hover { background: rgba(255,255,255,.04); }
.notify-item.is-read { opacity: .65; }
.notify-item strong { display: block; font-size: 13px; }
.notify-item span { color: #9db0c9; font-size: 12px; }
.notify-item .notify-action { display: block; color: #dbe4f0; margin-top: 2px; }
.notify-item .notify-meta { display: block; font-size: 11px; margin-top: 4px; }
.notify-foot { display: block; padding: 8px 14px; font-size: 12px; color: var(--gold-2); text-decoration: none; border-top: 1px solid rgba(255,255,255,.08); }
.notify-foot:hover { color: #fff; }

.avail-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.avail-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--navy);
  background: #e7eef8;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-weight: 650;
  font-size: 13px;
  margin-right: 4px;
}
.avail-tab.active {
  background: var(--navy);
  color: #fff;
}
.avail-tab-count {
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(255,255,255,.2);
  padding: 0 6px;
}
.avail-tab:not(.active) .avail-tab-count { background: rgba(11,31,58,.12); }
.avail-sheet { overflow: hidden; }
.avail-hscroll {
  overflow-x: scroll;
  overflow-y: hidden;
  height: 18px;
  background: #eef3fa;
  border-bottom: 1px solid #c5d0e0;
}
.avail-hscroll-spacer { height: 1px; }
.avail-hscroll::-webkit-scrollbar,
.avail-scroll::-webkit-scrollbar { height: 12px; }
.avail-hscroll::-webkit-scrollbar-thumb,
.avail-scroll::-webkit-scrollbar-thumb {
  background: #7b91ad;
  border-radius: 8px;
}
.avail-hscroll::-webkit-scrollbar-track,
.avail-scroll::-webkit-scrollbar-track { background: #dbe4ef; }
.avail-scroll { overflow: auto; max-height: calc(100vh - 298px); }
.avail-grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1400px;
  width: 100%;
  font-size: 12px;
}
.avail-grid th, .avail-grid td {
  border: 1px solid #c5d0e0;
  padding: 0;
  vertical-align: middle;
  background: #fff;
}
.avail-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0b1f3a;
  color: #f4f1e8;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 8px 6px;
  white-space: nowrap;
  text-align: left;
}
.avail-grid tbody tr:nth-child(even) td { background: #f7fafc; }
.avail-grid tbody tr:hover td { background: #fff8e8; }
.avail-grid th.sticky, .avail-grid td.sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 160px;
}
.avail-grid thead th.sticky { z-index: 4; background: #071526; }
.avail-grid td.sticky { background: #eef3fa; }
.avail-grid th.sticky-fn, .avail-grid td.sticky-fn {
  position: sticky;
  left: 160px;
  z-index: 2;
  min-width: 110px;
  box-shadow: 2px 0 0 #c5d0e0;
}
.avail-grid thead th.sticky-fn { z-index: 4; background: #071526; }
.avail-grid td.sticky-fn { background: #eef3fa; }
.avail-grid .sticky-end { position: sticky; right: 0; z-index: 2; min-width: 210px; background: #fff; }
.avail-grid thead th.sticky-end { z-index: 4; background: #071526; }
.avail-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  font: inherit;
  color: inherit;
  min-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avail-input:focus { outline: 2px solid var(--gold); outline-offset: -2px; background: #fff; }
.avail-input[readonly] {
  cursor: copy;
  caret-color: transparent;
}
.avail-input[readonly]:focus { outline: 1px solid var(--gold); background: transparent; }
.avail-name[data-notes-hover] { cursor: help; }
.avail-input.avail-tenure { color: #0f4c81; font-weight: 650; cursor: default; }
.avail-name { font-weight: 700; color: var(--navy); min-width: 150px; }
.avail-fn { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 90px; }
.avail-grid td.avail-wide { min-width: 200px; max-width: 260px; }
.avail-grid td.avail-xl { min-width: 240px; max-width: 320px; }
.avail-grid td.day-col { min-width: 110px; text-align: center; }
.avail-grid td.day-col .avail-input[readonly] { cursor: default; }
.avail-grid td.day-col.is-open { background: #e5f6ee !important; }
.avail-grid td.day-col.is-off { background: #fecaca !important; color: #991b1b; }
.avail-grid td.day-col.is-off .avail-input { color: #991b1b; font-weight: 700; }
.avail-grid td.day-col.is-oncall { background: #fff3dc !important; }
.avail-grid tbody tr:hover td.day-col.is-off { background: #fca5a5 !important; }
.avail-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; }

.avail-tip {
  position: fixed;
  z-index: 1100;
  max-width: min(440px, calc(100vw - 24px));
  background: #0b1f3a;
  color: #f4f1e8;
  border: 1px solid #d4a017;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(7, 21, 38, .35);
  font-size: 13px;
  line-height: 1.4;
}
.avail-tip[hidden] { display: none !important; }
.avail-tip-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold, #d4a017);
  margin-bottom: 4px;
}
.avail-tip-kicker[hidden] { display: none !important; }
.avail-tip-text { white-space: pre-wrap; word-break: break-word; margin-bottom: 8px; }
input[data-copy-hover] { cursor: copy; }
.avail-tip-copy {
  border: 0;
  background: var(--gold, #d4a017);
  color: #0b1f3a;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.avail-tip-copy:hover { filter: brightness(1.05); }
.avail-tip-copy.is-copied { background: #15803d; color: #fff; }

.avail-form-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin: 8px 0 12px;
}
.avail-add-form .modal-header {
  background: var(--navy);
  color: #f4f1e8;
  align-items: flex-start;
}
.avail-add-form .modal-header .text-secondary { color: #c5d0e0 !important; }
.avail-add-form .modal-title { font-weight: 700; }
.avail-add-form .btn-close { filter: invert(1); }
.avail-add-form .modal-body { background: #f7fafc; }
.avail-add-form .form-label { font-weight: 650; font-size: 12px; margin-bottom: 4px; }

.payroll-next-row td { background: #e5f6ee !important; }

.pay-schedule {
  background: #fff;
  border-radius: 18px;
  overflow: auto;
  max-height: calc(100vh - 250px);
  box-shadow: 0 10px 30px rgba(15, 40, 80, .08);
  border: 1px solid #dbe7f3;
}
.pay-schedule table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #1e3a5f;
}
.pay-schedule thead th {
  background: #163a72;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
.pay-schedule thead th i { margin-right: 8px; opacity: .9; }
.pay-schedule tbody td {
  padding: 13px 18px;
  border: 0;
  background: #fff;
}
.pay-schedule tbody tr:nth-child(even) td { background: #eef5fb; }
.pay-schedule tbody tr.is-next td {
  background: #d8f5e3 !important;
  font-weight: 800;
  color: #0f3d2e;
}
.pay-schedule tbody tr.is-upcoming td { color: #1e3a5f; }
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pay-pill-past { background: #d7e8fb; color: #3b6ea8; }
.pay-pill-next { background: #16a34a; color: #fff; }
.pay-pill-upcoming { background: #f6d36b; color: #7a5b08; }
.payroll-grid input.form-control-sm { min-width: 72px; }
.payroll-grid td:last-child { width: 36px; }
.audit-row:hover td { background: #eef5fb; }
.action-btns form { display: inline; }
.action-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.paystub {
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  padding: 28px 32px 16px;
  max-width: 920px;
  margin: 0 auto;
  color: #1c2430;
  font-family: "Outfit", system-ui, sans-serif;
}
.paystub-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.paystub-brand { display: flex; align-items: center; gap: 10px; }
.paystub-brand img { height: 52px; width: auto; }
.paystub-brand-name { font-weight: 700; letter-spacing: .04em; color: #0b1f3a; }
.paystub-brand-sub { font-size: 11px; letter-spacing: .18em; color: #0f766e; font-weight: 650; }
.paystub-co { text-align: right; font-size: 13px; line-height: 1.4; }
.paystub-rule { height: 4px; background: linear-gradient(90deg, #0f766e, #14b8a6); margin: 8px 0 12px; }
.paystub-banner {
  background: #0b1f3a;
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 10px 14px;
  font-size: 14px;
}
.paystub-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  background: #ecf3f6;
  padding: 16px 18px 10px;
}
.paystub-meta span {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  color: #6b7a8c;
  font-weight: 700;
  margin-top: 8px;
}
.paystub-meta strong { display: block; font-size: 14px; font-weight: 650; }
.paystub-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.paystub-table th {
  background: #0b1f3a;
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 8px 8px;
  text-align: left;
  font-weight: 650;
}
.paystub-table td { padding: 7px 8px; border-bottom: 1px solid #e6edf3; }
.paystub-table tbody tr:nth-child(even) td { background: #f7fafc; }
.paystub-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f766e;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 0;
}
.paystub-notes { padding: 14px 4px 8px; }
.paystub-notes div { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6b7a8c; }
.paystub-notes p { margin: 4px 0 0; font-style: italic; color: #5b6778; }
.paystub-foot {
  background: #0b1f3a;
  color: #dbe4ef;
  font-size: 11px;
  text-align: center;
  padding: 8px 10px;
  margin-top: 12px;
}
.payroll-print-body { background: #fff; padding: 16px; }
.side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.side-brand { flex-shrink: 0; }
.nav-link-app span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-group { margin-top: 6px; }
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--gold-2);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 12px 6px;
  opacity: .9;
  cursor: pointer;
}
.nav-group-toggle i { font-size: 12px; transition: transform .2s ease; }
.nav-group.is-collapsed .nav-group-toggle i { transform: rotate(-90deg); }
.nav-group-body { display: flex; flex-direction: column; gap: 4px; }
.nav-group.is-collapsed .nav-group-body { display: none; }
.perm-group {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  height: 100%;
}
.perm-group-title {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.perm-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  margin: 0 0 8px;
}
.perm-item input { margin-top: 3px; }
.perm-item.is-readonly { cursor: default; color: var(--muted); }
.dt-container { padding: 8px 12px 16px; }
.dt-buttons .btn { margin-right: 6px; }
table.dataTable thead th { white-space: nowrap; }
@media print {
  .no-print, .sidebar, .topbar, .flash-stack, .dt-buttons, .dt-search, .dt-paging, .dt-info { display: none !important; }
  .paystub { border: 0; max-width: none; }
  .main, .content { padding: 0 !important; margin: 0 !important; }
}

