:root {
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 34px;
  --leading-tight: 1.15;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-border: #d9e1ec;
  --color-text: #101828;
  --color-muted: #667085;
  --color-primary: #0f766e;
  --color-primary-dark: #0b5f59;
  --color-primary-soft: #dff8f4;
  --color-healing: #0f766e;
  --color-athome: #2563eb;
  --color-bliss: #db2777;
  --color-split: #f59e0b;
  --color-warning: #f97316;
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --bg: var(--color-bg);
  --panel: var(--color-surface);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --border: var(--color-border);
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-dark);
  --danger: var(--color-danger);
  --success: var(--color-success);
  --warning: var(--color-warning);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.055);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius: 18px;
  --radius-card: 16px;
  --radius-compact: 12px;
}

/* TCI-R3-08 R2: signed-in employee final weekly visibility. */
.financial-bridge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; padding: 16px; color: #244244; background: linear-gradient(135deg, #eef9f6, #fffaf0); border: 1px solid #cfe5df; border-radius: 14px; }
.financial-bridge > div { display: grid; gap: 4px; min-height: 72px; align-content: center; padding: 11px 13px; background: rgba(255,255,255,.8); border-radius: 10px; }
.financial-bridge span { color: #607073; font-size: var(--text-xs); }
.financial-bridge strong { color: #163b3a; font-size: var(--text-lg); }
.financial-bridge > p { grid-column: 1 / -1; margin: 2px 0 0; color: #526668; line-height: 1.55; }
.financial-bridge > p strong { font-size: inherit; }
.expense-classification { min-width: min(100%, 250px); }
.expense-classification small { display: block; margin-top: 4px; color: #607073; line-height: 1.4; }

.personal-week { display: grid; min-width: 0; gap: 18px; padding: 22px; overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 8px 28px rgba(22,52,49,.07); }
.personal-week__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.personal-week__head > div { min-width: 0; }
.personal-week__head h2 { margin: 2px 0 5px; color: #142326; font-size: clamp(23px, 3vw, 30px); }
.personal-week__head p { margin: 0; color: #607073; }
.personal-week__legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.personal-week__legend li { display: flex; min-width: 0; min-height: 54px; align-items: center; gap: 9px; padding: 8px 10px; color: #142326; background: #f8fbfa; border: 1px solid #d7e1e0; border-radius: 10px; }
.personal-week__legend li > span:last-child { display: grid; min-width: 0; gap: 1px; }
.personal-week__legend strong { font-size: var(--text-sm); line-height: 1.2; }
.personal-week__legend small { color: #607073; font-size: 11px; line-height: 1.2; }
.personal-week__legend-swatch { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; color: #fff; background: #0f766e; border: 1px solid #0f766e; border-radius: 8px; font-size: 11px; font-weight: 800; }
.personal-week__legend-swatch--night { background: #5e4bb8; border-color: #5e4bb8; }
.personal-week__legend-swatch--empty { color: #607073; background: #fff; border-color: #a7c2c0; border-style: dashed; }
.personal-week__legend-swatch--pending { color: #8a5600; background: #fff4d4; border-color: #d28a10; border-radius: 999px; }
.personal-week__matrix-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #d7e1e0; border-radius: 12px; scrollbar-color: #0f766e #f4f7f7; }
.personal-week__matrix { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.personal-week__matrix th, .personal-week__matrix td { padding: 0; border-right: 1px solid #d7e1e0; border-bottom: 1px solid #d7e1e0; vertical-align: top; }
.personal-week__matrix tr:last-child > * { border-bottom: 0; }
.personal-week__matrix tr > *:last-child { border-right: 0; }
.personal-week__matrix thead th { padding: 12px 7px; color: #142326; background: #f8fbfa; font-size: var(--text-sm); text-align: center; }
.personal-week__matrix thead th:first-child { text-align: left; }
.personal-week__matrix thead span, .personal-week__matrix thead small { display: block; }
.personal-week__matrix thead small { margin-top: 3px; color: #607073; font-size: var(--text-xs); font-weight: 650; }
.personal-week__matrix thead em { display: inline-flex; margin-top: 6px; padding: 3px 7px; color: #8a5600; background: #fff4d4; border: 1px solid #efd08a; border-radius: 999px; font-size: 10px; font-style: normal; line-height: 1.2; }
.personal-week__matrix thead th.has-pending-change { box-shadow: inset 0 3px 0 #d28a10; }
.personal-week__shift-head, .personal-week__shift { position: sticky; left: 0; z-index: 2; width: 150px; min-width: 150px; background: #fff; box-shadow: 1px 0 0 #d7e1e0; }
.personal-week__shift-head { z-index: 3; background: #f8fbfa !important; }
.personal-week__shift { padding: 15px 12px !important; text-align: left; }
.personal-week__shift strong { display: block; color: #0f766e; font-size: 30px; line-height: 1; }
.personal-week__shift span, .personal-week__shift small { display: block; margin-top: 5px; color: #142326; font-size: var(--text-sm); }
.personal-week__shift small { color: #607073; }
.personal-week__matrix tr.is-night .personal-week__shift { background: #f8f6ff; }
.personal-week__matrix tr.is-night .personal-week__shift strong { color: #5e4bb8; }
.personal-week__cell { display: grid; width: 100%; min-height: 116px; place-items: center; padding: 10px; color: #142326; background: #fff; font: inherit; text-align: left; }
.personal-week__cell:hover { background: #f8fbfa; text-decoration: none; }
.personal-week__matrix td.is-selected .personal-week__cell { background: #effaf7; }
.personal-week__matrix tr.is-night td.is-selected .personal-week__cell { background: #f5f2ff; }
.personal-week__matrix td.is-empty .personal-week__cell { background: #fcfefd; }
.personal-week__matrix td.has-pending-change .personal-week__cell { box-shadow: inset 0 3px 0 #d28a10; }
.personal-week__employee-chip { --person-color: #0f766e; --person-soft: #e6f5f2; display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; padding: 7px 8px; color: var(--person-color); background: var(--person-soft); border: 1px solid currentColor; border-radius: 9px; }
.personal-week__matrix tr.is-night .personal-week__employee-chip, .personal-week__mobile li.is-night .personal-week__employee-chip { --person-color: #5e4bb8; --person-soft: #f0ecff; }
.personal-week__employee-chip b { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--person-color); border-radius: 8px; font-size: var(--text-xs); font-weight: 800; }
.personal-week__employee-chip > span { display: grid; min-width: 0; gap: 1px; }
.personal-week__employee-chip strong { color: #142326; font-size: var(--text-sm); line-height: 1.2; overflow-wrap: anywhere; }
.personal-week__employee-chip small { color: #607073; font-size: 11px; line-height: 1.2; }
.personal-week__empty-cell { display: grid; width: 100%; min-height: 94px; place-content: center; gap: 3px; padding: 8px; color: #607073; border: 1px dashed #a7c2c0; border-radius: 9px; text-align: center; }
.personal-week__empty-cell strong { font-size: var(--text-sm); font-weight: 650; }
.personal-week__empty-cell small { color: #0f766e; font-size: var(--text-lg); line-height: 1; }
.personal-week__mobile { display: none; gap: 10px; }
.personal-week__mobile article { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 12px; }
.personal-week__mobile article > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; background: #f8fbfa; border-bottom: 1px solid #d7e1e0; }
.personal-week__mobile article > header span > * { display: block; }
.personal-week__mobile article > header small { margin-top: 2px; color: #607073; }
.personal-week__mobile ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.personal-week__mobile li { min-width: 0; border-bottom: 1px solid #e6eceb; }
.personal-week__mobile li:last-child { border-bottom: 0; }
.personal-week__mobile li > a { display: grid; grid-template-columns: 90px minmax(0, 1fr); min-height: 68px; align-items: center; gap: 9px; padding: 8px 10px; color: #142326; }
.personal-week__mobile li > a:hover { background: #f8fbfa; text-decoration: none; }
.personal-week__mobile li.is-selected > a { background: #effaf7; }
.personal-week__mobile li.is-night.is-selected > a { background: #f5f2ff; }
.personal-week__mobile-shift > * { display: block; }
.personal-week__mobile-shift strong { color: #0f766e; }
.personal-week__mobile li.is-night .personal-week__mobile-shift strong { color: #5e4bb8; }
.personal-week__mobile-shift small { margin-top: 3px; color: #607073; font-size: 11px; white-space: nowrap; }
.personal-week__mobile-empty { justify-self: stretch; padding: 9px; color: #607073; background: #fcfefd; border: 1px dashed #a7c2c0; border-radius: 8px; text-align: center; }
.personal-week__empty { display: grid; gap: 4px; margin: 0; padding: 18px; color: #607073; background: #f6f9f8; border-radius: 12px; }
.personal-week__pending-note { margin: 0; color: #607073; font-size: var(--text-sm); line-height: 1.5; }
.personal-week--compact { padding: 18px; }
.personal-week .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.personal-week :is(.personal-week__cell, .personal-week__mobile li > a, .personal-week__matrix-wrap):focus-visible { outline: 3px solid #c98008; outline-offset: -4px; }

@media (max-width: 1100px) {
  .personal-week__employee-chip { gap: 5px; padding: 5px; }
  .personal-week__employee-chip b { width: 24px; height: 24px; }
  .personal-week__employee-chip strong { font-size: 12px; white-space: nowrap; }
}

@media (max-width: 860px) {
  .personal-week__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-week__matrix { width: 900px; min-width: 900px; }
  .personal-week__shift-head, .personal-week__shift { width: 132px; min-width: 132px; }
  .personal-week__cell { min-height: 104px; padding: 8px; }
  .personal-week__employee-chip { gap: 6px; padding: 6px; }
  .personal-week__employee-chip b { width: 27px; height: 27px; }
}

@media (max-width: 700px) {
  .financial-bridge { grid-template-columns: 1fr; }
  .personal-week { gap: 14px; padding: 16px; }
  .personal-week__head { align-items: stretch; flex-direction: column; }
  .personal-week__head h2 { font-size: 26px; }
  .personal-week__head .secondary-button { width: 100%; min-height: 44px; }
  .personal-week__legend { grid-template-columns: 1fr; }
  .personal-week__legend li { min-height: 50px; }
  .personal-week__matrix-wrap { display: none; }
  .personal-week__mobile { display: grid; }
  .personal-week__mobile .ui-badge { max-width: 150px; white-space: normal; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .personal-week * { scroll-behavior: auto !important; transition: none !important; }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.main-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.page-center .main-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-doc .main-shell { max-width: 920px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand, .auth-brand, .status-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { color: var(--text); }
.brand strong {
  font-size: var(--text-md);
  font-weight: 900;
  line-height: var(--leading-tight);
  letter-spacing: .04em;
}
.brand small { display: block; color: var(--muted); margin-top: 2px; font-size: var(--text-sm); font-weight: var(--font-medium); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  border-radius: 8px;
  background: #f8fafc;
  color: #fff;
  font-weight: var(--font-bold);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.brand-mark img {
  display: block;
  width: 88%;
  height: 88%;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}
.app-header .brand,
.app-header .brand > span:last-child {
  min-width: 0;
}
.app-header .brand img,
.brand-mark--logo img,
.app-logo,
.brand-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}
.brand-mark--logo {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.brand-mark.large {
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  max-width: 76px;
  max-height: 76px;
  border-radius: 12px;
  font-size: 24px;
}
.brand-mark.large img {
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
}
.auth-brand h1 {
  letter-spacing: .08em;
}

.auth-panel, .status-panel, .doc-panel, .module-panel, .dashboard-hero {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.auth-panel, .status-panel { max-width: 520px; }
.auth-panel h1, .status-panel h1, .doc-panel h1, .module-panel h1 { margin: 0 0 8px; }
.auth-panel p, .status-panel p, .doc-panel p, .module-panel p { color: var(--muted); line-height: 1.55; }

.form-stack { display: grid; gap: 14px; margin-top: 20px; }
.form-stack label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15,118,110,.18);
  border-color: var(--primary);
}

.primary-button, .secondary-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  cursor: pointer;
}
.primary-button { background: var(--primary); color: #fff; }
.primary-button:hover { background: var(--primary-dark); text-decoration: none; }
.secondary-button { background: #fff; border-color: var(--border); color: var(--text); }
.secondary-button:hover { border-color: var(--primary); text-decoration: none; }
.icon-button { background: #f1f5f9; color: var(--text); }
.header-logout {
  min-height: 40px;
  border-color: var(--border);
  background: #fff;
  border-radius: 12px;
}

.app-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.18em;
}
.icon-pill {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--primary);
}
.icon-pill--amber {
  background: #fef3c7;
  color: #d97706;
}

.alert, .flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
  font-weight: 700;
}
.alert-error, .flash-error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.flash-success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }

.auth-links, .button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.eyebrow { margin: 0 0 6px; color: var(--primary); font-weight: var(--font-bold); text-transform: uppercase; letter-spacing: .02em; font-size: var(--text-xs); }
.dashboard-hero { margin-bottom: 18px; }
.dashboard-hero h1 { margin: 0 0 6px; }
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.action-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  color: var(--text);
}
.action-card:hover { border-color: var(--primary); text-decoration: none; }
.action-muted {
  background: #f8fafc;
}
.action-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-style: normal;
  font-size: 12px;
  font-weight: var(--font-semibold);
}
.action-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #e6fffb;
  color: var(--primary);
  font-weight: var(--font-bold);
}
.action-card small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }

.page-hero-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.page-hero-card h1 {
  margin: 0 0 8px;
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}
.page-hero-card p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
}
.page-hero-card strong { color: var(--text); }
.dashboard-hero-meta {
  min-width: 108px;
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
}
.dashboard-hero-meta span {
  color: var(--primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}
.dashboard-kpi-grid {
  margin-bottom: 18px;
}
.dashboard-access-summary {
  margin-bottom: 18px;
}
.dashboard-action-section {
  margin-top: 18px;
}
.dashboard-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-action-card {
  min-height: 112px;
  border-radius: var(--radius-card);
}
.dashboard-action-card .action-icon {
  border-radius: 999px;
  background: var(--color-primary-soft);
}
.dashboard-action-card.action-danger {
  border-color: #fecaca;
  background: #fff7f7;
}
.dashboard-action-card.action-danger .action-icon {
  background: #fee2e2;
  color: var(--danger);
}
.danger-button {
  background: var(--danger);
}
.danger-button:hover {
  background: #b91c1c;
}
.cleanup-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.cleanup-types {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-compact);
}
.cleanup-types legend {
  padding: 0 8px;
  color: var(--muted);
  font-weight: var(--font-bold);
}
.cleanup-confirm-form {
  margin-top: 18px;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.view-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: var(--font-semibold);
}
.view-tabs a.active {
  border-color: var(--primary);
  background: #ecfeff;
  color: var(--primary-dark);
}

.health-list { display: grid; gap: 10px; margin: 20px 0 0; }
.health-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.health-list dt { color: var(--muted); }
.health-list dd { margin: 0; font-weight: var(--font-semibold); text-align: right; }
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  margin-right: 6px;
  background: var(--warning);
}
.status-connected { background: var(--success); }
.status-error { background: var(--danger); }

.step-list { color: var(--text); line-height: 1.65; }
.code-block {
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .main-shell { padding: 18px 12px 32px; }
  .auth-panel, .status-panel, .doc-panel, .module-panel, .dashboard-hero { padding: 18px; }
  .action-grid { grid-template-columns: 1fr; }
  .health-list div { display: grid; gap: 4px; }
  .health-list dd { text-align: left; }
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-title-row h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
.page-title-row p {
  margin: 0;
  color: var(--muted);
}
.compact-button {
  width: auto;
  white-space: nowrap;
}
.filter-panel,
.ticket-form,
.report-status-card,
.summary-grid,
.empty-state {
  width: 100%;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
}
.filter-panel label,
.ticket-form label {
  display: grid;
  gap: 6px;
  font-weight: var(--font-semibold);
}
.filter-panel span,
.ticket-form span {
  font-size: 13px;
  color: var(--muted);
}
.ticket-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.full-span {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ticket-list {
  display: grid;
  gap: 14px;
}
.ticket-group {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.group-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.group-heading h2 { margin: 0 0 4px; font-size: 20px; }
.group-heading p { margin: 0; color: var(--muted); }
.group-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.group-metrics span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: var(--font-semibold);
}
.ticket-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ticket-kind-thera-healing-spa { border-left: 5px solid #0f766e; }
.ticket-kind-bliss-spa { border-left: 5px solid #c026d3; }
.ticket-kind-athome_direct { border-left: 5px solid #2563eb; }
.ticket-kind-athome_referral { border-left: 5px solid #f59e0b; }
.ticket-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
}
.type-thera-healing-spa { background: #ccfbf1; color: #115e59; }
.type-bliss-spa { background: #fae8ff; color: #a21caf; }
.type-athome_direct { background: #dbeafe; color: #1d4ed8; }
.type-athome_referral { background: #fef3c7; color: #92400e; }
.compact-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ticket-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ticket-card-head strong {
  display: block;
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}
.ticket-card-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.4;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}
.ticket-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.ticket-facts div {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}
.ticket-facts dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.ticket-facts dd {
  margin: 3px 0 0;
  font-weight: var(--font-semibold);
  overflow-wrap: anywhere;
}
.ticket-note {
  margin: 0;
  padding: 10px;
  color: var(--muted);
  background: #f8fafc;
  border-radius: 12px;
}
.warning-note {
  color: #92400e;
  background: #fffbeb;
}
.form-section {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}
.form-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.nested-form {
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.checkbox-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}
.checkbox-row input {
  width: 20px;
  min-height: 20px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.access-form .form-section {
  background: #fff;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}
.status-draft,
.status-open {
  background: #ecfeff;
  color: #0e7490;
}
.status-submitted {
  background: #fef3c7;
  color: #92400e;
}
.status-corrected {
  background: #fff1f2;
  color: #be123c;
}
.status-locked {
  background: #f1f5f9;
  color: #334155;
}
.status-pending {
  background: #fff7ed;
  color: #c2410c;
}
.status-confirmed {
  background: #ecfdf3;
  color: #15803d;
}
.status-none {
  background: #f8fafc;
  color: #64748b;
}
.split-alert {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.split-facts {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Phase 2.6 tickets UI pilot */
.page-tickets-ui {
  --tickets-bg: var(--color-bg);
  --tickets-card: var(--color-surface);
  --tickets-text: var(--color-text);
  --tickets-muted: var(--color-muted);
  --tickets-line: var(--color-border);
  --tickets-teal: var(--color-healing);
  --tickets-teal-dark: var(--color-primary-dark);
  --tickets-blue: var(--color-athome);
  --tickets-amber: var(--color-split);
  --tickets-purple: var(--color-bliss);
  --tickets-shadow: 0 14px 36px rgba(15, 23, 42, .075);
  background: var(--tickets-bg);
}
.page-tickets-ui .main-shell {
  width: min(100%, 1160px);
  padding-top: 36px;
}
.tickets-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.tickets-page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 36px);
  line-height: var(--leading-tight);
  letter-spacing: 0;
  font-weight: var(--font-bold);
  color: var(--tickets-text);
}
.tickets-page-head p {
  margin: 0;
  color: var(--tickets-muted);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
}
.tickets-new-button {
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tickets-teal), var(--tickets-teal-dark));
  box-shadow: 0 14px 24px rgba(15, 131, 118, .22);
  font-size: var(--text-md);
}
.tickets-tabs {
  margin-bottom: 16px;
}
.tickets-tabs a {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}
.tickets-tabs a.active {
  position: relative;
  background: #fff;
  border-color: #9fd8d1;
  color: var(--tickets-teal);
}
.tickets-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--tickets-teal);
}
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  border: 1px solid #fecdd3;
  border-radius: 99px;
  color: #e11d48;
  background: #fff1f2;
  font-size: 12px;
  font-weight: var(--font-semibold);
}
.tickets-filter {
  grid-template-columns: 1.1fr 1.25fr 1fr 1fr .72fr;
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: var(--tickets-shadow);
}
.tickets-filter label {
  font-weight: var(--font-semibold);
}
.tickets-filter label > span {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--tickets-muted);
}
.tickets-filter input,
.tickets-filter select {
  min-height: 44px;
  border-radius: 12px;
  color: var(--tickets-text);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}
.tickets-filter select:disabled {
  color: #94a3b8;
  background: #f3f6fb;
}
.tickets-filter-button {
  min-height: 44px;
  gap: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tickets-teal), var(--tickets-teal-dark));
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 131, 118, .2);
}
.tickets-kpi-grid {
  display: grid;
  gap: 16px;
  margin: 22px 0 28px;
}
.tickets-kpi-grid--operator {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px 30px;
  border: 1px solid var(--tickets-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--tickets-shadow);
}
.tickets-kpi-grid--owner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tickets-kpi-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--tickets-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}
.tickets-kpi-grid--operator .tickets-kpi-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tickets-kpi-grid--operator .tickets-kpi-card + .tickets-kpi-card {
  border-left: 1px solid var(--tickets-line);
}
.tickets-kpi-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
}
.tickets-kpi-card--teal .tickets-kpi-icon,
.tickets-kpi-card--mint .tickets-kpi-icon { background: #dff8f4; color: var(--tickets-teal); }
.tickets-kpi-card--amber .tickets-kpi-icon { background: #fef3c7; color: #d97706; }
.tickets-kpi-card--danger .tickets-kpi-icon { background: #fee2e2; color: #dc2626; }
.tickets-kpi-card small {
  display: block;
  color: var(--tickets-muted);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: var(--text-xs);
}
.tickets-kpi-card strong {
  display: block;
  margin-top: 4px;
  color: var(--tickets-text);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.tickets-kpi-card em {
  display: block;
  margin-top: 6px;
  color: var(--tickets-muted);
  font-style: normal;
  font-size: var(--text-sm);
}
.tickets-group {
  margin: 0 0 22px;
  border: 1px solid var(--tickets-line);
  border-left: 5px solid var(--tickets-teal);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--tickets-shadow);
  overflow: hidden;
}
.tickets-group--athome_direct { border-left-color: var(--tickets-blue); }
.tickets-group--athome_referral { border-left-color: var(--tickets-amber); }
.tickets-group--bliss-spa { border-left-color: var(--tickets-purple); }
.tickets-group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--tickets-line);
}
.tickets-group-head h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--tickets-teal);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.tickets-group--athome_direct .tickets-group-head h2 { color: var(--tickets-blue); }
.tickets-group--athome_referral .tickets-group-head h2 { color: #d97706; }
.tickets-group--bliss-spa .tickets-group-head h2 { color: var(--tickets-purple); }
.tickets-group-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--tickets-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}
.tickets-collapse-button {
  width: 38px;
  min-height: 38px;
  border-radius: 10px;
  background: #fff;
  border-color: var(--tickets-line);
}
.tickets-card-list {
  display: grid;
  gap: 12px;
  padding: 0;
}
.ticket-card--pilot {
  margin: 0;
  border-width: 0 0 0 5px;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 30px 20px;
}
.tickets-facts--pilot {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tickets-facts--pilot div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  border: 1px solid var(--tickets-line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}
.tickets-facts--pilot dt {
  grid-column: 2;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 11px;
  color: var(--tickets-muted);
  font-weight: var(--font-semibold);
}
.tickets-facts--pilot dd {
  grid-column: 2;
  margin: 2px 0 0;
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--tickets-text);
}
.tickets-facts--pilot .icon-pill {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.ticket-card--pilot .warning-note {
  display: grid;
  gap: 2px;
  background: #fffbeb;
  color: #b45309;
}
.ticket-card--pilot .warning-note strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
}
.tickets-owner-list {
  display: grid;
  gap: 0;
}
.tickets-owner-head,
.tickets-owner-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.2fr) .68fr minmax(112px, .95fr) minmax(112px, .95fr) .7fr .82fr minmax(90px, .78fr) .8fr .58fr .82fr minmax(108px, .95fr);
  align-items: center;
  gap: 10px;
}
.tickets-owner-list--basic .tickets-owner-head,
.tickets-owner-list--basic .tickets-owner-row {
  grid-template-columns: minmax(132px, 1.25fr) .7fr minmax(112px, 1fr) minmax(112px, 1fr) .72fr .86fr .82fr .62fr minmax(112px, 1fr);
}
.tickets-owner-head {
  padding: 13px 26px;
  background: #f8fafc;
  color: #526071;
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tickets-owner-row {
  padding: 14px 26px;
  border-top: 1px solid var(--tickets-line);
}
.tickets-owner-row:first-of-type {
  border-top: 0;
}
.owner-tour-cell,
.owner-data-cell {
  min-width: 0;
}
.owner-tour-cell {
  display: grid;
  gap: 3px;
}
.owner-data-cell {
  display: grid;
  gap: 4px;
  color: var(--tickets-muted);
  font-size: var(--text-sm);
}
.owner-data-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--tickets-text);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.owner-data-cell small {
  color: var(--tickets-muted);
  font-size: 11px;
  font-weight: var(--font-medium);
}
.owner-cell-label {
  display: none;
  color: var(--tickets-muted);
  font-size: 11px;
  font-weight: var(--font-semibold);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.owner-actions-cell {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.tour-code {
  display: block;
  color: var(--tickets-teal);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
}
.tour-code--athome_direct { color: var(--tickets-blue); }
.tour-code--athome_referral { color: #d97706; }
.tour-code--bliss-spa { color: var(--tickets-purple); }
.service-name {
  color: var(--tickets-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-actions .compact-button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--tickets-teal);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.ui-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  white-space: nowrap;
}
.ui-badge--draft,
.ui-badge--open {
  background: #dff8f4;
  color: #08756b;
}
.ui-badge--submitted,
.ui-badge--corrected {
  background: #dbeafe;
  color: #1d4ed8;
}
.ui-badge--locked {
  background: #f1f5f9;
  color: #475569;
}
.ui-badge--confirmed {
  background: #dcfce7;
  color: #15803d;
}
.ui-badge--pending {
  background: #fef3c7;
  color: #b45309;
}
.ui-badge--none {
  background: #f1f5f9;
  color: #64748b;
}
.report-mini {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--tickets-line);
  border-radius: 8px;
  color: #475569;
  background: #fff;
}
.tickets-pagination-note {
  margin: 28px auto 0;
  text-align: center;
  color: var(--tickets-muted);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .tickets-owner-head {
    display: none;
  }
  .tickets-owner-row,
  .tickets-owner-list--basic .tickets-owner-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    padding: 18px 22px;
  }
  .owner-tour-cell {
    grid-column: 1 / -1;
  }
  .owner-cell-label {
    display: block;
  }
  .owner-actions-cell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .tickets-page-head {
    display: grid;
  }
  .tickets-new-button {
    justify-self: start;
  }
  .tickets-filter {
    grid-template-columns: 1fr 1fr;
  }
  .tickets-filter-button {
    grid-column: 1 / -1;
  }
  .tickets-kpi-grid,
  .tickets-kpi-grid--operator,
  .tickets-kpi-grid--owner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tickets-kpi-grid--operator .tickets-kpi-card {
    border: 1px solid var(--tickets-line);
    border-radius: 16px;
  }
  .tickets-facts--pilot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tickets-owner-row,
  .tickets-owner-list--basic .tickets-owner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-tickets-ui .main-shell {
    padding-top: 24px;
  }
  .tickets-page-head h1 {
    font-size: 32px;
  }
  .tickets-tabs a {
    min-height: 44px;
    padding: 0 16px;
  }
  .tickets-filter,
  .tickets-kpi-grid,
  .tickets-kpi-grid--operator,
  .tickets-kpi-grid--owner,
  .tickets-facts--pilot {
    grid-template-columns: 1fr;
  }
  .ticket-card--pilot {
    padding: 20px;
  }
  .ticket-card-head {
    display: grid;
  }
  .ticket-badges {
    justify-content: flex-start;
  }
  .tickets-owner-row,
  .tickets-owner-list--basic .tickets-owner-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .tickets-group-head {
    display: grid;
    padding: 18px;
  }
}
.empty-state {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: var(--muted);
}
.empty-state strong {
  color: var(--text);
}
.report-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.report-status-card h2 {
  margin: 8px 0 4px;
}
.report-status-card p {
  margin: 0;
  color: var(--muted);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.summary-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.summary-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-semibold);
}
.summary-grid strong {
  font-size: 22px;
}

@media (min-width: 900px) {
  .ticket-card {
    border-radius: 14px;
  }
}

@media (max-width: 820px) {
  .page-title-row {
    display: grid;
  }
  .filter-panel,
  .ticket-form,
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .ticket-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-facts,
  .permission-grid {
    grid-template-columns: 1fr;
  }
  .group-heading {
    display: grid;
  }
  .report-status-card {
    display: grid;
  }
}

@media (max-width: 520px) {
  .ticket-card-head {
    display: grid;
  }
  .ticket-facts {
    grid-template-columns: 1fr;
  }
  .compact-button {
    width: 100%;
  }
}

/* Phase 2.6.2 ticket form and daily report unification */
.page-ticket-form-ui,
.page-daily-report-ui {
  background: var(--color-bg);
}
.page-ticket-form-ui .main-shell {
  width: min(100%, 1040px);
  padding-top: 34px;
}
.page-daily-report-ui .main-shell {
  width: min(100%, 1160px);
  padding-top: 34px;
}
.form-page-head,
.report-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.form-page-head h1,
.report-page-head h1 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: clamp(32px, 4vw, 36px);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
  letter-spacing: 0;
}
.form-page-head p,
.report-page-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-md);
}
.form-alert {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  font-weight: var(--font-medium);
}
.form-alert strong {
  color: var(--danger);
  font-weight: var(--font-bold);
}
.ticket-entry-form {
  display: grid;
  gap: 16px;
}
.form-section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
  padding: 22px;
}
.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.form-section-head h2 {
  margin: 0 0 4px;
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.form-section-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-section-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.form-section-grid label > span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.form-section-grid input,
.form-section-grid select,
.form-section-grid textarea,
.report-filter-card input,
.report-filter-card select {
  min-height: 46px;
  border-radius: 12px;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}
.form-section-grid textarea {
  resize: vertical;
}
.form-section-grid small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}
.form-full {
  grid-column: 1 / -1;
}
.ticket-entry-form .split-alert {
  margin: 16px 0 0;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.ticket-entry-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #f8fafc;
}
.ticket-entry-form .checkbox-row input {
  width: 18px;
  min-height: 18px;
}
.ticket-entry-form .checkbox-row span {
  color: var(--color-text);
  font-size: var(--text-base);
}
.form-submit-bar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(217, 225, 236, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
  backdrop-filter: blur(12px);
}
.form-submit-bar .primary-button,
.report-new-ticket {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 14px 24px rgba(15, 118, 110, .2);
}
.entry-mode-card {
  padding-bottom: 18px;
}
.entry-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.entry-mode-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--color-text);
  font-weight: var(--font-semibold);
}
.entry-mode-toggle input {
  width: 18px;
  min-height: 18px;
}
.form-helper {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.group-entry-section[hidden],
.group-ticket-item[hidden] {
  display: none !important;
}
.group-ticket-items {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.group-ticket-item {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #f8fafc;
}
.group-ticket-item h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
}

.report-filter-card,
.report-status-panel,
.report-section,
.report-split-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}
.report-filter-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: end;
  gap: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.report-filter-card label {
  display: grid;
  gap: 7px;
}
.report-filter-card label > span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.report-filter-card button {
  min-height: 46px;
  border-radius: 12px;
}
.report-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}
.report-status-main {
  display: grid;
  gap: 8px;
}
.report-status-main h2 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.report-status-main p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.report-status-main p strong {
  color: var(--color-text);
  font-weight: var(--font-semibold);
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.tickets-kpi-card--blue .tickets-kpi-icon {
  background: #dbeafe;
  color: var(--color-athome);
}
.report-split-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  border-left: 5px solid var(--color-athome);
}
.report-split-panel--bliss {
  border-left-color: var(--color-bliss);
}
.report-split-panel article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f8fafc;
}
.report-split-panel span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.report-split-panel strong {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
}
.report-section {
  overflow: hidden;
  margin-bottom: 18px;
}
.report-section-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--color-border);
}
.report-section-head h2 {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.report-section-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.technician-list,
.report-ticket-list {
  display: grid;
}
.technician-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) .7fr 1fr .8fr .9fr;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--color-border);
}
.technician-row:first-child {
  border-top: 0;
}
.technician-row strong {
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
}
.technician-row span {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}
.text-danger {
  color: var(--danger) !important;
}
.report-ticket-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) .68fr minmax(110px, .95fr) minmax(110px, .95fr) .72fr .8fr .8fr .78fr .82fr;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--color-border);
}
.report-ticket-row:first-child {
  border-top: 0;
}
.report-ticket-row > div {
  min-width: 0;
}
.report-ticket-row > div:not(.report-ticket-main):not(.report-ticket-actions):not(.report-ticket-split) {
  display: grid;
  gap: 4px;
}
.report-ticket-row span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.report-ticket-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.report-ticket-main {
  display: grid;
  gap: 4px;
}
.report-ticket-main strong {
  color: var(--color-primary);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
}
.reconciliation-card-list {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}
.reconciliation-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.reconciliation-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #fbfdff;
}
.reconciliation-card__head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.reconciliation-card__head strong {
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.reconciliation-card__head span:not(.ui-badge) {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.reconciliation-card__head .ui-badge {
  flex: 0 0 auto;
}
.reconciliation-note {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.reconciliation-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}
.reconciliation-metric {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.reconciliation-metric.is-problem {
  border-color: #fecaca;
  background: #fff7f7;
}
.reconciliation-metric > span,
.reconciliation-internal span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}
.reconciliation-metric strong,
.reconciliation-internal strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.reconciliation-metric small {
  display: grid;
  gap: 3px;
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}
.reconciliation-delta {
  color: #15803d;
  font-weight: var(--font-semibold);
}
.reconciliation-delta--bad {
  color: #b91c1c;
}
.reconciliation-internal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}
.reconciliation-internal > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
}
.reconciliation-internal small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}
.monthly-live-payroll-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.page-monthly-closing-ui .tickets-kpi-grid--operator {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px;
}
.page-monthly-closing-ui .tickets-kpi-card {
  min-width: 0;
}
.page-monthly-closing-ui .tickets-kpi-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.6vw, 23px);
}
.monthly-issue-list {
  display: grid;
}
.monthly-issue-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px minmax(150px, .5fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--color-border);
}
.monthly-issue-row:first-child {
  border-top: 0;
}
.monthly-issue-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.monthly-issue-main .ui-badge {
  margin-bottom: 2px;
}
.monthly-issue-main strong {
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
}
.monthly-issue-main p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.monthly-issue-count,
.monthly-issue-policy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.monthly-issue-count span,
.monthly-issue-policy span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}
.monthly-issue-count strong,
.monthly-issue-policy strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}
.monthly-close-blockers {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
}
.monthly-close-blockers strong {
  color: #78350f;
}
.monthly-close-blockers span {
  font-size: var(--text-sm);
}
.report-ticket-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-ticket-actions .compact-button {
  min-height: 36px;
  border-radius: 9px;
  color: var(--color-primary);
}
.report-ticket-split {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}
.report-ticket-split span {
  color: #9a3412;
}
.report-ticket-split strong {
  color: #7c2d12;
}
.page-daily-report-ui .ui-badge--open {
  background: #dff8f4;
  color: #08756b;
}

.page-checkin-ui .main-shell {
  width: min(100%, 760px);
  padding-top: 34px;
}
.checkin-panel {
  display: grid;
  place-items: start center;
}
.checkin-card {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
}
.checkin-card h1 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}
.checkin-card p {
  margin: 0;
  color: var(--color-muted);
}
.checkin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.checkin-form label {
  display: grid;
  gap: 7px;
}
.checkin-form label > span,
.shift-facts span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.shift-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shift-facts div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f8fafc;
}
.shift-facts strong {
  color: var(--color-text);
  font-size: var(--text-md);
}
.checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.checklist-inline-form {
  margin-top: 12px;
  box-shadow: none;
  border-radius: 12px;
}

.page-settings-ui .ticket-card,
.page-checklist-ui .ticket-card,
.page-tip-ui .ticket-card {
  overflow: hidden;
}

.report-ticket-row.is-muted {
  opacity: 0.62;
}

.ticket-row--voided {
  opacity: 0.68;
}

.ui-badge--voided,
.ui-badge--rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.page-financial-report-ui .main-shell {
  width: min(100%, 1240px);
  padding-top: 34px;
}
.page-monthly-closing-ui .main-shell {
  width: min(100%, 1240px);
  padding-top: 34px;
}
.page-financial-report-ui .report-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.page-financial-report-ui .tickets-kpi-card {
  min-height: 108px;
}
.page-financial-report-ui .tickets-kpi-card strong {
  font-size: clamp(19px, 1.6vw, 24px);
}
.financial-filter-panel {
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px;
}
.financial-filter-panel .secondary-button,
.financial-filter-panel .primary-button {
  min-height: 46px;
}
.financial-filter-panel input,
.financial-filter-panel select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}
.financial-filter-panel button {
  grid-column: span 2;
  width: 100%;
  min-height: 46px;
  justify-content: center;
  white-space: nowrap;
}
.monthly-closing-filter {
  grid-template-columns: minmax(110px, .7fr) minmax(140px, .8fr) minmax(220px, 1.35fr) minmax(170px, .8fr);
  align-items: end;
  padding: 18px 20px;
  border-radius: 16px;
}
.monthly-closing-filter label {
  min-width: 0;
}
.monthly-closing-filter label > span {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-muted);
}
.monthly-closing-filter input,
.monthly-closing-filter select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}
.monthly-filter-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .16);
}
.monthly-closing-readiness {
  display: grid;
  grid-template-columns: .8fr 1.2fr 1fr .9fr;
  gap: 12px;
  margin: 14px 0 18px;
}
.monthly-closing-readiness > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}
.monthly-closing-readiness span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}
.monthly-closing-readiness strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.monthly-closing-readiness .is-blocked {
  border-color: #fecaca;
  background: #fff7f7;
}
.monthly-closing-readiness .is-blocked strong {
  color: #b91c1c;
}
.monthly-closing-readiness .is-clean {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.monthly-closing-readiness .is-clean strong {
  color: #15803d;
}
.financial-hero-card {
  align-items: center;
}
.financial-hero-actions {
  display: flex;
  justify-content: flex-end;
}
.financial-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 16px;
}
.financial-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}
.financial-quick-links a:hover {
  border-color: rgba(15, 118, 110, .38);
  background: #f0fdfa;
}
.financial-charts-section {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.financial-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
  padding-top: 6px;
}
.financial-detail-heading h2 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
}
.financial-detail-heading p {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.financial-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.financial-chart-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}
.financial-chart-card--wide {
  grid-column: span 2;
}
.financial-chart-grid > .financial-chart-card:nth-child(5) {
  grid-column: span 2;
}
.financial-chart-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.financial-chart-card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
}
.financial-chart-card p {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.chart-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--color-border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--color-muted);
  font-weight: var(--font-semibold);
  text-align: center;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}
.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.line-chart-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background:
    linear-gradient(to bottom, rgba(148, 163, 184, .14) 1px, transparent 1px) 0 0 / 100% 25%,
    #fbfdff;
}
.single-day-chart {
  display: grid;
  gap: 14px;
}
.single-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f8fafc;
}
.single-day-heading span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.single-day-heading strong {
  color: var(--color-text);
  font-size: var(--text-lg);
}
.line-chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.line-chart-zero {
  stroke: rgba(15, 23, 42, .18);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}
.line-chart-scale {
  position: absolute;
  inset: 10px 12px auto auto;
  display: grid;
  gap: 6px;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-align: right;
}
.chart-axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.horizontal-bar-list,
.grouped-bar-list,
.compact-list {
  display: grid;
  gap: 12px;
}
.horizontal-bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(120px, 1.8fr) minmax(92px, auto);
  gap: 12px;
  align-items: center;
}
.horizontal-bar-label,
.grouped-bar-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.horizontal-bar-label strong,
.grouped-bar-title strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.horizontal-bar-label span,
.grouped-bar-title span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.horizontal-bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.horizontal-bar-track i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}
.horizontal-bar-value {
  color: var(--color-text);
  font-size: var(--text-sm);
  text-align: right;
  white-space: nowrap;
}
.grouped-bar-row {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 2fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fbfdff;
}
.grouped-bar-row:first-child {
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.grouped-bar-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.grouped-bar-item {
  display: grid;
  grid-template-columns: 90px minmax(70px, 1fr) minmax(82px, auto);
  gap: 9px;
  align-items: center;
}
.grouped-bar-item span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}
.grouped-bar-item strong {
  color: var(--color-text);
  font-size: var(--text-xs);
  text-align: right;
  white-space: nowrap;
}
.chart-tone-teal {
  background: #0f766e;
}
.chart-tone-mint {
  background: #16a34a;
}
.chart-tone-blue {
  background: #2563eb;
}
.chart-tone-amber {
  background: #f59e0b;
}
.chart-tone-danger {
  background: #dc2626;
}
.financial-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
  -webkit-overflow-scrolling: touch;
}
.table-scroll--polished {
  scrollbar-color: #94a3b8 #f1f5f9;
  scrollbar-width: thin;
}
.table-scroll--polished::-webkit-scrollbar {
  height: 10px;
}
.table-scroll--polished::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}
.table-scroll--polished::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}
.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.data-table--compact {
  min-width: 620px;
}
.report-table--wide {
  min-width: 960px;
}
.report-table--xl {
  min-width: 1280px;
}
.report-table--sticky-first th:first-child,
.report-table--sticky-first td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 150px;
  background: #fff;
  box-shadow: 1px 0 0 var(--color-border);
}
.report-table--sticky-first thead th:first-child {
  z-index: 3;
  background: #f8fafc;
}
.service-detail-table-wrap {
  border-radius: 12px;
  box-shadow: none;
}
.data-table--service-detail {
  min-width: 560px;
  font-size: var(--text-sm);
}
.data-table--service-detail th,
.data-table--service-detail td {
  height: 52px;
  padding: 10px 12px;
}
.data-table--service-detail td:first-child strong {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.data-table--service-detail td:not(:first-child) {
  font-size: var(--text-sm);
}
.service-detail-cards {
  display: none;
}
.service-detail-cards article {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
}
.service-detail-cards article:first-child {
  border-top: 0;
}
.service-detail-cards header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.service-detail-cards header strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.service-detail-cards header span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}
.service-detail-cards dl {
  display: grid;
  gap: 7px;
  margin: 0;
}
.service-detail-cards dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.service-detail-cards dt,
.service-detail-cards dd {
  margin: 0;
  font-size: var(--text-xs);
}
.service-detail-cards dt {
  color: var(--color-muted);
  font-weight: var(--font-semibold);
}
.service-detail-cards dd {
  color: var(--color-text);
  font-weight: var(--font-bold);
  text-align: right;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.data-table th:not(:first-child),
.data-table td:not(:first-child) {
  text-align: right;
}
.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}
.data-table th {
  background: #f8fafc;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table td strong {
  color: var(--color-text);
  font-weight: var(--font-bold);
}
.data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: var(--text-xs);
  white-space: normal;
}
.data-table a {
  color: var(--color-primary);
  font-weight: var(--font-bold);
  text-decoration: none;
}
.data-table a:hover {
  text-decoration: underline;
}
.branch-scope-fieldset {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.branch-scope-fieldset legend {
  padding: 0 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-muted);
}
.branch-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
  margin-top: 10px;
}
.branch-scope-fieldset small {
  display: block;
  margin-top: 10px;
  color: var(--color-muted);
}
.report-split-panel--athome article {
  border-left: 4px solid var(--color-primary);
}
.compact-list div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}
.compact-list div:first-child {
  border-top: 0;
  padding-top: 0;
}
.compact-list span {
  color: var(--color-text);
  font-weight: var(--font-bold);
  overflow-wrap: anywhere;
}
.compact-list strong {
  color: var(--color-primary);
  text-align: right;
  white-space: nowrap;
}
.compact-list small {
  grid-column: 1 / -1;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}
