:root {
  font-family:"Segoe UI",Arial,sans-serif;
  color:#17263d;
  background:#f3f5f9;
  font-size:14px;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
}

button {
  cursor:pointer;
}

button:disabled {
  opacity:.48;
  cursor:not-allowed;
}

[hidden] {
  display:none!important;
}

h1,h2,h3,p {
  margin-top:0;
}

h1 {
  font-size:29px;
  letter-spacing:-.7px;
  margin-bottom:0;
}

h2 {
  font-size:22px;
  letter-spacing:-.4px;
  margin-bottom:12px;
}

h3 {
  font-size:16px;
  margin-bottom:0;
}

label {
  font-size:13px;
  font-weight:600;
}

input,select,textarea {
  width:100%;
  border:1px solid #cfd7e3;
  border-radius:7px;
  background:white;
  padding:10px 12px;
  color:#17263d;
  min-height:41px;
}

input:focus,select:focus,textarea:focus {
  outline:3px solid #dce7ff;
  border-color:#2862dc;
}

textarea {
  resize:vertical;
  min-height:90px;
}

input[readonly] {
  background:#f4f6fa;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid transparent;
  border-radius:7px;
  padding:10px 15px;
  font-weight:600;
  white-space:nowrap;
  min-height:40px;
}

.primary {
  background:#285ed1;
  color:white;
}

.primary:hover {
  background:#1d4db8;
}

.secondary {
  background:white;
  border-color:#ced7e4;
  color:#233b5e;
}

.secondary:hover {
  background:#f5f8fd;
}

.subtle {
  background:#edf2fb;
  color:#234c91;
}

.danger {
  background:#fff2f1;
  border-color:#f0c5c0;
  color:#a6322b;
}

.small {
  padding:6px 9px;
  min-height:30px;
  font-size:12px;
}

.full {
  width:100%;
}

.muted {
  color:#69778c;
  font-weight:400;
}

.eyebrow {
  font-size:11px;
  letter-spacing:1.8px;
  font-weight:700;
  margin-bottom:10px;
  text-transform:uppercase;
}

.blue {
  color:#3465b9;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px;
  letter-spacing:1.7px;
  font-weight:700;
}

.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:47px;
  height:43px;
  background:#326be0;
  border-radius:9px;
  color:white;
  letter-spacing:-.5px;
  font-size:17px;
}

.login-screen {
  min-height:100vh;
  display:grid;
  grid-template-columns:48% 52%;
}

.login-story {
  background:#122644;
  color:white;
  padding:48px 64px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:650px;
}

.login-story h1 {
  font-size:55px;
  line-height:1.12;
  margin:18px 0 24px;
  letter-spacing:-2px;
}

.login-story .eyebrow {
  color:#8fbcff;
}

.story-copy {
  font-size:17px;
  line-height:1.7;
  max-width:390px;
  color:#bbcbe2;
}

.story-footer {
  font-size:12px;
  color:#859cba;
  margin:0;
}

.login-side {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.login-card {
  max-width:390px;
  width:100%;
}

.login-card h2 {
  font-size:29px;
}

.login-card .muted {
  line-height:1.6;
  margin-bottom:28px;
}

.login-card label {
  display:block;
  margin:16px 0 8px;
}

.login-help {
  font-size:12px;
  color:#7b879a;
  line-height:1.6;
  margin-top:20px;
}

.form-error {
  color:#ae3329;
  font-size:13px;
  min-height:20px;
  margin:14px 0;
}

.login-card .button {
  min-height:44px;
}

.workspace {
  display:grid;
  grid-template-columns:222px minmax(0,1fr);
  min-height:100vh;
}

.sidebar {
  background:#122644;
  color:white;
  position:sticky;
  top:0;
  height:100vh;
  padding:28px 18px;
  display:flex;
  flex-direction:column;
}

.sidebar .brand {
  margin-bottom:42px;
}

.nav-caption {
  color:#7e99bc;
  font-size:9px;
  letter-spacing:1.2px;
  margin:0 12px 12px;
}

.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.nav-button {
  border:0;
  color:#bbcce4;
  background:transparent;
  padding:12px 14px;
  border-radius:7px;
  text-align:left;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-button:hover {
  background:#1b3659;
}

.nav-button.active {
  background:#285ed1;
  color:white;
}

.nav-count {
  font-size:11px;
  background:#ffffff1f;
  padding:2px 7px;
  border-radius:5px;
}

.sidebar-bottom {
  margin-top:auto;
  padding:25px 10px 0;
  border-top:1px solid #294263;
  color:#b0c5df;
  font-size:11px;
}

.sidebar-bottom p {
  margin:10px 0 0;
  color:#7894b9;
}

.connection-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:100%;
  background:#5dc8a0;
  margin-right:5px;
}

.main {
  padding:30px 38px 18px;
  min-width:0;
}

.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:28px;
  gap:20px;
}

