:root {
  color-scheme: light;
  --ink: #1e2b40;
  --muted: #65738a;
  --line: #d9e1ec;
  --surface: #ffffff;
  --canvas: #edf1f6;
  --green: #2e63e8;
  --green-dark: #194fc6;
  --green-soft: #e8efff;
  --amber: #f5bd2e;
  --danger: #a83a32;
  --danger-soft: #fff0ed;
  font-family: "Aptos", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
}

button, input, select { font: inherit; }

.app-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; background: #1e2b40; color: #fff; }
.sidebar .brand { min-height: 64px; padding: 0 18px; border-bottom: 1px solid #354258; }
.side-nav { display: grid; gap: 4px; padding: 14px 8px; }
.nav-link { min-height: 39px; display: flex; align-items: center; padding: 0 12px; color: #c5cede; text-decoration: none; font-size: 13px; }
.nav-link:hover { background: #293950; color: #fff; }
.nav-link.active { background: #30415a; color: #fff; font-weight: 700; box-shadow: inset 3px 0 #4d7fff; }
.sidebar-user { display: grid; gap: 5px; margin-top: auto; padding: 18px; border-top: 1px solid #354258; }
.sidebar-user-name { overflow-wrap: anywhere; color: #fff; font-size: 13px; font-weight: 700; }
.sidebar-user-role { color: #9bb8ff; font-size: 11px; }
.main-column { min-width: 0; }
.topbar {
  min-height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.brand, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
}
.topbar-title { font-size: 15px; font-weight: 700; }
.user-name { color: var(--muted); font-size: 13px; }
.admin-link { color: var(--green-dark); font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.page-shell { width: min(100% - 56px, 1260px); margin: 34px auto 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.change-type-link { flex: 0 0 auto; margin-bottom: 3px; color: var(--green-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.change-type-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.subtitle { margin: 0; color: var(--muted); }

.form-section { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 23px; }
.section-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}
.section-heading h2 { margin: 2px 0 4px; font-size: 19px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.batch-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field > span, .transport-field legend { color: #394940; font-size: 13px; font-weight: 700; }
.field em { margin-left: 4px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #bdcbc1;
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: 3px solid #b8dfc5; border-color: var(--green); }
.field[hidden] { display: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--green); }
.password-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-off { display: none; }
.password-toggle.shown .eye { display: none; }
.password-toggle.shown .eye-off { display: block; }
.field-hint { min-height: 16px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }

.employee-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
}
.transport-field { min-width: 150px; margin: 0; padding: 0; border: 0; }
.transport-field legend { margin-bottom: 7px; }
.segmented-control { display: flex; min-height: 44px; padding: 3px; background: #edf1ed; border: 1px solid var(--line); border-radius: 3px; }
.segmented-control label { position: relative; flex: 1; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: grid; place-items: center; height: 36px; color: #526258; border-radius: 2px; font-size: 13px; font-weight: 700; }
.segmented-control input:checked + span { background: var(--green); color: #fff; }
.segmented-control input:focus-visible + span { outline: 3px solid var(--amber); }
.add-button, .submit-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
}
.add-button { background: var(--ink); color: #fff; white-space: nowrap; }
.add-button span { margin-right: 4px; color: var(--amber); font-size: 18px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.picker-message { min-height: 20px; margin: 8px 0 18px; color: var(--danger); font-size: 13px; }

.queue-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.queue-heading h3 { margin: 0; font-size: 15px; }
.count-badge { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.unsaved-notice { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid #d59b18; background: #fff6dd; color: #654900; font-size: 13px; line-height: 1.5; }
.unsaved-notice[hidden] { display: none; }
.empty-state { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 16px; border: 1px dashed #b7c5ba; color: var(--muted); }
.empty-state[hidden] { display: none; }
.empty-state p { margin: 0; font-size: 13px; }
.empty-mark { display: grid; place-items: center; width: 30px; aspect-ratio: 1; border: 1px solid var(--line); color: var(--green); font-size: 18px; }
.employee-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.employee-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); }
.employee-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.employee-discipline { display: inline-block; padding: 5px 8px; background: #edf1ed; color: #4a5b50; font-size: 11px; font-weight: 700; }
.employee-name { overflow-wrap: anywhere; font-weight: 700; }
.employee-card-side { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.transport-pill { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.transport-pill.no { color: #69756d; }
.remove-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; color: var(--danger); cursor: pointer; }

.form-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.cancel-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #9aa7bb; border-radius: 4px; background: #fff; color: #344257; font-weight: 700; text-decoration: none; }
.cancel-link:hover { background: #e8edf5; border-color: #5f6f86; color: #1e2b40; }
.submit-button { min-width: 210px; background: var(--green); color: #fff; }
.submit-button:not(:disabled):hover { background: var(--green-dark); }
.submit-button span { margin-left: 12px; color: var(--amber); font-size: 18px; }
.messages, .error-message { margin-bottom: 20px; padding: 12px 15px; border-left: 4px solid var(--green); background: var(--green-soft); }
.message { margin: 0; color: var(--green-dark); }
.error-message { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }

.request-options { display: grid; gap: 14px; max-width: 880px; }
.request-option { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #356be5; }
.request-option-number { display: grid; place-items: center; width: 40px; height: 40px; background: #e8efff; color: #2859cc; font-size: 13px; font-weight: 800; }
.request-option-copy h2 { margin: 0 0 6px; font-size: 17px; }
.request-option-copy p { max-width: 600px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.request-option-button { display: inline-flex; align-items: center; gap: 16px; min-height: 42px; padding: 0 15px; background: #2e63e8; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.request-option-button:hover { background: #194fc6; }
.request-option-button span { color: #f5bd2e; font-size: 17px; }
.request-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .55fr) minmax(150px, .45fr) auto; align-items: end; gap: 12px; margin: 0 0 18px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.filter-actions { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.filter-button { min-height: 40px; padding: 0 17px; border: 0; border-radius: 3px; background: #2e63e8; color: #fff; font-weight: 700; cursor: pointer; }
.filter-button:hover { background: #194fc6; }
.clear-filter { color: var(--muted); font-size: 13px; text-decoration: none; }
.clear-filter:hover { color: var(--ink); text-decoration: underline; }
.list-summary { display: flex; justify-content: space-between; align-items: center; min-height: 36px; color: var(--muted); font-size: 13px; }
.approved-note { color: #16734f; font-weight: 700; }
.bulk-approval-form { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 54px; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 13px; }
.bulk-approval-form .approve-button { min-height: 38px; }
.selection-column { width: 42px; text-align: center !important; }
.selection-column input { width: 16px; height: 16px; accent-color: #2e63e8; cursor: pointer; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.request-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.request-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; text-align: left; text-transform: uppercase; }
.request-table td { padding: 12px 14px; border-bottom: 1px solid #e7ebf1; color: #344257; }
.request-table tbody tr:last-child td { border-bottom: 0; }
.request-table tbody tr:hover { background: #f7f9fc; }
.person-cell { color: var(--ink) !important; font-weight: 700; }
.request-row-link { color: inherit; text-decoration: none; }
.request-row-link:hover { color: #2e63e8; text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 2px; background: #fff3d8; color: #8a5b00; font-size: 11px; font-weight: 700; }
.status-pill.approved { background: #e3f4eb; color: #187144; }
.empty-list { padding: 34px 18px; background: #fff; border: 1px solid var(--line); }
.empty-list h2 { margin-bottom: 5px; font-size: 16px; }
.empty-list p { margin: 0; color: var(--muted); font-size: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 18px; color: var(--muted); font-size: 13px; }
.pagination a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.detail-page { max-width: 1100px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.detail-heading h1 { margin-bottom: 6px; }
.detail-form .form-section { padding-top: 22px; }
.detail-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.detail-fields input:not([type="checkbox"]), .detail-fields select, .detail-fields textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #bdcbc1; border-radius: 3px; background: #fff; color: var(--ink); }
.detail-fields input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2e63e8; }
.detail-fields textarea { min-height: 80px; resize: vertical; }
.detail-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin: 0; }
.detail-values div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-values dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.detail-values dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; }
.alternate-flag { display: inline-block; padding: 6px 9px; background: #fff3d8; color: #815700; font-size: 12px; font-weight: 700; }
.approval-form { display: flex; justify-content: flex-end; padding: 0 0 20px; }
.approve-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 3px; background: #16834a; color: #fff; font-weight: 700; cursor: pointer; }
.approve-button:hover { background: #116b3c; }

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .page-shell { width: min(100% - 36px, 1260px); }
  .request-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transport-field { min-width: 0; }
  .add-button { align-self: end; }
}

@media (max-width: 540px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sidebar { position: static; height: auto; }
  .sidebar .brand { min-height: 54px; }
  .side-nav { display: flex; overflow-x: auto; padding: 6px 8px; }
  .nav-link { flex: 0 0 auto; }
  .sidebar-user { display: none; }
  .topbar { min-height: 54px; padding: 0 16px; }
  .user-name { display: none; }
  .page-shell { width: min(100% - 28px, 1080px); margin: 26px auto 42px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .request-option { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .request-option-number { width: 34px; height: 34px; }
  .request-option-copy { grid-column: 2; }
  .request-option-button { grid-column: 2; justify-content: center; }
  .request-filters { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .filter-actions { justify-content: space-between; }
  .list-summary { margin: 4px 0; }
  .bulk-approval-form { position: sticky; bottom: 0; z-index: 1; justify-content: space-between; box-shadow: 0 -3px 12px #1e2b4014; }
  .detail-fields, .detail-values { grid-template-columns: minmax(0, 1fr); }
  .detail-heading { align-items: flex-start; }
  .batch-fields, .employee-picker { grid-template-columns: minmax(0, 1fr); }
  .employee-picker { padding: 14px; }
  .add-button { width: 100%; }
  .employee-card { align-items: flex-start; }
  .employee-card-main { align-items: flex-start; flex-direction: column; gap: 7px; }
  .employee-card-side { gap: 9px; }
  .form-footer { gap: 12px; }
  .submit-button { min-width: 0; flex: 1; }
}
.logout-form { margin: 0; }
.logout-button { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: min(100%, 380px); padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.login-card h1 { margin: 18px 0 16px; font-size: 22px; }
.login-brand { color: var(--ink); }
.login-form, .account-form { display: grid; gap: 16px; max-width: 460px; }
.login-form .submit-button { width: 100%; }
.field-error { color: var(--danger); font-size: 12px; }
.field input[type="checkbox"] { width: 18px; height: 18px; justify-self: start; }

.password-rules { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.password-rules li.ok { color: #187144; font-weight: 700; }
.password-rules .rule-mark { display: inline-block; width: 1.2em; text-align: center; }
.submit-button:disabled { opacity: .55; cursor: not-allowed; }

.check-field { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 40px; font-size: 13px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--green); }

.check-list { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.check-list .check-field { min-height: 32px; align-self: auto; }
.check-list .check-field[hidden] { display: none; }

.employee-multi { grid-column: 1 / -1; }
.picker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.link-button { padding: 0; border: 0; background: none; color: var(--green-dark); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; }
.link-button:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.employee-multi .check-list { max-height: 300px; }
.employee-picker .transport-field { grid-column: 1; }
.employee-picker .add-button { grid-column: 2; }

.field input[type="checkbox"], .field input[type="radio"] { min-height: 0; padding: 0; }
.check-list input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; }
.status-pill.canceled { background: #f3e1de; color: var(--danger); }
.danger-button { min-height: 40px; padding: 0 17px; border: 1px solid var(--danger); border-radius: 4px; background: #fff; color: var(--danger); font-weight: 700; cursor: pointer; }
.danger-button:hover { background: var(--danger-soft); }
.cancel-form { margin-top: 14px; }
.row-actions { display: flex; align-items: center; gap: 14px; }
.row-actions form { margin: 0; }
.link-button.danger { color: var(--danger); }
.export-hint { grid-column: 1 / -1; margin: 0; }

@media (max-width: 1100px) {
  .request-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-filters .filter-actions { grid-column: 1 / -1; }
}

.mode-banner { margin-bottom: 14px; padding: 12px 15px; border-left: 4px solid var(--danger); background: var(--danger-soft); color: var(--danger); }
.mode-banner a { margin-left: 10px; font-weight: 700; color: var(--danger); }
.mode-link { margin-left: 14px; color: var(--danger); font-weight: 700; font-size: 13px; }
.range-note { margin: -6px 0 12px; }
.export-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); }
.export-link { display: inline-flex; align-items: center; text-decoration: none; }
.request-table.cancel-mode tbody tr:hover { background: var(--danger-soft); }
.cancel-mode .selection-column input { accent-color: var(--danger); }
.bulk-approval-form.cancel-mode { background: var(--danger-soft); }
.confirm-list { max-height: 360px; overflow-y: auto; margin-bottom: 18px; }
.confirm-form { max-width: 640px; }

@media (min-width: 1101px) {
  .request-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .request-filters .search-field { grid-column: span 2; }
  .request-filters .date-start { grid-column: 1; }
}

@media (min-width: 821px) {
  .batch-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .batch-fields > .field { grid-column: span 2; }
  .batch-fields > .field-half { grid-column: span 3; }
}

.employee-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; margin: 0 0 12px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.address-toggle { margin: 0 0 12px; }
.employee-table.hide-address .col-address { display: none; }
.employee-table .phone-cell { font-weight: 700; color: #1e2b40; }
@media (max-width: 820px) { .employee-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .employee-filters { grid-template-columns: minmax(0, 1fr); padding: 14px; } }
.map-section { margin-top: 28px; padding: 18px; background: #fff; border: 1px solid var(--line); }
.map-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 10px; }
.map-heading h2 { margin: 0 0 4px; font-size: 16px; }
.map-heading .field-hint { max-width: 760px; }
.map-day { min-width: 190px; }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.legend-chip { display: inline-flex; align-items: center; gap: 6px; }
.legend-chip i { width: 12px; height: 12px; border: 1px solid #1e2b40; border-radius: 50%; }
.overtime-map { height: 480px; border: 1px solid var(--line); z-index: 0; }
.overtime-map.map-failed { display: grid; place-items: center; background: #f3f6fa; color: var(--muted); }
.site-pin { display: grid; place-items: center; background: #1e2b40; color: #f5bd2e; border: 2px solid #f5bd2e; border-radius: 50%; font-size: 15px; }
.map-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.map-lists h3 { margin: 0 0 6px; font-size: 13px; color: #194fc6; }
.map-list { margin: 0; padding-left: 20px; font-size: 13px; }
.count-pin { background: none; border: 0; }
.count-bubble { width: 100%; height: 100%; display: grid; place-items: center; border: 2px solid #1e2b40; border-radius: 50%; box-shadow: 0 1px 4px #0006; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 0 3px #000, 0 0 2px #000; opacity: .92; }
.map-popup { max-width: 320px; }
.map-popup-note { margin: 2px 0; color: #8a5a00; font-size: 12px; }
.map-popup-people { margin: 6px 0 0; padding-left: 16px; font-size: 12px; }
.review-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.review-side { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); max-height: 640px; overflow: auto; }
.review-legend { flex-direction: column; align-items: flex-start; margin: 0; }
.review-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
.review-map { height: 640px; }
@media (max-width: 900px) { .review-layout { grid-template-columns: minmax(0, 1fr); } .review-map { height: 460px; } }
.map-list-empty { list-style: none; margin-left: -20px; color: var(--muted); }
.map-list-button { padding: 3px 0; border: 0; background: none; color: #344257; font: inherit; text-align: left; cursor: pointer; }
.map-list-button:hover { color: #194fc6; text-decoration: underline; }
.map-unlocated { margin-top: 12px; padding: 10px 14px; background: #fff4d6; border-left: 4px solid #f5bd2e; font-size: 13px; color: #4a3600; }
.map-unlocated[hidden] { display: none; }
@media (max-width: 820px) { .map-lists { grid-template-columns: minmax(0, 1fr); } .overtime-map { height: 380px; } }
.nav-badge { margin-left: 8px; min-width: 20px; padding: 1px 7px; border-radius: 10px; background: #f5bd2e; color: #1e2b40; font-size: 11px; font-weight: 700; text-align: center; }
.pending-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 18px; padding: 14px 18px; background: #fff7df; border: 1px solid #f5bd2e; border-left-width: 5px; color: #4a3600; text-decoration: none; }
.pending-banner:hover { background: #ffefc2; }
.pending-banner span { font-weight: 700; color: #194fc6; }
.not-exported { color: #8a5a00; font-weight: 700; }
.export-note { margin: 0 0 14px; }
.history-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.history-list li { padding: 10px 14px; background: #f7f9fc; border-left: 3px solid #2e63e8; }
.history-when { color: var(--muted); font-size: 12px; margin-left: 6px; }
.history-details { margin-top: 4px; color: #344257; font-size: 13px; }
.cancel-form { margin-top: 24px; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--danger); }
.cancel-title { margin: 0 0 12px; color: var(--danger); font-size: 14px; }
.cancel-row { display: flex; align-items: flex-end; gap: 12px; }
.cancel-row .field { flex: 1; }
.cancel-row .danger-button { min-height: 44px; white-space: nowrap; }
@media (max-width: 560px) { .cancel-row { flex-direction: column; align-items: stretch; } }

.summary-table th.num, .summary-table td.num { text-align: center; }
.summary-table .day-head { text-align: center; border-left: 2px solid #1e2b40; }
.summary-table .day-start { border-left: 2px solid #1e2b40; }
.summary-table td { border-right: 1px solid #e7ebf1; }
.summary-table tfoot td { padding: 12px 14px; border-top: 2px solid #1e2b40; background: #f7f9fc; }

.export-warning { flex-basis: 100%; margin: 0; padding: 10px 14px; background: #fff4d6; border-left: 4px solid #f5bd2e; color: #4a3600; font-size: 13px; font-weight: 700; }
.export-warning[hidden] { display: none; }
