:root {
  --bg: #f7f9f2;
  --surface: #ffffff;
  --surface-alt: #f8fbf1;
  --surface-soft: #eef3e1;
  --highlight: #f4fadf;
  --text: #1d2522;
  --muted: #65716c;
  --border: #dbe5c6;
  --primary: #122e60;
  --primary-dark: #0b1f45;
  --primary-contrast: #ffffff;
  --danger: #ffd21f;
  --warning: #ffd21f;
  --warning-ink: #3d3200;
  --success: #a2c73b;
  --accent: #a2c73b;
  --ink-soft: #26314a;
  --focus: #a2c73b;
  --shadow: 0 18px 40px rgba(18, 46, 96, 0.16);
  --radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.theme-blue_light {
  --bg: #f1f6fd;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --surface-soft: #e8f1fb;
  --highlight: #edf6ff;
  --text: #1d2522;
  --muted: #647184;
  --border: #cfe0f2;
  --primary: #a2c73b;
  --primary-dark: #789726;
  --primary-contrast: #17210c;
  --success: #122e60;
  --accent: #122e60;
  --ink-soft: #26314a;
  --focus: #122e60;
  --shadow: 0 18px 40px rgba(18, 46, 96, 0.16);
}

.theme-dark {
  --bg: #10151f;
  --surface: #172132;
  --surface-alt: #1b2638;
  --surface-soft: #1e2b40;
  --highlight: #213653;
  --text: #edf3f7;
  --muted: #aab6c3;
  --border: #31435d;
  --primary: #a2c73b;
  --primary-dark: #c3e963;
  --primary-contrast: #10151f;
  --danger: #ffd21f;
  --warning: #ffd21f;
  --warning-ink: #fff1a8;
  --success: #5f95e8;
  --accent: #a2c73b;
  --ink-soft: #d9e7f5;
  --focus: #a2c73b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 3px solid var(--success);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 22px;
}

.brand {
  align-items: baseline;
  color: var(--primary);
  display: inline-flex;
  gap: 8px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-main {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 300;
  line-height: 1;
}

.nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.nav a,
.tabs a {
  border-radius: var(--radius);
  color: var(--ink-soft);
  padding: 8px 10px;
}

.nav a:hover,
.tabs a:hover {
  background: var(--highlight);
  text-decoration: none;
}

.tabs a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.user-box {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
  position: relative;
  white-space: nowrap;
}

.user-menu,
.section-switcher {
  position: relative;
}

.user-menu summary,
.section-switcher summary {
  border-radius: var(--radius);
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 8px 10px;
}

.user-menu summary {
  background: var(--highlight);
  border: 1px solid transparent;
}

.user-menu summary::-webkit-details-marker,
.section-switcher summary::-webkit-details-marker {
  display: none;
}

.user-menu summary::after,
.section-switcher summary::after {
  content: " ▾";
  font-weight: 700;
}

.user-menu[open] summary,
.section-switcher[open] summary,
.user-menu summary:hover,
.section-switcher summary:hover {
  background: var(--highlight);
  border-color: var(--success);
  text-decoration: none;
}

.user-menu-panel,
.section-switcher-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(18, 46, 96, 0.16);
  display: grid;
  gap: 12px;
  padding: 16px;
  position: absolute;
  z-index: 50;
}

.user-menu-panel {
  grid-template-columns: 1fr;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
}

.menu-group-link,
.section-switcher-panel a {
  border-radius: var(--radius);
  color: var(--ink-soft);
  display: grid;
  gap: 1px;
  padding: 8px 9px;
}

.menu-group-link:hover,
.section-switcher-panel a:hover,
.section-switcher-panel a.active {
  background: var(--highlight);
  text-decoration: none;
}

.menu-group-link span {
  font-size: 15px;
  line-height: 1.2;
}

.menu-group-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.tab-area {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.tab-area-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-switcher {
  display: inline-block;
  margin-bottom: 16px;
}

.section-switcher summary {
  background: var(--highlight);
  border: 1px solid var(--success);
  display: inline-flex;
}

.section-switcher-panel {
  left: 0;
  min-width: 260px;
  top: calc(100% + 8px);
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px;
}

.page-title {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.driver-profile-header {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
}

.driver-profile-title {
  min-width: 0;
}

.driver-profile-title h1 {
  overflow-wrap: anywhere;
}

.driver-profile-actions {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-self: end;
  width: 100%;
}

.driver-date-form {
  min-width: 0;
}

.date-action-row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.driver-profile-actions .button {
  min-height: 42px;
  white-space: nowrap;
}

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

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 4px;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

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

.muted {
  color: var(--muted);
}

.panel,
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 18px;
}

.login-card {
  margin: 9vh auto;
  max-width: 440px;
}

.danger-panel {
  border-color: var(--warning);
  background: #fff8c9;
  color: var(--warning-ink);
}

.theme-dark .danger-panel,
.theme-dark .notice-error,
.theme-dark .notice-warning {
  background: #3a320f;
  color: var(--warning-ink);
}

.theme-dark .danger-panel .muted,
.theme-dark .notice-error .muted,
.theme-dark .notice-warning .muted {
  color: var(--warning-ink);
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 18px;
}

.stats-grid article,
.facts div,
.details-grid div,
.report-meta div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.stats-grid span,
.facts span,
.details-grid span,
.report-meta span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.stats-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.facts,
.details-grid,
.report-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.two-column {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.fact-inline span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.fact-inline strong {
  display: block;
}

.quick-actions,
.actions-inline,
.form-actions,
.inline-form,
.tabs,
.subtabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-form {
  align-items: flex-end;
}

.inline-form label {
  gap: 4px;
  min-width: 160px;
}

.inline-form .button,
.inline-form button {
  align-self: end;
}

.ciclograma-title {
  align-items: end;
}

.ciclograma-filter {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 240px) auto auto auto;
}

.ciclograma-filter label {
  min-width: 0;
}

.ciclograma-filter .button,
.ciclograma-filter button {
  min-height: 44px;
  white-space: nowrap;
}

.view-mode-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.view-mode-tabs a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-soft);
  padding: 9px 13px;
}