.compact-list--detail {
  gap: 0;
}
.compact-list--detail div {
  min-height: 58px;
  padding: 10px 0;
}
.compact-list--detail span {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}
.compact-list--detail strong {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
}
.compact-list--detail small {
  font-size: var(--text-xs);
  line-height: 1.35;
}
.compact-list--service-detail div {
  grid-template-columns: minmax(160px, 1fr) minmax(110px, auto);
}
.financial-export-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.financial-export-note strong {
  color: var(--color-text);
}
.financial-export-note a {
  margin-left: auto;
  color: var(--color-primary);
  font-weight: var(--font-bold);
  text-decoration: none;
}

.receipt-create-callout,
.receipts-page-head,
.receipt-summary-panel,
.receipt-total-panel,
.receipt-action-panel,
.print-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.receipt-create-callout {
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 16px;
  background: #f0fdfa;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}
.receipt-create-callout div:first-child,
.receipts-page-head > div:first-child {
  display: grid;
  gap: 5px;
}
.receipt-create-callout strong,
.receipts-page-head h1 {
  color: var(--color-text);
}
.receipt-create-callout span,
.receipts-page-head p {
  color: var(--color-muted);
}
.receipt-create-actions,
.receipt-actions,
.receipt-action-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.receipt-create-actions form,
.receipt-action-panel form,
.owner-actions-cell form,
.form-actions form,
.print-toolbar form {
  margin: 0;
}
.receipts-page-head {
  justify-content: space-between;
  margin-bottom: 18px;
}
.receipts-page-head h1 {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}
.receipts-page-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
}
.receipts-filter {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}
.receipt-summary-panel,
.receipt-total-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}
.receipt-summary-panel div,
.receipt-total-panel div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}
.receipt-summary-panel span,
.receipt-total-panel span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}
.receipt-summary-panel strong,
.receipt-total-panel strong {
  color: var(--color-text);
}
.receipt-total-final {
  border-color: rgba(15, 118, 110, .32) !important;
  background: #f0fdfa !important;
}
.receipt-action-panel {
  justify-content: flex-end;
}
.danger-button {
  color: #b91c1c;
  border-color: #fecaca;
}
.ui-badge--printed {
  background: #dcfce7;
  color: #15803d;
}
.ui-badge--cancelled,
.ui-badge--cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.page-receipt-print-ui {
  background: #f8fafc;
}
.page-receipt-print-ui .main-shell {
  width: min(100%, 760px);
  padding-top: 24px;
}
.print-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.receipt-print-sheet {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}
.receipt-print-head {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #111827;
  text-align: center;
}
.receipt-print-head strong {
  font-size: 22px;
  letter-spacing: .04em;
}
.receipt-print-head span {
  font-size: 18px;
  font-weight: var(--font-bold);
}
.receipt-print-head small {
  color: #6b7280;
  font-weight: var(--font-semibold);
}
.receipt-print-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}
.receipt-print-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.receipt-print-meta span,
.receipt-print-table small,
.receipt-print-note span {
  color: #6b7280;
}
.receipt-print-note {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.receipt-print-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13px;
}
.receipt-print-table th,
.receipt-print-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
  vertical-align: top;
}
.receipt-print-table th:nth-child(2),
.receipt-print-table td:nth-child(2) {
  text-align: left;
}
.receipt-print-table th:first-child,
.receipt-print-table td:first-child {
  text-align: center;
}
.receipt-print-table small {
  display: block;
  margin-top: 2px;
}
.receipt-print-totals {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  margin-left: auto;
  max-width: 320px;
}
.receipt-print-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.receipt-print-totals div:last-child {
  padding-top: 8px;
  border-top: 2px solid #111827;
  font-size: 18px;
}
.receipt-print-footer {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #9ca3af;
  text-align: center;
}