.topbar .eyebrow {
  margin-bottom:6px;
}

.user-area {
  display:flex;
  gap:18px;
  align-items:center;
}

.user-area strong,.user-area span {
  display:block;
  font-size:12px;
}

.user-area span {
  margin-top:4px;
}

.toolbar {
  display:flex;
  gap:14px;
  align-items:flex-end;
  margin-bottom:22px;
}

.period-control {
  display:flex;
  flex-direction:column;
  gap:7px;
  width:205px;
}

.period-control label {
  color:#64748b;
  font-size:11px;
}

.search-control {
  margin-left:auto;
  width:310px;
}

.search-control input {
  background:white;
}

.notice {
  padding:12px 16px;
  border-radius:7px;
  background:#e8f4ef;
  color:#216b51;
  margin-bottom:18px;
  border:1px solid #c8e5d8;
}

.notice.error {
  background:#fff1ef;
  border-color:#f4cec7;
  color:#a0362e;
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:17px;
  margin-bottom:24px;
}

.stat {
  padding:21px 22px;
  background:white;
  border:1px solid #e1e7f0;
  border-radius:10px;
}

.stat .stat-label {
  font-size:12px;
  color:#6b7b91;
  margin-bottom:13px;
}

.stat .stat-value {
  font-size:32px;
  line-height:1;
  font-weight:700;
  letter-spacing:-1px;
}

.stat .stat-note {
  font-size:11px;
  color:#7d8ba0;
  margin:11px 0 0;
}

.stat.green .stat-value {
  color:#168063;
}

.stat.amber .stat-value {
  color:#b67718;
}

.stat.blue .stat-value {
  color:#285ed1;
}

.card {
  background:white;
  border:1px solid #e0e6ef;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:22px;
}

.card-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 22px;
  border-bottom:1px solid #edf0f5;
  gap:15px;
}

.card-head p {
  font-size:12px;
  color:#77869b;
  margin:6px 0 0;
}

.table-wrap {
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
}

th {
  background:#f8fafd;
  color:#7b879b;
  font-size:10px;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-weight:700;
  white-space:nowrap;
}

th,td {
  padding:13px 18px;
  border-bottom:1px solid #edf1f6;
}

td {
  font-size:12px;
  line-height:1.5;
  vertical-align:middle;
}

tbody tr:last-child td {
  border-bottom:0;
}

tbody tr:hover {
  background:#fbfcff;
}

td strong {
  font-size:13px;
}

.cell-sub {
  font-size:11px;
  color:#8390a3;
  margin-top:3px;
}

.actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.badge {
  display:inline-block;
  border-radius:5px;
  padding:3px 8px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}

.badge.green {
  background:#e7f5ef;
  color:#218367;
}

.badge.blue {
  background:#e8effd;
  color:#315dba;
}

.badge.amber {
  background:#fff3dc;
  color:#9c6b17;
}

.badge.gray {
  background:#edf0f4;
  color:#67748b;
}

.badge.red {
  background:#feebe8;
  color:#ad4236;
}

.empty {
  padding:38px 22px;
  text-align:center;
  color:#8490a2;
  font-size:13px;
}

.section-note {
  font-size:12px;
  color:#74839a;
  margin:4px 0 20px;
  line-height:1.6;
}

.split {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);
  gap:22px;
}

.request-card {
  padding:18px 22px;
  border-bottom:1px solid #edf1f6;
}

.request-card:last-child {
  border-bottom:0;
}

.request-card .request-title {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:9px;
}

.request-card p {
  font-size:13px;
  line-height:1.6;
  white-space:pre-wrap;
  margin:8px 0 12px;
}

.request-card .muted {
  font-size:11px;
}

.request-response {
  padding:12px;
  background:#f4f7fc;
  border-radius:6px;
  margin:12px 0;
}

.filters {
  display:flex;
  gap:10px;
  padding:16px 22px;
  border-bottom:1px solid #edf1f6;
  align-items:center;
}

.filters select {
  width:auto;
  min-width:180px;
}

.page-footer {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#91a0b3;
  margin-top:28px;
}

dialog {
  border:0;
  border-radius:12px;
  padding:0;
  box-shadow:0 24px 80px #1024423d;
  width:min(520px,calc(100% - 32px));
  max-height:90vh;
  overflow-y:auto;
  color:#17263d;
}

dialog::backdrop {
  background:#12264480;
  backdrop-filter:blur(2px);
}

.dialog-content {
  padding:26px;
}

.dialog-content h2 {
  font-size:21px;
}

.dialog-help {
  font-size:12px;
  color:#718097;
  line-height:1.6;
  margin-bottom:20px;
}

.field {
  margin-bottom:15px;
}

.field label {
  display:block;
  margin-bottom:7px;
}

.dialog-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  padding-top:10px;
}

.dialog-error {
  font-size:12px;
  line-height:1.5;
  color:#ad382b;
  white-space:pre-wrap;
  margin:14px 0;
}