.view-mode-tabs a:hover,
.view-mode-tabs a.active {
  background: var(--success);
  color: #122e60;
  text-decoration: none;
}

.quick-actions {
  align-items: stretch;
}

.subtabs {
  margin-bottom: 18px;
}

.subtabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--primary);
  min-height: 38px;
  padding: 8px 12px;
}

.subtabs button.active {
  background: var(--success);
  color: #122e60;
}

.button,
button {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  text-align: center;
}

.button:hover,
button:hover {
  text-decoration: none;
}

.button.primary,
button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover,
button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--highlight);
  border: 1px solid var(--success);
  color: var(--primary);
}

.theme-dark .button.secondary {
  color: var(--text);
}

.button.danger,
button.danger {
  background: var(--danger);
  color: #122e60;
}

.button.success,
button.success {
  background: var(--success);
  color: #122e60;
}

.button.quick {
  background: var(--success);
  color: #122e60;
  flex: 1 1 210px;
  font-size: 17px;
  min-height: 58px;
}

.button.full {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-stack {
  display: grid;
  gap: 14px;
}

label {
  color: var(--ink-soft);
  display: grid;
  font-weight: 700;
  gap: 6px;
  position: relative;
}

input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.searchable-select {
  position: relative;
}

.searchable-select-native {
  display: none;
}

.searchable-select-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
}

