: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);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  background: #e8eef6;
  color: #5b6778;
  border-color: #d7deea;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.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-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

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

.rev-doc-main:hover {
  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); }
.st-needs { background: #fecaca; color: #991b1b; }
.st-critical {
  background: #ff1a1a;
  color: #fff;
  font-weight: 800;
  animation: taskCriticalPulse 1s ease-in-out infinite;
}
.st-critical::before { background: #fff; }
.alert-task-critical {
  background: #ff1a1a;
  border: 1px solid #b91c1c;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  animation: taskCriticalPulse 1s ease-in-out infinite;
}
tr.is-critical td {
  background: #fee2e2;
}
tr.is-critical td:first-child {
  box-shadow: inset 4px 0 0 #ff1a1a;
}
@keyframes taskCriticalPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.85);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 26, 26, 0);
    filter: brightness(1.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-critical, .alert-task-critical, .cal-chip.cal-task.is-critical {
    animation: none;
  }
}

.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; }
.table-app tfoot th {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 13px;
}

.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],
[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-dot.cal-task, .cal-chip.cal-task { --chip: #6d28d9; --chip-bg: #f3e8ff; }
.cal-chip.cal-task.is-critical {
  --chip: #ff1a1a;
  --chip-bg: #ff1a1a;
  color: #fff;
  font-weight: 700;
  animation: taskCriticalPulse 1s ease-in-out infinite;
}
.cal-chip.cal-task.is-overdue { --chip: #991b1b; --chip-bg: #fecaca; }
.cal-chip.cal-task.is-closed { --chip: #15803d; --chip-bg: #e5f6ee; }
.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 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-month-week { position: relative; }
.cal-month-days {
  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-month-week .cal-cell-num {
  position: relative;
  z-index: 4;
  margin-bottom: calc(6px + (24px * var(--timeoff-rows, 0)));
}
.cal-dot.cal-timeoff { background: #e85d3a; }
.cal-timeoff-tracks { pointer-events: none; }
.cal-month-week .cal-timeoff-tracks {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 36px;
  z-index: 3;
}
.cal-week-board { position: relative; }
.cal-week-board > .cal-timeoff-tracks {
  position: relative;
  padding: 8px 8px 6px;
  border-bottom: 1px solid var(--line);
  background: #fff8f5;
}
.cal-timeoff-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}
.cal-timeoff-bar {
  pointer-events: auto;
  display: block;
  width: 100%;
  border: 0;
  background: #e85d3a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cal-timeoff-bar:hover { filter: brightness(1.06); color: #fff; }
.cal-timeoff-bar.is-single { display: inline-block; width: auto; min-width: 120px; margin: 0 6px 6px 0; }
.cal-day-timeoff { display: flex; flex-wrap: wrap; align-items: flex-start; }
.cal-timeoff-peek {
  position: fixed;
  z-index: 1100;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 24px));
  background: #1b1f24;
  color: #f4f1e8;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.cal-timeoff-peek[hidden] { display: none !important; }
.cal-timeoff-peek-kicker {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e85d3a;
  margin-bottom: 4px;
}
.cal-timeoff-peek-name { font-size: 18px; font-weight: 700; }
.cal-timeoff-peek-range { font-size: 13px; color: #c5d0e0; margin-top: 2px; }
.cal-timeoff-peek-note { font-size: 13px; margin-top: 8px; color: #e8edf5; }
.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-days, .cal-month-head, .cal-timeoff-track { min-width: 720px; }
  .cal-month, .cal-week-board { overflow-x: auto; }
  .cal-week-board > .cal-timeoff-tracks { min-width: 720px; }
}

.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;
}
.task-update-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.cal-chip .tech-name { font-size: 11px; max-width: 100%; }
.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-max {
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
}
.cal-chip-lg .cal-chip-max { font-size: 11px; }
.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-dl dd.status-pill {
  width: fit-content;
  max-width: 100%;
  font-size: 12px;
  padding: 3px 8px;
}
.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: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: transparent; }
.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;
  color: #e8edf5;
  background: #04070d;
  overflow: hidden;
}
.login-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
}
.login-bg,
.login-grid,
.login-scan,
.login-orbs,
.login-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login-bg {
  background: #050910 url("img/login-bg.jpg") center / cover no-repeat;
  transform: scale(1.08);
  animation: loginKen 48s ease-in-out infinite;
  filter: saturate(1.05) contrast(1.05);
}
.login-grid {
  background-image:
    linear-gradient(rgba(224, 188, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 188, 74, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: loginGrid 28s linear infinite;
  mask-image: radial-gradient(ellipse at 72% 48%, #000 10%, transparent 72%);
  opacity: .55;
}
.login-scan {
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(224, 188, 74, 0.1), transparent);
  animation: loginScan 9s ease-in-out infinite;
}
.login-orbs i {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .22;
  animation: loginOrb 16s ease-in-out infinite;
}
.login-orbs i:nth-child(1) { left: 8%; top: 18%; background: #c9a227; }
.login-orbs i:nth-child(2) { right: 12%; bottom: 10%; background: #1a3a66; animation-delay: -6s; width: 260px; height: 260px; }
.login-orbs i:nth-child(3) { left: 40%; top: 70%; background: #38bdf8; animation-delay: -11s; width: 140px; height: 140px; opacity: .12; }
.login-veil {
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.88) 0%, rgba(4, 7, 13, 0.55) 42%, rgba(4, 7, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.35) 0%, transparent 30%, rgba(4, 7, 13, 0.55) 100%);
}
.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  gap: 40px;
  padding: 48px 7vw;
}
.login-hero-kicker {
  margin: 0 0 14px;
  color: #e0bc4a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.login-hero-title {
  margin: 0 0 16px;
  max-width: 14ch;
  color: #f7f4ea;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.login-hero-copy {
  margin: 0 0 28px;
  max-width: 38ch;
  color: rgba(232, 237, 245, 0.72);
  font-size: 1.02rem;
  line-height: 1.55;
}
.login-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5d0e0;
}
.login-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e0bc4a;
  box-shadow: 0 0 10px #e0bc4a;
  animation: loginPulse 2.4s ease-in-out infinite;
  vertical-align: 1px;
}
.login-status li:nth-child(2) span { animation-delay: .4s; }
.login-status li:nth-child(3) span { animation-delay: .8s; }
.login-clock-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.login-clock-label,
.login-clock-zone {
  color: #8a94a3;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.login-clock {
  color: #f7f4ea;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.login-dock { display: flex; justify-content: flex-end; }
.login-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(360px, 100%);
  padding: 28px 28px 22px;
  background: rgba(7, 14, 24, 0.88);
  border: 1px solid rgba(224, 188, 74, 0.38);
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}
.login-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #e0bc4a;
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.login-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.login-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.login-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.login-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.login-box-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(224, 188, 74, 0.18);
}
.login-box-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}
.login-box-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 188, 74, 0.45);
  color: #e0bc4a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.login-box-kicker {
  margin: 0 0 4px;
  color: #e0bc4a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.login-box-title {
  margin: 0;
  color: #f7f4ea;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 92, 38, 0.45);
  background: rgba(196, 92, 38, 0.12);
  color: #f3d2c4;
  font-size: 13px;
}
.login-label {
  display: block;
  margin: 0;
  color: #c5b17a;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.login-input {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  background: #050b12;
  border: 1px solid rgba(215, 222, 234, 0.16);
  border-radius: 0;
  color: #f7f4ea;
  font-size: 14px;
  outline: 0;
}
.login-input:focus {
  border-color: #e0bc4a;
  box-shadow: inset 0 0 0 1px #e0bc4a;
}
.login-input.mono { letter-spacing: 0.28em; text-align: center; font-size: 1.05rem; }
.login-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.login-robot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  padding: 10px 12px;
  background: #050b12;
  border: 1px solid rgba(215, 222, 234, 0.16);
  color: #f7f4ea;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.login-robot-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.login-robot-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(224, 188, 74, 0.55);
  background: #0a121c;
}
.login-robot-input:checked + .login-robot-box {
  background: #c9a227;
  border-color: #c9a227;
  box-shadow: inset 0 0 0 3px #050b12;
}
.login-robot-input:focus-visible + .login-robot-box {
  outline: 1px solid #e0bc4a;
}
.login-submit {
  display: block;
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  padding: 0 16px;
  background: #c9a227;
  border: 0;
  border-radius: 0;
  color: #1a1506;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.login-submit:hover { background: #e0bc4a; }
.login-box-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6d7d90;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.login-secure-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  display: block;
  margin-bottom: 18px;
  border: 1px solid rgba(201, 162, 39, 0.28);
}
@keyframes loginKen {
  0%, 100% { transform: scale(1.08) translate3d(0, 0, 0); }
  50% { transform: scale(1.16) translate3d(-1.6%, 1.2%, 0); }
}
@keyframes loginGrid {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}
@keyframes loginScan {
  0% { transform: translateY(-40vh); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}
@keyframes loginOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -22px, 0); }
}
@keyframes loginPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 28px 20px 32px;
  }
  .login-hero { display: none; }
  .login-dock { justify-content: center; }
  .login-bg { animation: none; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-bg, .login-grid, .login-scan, .login-orbs i, .login-status span {
    animation: none !important;
  }
}
.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); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notify-switch {
  border: 1px solid rgba(201,162,39,.45);
  background: transparent;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 3px 10px;
  cursor: pointer;
  min-width: 52px;
}
.notify-switch.is-on { background: #15803d; border-color: #15803d; color: #fff; }
.notify-switch.is-off { background: #7f1d1d; border-color: #7f1d1d; color: #fff; }
.notify-status { padding: 6px 14px 4px; font-size: 11px; color: #9db0c9; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notify-mark-all {
  border: 0;
  background: transparent;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.notify-mark-all:hover { color: #fff; text-decoration: underline; }
.notify-mark-all[hidden] { display: none !important; }
.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-item .notify-read {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #86efac;
}
.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;
  flex-wrap: wrap;
  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 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: #fde047 !important;
}
.avail-grid tbody tr.is-unavailable td.day-col.is-off,
.avail-grid tbody tr.is-unavailable td.day-col.is-off .avail-input {
  color: inherit;
  font-weight: inherit;
}
.btn-avail-off {
  background: #fde047;
  border: 1px solid #ca8a04;
  color: #713f12;
  font-weight: 650;
}
.btn-avail-off:hover { background: #facc15; color: #713f12; }
.avail-grid th.sticky-fn, .avail-grid td.sticky-fn {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 110px;
}
.avail-grid thead th.sticky-fn { z-index: 4; background: #071526; }
.avail-grid td.sticky-fn { background: #eef3fa; }
.avail-grid th.sticky, .avail-grid td.sticky {
  position: sticky;
  left: 110px;
  z-index: 2;
  min-width: 160px;
  box-shadow: 2px 0 0 #c5d0e0;
}
.avail-grid thead th.sticky { z-index: 4; background: #071526; }
.avail-grid td.sticky { 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; }
.avail-tip-text[hidden] { display: none !important; }
.avail-tip-edit {
  display: block;
  width: 100%;
  min-height: 78px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(212, 160, 23, .45);
  border-radius: 8px;
  background: #10263f;
  color: #f4f1e8;
  font: inherit;
  resize: vertical;
}
.avail-tip-edit:focus { outline: 2px solid var(--gold, #d4a017); }
.avail-tip-edit[hidden] { display: none !important; }
.avail-tip-actions { display: flex; flex-wrap: wrap; gap: 6px; }
input[data-copy-hover] { cursor: copy; }
.avail-tip-copy,
.avail-tip-add,
.avail-tip-save,
.avail-tip-cancel {
  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,
.avail-tip-add:hover,
.avail-tip-save:hover { filter: brightness(1.05); }
.avail-tip-copy.is-copied { background: #15803d; color: #fff; }
.avail-tip-add[hidden],
.avail-tip-save[hidden],
.avail-tip-cancel[hidden],
.avail-tip-copy[hidden] { display: none !important; }
.avail-tip-cancel {
  background: transparent;
  color: #f4f1e8;
  border: 1px solid rgba(244, 241, 232, .35);
}

.mileage-box {
  background: #fff8e8;
  border: 1px solid #e6d7a8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #3b2f08;
}
.mileage-box.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.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); }

.time-quarter {
  display: flex;
  gap: 8px;
}
.time-quarter .form-select { flex: 1; min-width: 0; }

.tech-rate-history {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.tech-rate-history li { margin: 0 0 2px; }
.tech-rate-history li.is-current {
  color: var(--navy);
  font-weight: 650;
}

.exp-month-search { margin-top: 12px; }
.exp-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.exp-month-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.exp-month-card:hover {
  border-color: #d4c48a;
  color: inherit;
}
.exp-month-card.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,162,39,.35);
}
.exp-month-kicker {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-ink);
}
.exp-month-name {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
}
.exp-month-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
/* ---------- Phone system ---------- */
.phone-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2400;
  pointer-events: none;
}
.phone-dock > * { pointer-events: auto; }
.phone-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.35);
  display: grid;
  place-items: center;
  font-size: 22px;
  position: relative;
}
.phone-fab:hover { filter: brightness(1.08); }
.phone-fab.is-ringing { background: linear-gradient(180deg, #c0392b, #8b1e16); animation: phonePulse 1s ease-in-out infinite; }
.phone-fab.is-active { background: linear-gradient(180deg, #1b7f5a, #0f5a3e); }
.phone-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.7);
  animation: phoneRipple 1.4s ease-out infinite;
}
@keyframes phonePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes phoneRipple {
  0% { opacity: 0.8; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.35); }
}
.phone-widget {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(360px, calc(100vw - 24px));
  background: #0c1c33;
  color: #e8edf5;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.phone-widget.is-pip { box-shadow: none; width: 100%; bottom: auto; right: auto; position: relative; }
.phone-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: grab;
  user-select: none;
}
.phone-widget-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 650;
}
.phone-widget-tools { display: flex; gap: 4px; }
.phone-icon-btn {
  background: transparent;
  border: 0;
  color: #c5d0de;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.phone-icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.phone-widget-body { padding: 14px 16px 16px; }
.phone-call-name { font-size: 18px; font-weight: 650; }
.phone-call-num { font-family: "IBM Plex Mono", ui-monospace, monospace; color: #9db0c9; font-size: 13px; }
.phone-call-meta { font-size: 12px; color: #9db0c9; margin-top: 4px; }
.phone-call-timer { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 22px; margin: 10px 0; }
.phone-call-actions { display: flex; gap: 8px; margin-top: 12px; }
.phone-call-actions .btn { flex: 1; }
.btn-phone-answer { background: #1b7f5a; color: #fff; border: 0; font-weight: 650; }
.btn-phone-decline { background: #9b3b3b; color: #fff; border: 0; font-weight: 650; }
.phone-mini-dial input { background: #081526; color: #fff; border-color: #1a3a66; }
.phone-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.phone-pad button {
  background: #eef3f9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 0;
  font-weight: 650;
  font-size: 16px;
}
.phone-widget .phone-pad button {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}
.phone-incoming-banner {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 2450;
  background: #0c1c33;
  color: #fff;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: min(420px, calc(100vw - 24px));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-incoming-banner .phone-call-actions { margin-top: 0; }
@media (max-width: 700px) {
  .phone-dock { right: 12px; bottom: 12px; }
}

.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, .phone-dock { display: none !important; }
  .paystub { border: 0; max-width: none; }
  .main, .content { padding: 0 !important; margin: 0 !important; }
}

.hr-editor-layout { align-items: flex-start; }
.hr-tools {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  z-index: 6;
  padding-bottom: 8px;
}
.hr-pages { display: flex; flex-direction: column; gap: 16px; }
.hr-page {
  position: relative;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11,31,58,.12);
  overflow: hidden;
}
.hr-page canvas, .hr-page > img { display: block; width: 100%; height: auto; }
.hr-layer { position: absolute; inset: 0; }
.hr-field {
  position: absolute;
  border: 1.5px solid #c9a227;
  background: rgba(201,162,39,.2);
  color: #6b5410;
  font-size: 11px;
  overflow: hidden;
  cursor: move;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(11,31,58,.12);
}
.hr-field.is-on { box-shadow: 0 0 0 2px #0b1f3a, 0 2px 8px rgba(11,31,58,.16); }
.hr-field.is-required::after { content: "*"; color: #9b3b3b; position: absolute; top: 1px; right: 5px; font-weight: 700; }
.hr-field-label { display: block; padding: 3px 8px; font-weight: 700; letter-spacing: .02em; pointer-events: none; }
.hr-field-signature { background: rgba(201,162,39,.28); border-color: #c9a227; color: #6b5410; }
.hr-field-initials { background: rgba(27,127,90,.22); border-color: #1b7f5a; color: #0f5132; }
.hr-field-date { background: rgba(59,130,246,.22); border-color: #3b82f6; color: #1e3a8a; }
.hr-field-first_name,
.hr-field-last_name,
.hr-field-contractor_name { background: rgba(43,108,176,.22); border-color: #2b6cb0; color: #1a365d; }
.hr-field-email { background: rgba(107,91,149,.22); border-color: #6b5b95; color: #3d2e6b; }
.hr-field-address { background: rgba(194,120,3,.2); border-color: #c27803; color: #7a4a00; }
.hr-field-text { background: rgba(91,103,120,.18); border-color: #5b6778; color: #1c2430; }
.hr-field-checkbox { background: rgba(27,127,90,.16); border-color: #1b7f5a; color: #0f5132; }
.hr-resize {
  position: absolute; right: 0; bottom: 0; width: 10px; height: 10px;
  background: #c9a227; cursor: nwse-resize;
}
.hr-field.is-fill {
  cursor: default;
  display: flex;
  align-items: stretch;
  background-color: rgba(255,255,255,.55);
}
.hr-field.is-fill input, .hr-field.is-fill textarea {
  border: 0; background: transparent; width: 100%; font: inherit; padding: 2px 6px; resize: none;
}
.hr-sign-btn {
  width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; padding: 0;
}
.hr-sign-btn img { width: 100%; height: 100%; object-fit: contain; }
.hr-pad {
  position: fixed; inset: 0; background: rgba(7,14,24,.55); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hr-pad-card { background: #fff; border-radius: 12px; padding: 16px; width: min(560px, 100%); }
.hr-pad-card canvas { width: 100%; border: 1px solid #c5d0e0; border-radius: 8px; background: #f7fafc; }