.token-field {
  font-family:monospace;
  font-size:12px;
}

.details {
  display:grid;
  grid-template-columns:150px 1fr;
  gap:14px;
  font-size:13px;
}

.details dt {
  color:#718097;
}

.details dd {
  margin:0;
  overflow-wrap:anywhere;
}

.audit-details {
  max-width:440px;
  overflow-wrap:anywhere;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:1150px) {
  .main {
    padding:25px 24px;
  }
  .split {
    grid-template-columns:1fr;
  }
  .stats {
    gap:10px;
  }
  .stat {
    padding:18px 16px;
  }
  .search-control {
    width:240px;
  }
  .user-area {
    gap:10px;
  }
}

@media(max-width:850px) {
  .login-screen {
    grid-template-columns:1fr;
  }
  .login-story {
    min-height:220px;
    padding:26px;
  }
  .login-story h1 {
    font-size:31px;
    letter-spacing:-1px;
    margin:18px 0;
  }
  .login-story .story-copy,.story-footer {
    display:none;
  }
  .login-story .brand {
    margin-bottom:15px;
  }
  .login-side {
    padding:35px 24px;
  }
  .workspace {
    display:block;
  }
  .sidebar {
    position:static;
    height:auto;
    padding:18px;
  }
  .sidebar .brand {
    margin:0 0 18px;
  }
  .nav-caption,.sidebar-bottom {
    display:none;
  }
  .sidebar nav {
    flex-direction:row;
    overflow-x:auto;
    gap:6px;
  }
  .nav-button {
    white-space:nowrap;
    padding:10px 13px;
  }
  .main {
    padding:24px 18px;
  }
  .topbar {
    align-items:flex-start;
  }
  .user-area {
    align-items:flex-end;
    flex-direction:column;
    gap:7px;
  }
  .toolbar {
    flex-wrap:wrap;
  }
  .period-control {
    width:190px;
  }
  .search-control {
    width:auto;
    flex:1;
    min-width:170px;
  }
  .stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .card-head {
    padding:16px;
  }
  .filters {
    padding:14px 16px;
  }
  .request-card {
    padding:16px;
  }
  th,td {
    padding:12px 14px;
  }
  .details {
    grid-template-columns:110px 1fr;
  }
  h1 {
    font-size:25px;
  }
}


