:root {
  color-scheme: light;
  --ink: #14282f;
  --text: #263e46;
  --muted: #557079;
  --canvas: #f2f7f8;
  --line: #d9e5e7;
  --line-soft: #e8eff0;
  --nav: #112d34;
  --nav-muted: #bdd0d2;
  --accent: #096e63;
  --accent-dark: #07564f;
  --accent-soft: #e7f5ef;
  --warn: #8d5012;
  --warn-soft: #fff5e8;
  --red: #a23e43;
  --red-soft: #fff0ef;
  --blue: #285d86;
  --blue-soft: #eaf4fb;
  --shadow: 0 1px 2px #17383f09, 0 5px 15px #17383f06;
  --font: "Hiragino Sans", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 300px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.65 var(--font); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.034em; }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 750; }
:focus-visible { outline: 3px solid #198c80; outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; z-index: 2; height: 100dvh; min-height: 410px;
  display: flex; flex-direction: column; padding: 24px 16px 17px;
  background: radial-gradient(ellipse at 15% 0%, #1d4248, transparent 66%), var(--nav);
  color: #edfafa;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 26px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border-radius: 13px; color: #073e39; background: #8ae0ca;
  box-shadow: 0 3px 12px #041c2055; font-size: 21px; font-weight: 800;
}
.brand-mark .icon { width: 23px; height: 23px; }
.brand-copy { min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.45; }
.brand-copy small { display: block; margin-top: 3px; color: #b5d5d3; font-size: 10px; letter-spacing: .05em; }
.sidebar-nav, .sidebar nav { display: grid; gap: 4px; align-content: start; }
.nav-label { margin: 14px 10px 5px; color: #9eb9bc; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 9px 11px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--nav-muted); text-align: left;
  text-decoration: none; font-size: 13px; font-weight: 690;
  transition: background .16s ease, color .16s ease;
}
.nav-item:hover { color: #fff; background: #ffffff12; }
.nav-item.active, .nav-item[aria-current="page"] { color: #f0fffa; background: #2b5457; border-color: #6dbca248; }
.nav-item.active .icon, .nav-item[aria-current="page"] .icon { color: #a0e8d4; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item .pill { margin-left: auto; }
.sidebar-footer { display: grid; gap: 5px; margin-top: auto; padding: 13px 9px 3px; color: var(--nav-muted); border-top: 1px solid #70a7a33f; font-size: 11px; }
.sidebar-footer strong { color: #e5f6f2; }
.sidebar-footer .muted, .sidebar-footer .button { color: var(--nav-muted); }

.workspace { min-width: 0; }
.topbar { border-bottom: 1px solid var(--line); background: #ffffffef; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 24px; max-width: 1370px; min-height: 63px; margin: auto;
  padding: 9px clamp(18px, 3vw, 40px);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumb strong, .topbar-inner > strong { color: var(--ink); font-weight: 800; }
.topbar-actions, .page-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }

.page { max-width: 1370px; margin: 0 auto; padding: 26px clamp(18px, 3vw, 40px) 52px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 13px 18px; margin-bottom: 21px; }
.eyebrow { margin-bottom: 5px; color: var(--accent); font-size: 10px; font-weight: 850; line-height: 1.5; letter-spacing: .15em; }
.lede { margin-top: 7px; color: var(--muted); font-size: 13px; }
.page > .card + .card, .page > .notice + .card, .page > .notice + .content-grid { margin-top: 16px; }
.dashboard-banner, .hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 13px; margin-bottom: 19px; padding: 19px 23px;
  border: 1px solid #c7e1db; border-radius: 16px; color: #134841;
  background: linear-gradient(105deg, #e2f5ed, #f4fbf7 77%);
}
.dashboard-banner > *, .hero > * { position: relative; z-index: 1; }
.dashboard-banner::after, .hero::after {
  position: absolute; inset: -82px -24px auto auto; width: 210px; height: 210px;
  border: 29px solid #91cbb925; border-radius: 50%; content: ""; pointer-events: none;
}

.session-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px;
  padding: 9px 13px; border: 1px solid #d3e3e5; border-radius: 12px;
  background: #fafdfe; color: var(--muted);
}
.page > .session-strip { margin-bottom: 20px; }
.session-intro { display: flex; align-items: center; gap: 9px; }
.session-intro > div { display: grid; gap: 0; }
.session-intro strong { color: var(--ink); font-weight: 800; }
.session-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.session-item .icon, .session-intro .icon { color: var(--accent); }
.session-item strong { color: var(--ink); font-weight: 800; }
.session-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.session-controls label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 720; }
.session-controls select, .session-strip select { min-height: 32px; padding: 4px 8px; font-size: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px;
  padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--accent); text-align: center; text-decoration: none; font-size: 13px;
  font-weight: 770; line-height: 1.35; transition: background .16s ease, border-color .16s ease;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px #073a3030; }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { background: #fff; border-color: #c7d9d9; color: #244d4d; }
.button.secondary:hover { border-color: #7daaa4; background: #f2faf7; }
.button.quiet:hover { background: var(--accent-soft); }
.button.danger { color: var(--red); border-color: #efcecc; background: #fff8f8; }
.button.danger:hover { background: var(--red-soft); }
.button.small, .table-actions .button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.button:disabled, .button[aria-disabled="true"] { opacity: .54; cursor: not-allowed; box-shadow: none; }
.button .icon { width: 16px; height: 16px; }

.status, .pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
  background: #edf3f4; color: #48646c; white-space: nowrap; font-size: 11px; font-weight: 790; line-height: 1.45;
}
.status.pending, .pill.warn, .pill.amber { background: var(--warn-soft); color: var(--warn); }
.status.approved, .pill.blue { background: var(--blue-soft); color: var(--blue); }
.status.reflected, .pill.good, .pill.teal { background: var(--accent-soft); color: var(--accent-dark); }
.status.returned { background: var(--red-soft); color: var(--red); }
.pill.demo { background: #fff2d9; color: #855916; }
.sidebar .pill { background: #1e4448; color: #d7eeeb; }
.chip-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.notice {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 11px; padding: 11px 13px;
  border: 1px solid #d3e4e9; border-radius: 10px; background: #f0f8fa; color: #31525e; font-size: 13px;
}
.notice.warn { border-color: #f1dfc3; background: var(--warn-soft); color: #744612; }
.notice.info { border-color: #d7e8f3; background: #f1f8fd; color: #2f5877; }
.notice.good { border-color: #cbe7dd; background: #eef9f3; color: #285d48; }
.notice .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.notice-title, .notice strong { font-weight: 820; }
.notice .button { margin: -4px -4px -4px auto; }
.work-note { padding: 9px 11px; border-left: 3px solid #9dbfb9; background: #f4f9f8; color: var(--muted); font-size: 12px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.kpi-card {
  position: relative; min-width: 0; min-height: 116px; padding: 14px 15px; border: 1px solid var(--line);
  border-radius: 13px; background: #fff; box-shadow: var(--shadow); text-align: left; color: inherit;
}
button.kpi-card:hover, a.kpi-card:hover { border-color: #9fcbc1; background: #fcfefd; }
a.kpi-card { text-decoration: none; }
.kpi-icon {
  display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 6px;
  border-radius: 8px; color: var(--accent); background: var(--accent-soft);
}
.kpi-icon.warn, .kpi-icon.amber { color: var(--warn); background: var(--warn-soft); }
.kpi-icon.blue { color: var(--blue); background: var(--blue-soft); }
.kpi-icon.red { color: var(--red); background: var(--red-soft); }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 760; }
.kpi-value { font-size: 30px; font-weight: 830; line-height: 1.13; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-value small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 740; letter-spacing: 0; }
.kpi-detail, .mini-label { margin-top: 4px; color: var(--muted); font-size: 11px; }
.mini-label { font-weight: 760; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr); align-items: start; gap: 16px; }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 13px;
  min-height: 62px; padding: 13px 17px; border-bottom: 1px solid var(--line-soft);
}
.card-header p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.card-body { padding: 16px 17px; }
.card-body > .notice + * { margin-top: 12px; }
.section-title { font-size: 17px; font-weight: 810; }
.stack { display: grid; align-content: start; gap: 12px; }
.stack.tight { gap: 7px; }
.section-link, .text-link { color: var(--accent); font-size: 12px; font-weight: 760; text-underline-offset: 3px; }
button.text-link { padding: 3px 0; border: 0; background: transparent; text-align: left; text-decoration: underline; }
.empty { padding: 22px 16px; color: var(--muted); text-align: center; font-size: 13px; }
.empty strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }
.empty .icon { margin: 0 auto 8px; width: 25px; height: 25px; color: var(--accent); }

.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 8px 12px; background: #f6f9fa; color: #48636b; font-size: 11px; font-weight: 790; white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f9fcfb; }
.table-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.person { display: flex; align-items: center; gap: 8px; min-width: 105px; font-weight: 750; white-space: nowrap; }
.person .small, .person small { display: block; margin-top: 1px; color: var(--muted); font-weight: 570; }
.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: #e5f3ee; color: #126357; font-size: 12px; font-weight: 850; }
.avatar.blue { background: #eaf1fb; color: #426893; }
.avatar.purple { background: #f3ecfb; color: #745399; }
.avatar.amber { background: #fbf0e3; color: #88561e; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.field.full, .form-grid .actions { grid-column: 1 / -1; }
.field > label, .field > span:first-child { color: var(--text); font-size: 12px; font-weight: 780; }
.field small { color: var(--muted); font-size: 11px; }
input, select, textarea { min-width: 0; min-height: 40px; padding: 7px 9px; border: 1px solid #cbd9da; border-radius: 8px; background: #fff; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; }
input:focus, select:focus, textarea:focus { border-color: #58a99b; }
input::placeholder, textarea::placeholder { color: #6d8388; }
textarea { min-height: 83px; resize: vertical; }
.actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.form-grid + .actions, .form-grid .actions { margin-top: 8px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter-row input, .filter-row select { min-height: 33px; padding: 4px 8px; font-size: 12px; }

.day-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.day-row:last-child { border-bottom: 0; }
.day-row strong { font-weight: 790; }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #529f91; }
.dot.warn, .dot.amber { background: #b77229; }
.dot.red { background: #bf5454; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.icon { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.mobile-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.request-summary { display: grid; gap: 9px; }
.details-list { display: grid; gap: 7px; margin: 0; }
.details-list > div { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 2fr); gap: 8px; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 680; }
.progress-steps { display: grid; gap: 8px; margin: 0; padding-left: 19px; color: var(--muted); }
.progress-steps li::marker { color: var(--accent); font-weight: 820; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 10; display: grid; gap: 8px; max-width: min(450px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border: 1px solid #477c75; border-radius: 11px; background: #173d3b; color: #f2fffb;
  box-shadow: 0 8px 24px #1235303d; font-size: 13px; font-weight: 680;
}
.toast:empty { display: none; }
.toast > div { min-width: 0; }
.toast .icon { color: #a4e9d2; }
.toast .button { color: #edfff9; border-color: #719d95; background: #315653; }
dialog {
  width: min(540px, calc(100% - 32px)); max-width: 100%; max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid #d2e3e1; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #102d3361;
}
dialog::backdrop { background: #13313977; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.dialog-body { padding: 16px 18px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; padding: 12px 18px; border-top: 1px solid var(--line-soft); background: #f7fafb; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 11px 13px 8px; }
  .brand { padding: 1px 1px 9px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .brand-mark .icon { width: 20px; height: 20px; }
  .sidebar-nav, .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-label { display: none; }
  .nav-item { width: auto; min-height: 35px; gap: 5px; padding: 5px 8px; font-size: 12px; }
  .nav-item .icon { width: 14px; height: 14px; }
  .sidebar-footer { display: none; }
  .topbar-inner { min-height: 51px; padding: 7px 14px; gap: 6px 9px; }
  .page { padding: 19px 13px 34px; }
  .page-heading { align-items: flex-start; margin-bottom: 16px; }
  .session-strip { gap: 7px 10px; }
  .session-controls { margin-left: 0; }
  .dashboard-banner, .hero { padding: 15px; }
  .content-grid.equal { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid { gap: 8px; margin-bottom: 12px; }
  .kpi-card { min-height: 105px; padding: 10px 11px; }
  .kpi-value { font-size: 26px; }
  .card-header { min-height: 54px; padding: 10px 12px; }
  .card-body { padding: 12px; }
  th:first-child, td:first-child { padding-left: 12px; }
  th:last-child, td:last-child { padding-right: 12px; }
  .mobile-only { display: initial; }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .notice .button { margin: 1px 0 0; }
  .toast-region { right: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Portal components */
.brand-copy > strong, .brand-copy > span { display: block; }
.brand-copy > span { margin-top: 3px; color: #b5d5d3; font-size: 10px; font-weight: 630; }
.nav-group { display: grid; align-content: start; gap: 4px; }
.sidebar-footer { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 7px; }
.sidebar-footer .dot { margin-top: 6px; background: #8cd8bf; }
.sidebar-footer small { color: #a9c8c8; }
.session-intro .kpi-icon { margin-bottom: 0; }
.kpi-card { display: grid; align-content: start; gap: 4px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; color: #527981; }
.kpi-top .kpi-icon { margin-bottom: 0; }
.kpi-card.tone-warn .kpi-icon { color: var(--warn); background: var(--warn-soft); }
.kpi-card.tone-blue .kpi-icon { color: var(--blue); background: var(--blue-soft); }
.kpi-card.tone-neutral .kpi-icon { color: #4c6974; background: #edf4f6; }
.kpi-value > span { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 740; letter-spacing: 0; }
.kpi-detail { margin-top: 0; }
.work-note { margin: 15px 0; padding: 0; border: 0; background: transparent; }
.card > .filter-row { margin: 0; padding: 12px 17px; }
.chip {
  min-height: 32px; padding: 4px 9px; border: 1px solid #d5e4e4; border-radius: 7px;
  color: var(--muted); background: #fff; font-size: 12px; font-weight: 730;
}
.chip:hover { border-color: #9ecac1; color: var(--accent-dark); }
.chip.active { border-color: #a9d4c9; color: var(--accent-dark); background: var(--accent-soft); }
td.table-actions { display: table-cell; text-align: right; }
.detail-line { display: block; }
.missing { color: var(--red); font-weight: 740; }
.day-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.status.pending .dot { background: #bf7a2b; }
.status.approved .dot { background: #5889b4; }
.status.returned .dot { background: #c7595d; }
.icon-button {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent;
}
.icon-button:hover { border-color: var(--line); background: #f1f6f5; }
.toast .kpi-icon { margin: 0; background: #335852; }
.toast .icon-button { color: #d6ebe8; align-self: flex-start; }
.toast .icon-button:hover { border-color: #719d95; background: #315653; }
.toast strong, .toast .small { display: block; }
.toast .muted { color: #c3dfd9; }
.toast .button { min-height: 29px; margin-top: 6px; padding: 3px 8px; font-size: 12px; }
.form-error { margin: 10px 0; padding: 8px 10px; border: 1px solid #efcecc; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.progress-steps strong, .progress-steps span { display: block; }
.progress-steps strong { color: var(--ink); }
.progress-steps span { font-size: 12px; }
.request-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.dialog-body > .details-list + *, .dialog-body > p + .stack { margin-top: 12px; }

@media (max-width: 720px) {
  .nav-group { display: flex; flex-wrap: wrap; gap: 4px; }
  .card > .filter-row { padding-inline: 12px; }
}

/* Employee submission view */
.app-shell.is-staff { grid-template-columns: minmax(0, 1fr); }
.app-shell.is-staff .sidebar { display: none; }
.app-shell.is-staff .page,
.app-shell.is-staff .topbar-inner { max-width: 930px; }
.submission-panel { max-width: 850px; }
.submission-panel #submission-receipt:focus { outline: none; }

.session-strip[hidden] { display: none; }
.receipt-actions { gap: 10px; }
#receipt-countdown { font-variant-numeric: tabular-nums; }

#upcoming-leaves { margin-top: 18px; }
.upcoming-leave-list { list-style: none; margin: 0; padding: 0; }
.upcoming-leave { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; padding: 9px 0; }
.upcoming-leave + .upcoming-leave { border-top: 1px solid var(--line-soft); }
.upcoming-leave-date { display: grid; gap: 1px; }
.upcoming-leave-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.upcoming-leave-controls .button { min-height: 32px; }

.application-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
#overtime-hint { grid-column: 1 / -1; margin: 0; }

.overtime-history-title { margin: 0 0 6px; font-size: 13px; }

.session-controls label[hidden], #session-button[hidden] { display: none; }

.punch-issue-list { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.punch-guidance { padding-top: 0; }
.punch-row-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 160px; }
.punch-times { white-space: nowrap; }

.workforce-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 18px; padding: 16px 20px; }
.workforce-controls .field { flex: 0 1 210px; }
.workforce-chart { width: 100%; min-width: 570px; table-layout: fixed; }
.workforce-chart th:first-child { width: 30%; }
.workforce-chart td, .workforce-chart tbody th { vertical-align: middle; padding-top: 13px; padding-bottom: 13px; }
.workforce-chart tbody th { background: transparent; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-align: left; font-size: 13px; font-weight: 700; white-space: normal; }
.workforce-chart tbody tr:last-child th { border-bottom: 0; }
.workforce-chart .workforce-overtime-title { color: var(--blue); }
.workforce-chart .workforce-balance-title { color: var(--accent-dark); }
.workforce-row-note { display: block; font-weight: 400; }
.workforce-person { border: 0; padding: 3px 0; background: transparent; color: inherit; text-align: left; }
.workforce-person:hover .person strong { text-decoration: underline; text-underline-offset: 3px; }
.workforce-metric { display: grid; gap: 5px; }
.workforce-metric strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.workforce-metric.overtime strong { color: var(--blue); }
.workforce-metric.balance strong { color: var(--accent-dark); }
.workforce-track { height: 10px; width: 100%; overflow: hidden; border-radius: 3px; background: #edf2f4; }
.workforce-track > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.workforce-metric.balance .workforce-track > span { background: var(--accent); }
.workforce-track.is-missing { background: transparent; border: 1px dashed var(--line); }
.workforce-data-note { padding: 0 3px; }
@media (max-width: 720px) {
  .workforce-controls { padding: 14px; gap: 12px; }
  .workforce-controls .field { flex: 1 1 160px; }
  .workforce-chart .avatar { display: none; }
  .workforce-metric strong { font-size: 15px; }
}