.searchable-select-option {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  display: block;
  font-weight: 700;
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.searchable-select-option:hover,
.searchable-select-option:focus,
.searchable-select-option[aria-selected="true"] {
  background: var(--highlight);
  color: var(--primary);
}

.searchable-select-empty {
  color: var(--muted);
  font-weight: 700;
  padding: 8px 9px;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(162, 199, 59, 0.38);
  outline-offset: 2px;
}

.span-2 {
  grid-column: 1 / -1;
}

.checkbox-line {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.checkbox-line input {
  min-height: auto;
  width: auto;
}

.option-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0;
  padding: 14px;
}

.option-grid legend {
  color: var(--ink-soft);
  font-weight: 800;
  padding: 0 6px;
}

.notice {
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 12px 14px;
}

.notice ul {
  margin-bottom: 0;
}

.notice-error {
  background: #fff8c9;
  border: 1px solid var(--warning);
  color: var(--warning-ink);
}

.notice-warning {
  background: #fff6d8;
  border: 1px solid #e1bd58;
  color: var(--warning-ink);
}

.notice-success {
  background: var(--highlight);
  border: 1px solid var(--success);
  color: var(--primary);
}

.theme-dark .notice-success {
  color: var(--text);
}

.prose {
  max-width: 920px;
  line-height: 1.55;
}

.theme-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.theme-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.theme-preview span {
  border-radius: 999px;
  display: block;
  height: 12px;
}

.theme-preview small {
  color: var(--muted);
}

.theme-preview-green_light {
  background: #f7f9f2;
}

.theme-preview-green_light span {
  background: linear-gradient(90deg, #122e60 0 50%, #a2c73b 50% 100%);
}

.theme-preview-blue_light {
  background: #f1f6fd;
}

.theme-preview-blue_light span {
  background: linear-gradient(90deg, #a2c73b 0 50%, #122e60 50% 100%);
}

.theme-preview-dark {
  background: #172132;
  color: #edf3f7;
}

.theme-preview-dark span {
  background: linear-gradient(90deg, #a2c73b 0 50%, #5f95e8 50% 100%);
}

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

.compact-number {
  width: 5.5rem;
  min-width: 5.5rem;
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  color: var(--danger, #a12622);
  font-weight: 700;
}

.ciclograma-board {
  overflow: visible;
}

.schedule-matrix-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.schedule-matrix,
.schedule-week-table {
  min-width: 980px;
}

.schedule-matrix th,
.schedule-matrix td,
.schedule-week-table th,
.schedule-week-table td,
.compact-table th,
.compact-table td {
  line-height: 1.25;
  vertical-align: middle;
}

.schedule-matrix .route-head,
.schedule-matrix .route-title-cell {
  left: 0;
  position: sticky;
  z-index: 2;
}

.schedule-matrix .route-head {
  z-index: 3;
}

.schedule-matrix .route-title-cell {
  background: var(--surface);
  min-width: 220px;
}

.route-summary-row:hover td,
.route-summary-row.expanded td {
  background: var(--highlight);
}

.route-title-cell strong,
.route-title-cell span {
  display: block;
}

.route-title-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.hour-cell {
  min-width: 96px;
}

.departure-chip {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  margin: 2px;
  min-width: 30px;
  padding: 6px 7px;
}

.chip-1 {
  background: color-mix(in srgb, var(--success) 26%, var(--surface));
}

.chip-2 {
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
}

.chip-3 {
  background: var(--surface-soft);
}

.chip-4 {
  background: color-mix(in srgb, var(--warning) 22%, var(--surface));
}

.planner-filter {
  align-items: end;
}

.planner-status-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.planner-status-strip article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.planner-status-strip span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.planner-status-strip strong {
  color: var(--text);
}

.visual-planner {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
}

.planner-column {
  min-width: 0;
}

.planner-slots,
.planner-card-list {
  display: grid;
  gap: 10px;
}

.planner-slot {
  align-items: stretch;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  padding: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.planner-slot.is-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: translateY(-1px);
}

.planner-slot.complete {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent);
}

.planner-slot-time strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.planner-slot-time span,
.planner-slot-main span,
.planner-card span,
.planner-card small,
.planner-card em {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.planner-slot-main {
  min-width: 0;
}

.planner-slot-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-slot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.planner-slot-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 8px;
}

.tag-ok {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
}

.tag-missing {
  background: color-mix(in srgb, var(--warning) 24%, var(--surface));
  border-color: var(--warning) !important;
  color: var(--warning-ink);
}

.planner-clear-form {
  align-self: center;
}

.button.small {
  border-radius: 7px;
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
}

.planner-palette + .planner-palette {
  margin-top: 18px;
}

.planner-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: grab;
  padding: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.planner-card:active {
  cursor: grabbing;
}

.planner-card.is-dragging {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  opacity: 0.68;
  transform: scale(0.99);
}

.planner-card strong {
  display: block;
  margin-bottom: 3px;
}

.planner-card em {
  color: var(--accent);
  font-style: normal;
  margin-top: 5px;
}

.route-stop-dnd {
  display: grid;
  gap: 14px;
}

.section-heading-row {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.route-stop-filter {
  min-width: min(280px, 100%);
}

.route-stop-dnd-grid {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
}

.route-stop-drop-zone {
  align-content: center;
  background: var(--surface-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-soft);
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 172px;
  padding: 18px;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.route-stop-drop-zone strong {
  font-size: 18px;
}

.route-stop-drop-zone span {
  color: var(--muted);
  font-weight: 700;
}

.route-stop-drop-zone.is-over {
  background: var(--highlight);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-1px);
}

.route-stop-card-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: 380px;
  overflow: auto;
  padding-right: 2px;
}

.route-stop-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: grab;
  display: grid;
  gap: 3px;
  padding: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.route-stop-card:active {
  cursor: grabbing;
}

.route-stop-card.is-dragging {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  opacity: 0.68;
  transform: scale(0.99);
}

.route-stop-card.is-assigned {
  background: var(--highlight);
  border-color: var(--success);
}

.route-stop-card strong {
  color: var(--text);
}

.route-stop-card span,
.route-stop-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.manual-ciclograma-form textarea {
  min-height: 168px;
  resize: vertical;
}

.manual-workflow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-workflow div {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.manual-workflow strong {
  color: var(--primary);
}

.manual-workflow span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.manual-origin-list {
  display: grid;
  gap: 14px;
}

.manual-origin-group {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.manual-origin-header {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.manual-origin-header .compact-button {
  min-width: 44px;
}

.manual-origin-header [data-manual-remove-origin]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.manual-ciclograma-tree,
.manual-tree-children,
.manual-origin-schedule-list {
  display: grid;
  gap: 12px;
}

.manual-tree-level {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.manual-tree-level > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 15px;
}

.manual-tree-level > summary small,
.manual-origin-schedule-heading small {
  color: var(--muted);
  font-weight: 700;
}

.manual-tree-level[open] > summary {
  border-bottom: 1px solid var(--border);
}

.manual-tree-ciclograma > summary {
  background: var(--surface-soft);
  color: var(--primary);
}

.manual-tree-route > summary {
  background: var(--surface-alt);
}

.manual-tree-program > summary {
  background: var(--highlight);
}

.manual-tree-children {
  padding: 12px;
}

.manual-program-actions {
  padding: 12px 12px 0;
}

.manual-origin-schedule-list {
  padding: 12px;
}

.manual-origin-schedule {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.manual-origin-schedule-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.manual-origin-schedule-heading > div:first-child {
  display: grid;
  gap: 3px;
}

.manual-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.manual-time-list span {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 5px 9px;
}

.dispatcher-route-table,
.dispatcher-program-list {
  display: grid;
  gap: 10px;
}

.dispatcher-route-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dispatcher-route-row > summary {
  align-items: center;
  background: var(--surface-alt);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(70px, 0.25fr) minmax(180px, 1fr) auto;
  padding: 14px;
}

.dispatcher-route-row[open] > summary {
  border-bottom: 1px solid var(--border);
}

.dispatcher-route-number {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.dispatcher-route-name {
  font-weight: 800;
}

.dispatcher-route-program-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dispatcher-program-list {
  padding: 12px;
}

.dispatcher-program-row {
  align-items: end;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, 0.3fr) minmax(220px, 1fr) auto;
  padding: 12px;
}

.dispatcher-program-row > strong {
  align-self: center;
  color: var(--primary);
}

.dispatcher-program-row > small {
  color: var(--muted);
  grid-column: 2 / -1;
  font-weight: 700;
}

.dispatcher-daily-program-row {
  align-items: end;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(100px, 0.25fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  padding: 12px;
}

.dispatcher-daily-program-row > strong {
  align-self: center;
  color: var(--primary);
}

.dispatcher-daily-program-row > small {
  color: var(--muted);
  grid-column: 2 / -1;
  font-weight: 700;
}

.dispatcher-indicative-date {
  margin-bottom: 16px;
}

.dispatcher-day-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 12px;
}

.dispatcher-day-summary article {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.dispatcher-day-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dispatcher-day-summary strong {
  color: var(--primary-dark);
}

.dispatcher-day-summary .status-reconfirmation_required {
  border-color: var(--warning);
}

.dispatcher-confirmation-meta {
  margin: 0 0 14px;
}

.dispatcher-indicative-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.dispatcher-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.45fr)) auto;
}

.dispatcher-quick-actions,
.dispatcher-quick-actions form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.dispatcher-save-all-bar {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-top: 16px;
}

.dispatcher-reason-dialog {
  background: transparent;
  border: 0;
  color: var(--text);
  max-width: 680px;
  padding: 0;
  width: calc(100% - 32px);
}

.dispatcher-reason-dialog::backdrop {
  background: rgba(4, 12, 24, 0.76);
  backdrop-filter: blur(3px);
}

.dispatcher-reason-dialog .panel {
  margin: 0;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.dispatcher-transition-table {
  min-width: 1420px;
}

.dispatcher-transition-table th:first-child,
.dispatcher-transition-table .dispatcher-route-cell {
  width: 100px;
}

.dispatcher-transition-table th:nth-child(2),
.dispatcher-transition-table .dispatcher-program-cell {
  width: 190px;
}

.dispatcher-transition-table th:nth-child(3),
.dispatcher-transition-table th:nth-child(4) {
  width: 280px;
}

.dispatcher-transition-table th:nth-child(5) {
  width: 130px;
}

.dispatcher-transition-table th:nth-child(6) {
  width: 200px;
}

.dispatcher-transition-table th:last-child,
.dispatcher-transition-table td:last-child {
  width: 210px;
}

.dispatcher-transition-table .dispatcher-route-cell {
  border-right: 3px solid var(--primary);
}

.dispatcher-transition-table tbody tr[data-status="incomplete"] td {
  background: color-mix(in srgb, var(--warning) 7%, var(--surface));
}

.warning-text {
  color: var(--warning-ink);
  font-size: 0.8rem;
}

.dispatcher-close-observations {
  min-width: 210px;
}

.dispatcher-reserve-allocation {
  margin-bottom: 16px;
  padding: 0;
}

.dispatcher-reserve-allocation summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
}

.dispatcher-reserve-allocation summary::-webkit-details-marker {
  display: none;
}

.dispatcher-reserve-allocation summary::before {
  color: var(--primary);
  content: "▸";
  font-size: 1.25rem;
  font-weight: 950;
}

.dispatcher-reserve-allocation[open] summary::before {
  content: "▾";
}

.dispatcher-reserve-allocation summary > span:first-of-type {
  display: grid;
  flex: 1;
  gap: 2px;
}

.dispatcher-reserve-allocation summary strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.dispatcher-reserve-allocation summary small {
  color: var(--muted);
  font-weight: 700;
}

.dispatcher-reserve-allocation-body {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.dispatcher-reserve-add-form {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 620px) auto;
  justify-content: start;
}

.dispatcher-reserve-add-form .searchable-select {
  min-width: 260px;
  width: 100%;
}

.dispatcher-reserve-add-form .searchable-select-input {
  min-height: 42px;
  text-align: center;
}

.dispatcher-reserve-add-form .searchable-select-input::placeholder {
  text-align: center;
}

.dispatcher-reserve-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatcher-reserve-chips > .muted {
  margin: 0;
}

.dispatcher-reserve-chip {
  align-items: center;
  background: var(--highlight);
  border: 1px solid var(--success);
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  gap: 8px;
  padding: 5px 6px 5px 12px;
}

.dispatcher-reserve-chip form {
  margin: 0;
}

.dispatcher-reserve-chip button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--danger);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 28px;
}

.dispatcher-reserve-chip button:hover {
  border-color: var(--danger);
}

.dispatcher-indicative-panel {
  padding: 0;
}

.dispatcher-indicative-table {
  min-width: 1000px;
  table-layout: fixed;
}

.dispatcher-line-column {
  width: 100px;
}

.dispatcher-program-column {
  width: 190px;
}

.dispatcher-save-column {
  width: 130px;
}

.dispatcher-indicative-table th,
.dispatcher-indicative-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.dispatcher-indicative-table th:first-child,
.dispatcher-indicative-table .dispatcher-route-cell {
  width: 100px;
}

.dispatcher-indicative-table th:nth-child(2),
.dispatcher-indicative-table .dispatcher-program-cell {
  width: 190px;
}

.dispatcher-indicative-table th:last-child,
.dispatcher-indicative-table td:last-child {
  width: 130px;
}

.dispatcher-indicative-table .searchable-select {
  min-width: 0;
  width: 100%;
}

.dispatcher-indicative-table .searchable-select-input {
  min-height: 38px;
  padding: 7px 9px;
  text-align: center;
  width: 100%;
}

.dispatcher-indicative-table .searchable-select-input::placeholder {
  text-align: center;
}

.dispatcher-route-group td {
  background: var(--surface);
}

.dispatcher-route-group:nth-of-type(even) td {
  background: var(--surface-alt);
}

.dispatcher-route-group + .dispatcher-route-group tr:first-child td {
  border-top: 6px solid var(--bg);
}

.dispatcher-route-group tr:not(:last-child) td:not(.dispatcher-route-cell) {
  border-bottom-style: dashed;
}

.dispatcher-route-group tr:last-child td,
.dispatcher-route-cell {
  border-bottom: 2px solid var(--border);
}

.dispatcher-route-group tr:hover td:not(.dispatcher-route-cell) {
  background: var(--highlight);
}

.dispatcher-indicative-table .dispatcher-route-cell {
  background: var(--surface-soft);
  border-right: 3px solid var(--primary);
  text-align: center;
  vertical-align: middle;
}

.dispatcher-indicative-table .dispatcher-route-cell strong {
  color: var(--primary-dark);
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  min-width: 54px;
  padding: 10px 8px;
}

.dispatcher-program-cell {
  border-right: 1px solid var(--border);
  text-align: center;
}

.dispatcher-program-cell span {
  background: var(--highlight);
  border: 1px solid var(--success);
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 150px;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
  width: 150px;
}

.dispatcher-program-cell small {
  display: block;
  font-size: .75rem;
  line-height: 1.35;
  margin-top: 7px;
}

.dispatcher-shift-editor {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(190px, 1fr) auto;
}

.dispatcher-shift-editor > small {
  grid-column: 1 / -1;
  min-height: 1.1em;
  text-align: center;
}

.success-text { color: var(--success); font-weight: 800; }
.error-text { color: var(--danger); font-weight: 800; }

.manual-shift-boundary-panel {
  background: var(--surface-alt);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.manual-shift-boundary-panel label {
  font-weight: 900;
}

.dispatcher-week-periods,
.dispatcher-live-list {
  display: grid;
  gap: 8px;
}

.dispatcher-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.dispatcher-service-status {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto auto;
  padding: 9px 12px;
}

.dispatcher-service-status span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dispatcher-service-status strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dispatcher-live-departure {
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(64px, .12fr) minmax(180px, .34fr) minmax(105px, .18fr) minmax(230px, .48fr) minmax(180px, .3fr);
  padding: 9px 12px;
}

.dispatcher-live-route,
.dispatcher-live-departure time {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.dispatcher-live-departure small {
  color: var(--muted);
}

.dispatcher-live-route-column,
.dispatcher-live-program-column,
.dispatcher-live-time-column,
.dispatcher-live-vehicle-column,
.dispatcher-live-actions {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dispatcher-live-program-column small,
.dispatcher-live-vehicle-column small {
  overflow-wrap: anywhere;
}

.dispatcher-live-actions {
  align-items: stretch;
}

.dispatcher-live-actions .button {
  font-size: .78rem;
  justify-content: center;
  line-height: 1.15;
  padding: 6px 8px;
  white-space: normal;
}

.dispatcher-window-control {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dispatcher-window-control label {
  display: grid;
  font-size: .78rem;
  font-weight: 900;
  gap: 2px;
}

.dispatcher-window-control select {
  min-width: 135px;
  padding-block: 7px;
}

.dispatcher-departure-time-vehicle {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatcher-live-vehicle {
  background: var(--primary);
  border-radius: 999px;
  color: var(--primary-contrast);
  font-weight: 900;
  padding: 5px 9px;
}

.dispatcher-live-vehicle.missing {
  background: color-mix(in srgb, var(--warning) 24%, var(--surface));
  color: var(--warning-ink);
}

.dispatcher-view-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.dispatcher-bus-change-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 10px;
  padding: 12px;
}

.dispatcher-bus-change-form > .checkbox-row,
.dispatcher-bus-change-form > button,
.dispatcher-bus-change-form > small {
  grid-column: 1 / -1;
}

.dispatcher-change-details,
.dispatcher-departure-history {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.dispatcher-change-details > summary,
.dispatcher-departure-history > summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
  font-size: .82rem;
}

.dispatcher-live-departure > .dispatcher-change-details > summary,
.dispatcher-live-departure > .dispatcher-departure-history > summary {
  display: none;
}

.dispatcher-departure-history article {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 3px;
  padding: 8px 0;
}

.dispatcher-day-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 14px;
}

.dispatcher-day-plan-table {
  font-size: .86rem;
  min-width: 1250px;
}

.dispatcher-day-plan-table th,
.dispatcher-day-plan-table td {
  padding: 7px 8px;
  vertical-align: middle;
}

.dispatcher-day-compact-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .35fr) auto;
  margin: 10px 0 14px;
}

.dispatcher-day-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.dispatcher-day-legend span {
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 800;
  padding: 5px 8px;
}

.dispatcher-day-legend .is-current,
.dispatcher-day-time.is-current {
  background: #a8cf32;
  border-color: #8db31f;
  color: #142009;
}

.dispatcher-day-legend .is-past,
.dispatcher-day-time.is-past {
  background: #d8dde4;
  border-color: #bcc3cd;
  color: #59616d;
}

.dispatcher-day-legend .is-future,
.dispatcher-day-time.is-future {
  background: #fff;
  border-color: #cbd2dc;
  color: #172033;
}

.dispatcher-day-time.is-not-operated,
.dispatcher-day-time.is-not-operated.is-current,
.dispatcher-day-time.is-not-operated.is-past,
.dispatcher-day-time.is-not-operated.is-future {
  background: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 75%, #000);
  color: #fff;
}

.dispatcher-day-route-list {
  display: grid;
  gap: 12px;
}

.dispatcher-day-route-block {
  border: 2px solid var(--border-strong, var(--border));
  border-radius: 10px;
  overflow: hidden;
}

.dispatcher-day-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.dispatcher-day-compact-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: .82rem;
  min-width: 100%;
  width: max-content;
}

.dispatcher-day-compact-table th,
.dispatcher-day-compact-table td {
  border-bottom: 1px solid var(--border);
  padding: 5px 7px;
  text-align: left;
  vertical-align: middle;
}

.dispatcher-day-compact-table thead th {
  background: var(--primary);
  color: var(--primary-ink, #172033);
  font-size: .75rem;
  letter-spacing: .03em;
  position: sticky;
  top: 0;
  z-index: 5;
}

.dispatcher-day-compact-table tbody tr:last-child > * {
  border-bottom: 0;
}

.dispatcher-day-compact-table .day-route-sticky {
  left: 0;
  min-width: 72px;
  position: sticky;
  width: 72px;
  z-index: 4;
}

.dispatcher-day-compact-table .day-program-sticky {
  left: 72px;
  min-width: 132px;
  position: sticky;
  width: 132px;
  z-index: 3;
}

.dispatcher-day-compact-table thead .day-route-sticky,
.dispatcher-day-compact-table thead .day-program-sticky {
  z-index: 7;
}

.day-route-number {
  background: color-mix(in srgb, var(--primary) 20%, var(--surface));
  color: var(--primary-dark);
  font-size: 1.28rem;
  text-align: center !important;
  vertical-align: top !important;
}

.day-program-name {
  background: var(--surface-alt);
  color: var(--text);
  white-space: nowrap;
}

.dispatcher-day-departures-cell {
  background: var(--surface);
  min-width: max-content;
}

.dispatcher-day-departures {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: max-content;
  white-space: nowrap;
}

.dispatcher-day-time {
  align-items: center;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  display: inline-grid;
  font: inherit;
  font-weight: 900;
  gap: 4px;
  justify-content: center;
  grid-template-columns: 1fr auto;
  min-width: 66px;
  padding: 5px 7px;
}

.dispatcher-day-time > span,
.dispatcher-day-time > b { grid-column: 1; line-height: 1.05; text-align: center; }
.dispatcher-day-time > b { font-size: .72rem; font-weight: 800; }
.dispatcher-day-time > small { grid-column: 2; grid-row: 1 / span 2; }

.dispatcher-day-time:hover,
.dispatcher-day-time:focus-visible {
  box-shadow: 0 0 0 2px var(--focus-ring, var(--primary));
  transform: translateY(-1px);
}

.dispatcher-day-time small {
  font-size: .65rem;
  line-height: 1;
}

.dispatcher-day-departure-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  max-height: min(82vh, 760px);
  max-width: min(720px, calc(100vw - 24px));
  overflow: auto;
  padding: 18px;
  width: 100%;
}

.dispatcher-day-departure-dialog::backdrop {
  background: rgb(3 10 22 / 72%);
}

.dispatcher-dialog-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dispatcher-dialog-heading > div {
  display: grid;
  gap: 4px;
}

.dispatcher-day-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 14px;
}

.dispatcher-day-detail-grid div {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.dispatcher-day-detail-grid dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.dispatcher-day-detail-grid dd {
  font-weight: 800;
  margin: 3px 0 0;
}

.dispatcher-day-filter-empty {
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.dispatcher-plan-status {
  border-radius: 999px;
  display: inline-block;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.dispatcher-plan-status.status-confirmed { background: color-mix(in srgb, var(--success) 22%, var(--surface)); color: var(--success); }
.dispatcher-plan-status.status-changed { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--primary-dark); }
.dispatcher-plan-status.status-pending { background: color-mix(in srgb, var(--warning) 24%, var(--surface)); color: var(--warning-ink); }
.dispatcher-plan-status.status-overdue { background: color-mix(in srgb, var(--danger) 20%, var(--surface)); color: var(--danger); }
.dispatcher-plan-status.status-future { background: var(--surface-alt); color: var(--muted); }
.dispatcher-plan-status.status-missing { background: color-mix(in srgb, var(--warning) 30%, var(--surface)); color: var(--warning-ink); }
.dispatcher-plan-status.status-not_operated { background: var(--danger); color: #fff; }

.dispatcher-not-operated-button {
  align-items: center;
  background: color-mix(in srgb, var(--danger) 18%, var(--surface));
  border: 2px solid var(--danger);
  border-radius: 999px;
  color: var(--danger);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.dispatcher-not-operated-button.is-active,
.dispatcher-not-operated-button:disabled { background: var(--danger); color: #fff; }

.dispatcher-not-operated-dialog {
  background: var(--surface);
  border: 2px solid var(--danger);
  border-radius: 14px;
  color: var(--text);
  max-height: 88vh;
  max-width: min(720px, calc(100vw - 24px));
  overflow: auto;
  padding: 18px;
  width: 100%;
}

.dispatcher-not-operated-dialog::backdrop { background: rgb(3 10 22 / 76%); }
.dispatcher-not-operated-dialog form { display: grid; gap: 12px; }
.dispatcher-dialog-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dispatcher-dialog-actions form { align-items: center; display: flex; gap: 8px; margin: 0; }

@media (max-width: 900px) {
  .dispatcher-bus-change-form,
  .dispatcher-day-filters { grid-template-columns: 1fr; }

  .dispatcher-day-compact-filters,
  .dispatcher-day-detail-grid { grid-template-columns: 1fr; }

  .dispatcher-day-legend { justify-content: flex-start; }

  .dispatcher-live-departure {
    grid-template-columns: minmax(60px, .2fr) minmax(150px, 1fr) minmax(100px, .35fr);
  }

  .dispatcher-live-vehicle-column,
  .dispatcher-live-actions {
    grid-column: span 3;
  }
}

.dispatcher-confirm-form {
  margin: 0;
}

.dispatcher-confirm-button {
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--success);
  border-radius: 50%;
  color: var(--success);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.dispatcher-confirm-button:hover,
.dispatcher-confirm-button.is-confirmed {
  background: var(--success);
  color: var(--primary-contrast);
}

.dispatcher-confirm-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.dispatcher-reserve-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(170px, 1fr) auto;
}

.dispatcher-reserve-form .searchable-select-input {
  min-height: 38px;
}

.dispatcher-departure-result {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  grid-column: 4 / 6;
  justify-self: start;
  padding: 5px 10px;
}

.dispatcher-departure-result.confirmed {
  background: color-mix(in srgb, var(--success) 25%, var(--surface));
  color: var(--primary-dark);
}

.dispatcher-departure-result.reserve_replacement {
  background: color-mix(in srgb, var(--warning) 25%, var(--surface));
  color: var(--warning-ink);
}

.dispatcher-live-empty {
  align-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  min-height: 130px;
  padding: 24px;
  text-align: center;
}

.dispatcher-entry-body {
  min-height: 100vh;
}

.dispatcher-entry-topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 3px solid var(--success);
  display: flex;
  justify-content: flex-end;
  min-height: 74px;
  padding: 10px 24px;
}

.dispatcher-entry-actions {
  margin-left: auto;
}

.dispatcher-entry-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(36px, 7vw, 88px) 24px;
  width: 100%;
}

.dispatcher-entry-heading {
  margin-bottom: 34px;
  max-width: 780px;
}

.dispatcher-entry-heading h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 16px 0 12px;
}

.dispatcher-entry-heading p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.dispatcher-entry-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dispatcher-entry-card {
  appearance: none;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 8px 24px rgba(18, 46, 96, 0.09);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  min-height: 230px;
  padding: 26px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dispatcher-entry-card:hover,
.dispatcher-entry-card:focus-visible {
  background: var(--highlight);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-4px);
}

.dispatcher-entry-card-label {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dispatcher-entry-card strong {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.2;
  margin-top: 16px;
}

.dispatcher-entry-card small {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 6px;
}

.dispatcher-entry-card-code {
  align-self: flex-start;
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 14px;
  padding: 5px 10px;
}

.dispatcher-entry-card-action {
  align-items: center;
  color: var(--primary-dark);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  width: 100%;
}

.dispatcher-entry-card-action b {
  font-size: 1.5rem;
  line-height: 1;
}

.master-delete-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.master-delete-option {
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  padding: 12px;
}

.master-delete-option input {
  margin-top: 4px;
}

.master-delete-option strong,
.master-delete-option small {
  display: block;
}

.master-delete-option small {
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

.master-delete-preserve {
  margin: 12px 0;
}

.route-detail-row td {
  background: var(--surface-soft);
  padding: 14px;
}

.route-detail-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.compact-table th,
.compact-table td {
  padding: 8px;
}

.validation-summary-panel {
  border-color: var(--warning);
  max-height: 340px;
  overflow: auto;
}

.week-count {
  display: grid;
  gap: 2px;
}

.week-count span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.month-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
}

.month-weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.month-day {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 10px;
}

.month-day:hover {
  background: var(--highlight);
  text-decoration: none;
}

.month-day.empty {
  background: transparent;
  border: 0;
}

.month-day strong {
  font-size: 20px;
}

.month-day span,
.month-day small {
  color: var(--muted);
  font-weight: 700;
}

.table-controls {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr);
  margin-bottom: 12px;
}

.table-controls input[type="search"] {
  max-width: 420px;
}

.alpha-filter,
.table-pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alpha-filter button,
.table-pager button {
  background: var(--highlight);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 13px;
  min-height: 32px;
  padding: 5px 8px;
}

.alpha-filter button.active {
  background: var(--primary);
  color: #fff;
}

.table-pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bulk-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.bulk-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.select-column {
  text-align: center;
  width: 42px;
}

.select-column input {
  margin: 0;
}

table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  position: relative;
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
}

th {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.badge {
  background: var(--highlight);
  border: 1px solid var(--success);
  color: var(--primary);
  border-radius: 999px;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
}

.badge-warning {
  background: color-mix(in srgb, var(--warning) 26%, var(--surface));
  border-color: var(--warning);
  color: var(--warning-ink);
}

.validation-chip {
  background: color-mix(in srgb, var(--chip-color) 34%, var(--surface));
  border: 1px solid var(--chip-color);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.review-input {
  min-width: 130px;
}

.review-input.short {
  min-width: 82px;
  width: 96px;
}

.compact-button {
  min-height: 36px;
  padding: 7px 10px;
}

.compact-check {
  font-weight: 400;
}

.quick-edit {
  position: relative;
}

.quick-edit summary {
  color: var(--success);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.quick-edit summary::-webkit-details-marker {
  display: none;
}

.quick-edit-form {
  align-items: end;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

.quick-edit-form label {
  flex: 1 1 130px;
  min-width: 120px;
}

.quick-edit-form .checkbox-line {
  flex: 0 0 auto;
  min-height: 36px;
}

.quick-edit-form input,
.quick-edit-form select {
  min-height: 34px;
  padding: 6px 8px;
}

.quick-edit-form button {
  flex: 0 0 auto;
}

td .muted,
td .badge {
  display: block;
  margin-top: 4px;
}

td .badge {
  display: inline-flex;
  margin-top: 6px;
  vertical-align: middle;
}

td.actions-inline {
  align-items: center;
  display: table-cell;
  white-space: nowrap;
}

td.actions-inline > a,
td.actions-inline > form,
td.actions-inline > details {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  min-height: 32px;
  vertical-align: middle;
}

td.actions-inline > :last-child {
  margin-right: 0;
}

.dense-list {
  margin-bottom: 0;
  padding-left: 20px;
}

.text-block {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  border-left: 3px solid var(--primary);
  margin-bottom: 14px;
  padding-left: 12px;
}

.timeline span {
  color: var(--muted);
  display: block;
}

.report-page {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.report-header {
  border-bottom: 2px solid var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.report-section {
  break-inside: avoid;
  margin-top: 20px;
}

.report-stats {
  margin-top: 16px;
}

code {
  white-space: pre-wrap;
}

.help-toggle {
  background: var(--warning);
  border: 1px solid #d3a900;
  border-radius: var(--radius);
  color: var(--warning-ink);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 10px;
}

.context-help {
  align-items: flex-start;
  background: #fff4ad;
  border: 2px solid #ffd21f;
  border-radius: var(--radius);
  color: #3d3200;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.context-help p {
  margin: 4px 0 0;
}

.help-close,
.field-help-close {
  background: transparent;
  border: 0;
  color: #3d3200;
  cursor: pointer;
  font-weight: 800;
}

.field-help-wrap {
  display: inline-block;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  z-index: 20;
}

label > .field-help-wrap,
th > .field-help-wrap {
  margin-left: 0;
  position: absolute;
  right: 8px;
  top: 8px;
}

th > .field-help-wrap {
  top: 50%;
  transform: translateY(-50%);
}

.field-help-trigger {
  align-items: center;
  background: var(--warning);
  border: 1px solid #d3a900;
  border-radius: 7px;
  color: #3d3200;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  min-width: 22px;
  padding: 0;
  width: 22px;
}

.field-help-bubble {
  background: #fff4ad;
  border: 2px solid #ffd21f;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(18, 46, 96, 0.18);
  color: #3d3200;
  display: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  max-width: min(360px, calc(100vw - 16px));
  min-width: 220px;
  padding: 10px 30px 10px 10px;
  position: fixed;
  white-space: normal;
  z-index: 100000;
}

.field-help-wrap:hover .field-help-bubble,
.field-help-wrap:focus-within .field-help-bubble {
  display: none;
}

.field-help-close {
  font-size: 18px;
  position: absolute;
  right: 7px;
  top: 4px;
}

.help-disabled .context-help,
.help-disabled .field-help-wrap {
  display: none !important;
}

.feedback-widget {
  bottom: 18px;
  position: fixed;
  right: 18px;
  z-index: 90000;
}

.feedback-launcher {
  align-items: center;
  background: var(--warning);
  border: 2px solid #d3a900;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  color: #3d3200;
  display: inline-flex;
  gap: 8px;
  min-height: 48px;
  padding: 10px 15px;
}

.feedback-launcher span {
  align-items: center;
  background: #fff4ad;
  border: 1px solid #d3a900;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.feedback-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  bottom: 62px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  color: var(--text);
  max-height: min(78vh, 720px);
  overflow: auto;
  padding: 16px;
  position: absolute;
  right: 0;
  width: min(420px, calc(100vw - 28px));
}

.feedback-panel-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feedback-panel-header p {
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0 0;
}

.feedback-close {
  background: transparent;
  color: var(--text);
  min-height: 30px;
  padding: 2px 8px;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form label {
  gap: 4px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  min-height: 38px;
  padding: 7px 9px;
}

.feedback-detail {
  color: var(--text);
  margin: 8px 0 0;
  white-space: normal;
}

.feedback-status-form {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .topbar,
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .user-box {
    flex-wrap: wrap;
    width: 100%;
  }

  .user-box {
    justify-content: flex-start;
  }

  .user-menu-panel {
    left: 0;
    right: auto;
    width: min(92vw, 360px);
  }

  .container {
    padding: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .driver-profile-header,
  .driver-profile-actions,
  .date-action-row,
  .ciclograma-filter,
  .visual-planner,
  .planner-status-strip,
  .route-stop-dnd-grid,
  .manual-workflow,
  .manual-origin-header,
  .master-delete-grid {
    grid-template-columns: 1fr;
  }

  .manual-tree-level > summary,
  .manual-origin-schedule-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dispatcher-route-row > summary,
  .dispatcher-program-row,
  .dispatcher-daily-program-row,
  .dispatcher-live-departure,
  .dispatcher-reserve-form,
  .dispatcher-reserve-add-form {
    grid-template-columns: 1fr;
  }

  .dispatcher-live-vehicle-column,
  .dispatcher-live-actions {
    grid-column: auto;
  }

  .dispatcher-day-summary,
  .dispatcher-filter-grid,
  .dispatcher-save-all-bar {
    grid-template-columns: 1fr;
  }

  .dispatcher-reserve-allocation summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dispatcher-reserve-add-form .searchable-select {
    min-width: 0;
  }

  .dispatcher-program-row > small,
  .dispatcher-daily-program-row > small {
    grid-column: auto;
  }

  .dispatcher-live-departure small {
    grid-column: auto;
  }

  .dispatcher-departure-result {
    grid-column: auto;
  }

  .dispatcher-live-vehicle {
    justify-self: start;
  }

  .section-heading-row {
    flex-direction: column;
  }

  .planner-slot {
    grid-template-columns: 1fr;
  }

  .planner-clear-form {
    align-self: stretch;
  }

  .planner-clear-form .button {
    width: 100%;
  }

  .driver-profile-actions {
    justify-self: stretch;
  }

  .quick-actions .button.quick,
  .actions-inline,
  .inline-form {
    width: 100%;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button,
  .actions-inline .button,
  .actions-inline form,
  .actions-inline button {
    width: 100%;
  }

  .quick-edit-form {
    position: static;
  }

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

  .month-weekday {
    display: none;
  }
}

.ciclograma-operational-summary article strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.ciclograma-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ciclograma-service-filters {
  align-items: end;
}

.ciclograma-service-table th,
.ciclograma-service-table td {
  vertical-align: top;
}

.service-row.status-confirmed {
  border-left: 4px solid #16804d;
}

.service-row.status-planned {
  border-left: 4px solid #23815f;
}

.service-row.status-partial {
  border-left: 4px solid #d39b16;
}

.service-row.status-unprepared {
  border-left: 4px solid #c83d3d;
}

.service-row.status-cancelled {
  border-left: 4px solid #8a8f98;
  color: #68707c;
}

.service-details {
  position: relative;
}

.service-details summary {
  cursor: pointer;
  color: var(--link-color, #116149);
  font-weight: 700;
  white-space: nowrap;
}

.service-detail-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  min-width: min(760px, calc(100vw - 48px));
}

.service-departure-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.service-departure-groups div {
  border: 1px solid var(--border-color, #d6ddd8);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-muted, #f7faf8);
}

.service-departure-groups p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.service-departure-groups a,
.service-departure-groups span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-color, #d6ddd8);
  text-decoration: none;
  font-weight: 700;
}

.service-assignment-form {
  padding-top: 4px;
}

.weekly-service-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(7, minmax(145px, 1fr));
  gap: 1px;
  overflow-x: auto;
  background: var(--border-color, #d6ddd8);
  border: 1px solid var(--border-color, #d6ddd8);
  border-radius: 8px;
}

.weekly-service-head,
.weekly-service-title,
.weekly-service-cell,
.weekly-service-empty {
  background: var(--panel-bg, #fff);
  min-height: 88px;
  padding: 10px;
}

.weekly-service-head {
  min-height: 58px;
  font-weight: 800;
}

.weekly-service-head span,
.weekly-service-title span {
  display: block;
  color: var(--muted-color, #66746d);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
}

.weekly-service-title {
  position: sticky;
  left: 0;
  z-index: 1;
}

.weekly-service-cell a {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.weekly-service-cell a.status-confirmed {
  background: #e9f7ef;
  border-color: #a8d9bb;
}

.weekly-service-cell a.status-planned {
  background: #edf8f3;
  border-color: #b8dccd;
}

.weekly-service-cell a.status-partial {
  background: #fff6df;
  border-color: #e4c46e;
}

.weekly-service-cell a.status-unprepared {
  background: #fff0f0;
  border-color: #e6aaaa;
}

.weekly-service-cell a.status-cancelled {
  background: #f2f3f5;
  border-color: #cfd4da;
  color: #68707c;
}

.weekly-service-cell strong,
.weekly-service-cell span,
.weekly-service-cell small,
.weekly-service-cell em {
  overflow-wrap: anywhere;
}

.weekly-service-cell em {
  color: var(--muted-color, #66746d);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.weekly-service-empty {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .ciclograma-actions .button {
    width: 100%;
  }

  .weekly-service-grid {
    grid-template-columns: minmax(180px, 0.9fr) repeat(7, minmax(132px, 1fr));
  }

  .service-detail-panel {
    min-width: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .topbar,
  .print-hidden,
  .tabs,
  .section-switcher,
  .user-menu,
  .context-help,
  .help-toggle,
  .field-help-wrap,
  .notice,
  .button,
  script {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .report-page {
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  th,
  td {
    border-color: #999;
    font-size: 12px;
    padding: 6px;
  }
}
/* Persistent dispatcher workspace */
.dispatcher-persistent-header { position: sticky; top: 0; z-index: 18; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(110px, auto)) auto; gap: 14px; align-items: center; margin: 0 0 16px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.dispatcher-persistent-header div { display: flex; flex-direction: column; gap: 2px; }
.dispatcher-persistent-header span { color: var(--muted); font-size: .78rem; }
.dispatcher-persistent-header .active-status { color: var(--primary); }
.tabs .danger-tab { color: var(--danger); }
@media (max-width: 1100px) { .dispatcher-persistent-header { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