.report-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 16px;margin-bottom:18px;}
.report-filters .field {margin-bottom:0;}
.report-filter-actions,.report-actions {display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;}
.report-actions {margin:16px 0;}
.report-columns {margin:12px 0;color:#526681;}
.report-columns summary {cursor:pointer;font-size:13px;}
.report-column-choices {display:flex;flex-wrap:wrap;gap:12px;padding:12px 0;}
.report-column-choices label {display:flex;align-items:center;gap:6px;font-size:13px;}
.report-column-choices input {width:auto;}
.report-totals {display:flex;gap:12px 24px;flex-wrap:wrap;padding:15px;background:#eef3fa;border-radius:8px;margin:15px 0;}
.report-legend {font-size:12px;color:#64748b;line-height:1.7;max-width:1100px;}
.report-calendar table {font-size:12px;}
.report-calendar th:first-child,.report-calendar td:first-child {position:sticky;left:0;background:white;z-index:1;min-width:210px;max-width:260px;white-space:normal;}
.report-calendar th:first-child {background:#f4f7fb;z-index:2;}
.report-calendar td {padding:8px 10px;}
.report-calendar th:not(:first-child) {text-align:center;min-width:54px;}
.report-weekend {color:#a54338;}
.button.calendar-cell {display:flex;flex-direction:column;min-width:45px;background:#f4f7fb;padding:6px 8px;border:0;font-size:12px;}
.calendar-cell span {display:flex;flex-direction:column;gap:3px;}
.calendar-extra {color:#2854a1;}
.calendar-pending {color:#935e0d;}
.calendar-empty {color:#b2bdcc;}
.report-shift {padding:12px 0;border-bottom:1px solid #e3eaf4;}
@media(max-width:600px) {.report-filters{grid-template-columns:1fr;}.report-calendar th:first-child,.report-calendar td:first-child{min-width:155px;max-width:170px;}}
.report-filters,.report-actions,.report-columns,.report-totals,.report-legend {margin-left:22px;margin-right:22px;}
.report-filters {margin-top:18px;}
@media(max-width:600px) {.report-filters,.report-actions,.report-columns,.report-totals,.report-legend{margin-left:14px;margin-right:14px;}}

.list-pager{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:16px 0 0}.list-pager .actions{flex-wrap:wrap}.list-pager label{display:flex;gap:8px;align-items:center}.list-pager select{width:auto;min-width:64px}.page-status{color:var(--muted,#596579);font-size:14px}

.archive-card > .actions,.archive-card > .dialog-help,.archive-card > .list-pager{margin:12px 22px}.archive-card > .list-pager{padding-bottom:14px}.archive-card select{max-width:100%}.archive-card .actions label{max-width:100%}
@media(max-width:600px){.archive-card > .actions,.archive-card > .dialog-help,.archive-card > .list-pager{margin-left:14px;margin-right:14px}}


/* Reference-inspired visual system. No remote fonts or image dependencies. */
:root {
  color:#111d3b;
  background:#f4f8fc;
  --navy:#152746;
  --teal:#008c94;
  --line:#dfe8f1;
}
.app-header {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:76px;
  padding:14px 30px;
  color:white;
  background:linear-gradient(115deg,#152746,#1c3153);
}
.app-header .brand { font-size:26px; font-weight:750; letter-spacing:-.5px; }
.shield-mark {
  display:grid; place-items:center; width:38px; height:43px;
  flex-shrink:0;
}
.header-caption { color:#c7d6e9; font-size:13px; }
.workspace { grid-template-rows:auto 1fr; grid-template-columns:222px minmax(0,1fr); }
.sidebar {
  background:#fff; color:var(--navy); border-right:1px solid var(--line);
  top:0; height:100vh; padding:26px 12px 22px;
}
.nav-caption { color:#7b8ba0; letter-spacing:1px; font-size:9px; margin-bottom:18px; }
.sidebar nav { gap:6px; }
.nav-button { min-height:47px; color:#30415a; border-radius:11px; padding:11px 13px; gap:12px; font-weight:500; font-size:14px; }
.nav-button svg { width:22px; height:22px; flex-shrink:0; }
.nav-label { flex:1; }
.nav-button:hover { background:#f0f8fa; }
.nav-button.active { background:#d2f5f3; color:#006c74; font-weight:700; }
.nav-count { background:#b9e8e5; color:#005c64; }
.sidebar-bottom { color:#64768d; border-color:var(--line); line-height:1.6; }
.sidebar-bottom p { color:#7b8ba0; }
.load-failed .connection-dot { background:#cf6545; }
.main { padding:26px 30px 18px; background:radial-gradient(ellipse at top right,#e7f6f6 0,transparent 50%); }
.topbar { margin-bottom:22px; }
h1 { font-size:28px; color:#111d3b; }
.blue,.eyebrow.blue { color:#007c85; }
.button { border-radius:10px; min-height:42px; }
.primary { background:linear-gradient(120deg,#009eaa,#008a91); color:white; }
.primary:hover { background:#007a83; }
.subtle { background:#e4f4f4; color:#17656c; }
.secondary { border-color:#d0dfe9; color:#243a54; }
input,select,textarea { border-radius:10px; }
input:focus,select:focus,textarea:focus { outline:3px solid #c8efec; border-color:var(--teal); }
button:focus-visible { outline:3px solid #008c94; outline-offset:3px; }
.toolbar { border:1px solid var(--line); border-radius:16px; background:#ffffffd9; padding:14px 18px; }
.welcome { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:8px 0 16px; }
.welcome h2 { font-size:clamp(27px,2.7vw,39px); letter-spacing:-1.1px; margin:8px 0 10px; overflow-wrap:anywhere; }
.welcome-copy { font-size:16px; color:#6a809a; margin:0; line-height:1.5; }
.office-chip { display:flex; align-items:center; gap:8px; flex-shrink:0; background:#caf4ed; padding:14px 18px; border-radius:18px; color:#175758; font-weight:600; font-size:13px; }
.office-chip svg { width:22px; height:22px; }
.quick-actions { display:flex; flex-wrap:wrap; gap:10px; margin:4px 0 24px; }
.quick-actions .button { min-height:48px; padding:12px 20px; }
.stat { border-radius:18px; border-color:var(--line); box-shadow:0 4px 14px #163d6510; padding:24px 22px; }
.stat .stat-value { font-size:42px; color:#172b4d; }
.stat.green { background:linear-gradient(130deg,#009da8,#00858f); border-color:transparent; }
.stat.green .stat-label,.stat.green .stat-note,.stat.green .stat-value { color:white; }
.stat.green .stat-note { opacity:.85; }
.stat.blue .stat-value { color:#007e8a; }
.stat .stat-label { font-size:13px; line-height:1.4; min-height:36px; color:#536980; }
.stat .stat-note { line-height:1.5; color:#697f94; }
.card { border-radius:18px; border-color:var(--line); box-shadow:0 4px 18px #163d650c; }
.card-head { padding:22px; }
.card-head h3 { font-size:19px; letter-spacing:-.4px; }
.badge { border-radius:7px; }
.badge.blue { background:#e1f4f5; color:#006c77; }
.login-story { background:linear-gradient(150deg,#152746,#203a5b); }
.login-story .eyebrow { color:#91e2db; }
.login-story h1 { color:white; }
.brand-mark { background:#008d98; }
.login-side { background:radial-gradient(ellipse at top,#e1f7f4,transparent 75%); }
.login-card { background:white; padding:32px; border-radius:24px; max-width:450px; border:1px solid var(--line); box-shadow:0 12px 40px #163d650d; }
@media(min-width:851px) {
  .sidebar { align-self:start; }
}
@media(max-width:1150px) {
  .welcome { align-items:flex-start; flex-direction:column; gap:14px; }
  .main { padding:24px; }
}
@media(max-width:850px) {
  .workspace { display:block; }
  .app-header { padding:16px 20px; min-height:70px; }
  .app-header .brand { font-size:21px; }
  .header-caption { display:none; }
  .sidebar { height:auto; padding:12px; border-bottom:1px solid var(--line); }
  .sidebar nav { flex-direction:row; }
  .nav-button { flex-shrink:0; min-height:44px; }
  .main { padding:22px 16px; }
  .welcome h2 { font-size:29px; }
  .welcome-copy { font-size:15px; }
  .office-chip { padding:11px 14px; }
  .toolbar { padding:14px; }
  .card-head { padding:18px; }
}
@media(max-width:480px) {
  .topbar { flex-wrap:wrap; gap:14px; }
  .user-area { width:100%; flex-direction:row; align-items:center; flex-wrap:wrap; justify-content:flex-start; }
  .user-area>div { margin-right:auto; text-align:left; }
  .stat { padding:18px 14px; }
  .stat .stat-value { font-size:34px; }
  .quick-actions .button { flex:1; }
  .login-card { padding:24px; }
  .shield-mark { width:30px; height:35px; font-size:24px; }
}

/* Office overview: live shifts and a separate selected-month review queue. */
.overview-page { display:grid; gap:20px; }
.overview-page .quick-actions { margin:0; }
.overview-page .welcome { padding-bottom:0; }
.active-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 22px 22px; gap:12px; }
.active-person { display:flex; align-items:center; gap:14px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#f8fcfd; min-width:0; }
.person-avatar { flex-shrink:0; display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:#d2f5f3; color:#006c74; font-weight:700; }
.active-person-copy { flex:1; min-width:0; overflow-wrap:anywhere; }
.active-person-copy strong { font-size:15px; }
.active-person-copy p { color:#64768d; font-size:12px; margin:6px 0 8px; }
.review-strip { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; background:#fff8e8; border:1px solid #efdfb9; border-radius:16px; }
.review-strip p { margin:7px 0 0; color:#6b614d; font-size:13px; }
.filter-result { color:#64768d; font-size:13px; }
.load-state { padding:48px 24px; border:1px solid var(--line); border-radius:18px; background:white; display:flex; align-items:center; flex-direction:column; gap:14px; text-align:center; }
.load-state strong { font-size:19px; }
.load-state p { color:#64768d; margin:0; overflow-wrap:anywhere; }
.load-state.failed { border-color:#e8cbc4; }
.loading-mark { width:28px; height:28px; border:3px solid #d2f5f3; border-top-color:#008c94; border-radius:50%; }
@media(max-width:1150px) { .active-grid { grid-template-columns:1fr; } }
@media(max-width:480px) {
  .active-grid { padding:0 14px 14px; }
  .active-person { flex-wrap:wrap; padding:14px; }
  .active-person .button { margin-left:62px; }
  .review-strip { align-items:flex-start; flex-direction:column; padding:18px; }
}

.filters { flex-wrap:wrap; }

/* Timesheets and immutable archive revisions share the same accounting summary. */
.report-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:20px 22px 12px; }
.report-metric { min-width:0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#f8fbfd; }
.report-metric p { margin:0 0 14px; color:#536980; font-size:12px; min-height:32px; }
.report-metric strong { display:block; color:#152746; font-size:28px; overflow-wrap:anywhere; }
.report-metric small { display:block; margin-top:10px; color:#64768d; line-height:1.5; }
.report-metric.total { background:#d2f5f3; border-color:#b8e7e3; }
.report-metric.pending { background:#fff8e8; border-color:#efdfb9; }
.report-scope,.report-filter-status { margin:12px 22px 18px; color:#64768d; line-height:1.6; font-size:13px; }
.report-filter-status { padding:12px 16px; border-radius:10px; background:#eff7f7; color:#22626a; }
.report-filter-status.draft { background:#fff8e8; color:#795819; }
.archive-state,.archive-blockers { margin:18px 22px; padding:18px; border:1px solid var(--line); border-radius:14px; }
.archive-state.closed { background:#e4f6f0; border-color:#bfe6d6; }
.archive-state.open { background:#eef5fc; }
.archive-state.history { background:#f0effc; border-color:#d9d4f2; }
.archive-state strong { font-size:17px; }
.archive-state p { color:#536980; margin:10px 0 0; line-height:1.6; }
.archive-blockers { background:#fff8e8; border-color:#efdfb9; color:#6d5424; }
.archive-blockers ul { padding-left:22px; margin:12px 0 0; line-height:1.8; }
@media(max-width:1100px) { .report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .report-metrics { margin:16px 14px 12px; gap:10px; }
  .report-metric { padding:14px; }
  .report-metric strong { font-size:25px; }
  .report-scope,.report-filter-status,.archive-state,.archive-blockers { margin-left:14px; margin-right:14px; }
}

.employee-profile,.correction-detail { display:grid; gap:20px; }
.employee-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.employee-heading h3 { font-size:22px; overflow-wrap:anywhere; }
.employee-heading p { margin:8px 0 0; }
.employee-profile .report-metrics { margin:0; gap:10px; }
.employee-profile .report-metric { padding:14px; }
.profile-active,.request-message { padding:16px; border-radius:12px; background:#eff8f8; border:1px solid #d5e9e8; }
.profile-active p { margin-bottom:12px; }
.profile-active .button { margin-left:12px; }
.request-message p { margin:10px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.request-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.shift-comparison { border:1px solid var(--line); border-radius:12px; padding:16px; min-width:0; }
.shift-comparison .details { grid-template-columns:1fr; gap:5px; margin-bottom:0; }
.shift-comparison dt { color:#64768d; font-size:12px; margin-top:8px; }
.shift-comparison dd { margin:0; overflow-wrap:anywhere; }
.unread-label { display:inline-block; border-radius:6px; color:#006c74; background:#d2f5f3; padding:4px 7px; font-size:11px; margin:0 8px 6px 0; }
@media(max-width:600px) { .request-comparison { grid-template-columns:1fr; } .employee-profile .report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }


.crew-list{display:grid;gap:12px;min-width:240px}.crew-seat{display:grid;gap:4px}.crew-seat strong{font-size:12px;color:var(--muted)}.crew-seat p{margin:0}

.editor-options{border-top:1px solid #dce5ef;margin-top:16px;padding-top:16px}.editor-options summary{cursor:pointer;color:#087e8b;font-weight:600}.editor-options-buttons{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}

.header-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:9px}.header-icon svg{width:22px;height:22px}.header-count{position:absolute;right:-5px;top:-5px;min-width:18px;padding:2px 5px;border-radius:12px;background:#d94b4b;color:white;font-size:11px}.header-count[hidden]{display:none}.timesheet-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.settings-grid{display:flex;gap:12px;flex-wrap:wrap}

/* Office UX 0.22: readable tables and explicit shift actions. */
:root { --muted:#52637a; }
th { color:#52637a; font-size:12px; letter-spacing:.2px; text-transform:none; }
td,td strong { font-size:14px; }
.cell-sub { color:#596b82; font-size:12px; }
.badge { font-size:12px; }
.badge.green { color:#17634d; }
.dialog-help { color:#52637a; font-size:14px; }
.period-control label { color:#52637a; font-size:12px; }
.empty,.section-note { color:#52637a; }
.welcome-copy { color:#52637a; }
.nav-caption { color:#52637a; font-size:11px; }
.sidebar-bottom p { color:#52637a; }
.stat .stat-note { font-size:12px; color:#52637a; }
.stat.green { background:linear-gradient(130deg,#007b83,#006b73); }
.stat.green .stat-note { color:white; opacity:1; }
.primary { background:linear-gradient(120deg,#007b83,#006b73); color:#fff; }
.primary:hover { background:#005e66; }
.danger { background:#b52f3b; color:#fff; border-color:#b52f3b; }
.danger:hover { background:#962431; }
.danger-outline { color:#9e2932; border-color:#dfb4b9; background:#fff5f5; }
.danger-outline:hover { background:#ffe8eb; }
dialog { width:min(640px,calc(100% - 32px)); }
.dialog-actions { position:sticky; bottom:0; background:white; padding:16px 0 2px; border-top:1px solid var(--line); margin-top:18px; }
.shift-card-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
.shift-card-details>div { padding:12px; border:1px solid var(--line); border-radius:10px; background:#f8fbfd; }
.shift-card-details dt { font-size:12px; color:#52637a; margin-bottom:6px; }
.shift-card-details dd { margin:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.shift-card-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.shift-card-actions .button { white-space:normal; min-height:46px; }
.danger-zone { padding-top:16px; margin-top:18px; border-top:1px solid var(--line); }
.change-preview,.draft-restored,.assignment-warning { padding:14px 16px; border:1px solid #c6e1e2; border-radius:12px; background:#eff8f8; color:#244e56; line-height:1.6; font-size:14px; }
.change-preview { margin:18px 0; }
.change-preview p { margin:10px 0 0; }
.change-preview small { display:block; font-size:12px; margin-top:10px; }
.draft-restored,.assignment-warning { background:#fff8e8; border-color:#ead7aa; color:#705018; }
@media(max-width:600px) {
  .dialog-content { padding:20px; }
  .shift-card-details,.shift-card-actions { grid-template-columns:1fr; }
}

/* Approved compact timesheet, 0.23.0. */
.report-workspace { border:1px solid var(--line); border-radius:16px; background:white; padding:20px; box-shadow:0 4px 18px #163d6508; }
.report-work-head,.report-month,.report-view-switch { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.report-work-head { gap:12px; margin-bottom:18px; }
.report-work-head h3 { font-size:19px; margin-right:8px; }
.report-month input { width:180px; }
.report-view-switch { margin-left:auto; }
.report-filter-form { margin-bottom:10px; position:relative; z-index:10; }
.report-filter-bar { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.report-filter-bar>.field { flex:1; min-width:170px; margin:0; }
.report-filter-bar>.field:first-child { flex:1.6; }
.report-filter-bar label { font-size:12px; color:#52637a; }
.report-advanced>summary,.report-columns>summary { cursor:pointer; border:1px solid #d0dfe9; border-radius:10px; padding:11px 14px; color:#243a54; font-weight:600; font-size:13px; list-style:none; }
.report-advanced[open]>summary { background:#d2f5f3; }
.report-advanced-grid { position:absolute; right:0; top:100%; margin-top:10px; width:min(670px,100%); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; background:white; border:1px solid var(--line); box-shadow:0 12px 30px #15274622; padding:18px; border-radius:12px; }
.report-advanced-grid .field { margin:0; }
.report-workspace .report-filter-status { margin:10px 0; padding:8px 12px; font-size:12px; }
.report-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:16px; margin:16px 0; background:#eff5fa; border-radius:12px; }
.report-strip>div { display:flex; align-items:center; justify-content:space-between; gap:10px; border-right:1px solid #ccdbe7; padding-right:14px; }
.report-strip>div:last-child { border:0; }
.report-strip span { font-size:13px; color:#344b65; }
.report-strip strong { font-size:28px; color:#152746; }
.report-table-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.report-color-legend { display:flex; flex-wrap:wrap; gap:18px; font-size:12px; color:#344b65; }
.report-color-legend>span { display:inline-flex; align-items:center; gap:6px; }
.report-color-legend i { font-style:normal; }
.report-workspace .report-columns { margin:0; }
.report-column-choices { max-width:600px; }
.report-workspace .report-scope { margin:10px 0; font-size:12px; }
.report-calendar .table-wrap,.report-summary .table-wrap { max-height:65vh; overflow:auto; border:1px solid var(--line); border-radius:10px; }
.report-calendar th,.report-summary th { position:sticky; top:0; z-index:3; background:#eef4f9; }
.report-calendar th:not(:first-child) { min-width:34px; padding:10px 5px; }
.report-calendar td { padding:8px 4px; text-align:center; font-size:13px; }
.report-calendar th:first-child,.report-calendar td:first-child { min-width:225px; max-width:245px; text-align:left; padding:10px 12px; }
.report-calendar th:first-child { z-index:6; }
.report-calendar th:last-child,.report-calendar td:last-child { position:sticky; right:0; min-width:84px; background:#f8fbfd; z-index:2; }
.report-calendar th:nth-last-child(2),.report-calendar td:nth-last-child(2) { position:sticky; right:84px; min-width:88px; background:#e9f8f5; z-index:2; }
.report-calendar th:last-child,.report-calendar th:nth-last-child(2) { z-index:5; }
.button.calendar-cell { background:transparent; min-width:28px; padding:1px; border-radius:6px; margin:auto; min-height:32px; }
.calendar-cell>span { gap:3px; }
.calendar-regular,.calendar-extra,.calendar-pending { display:inline-flex; justify-content:center; align-items:center; min-width:26px; min-height:27px; padding:3px 5px; border-radius:7px; font-size:12px; font-weight:700; }
.calendar-regular,.summary-number.regular { background:#cef2ed; color:#145b59; }
.calendar-extra,.summary-number.extra { background:#fff0bb; color:#76500d; }
.calendar-pending,.summary-active { background:#fff; color:#44546a; border:1px dashed #7f8fa4; }
.calendar-empty { color:#a3afbd; }
.summary-number { display:inline-block; min-width:45px; text-align:center; padding:5px 10px; border-radius:8px; font-variant-numeric:tabular-nums; }
.summary-number.total { font-size:19px; color:#152746; font-weight:750; background:#e9f8f5; }
.summary-active { display:inline-block; padding:4px 9px; border-radius:8px; white-space:nowrap; }
.report-summary th,.report-summary td { padding:12px 14px; }
.report-summary td:not(:first-child) { text-align:center; }
.report-summary th:first-child,.report-summary td:first-child { position:sticky; left:0; background:white; z-index:2; min-width:230px; }
.report-summary th:first-child { background:#eef4f9; z-index:6; }
.report-summary .report-pinned-total { position:sticky; min-width:100px; background:#e9f8f5; z-index:2; }
.report-summary th.report-pinned-total { z-index:5; }
.report-summary th:last-child,.report-summary td:last-child { min-width:90px; }
.report-summary tbody tr:last-child td { background:#eef4f9; font-weight:700; border-top:2px solid #d7e2eb; }
.employee-link { background:transparent; color:#00666b; text-align:left; justify-content:flex-start; white-space:normal; padding:0; border:0; font-size:14px; font-weight:650; min-height:30px; }
.employee-link:hover { text-decoration:underline; }
.report-footnote { color:#52637a; font-size:12px; margin:12px 0 0; }
@media(max-width:1000px) { .report-work-head .report-view-switch{margin-left:0;} .report-strip{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px) { .report-workspace{padding:12px;} .report-filter-bar>.field{min-width:100%;} .report-advanced-grid{grid-template-columns:1fr;} .report-calendar th:first-child,.report-calendar td:first-child{min-width:160px;} .report-strip>div{border:0;padding:0;} }
.report-summary .report-pinned-active { position:sticky; right:0; min-width:90px; background:#f8fbfd; z-index:2; }
.report-summary th.report-pinned-active { z-index:5; }
.report-strip>.report-metric { padding:0 14px 0 0; border:0; border-right:1px solid #ccdbe7; border-radius:0; background:transparent; }
.report-strip>.report-metric:last-child { border:0; }
.report-applied { display:flex; flex-wrap:wrap; gap:6px; }
.report-applied:empty { display:none; }
.report-applied span { padding:4px 9px; background:#e9f6f4; color:#245b5e; border-radius:7px; font-size:12px; }
.report-summary .report-pinned-active { width:110px; min-width:110px; max-width:110px; white-space:normal; }

/* Duty planning is independent of payroll. Names and headers remain visible while scrolling. */
.plan-tabs{margin-bottom:18px}.plan-toolbar{display:flex;gap:18px;align-items:end;flex-wrap:wrap;padding:0 20px 16px}.plan-toolbar .field{min-width:220px;margin:0}.plan-toolbar .actions{flex:1}.plan-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 20px 18px;font-size:12px;color:var(--muted,#536b86)}
.plan-key{display:inline-block;border:1px solid #93dcd5;border-radius:8px;padding:7px 10px;color:#075b60;background:#d9f5f1}.plan-key.extra{background:#fff3cf;border-color:#ebce7b;color:#765315}.plan-scroll{max-height:65vh;overflow:auto}.plan-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:max-content}.plan-grid th,.plan-grid td{border-bottom:1px solid #e5edf5;border-right:1px solid #e5edf5;vertical-align:top;min-width:146px;width:146px;padding:8px}.plan-grid thead th{position:sticky;top:0;background:#f4f7fb;z-index:2;text-align:center}.plan-grid .plan-name{position:sticky;left:0;z-index:1;min-width:220px;width:220px;white-space:normal;text-align:left;background:#fff}.plan-grid thead .plan-name{z-index:3;background:#f4f7fb}.plan-grid small{display:block;font-size:11px;font-weight:400;margin-top:5px}.plan-grid .plan-weekend{color:#a45138;background:#fff9f1}.plan-entry.button{display:block;width:100%;white-space:normal;text-align:left;border-radius:9px;font-size:12px;min-height:56px;padding:9px;background:#d9f5f1;border:1px solid #93dcd5;color:#075b60}.plan-entry.plan-extra{background:#fff3cf;border-color:#ebce7b;color:#765315}.plan-add.button{width:100%;min-height:56px;background:#fff;border:1px dashed #d7e2ed;color:#637b94;font-size:20px}.plan-entry.button:hover,.plan-add.button:hover{outline:2px solid #008c96;outline-offset:-2px}.plan-carry{padding:18px}.plan-preview{max-height:46vh;overflow:auto;padding:4px}.plan-preview-dates{display:flex;gap:8px;flex-wrap:wrap}.plan-preview-dates p{margin:4px 0;font-size:13px}.plan-conflict{padding:10px;border-left:3px solid #d6a64c;background:#fff8e7;font-size:13px}.plan-preview h3{margin:12px 0;font-size:16px}

/* Exact month widths keep names from stretching calendar columns. */
.plan-grid{table-layout:fixed;min-width:0}.plan-grid.plan-days-28{width:4308px}.plan-grid.plan-days-29{width:4454px}.plan-grid.plan-days-30{width:4600px}.plan-grid.plan-days-31{width:4746px}.plan-grid th,.plan-grid td{box-sizing:border-box;overflow:hidden}.plan-person{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.plan-grid .plan-entry small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.filters .field{margin:0;min-width:190px}.filters{align-items:end}.plan-toolbar .field{flex-shrink:0}

.audit-change-item{margin:20px 0;padding:16px;border:1px solid #d7e1ed;border-radius:12px}.audit-change-item h3{margin:0 0 8px}.audit-change-item table{min-width:0}.audit-event .table-wrap{overflow:auto}