@media (max-width: 980px) {
  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-financial-report-ui .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .financial-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .receipts-filter,
  .receipt-summary-panel,
  .receipt-total-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .financial-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .monthly-closing-filter,
  .monthly-closing-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-monthly-closing-ui .tickets-kpi-grid--operator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .financial-filter-panel button {
    grid-column: span 2;
  }
  .monthly-filter-submit {
    grid-column: span 2;
  }
  .financial-chart-grid,
  .financial-chart-card--wide {
    grid-template-columns: 1fr;
  }
  .financial-chart-card--wide {
    grid-column: auto;
  }
  .financial-chart-grid > .financial-chart-card:nth-child(5) {
    grid-column: auto;
  }
  .grouped-bar-row,
  .grouped-bar-bars {
    grid-template-columns: 1fr;
  }
  .dashboard-action-grid,
  .cleanup-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-split-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-ticket-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .report-ticket-main {
    grid-column: 1 / -1;
  }
  .reconciliation-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .monthly-issue-row {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .monthly-issue-row .compact-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .technician-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .form-page-head,
  .report-page-head,
  .page-hero-card,
  .report-status-panel {
    display: grid;
  }
  .form-section-grid,
  .report-filter-card,
  .financial-filter-panel,
  .report-kpi-grid,
  .page-financial-report-ui .report-kpi-grid,
  .dashboard-action-grid,
  .cleanup-panel,
  .cleanup-types,
  .report-split-panel,
  .report-ticket-row,
  .technician-row,
  .entry-mode-toggle,
  .checkin-form,
  .shift-facts {
    grid-template-columns: 1fr;
  }
  .form-section-card,
  .report-status-panel,
  .report-filter-card {
    padding: 18px;
  }
  .reconciliation-card-list {
    padding: 14px;
  }
  .reconciliation-card__head {
    display: grid;
    padding: 14px;
  }
  .reconciliation-card__head .ui-badge {
    justify-self: start;
  }
  .reconciliation-note {
    margin: 12px 14px 0;
  }
  .reconciliation-metric-grid,
  .reconciliation-internal {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .reconciliation-internal {
    padding-top: 0;
  }
  .reconciliation-metric {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .reconciliation-metric strong {
    text-align: right;
    font-size: var(--text-md);
  }
  .reconciliation-metric small {
    grid-column: 1 / -1;
  }
  .monthly-issue-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
  }
  .monthly-issue-row .compact-button {
    width: 100%;
  }
  .form-submit-bar {
    position: static;
    display: grid;
  }
  .report-new-ticket,
  .form-page-head .compact-button {
    width: 100%;
  }
  .financial-hero-actions,
  .financial-hero-actions .compact-button,
  .financial-export-note a,
  .receipt-create-actions,
  .receipt-create-actions .compact-button,
  .receipt-actions,
  .receipt-actions .compact-button {
    width: 100%;
  }
  .receipt-create-callout,
  .receipts-page-head,
  .receipt-print-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .receipts-filter,
  .receipt-summary-panel,
  .receipt-total-panel {
    grid-template-columns: 1fr;
  }
  .financial-filter-panel button {
    grid-column: auto;
  }
  .monthly-closing-filter,
  .monthly-closing-readiness,
  .page-monthly-closing-ui .tickets-kpi-grid--operator {
    grid-template-columns: 1fr;
  }
  .monthly-filter-submit {
    grid-column: auto;
  }
  .report-table--sticky-first th:first-child,
  .report-table--sticky-first td:first-child {
    min-width: 135px;
  }
  .horizontal-bar-row,
  .grouped-bar-item {
    grid-template-columns: 1fr;
  }
  .service-detail-table-wrap {
    display: none;
  }
  .service-detail-cards {
    display: grid;
  }
  .horizontal-bar-value,
  .grouped-bar-item strong {
    text-align: left;
  }
  .line-chart-wrap {
    height: 220px;
  }
}

.payroll-table-scroll {
  position: relative;
}

.expense-disabled-action {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.page-expenses-ui .expense-primary-cta {
  background: linear-gradient(135deg, var(--tickets-teal), var(--tickets-teal-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(15, 131, 118, .26);
  opacity: 1;
}

.page-expenses-ui .expense-primary-cta:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(15, 131, 118, .32);
}

.page-expenses-ui .expense-disabled-action {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.page-expenses-ui .expense-disabled-action button:disabled {
  color: #64748b;
  background: #f8fafc;
  border-color: #cbd5e1;
  opacity: 1;
  cursor: not-allowed;
}

.expense-disabled-action small {
  max-width: 260px;
  color: #9a3412;
  text-align: right;
}

.payroll-sticky-table {
  min-width: 980px;
}

.payroll-sticky-table th:first-child,
.payroll-sticky-table td:first-child,
.payroll-sticky-table th:nth-child(2),
.payroll-sticky-table td:nth-child(2) {
  position: sticky;
  background: #fff;
  z-index: 2;
}

.payroll-sticky-table th:first-child,
.payroll-sticky-table td:first-child {
  left: 0;
  min-width: 180px;
}

.payroll-sticky-table th:nth-child(2),
.payroll-sticky-table td:nth-child(2) {
  left: 180px;
  min-width: 120px;
}

.payroll-sticky-table thead th:first-child,
.payroll-sticky-table thead th:nth-child(2) {
  z-index: 3;
}

.monthly-preview-actions,
.monthly-issues-actions,
.monthly-workbench-actions,
.monthly-action-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.monthly-preview-actions,
.monthly-issues-actions {
  justify-content: flex-end;
}

.monthly-issues-head {
  align-items: flex-start;
}

.monthly-issues-kpi {
  margin-top: 18px;
}

.monthly-issues-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.monthly-issues-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.monthly-issues-nav strong {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #e6fffb;
  border-radius: 999px;
}

.monthly-issue-section {
  margin-top: 18px;
}

.monthly-issue-section.is-muted {
  opacity: 0.72;
}

.monthly-issue-card-list {
  display: grid;
  gap: 12px;
}

.monthly-workbench-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.monthly-workbench-main {
  display: grid;
  gap: 8px;
}

.monthly-workbench-main strong {
  color: #0f172a;
  font-size: 1rem;
}

.monthly-workbench-main p {
  margin: 0;
  color: #667085;
}

.monthly-workbench-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #475467;
  font-size: 0.9rem;
}

.monthly-workbench-meta a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.monthly-workbench-actions {
  justify-content: flex-end;
}

.monthly-workbench-actions form,
.monthly-action-cell form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.monthly-workbench-actions input[type="text"],
.monthly-action-cell input[type="text"] {
  min-width: 180px;
  max-width: 260px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.monthly-workbench-actions--split {
  display: grid;
  justify-items: end;
}

.danger-outline {
  color: #b42318;
  border-color: #fecaca;
  background: #fff7f7;
}

.pwa-install-card {
  position: sticky;
  top: 8px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 12px 14px;
  color: #064e3b;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pwa-install-card[hidden] {
  display: none !important;
}

.pwa-install-card strong,
.pwa-install-card span,
.pwa-install-card small {
  display: block;
}

.pwa-install-card span {
  color: #0f766e;
  font-size: 0.9rem;
}

.pwa-install-card small {
  margin-top: 4px;
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pwa-install-card button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #0f766e;
  background: #d1fae5;
  font-size: 1.4rem;
}

.pwa-update-toast {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.pwa-update-toast span {
  min-width: 0;
  font-weight: var(--font-semibold);
}

.pwa-update-toast button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  background: var(--primary);
  font-weight: var(--font-bold);
}

.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px max(10px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #d8e3ef;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.mobile-bottom-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: #475467;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-bottom-nav a.is-active {
  color: #0f766e;
  background: #e6fffb;
}

.owner-command-title {
  align-items: flex-start;
}

.owner-command-actions,
.owner-mobile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.owner-command-dashboard,
.owner-command-panel {
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.owner-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.owner-command-grid--cards {
  margin-top: 18px;
}

.owner-command-grid--dashboard {
  margin-top: 12px;
}

.owner-command-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.owner-command-card:hover {
  text-decoration: none;
  border-color: #99f6e4;
}

.owner-command-card span {
  color: #475467;
  font-size: 0.88rem;
  font-weight: 700;
}

.owner-command-card .owner-command-card-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0f766e;
  background: #e6fffb;
  border-radius: 8px;
}

.owner-command-card strong {
  font-size: 1.75rem;
}

.owner-command-card b {
  color: #0f766e;
  font-size: 0.95rem;
}

.owner-command-card small {
  color: #667085;
}

.owner-command-card em {
  justify-self: start;
  padding: 6px 10px;
  color: #0f766e;
  background: #e6fffb;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-command-card--danger {
  border-left-color: #ef4444;
  background: #fffafa;
}

.owner-command-card--warning {
  border-left-color: #f59e0b;
  background: #fffdf5;
}

.owner-command-card--success {
  border-left-color: #10b981;
}

.owner-command-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.owner-active-list {
  display: grid;
  gap: 12px;
}

.owner-mobile-card-list,
.owner-task-list {
  display: none;
  gap: 12px;
  margin-top: 16px;
}

.owner-active-row,
.owner-approval-row,
.owner-command-mini-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.owner-active-row strong,
.owner-approval-row strong,
.owner-command-mini-list strong {
  display: block;
  color: #0f172a;
}

.owner-active-row small,
.owner-approval-row small,
.owner-command-mini-list span {
  display: block;
  color: #667085;
}

.owner-approval-row {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 10px;
}

.owner-command-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.owner-command-mini-list > div {
  grid-template-columns: 1fr;
}

.owner-command-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.owner-command-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fbfdff;
}

.owner-command-summary span,
.owner-command-summary small {
  color: #667085;
}

.owner-command-summary strong {
  color: #0f172a;
  font-size: 1.35rem;
}

.owner-command-filter {
  margin-top: 16px;
}

.owner-quick-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.owner-quick-filter a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  font-weight: 800;
}

.owner-quick-filter a.is-active {
  color: #0f766e;
  border-color: #99f6e4;
  background: #e6fffb;
}

.owner-mobile-card,
.owner-task-card,
.owner-recent-session-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d8e3ef;
  border-left: 5px solid #10b981;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.owner-mobile-card header,
.owner-task-card header,
.owner-recent-session-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.owner-mobile-card strong,
.owner-task-card strong,
.owner-recent-session-card strong {
  color: #0f172a;
  font-size: 1.02rem;
}

.owner-mobile-card span,
.owner-mobile-card small,
.owner-task-card small,
.owner-recent-session-card span {
  color: #667085;
}

.owner-mobile-card em,
.owner-task-card em,
.owner-task-card header span,
.owner-recent-session-card em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #0f766e;
  background: #e6fffb;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-mobile-card dl,
.owner-recent-session-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.owner-mobile-card dl div,
.owner-recent-session-card dl div {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.owner-mobile-card dt,
.owner-recent-session-card dt {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.owner-mobile-card dd,
.owner-recent-session-card dd {
  margin: 3px 0 0;
  color: #0f172a;
  font-weight: 800;
}

.owner-mobile-card p,
.owner-task-card p,
.owner-recent-session-card p {
  margin: 0;
  color: #9a3412;
  font-weight: 700;
}

.owner-mobile-card--danger,
.owner-task-card--danger {
  border-left-color: #ef4444;
}

.owner-mobile-card--warning,
.owner-task-card--warning {
  border-left-color: #f59e0b;
}

.owner-task-card b {
  color: #0f766e;
  font-size: 1.1rem;
}

.owner-task-list.is-visible,
.owner-recent-session-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.owner-empty-guidance {
  display: grid;
  gap: 8px;
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

@media (max-width: 720px) {
  body.page-app {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .main-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 35;
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-header .brand strong,
  .app-header .brand small {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-logout span {
    display: none;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .pwa-install-card {
    margin: 8px 12px 0;
  }

  .owner-command-dashboard,
  .owner-command-panel {
    padding: 14px;
  }

  .owner-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-command-card {
    min-height: 112px;
    padding: 12px;
  }

  .owner-command-card strong {
    font-size: 1.45rem;
  }

  .owner-command-actions,
  .owner-mobile-card-actions {
    justify-content: flex-start;
  }

  .owner-command-columns,
  .owner-active-row {
    grid-template-columns: 1fr;
  }

  .owner-mobile-card-list,
  .owner-task-list {
    display: grid;
  }

  .page-owner-command-center .owner-command-panel .table-scroll {
    display: none;
  }

  .owner-mobile-card-actions .compact-button,
  .owner-task-card .compact-button {
    min-height: 44px;
  }

  .owner-task-card {
    gap: 10px;
  }

  .payroll-sticky-table {
    min-width: 760px;
  }

  .payroll-sticky-table th:nth-child(2),
  .payroll-sticky-table td:nth-child(2) {
    position: static;
    min-width: auto;
  }

  .payroll-sticky-table th:first-child,
  .payroll-sticky-table td:first-child {
    left: 0;
    min-width: 160px;
  }

  .monthly-workbench-card {
    grid-template-columns: 1fr;
  }

  .monthly-preview-actions,
  .monthly-issues-actions,
  .monthly-workbench-actions {
    justify-content: flex-start;
  }

  .monthly-workbench-actions input[type="text"],
  .monthly-action-cell input[type="text"] {
    min-width: min(100%, 220px);
  }
}

@media print {
  @page {
    size: A5;
    margin: 10mm;
  }
  body,
  .page-receipt-print-ui {
    background: #fff !important;
  }
  .app-header,
  .flash,
  .no-print,
  .print-toolbar {
    display: none !important;
  }
  .page-receipt-print-ui .main-shell {
    width: 100%;
    padding: 0;
  }
  .receipt-print-sheet {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .receipt-print-table th,
  .receipt-print-table td {
    padding: 7px 4px;
  }
}

/* TCI-SHIFT-012C weekly roster foundation */
.work-schedule-page {
  display: grid;
  gap: 18px;
}

.work-schedule-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: #ecfeff;
  background:
    radial-gradient(circle at top right, rgba(94, 234, 212, 0.24), transparent 42%),
    linear-gradient(135deg, #0f766e 0%, #115e59 58%, #134e4a 100%);
  border: 1px solid rgba(15, 118, 110, 0.34);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-schedule-hero h1 {
  margin: 2px 0 7px;
  color: #fff;
  font-size: clamp(24px, 4vw, 32px);
  line-height: var(--leading-tight);
}

.work-schedule-hero p {
  max-width: 720px;
  margin: 0;
  color: #ccfbf1;
}

.work-schedule-eyebrow {
  color: #99f6e4 !important;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-schedule-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--font-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.work-schedule-hero .work-schedule-status {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.work-schedule-status--draft,
.work-schedule-status--open {
  color: #0e7490;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.work-schedule-status--submitted {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.work-schedule-status--returned {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.work-schedule-status--approved,
.work-schedule-status--active {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.work-schedule-status--locked,
.work-schedule-status--revoked,
.work-schedule-status--expired,
.work-schedule-status--inactive,
.work-schedule-status--cancelled {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.work-schedule-notice {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-compact);
}

.work-schedule-notice strong {
  font-size: var(--text-sm);
}

.work-schedule-notice span {
  font-size: var(--text-sm);
}

.work-schedule-notice--info {
  color: #155e75;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.work-schedule-notice--scope {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.work-schedule-notice--danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.work-schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.work-schedule-summary--approver {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-schedule-summary > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-compact);
}

.work-schedule-summary span,
.work-schedule-summary small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.work-schedule-summary strong {
  overflow-wrap: anywhere;
  font-size: var(--text-md);
}

.work-schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0 2px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.work-schedule-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.work-schedule-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.work-schedule-legend-dot--free { background: #cbd5e1; }
.work-schedule-legend-dot--selected { background: #0f766e; }
.work-schedule-legend-dot--occupied { background: #f59e0b; }

.work-schedule-day-grid,
.work-schedule-assignment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-schedule-day-card,
.work-schedule-assignment-card,
.work-schedule-board,
.work-schedule-admin-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.work-schedule-day-card {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 17px;
}

.work-schedule-day-card--locked {
  border-color: #cbd5e1;
  background: #fbfcfe;
}

.work-schedule-day-head,
.work-schedule-assignment-head,
.work-schedule-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.work-schedule-day-head > div,
.work-schedule-assignment-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-schedule-day-head strong,
.work-schedule-assignment-head strong {
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
}

.work-schedule-day-head span:not(.work-schedule-status),
.work-schedule-assignment-head span:not(.work-schedule-status) {
  color: var(--muted);
  font-size: var(--text-sm);
}

.work-schedule-day-note {
  margin: 0;
  padding: 13px;
  color: #475569;
  background: #f8fafc;
  border-radius: var(--radius-compact);
}

.work-schedule-day-form {
  display: grid;
  gap: 13px;
}

.work-schedule-slot-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.work-schedule-slot-fieldset legend {
  width: 100%;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-schedule-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.work-schedule-slot {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.work-schedule-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.work-schedule-slot > span {
  display: grid;
  gap: 2px;
  min-height: 96px;
  padding: 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: var(--radius-compact);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.work-schedule-slot > span strong {
  font-size: var(--text-md);
}

.work-schedule-slot > span small,
.work-schedule-slot > span em {
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
}

.work-schedule-slot > span em {
  align-self: end;
  margin-top: 5px;
  font-weight: var(--font-bold);
}

.work-schedule-slot input:focus-visible + span {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

.work-schedule-slot--free:hover > span {
  border-color: #5eead4;
  box-shadow: 0 5px 15px rgba(15, 118, 110, 0.08);
}

.work-schedule-slot--selected > span,
.work-schedule-slot input:checked + span {
  color: #115e59;
  background: #e6f5f2;
  border-color: #0f766e;
  box-shadow: inset 0 0 0 2px #0f766e, 0 7px 18px rgba(15, 118, 110, 0.12);
}

.work-schedule-slot--selected > span em,
.work-schedule-slot input:checked + span em { color: #0f766e; }

.work-schedule-slot input:checked + span::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #0f766e;
  font-size: 14px;
  font-weight: 800;
}

.roster-approval-gate {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin: 0 0 18px;
  border: 2px solid #f59e0b;
  border-radius: 18px;
  background: #fffbeb;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.roster-approval-gate--ready {
  border-color: #0f766e;
  background: #ecfdf5;
}

.roster-approval-gate__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.roster-approval-gate__head h2 { margin: 0 0 4px; }
.roster-approval-gate__head p { margin: 0; color: var(--muted); }
.roster-approval-gate__count { white-space: nowrap; font-weight: 800; color: #0f766e; }
.roster-approval-gate form { margin: 0; }

.work-schedule-review-waiting {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.work-schedule-slot--occupied {
  cursor: not-allowed;
}

.work-schedule-slot--occupied > span {
  color: #78350f;
  background: #fffbeb;
  border-color: #fde68a;
}

.work-schedule-slot--occupied > span em { color: #b45309; }

.work-schedule-selection-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.work-schedule-selection-meta strong {
  color: var(--text);
}

.work-schedule-actions,
.work-schedule-week-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.work-schedule-actions .compact-button,
.work-schedule-week-actions .compact-button,
.work-schedule-review-actions .compact-button {
  min-height: 42px;
}

.work-schedule-submit-form,
.work-schedule-withdraw-form {
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.work-schedule-readonly {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-compact);
}

.work-schedule-readonly span {
  font-size: var(--text-sm);
}

.work-schedule-audit-line,
.work-schedule-assignment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.work-schedule-audit-line > div,
.work-schedule-assignment-facts > div {
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
  border-radius: 9px;
}

.work-schedule-audit-line dt,
.work-schedule-assignment-facts dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.work-schedule-audit-line dd,
.work-schedule-assignment-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.work-schedule-empty {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-compact);
}

.work-schedule-empty strong {
  color: var(--text);
}

.work-schedule-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.work-schedule-filter label,
.work-schedule-admin-form label,
.work-schedule-return-form label,
.work-schedule-revoke-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: var(--font-semibold);
}

.work-schedule-filter label > span,
.work-schedule-admin-form label > span,
.work-schedule-return-form label > span,
.work-schedule-revoke-form label > span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.work-schedule-filter select,
.work-schedule-admin-form input,
.work-schedule-admin-form select,
.work-schedule-admin-form textarea,
.work-schedule-return-form input,
.work-schedule-revoke-form input {
  width: 100%;
}

.work-schedule-week-actions:empty {
  display: none;
}

.work-schedule-deadline-extension-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  width: 100%;
  padding: 14px;
  background: #f0f9f7;
  border: 1px solid #b9d9d3;
  border-radius: var(--radius-compact);
}

.work-schedule-deadline-extension-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: var(--font-semibold);
}

.work-schedule-deadline-extension-form label > span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.work-schedule-deadline-extension-form input,
.work-schedule-deadline-extension-form button {
  width: 100%;
  min-height: 44px;
}

.work-schedule-board,
.work-schedule-admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.work-schedule-section-head h2 {
  margin: 0 0 4px;
  font-size: var(--text-xl);
}

.work-schedule-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.work-schedule-section-head > strong {
  flex: 0 0 auto;
  color: #115e59;
  font-size: var(--text-lg);
}

.work-schedule-assignment-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.work-schedule-assignment-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.work-schedule-slot-chip {
  display: inline-grid;
  gap: 1px;
  min-width: 86px;
  padding: 7px 10px;
  color: #115e59;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
}

.work-schedule-slot-chip strong {
  font-size: var(--text-sm);
}

.work-schedule-slot-chip small {
  color: #0f766e;
  font-size: var(--text-xs);
}

.work-schedule-slot-chip--empty {
  color: var(--muted);
  background: #f8fafc;
  border-color: #cbd5e1;
}

.work-schedule-review-actions {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding-top: 13px;
  border-top: 1px solid #e2e8f0;
}

.work-schedule-inline-override {
  padding: 11px 12px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-compact);
}

.work-schedule-inline-override summary {
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

.work-schedule-inline-override form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 9px;
  align-items: end;
  margin-top: 11px;
}

.work-schedule-inline-override label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.work-schedule-inline-override label > span {
  color: #9a3412;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.work-schedule-inline-override input,
.work-schedule-inline-override select {
  width: 100%;
}

.work-schedule-return-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.work-schedule-admin-panel--warning {
  background: #fffdf8;
  border-color: #fcd34d;
}

.work-schedule-owner-only {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.work-schedule-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-compact);
}

.work-schedule-static-field {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
}

.work-schedule-static-field span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.work-schedule-form-wide {
  grid-column: 1 / -1;
}

.work-schedule-page button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.work-schedule-scope-list {
  display: grid;
  gap: 10px;
}

.work-schedule-scope-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(240px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-compact);
}

.work-schedule-scope-card > div:first-child {
  display: grid;
  gap: 2px;
}

.work-schedule-scope-card > div:first-child span,
.work-schedule-scope-card > div:first-child small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.work-schedule-revoke-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

@media (max-width: 860px) {
  .work-schedule-summary,
  .work-schedule-summary--approver {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-schedule-day-grid,
  .work-schedule-assignment-list {
    grid-template-columns: 1fr;
  }

  .work-schedule-scope-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .work-schedule-revoke-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .work-schedule-page {
    gap: 14px;
  }

  .work-schedule-hero,
  .work-schedule-day-head,
  .work-schedule-assignment-head,
  .work-schedule-section-head {
    display: grid;
  }

  .work-schedule-hero,
  .work-schedule-board,
  .work-schedule-admin-panel {
    padding: 15px;
  }

  .work-schedule-summary,
  .work-schedule-summary--approver,
  .work-schedule-filter,
  .work-schedule-admin-form,
  .work-schedule-review-actions,
  .work-schedule-inline-override form,
  .work-schedule-return-form,
  .work-schedule-revoke-form,
  .work-schedule-scope-card {
    grid-template-columns: 1fr;
  }

  .work-schedule-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-schedule-form-wide,
  .work-schedule-revoke-form {
    grid-column: auto;
  }

  .work-schedule-selection-meta {
    display: grid;
  }

  .work-schedule-actions .compact-button,
  .work-schedule-week-actions .compact-button,
  .work-schedule-review-actions .compact-button,
  .work-schedule-submit-form .compact-button,
  .work-schedule-withdraw-form .compact-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .work-schedule-slot-grid,
  .work-schedule-audit-line,
  .work-schedule-assignment-facts {
    grid-template-columns: 1fr;
  }
}

/* TCI-UI-02 employee experience. All selectors are role/page scoped. */
.employee-dashboard, .my-income-page { display: grid; gap: 20px; max-width: 1160px; }
.employee-dashboard__hero, .my-income-page__hero { padding: 8px 0 2px; }
.employee-dashboard__hero h1, .my-income-page__hero h1 { margin: 3px 0 7px; color: #142326; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.employee-dashboard__hero p, .my-income-page__hero span { margin: 0; color: #607073; }
.employee-dashboard__date, .my-income-page__hero > p { color: #0f766e !important; font-size: var(--text-sm); font-weight: 750; }
.employee-shift-rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.employee-shift-rail__icon, .employee-priority-card__icon { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #0f766e; background: #e6f5f2; }
.employee-shift-rail p { margin: 3px 0 0; color: #607073; }
.employee-dashboard__priorities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.employee-priority-card { display: grid; min-height: 190px; align-content: start; gap: 13px; padding: 22px; color: #142326; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.employee-priority-card:hover { color: #142326; text-decoration: none; border-color: #0f766e; box-shadow: 0 8px 28px rgba(22,52,49,.07); }
.employee-priority-card strong { font-size: var(--text-lg); }
.employee-priority-card small { color: #607073; line-height: 1.45; }
.employee-priority-card--reward .employee-priority-card__icon { color: #c98008; background: #fff6dc; }
.employee-priority-card.is-disabled, .employee-action-row.is-disabled { cursor: not-allowed; opacity: .6; }
.employee-dashboard__more-actions { border-top: 1px solid #d7e1e0; }
.employee-dashboard__more-actions summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; color: #0f766e; font-weight: 750; }
.employee-dashboard__more-actions summary span { display: inline-grid; min-width: 26px; height: 26px; place-items: center; color: #0f766e; background: #e6f5f2; border-radius: 999px; font-size: var(--text-xs); }
.employee-dashboard__more-actions > div { display: grid; border-top: 1px solid #d7e1e0; }
.employee-action-row { display: grid; gap: 3px; min-height: 58px; padding: 13px 0; color: #142326; border-bottom: 1px solid #d7e1e0; }
.employee-action-row:hover { color: #0f766e; text-decoration: none; }

/* TCI-UI-05 dashboard information architecture. Kept inside the dashboard-only
   namespace so accepted employee, roster and workforce surfaces are unchanged. */
.dashboard-ia { display: grid; gap: 18px; max-width: 1160px; min-width: 0; }
.dashboard-ia__hero { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 8px 0 2px; }
.dashboard-ia__eyebrow { margin: 0; color: #0f766e; font-size: var(--text-sm); font-weight: 750; }
.dashboard-ia__hero h1 { margin: 4px 0 7px; color: #142326; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.dashboard-ia__hero p:not(.dashboard-ia__eyebrow) { margin: 0; color: #607073; }
.dashboard-ia__time { display: grid; min-width: 84px; gap: 2px; text-align: right; color: #0f766e; }
.dashboard-ia__time strong { font-size: var(--text-xl); }
.dashboard-ia__time small { color: #607073; }
.dashboard-ia__section { min-width: 0; padding: 18px; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.dashboard-ia__section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.dashboard-ia__section-head > div, .dashboard-ia__attention-list li, .dashboard-ia__action-list li, .dashboard-ia__tool-list li { min-width: 0; }
.dashboard-ia__section-head h2 { margin: 0; color: #142326; font-size: var(--text-lg); }
.dashboard-ia__section-head p { margin: 4px 0 0; color: #607073; font-size: var(--text-sm); }
.dashboard-ia__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.dashboard-ia__summary > div, .dashboard-ia__account > div { min-width: 0; padding: 13px; background: #f8fbfa; border-radius: 12px; }
.dashboard-ia__summary dt, .dashboard-ia__account dt { color: #607073; font-size: var(--text-xs); }
.dashboard-ia__summary dd, .dashboard-ia__account dd { margin: 5px 0 2px; color: #142326; font-weight: 750; }
.dashboard-ia__summary dd { font-size: var(--text-lg); }
.dashboard-ia__summary small { color: #607073; font-size: var(--text-xs); }
.dashboard-ia__attention-list, .dashboard-ia__action-list, .dashboard-ia__staff-list, .dashboard-ia__tool-list { padding: 0; margin: 0; list-style: none; }
.dashboard-ia__attention-list { border-top: 1px solid #d7e1e0; }
.dashboard-ia__attention-list li + li, .dashboard-ia__action-list li + li, .dashboard-ia__staff-list li + li, .dashboard-ia__tool-list li + li { border-top: 1px solid #e4ecea; }
.dashboard-ia__attention-list a, .dashboard-ia__action-list a, .dashboard-ia__tool-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; color: #142326; }
.dashboard-ia__attention-list a:hover, .dashboard-ia__action-list a:hover, .dashboard-ia__tool-list a:hover { color: #0f766e; text-decoration: none; }
.dashboard-ia__attention-list strong, .dashboard-ia__action-list strong, .dashboard-ia__tool-list strong { display: block; }
.dashboard-ia__attention-list small, .dashboard-ia__action-list small, .dashboard-ia__tool-list small { display: block; margin-top: 2px; color: #607073; font-size: var(--text-xs); }
.dashboard-ia__attention-list span, .dashboard-ia__action-list span, .dashboard-ia__tool-list span { overflow-wrap: anywhere; }
.dashboard-ia__attention-list b { min-width: 28px; color: #0f766e; font-size: var(--text-lg); text-align: right; }
.dashboard-ia__attention-icon, .dashboard-ia__action-icon { display: inline-grid; width: 40px; height: 40px; place-items: center; color: #0f766e; background: #e6f5f2; border-radius: 50%; }
.dashboard-ia__action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.dashboard-ia__action-list a { min-height: 64px; }
.dashboard-ia__action-list em { padding: 3px 8px; color: #0f766e; background: #e6f5f2; border-radius: 999px; font-size: var(--text-xs); font-style: normal; white-space: nowrap; }
.dashboard-ia__staff-list li { display: grid; gap: 2px; min-height: 50px; padding: 11px 0; }
.dashboard-ia__staff-list span { color: #607073; font-size: var(--text-sm); }
.dashboard-ia__disclosure { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 14px; }
.dashboard-ia__disclosure summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; color: #142326; cursor: pointer; font-weight: 750; }
.dashboard-ia__disclosure summary span { display: inline-grid; min-width: 26px; height: 26px; place-items: center; color: #0f766e; background: #e6f5f2; border-radius: 999px; font-size: var(--text-xs); }
.dashboard-ia__disclosure[open] summary { border-bottom: 1px solid #d7e1e0; }
.dashboard-ia__tool-list { padding: 0 16px; }
.dashboard-ia__tool-list a { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-ia__account { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 16px; margin: 0; }
.dashboard-ia :is(a, summary):focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 760px) {
  .dashboard-ia { gap: 14px; }
  .dashboard-ia__hero { align-items: start; }
  .dashboard-ia__time { display: none; }
  .dashboard-ia__section { padding: 15px; }
  .dashboard-ia__section-head { display: grid; align-items: start; }
  .dashboard-ia__section-head .compact-button { width: 100%; justify-content: center; }
  .dashboard-ia__summary, .dashboard-ia__action-list, .dashboard-ia__account { grid-template-columns: 1fr; }
  .dashboard-ia__summary { gap: 8px; }
  .dashboard-ia__summary > div { padding: 11px 12px; }
  .dashboard-ia__action-list { column-gap: 0; }
  .dashboard-ia__attention-list a, .dashboard-ia__action-list a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dashboard-ia__attention-list b, .dashboard-ia__action-list em { grid-column: 2; justify-self: start; }
  .dashboard-ia__attention-list a > span:last-child, .dashboard-ia__action-list a > span:last-child { grid-column: 3; grid-row: 1; }
}
.employee-action-row small { color: #607073; }

.work-schedule-employee .work-schedule-hero { color: #142326; background: #fff; border-color: #d7e1e0; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.work-schedule-employee .work-schedule-hero h1 { color: #142326; }
.work-schedule-employee .work-schedule-hero p { color: #607073; }
.work-schedule-employee .work-schedule-eyebrow { color: #0f766e !important; }
.work-schedule-employee .work-schedule-hero .work-schedule-status { color: #0f766e; background: #e6f5f2; border-color: #b9e5df; }
.work-schedule-employee .work-schedule-day-grid { grid-template-columns: 1fr; gap: 12px; }
.work-schedule-employee .work-schedule-day-card { padding: 20px; border-radius: 16px; }
.work-schedule-employee .work-schedule-day-card--inactive { background: #f8fbfa; }
.work-schedule-employee .work-schedule-slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-schedule-employee .work-schedule-slot > span { min-height: 116px; padding: 15px; border-radius: 12px; }
.work-schedule-employee .work-schedule-slot > span strong { color: #0f766e; font-size: var(--text-lg); }
.work-schedule-employee .work-schedule-slot--selected > span { background: #e6f5f2; border-color: #0f766e; box-shadow: inset 0 0 0 1px #0f766e; }
.work-schedule-employee .work-schedule-slot--occupied > span { color: #cf4553; background: #fff7f7; border-color: #f2a5ae; }
.work-schedule-employee .work-schedule-slot--occupied > span strong, .work-schedule-employee .work-schedule-slot--occupied > span em { color: #cf4553; }
.work-schedule-employee .work-schedule-slot input:disabled + span { cursor: not-allowed; opacity: .72; }
.work-schedule-employee .work-schedule-legend-dot--approved { background: #247b4a; }
.work-schedule-employee .work-schedule-legend-dot--locked { background: #607073; }
.work-schedule-employee .work-schedule-legend-dot--inactive { background: #fff; border: 1px solid #b86604; }
.work-schedule-sticky-summary { position: sticky; bottom: 12px; z-index: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; color: #142326; background: #d7e1e0; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 8px 28px rgba(22,52,49,.14); }
.work-schedule-sticky-summary > div { display: grid; gap: 3px; padding: 14px 16px; background: #fff; }
.work-schedule-sticky-summary span { color: #607073; font-size: var(--text-xs); font-weight: 650; }
.work-schedule-sticky-summary strong { color: #0f766e; font-size: var(--text-lg); }
.work-schedule-sticky-summary p { grid-column: 1 / -1; margin: 0; padding: 10px 16px; color: #607073; background: #f8fbfa; font-size: var(--text-sm); }
.ui02-dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; padding: 20px; background: rgba(20,35,38,.48); }
.ui02-dialog-backdrop[hidden] { display: none; }
.ui02-confirm-dialog { width: min(100%, 520px); padding: 24px; background: #fff; border-radius: 22px; box-shadow: 0 18px 60px rgba(20,35,38,.24); }
.ui02-confirm-dialog h2 { margin: 0 0 8px; color: #142326; }
.ui02-confirm-dialog > p { margin: 0; color: #607073; }
.ui02-confirm-dialog dl { display: grid; gap: 0; margin: 18px 0; border: 1px solid #d7e1e0; border-radius: 12px; overflow: hidden; }
.ui02-confirm-dialog dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-bottom: 1px solid #d7e1e0; }
.ui02-confirm-dialog dl div:last-child { border-bottom: 0; }
.ui02-confirm-dialog dt { color: #607073; }
.ui02-confirm-dialog dd { margin: 0; font-weight: 750; }
.ui02-confirm-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.my-income-page { max-width: 920px; margin: 0 auto; }
.my-income-page__hero { text-align: center; }
.my-income-page__hero h1 { color: #0a5b56; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 40px); }
.my-income-status { margin: 0; padding: 12px 15px; color: #0a5b56; background: #e6f5f2; border-radius: 12px; }
.my-income-status--review { color: #925100; background: #fff6dc; }
.my-income-section { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.my-income-section > header { display: grid; gap: 3px; padding: 18px 20px; border-bottom: 1px solid #d7e1e0; }
.my-income-section h2 { margin: 0; color: #0a5b56; font-family: Georgia, serif; font-size: var(--text-xl); }
.my-income-section header span { color: #607073; font-size: var(--text-sm); }
.my-income-section--reward h2 { color: #c98008; }
.my-income-metrics { display: grid; }
.my-income-metrics--one { grid-template-columns: 1fr; }
.my-income-metrics--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-income-metrics--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.my-income-metrics article { display: grid; gap: 8px; min-width: 0; padding: 22px 20px; border-right: 1px solid #d7e1e0; }
.my-income-metrics article:last-child { border-right: 0; }
.my-income-metrics span { color: #607073; }
.my-income-metrics strong { color: #0a5b56; overflow-wrap: normal; font-family: Georgia, serif; font-size: clamp(24px, 4vw, 38px); line-height: 1.15; }
.my-income-section--reward .my-income-metrics strong { color: #c98008; }
.my-income-disclosure { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 12px; }
.my-income-disclosure summary { min-height: 54px; padding: 16px 18px; cursor: pointer; color: #0a5b56; font-size: var(--text-md); font-weight: 750; }
.my-income-disclosure > p, .my-income-disclosure > ul, .my-income-disclosure > code { display: block; margin: 0; padding: 0 18px 16px; color: #607073; }
.my-income-disclosure ul { display: grid; gap: 8px; padding-left: 36px; }
.my-income-disclosure dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #d7e1e0; }
.my-income-disclosure dl div { padding: 14px 18px; border-right: 1px solid #d7e1e0; border-bottom: 1px solid #d7e1e0; }
.my-income-disclosure dt { color: #607073; font-size: var(--text-sm); }
.my-income-disclosure dd { margin: 4px 0 0; color: #142326; font-weight: 750; }
.my-income-disclosure--advanced { background: #f8fbfa; }
.my-income-empty { padding: 22px; color: #607073; background: #fff; border: 1px dashed #d7e1e0; border-radius: 16px; }

@media (max-width: 760px) {
  .employee-shift-rail { grid-template-columns: auto minmax(0, 1fr); }
  .employee-shift-rail > a, .employee-shift-rail > .secondary-button { grid-column: 1 / -1; width: 100%; }
  .employee-dashboard__priorities { grid-template-columns: 1fr; }
  .employee-priority-card { min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .employee-priority-card small { grid-column: 2; }
  .work-schedule-employee .work-schedule-slot-grid { grid-template-columns: 1fr; }
  .work-schedule-employee .work-schedule-slot > span { min-height: 72px; grid-template-columns: 60px 1fr; align-items: center; }
  .work-schedule-employee .work-schedule-slot > span em { grid-column: 2; margin-top: 0; }
  .work-schedule-sticky-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); bottom: calc(64px + env(safe-area-inset-bottom)); border-radius: 16px; }
  .work-schedule-sticky-summary > div:nth-child(3) { grid-column: 1 / -1; }
  .work-schedule-sticky-summary p { display: none; }
  .my-income-metrics--two strong, .my-income-metrics--one strong { white-space: nowrap; font-size: clamp(23px, 7vw, 31px); }
  .my-income-metrics--three { grid-template-columns: 1fr; }
  .my-income-metrics--three article, .my-income-metrics--two article { border-right: 0; border-bottom: 1px solid #d7e1e0; }
  .my-income-metrics article:last-child { border-bottom: 0; }
  .my-income-disclosure dl { grid-template-columns: 1fr; }
  .my-income-disclosure dl div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) { .employee-priority-card, .work-schedule-slot > span { transition: none !important; } }

/* TCI-UI-04 wage and reward experience. Kept scoped to workforce surfaces. */
.page-main.page-workforce-dashboard { min-width: 0; }
.workforce-page,
.workforce-detail { display: grid; gap: 20px; width: min(100%, 1370px); min-width: 0; margin: 0 auto; }
.workforce-page__header,
.workforce-detail__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.workforce-page__header h1,
.workforce-detail__header h1 { margin: 0; color: #142326; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; }
.workforce-page__header p,
.workforce-detail__header p { margin: 7px 0 0; color: #607073; }
.workforce-detail__context { color: #0f766e !important; font-size: var(--text-sm); font-weight: 750; }
.workforce-page__export,
.workforce-detail__header .btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; }
.workforce-page__export { padding: 0 16px; color: #0a5b56; background: #fff; border: 1px solid #0f766e; border-radius: 10px; font-weight: 750; text-decoration: none; }

.workforce-filters { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.workforce-filters__primary { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)) auto; gap: 12px; align-items: end; }
.workforce-filters label { display: grid; gap: 6px; min-width: 0; color: #607073; font-size: var(--text-sm); font-weight: 650; }
.workforce-filters input,
.workforce-filters select { width: 100%; min-width: 0; min-height: 44px; color: #142326; background: #fff; border: 1px solid #d7e1e0; border-radius: 10px; font: inherit; }
.workforce-filters__submit { min-height: 44px; color: #fff; background: #0f766e; border-color: #0f766e; white-space: nowrap; }
.workforce-filters__advanced { border-top: 1px solid #d7e1e0; }
.workforce-filters__advanced summary { min-height: 44px; padding-top: 12px; cursor: pointer; color: #0a5b56; font-weight: 750; }
.workforce-filters__advanced[open] summary { margin-bottom: 12px; }
.workforce-filters__advanced label { max-width: 340px; padding-bottom: 2px; }

.workforce-summary-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.workforce-summary-rail article { display: grid; gap: 7px; min-width: 0; padding: 18px 20px; border-right: 1px solid #d7e1e0; }
.workforce-summary-rail article:last-child { border-right: 0; }
.workforce-summary-rail span { color: #607073; font-size: var(--text-sm); }
.workforce-summary-rail strong { color: #0a5b56; font-family: Georgia, serif; font-size: clamp(23px, 2.35vw, 31px); line-height: 1.15; overflow-wrap: anywhere; }
.workforce-summary-rail__reward strong { color: #c98008; }

.workforce-overview { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.workforce-overview__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #d7e1e0; }
.workforce-overview h2,
.workforce-detail__section h2 { margin: 0; color: #0a5b56; font-family: Georgia, serif; font-size: var(--text-xl); }
.workforce-overview__heading p,
.workforce-detail__section header p { margin: 4px 0 0; color: #607073; font-size: var(--text-sm); }
.workforce-table-scroll { border: 0; border-radius: 0; box-shadow: none; }
.workforce-table { min-width: 1130px; }
.workforce-table th,
.workforce-table td { white-space: nowrap; }
.workforce-table th:first-child,
.workforce-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.workforce-table th:first-child { z-index: 2; background: #f8fbfa; }
.workforce-table tbody tr:hover td { background: #f8fbfa; }
.workforce-table tbody tr:hover td:first-child { background: #f8fbfa; }
.workforce-table__employee a { display: flex; align-items: center; gap: 10px; min-width: 220px; color: #142326; }
.workforce-table__employee strong { display: block; }
.workforce-table__employee small { max-width: 218px; }
.workforce-table__secondary { margin-top: 3px; font-weight: 400; line-height: 1.35; }
.workforce-avatar { display: inline-grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; color: #0a5b56; background: #e6f5f2; border-radius: 50%; font-size: 12px; font-weight: 750; }
.workforce-table__reward { color: #925100; font-weight: 750; }
.workforce-status { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 750; white-space: normal; }
.workforce-status--ready { color: #247b4a; background: #edf8f0; }
.workforce-status--review { color: #925100; background: #fff6dc; }
.workforce-status--planning { color: #0a5b56; background: #e6f5f2; }
.workforce-status--reward { color: #9a6500; background: #fff6dc; }
.workforce-table__empty { padding: 24px !important; color: #607073; text-align: left !important; white-space: normal !important; }

.workforce-disclosure { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 12px; }
.workforce-disclosure summary { min-height: 52px; padding: 16px 18px; cursor: pointer; color: #0a5b56; font-size: var(--text-md); font-weight: 750; }
.workforce-disclosure > p,
.workforce-disclosure > ul,
.workforce-disclosure > code { display: block; margin: 0; padding: 0 18px 16px; color: #607073; }
.workforce-disclosure ul { display: grid; gap: 8px; padding-left: 36px; }
.workforce-disclosure code { color: #142326; overflow-wrap: anywhere; white-space: pre-wrap; }
.workforce-disclosure--advanced { background: #f8fbfa; }

.workforce-detail__status { margin: 0; width: fit-content; }
.workforce-summary-rail--detail { margin-top: -2px; }
.workforce-detail__section { overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.workforce-detail__section > header { padding: 18px 20px; border-bottom: 1px solid #d7e1e0; }
.workforce-detail__section--reward h2 { color: #c98008; }
.workforce-detail__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.workforce-detail__facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workforce-detail__facts > div { min-width: 0; padding: 20px; border-right: 1px solid #d7e1e0; }
.workforce-detail__facts > div:last-child { border-right: 0; }
.workforce-detail__facts dt,
.workforce-detail__quality-facts dt { color: #607073; font-size: var(--text-sm); }
.workforce-detail__facts dd { margin: 7px 0 0; color: #0a5b56; font-family: Georgia, serif; font-size: clamp(22px, 2.3vw, 29px); font-weight: 750; overflow-wrap: anywhere; }
.workforce-detail__section--reward .workforce-detail__facts dd { color: #c98008; }
.workforce-detail-table { min-width: 720px; }
.workforce-detail__quality-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 18px 16px; border: 1px solid #d7e1e0; border-radius: 10px; }
.workforce-detail__quality-facts > div { padding: 12px; border-right: 1px solid #d7e1e0; border-bottom: 1px solid #d7e1e0; }
.workforce-detail__quality-facts > div:nth-child(2n) { border-right: 0; }
.workforce-detail__quality-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.workforce-detail__quality-facts dd { margin: 4px 0 0; color: #142326; font-weight: 750; }
.workforce-detail__empty { margin: 0; padding: 24px; color: #607073; background: #fff; border: 1px dashed #d7e1e0; border-radius: 16px; }

.workforce-page :is(a, button, input, select, summary):focus-visible,
.workforce-detail :is(a, button, input, select, summary):focus-visible,
.my-income-page summary:focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; }

@media (max-width: 1180px) {
  .workforce-filters__primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workforce-filters__submit { justify-self: start; }
}

@media (max-width: 760px) {
  .workforce-page,
  .workforce-detail { gap: 16px; }
  .workforce-page__header,
  .workforce-detail__header { display: grid; gap: 12px; }
  .workforce-page__export,
  .workforce-detail__header .btn { width: 100%; }
  .workforce-filters { padding: 12px; }
  .workforce-filters__primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .workforce-filters__submit { grid-column: 1 / -1; width: 100%; }
  .workforce-filters__advanced label { max-width: none; }
  .workforce-summary-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workforce-summary-rail article { padding: 16px; border-right: 1px solid #d7e1e0; border-bottom: 1px solid #d7e1e0; }
  .workforce-summary-rail article:nth-child(2n) { border-right: 0; }
  .workforce-summary-rail article:nth-last-child(-n + 2) { border-bottom: 0; }
  .workforce-summary-rail strong { font-size: clamp(21px, 7vw, 29px); }
  .workforce-summary-rail__reward strong { font-size: clamp(18px, 5.5vw, 22px); white-space: nowrap; }
  .workforce-overview__heading { padding: 16px; }
  .workforce-table th:first-child,
  .workforce-table td:first-child { box-shadow: 4px 0 8px rgba(20,35,38,.04); }
  .workforce-detail__section > header { padding: 16px; }
  .workforce-detail__facts,
  .workforce-detail__facts--three { grid-template-columns: 1fr; }
  .workforce-detail__facts > div { padding: 16px; border-right: 0; border-bottom: 1px solid #d7e1e0; }
  .workforce-detail__facts > div:last-child { border-bottom: 0; }
  .workforce-detail__quality-facts { grid-template-columns: 1fr; margin: 0 16px 14px; }
  .workforce-detail__quality-facts > div,
  .workforce-detail__quality-facts > div:nth-child(2n) { border-right: 0; border-bottom: 1px solid #d7e1e0; }
  .workforce-detail__quality-facts > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .workforce-page *,
  .workforce-detail * { scroll-behavior: auto !important; transition: none !important; }
}

/* TCI-UI-03: local Owner roster presentation. These selectors intentionally do
   not affect the accepted employee schedule or income surfaces. */
.work-schedule-approver { min-width: 0; }
.work-schedule-approver .roster-hero { align-items: end; }
.work-schedule-approver .roster-hero .roster-kicker { color: #c8f4ed; }
.work-schedule-approver .roster-kicker { margin: 0 0 5px; color: #0f766e; font-size: var(--text-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.work-schedule-approver .roster-filter { margin-bottom: 20px; }
.work-schedule-approver .roster-summary-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin: 0 0 20px; border: 1px solid #d7e1e0; border-radius: 16px; background: #fff; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.work-schedule-approver .roster-summary-metric { display: grid; gap: 5px; min-width: 0; padding: 18px 20px; border-right: 1px solid #d7e1e0; }
.work-schedule-approver .roster-summary-metric:last-child { border-right: 0; }
.work-schedule-approver .roster-summary-metric span, .work-schedule-approver .roster-summary-metric small { color: #607073; font-size: var(--text-sm); }
.work-schedule-approver .roster-summary-metric strong { color: #0a5b56; font-size: clamp(24px, 2.2vw, 33px); line-height: 1.1; }
.work-schedule-approver .roster-summary-metric--empty strong { color: #b86604; }
.work-schedule-approver .roster-board-section { display: grid; gap: 18px; margin-bottom: 20px; padding: 22px; overflow: hidden; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: 0 8px 28px rgba(22,52,49,.07); }
.work-schedule-approver .roster-board-section > *, .work-schedule-approver [data-roster-view-panel] { min-width: 0; }
.work-schedule-approver .roster-board-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.work-schedule-approver .roster-board-heading h2 { margin: 0; color: #142326; font-size: var(--text-xl); }
.work-schedule-approver .roster-board-heading p { max-width: 680px; margin: 5px 0 0; color: #607073; }
.work-schedule-approver .roster-view-switch { display: inline-grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto; min-width: 280px; overflow: hidden; border: 1px solid #b9cfcd; border-radius: 12px; }
.work-schedule-approver .roster-view-switch button { min-height: 44px; padding: 10px 15px; color: #0a5b56; background: #fff; border: 0; border-right: 1px solid #b9cfcd; cursor: pointer; font: inherit; font-weight: 750; }
.work-schedule-approver .roster-view-switch button:last-child { border-right: 0; }
.work-schedule-approver .roster-view-switch button[aria-selected="true"] { color: #fff; background: #0f766e; }
.work-schedule-approver .roster-board-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #d7e1e0; border-radius: 12px; scrollbar-color: #0f766e #f4f7f7; }
.work-schedule-approver .roster-board-table { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.work-schedule-approver .roster-board-table th, .work-schedule-approver .roster-board-table td { padding: 0; border-right: 1px solid #d7e1e0; border-bottom: 1px solid #d7e1e0; vertical-align: top; }
.work-schedule-approver .roster-board-table thead th { padding: 12px 8px; color: #142326; background: #f8fbfa; font-size: var(--text-sm); text-align: center; }
.work-schedule-approver .roster-board-table thead th > span, .work-schedule-approver .roster-board-table thead small { display: block; }
.work-schedule-approver .roster-board-table thead small { margin-top: 3px; color: #607073; font-size: var(--text-xs); font-weight: 650; }
.work-schedule-approver .roster-board-table tr:last-child th, .work-schedule-approver .roster-board-table tr:last-child td { border-bottom: 0; }
.work-schedule-approver .roster-board-table th:last-child, .work-schedule-approver .roster-board-table td:last-child { border-right: 0; }
.work-schedule-approver .roster-board__shift-head, .work-schedule-approver .roster-board__shift { position: sticky; left: 0; z-index: 2; width: 156px; min-width: 156px; background: #fff; box-shadow: 1px 0 0 #d7e1e0; }
.work-schedule-approver .roster-board__shift-head { z-index: 3; background: #f8fbfa; }
.work-schedule-approver .roster-board__shift { padding: 16px 12px; text-align: left; }
.work-schedule-approver .roster-board__shift strong { display: block; color: #0f766e; font-size: 30px; line-height: 1; }
.work-schedule-approver .roster-board__shift span, .work-schedule-approver .roster-board__shift small { display: block; margin-top: 5px; color: #142326; font-size: var(--text-sm); }
.work-schedule-approver .roster-board__shift small { color: #607073; }
.work-schedule-approver .roster-board-cell { display: block; width: 100%; min-height: 116px; padding: 10px; color: #142326; background: #fff; border: 0; cursor: pointer; font: inherit; text-align: left; }
.work-schedule-approver .roster-board-cell:hover { background: #f8fbfa; }
.work-schedule-approver .roster-board-cell[aria-pressed="true"], .work-schedule-approver .roster-employee-card[aria-pressed="true"] { background: #fffaf0; box-shadow: inset 0 0 0 3px #c98008; }
.work-schedule-approver .roster-board-cell--empty { background: #fcfefd; }
.work-schedule-approver .roster-cell-people { display: grid; gap: 7px; }
.work-schedule-approver .roster-person-chip { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border: 1px solid currentColor; border-radius: 9px; background: var(--person-soft); color: var(--person-color); }
.work-schedule-approver .roster-person-chip b, .work-schedule-approver .roster-person-avatar { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #fff; background: var(--person-color); font-size: var(--text-xs); font-weight: 750; }
.work-schedule-approver .roster-person-chip > span { display: grid; min-width: 0; }
.work-schedule-approver .roster-person-chip strong { overflow: hidden; color: #142326; font-size: var(--text-sm); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.work-schedule-approver .roster-person-chip small { color: #607073; font-size: 11px; line-height: 1.2; }
.work-schedule-approver .roster-person-chip--tone0, .work-schedule-approver .roster-person-avatar--tone0 { --person-color: #247b4a; --person-soft: #eef9f0; }
.work-schedule-approver .roster-person-chip--tone1, .work-schedule-approver .roster-person-avatar--tone1 { --person-color: #1669be; --person-soft: #eef6ff; }
.work-schedule-approver .roster-person-chip--tone2, .work-schedule-approver .roster-person-avatar--tone2 { --person-color: #7650bd; --person-soft: #f5efff; }
.work-schedule-approver .roster-person-chip--tone3, .work-schedule-approver .roster-person-avatar--tone3 { --person-color: #b44772; --person-soft: #fff0f5; }
.work-schedule-approver .roster-person-chip--tone4, .work-schedule-approver .roster-person-avatar--tone4 { --person-color: #a05a0c; --person-soft: #fff5e8; }
.work-schedule-approver .roster-person-chip--tone5, .work-schedule-approver .roster-person-avatar--tone5 { --person-color: #0f766e; --person-soft: #e6f5f2; }
.work-schedule-approver .roster-empty-cell { display: grid; min-height: 94px; place-content: center; gap: 3px; padding: 10px; color: #607073; border: 1px dashed #a7c2c0; border-radius: 9px; text-align: center; }
.work-schedule-approver .roster-empty-cell strong { color: #607073; font-size: var(--text-sm); font-weight: 650; }
.work-schedule-approver .roster-empty-cell span, .work-schedule-approver .roster-empty-cell em { color: #0f766e; font-style: normal; font-weight: 750; }
.work-schedule-approver .roster-employee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-schedule-approver .roster-employee-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; min-height: 84px; padding: 14px; color: #142326; background: #fff; border: 1px solid #d7e1e0; border-radius: 12px; cursor: pointer; font: inherit; text-align: left; }
.work-schedule-approver .roster-employee-card > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.work-schedule-approver .roster-employee-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-schedule-approver .roster-employee-card small, .work-schedule-approver .roster-employee-card__action { color: #607073; font-size: var(--text-sm); }
.work-schedule-approver .roster-employee-card__action { grid-column: 2; color: #0f766e; font-weight: 750; }
.work-schedule-approver .roster-context-drawer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 22px; padding: 20px; background: #f8fbfa; border: 1px solid #b9cfcd; border-radius: 14px; }
.work-schedule-approver .roster-context-drawer h2 { margin: 0; color: #142326; font-size: var(--text-lg); }
.work-schedule-approver .roster-context-drawer p { margin: 6px 0 0; color: #607073; }
.work-schedule-approver .roster-selected-people, .work-schedule-approver .roster-review-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.work-schedule-approver .roster-selected-people li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: #142326; background: #fff; border: 1px solid #d7e1e0; border-radius: 999px; font-size: var(--text-sm); }
.work-schedule-approver .roster-review-links button { min-height: 38px; padding: 6px 10px; color: #0a5b56; background: #fff; border: 1px solid #0f766e; border-radius: 8px; cursor: pointer; font: inherit; font-size: var(--text-sm); font-weight: 750; }
.work-schedule-approver .roster-context-drawer__actions { display: grid; align-content: start; gap: 10px; }
.work-schedule-approver .roster-eligible-inspection { display: grid; gap: 6px; color: #142326; font-size: var(--text-sm); font-weight: 650; }
.work-schedule-approver .roster-eligible-inspection select { width: 100%; min-height: 44px; padding: 9px 11px; color: #142326; background: #fff; border: 1px solid #b9cfcd; border-radius: 9px; font: inherit; }
.work-schedule-approver .roster-eligible-inspection small { color: #607073; font-size: var(--text-xs); font-weight: 400; }
.work-schedule-approver .roster-copy-button { min-height: 44px; justify-content: center; }
.work-schedule-approver .roster-copy-status { min-height: 20px; color: #0a5b56; font-size: var(--text-sm); }
.work-schedule-approver .roster-copy-fallback { width: 100%; min-height: 104px; padding: 10px 12px; color: #142326; background: #fff; border: 1px solid #b9cfcd; border-radius: 9px; font: inherit; line-height: 1.5; resize: vertical; }
.work-schedule-approver .roster-review-section { margin-top: 0; }
.work-schedule-approver .roster-advanced { overflow: hidden; margin-top: 20px; background: #fff; border: 1px solid #d7e1e0; border-radius: 14px; }
.work-schedule-approver .roster-advanced > summary { display: flex; align-items: center; min-height: 54px; padding: 0 18px; color: #142326; cursor: pointer; font-weight: 750; }
.work-schedule-approver .roster-advanced[open] > summary { border-bottom: 1px solid #d7e1e0; }
.work-schedule-approver .roster-advanced__content { display: grid; gap: 18px; padding: 18px; background: #f8fbfa; }
.work-schedule-approver .roster-advanced__content .work-schedule-admin-panel { margin: 0; }
.work-schedule-approver :is(.roster-view-switch button, .roster-board-cell, .roster-employee-card, .roster-review-links button, .roster-copy-button, .roster-advanced > summary):focus, .work-schedule-approver :is(.roster-view-switch button, .roster-board-cell, .roster-employee-card, .roster-review-links button, .roster-copy-button, .roster-advanced > summary):focus-visible { outline: 3px solid #c98008; outline-offset: 3px; }

@media (max-width: 760px) {
  .work-schedule-approver .roster-hero { padding: 20px 16px; }
  .work-schedule-approver .roster-hero h1 { font-size: clamp(26px, 7vw, 31px); }
  .work-schedule-approver .roster-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work-schedule-approver .roster-filter button { grid-column: 1 / -1; width: 100%; }
  .work-schedule-approver .roster-board-section { padding: 16px; border-radius: 14px; }
  .work-schedule-approver .roster-board-heading { display: grid; align-items: stretch; }
  .work-schedule-approver .roster-view-switch { width: 100%; min-width: 0; }
  .work-schedule-approver .roster-summary-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-schedule-approver .roster-summary-metric { gap: 3px; padding: 11px 14px; border-bottom: 1px solid #d7e1e0; }
  .work-schedule-approver .roster-summary-metric strong { font-size: 25px; }
  .work-schedule-approver .roster-summary-metric:nth-child(2n) { border-right: 0; }
  .work-schedule-approver .roster-summary-metric:nth-last-child(-n + 2) { border-bottom: 0; }
  .work-schedule-approver .roster-board-table { min-width: 900px; }
  .work-schedule-approver .roster-board__shift-head, .work-schedule-approver .roster-board__shift { width: 132px; min-width: 132px; }
  .work-schedule-approver .roster-board-cell { min-height: 104px; padding: 8px; }
  .work-schedule-approver .roster-person-chip { gap: 6px; padding: 6px; }
  .work-schedule-approver .roster-person-chip b { width: 26px; height: 26px; }
  .work-schedule-approver .roster-employee-grid { grid-template-columns: 1fr; }
  .work-schedule-approver .roster-context-drawer { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .work-schedule-approver .roster-advanced__content { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-schedule-approver .roster-board-cell, .work-schedule-approver .roster-employee-card, .work-schedule-approver .roster-view-switch button { transition: none !important; }
}

/* TCI-UI-05 review R1: retain server attention tone/amount while keeping rows compact. */
.dashboard-ia__attention-meta { display: grid; min-width: 74px; gap: 1px; justify-items: end; }
.dashboard-ia__attention-meta small { margin: 0; color: #607073; white-space: nowrap; }
.dashboard-ia__attention-item--danger .dashboard-ia__attention-icon { color: #a72f40; background: #fdebed; }
.dashboard-ia__attention-item--danger .dashboard-ia__attention-meta b { color: #a72f40; }
.dashboard-ia__attention-item--warning .dashboard-ia__attention-icon { color: #9a5203; background: #fff2dc; }
.dashboard-ia__attention-item--warning .dashboard-ia__attention-meta b { color: #9a5203; }
@media (max-width: 760px) {
  .dashboard-ia__attention-meta { grid-column: 2; justify-items: start; }
}

/* TCI-UI-06 final visual release: shared polish for the accepted product
   surfaces and production shell. No route, data or form behavior lives here. */
.dashboard-ia__action-list .action-card.dashboard-action-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-ia__tool-list .action-card.dashboard-action-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.page-dashboard-v2,
.page-work-schedule,
.page-workforce-dashboard {
  background: #f4f7f7;
}

.page-dashboard-v2 .main-shell,
.page-work-schedule .main-shell {
  width: min(100%, 1200px);
}

.page-work-schedule-approver .main-shell,
.page-workforce-dashboard .main-shell {
  width: min(100%, 1480px);
}

.employee-dashboard,
.dashboard-ia,
.work-schedule-page {
  width: 100%;
  margin-inline: auto;
}

.app-header {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}

.app-header .brand,
.header-logout,
.pwa-install-card button,
.pwa-update-toast button {
  min-width: 44px;
  min-height: 44px;
}

.pwa-install-card {
  top: max(8px, env(safe-area-inset-top));
  margin-right: max(12px, env(safe-area-inset-right));
  margin-left: max(12px, env(safe-area-inset-left));
  border-radius: 12px;
}

.pwa-install-card button {
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.pwa-update-toast button {
  cursor: pointer;
}

.work-schedule-audit-disclosure {
  overflow: hidden;
  margin-top: 12px;
  background: #f8fbfa;
  border: 1px solid #d7e1e0;
  border-radius: 12px;
}

.work-schedule-audit-disclosure > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  color: #0a5b56;
  cursor: pointer;
  font-weight: 750;
}

.work-schedule-audit-disclosure[open] > summary {
  border-bottom: 1px solid #d7e1e0;
}

.work-schedule-audit-disclosure .work-schedule-audit-line,
.work-schedule-audit-disclosure .work-schedule-assignment-facts {
  margin: 0;
  padding: 14px;
}

.workforce-table__employee a,
.work-schedule-approver .roster-review-links button {
  min-height: 44px;
}

.work-schedule-page .compact-button {
  min-height: 44px;
}

.employee-dashboard :is(a, button, input, select, textarea, summary):focus-visible,
.dashboard-ia :is(a, button, input, select, textarea, summary):focus-visible,
.work-schedule-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.workforce-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.workforce-detail :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.my-income-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.app-header :is(a, button):focus-visible,
.mobile-bottom-nav a:focus-visible,
.pwa-install-card button:focus-visible,
.pwa-update-toast button:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .dashboard-ia__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .main-shell {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .work-schedule-sticky-summary {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .pwa-update-toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .pwa-install-card {
    margin-right: max(12px, env(safe-area-inset-right));
    margin-left: max(12px, env(safe-area-inset-left));
  }
}

@media (max-width: 419px) {
  .work-schedule-sticky-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-schedule-sticky-summary > div:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-dashboard *,
  .dashboard-ia *,
  .work-schedule-page *,
  .workforce-page *,
  .workforce-detail *,
  .my-income-page *,
  .pwa-install-card,
  .pwa-update-toast {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
/* TCI-UI-08: VND display inputs keep a canonical hidden field for submission. */
.money-input {
  min-height: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.money-input:focus-visible {
  outline: 3px solid #087F78;
  outline-offset: 3px;
}

/* TCI-UI-09 ticket capture and list V2 */
.ticket-capture-v2 { padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
.ticket-stage-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.ticket-stage-nav__item, .ticket-stage__heading { min-height: 44px; border: 1px solid #d7e1e0; background: #fff; color: #142326; border-radius: 11px; font: inherit; text-align: left; cursor: pointer; }
.ticket-stage-nav__item { padding: 10px 12px; font-size: .82rem; font-weight: 680; }
.ticket-stage-nav__item.is-current { border-color: #0f766e; background: #e6f5f2; color: #0a5b56; }
.ticket-stage { margin-bottom: 14px; border: 1px solid #d7e1e0; border-radius: 16px; background: #fff; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.ticket-stage[hidden] { display: none; }
.ticket-stage__heading { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 16px; border: 0; border-radius: 16px; }
.ticket-stage__heading strong, .ticket-stage__heading small { display: block; }
.ticket-stage__heading strong { font-size: 1rem; }
.ticket-stage__heading small { margin-top: 3px; color: #607073; font-size: .82rem; font-weight: 500; }
.ticket-stage__chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.ticket-stage [data-ticket-stage-content] { padding: 0 14px 14px; }
.ticket-stage .form-section-card { margin: 0 0 12px; }
.ticket-stage .form-section-card:last-child { margin-bottom: 0; }
.ticket-error-summary { display: grid; gap: 7px; margin: 0 0 14px; }
.ticket-error-summary a { color: #0a5b56; font-weight: 680; }
.ticket-stage-actions { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 8; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d7e1e0; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(22,52,49,.14); }
.ticket-stage-actions__status { flex: 1 1 180px; color: #0a5b56; font-size: .82rem; font-weight: 680; }
.ticket-capture-v2 :focus-visible, .tickets-v2 :focus-visible { outline: 3px solid #087f78; outline-offset: 3px; }
.ticket-detail-trigger { min-width: 44px; min-height: 44px; }
.ticket-detail-dialog { width: min(100% - 24px, 620px); max-height: min(82vh, 760px); padding: 0; border: 0; border-radius: 22px; color: #142326; box-shadow: 0 22px 70px rgba(20,35,38,.22); }
.ticket-detail-dialog::backdrop { background: rgba(20,35,38,.48); }
.ticket-detail-dialog__body { padding: 22px; }
.ticket-detail-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ticket-detail-dialog__head h2 { margin: 0; font-size: 1.15rem; }
.ticket-detail-dialog__close { min-width: 44px; min-height: 44px; }
.ticket-detail-dialog dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.ticket-detail-dialog dl div { padding: 10px 12px; border: 1px solid #d7e1e0; border-radius: 10px; background: #f8fbfa; }
.ticket-detail-dialog dt { color: #607073; font-size: .78rem; }
.ticket-detail-dialog dd { margin: 3px 0 0; font-weight: 680; }
@media (max-width: 759px) {
  .ticket-stage-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-stage-nav__item { min-height: 48px; }
  .ticket-stage [data-ticket-stage-content] { padding: 0 10px 12px; }
  .ticket-stage-actions { bottom: calc(64px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .ticket-stage-actions .primary-button, .ticket-stage-actions .secondary-button { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .ticket-stage-actions__status { flex-basis: 100%; }
  .tickets-owner-head { display: none; }
  .tickets-owner-row, .tickets-owner-list--basic .tickets-owner-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; }
  .owner-tour-cell, .owner-actions-cell { grid-column: 1 / -1; }
  .owner-data-cell { min-width: 0; }
  .owner-data-cell .owner-cell-label { display: block; }
  .ticket-card--pilot { padding: 14px; }
  .ticket-detail-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .ticket-detail-dialog dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ticket-stage *, .ticket-detail-dialog { transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* TCI-UI-09 reviewer corrections R1 */
.ticket-stage__heading[aria-expanded="true"] .ticket-stage__chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}
.ticket-stage__heading[aria-expanded="false"] .ticket-stage__chevron {
  transform: rotate(45deg) translateY(-3px);
}
.page-tickets-ui .table-actions .compact-button,
.page-tickets-ui .ticket-detail-trigger,
.page-tickets-ui .tickets-collapse-button {
  min-width: 44px;
  min-height: 44px;
}
.page-tickets-ui .tickets-collapse-button {
  width: 44px;
  height: 44px;
}
.ticket-detail-dialog {
  overflow: auto;
  overscroll-behavior: contain;
}
.ticket-mobile-summary {
  display: none;
  margin: 0;
}
.ticket-mobile-summary div {
  min-width: 0;
}
.ticket-mobile-summary dt {
  color: #607073;
  font-size: .75rem;
  font-weight: 650;
}
.ticket-mobile-summary dd {
  margin: 3px 0 0;
  color: #142326;
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 759px) {
  .ticket-capture-v2 {
    padding-bottom: calc(184px + env(safe-area-inset-bottom));
  }
  .ticket-stage-actions {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .tickets-owner-row .owner-data-cell--entered,
  .tickets-owner-row .owner-data-cell--ktv,
  .tickets-owner-row .owner-data-cell--athome,
  .tickets-owner-row .owner-data-cell--report,
  .tickets-owner-row .owner-data-cell--reconcile {
    display: none;
  }
  .ticket-mobile-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0;
  }
  .ticket-mobile-summary div {
    padding: 9px 10px;
    border: 1px solid #d7e1e0;
    border-radius: 10px;
    background: #f8fbfa;
  }
  .tickets-card-list .tickets-facts--pilot {
    display: none;
  }
  .owner-actions-cell,
  .tickets-card-list .form-actions {
    width: 100%;
  }
  .owner-actions-cell > a,
  .owner-actions-cell > button,
  .owner-actions-cell > form,
  .owner-actions-cell > form > button,
  .tickets-card-list .form-actions > a,
  .tickets-card-list .form-actions > button,
  .tickets-card-list .form-actions > form,
  .tickets-card-list .form-actions > form > button {
    width: 100%;
    min-height: 44px;
  }
  .ticket-detail-dialog__body {
    max-height: calc(88vh - env(safe-area-inset-bottom));
    overflow: auto;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 419px) {
  .ticket-mobile-summary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-stage *,
  .ticket-detail-dialog,
  .ticket-detail-dialog * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
.ticket-error-summary a[data-ticket-client-error-link] {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, .28);
  border-radius: 10px;
  background: #f0fdfa;
}

/* TCI-UI-10 Daily Operations & Cash Handover V2 */
.page-daily-report-ui .main-shell,
.page-daily-closing-ui .main-shell {
  min-width: 0;
}

.daily-ops-urgent,
.daily-ops-summary,
.daily-closing-summary,
.daily-ops-disclosure {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #d7e1e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(22, 52, 49, .05);
}

.daily-ops-tier-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #d7e1e0;
}

.daily-ops-tier-head h2 {
  margin: 0 0 4px;
  color: #142326;
  font-size: 1.08rem;
  line-height: 1.25;
}

.daily-ops-tier-head p {
  margin: 0;
  color: #607073;
  font-size: .88rem;
}

.daily-ops-urgent {
  border-left: 5px solid #b42335;
}

.daily-ops-urgent .form-alert {
  margin: 14px 18px 0;
}

.daily-ops-urgent .form-alert:last-child {
  margin-bottom: 18px;
}

.daily-ops-urgent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 18px;
}

.daily-ops-attention-card {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #f3c4ca;
  border-radius: 12px;
  background: #fff0f2;
}

.daily-ops-attention-card span,
.daily-ops-summary-rail span {
  color: #607073;
  font-size: .78rem;
  font-weight: 680;
}

.daily-ops-attention-card strong {
  overflow-wrap: anywhere;
  color: #b42335;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.daily-ops-attention-card p,
.daily-ops-summary-rail small {
  margin: 0;
  color: #607073;
  font-size: .76rem;
  line-height: 1.35;
}

.daily-ops-summary-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d7e1e0;
}

.daily-ops-summary-rail article {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 16px 18px;
  background: #fff;
}

.daily-ops-summary-rail strong {
  overflow-wrap: anywhere;
  color: #142326;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.daily-ops-cash-handover,
.daily-closing-cash-flow,
.daily-closing-handover {
  border-top: 4px solid #0f766e;
}

.daily-ops-cash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.daily-ops-cash-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e1e0;
  border-radius: 12px;
  background: #f8fbfa;
}

.daily-ops-cash-group--final {
  border-color: #0f766e;
  background: #e6f5f2;
}

.daily-ops-cash-group h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #d7e1e0;
  color: #0a5b56;
  font-size: .9rem;
}

.daily-ops-cash-group dl {
  margin: 0;
}

.daily-ops-cash-group dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid #d7e1e0;
}

.daily-ops-cash-group dl > div:first-child {
  border-top: 0;
}

.daily-ops-cash-group dt {
  color: #607073;
  font-size: .78rem;
  line-height: 1.35;
}

.daily-ops-cash-group dd {
  margin: 0;
  color: #142326;
  font-size: .88rem;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.daily-ops-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  color: #0a5b56;
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}

.daily-ops-disclosure > summary::-webkit-details-marker {
  display: none;
}

.daily-ops-disclosure > summary span {
  min-width: 0;
}

.daily-ops-disclosure > summary small {
  margin-left: auto;
  color: #607073;
  font-size: .76rem;
  font-weight: 600;
  text-align: right;
}

.daily-ops-disclosure > summary::after {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: rotate(45deg) translateY(-3px);
  transition: transform .16s ease;
}

.daily-ops-disclosure[open] > summary {
  border-bottom: 1px solid #d7e1e0;
}

.daily-ops-disclosure[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.daily-ops-disclosure > .report-kpi-grid {
  margin: 0;
  padding: 18px;
}

.daily-ops-disclosure > .report-split-panel {
  margin: 18px;
  box-shadow: none;
}

.daily-ops-detail-body {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.daily-ops-detail-body .report-section-head {
  padding-top: 18px;
}

.daily-closing-summary {
  border-top: 4px solid #0f766e;
}

.daily-closing-float {
  border-left: 4px solid #176c80;
}

.daily-closing-float .summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.daily-closing-ledger-disclosure {
  margin: 18px 22px 22px;
  box-shadow: none;
}

.daily-closing-handover {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.daily-closing-handover .form-actions.daily-closing-action-bar {
  position: sticky;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 4;
  margin: 18px -22px -70px;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #d7e1e0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -8px 20px rgba(22, 52, 49, .08);
  backdrop-filter: blur(8px);
}

.daily-closing-review-actions {
  margin: 18px 22px 0;
  padding-top: 16px;
  border-top: 1px solid #d7e1e0;
}

.daily-closing-review-actions > .form-actions {
  align-items: end;
}

.daily-closing-review-note {
  display: grid;
  min-width: min(100%, 280px);
  flex: 1 1 280px;
  gap: 6px;
}

.daily-closing-review-note span {
  color: #607073;
  font-size: .78rem;
  font-weight: 680;
}

.daily-closing-handover :is(.money-input, textarea, button),
.daily-closing-float :is(.money-input, textarea, select, button),
.daily-closing-list-table .daily-closing-open-link {
  min-height: 44px;
}

.daily-closing-list-table .daily-closing-open-link {
  display: inline-flex;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #0a5b56;
  font-weight: 680;
}

.daily-closing-cell-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-ops-urgent :is(a, button, summary),
.daily-ops-summary :is(a, button, summary),
.daily-ops-disclosure :is(a, button, summary),
.daily-closing-summary :is(a, button, summary),
.daily-closing-cash-flow :is(a, button, summary),
.daily-closing-float :is(a, button, summary),
.daily-closing-handover :is(a, button, summary, input, select, textarea),
.daily-closing-list-table a {
  outline-offset: 3px;
}

.daily-ops-urgent :is(a, button, summary):focus-visible,
.daily-ops-summary :is(a, button, summary):focus-visible,
.daily-ops-disclosure :is(a, button, summary):focus-visible,
.daily-closing-summary :is(a, button, summary):focus-visible,
.daily-closing-cash-flow :is(a, button, summary):focus-visible,
.daily-closing-float :is(a, button, summary):focus-visible,
.daily-closing-handover :is(a, button, summary, input, select, textarea):focus-visible,
.daily-closing-list-table a:focus-visible {
  outline: 3px solid #087f78;
  outline-offset: 3px;
}

/* UI-10 target-size reinforcement for Daily Operations controls. */
.page-daily-report-ui .report-filter-card :is(input, select, button),
.page-daily-report-ui .report-status-panel button,
.page-daily-report-ui .report-ticket-actions .compact-button,
.page-daily-report-ui .report-new-ticket,
.page-daily-closing-ui .filter-panel :is(input, select, button),
.page-daily-closing-ui .page-title-row > a,
.page-daily-closing-ui .daily-closing-review-actions :is(input, button) {
  min-height: 44px;
}

@media (max-width: 1050px) {
  .daily-closing-float .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .daily-ops-summary-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .daily-ops-tier-head {
    padding: 16px;
  }

  .daily-ops-urgent .form-alert {
    margin-right: 14px;
    margin-left: 14px;
  }

  .daily-ops-urgent-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .daily-ops-summary-rail article {
    padding: 14px;
  }

  .daily-ops-cash-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .daily-ops-cash-group dl > div {
    padding: 10px 12px;
  }

  .daily-ops-cash-group dd {
    white-space: normal;
  }

  .daily-ops-disclosure > summary {
    min-height: 52px;
    padding: 0 16px;
  }

  .daily-ops-disclosure > summary small {
    max-width: 42%;
  }

  .daily-ops-disclosure > .report-split-panel {
    margin: 14px;
  }

  .daily-closing-float .summary-grid {
    grid-template-columns: 1fr;
  }

  .daily-closing-handover {
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }

  .daily-closing-handover .form-actions.daily-closing-action-bar {
    bottom: calc(76px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr;
    margin: 18px -18px -132px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .daily-closing-handover .daily-closing-action-bar > button {
    width: 100%;
    min-height: 44px;
  }

  .daily-closing-review-actions {
    margin-right: 18px;
    margin-left: 18px;
  }

  .daily-closing-review-note,
  .daily-closing-review-actions > .form-actions > button {
    width: 100%;
    flex-basis: 100%;
  }

  .daily-closing-list-scroll {
    overflow: visible;
  }

  .daily-closing-list-table,
  .daily-closing-list-table tbody,
  .daily-closing-list-table tr,
  .daily-closing-list-table td {
    display: block;
    width: 100%;
  }

  .daily-closing-list-table {
    min-width: 0;
  }

  .daily-closing-list-table thead {
    display: none;
  }

  .daily-closing-list-table tr {
    padding: 10px 0;
    border-bottom: 1px solid #d7e1e0;
  }

  .daily-closing-list-table tr:last-child {
    border-bottom: 0;
  }

  .daily-closing-list-table td {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 12px;
    padding: 8px 14px;
    border: 0;
    text-align: right;
    white-space: normal;
    font-variant-numeric: tabular-nums;
  }

  .daily-closing-list-table td::before {
    color: #607073;
    content: attr(data-label);
    font-size: .78rem;
    font-weight: 680;
    text-align: left;
  }

  .daily-closing-list-table td > .daily-closing-cell-value,
  .daily-closing-list-table td > .daily-closing-open-link {
    justify-self: end;
    text-align: right;
  }

  .daily-closing-list-table td:last-child {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-ops-disclosure > summary::after {
    transition-duration: .001ms !important;
  }
}

/* TCI-UI-11 Approval Workbench V2. Scoped so accepted UI-08/UI-09/UI-10 surfaces remain unchanged. */
.approval-workbench-page { margin-bottom: 14px; }
.approval-workbench-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); gap: 16px; align-items: start; }
.approval-workbench-list { display: grid; min-width: 0; gap: 0; margin: 0; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; overflow: clip; }
.approval-workbench-row { position: relative; margin: 0; padding: 14px 16px; border: 0; border-top: 1px solid #d7e1e0; border-radius: 0; box-shadow: none; background: #fff; }
.approval-workbench-row:first-child { border-top: 0; }
.approval-workbench-row.is-selected { background: #f8fbfa; box-shadow: inset 4px 0 0 #0f766e; }
.approval-workbench-row .ticket-card-head { padding-right: 58px; }
.approval-workbench-row .ticket-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 0; }
.approval-workbench-row .ticket-facts div { padding: 0; border: 0; background: transparent; }
.approval-workbench-row .form-actions { margin-top: 12px; }
.approval-workbench-row .alert { margin: 10px 0 0; }
.approval-row-select { position: absolute; top: 12px; right: 12px; z-index: 1; min-width: 44px; min-height: 44px; padding: 8px 10px; color: #0a5b56; font-weight: 700; background: #e6f5f2; border: 1px solid #9fd7d0; border-radius: 10px; cursor: pointer; }
.approval-row-select[aria-pressed="true"] { color: #fff; background: #0f766e; border-color: #0f766e; }
.approval-row-select--table { position: static; flex: 0 0 auto; }
.approval-workbench-context { position: sticky; top: 18px; display: grid; gap: 8px; min-width: 0; margin: 0; padding: 16px 18px; color: #142326; background: #f8fbfa; border: 1px solid #9fd7d0; border-radius: 16px; }
.approval-workbench-context strong { font-size: 1rem; }
.approval-workbench-context > span { color: #607073; line-height: 1.5; }
.approval-workbench-context__facts { display: grid; gap: 8px; margin: 4px 0 0; }
.approval-workbench-context__facts > div { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid #d7e1e0; }
.approval-workbench-context__facts dt { color: #607073; font-size: .76rem; font-weight: 700; }
.approval-workbench-context__facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.approval-diagnostic { margin-top: 10px; border: 1px solid #d7e1e0; border-radius: 12px; background: #f8fbfa; overflow: hidden; }
.approval-diagnostic > summary { display: flex; min-height: 44px; align-items: center; padding: 9px 12px; color: #0a5b56; cursor: pointer; font-weight: 700; }
.approval-diagnostic[open] > summary { border-bottom: 1px solid #d7e1e0; }
.approval-diagnostic > :not(summary) { margin: 0; padding: 12px; overflow-wrap: anywhere; }
.approval-diagnostic code { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 6px; background: #edf3f2; font-size: .78rem; }
.approval-workbench-summary { margin-bottom: 14px; }
.approval-detail-context { padding: 18px; border: 1px solid #d7e1e0; border-radius: 16px; box-shadow: none; }
.approval-diagnostic { margin-top: 12px; border-top: 1px solid #d7e1e0; }
.approval-diagnostic > summary { display: flex; min-height: 44px; align-items: center; color: #0a5b56; cursor: pointer; font-weight: 700; }
.approval-diagnostic p { display: grid; gap: 6px; margin: 0 0 12px; }
.approval-review-form { margin-top: 16px; border: 1px solid #d7e1e0; border-radius: 16px; }
.approval-workbench-dialog { max-width: min(620px, calc(100vw - 28px)); }
.approval-workbench-dialog__detail-link { display: inline-flex; min-height: 44px; margin-top: 16px; align-items: center; justify-content: center; }
.approval-workbench-dialog::backdrop { background: rgba(20,35,38,.48); }
.approval-workbench-page :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.approval-workbench-summary :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.approval-review-form :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.monthly-closing-filter :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.monthly-issues-nav a:focus-visible,
.monthly-approval-workbench :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.approval-workbench-dialog :focus-visible,
.approval-workbench-row :focus-visible,
.approval-workbench-context :focus-visible,
.approval-diagnostic > summary:focus-visible { outline: 3px solid #087f78; outline-offset: 3px; }
.monthly-approval-workbench__groups { min-width: 0; }
.monthly-issue-section.approval-workbench-section { margin-top: 22px; }
.monthly-issue-section.approval-workbench-section:first-child { margin-top: 0; }
.monthly-issue-section.approval-workbench-section .report-section-head { padding-bottom: 8px; border-bottom: 2px solid #d7e1e0; }
.monthly-issue-section.approval-workbench-section .monthly-issue-card-list { gap: 0; background: #fff; border: 1px solid #d7e1e0; border-radius: 16px; overflow: clip; }
.monthly-issue-section.approval-workbench-section .monthly-workbench-card { padding: 14px 62px 14px 16px; border: 0; border-top: 1px solid #d7e1e0; border-radius: 0; box-shadow: none; }
.monthly-issue-section.approval-workbench-section .monthly-workbench-card:first-child { border-top: 0; }
.monthly-workbench-meta a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.approval-workbench-table { width: 100%; min-width: 880px; border: 1px solid #d7e1e0; border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.approval-workbench-table tbody tr.is-selected td:first-child { box-shadow: inset 4px 0 0 #0f766e; }
.approval-workbench-table tbody tr.is-selected td { background: #f8fbfa; }
.approval-workbench-table tbody td { min-width: 0; padding: 12px 10px; overflow-wrap: anywhere; vertical-align: middle; }
.approval-workbench-table .monthly-action-cell { display: flex; min-width: 220px; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-workbench-table .monthly-action-cell form { display: flex; max-width: 100%; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-workbench-table input[type="text"] { min-width: 160px; min-height: 44px; height: 44px; }

@media (max-width: 1050px) {
  .approval-workbench-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); }
  .approval-workbench-row .ticket-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .approval-workbench-layout { grid-template-columns: 1fr; }
  .approval-workbench-layout > .approval-workbench-context { display: none; }
  .approval-workbench-table { display: block; min-width: 0; border: 0; background: transparent; overflow: visible; }
  .approval-workbench-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .approval-workbench-table tbody { display: grid; gap: 12px; }
  .approval-workbench-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 14px; border: 1px solid #d7e1e0; border-radius: 14px; background: #fff; }
  .approval-workbench-table tbody tr.is-selected { box-shadow: inset 4px 0 0 #0f766e; }
  .approval-workbench-table tbody tr.is-selected td:first-child { box-shadow: none; }
  .approval-workbench-table tbody td { display: grid; grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr); gap: 8px; padding: 8px 0; border: 0; text-align: right; }
  .approval-workbench-table tbody td::before { color: #607073; content: attr(data-label); font-size: .74rem; font-weight: 700; text-align: left; text-transform: none; }
  .approval-workbench-table .monthly-action-cell { grid-column: 1 / -1; display: flex; min-width: 0; align-items: stretch; justify-content: flex-end; }
  .approval-workbench-table .monthly-action-cell::before { display: none; }
  .approval-workbench-table .monthly-action-cell form { flex: 1 1 260px; }
  .approval-workbench-table .monthly-action-cell :is(a, button) { min-height: 44px; }
}

@media (max-width: 759px) {
  .approval-workbench-row { padding: 14px 62px 14px 14px; }
  .approval-workbench-row .ticket-card-head { padding-right: 0; }
  .approval-workbench-row .ticket-facts { grid-template-columns: 1fr; }
  .approval-workbench-row .form-actions,
  .approval-workbench-row .form-actions form { width: 100%; }
  .approval-workbench-row .form-actions :is(a, button) { width: 100%; justify-content: center; }
  .approval-workbench-table tbody tr { grid-template-columns: 1fr; }
  .approval-workbench-table tbody td { grid-template-columns: minmax(108px, .9fr) minmax(0, 1.1fr); }
  .approval-workbench-table .monthly-action-cell { grid-column: auto; flex-direction: column; }
  .approval-workbench-table .monthly-action-cell :is(a, button, input),
  .approval-workbench-table .monthly-action-cell form { width: 100%; max-width: none; }
  .approval-workbench-dialog { margin-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .approval-workbench-page *, .approval-workbench-dialog, .approval-workbench-context { animation-duration: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* TCI-UI-11 R1 target-size correction for inline monthly issue destinations. */
.monthly-approval-workbench .monthly-workbench-meta a,
.monthly-approval-workbench .monthly-issues-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* TCI-UI-12 Financial, Payroll and Monthly Closing V2. All selectors are
   scoped to the new three-tier surfaces so accepted UI-08–UI-11 stay intact. */
.page-financial-report-ui .main-shell:has(.ui12-page),
.page-monthly-closing-ui .main-shell:has(.ui12-page) {
  width: min(100%, 1470px);
}
.ui12-page {
  --ui12-text: #142326;
  --ui12-muted: #607073;
  --ui12-border: #d7e1e0;
  --ui12-brand: #0f766e;
  --ui12-brand-dark: #0a5b56;
  --ui12-brand-soft: #e6f5f2;
  display: grid;
  min-width: 0;
  gap: 18px;
  color: var(--ui12-text);
}
.ui12-page > *, .ui12-page section, .ui12-page article, .ui12-page div { min-width: 0; }
.ui12-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 4px 2px 0;
}
.ui12-page-header > div { display: grid; gap: 7px; }
.ui12-page-header h1 { margin: 0; color: var(--ui12-text); font-size: clamp(1.75rem, 2.5vw, 2.35rem); line-height: 1.12; letter-spacing: -.025em; }
.ui12-page-header p { max-width: 820px; margin: 0; color: var(--ui12-muted); line-height: 1.55; }
.ui12-period { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; }
.ui12-period strong { color: var(--ui12-text); }
.ui12-filter-panel { margin: 0; border: 1px solid var(--ui12-border); border-radius: 16px; background: #fff; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.ui12-quick-links { margin: -4px 0 0; }
.ui12-readiness-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ui12-border);
  border-left-width: 5px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(22,52,49,.05);
}
.ui12-readiness-banner--ready { border-color: #b7ddc5; border-left-color: #247b4a; background: #eaf7ef; }
.ui12-readiness-banner--warning { border-color: #f1cd93; border-left-color: #9b5100; background: #fff4e4; }
.ui12-readiness-banner--blocked { border-color: #efbdc5; border-left-color: #b42335; background: #fff0f2; }
.ui12-readiness-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 999px; color: var(--ui12-brand-dark); background: rgba(255,255,255,.74); }
.ui12-readiness-banner > div { display: grid; gap: 4px; }
.ui12-readiness-banner strong { font-size: 1rem; line-height: 1.3; }
.ui12-readiness-banner p { margin: 0; color: var(--ui12-muted); line-height: 1.45; }
.ui12-readiness-banner > a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; color: var(--ui12-brand-dark); font-weight: 700; white-space: nowrap; }
.ui12-summary-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: clip;
  border: 1px solid var(--ui12-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(22,52,49,.05);
}
.ui12-summary-rail > div { display: grid; gap: 5px; padding: 17px 18px; border-left: 1px solid var(--ui12-border); }
.ui12-summary-rail > div:first-child { border-left: 0; }
.ui12-summary-rail span { color: var(--ui12-muted); font-size: .78rem; font-weight: 700; }
.ui12-summary-rail strong { overflow-wrap: anywhere; font-size: clamp(1.08rem, 1.8vw, 1.4rem); font-variant-numeric: tabular-nums; line-height: 1.22; }
.ui12-summary-rail small { color: var(--ui12-muted); font-size: .72rem; line-height: 1.35; }
.ui12-investigation, .ui12-close-panel, .ui12-blocker-list {
  border: 1px solid var(--ui12-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(22,52,49,.05);
}
.ui12-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--ui12-border); }
.ui12-section-head h2 { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.3; }
.ui12-section-head p { margin: 0; color: var(--ui12-muted); font-size: .86rem; line-height: 1.48; }
.ui12-tablist { display: flex; gap: 2px; overflow-x: auto; padding: 0 14px; border-bottom: 1px solid var(--ui12-border); scrollbar-width: thin; }
.ui12-tablist button { flex: 0 0 auto; min-height: 48px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--ui12-muted); background: transparent; font-size: .87rem; font-weight: 680; cursor: pointer; }
.ui12-tablist button[aria-selected="true"] { border-bottom-color: var(--ui12-brand); color: var(--ui12-brand-dark); }
.ui12-tabpanel { padding: 18px 20px 20px; }
.ui12-tabpanel[hidden] { display: none; }
.ui12-table-wrap, .ui12-internal-scroller { width: 100%; max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
.ui12-table-wrap { border: 1px solid var(--ui12-border); border-radius: 13px; }
.ui12-table-wrap .data-table { margin: 0; }
.ui12-responsive-table { width: 100%; min-width: 660px; }
.ui12-responsive-table :is(th, td) { padding: 12px 14px; }
.ui12-page .data-table a { display: inline-flex; min-height: 44px; align-items: center; }
.ui12-empty-state { display: grid; gap: 5px; padding: 26px 20px; text-align: center; }
.ui12-empty-state strong { font-size: 1rem; }
.ui12-empty-state span { color: var(--ui12-muted); }
.ui12-metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ui12-metric-strip > div { display: grid; gap: 5px; padding: 12px 14px; border-top: 2px solid #9fd7d0; background: #f8fbfa; }
.ui12-metric-strip span { color: var(--ui12-muted); font-size: .75rem; font-weight: 700; }
.ui12-metric-strip strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ui12-chart-grid { margin: 0; }
.ui12-raw-details { overflow: clip; border: 1px solid var(--ui12-border); border-radius: 16px; background: #fff; box-shadow: 0 3px 14px rgba(22,52,49,.05); }
.ui12-raw-details > summary { display: flex; min-height: 54px; align-items: center; padding: 12px 18px; color: var(--ui12-brand-dark); cursor: pointer; font-weight: 700; }
.ui12-raw-details[open] > summary { border-bottom: 1px solid var(--ui12-border); }
.ui12-raw-details__body { display: grid; gap: 0; padding: 0 20px 20px; }
.ui12-raw-section { padding: 20px 0; border-top: 1px solid var(--ui12-border); }
.ui12-raw-section:first-child { border-top: 0; }
.ui12-raw-section > .ui12-section-head { padding: 0 0 14px; border: 0; }
.ui12-all-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.ui12-all-metrics .tickets-kpi-card { min-height: 104px; }
.ui12-all-metrics .tickets-kpi-card > span { display: grid; gap: 4px; }
.ui12-all-metrics .tickets-kpi-card strong { overflow-wrap: anywhere; font-size: clamp(1rem, 1.5vw, 1.28rem); font-variant-numeric: tabular-nums; }
.ui12-diagnostic { margin-top: 14px; border: 1px solid var(--ui12-border); border-radius: 12px; background: #f8fbfa; overflow: clip; }
.ui12-diagnostic > summary { display: flex; min-height: 44px; align-items: center; padding: 9px 12px; color: var(--ui12-brand-dark); cursor: pointer; font-weight: 700; }
.ui12-diagnostic[open] > summary { border-bottom: 1px solid var(--ui12-border); }
.ui12-diagnostic__body { display: grid; gap: 8px; padding: 12px; overflow-wrap: anywhere; }
.ui12-diagnostic__body p { margin: 0; }
.ui12-export-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 0; }
.ui12-export-note > div { display: grid; gap: 4px; }
.ui12-export-note span { color: var(--ui12-muted); }
.ui12-labelled-list { display: grid; gap: 0; margin: 0; }
.ui12-labelled-list > div { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--ui12-border); }
.ui12-labelled-list > div:first-child { border-top: 0; }
.ui12-labelled-list dt { color: var(--ui12-muted); font-size: .78rem; font-weight: 700; }
.ui12-labelled-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; font-variant-numeric: tabular-nums; }
.ui12-payroll-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 16px; padding: 18px 20px 20px; }
.ui12-staff-list { border: 1px solid var(--ui12-border); border-radius: 14px; overflow: clip; }
.ui12-staff-row { border-top: 1px solid var(--ui12-border); background: #fff; }
.ui12-staff-row:first-child { border-top: 0; }
.ui12-staff-row.is-selected { background: #f8fbfa; box-shadow: inset 4px 0 0 var(--ui12-brand); }
.ui12-staff-row > button { width: 100%; min-height: 72px; display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(110px, .7fr)); align-items: center; gap: 12px; padding: 12px 14px; border: 0; color: var(--ui12-text); text-align: left; background: transparent; cursor: pointer; }
.ui12-staff-row > button > span { display: grid; gap: 3px; min-width: 0; }
.ui12-staff-row > button > span:not(:first-child) { text-align: right; }
.ui12-staff-row small { color: var(--ui12-muted); font-size: .74rem; }
.ui12-staff-row strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ui12-staff-detail { position: sticky; top: 18px; display: grid; gap: 8px; padding: 16px; border: 1px solid #9fd7d0; border-radius: 14px; background: #f8fbfa; }
.ui12-staff-detail > p { margin: 0; color: var(--ui12-muted); }
.ui12-staff-detail-content { display: grid; gap: 8px; }
.ui12-staff-detail-content h3, .ui12-staff-detail-content p { margin: 0; }
.ui12-staff-detail-content > p { color: var(--ui12-muted); }
.ui12-blocker-list { border-color: #efbdc5; background: #fffafb; }
.ui12-blocker-list > header { padding: 16px 18px; border-bottom: 1px solid #efbdc5; }
.ui12-blocker-list h2 { margin: 0 0 4px; font-size: 1rem; color: #b42335; }
.ui12-blocker-list header p { margin: 0; color: var(--ui12-muted); }
.ui12-blocker-list > div { display: grid; }
.ui12-blocker-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid #f2dce0; }
.ui12-blocker-list article:first-child { border-top: 0; }
.ui12-blocker-list article p { margin: 3px 0 0; color: var(--ui12-muted); font-size: .82rem; }
.ui12-blocker-list article > a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 10px; color: #9a1d2f; font-weight: 700; }
.ui12-close-panel form { display: grid; gap: 14px; padding: 18px 20px 20px; }
.ui12-close-panel form > label:not(.checkbox-line) { display: grid; gap: 7px; }
.ui12-close-panel textarea { width: 100%; min-height: 88px; }
.ui12-reconciliation-list { display: grid; gap: 14px; padding: 18px 20px 0; }
.ui12-reconciliation-card { border: 1px solid var(--ui12-border); border-radius: 14px; background: #fff; overflow: clip; }
.ui12-reconciliation-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ui12-border); background: #f8fbfa; }
.ui12-reconciliation-card > header > div { display: grid; gap: 4px; }
.ui12-reconciliation-card > header span:not(.ui-badge) { color: var(--ui12-muted); font-size: .8rem; }
.ui12-reconciliation-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; }
.ui12-reconciliation-metrics > div { display: grid; gap: 4px; padding: 11px; border-left: 3px solid #9fd7d0; background: #f8fbfa; }
.ui12-reconciliation-metrics > div.is-problem { border-left-color: #b42335; background: #fff0f2; }
.ui12-reconciliation-metrics span, .ui12-reconciliation-metrics small { color: var(--ui12-muted); font-size: .74rem; }
.ui12-reconciliation-metrics strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ui12-cash-reconciliation, .ui12-issue-investigation { padding: 20px; border-top: 1px solid var(--ui12-border); }
.ui12-cash-reconciliation > header, .ui12-issue-investigation > header { margin-bottom: 12px; }
.ui12-cash-reconciliation h3, .ui12-issue-investigation h3 { margin: 0 0 4px; font-size: 1rem; }
.ui12-cash-reconciliation p, .ui12-issue-investigation > header p { margin: 0; color: var(--ui12-muted); }
.ui12-cash-reconciliation .ui12-metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ui12-page :is(a, button, select, input:not([type="hidden"]), textarea, summary):focus-visible { outline: 3px solid #087f78; outline-offset: 3px; }
.ui12-page :is(a, button, select, input:not([type="hidden"]), textarea) { min-height: 44px; font-size: .91rem; }

@media (max-width: 1100px) {
  .ui12-all-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui12-reconciliation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ui12-payroll-layout { grid-template-columns: 1fr; }
  .ui12-staff-detail { position: static; }
  .ui12-blocker-list article { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ui12-blocker-list article > a { grid-column: 2 / -1; justify-self: start; }
  .ui12-metric-strip, .ui12-cash-reconciliation .ui12-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .ui12-page { gap: 14px; }
  .ui12-page-header, .ui12-readiness-banner { grid-template-columns: 1fr; display: grid; }
  .ui12-page-header > :is(a, button), .ui12-readiness-banner > a, .ui12-export-note > a { width: 100%; justify-content: center; }
  .ui12-summary-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui12-summary-rail > div { border-top: 1px solid var(--ui12-border); }
  .ui12-summary-rail > div:nth-child(-n+2) { border-top: 0; }
  .ui12-summary-rail > div:nth-child(odd) { border-left: 0; }
  .ui12-filter-panel { grid-template-columns: 1fr; padding: 14px; }
  .ui12-filter-panel button { grid-column: auto; }
  .ui12-section-head { padding: 16px 14px 12px; }
  .ui12-tablist { padding-inline: 8px; }
  .ui12-tabpanel, .ui12-payroll-layout { padding: 14px; }
  .ui12-responsive-table { display: block; min-width: 0; border: 0; }
  .ui12-responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .ui12-responsive-table tbody { display: grid; gap: 10px; }
  .ui12-responsive-table tr { display: grid; gap: 0; padding: 11px 13px; border: 1px solid var(--ui12-border); border-radius: 12px; background: #fff; }
  .ui12-responsive-table td { display: grid; grid-template-columns: minmax(105px, .85fr) minmax(0, 1.15fr); gap: 10px; padding: 7px 0; border: 0; text-align: right; }
  .ui12-responsive-table td::before { content: attr(data-label); color: var(--ui12-muted); font-size: .74rem; font-weight: 700; text-align: left; }
  .ui12-responsive-table td > a { justify-self: end; text-align: right; }
  .ui12-metric-strip, .ui12-cash-reconciliation .ui12-metric-strip { grid-template-columns: 1fr; }
  .ui12-raw-details__body { padding: 0 14px 14px; }
  .ui12-all-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui12-export-note { display: grid; }
  .ui12-staff-row > button { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui12-staff-row > button > span:first-child { grid-column: 1 / -1; }
  .ui12-staff-row > button > span:not(:first-child) { text-align: left; }
  .ui12-blocker-list article { grid-template-columns: auto minmax(0, 1fr); padding: 13px 14px; }
  .ui12-blocker-list article > span:nth-of-type(2), .ui12-blocker-list article > a { grid-column: 2; }
  .ui12-reconciliation-list { padding: 14px 14px 0; }
  .ui12-reconciliation-card > header { display: grid; }
  .ui12-reconciliation-metrics { grid-template-columns: 1fr; padding: 12px; }
  .ui12-cash-reconciliation, .ui12-issue-investigation { padding: 16px 14px; }
  .ui12-labelled-list > div { grid-template-columns: minmax(105px, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 420px) {
  .ui12-all-metrics { grid-template-columns: 1fr; }
  .ui12-summary-rail strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ui12-page *, .ui12-page *::before, .ui12-page *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* TCI-UI-13 Mobile, Accessibility, PWA and Final Visual R2.
   This is a presentation-only integration layer over the accepted UI-08–UI-12
   surfaces. It standardizes the final canvas, focus, target and safe-area
   behavior without changing routes, fields, actions or server-owned values. */
:where(
  .page-dashboard-v2,
  .page-ticket-form-ui,
  .page-tickets-ui,
  .page-daily-report-ui,
  .page-daily-closing-ui,
  .page-tip-ui,
  .page-checklist-ui,
  .page-work-schedule-approver,
  .page-financial-report-ui,
  .page-monthly-closing-ui
) {
  --color-bg: #f4f7f7;
  --color-text: #142326;
  --color-muted: #607073;
  --color-border: #d7e1e0;
  --color-danger: #b42335;
  --danger: #b42335;
  color: #142326;
  background: #f4f7f7;
}

:where(
  .page-dashboard-v2,
  .page-ticket-form-ui,
  .page-tickets-ui,
  .page-daily-report-ui,
  .page-daily-closing-ui,
  .page-tip-ui,
  .page-checklist-ui,
  .page-work-schedule-approver,
  .page-financial-report-ui,
  .page-monthly-closing-ui
) :is(.main-shell, section, article, form, fieldset, div, dl, table) {
  min-width: 0;
}

:where(
  .page-dashboard-v2,
  .page-ticket-form-ui,
  .page-tickets-ui,
  .page-daily-report-ui,
  .page-daily-closing-ui,
  .page-tip-ui,
  .page-checklist-ui,
  .page-work-schedule-approver,
  .page-financial-report-ui,
  .page-monthly-closing-ui
) :is(a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #087f78;
  outline-offset: 3px;
}

.page-tip-ui .ticket-card-head .status-pill {
  display: inline-flex;
  color: #3730a3;
}

.page-tip-ui .ticket-card-head .status-pill.status-open {
  color: #0e7490;
  background: #ecfeff;
}

.page-tip-ui .ticket-card-head .status-pill.status-pending {
  color: #92400e;
  background: #fff7ed;
}

.page-tip-ui .ticket-card-head .status-pill.status-warning {
  color: #92400e;
  background: #fffbeb;
}

.page-tip-ui .ticket-card-head .status-pill.status-danger {
  color: #b42335;
  background: #fff0f2;
}

:where(
  .page-dashboard-v2,
  .page-ticket-form-ui,
  .page-tickets-ui,
  .page-daily-report-ui,
  .page-daily-closing-ui,
  .page-tip-ui,
  .page-checklist-ui,
  .page-work-schedule-approver,
  .page-financial-report-ui,
  .page-monthly-closing-ui
) :is(button, input:not([type="hidden"]), select, textarea, summary, .primary-button, .secondary-button, .compact-button, .icon-button) {
  min-height: 44px;
}

:where(
  .page-dashboard-v2,
  .page-ticket-form-ui,
  .page-tickets-ui,
  .page-daily-report-ui,
  .page-daily-closing-ui,
  .page-tip-ui,
  .page-checklist-ui,
  .page-work-schedule-approver,
  .page-financial-report-ui,
  .page-monthly-closing-ui
) :is(.primary-button, .secondary-button, .compact-button, .icon-button, .view-tabs a, .tickets-tabs a, .monthly-issues-nav a) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.brand-mark--logo {
  background: #fff;
}

.pwa-install-card button,
.pwa-update-toast button {
  min-width: 44px;
  min-height: 44px;
}

.ticket-stage-actions,
.daily-closing-action-bar,
.approval-workbench-dialog,
.ticket-detail-dialog {
  max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
}

@media (max-width: 1024px) {
  :where(
    .page-ticket-form-ui,
    .page-tickets-ui,
    .page-daily-report-ui,
    .page-daily-closing-ui,
    .page-tip-ui,
    .page-checklist-ui,
    .page-financial-report-ui,
    .page-monthly-closing-ui
  ) :is(.form-page-head, .tickets-page-head, .page-title-row, .ui12-page-header, .report-page-head) {
    flex-wrap: wrap;
  }
}

@media (min-width: 760px) and (max-width: 900px) {
  :where(
    .page-tip-ui,
    .page-checklist-ui,
    .page-monthly-closing-ui
  ) .approval-workbench-layout > .approval-workbench-context {
    position: static;
    display: grid;
    margin-top: 2px;
  }
}

@media (max-width: 760px) {
  :where(
    .page-dashboard-v2,
    .page-ticket-form-ui,
    .page-tickets-ui,
    .page-daily-report-ui,
    .page-daily-closing-ui,
    .page-tip-ui,
    .page-checklist-ui,
    .page-work-schedule-approver,
    .page-financial-report-ui,
    .page-monthly-closing-ui
  ) .main-shell {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .page-ticket-form-ui .main-shell {
    padding-bottom: calc(196px + env(safe-area-inset-bottom));
  }

  .page-daily-closing-ui .main-shell {
    padding-bottom: calc(166px + env(safe-area-inset-bottom));
  }

  .ticket-stage-actions,
  .daily-closing-action-bar {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .ticket-detail-dialog,
  .approval-workbench-dialog {
    max-height: calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(
    .page-dashboard-v2,
    .page-ticket-form-ui,
    .page-tickets-ui,
    .page-daily-report-ui,
    .page-daily-closing-ui,
    .page-tip-ui,
    .page-checklist-ui,
    .page-work-schedule-approver,
    .page-financial-report-ui,
    .page-monthly-closing-ui
  ) *,
  :where(
    .page-dashboard-v2,
    .page-ticket-form-ui,
    .page-tickets-ui,
    .page-daily-report-ui,
    .page-daily-closing-ui,
    .page-tip-ui,
    .page-checklist-ui,
    .page-work-schedule-approver,
    .page-financial-report-ui,
    .page-monthly-closing-ui
  ) *::before,
  :where(
    .page-dashboard-v2,
    .page-ticket-form-ui,
    .page-tickets-ui,
    .page-daily-report-ui,
    .page-daily-closing-ui,
    .page-tip-ui,
    .page-checklist-ui,
    .page-work-schedule-approver,
    .page-financial-report-ui,
    .page-monthly-closing-ui
  ) *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* TCI-UI-13 Final Gate R1: use the measured mobile navigation height.
   The navigation can wrap to two or three rows depending on role/capabilities. */
@media (max-width: 760px) {
  .work-schedule-deadline-extension-form {
    grid-template-columns: 1fr;
  }


  body.page-app {
    padding-bottom: var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom)));
  }

  :where(
    .page-dashboard-v2,
    .page-ticket-form-ui,
    .page-tickets-ui,
    .page-daily-report-ui,
    .page-daily-closing-ui,
    .page-tip-ui,
    .page-checklist-ui,
    .page-work-schedule-approver,
    .page-financial-report-ui,
    .page-monthly-closing-ui
  ) .main-shell {
    padding-bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 48px);
  }

  .page-ticket-form-ui .main-shell {
    padding-bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 120px);
  }

  .page-daily-closing-ui .main-shell {
    padding-bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 90px);
  }

  .ticket-capture-v2 {
    padding-bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 108px);
  }

  .daily-closing-handover {
    padding-bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 78px);
  }

  .ticket-stage-actions,
  .daily-closing-handover .form-actions.daily-closing-action-bar,
  .work-schedule-sticky-summary,
  .pwa-update-toast {
    bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 8px);
  }

  .ticket-detail-dialog,
  .approval-workbench-dialog {
    margin-bottom: calc(var(--mobile-bottom-nav-height, calc(76px + env(safe-area-inset-bottom))) + 8px);
  }
}


/* R3-04 acceptance R1: distinguish accounting profit from physical spa cash. */
.daily-financial-reconciliation {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #cbdeda;
  border-left: 4px solid #0f766e;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.daily-financial-reconciliation header h2 { margin: 0; font-size: 1.12rem; }
.daily-financial-reconciliation header p { margin: 5px 0 0; color: #64748b; }
.daily-financial-reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.daily-financial-reconciliation-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #dce8e5;
  border-radius: 13px;
  background: #f8fbfa;
}
.daily-financial-reconciliation-grid span { color: #475569; font-size: .88rem; font-weight: 700; }
.daily-financial-reconciliation-grid strong { color: #0f172a; font-size: 1.18rem; }
.daily-financial-reconciliation-grid small { color: #64748b; line-height: 1.45; }
.daily-financial-reconciliation-note { grid-column: 1 / -1; background: #fffaf0 !important; border-color: #f2d99b !important; }
.daily-ops-cash-group dl > div > small { grid-column: 1 / -1; color: #64748b; font-size: .78rem; }
@media (max-width: 760px) {
  .daily-financial-reconciliation { padding: 16px; }
  .daily-financial-reconciliation-grid { grid-template-columns: 1fr; }
  .daily-financial-reconciliation-note { grid-column: auto; }
}

/* TCI-R3-05 Other Income & Cash Inflow Ledger */
.page-other-income-ui .main-shell,
.other-income-report-section { min-width: 0; }
.other-income-treatment-preview {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #99d6ca;
  border-radius: 14px;
  background: #eefbf8;
  color: #134e4a;
}
.other-income-treatment-preview span,
.other-income-treatment-preview em { line-height: 1.45; }
.other-income-treatment-preview em { color: #b45309; font-style: normal; font-weight: 750; }
.other-income-effect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.other-income-effect-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe7e4;
  border-radius: 15px;
  background: #f8fbfa;
}
.other-income-effect-grid article.is-active { border-color: #66c6b6; background: #eafbf6; }
.other-income-effect-grid article.is-blocked { border-color: #f1b37a; background: #fff8ed; }
.other-income-effect-grid span { color: #475569; font-size: .86rem; font-weight: 750; }
.other-income-effect-grid strong { color: #0f172a; font-size: 1.2rem; overflow-wrap: anywhere; }
.other-income-effect-grid small { color: #64748b; line-height: 1.45; }
.other-income-report-section { margin: 18px 0; }
.other-income-table td small { display: block; margin-top: 4px; color: #64748b; }
.other-income-form button,
.other-income-form a,
.other-income-approval-panel button,
.page-other-income-ui .compact-button { min-height: 44px; }
.other-income-status-panel ~ .report-section .danger-button,
.other-income-status-panel ~ .report-section .compact-button,
.other-income-status-panel ~ .report-section button,
.other-income-status-panel ~ .report-section a,
.other-income-status-panel + .other-income-effect-grid ~ .report-section button,
.other-income-status-panel + .other-income-effect-grid ~ .report-section a,
.report-page-head + .other-income-effect-grid ~ .report-section button,
.report-page-head + .other-income-effect-grid ~ .report-section a { min-height: 44px; }
.report-page-head:has(+ .other-income-status-panel) .compact-button { min-height: 44px; }
.other-income-page-head .compact-button,
.other-income-table .daily-closing-open-link,
.other-income-report-section .compact-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
}
.report-page-head .compact-button,
.data-table .daily-closing-open-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
}
@media (max-width: 1024px) {
  .other-income-effect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .other-income-effect-grid { grid-template-columns: 1fr; }
  .other-income-page-head .report-ticket-actions { width: 100%; }
  .other-income-page-head .report-ticket-actions a { flex: 1; justify-content: center; }
}

/* Gate 15A — safe reopen / return-to-selection controls */
.work-schedule-approver .roster-reopen-banner {
  margin: 14px 0;
  border-color: #f0c36b;
  background: #fff9ec;
}
.work-schedule-approver .roster-employee-card-shell {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.work-schedule-approver .roster-employee-card-shell > .roster-employee-card {
  width: 100%;
}
.work-schedule-approver .roster-reopen-employee {
  border: 1px solid #d7e1e0;
  border-radius: 10px;
  background: #f8fbfa;
}
.work-schedule-approver .roster-reopen-employee > summary {
  padding: 9px 11px;
  cursor: pointer;
  color: #0f766e;
  font-weight: 750;
}
.work-schedule-approver .roster-reopen-employee form,
.work-schedule-approver .work-schedule-reopen-week-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.work-schedule-approver .roster-reopen-employee label,
.work-schedule-approver .work-schedule-reopen-week-form label {
  display: grid;
  gap: 5px;
}
.work-schedule-approver .roster-reopen-employee label > span,
.work-schedule-approver .work-schedule-reopen-week-form label > span {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #33484b;
}
.work-schedule-approver .work-schedule-reopen-week-form {
  border: 1px solid #f0c36b;
  border-radius: 12px;
  background: #fff9ec;
}

/* Gate 15B — work-schedule deadline recovery */
.work-schedule-status--selection-expired {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
}

.work-schedule-hero .work-schedule-status--selection-expired {
  color: #fff7ed;
  background: rgba(154, 52, 18, 0.34);
  border-color: rgba(255, 237, 213, 0.58);
}

.work-schedule-notice--deadline {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fdba74;
  box-shadow: 0 8px 22px rgba(154, 52, 18, 0.08);
}

.work-schedule-deadline-blocked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #fdba74;
  border-radius: var(--radius-compact);
  color: #9a3412;
  background: #fff7ed;
}

.work-schedule-deadline-blocked > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-schedule-deadline-blocked span {
  font-size: var(--text-sm);
}

.work-schedule-deadline-blocked .primary-button[disabled] {
  flex: 0 0 auto;
  cursor: not-allowed;
  opacity: 0.55;
}

.roster-deadline-recovery {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  margin: 0 0 20px;
  border: 2px solid #f59e0b;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
}

.roster-deadline-recovery__summary {
  display: grid;
  gap: 7px;
}

.roster-deadline-recovery__summary h2,
.roster-deadline-recovery__summary p {
  margin: 0;
}

.roster-deadline-recovery__summary small {
  color: #7c2d12;
  line-height: 1.55;
}

.roster-deadline-recovery__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.roster-deadline-recovery__form label {
  display: grid;
  gap: 6px;
}

.roster-deadline-recovery__form label > span {
  color: #7c2d12;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.roster-deadline-recovery__reason,
.roster-deadline-recovery__form .primary-button {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .roster-deadline-recovery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .work-schedule-deadline-blocked {
    align-items: stretch;
    flex-direction: column;
  }

  .work-schedule-deadline-blocked .primary-button[disabled] {
    width: 100%;
  }

  .roster-deadline-recovery__form {
    grid-template-columns: 1fr;
  }

  .roster-deadline-recovery__reason,
  .roster-deadline-recovery__form .primary-button {
    grid-column: auto;
  }
}

.work-schedule-status--approval-expired {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.work-schedule-hero .work-schedule-status--approval-expired {
  color: #fef2f2;
  background: rgba(153, 27, 27, 0.34);
  border-color: rgba(254, 202, 202, 0.58);
}

/* Gate 18R1 · Mobile Push Permission + Device UX */
.notification-push-card {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(131,141,166,.22);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(23,35,58,.08);
  display: grid;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 22px;
}
.notification-push-card__head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}
.notification-push-card__head h2 { font-size: clamp(20px,2.2vw,28px); margin: 4px 0 7px; }
.notification-push-card__head p { color: #677189; margin: 0; max-width: 760px; }
.notification-push-status {
  align-items: center;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}
.notification-push-status[data-tone="enabled"] { background: #e8f8ef; border-color: #b9e7c9; color: #17643a; }
.notification-push-status[data-tone="warning"] { background: #fff7df; border-color: #f1dda2; color: #815f07; }
.notification-push-status[data-tone="error"] { background: #fff0f0; border-color: #f3c1c1; color: #a22525; }
.notification-push-status[data-tone="info"] { background: #eaf3ff; border-color: #bfd7fb; color: #19589c; }
.notification-push-status[data-tone="dark"] { background: #20242c; border-color: #20242c; color: #fff; }
.notification-push-device {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e4e8ef;
  border-radius: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0,1fr) minmax(330px,.72fr);
  padding: 18px;
}
.notification-push-device__summary { display: grid; gap: 6px; min-width: 0; }
.notification-push-device span,
.notification-push-hint,
.notification-push-feedback { color: #68738b; font-size: 13px; }
.notification-push-diagnostics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 10px 0 0;
}
.notification-push-diagnostics div {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 11px;
}
.notification-push-diagnostics dt { color: #7b8497; font-size: 11px; font-weight: 750; margin: 0; }
.notification-push-diagnostics dd { color: #273148; font-size: 12px; font-weight: 850; margin: 0; text-align: right; }
.notification-push-device__actions {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.push-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 800;
  justify-content: center;
  line-height: var(--leading-tight);
  min-height: 50px;
  padding: 10px 14px;
  text-align: center;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.push-action:not(:disabled):active { transform: translateY(1px); }
.push-action:not(:disabled):hover { filter: brightness(.96); }
.push-action--enable { background: #169447; border-color: #169447; color: #fff; box-shadow: 0 9px 20px rgba(22,148,71,.16); }
.push-action--disable { background: #d83b3b; border-color: #d83b3b; color: #fff; }
.push-action--test { background: #2563c7; border-color: #2563c7; color: #fff; }
.push-action--install { background: #242932; border-color: #242932; color: #fff; }
.push-action:disabled {
  background: #252a32;
  border-color: #252a32;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
  filter: none;
  opacity: .48;
}
[data-push-state="ENABLED"] .push-action--enable:disabled { background: #169447; border-color: #169447; opacity: 1; }
[data-push-state="PERMISSION_DENIED"] .push-action--enable:disabled { background: #d83b3b; border-color: #d83b3b; opacity: .82; }
[data-push-state="SYSTEM_DISABLED"] .push-action--enable:disabled,
[data-push-state="SERVER_NOT_READY"] .push-action--enable:disabled,
[data-push-state="IOS_NOT_INSTALLED"] .push-action--enable:disabled,
[data-push-state="UNSUPPORTED_BROWSER"] .push-action--enable:disabled { background: #252a32; border-color: #252a32; opacity: 1; }
.notification-push-hint {
  background: #fff8e8;
  border: 1px solid #f2dfaf;
  border-radius: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 12px 14px;
}
.notification-push-feedback { line-height: 1.5; margin: 0; min-height: 20px; }
.notification-push-feedback.is-error { color: #a52d2d; font-weight: 700; }
.notification-push-feedback.is-success { color: #17643a; }
.notification-push-preferences { border-top: 1px solid #e7eaf0; display: grid; gap: 13px; padding-top: 17px; }
.notification-push-preferences h3 { font-size: 15px; margin: 0; }
.notification-push-preferences__grid { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.notification-push-preferences label,
.notification-push-sensitive { align-items: flex-start; background: #fbfcfd; border: 1px solid #e7eaf0; border-radius: 14px; display: flex; gap: 9px; padding: 12px; }
.notification-push-preferences input { height: 18px; margin-top: 2px; width: 18px; }
.notification-push-preferences label span { display: grid; gap: 2px; }
.notification-push-preferences small,
.notification-push-devices small { color: #7d879c; }
.notification-push-sensitive { max-width: 720px; }
.notification-push-devices { border-top: 1px solid #e7eaf0; padding-top: 12px; }
.notification-push-devices summary { cursor: pointer; font-weight: 800; }
.notification-push-devices > div { display: grid; gap: 8px; margin-top: 10px; }
.notification-push-device-row { align-items: center; background: #f8fafc; border-radius: 12px; display: flex; gap: 12px; justify-content: space-between; padding: 10px 12px; }
.notification-push-device-row > span { display: grid; gap: 3px; }
.notification-push-device-row.is-revoked { opacity: .66; }
.notification-push-revoke { flex: 0 0 auto; }
.notification-push-devices small { text-align: left; }
@media (max-width: 900px) {
  .notification-push-preferences__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notification-push-device { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .notification-push-card { border-radius: 18px; padding: 16px; }
  .notification-push-card__head { display: grid; }
  .notification-push-status { justify-self: start; }
  .notification-push-diagnostics { grid-template-columns: 1fr; }
  .notification-push-preferences__grid { grid-template-columns: 1fr; }
  .notification-push-device__actions { grid-template-columns: 1fr 1fr; }
  .push-action { min-height: 50px; }
  .notification-push-device-row { align-items: stretch; display: grid; gap: 8px; }
  .notification-push-revoke { justify-self: start; }
  .notification-push-devices small { text-align: left; }
}
@media (max-width: 390px) {
  .notification-push-device__actions { grid-template-columns: 1fr; }
}
