:root {
  --green: #32e678;
  --green-dark: #247346;
  --blue: #4b9ce8;
  --amber: #f0c43c;
  --purple: #a26cf2;
  --red: #e95343;
  --bg: #071019;
  --panel: rgba(13, 22, 31, 0.92);
  --panel-soft: rgba(18, 30, 41, 0.86);
  --line: rgba(210, 222, 232, 0.14);
  --text: #f4f7fa;
  --muted: #a9bac7;
  --selection-bg: rgba(50, 230, 120, 0.22);
  --selection-bg-strong: rgba(50, 230, 120, 0.34);
  --selection-border: rgba(50, 230, 120, 0.74);
  --selection-ring: 0 0 0 2px rgba(50, 230, 120, 0.42), 0 12px 28px rgba(50, 230, 120, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #152332 0, #071019 45%, #050a10 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: rgba(50, 230, 120, 0.46);
  color: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  box-shadow: var(--selection-ring);
}

.app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 15, 23, 0.98), rgba(5, 10, 16, 0.98));
}

.brand {
  display: flex;
  align-items: center;
  height: 92px;
  padding: 16px 18px;
}

.brand img {
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.nav-list {
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 0;
  color: rgba(244, 247, 250, 0.86);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(50, 230, 120, 0.26), rgba(50, 230, 120, 0.10));
  box-shadow: inset -4px 0 0 var(--green);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(220, 232, 240, 0.55);
  border-radius: 5px;
  color: rgba(230, 238, 244, 0.82);
  font-size: 16px;
}

.nav-link.active .nav-icon {
  border-color: var(--green);
  background: rgba(50, 230, 120, 0.18);
  color: var(--green);
}

.sidebar-photo {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: min(360px, 48vh);
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 16, 0), rgba(5, 10, 16, 0.94) 68%),
    url("/static/sidebar-terminal-yard.png") center bottom / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.sidebar-footer {
  z-index: 1;
  margin-top: auto;
  padding: 28px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-footer span {
  display: block;
  margin-top: 2px;
  color: rgba(244, 247, 250, 0.78);
  font-weight: 500;
}

.app-main {
  display: grid;
  grid-template-rows: 86px minmax(0, 1fr) 34px;
  height: 100vh;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 20, 0.72);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.page-kicker {
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.weather-pill,
.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.profile-menu {
  position: relative;
  z-index: 1600;
}

.profile-pill {
  color: inherit;
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  font: inherit;
}

.profile-pill span {
  display: block;
  text-align: left;
}

.profile-menu-chevron {
  font-size: 16px !important;
  transition: transform 0.18s ease;
}

.profile-menu.is-open .profile-menu-chevron {
  transform: rotate(180deg);
}

.profile-menu-panel {
  position: absolute;
  z-index: 1700;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(300px, calc(100vw - 28px));
  max-height: min(430px, calc(100vh - 120px));
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(9, 17, 26, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.profile-menu.is-open .profile-menu-panel {
  display: block;
}

.profile-menu-head {
  display: grid;
  gap: 1px;
  padding: 7px 8px 9px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.profile-menu-head strong {
  font-size: 12px;
  line-height: 1.2;
}

.profile-menu-head span,
.profile-switch-menu > span {
  color: var(--muted);
  font-size: 10px;
}

.profile-switch-menu {
  display: grid;
  gap: 3px;
  padding: 7px 0;
}

.profile-switch-menu > span {
  padding: 0 8px 2px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-switch-menu form,
.profile-menu-action {
  margin: 0;
}

.profile-switch-menu button,
.profile-menu-action button,
.profile-menu-logout {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(232, 240, 246, 0.92);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.profile-switch-menu button:hover,
.profile-switch-menu button.active,
.profile-menu-action button:hover,
.profile-menu-logout:hover {
  border-color: rgba(95, 214, 120, 0.24);
  background: rgba(95, 214, 120, 0.10);
  color: #ffffff;
}

.profile-switch-menu i,
.profile-menu-action i,
.profile-menu-logout i {
  display: grid;
  place-items: center;
  width: 20px;
  color: var(--green);
  font-size: 17px;
}

.profile-switch-menu button > span {
  display: grid;
  align-content: center;
  min-width: 0;
  text-align: left;
}

.profile-switch-menu strong,
.profile-switch-menu small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-switch-menu small {
  color: var(--muted);
  font-size: 9px;
}

.profile-menu-logout {
  border-top: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 0 0 8px 8px;
}

.weather-pill i,
.profile-pill i {
  color: var(--muted);
  font-size: 24px;
}

.weather-pill strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.weather-pill strong i {
  color: rgba(95, 214, 120, 0.78);
  font-size: 15px;
  line-height: 1;
}

.weather-pill small,
.profile-pill small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
}

.weather-pill small {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.weather-pill [data-weather-wind] {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(210, 222, 232, 0.58);
}

.weather-pill [data-weather-wind]::before {
  content: "·";
  margin-right: 6px;
  color: rgba(210, 222, 232, 0.38);
}

.weather-pill [data-weather-wind] i {
  color: rgba(95, 214, 120, 0.72);
  font-size: 13px;
  line-height: 1;
}

.notification-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-left: 1px solid var(--line);
  color: #fff;
}

.notification-wrap i {
  color: var(--muted);
  font-size: 24px;
}

.notification-wrap span {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.page-content {
  min-height: 0;
  overflow: auto;
  padding: 24px 30px;
}

.page-content.page-train_import {
  padding-left: 24px;
  padding-right: 24px;
}

.page-content.page-attendance {
  padding-bottom: 0;
}

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

.main-column,
.right-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.right-column > .panel {
  min-width: 0;
}

.main-column {
  container-type: inline-size;
}

.section-title {
  margin-bottom: 10px;
  color: rgba(244, 247, 250, 0.94);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.content-grid .main-column > .metric-grid {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@container (max-width: 560px) {
  .content-grid .main-column > .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(21, 34, 45, 0.92), rgba(8, 15, 23, 0.94));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 20px;
}

.content-grid .main-column > .metric-grid .metric-card {
  gap: 12px;
  min-height: 108px;
  padding: 14px;
}

.content-grid .main-column > .metric-grid .metric-card > div:last-child {
  min-width: 0;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 16%, transparent);
}

.metric-icon i {
  font-size: 30px;
  color: currentColor;
}

.content-grid .main-column > .metric-grid .metric-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.content-grid .main-column > .metric-grid .metric-icon i {
  font-size: 24px;
}

.metric-card strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.content-grid .main-column > .metric-grid .metric-card strong {
  font-size: 30px;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: rgba(244, 247, 250, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.content-grid .main-column > .metric-grid .metric-card span {
  margin-top: 7px;
  font-size: 12px;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.content-grid .main-column > .metric-grid .metric-card small {
  margin-top: 6px;
  font-size: 12px;
}

.metric-grid.compact {
  gap: 10px;
}

.metric-grid.compact .metric-card {
  min-height: 82px;
  gap: 12px;
  padding: 12px 14px;
}

.metric-grid.compact .metric-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.metric-grid.compact .metric-icon i {
  font-size: 21px;
}

.metric-grid.compact .metric-card strong {
  font-size: 25px;
}

.metric-grid.compact .metric-card span {
  margin-top: 5px;
  font-size: 11px;
}

.metric-grid.compact .metric-card small {
  margin-top: 4px;
  font-size: 10px;
}

.tone-green { color: var(--green); }
.tone-blue { color: #4b9ce8; }
.tone-amber { color: #f0c43c; }
.tone-purple { color: #a26cf2; }
.tone-red { color: var(--red); }

.panel {
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  color: rgba(244, 247, 250, 0.94);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

button,
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 9px 13px;
  font-weight: 800;
  text-decoration: none;
}

.panel-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.panel-action-link.compact {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.panel-action-link.highlight {
  border-color: rgba(50, 230, 120, 0.5);
  background: rgba(50, 230, 120, 0.18);
}

.panel-actions {
  display: flex;
  gap: 7px;
}

.inline-form {
  margin: 0;
}

.terminal-table {
  margin: 0;
  color: rgba(244, 247, 250, 0.92);
}

.terminal-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.terminal-table td,
.terminal-table th {
  border-color: rgba(210, 222, 232, 0.10);
  padding: 12px 8px;
}

.terminal-table td a {
  color: inherit;
  font-weight: 950;
  text-decoration: none;
}

.terminal-table tr.selected-row td {
  background: rgba(50, 230, 120, 0.08);
}

.table-search-form {
  display: flex;
  gap: 8px;
  margin: 0;
}

.table-search-form input {
  min-width: 230px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.55);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 750;
}

.table-search-form button {
  min-height: 36px;
}

.train-detail-panel {
  margin-top: 18px;
}

.train-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.train-detail-metrics div {
  padding: 13px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.train-detail-metrics span,
.train-detail-metrics strong {
  display: block;
}

.train-detail-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.train-detail-metrics strong {
  margin-top: 5px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.train-unit-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(210, 222, 232, 0.08);
  border-radius: 8px;
}

.status-text {
  color: var(--green);
}

.status-text.tone-planned {
  color: var(--blue);
}

.status-text.tone-processing {
  color: var(--green);
}

.status-text.tone-warning {
  color: var(--amber);
}

.status-text.tone-problem {
  color: var(--red);
}

.status-text.tone-done,
.status-text.tone-ready {
  color: var(--green);
}

.two-panels,
.dashboard-bottom-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-bottom-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.map-preview {
  grid-column: 1 / -1;
}

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

.settings-page {
  display: grid;
  gap: 18px;
}

.settings-hero {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 118px;
}

.settings-user-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(50, 230, 120, 0.44);
  border-radius: 50%;
  background: rgba(50, 230, 120, 0.13);
  color: var(--green);
  font-size: 36px;
}

.settings-hero h2,
.settings-hero p {
  margin: 0;
}

.settings-hero h2 {
  color: #fff;
  font-size: 25px;
  font-weight: 950;
}

.settings-hero p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-data-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.settings-data-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-data-header span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-data-header h2,
.settings-data-header p {
  margin: 0;
}

.settings-data-header h2 {
  margin-top: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.settings-data-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-data-path {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
  color: rgba(235, 245, 250, 0.90);
  font-size: 12px;
  font-weight: 900;
}

.settings-data-path i {
  color: var(--green);
  font-size: 20px;
}

.settings-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.settings-source-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: minmax(88px, auto) 42px;
  gap: 12px;
  min-height: 158px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-left: 4px solid rgba(210, 222, 232, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(50, 230, 120, 0.08), transparent 36%),
    rgba(5, 10, 16, 0.34);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.settings-source-card.tone-green { border-left-color: rgba(50, 230, 120, 0.72); }
.settings-source-card.tone-blue { border-left-color: rgba(75, 166, 255, 0.72); }
.settings-source-card.tone-amber { border-left-color: rgba(245, 195, 70, 0.72); }
.settings-source-card.tone-purple { border-left-color: rgba(170, 105, 255, 0.72); }

.settings-source-card.is-dragover {
  border-color: rgba(50, 230, 120, 0.68);
  box-shadow: 0 0 0 2px rgba(50, 230, 120, 0.14), 0 18px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.settings-source-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-source-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--green);
  font-size: 22px;
}

.settings-source-card.tone-blue .settings-source-icon { color: var(--blue); }
.settings-source-card.tone-amber .settings-source-icon { color: var(--amber); }
.settings-source-card.tone-purple .settings-source-icon { color: var(--purple); }

.settings-source-main {
  min-width: 0;
}

.settings-source-main strong,
.settings-source-main span,
.settings-source-main small {
  display: block;
}

.settings-source-main strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.settings-source-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.settings-source-main small {
  margin-top: 10px;
  color: rgba(235, 245, 250, 0.72);
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-source-main .settings-mail-parse-state {
  margin-top: 5px;
  color: rgba(141, 255, 191, 0.82);
  white-space: normal;
}

.settings-source-card label {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 8px;
  background: rgba(36, 48, 58, 0.72);
  color: rgba(245, 248, 250, 0.94);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.settings-source-card.uploaded label {
  border-color: rgba(50, 230, 120, 0.36);
  background: rgba(50, 230, 120, 0.10);
}

.settings-source-card.is-mail-source {
  grid-template-rows: minmax(104px, auto) 144px;
  gap: 10px;
  min-height: 292px;
  padding: 12px;
}

.settings-source-card.is-mail-source .settings-source-main {
  align-self: start;
}

.settings-source-card.is-mail-source textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 144px;
  max-height: 220px;
  resize: vertical;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 8px;
  background: rgba(4, 9, 14, 0.62);
  color: #f5f8fa;
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.settings-source-card.is-mail-source textarea::placeholder {
  color: rgba(235, 245, 250, 0.42);
}

.settings-source-card.is-mail-source .settings-source-text-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.settings-source-paste-submit,
.settings-source-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(170, 105, 255, 0.30);
  border-radius: 8px;
  background: rgba(170, 105, 255, 0.12);
  color: rgba(245, 248, 250, 0.94);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.settings-source-clear {
  border-color: rgba(255, 105, 105, 0.28);
  background: rgba(255, 105, 105, 0.10);
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.settings-modern-card {
  min-height: 250px;
}

.theme-switch-form,
.profile-switch-list,
.settings-system-list {
  display: grid;
  gap: 10px;
}

.theme-switch-form button,
.profile-switch-list button,
.settings-system-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
  text-align: left;
}

.theme-switch-form button.active,
.profile-switch-list button.active {
  border-color: rgba(50, 230, 120, 0.46);
  background: rgba(50, 230, 120, 0.12);
}

.theme-switch-form i,
.profile-switch-list i,
.settings-system-list i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.05);
  font-size: 21px;
}

.theme-switch-form strong,
.theme-switch-form span,
.profile-switch-list strong,
.profile-switch-list small,
.settings-system-list span,
.settings-system-list strong {
  display: block;
}

.theme-switch-form strong,
.profile-switch-list strong,
.settings-system-list strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.theme-switch-form span,
.profile-switch-list small,
.settings-system-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  height: 208px;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(210, 222, 232, 0.10);
}

.bar-chart span {
  display: grid;
  align-items: start;
  justify-items: center;
  align-content: start;
  height: var(--h);
  min-height: 28px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #54d84d, rgba(50, 230, 120, 0.28));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.bar-chart span strong {
  margin-top: -19px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.bar-chart span small {
  align-self: end;
  margin-bottom: -38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.stock-state-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 208px;
}

.stock-donut {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(9, 16, 23, 0.96) 0 46%, transparent 47%),
    conic-gradient(
      var(--green) 0 calc(var(--p1) * 1%),
      var(--blue) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
      var(--amber) calc((var(--p1) + var(--p2)) * 1%) calc((var(--p1) + var(--p2) + var(--p3)) * 1%),
      var(--purple) calc((var(--p1) + var(--p2) + var(--p3)) * 1%) calc((var(--p1) + var(--p2) + var(--p3) + var(--p4)) * 1%),
      rgba(130, 145, 156, 0.55) 0 100%
    );
  box-shadow: inset 0 0 0 1px rgba(210, 222, 232, 0.10);
}

.stock-donut div {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(10, 17, 24, 0.96);
}

.stock-donut strong,
.stock-donut span {
  display: block;
}

.stock-donut strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.stock-donut span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.stock-state-list {
  display: grid;
  gap: 9px;
}

.stock-state-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 250, 0.90);
  font-size: 12px;
  font-weight: 800;
}

.stock-state-row i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: currentColor;
}

.stock-state-row strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.stock-state-row small {
  color: var(--muted);
  font-size: 11px;
}

.stock-state-row.tone-green { color: var(--green); }
.stock-state-row.tone-blue { color: var(--blue); }
.stock-state-row.tone-amber { color: var(--amber); }
.stock-state-row.tone-purple { color: var(--purple); }
.stock-state-row.tone-muted { color: #7f8e99; }

.yard-mini,
.yard-map {
  display: grid;
  gap: 14px;
}

.yard-mini {
  grid-template-columns: repeat(5, 1fr);
  height: 190px;
}

.yard-mini div,
.yard-mini a,
.yard-section {
  border: 1px solid rgba(50, 230, 120, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(50, 230, 120, 0.22) 12px, transparent 12px) 0 0 / 36px 22px,
    rgba(8, 15, 23, 0.72);
}

.yard-mini div,
.yard-mini a {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-yard-mini div,
.dashboard-yard-mini a {
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.dashboard-yard-mini strong,
.dashboard-yard-mini span,
.dashboard-yard-mini small {
  display: block;
}

.dashboard-yard-mini strong {
  font-size: 24px;
  line-height: 1;
}

.dashboard-yard-mini span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.dashboard-yard-mini small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-yard-mini .warning span {
  color: var(--amber);
}

.dashboard-yard-mini .danger span {
  color: var(--red);
}

.activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.activity-list li > i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 19px;
}

.activity-list li div {
  min-width: 0;
}

.activity-list li strong,
.activity-list li small {
  display: block;
}

.activity-list li strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-list li small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.activity-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.activity-list .tone-green { color: var(--green); }
.activity-list .tone-blue { color: var(--blue); }
.activity-list .tone-amber { color: var(--amber); }
.activity-list .tone-purple { color: var(--purple); }
.activity-list .tone-red { color: var(--red); }

.alerts-panel {
  align-self: start;
}

.calendar-panel {
  min-width: 0;
  overflow: hidden;
}

.calendar-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-month-row > strong {
  color: rgba(244, 247, 250, 0.94);
  font-size: 13px;
  font-weight: 900;
}

.calendar-month-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.calendar-grid > span[role="columnheader"] {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.calendar-day,
.calendar-day-empty {
  width: 100%;
  max-width: 34px;
  aspect-ratio: 1;
  justify-self: center;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(244, 247, 250, 0.88);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.calendar-day:hover {
  border-color: rgba(210, 222, 232, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.calendar-day span {
  font-size: 11px;
}

.calendar-day.weekend {
  color: rgba(240, 196, 60, 0.86);
  background: rgba(240, 196, 60, 0.07);
}

.calendar-day.has-trains {
  border-color: rgba(75, 156, 232, 0.45);
  background: rgba(75, 156, 232, 0.10);
}

.calendar-day.today {
  background: var(--green-dark);
  border-color: rgba(50, 230, 120, 0.72);
  color: #fff;
}

.calendar-day.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(75, 156, 232, 0.18);
}

.calendar-day:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.calendar-day em {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.calendar-day-details {
  min-width: 0;
}

.dashboard-calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: min(340px, calc(100vw - 20px));
}

.dashboard-calendar-modal[hidden] {
  display: none;
}

.dashboard-calendar-dialog {
  position: relative;
  width: 100%;
  max-height: min(440px, calc(100vh - 20px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  background: #101a24;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.dashboard-calendar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 250, 0.82);
  cursor: pointer;
  font-size: 18px;
}

.dashboard-calendar-close:hover {
  border-color: rgba(50, 230, 120, 0.40);
  color: var(--green);
}

.calendar-day-details section[hidden] {
  display: none;
}

.calendar-day-details header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding-right: 42px;
}

.calendar-day-details header span {
  min-width: 0;
  overflow: hidden;
  color: rgba(244, 247, 250, 0.94);
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day-details header strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.calendar-day-details p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.calendar-train-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.calendar-train-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
  color: inherit;
  text-decoration: none;
}

.calendar-train-list > a:hover strong {
  color: var(--green);
}

.calendar-train-list span,
.calendar-train-list strong,
.calendar-train-list small {
  display: block;
  min-width: 0;
}

.calendar-train-list span {
  overflow: hidden;
}

.calendar-train-list strong {
  overflow: hidden;
  color: rgba(244, 247, 250, 0.94);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-train-list small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-train-list em {
  flex: 0 0 auto;
  color: rgba(244, 247, 250, 0.90);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.calendar-day-details footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.calendar-day-details footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.calendar-day-details footer a:hover {
  color: var(--green);
}

.report-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.reports-workspace {
  display: grid;
  gap: 18px;
}

.reports-command-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 0%, rgba(50, 230, 120, 0.10), transparent 32%),
    linear-gradient(135deg, rgba(14, 25, 35, 0.95), rgba(7, 13, 20, 0.97));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.report-header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  flex-wrap: wrap;
  gap: 10px;
}

.report-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: rgba(244, 247, 250, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.report-header-actions a.active,
.report-header-actions a:hover {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.16);
}

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

.reports-title-block strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.reports-title-block span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.report-source-switch,
.report-chart-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  justify-self: end;
  padding: 5px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.report-source-switch a,
.report-chart-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.report-source-switch a.active,
.report-chart-tabs a.active {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.16);
}

.report-upload-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, 0.62fr);
  gap: 12px;
}

.report-upload-row.report-source-shortcuts {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
}

.report-source-frame {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.27);
}

.report-source-frame .report-source-switch {
  justify-self: start;
}

.report-source-frame .report-header-actions {
  justify-self: end;
}

.report-upload-card,
.report-table-shortcut {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
  color: inherit;
  text-decoration: none;
}

.report-upload-card.is-dragover {
  border-color: rgba(50, 230, 120, 0.72);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.34);
}

.report-upload-card > i,
.report-table-shortcut > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 13%, transparent);
  color: var(--green);
  font-size: 24px;
}

.report-upload-card.tone-blue > i,
.report-table-shortcut > i {
  color: var(--blue);
}

.report-upload-card strong,
.report-upload-card span,
.report-upload-card small,
.report-table-shortcut span,
.report-table-shortcut strong {
  display: block;
}

.report-upload-card strong,
.report-table-shortcut span {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.report-upload-card span,
.report-upload-card small,
.report-table-shortcut strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-upload-card label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.report-upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.report-upload-card button {
  min-height: 34px;
  padding: 0 12px;
}

.reports-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.report-pie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(210, 222, 232, 0.10);
}

.report-pie-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.report-pie {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pie);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.14);
}

.report-pie::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 86%, #07111a);
  box-shadow: inset 0 0 0 1px rgba(210, 222, 232, 0.10);
}

.report-pie span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.report-pie-detail {
  min-width: 0;
}

.report-pie-detail > strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.report-pie-detail > small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.report-pie-legend {
  display: grid;
  gap: 6px;
}

.report-pie-legend span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: rgba(244, 247, 250, 0.88);
  font-size: 11px;
  font-weight: 850;
}

.report-pie-legend i {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--c);
}

.report-pie-legend em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.report-chart-stack {
  border-top: 1px solid rgba(210, 222, 232, 0.10);
}

.report-bar-chart {
  display: none;
}

.report-bar-chart.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  align-items: end;
  gap: 13px;
  min-height: 260px;
  padding: 18px 8px 6px;
}

.report-bar-chart span {
  display: grid;
  grid-template-rows: auto minmax(30px, 1fr) auto auto;
  justify-items: center;
  align-items: end;
  height: 100%;
  color: var(--green);
}

.report-bar-chart span.tone-blue { color: var(--blue); }
.report-bar-chart span.tone-amber { color: var(--amber); }
.report-bar-chart span.tone-purple { color: var(--purple); }
.report-bar-chart span.tone-red { color: var(--red); }
.report-bar-chart span.tone-muted { color: #83919b; }

.report-bar-chart strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.report-bar-chart i {
  width: min(48px, 80%);
  height: var(--h);
  min-height: 18px;
  border: 1px solid currentColor;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, currentColor 74%, white), color-mix(in srgb, currentColor 38%, transparent));
  box-shadow: 0 10px 22px color-mix(in srgb, currentColor 18%, transparent);
}

.report-bar-chart small,
.report-bar-chart em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.report-flow-visual,
.report-ranking-list,
.report-watch-list {
  display: grid;
  gap: 10px;
}

.report-flow-visual div,
.report-ranking-list div,
.report-watch-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.report-flow-visual span,
.report-ranking-list span,
.report-watch-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-ranking-list span small {
  display: block;
  margin-top: 3px;
  color: rgba(244, 247, 250, 0.72);
  font-size: 10px;
  font-weight: 850;
}

.report-flow-visual strong,
.report-ranking-list strong,
.report-watch-list strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.report-flow-visual i,
.report-ranking-list i {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.report-flow-visual i::before,
.report-ranking-list i::before {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.report-flow-visual .tone-blue i::before,
.report-ranking-list .tone-blue i::before { background: var(--blue); }
.report-flow-visual .tone-amber i::before,
.report-ranking-list .tone-amber i::before { background: var(--amber); }
.report-flow-visual .tone-purple i::before,
.report-ranking-list .tone-purple i::before { background: var(--purple); }
.report-flow-visual .tone-red i::before,
.report-ranking-list .tone-red i::before { background: var(--red); }
.report-flow-visual .tone-muted i::before,
.report-ranking-list .tone-muted i::before { background: #83919b; }

.reports-four-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.report-watch-list div {
  grid-template-columns: 64px minmax(0, 1fr);
}

.report-watch-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.report-day-grid {
  display: grid;
  gap: 8px;
}

.report-day-grid a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
  color: inherit;
  text-decoration: none;
}

.report-day-grid strong {
  grid-row: span 2;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.report-day-grid span,
.report-day-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.reports-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 16px;
}

.occupancy-report-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
}

.occupancy-detail-grid {
  grid-template-columns: 1fr;
}

.occupancy-summary-list span small,
.source-list span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.occupancy-section-table td,
.occupancy-section-table th {
  vertical-align: middle;
}

.occupancy-section-table td:first-child strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.occupancy-percent {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  color: var(--green);
  font-weight: 950;
}

.occupancy-percent.tone-active { color: var(--blue); }
.occupancy-percent.tone-warning { color: var(--amber); }
.occupancy-percent.tone-danger { color: var(--red); }

.occupancy-percent i {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.occupancy-percent i::before {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.kpi-click-table tr {
  cursor: pointer;
}

.kpi-click-table td {
  padding: 0;
}

.kpi-click-table td a {
  display: block;
  min-height: 43px;
  padding: 12px 8px;
}

.kpi-click-table tbody tr:hover td,
.kpi-click-table tbody tr.selected-row td {
  background: rgba(50, 230, 120, 0.10);
}

.report-kpi-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(50, 230, 120, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(50, 230, 120, 0.12), rgba(5, 10, 16, 0.22));
}

.report-kpi-detail > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(50, 230, 120, 0.42);
  border-radius: 8px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.10);
  font-size: 22px;
}

.report-kpi-detail span,
.report-kpi-detail strong {
  display: block;
}

.report-kpi-detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.report-kpi-detail strong {
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.report-kpi-detail p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.report-kpi-detail ul {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(226, 238, 245, 0.82);
  font-size: 12px;
  font-weight: 760;
}

.source-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.reports-side-stack,
.reports-train-section {
  display: grid;
  gap: 16px;
}

.report-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 7, 12, 0.66);
  backdrop-filter: blur(10px);
}

.report-calendar-backdrop {
  display: none;
}

.report-calendar-backdrop:target {
  display: grid;
}

.report-modal-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1280px, calc(100vw - 56px));
  max-height: min(840px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 0%, rgba(75, 156, 232, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(14, 25, 35, 0.98), rgba(6, 12, 19, 0.99));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

.report-modal-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 38px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.report-modal-header span,
.report-modal-subhead span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.report-modal-header h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.report-modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: rgba(244, 247, 250, 0.88);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.report-calendar-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: rgba(244, 247, 250, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.report-calendar-reset:hover {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.40);
  background: rgba(50, 230, 120, 0.14);
}

.report-modal-body {
  display: grid;
  min-height: 0;
  padding: 16px;
}

.report-modal-body.has-detail {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 16px;
}

.train-report-table-panel,
.modal-train-detail {
  min-height: 0;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.train-report-table-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.report-modal-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.09);
}

.report-modal-subhead strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.train-report-scroll,
.train-unit-table-wrap {
  overflow: auto;
  min-height: 0;
}

.train-report-scroll {
  max-height: calc(100vh - 230px);
}

.train-report-scroll .terminal-table thead th,
.train-unit-table-wrap .terminal-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 22, 31, 0.98);
}

.modal-train-detail {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 14px;
}

.modal-train-detail .train-unit-table-wrap {
  max-height: calc(100vh - 385px);
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.report-modebar {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.45);
}

.mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.mode-button.active {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.18);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.upload-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(50, 230, 120, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(21, 34, 45, 0.94), rgba(8, 15, 23, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.upload-card.is-dragover,
.attendance-upload.is-dragover {
  border-color: rgba(50, 230, 120, 0.72);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.34), 0 18px 38px rgba(0, 0, 0, 0.26);
}

.upload-card strong,
.upload-card span {
  display: block;
}

.upload-card strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.upload-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(50, 230, 120, 0.48);
  border-radius: 50%;
  background: rgba(50, 230, 120, 0.15);
  color: var(--green);
  font-size: 29px;
}

.upload-icon.blue {
  border-color: rgba(75, 156, 232, 0.52);
  background: rgba(75, 156, 232, 0.14);
  color: var(--blue);
}

.stock-summary-grid {
  display: grid;
  gap: 10px;
}

.stock-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stock-summary-grid div {
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.stock-summary-grid div {
  padding: 14px;
}

.stock-summary-grid span,
.stock-summary-grid strong {
  display: block;
}

.stock-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-summary-grid strong {
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.report-calendar-modal {
  width: min(860px, calc(100vw - 56px));
  grid-template-rows: auto auto auto;
}

.report-calendar-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
  background: rgba(255, 255, 255, 0.035);
}

.report-calendar-current span,
.report-calendar-current strong {
  display: block;
}

.report-calendar-current span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.report-calendar-current strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.report-calendar-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.report-period-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 16, 0.34);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.report-period-form:hover {
  transform: translateY(-1px);
  border-color: rgba(210, 222, 232, 0.24);
}

.report-period-form.quarter,
.report-period-form.custom {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.report-period-form.custom {
  grid-column: 1 / -1;
}

.report-period-form.active {
  border-color: rgba(50, 230, 120, 0.58);
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 230, 120, 0.18), transparent 48%),
    rgba(50, 230, 120, 0.09);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.12);
}

.report-period-form label,
.report-period-form label span {
  display: block;
  min-width: 0;
}

.report-period-form label span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.report-period-form input,
.report-period-form select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.report-period-form button {
  min-height: 40px;
  padding: 0 13px;
  border-color: rgba(50, 230, 120, 0.34);
  background: rgba(50, 230, 120, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.file-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: rgba(244, 247, 250, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.file-pick input {
  display: none;
}

.direction-pill {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #061018;
  background: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.train-operation-page {
  display: grid;
  gap: 22px;
}

.operation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.operation-picker {
  min-height: 430px;
}

.operation-group {
  margin-top: 16px;
}

.operation-group > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.operation-train-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.operation-train-grid.trailer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operation-train-card-form {
  margin: 0;
}

.operation-train-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border-color: rgba(210, 222, 232, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(50, 230, 120, 0.12), transparent 34%),
    rgba(5, 10, 16, 0.34);
  text-align: left;
}

.operation-train-card i {
  color: var(--green);
  font-size: 27px;
}

.operation-train-card strong,
.operation-train-card small {
  display: block;
}

.operation-train-card strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.operation-train-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.operation-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.operation-list {
  display: grid;
  gap: 9px;
}

.operation-list div:not(.empty-state) {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.operation-list strong,
.operation-list span,
.operation-list small {
  display: block;
}

.operation-list strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.operation-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operation-list small {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.operation-entry-card {
  position: relative;
}

.operation-entry-actions {
  display: flex;
  gap: 5px;
  margin: 6px 0 0;
}

.operation-entry-actions button {
  width: 28px;
  min-height: 26px;
  padding: 0;
  border-radius: 6px;
  font-size: 13px;
}

.visual-operation-page {
  gap: 18px;
}

.operation-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(50, 230, 120, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(15, 27, 38, 0.96), rgba(7, 13, 20, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.operation-command-copy span,
.operation-command-copy h1,
.operation-command-copy p,
.operation-command-status strong,
.operation-command-status small {
  display: block;
}

.operation-command-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.operation-command-copy h1 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
}

.operation-command-copy p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.operation-command-status {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.operation-command-status i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(50, 230, 120, 0.42);
  border-radius: 8px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.12);
  font-size: 25px;
}

.operation-command-status strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.operation-command-status small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operation-metrics .metric-card {
  min-height: 112px;
}

.operation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
}

.visual-operation-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.visual-operation-page .operation-picker {
  min-height: 0;
}

.visual-operation-page .operation-train-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.visual-operation-page .operation-train-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
}

.visual-operation-page .operation-train-card:hover {
  border-color: rgba(50, 230, 120, 0.48);
  background:
    radial-gradient(circle at 90% 0%, rgba(75, 156, 232, 0.16), transparent 36%),
    rgba(8, 16, 24, 0.55);
  transform: translateY(-1px);
}

.active-operation-panel {
  min-height: 164px;
}

.operation-status-chip {
  padding: 5px 9px;
  border: 1px solid rgba(50, 230, 120, 0.42);
  border-radius: 999px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.12);
  font-size: 11px;
  font-weight: 950;
}

.active-operation-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.active-operation-main i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(75, 156, 232, 0.14);
  font-size: 25px;
}

.active-operation-main strong,
.active-operation-main span {
  display: block;
}

.active-operation-main strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.active-operation-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.active-operation-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0 0;
}

.active-operation-actions button {
  min-height: 36px;
}

.operation-document-grid {
  display: grid;
  gap: 9px;
}

.operation-document-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px;
  border: 1px dashed rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.32);
  cursor: pointer;
}

.operation-document-card input {
  display: none;
}

.operation-document-card > i {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 13%, transparent);
  font-size: 20px;
}

.operation-document-card strong,
.operation-document-card span,
.operation-document-card small {
  display: block;
}

.operation-document-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.operation-document-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.operation-document-card small {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: currentColor;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.operation-document-card.tone-green { color: var(--green); }
.operation-document-card.tone-blue { color: var(--blue); }
.operation-document-card.tone-amber { color: var(--amber); }
.operation-document-card.tone-purple { color: var(--purple); }

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

.operation-flow-step {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.operation-flow-step::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(210, 222, 232, 0.18);
}

.operation-flow-step.active::before {
  background: var(--green);
}

.operation-flow-step i {
  color: var(--green);
  font-size: 24px;
}

.operation-flow-step strong,
.operation-flow-step span {
  display: block;
}

.operation-flow-step strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.operation-flow-step span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.operation-lower-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
}

.operation-preview-list {
  display: grid;
  gap: 9px;
}

.operation-preview-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.operation-preview-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-preview-list strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.train-import-desktop-page {
  display: grid;
  gap: 18px;
}

.train-import-title-block h1,
.train-import-title-block span {
  display: block;
}

.train-import-title-block h1 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 0;
}

.train-import-title-block span {
  margin-top: 4px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.train-import-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.train-import-stat-card,
.train-import-activity-panel,
.train-import-status-strip,
.train-import-create-panel,
.train-import-plan-panel,
.train-import-files-panel {
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
}

.train-import-stat-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(24, 34, 42, 0.92), rgba(9, 15, 22, 0.96));
}

.train-import-stat-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.train-import-stat-icon i {
  font-size: 31px;
}

.train-import-stat-card span,
.train-import-stat-card strong,
.train-import-stat-card small {
  display: block;
}

.train-import-stat-card span {
  color: rgba(245, 248, 250, 0.76);
  font-size: 12px;
  font-weight: 950;
}

.train-import-stat-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.train-import-stat-card small {
  margin-top: 8px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
}

.train-import-stat-card.tone-green { color: var(--green); }
.train-import-stat-card.tone-blue { color: var(--blue); }
.train-import-stat-card.tone-purple { color: var(--purple); }

.train-import-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(260px, 1fr);
  align-items: start;
  gap: 16px;
}

.train-import-picker {
  display: grid;
  align-content: start;
  gap: 8px;
}

.train-import-section-label {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 236, 245, 0.09);
  border-left: 4px solid rgba(245, 248, 250, 0.58);
  border-radius: 6px;
  color: rgba(235, 245, 250, 0.92);
  background: rgba(10, 15, 21, 0.96);
  font-size: 12px;
  font-weight: 950;
}

.train-import-train-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.train-import-train-grid.trailer {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
}

.train-import-train-form {
  margin: 0;
}

.train-import-train-button {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 14px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(11, 17, 24, 0.97);
  text-align: left;
}

.train-import-train-button::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 1px;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.train-import-train-button::after {
  content: "";
  position: absolute;
  left: 90px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.train-import-train-button:hover {
  border-color: rgba(50, 230, 120, 0.48);
  background: rgba(15, 22, 31, 0.98);
}

.train-import-train-button > span:not(.train-import-wagon-icon) {
  padding-left: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.train-import-wagon-icon {
  position: relative;
  display: block;
  width: 62px;
  height: 42px;
  color: var(--green);
  opacity: 0.88;
  transform: translateX(14px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.train-import-train-button:hover .train-import-wagon-icon {
  opacity: 1;
  transform: translateX(0);
}

.train-import-wagon-icon .wagon-load,
.train-import-wagon-icon .wagon-deck {
  position: absolute;
  display: block;
}

.train-import-wagon-icon .wagon-deck {
  left: 4px;
  right: 4px;
  bottom: 10px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.train-import-wagon-icon .wagon-deck::before,
.train-import-wagon-icon .wagon-deck::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(11, 17, 24, 0.97);
}

.train-import-wagon-icon .wagon-deck::before { left: 8px; }
.train-import-wagon-icon .wagon-deck::after { right: 8px; }

.train-import-wagon-icon.container .wagon-load {
  left: 8px;
  top: 5px;
  width: 46px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, currentColor 7px 9px, transparent 9px 14px);
}

.train-import-wagon-icon.trailer .wagon-load {
  left: 8px;
  top: 6px;
  width: 44px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 12px 5px 5px 12px;
}

.train-import-wagon-icon.trailer .wagon-load::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.train-import-wagon-icon.trailer .wagon-load::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 1px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(18deg);
  transform-origin: left center;
}

.train-import-right-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.train-import-activity-panel {
  max-height: 168px;
  padding: 10px 12px 8px;
}

.train-import-activity-panel header,
.train-import-status-strip,
.train-import-file-actions {
  display: flex;
  align-items: center;
}

.train-import-activity-panel header {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.train-import-activity-panel header strong {
  color: rgba(245, 248, 250, 0.92);
  font-size: 13px;
  font-weight: 950;
}

.train-import-activity-panel header button {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 10px;
}

.train-import-activity-item {
  display: grid;
  grid-template-columns: 42px 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(220, 236, 245, 0.06);
}

.train-import-activity-item time {
  color: rgba(245, 248, 250, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.train-import-activity-item > i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.train-import-activity-item strong,
.train-import-activity-item span {
  display: block;
}

.train-import-activity-item strong {
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.train-import-activity-item span {
  color: rgba(220, 235, 245, 0.67);
  font-size: 10px;
  font-weight: 650;
}

.train-import-activity-item.tone-green { color: var(--green); }
.train-import-activity-item.tone-blue { color: var(--blue); }

.train-import-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.92);
  background: rgba(36, 48, 58, 0.90);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}

.train-import-arrival-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.train-import-arrival-card,
.train-import-arrival-empty {
  display: grid;
  gap: 2px;
  min-height: 62px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(18, 28, 40, 0.86);
  text-align: left;
}

.train-import-arrival-card strong,
.train-import-arrival-card span {
  display: block;
}

.train-import-arrival-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.train-import-arrival-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.train-import-status-strip {
  gap: 18px;
  min-height: 58px;
  padding: 10px 18px;
}

.train-import-status-strip span {
  display: inline-flex;
  gap: 16px;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: rgba(245, 248, 250, 0.86);
  background: rgba(18, 28, 40, 0.90);
  font-size: 11px;
  font-weight: 950;
}

.train-import-status-strip small {
  margin-left: auto;
  color: rgba(245, 248, 250, 0.74);
  font-size: 11px;
  font-weight: 850;
}

.train-import-create-preview,
.train-import-plan-panel > div,
.train-import-file-state {
  display: grid;
  gap: 14px;
}

.train-import-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
  gap: 14px;
}

.train-import-create-panel,
.train-import-plan-panel,
.train-import-files-panel {
  padding: 16px;
}

.train-import-back-button,
.train-import-continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(36, 48, 58, 0.90);
  font-weight: 900;
  text-decoration: none;
}

.train-import-back-button {
  width: 140px;
  min-height: 38px;
  font-size: 12px;
}

.train-import-continue-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  font-size: 13px;
}

.train-import-create-panel h2,
.train-import-files-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.train-import-create-panel p,
.train-import-plan-panel p,
.train-import-files-panel p {
  margin: 6px 0 0;
  color: rgba(220, 235, 245, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.train-import-create-panel label {
  display: block;
  margin-top: 14px;
  color: rgba(245, 248, 250, 0.92);
  font-size: 13px;
  font-weight: 950;
}

.train-import-input-frame {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  margin-top: 7px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.96);
}

.train-import-input-frame i {
  display: grid;
  place-items: center;
  height: 50px;
  border-right: 1px solid rgba(220, 236, 245, 0.11);
  color: var(--green);
  font-size: 25px;
}

.train-import-input-frame strong {
  padding: 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.train-import-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
}

.train-import-upload-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.96);
  cursor: pointer;
}

.train-import-upload-card input {
  display: none;
}

.train-import-upload-card i {
  color: var(--green);
  font-size: 31px;
}

.train-import-file-actions {
  gap: 14px;
  margin-top: 14px;
}

.train-import-file-actions form {
  display: flex;
  flex: 1;
  margin: 0;
}

.train-import-file-actions > button:nth-of-type(1),
.train-import-file-actions > button:nth-of-type(3) {
  display: none;
}

.train-import-file-actions button {
  width: 100%;
  min-height: 52px;
  flex: 1;
}

.train-export-page {
  display: grid;
  gap: 18px;
}

.export-dashboard,
.export-create-screen,
.export-ops-screen {
  display: grid;
  gap: 14px;
}

.export-title-block strong,
.export-title-block span,
.export-title-block small {
  display: block;
}

.export-title-block strong {
  color: #fff;
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 0;
}

.export-title-block span {
  margin-top: 4px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.export-title-block small {
  margin-top: 8px;
  color: rgba(220, 235, 245, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.import-operation-heading {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 2px 0 4px;
}

.import-operation-heading span {
  padding: 0;
  color: #9cb1c2;
  background: transparent;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

.import-operation-heading strong {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.import-operation-heading small {
  color: #91a5b6;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

.import-operation-id-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.import-operation-id-row span {
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  letter-spacing: 0;
}

.import-operation-id-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.84);
  background: rgba(255, 255, 255, 0.055);
  line-height: 0;
  cursor: pointer;
}

.import-operation-id-row button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
}

.import-operation-id-row button:hover,
.import-operation-id-row button[aria-expanded="true"] {
  border-color: rgba(50, 230, 120, 0.34);
  color: #fff;
  background: rgba(36, 115, 70, 0.52);
}

.import-operation-edit {
  width: min(760px, 100%);
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(9, 16, 24, 0.82);
}

.import-operation-edit[hidden] {
  display: none;
}

.import-operation-edit-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.7fr) minmax(120px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
}

.import-operation-edit label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.import-operation-edit span {
  color: rgba(220, 235, 245, 0.66);
  font-size: 10px;
  font-weight: 950;
}

.import-operation-edit input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(18, 28, 40, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.import-operation-edit input[type="date"],
.import-operation-edit input[type="time"] {
  color-scheme: dark;
}

.import-operation-edit .export-secondary-button {
  min-height: 38px;
  white-space: nowrap;
}

.import-operation-edit .export-secondary-button:disabled {
  border-color: rgba(210, 222, 232, 0.10);
  color: rgba(220, 235, 245, 0.42);
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}

.export-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.export-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(230px, 1fr);
  gap: 16px;
  align-items: start;
}

.export-picker-area {
  display: grid;
  gap: 10px;
}

.export-section-label {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-left: 4px solid rgba(245, 248, 250, 0.58);
  border-radius: 6px;
  background: rgba(8, 14, 22, 0.82);
  color: rgba(235, 245, 250, 0.92);
  font-size: 12px;
  font-weight: 950;
}

.export-train-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.export-train-tile {
  display: grid;
  grid-template-columns: 54px 1px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-left: 4px solid rgba(245, 248, 250, 0.58);
  border-radius: 8px;
  background: rgba(11, 17, 24, 0.97);
  color: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.export-train-tile:hover {
  border-color: rgba(50, 230, 120, 0.48);
  background: rgba(14, 24, 36, 0.97);
  color: #fff;
  transform: translateY(-1px);
}

.export-train-tile i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--green);
  font-size: 28px;
}

.export-train-tile span {
  align-self: stretch;
  background: rgba(220, 236, 245, 0.08);
}

.export-train-tile strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.train-import-page .export-train-tile.train-import-icon-tile {
  grid-template-columns: 54px 1px minmax(0, 1fr);
}

.train-import-page .train-import-type-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 42px;
  align-self: center;
  justify-self: center;
  color: var(--green);
  background: transparent;
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), filter 160ms ease;
}

.train-import-page .export-train-tile:hover .train-import-type-icon {
  filter: drop-shadow(0 0 9px rgba(50, 230, 120, 0.28));
  transform: translateX(2px);
}

.train-import-page .train-import-type-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.train-import-page .train-import-type-icon.container svg {
  width: 100%;
}

.train-import-page .train-import-type-icon path,
.train-import-page .train-import-type-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.train-import-page .train-import-type-icon circle {
  fill: none;
}

.train-import-page .export-train-tile .train-import-train-divider {
  align-self: stretch;
  background: rgba(220, 236, 245, 0.08);
}

.import-workbench {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 84px;
}

.import-workbench-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.10);
}

.import-workbench-hero strong,
.import-workbench-hero span {
  display: block;
}

.import-workbench-hero strong {
  color: #fff;
  font-size: 38px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.import-workbench-hero span {
  max-width: 620px;
  margin-top: 8px;
  color: rgba(220, 235, 245, 0.66);
  font-size: 13px;
  font-weight: 780;
}

.import-workbench-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.import-workbench-actions a,
.import-workbench-actions button,
.import-relation-archive {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: rgba(235, 245, 250, 0.86);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.import-workbench-actions a:hover,
.import-workbench-actions button:hover {
  border-color: rgba(50, 230, 120, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.import-relation-section {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.import-relation-section > header {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2px;
}

.import-relation-section > header strong {
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.import-relation-section > header span {
  max-width: 520px;
  color: rgba(220, 235, 245, 0.54);
  font-size: 11px;
  font-weight: 760;
  text-align: right;
}

.import-relation-section > header strong::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: 1px;
}

.import-relation-section.trailer > header strong::before {
  background: #48a8ff;
  box-shadow: 0 0 0 4px rgba(72, 168, 255, 0.13);
}

.import-relation-section.container > header strong::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 214, 112, 0.12);
}

.import-relation-grid {
  display: grid;
  gap: 12px;
}

.import-relation-grid.trailer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.import-relation-grid.container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.import-relation-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 0;
  row-gap: 0;
  align-items: center;
  min-height: 102px;
  padding: 10px 14px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 214, 112, 0.10), rgba(11, 17, 24, 0.84) 54%),
    rgba(11, 17, 24, 0.78);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.import-relation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.90) 0%, rgba(11, 17, 24, 0.70) 100%),
    radial-gradient(circle at 18% 30%, rgba(31, 214, 112, 0.14), transparent 42%);
  opacity: 1;
}

.import-relation-card::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  opacity: 0.62;
  transition: opacity 180ms ease, width 180ms ease, box-shadow 180ms ease;
}

.import-relation-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 25, 36, 0.96);
}

.import-relation-card:focus-visible {
  outline: 2px solid rgba(50, 230, 120, 0.58);
  outline-offset: 3px;
}

.import-relation-card.trailer {
  border-color: rgba(72, 168, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(72, 168, 255, 0.12), rgba(11, 17, 24, 0.84) 54%),
    rgba(11, 17, 24, 0.78);
}

.import-relation-card.trailer::before {
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.90) 0%, rgba(11, 17, 24, 0.70) 100%),
    radial-gradient(circle at 18% 30%, rgba(72, 168, 255, 0.16), transparent 42%);
}

.import-relation-card.trailer::after {
  background: #48a8ff;
  box-shadow: 0 0 14px rgba(72, 168, 255, 0.34);
}

.import-relation-card.trailer:hover {
  border-color: rgba(72, 168, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(72, 168, 255, 0.28),
    0 0 32px rgba(72, 168, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.import-relation-card.container {
  border-color: rgba(50, 230, 120, 0.16);
}

.import-relation-card.container::after {
  background: var(--green);
  box-shadow: 0 0 14px rgba(50, 230, 120, 0.28);
}

.import-relation-card.container:hover {
  border-color: rgba(50, 230, 120, 0.64);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(50, 230, 120, 0.24),
    0 0 32px rgba(50, 230, 120, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.import-relation-card:hover::after {
  width: 6px;
  opacity: 1;
}

.import-relation-card-main {
  display: contents;
}

.import-relation-card-main > div {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: center;
  padding-left: 22px;
  padding-right: clamp(96px, 24%, 152px);
}

.import-relation-card-main .train-import-type-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 34px;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  padding: 0;
  border-right: 0;
  margin: 0;
  opacity: 0.08;
  transform: translateY(-50%);
  pointer-events: none;
  filter: none;
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.import-relation-card.trailer .train-import-type-icon {
  color: #48a8ff;
}

.import-relation-card.container .train-import-type-icon {
  color: var(--green);
}

.import-relation-card.trailer:hover .train-import-type-icon {
  opacity: 0.52;
  filter: drop-shadow(0 0 16px rgba(72, 168, 255, 0.86));
  transform: translateY(-50%) scale(1.06) translateX(-1px);
}

.import-relation-card.container:hover .train-import-type-icon {
  opacity: 0.50;
  filter: drop-shadow(0 0 16px rgba(50, 230, 120, 0.78));
  transform: translateY(-50%) scale(1.06) translateX(-1px);
}

.import-relation-card-main .train-import-type-icon svg {
  width: 66px;
  height: 38px;
}

.import-relation-card-main .train-import-type-icon path,
.import-relation-card-main .train-import-type-icon circle {
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.import-relation-card-main strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.import-relation-card-main small {
  display: block;
  margin-top: 5px;
  color: rgba(220, 235, 245, 0.56);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.import-relation-card-main small span {
  display: inline;
}

.train-export-page .import-relation-create-hint {
  display: none;
}

.import-relation-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 0;
  color: rgba(235, 245, 250, 0.70);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.import-relation-card-actions {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  bottom: auto;
  transform: none;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.import-relation-create-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(50, 230, 120, 0.42);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, rgba(42, 155, 92, 0.95), rgba(24, 111, 70, 0.94));
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-relation-create-hint::after {
  content: "→";
  margin-left: 8px;
  color: currentColor;
  font-weight: 950;
}

.import-relation-card.trailer .import-relation-create-hint {
  color: #c6e5ff;
}

.import-relation-archive {
  min-height: 0;
  min-width: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border-color: rgba(220, 236, 245, 0.12);
  border-radius: 8px;
  color: rgba(245, 250, 252, 0.72);
  background: rgba(11, 17, 24, 0.50);
  font-size: 0;
  font-weight: 920;
  line-height: 1;
  white-space: nowrap;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  overflow: hidden;
  opacity: 0.66;
  box-shadow: none;
  transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.import-relation-archive .ti,
.import-relation-archive i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 18px !important;
  font-family: "tabler-icons" !important;
  font-weight: 400 !important;
  line-height: 1;
  opacity: 1;
  text-indent: 0;
}

.import-relation-archive .ti::before,
.import-relation-archive i::before {
  font-size: inherit !important;
  color: currentColor;
}

.import-relation-archive svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  opacity: 0.82;
  stroke: currentColor !important;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 160ms ease, filter 160ms ease;
}

.import-relation-archive svg path {
  stroke: currentColor !important;
  opacity: 1;
}

.import-relation-archive:hover {
  opacity: 1;
  border-color: rgba(50, 230, 120, 0.42);
  color: #fff;
  background-color: rgba(50, 230, 120, 0.13);
  box-shadow: 0 0 0 1px rgba(50, 230, 120, 0.12), 0 0 18px rgba(50, 230, 120, 0.18);
  transform: translateY(-1px);
}

.import-relation-archive:hover svg {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(50, 230, 120, 0.42));
}

.import-relation-card.container .import-relation-create-hint {
  color: #c2f7d2;
}

.import-relation-create-hint::after {
  content: none;
}

.import-relation-card.trailer .import-relation-create-hint {
  border-color: rgba(72, 168, 255, 0.48);
  color: #fff;
  background: linear-gradient(135deg, rgba(45, 130, 219, 0.95), rgba(29, 87, 164, 0.94));
}

.import-relation-card.container .import-relation-create-hint {
  color: #fff;
}

.import-relation-archive {
  padding: 0;
  background-color: rgba(11, 17, 24, 0.50);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.import-workbench-actions a[aria-disabled="true"],
.import-relation-archive[aria-disabled="true"] {
  opacity: 0.58;
}

.import-create-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
}

.import-create-modal[hidden] {
  display: none;
}

.import-create-modal > section {
  display: grid;
  gap: 18px;
  width: min(460px, 94vw);
  padding: 18px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 10px;
  background: #0c141d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.import-create-modal header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.import-create-modal header strong,
.import-create-modal header span,
.import-create-modal label {
  display: block;
}

.import-create-modal header strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}

.import-create-modal header span {
  margin-top: 5px;
  color: rgba(220, 235, 245, 0.62);
  font-size: 11px;
  font-weight: 780;
}

.import-create-modal header button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.import-create-modal form {
  display: grid;
  gap: 10px;
}

.import-create-modal label {
  margin-top: 4px;
  color: rgba(220, 235, 245, 0.68);
  font-size: 10px;
  font-weight: 950;
}

.import-create-modal .export-primary-button {
  margin-top: 6px;
  width: 100%;
}

.empty-wagons-modal > section {
  width: min(1440px, calc(100vw - 20px));
  min-height: calc(100svh - 20px);
  height: calc(100svh - 20px);
  max-height: calc(100svh - 20px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  overflow: hidden;
}

.empty-wagons-modal > section > header {
  position: sticky;
  top: 0;
  z-index: 8;
  padding-bottom: 2px;
  background: #0c141d;
}

.empty-wagons-modal [data-empty-wagons-close] {
  position: relative;
  z-index: 9;
  border-color: rgba(220, 236, 245, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.empty-wagon-lookup-form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.empty-wagon-lookup-form > i,
.empty-wagon-lookup-form > strong,
.empty-wagon-lookup-form > span,
.empty-wagon-lookup-form > button[disabled] {
  display: none;
}

.empty-wagon-import-tools {
  order: 0;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.empty-wagon-import-panel {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(25, 48, 62, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.empty-wagon-import-panel[hidden] {
  display: none;
}

.empty-wagon-import-panel label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.empty-wagon-import-panel label span {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.empty-wagon-import-panel input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d5dde7;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.empty-wagon-import-panel small {
  align-self: center;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.empty-wagon-recent-trains {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.empty-wagon-recent-trains > small {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-wagon-recent-trains > div {
  display: grid;
  gap: 5px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.empty-wagon-recent-trains button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d5dde7;
  border-radius: 7px;
  color: #172536;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.empty-wagon-recent-trains button:hover {
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.10);
}

.empty-wagon-recent-trains strong,
.empty-wagon-recent-trains span,
.empty-wagon-recent-trains em {
  display: block;
  font-size: 11px;
  font-weight: 850;
}

.empty-wagon-recent-trains span,
.empty-wagon-recent-trains em {
  color: #64748b;
}

.empty-wagon-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.empty-wagon-sheet-layout {
  order: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.empty-wagon-input-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.empty-wagon-add-row {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(25, 48, 62, 0.16);
  border-radius: 7px;
  padding: 6px 10px;
  color: #152230;
  background: #eaf2f8;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.empty-wagon-add-row:hover {
  border-color: rgba(22, 163, 74, 0.42);
  background: #dcfce7;
}

.empty-wagon-input-sheet > strong {
  color: #152230;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.empty-wagon-sheet-scroll {
  min-height: 0;
  overflow: auto;
  border: 1px solid #d6dee8;
  border-radius: 7px;
  background: #fff;
}

.empty-wagon-sheet-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.empty-wagon-col-index {
  width: 34px;
}

.empty-wagon-col-key {
  width: 82px;
}

.empty-wagon-col-number {
  width: 118px;
}

.empty-wagon-col-weight,
.empty-wagon-col-payload {
  width: 104px;
}

.empty-wagon-col-length {
  width: 72px;
}

.empty-wagon-col-axles {
  width: 64px;
}

.empty-wagon-col-sequence {
  width: 250px;
}

.empty-wagon-col-db {
  width: 132px;
}

.empty-wagon-col-delete {
  width: 34px;
}

.empty-wagon-sheet-table th,
.empty-wagon-sheet-table td {
  height: 34px;
  padding: 4px 6px;
  border-right: 1px solid #dde5ef;
  border-bottom: 1px solid #dde5ef;
  color: #172536;
  font-size: 11px;
  font-weight: 760;
  text-align: left;
  white-space: nowrap;
  background: #fff;
}

.empty-wagon-sheet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #334155;
  background: #eef3f8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-wagon-sheet-table tr[data-empty-wagon-row] {
  cursor: grab;
}

.empty-wagon-sheet-table tr[data-empty-wagon-row]:active {
  cursor: grabbing;
}

.empty-wagon-sheet-table tr.is-dragging td {
  background: #dcfce7;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.32);
}

.empty-wagon-sheet-table [data-empty-wagon-output="container_sequence"] {
  white-space: normal;
  line-height: 1.25;
}

.empty-wagon-db-save {
  position: relative;
  display: grid;
  gap: 5px;
  align-items: start;
}

.empty-wagon-db-save-toggle {
  width: 100%;
  min-height: 26px;
  border: 1px solid rgba(22, 163, 74, 0.38);
  border-radius: 5px;
  color: #166534;
  background: #dcfce7;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.empty-wagon-db-save-toggle:hover,
.empty-wagon-db-save.is-open .empty-wagon-db-save-toggle {
  border-color: rgba(22, 163, 74, 0.58);
  background: #bbf7d0;
}

.empty-wagon-save-panel {
  position: fixed;
  z-index: 10020;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 3px;
  width: 148px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.empty-wagon-save-panel[hidden] {
  display: none;
}

.empty-wagon-save-panel label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.empty-wagon-save-panel label span {
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-wagon-row-index {
  width: 34px;
  color: #64748b;
  background: #f5f8fb !important;
  text-align: center;
}

.empty-wagon-row-delete-cell {
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle;
}

.empty-wagon-row-delete {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 6px;
  padding: 0;
  color: #64748b;
  line-height: 1;
  background: #ffffff;
  cursor: pointer;
}

.empty-wagon-row-delete i {
  display: block;
  font-size: 13px;
  line-height: 1;
}

.empty-wagon-row-delete:hover {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
  background: #fff1f2;
}

.empty-wagon-sheet-table input {
  width: 100%;
  min-width: 0;
  height: 26px;
  border: 1px solid #d5dde7;
  border-radius: 4px;
  padding: 3px 6px;
  color: #111827;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.empty-wagon-sheet-table select[data-empty-wagon-save-relation] {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid #d5dde7;
  border-radius: 4px;
  padding: 2px 5px;
  color: #111827;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.empty-wagon-db-name {
  display: block;
  color: inherit;
  font-weight: 900;
}

.empty-wagon-db-warning {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 4px;
  border-radius: 4px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.1;
}

.empty-wagon-sheet-table input:focus {
  outline: none;
  border-color: rgba(50, 230, 120, 0.48);
  box-shadow: 0 0 0 2px rgba(50, 230, 120, 0.10);
}

.empty-wagon-sheet-table tr.is-missing td {
  height: 52px;
  color: #9f1239;
  background: #fff1f2;
}

.empty-wagon-sheet-table button[data-empty-wagon-save-missing] {
  width: 100%;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 4px 8px;
  color: #172536;
  background: #f4f7fb;
  font-size: 10px;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.empty-wagon-sheet-table button[data-empty-wagon-save-missing]:hover {
  color: #166534;
  border-color: rgba(22, 163, 74, 0.30);
  background: #dcfce7;
}

.empty-wagon-lookup-form label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.empty-wagon-lookup-form label span {
  color: rgba(220, 235, 245, 0.70);
  font-size: 10px;
  font-weight: 950;
}

.empty-wagon-lookup-form textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  padding: 10px;
  color: #f4fafc;
  background: rgba(4, 10, 16, 0.62);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.empty-wagon-actions {
  order: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-wagon-actions .export-primary-button,
.empty-wagon-actions .export-secondary-button {
  width: auto;
  margin-top: 0;
}

.empty-wagon-result {
  display: grid;
  gap: 10px;
  max-height: 90px;
  overflow: auto;
}

.empty-wagon-result[hidden] {
  display: none;
}

.empty-wagon-result section,
.empty-wagon-files {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.empty-wagon-result section {
  min-height: 0;
  overflow: auto;
  grid-template-rows: auto minmax(0, 1fr);
}

.empty-wagon-files {
  grid-column: 1 / -1;
}

.empty-wagon-result section table {
  align-self: start;
}

.empty-wagon-result section > strong,
.empty-wagon-files strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.empty-wagon-files span {
  color: rgba(220, 235, 245, 0.72);
  font-size: 11px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.empty-wagon-result table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.empty-wagon-result th,
.empty-wagon-result td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.09);
  color: rgba(245, 250, 252, 0.86);
  font-size: 11px;
  font-weight: 760;
  text-align: left;
}

.empty-wagon-result th {
  color: rgba(220, 235, 245, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-wagon-result tr.is-missing td,
.empty-wagon-result .is-error {
  color: #ffb4a8;
}

.empty-wagon-result .is-warning {
  color: #ffe5a3;
}

.empty-wagon-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 204, 102, 0.30);
  border-radius: 8px;
  color: #ffe5a3;
  background: rgba(255, 204, 102, 0.10);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.empty-wagon-gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(78, 209, 126, 0.36);
  border-radius: 999px;
  color: #c9ffd8;
  background: rgba(78, 209, 126, 0.12);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.empty-wagon-sheet-table .empty-wagon-gps-badge {
  margin-left: 8px;
  padding: 3px 8px;
  border-color: #047857;
  color: #053b24;
  background: #86efac;
  box-shadow: 0 0 0 1px rgba(4, 120, 87, 0.16), 0 2px 8px rgba(5, 59, 36, 0.18);
  font-size: 10.5px;
}

.empty-wagon-sheet-table .empty-wagon-gps-badge i {
  color: #065f46;
  font-size: 13px;
}

.empty-wagon-db-modal > section {
  width: min(1280px, 98vw);
  max-height: 92vh;
}

.empty-wagon-db-toolbar,
.empty-wagon-db-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) max-content minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.empty-wagon-db-toolbar label,
.empty-wagon-db-form {
  min-width: 0;
}

.empty-wagon-db-toolbar span {
  display: block;
  margin-bottom: 6px;
  color: rgba(220, 235, 245, 0.70);
  font-size: 10px;
  font-weight: 950;
}

.empty-wagon-db-toolbar select,
.empty-wagon-db-toolbar input,
.empty-wagon-db-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  color: #f4fafc;
  background: rgba(4, 10, 16, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.empty-wagon-db-form {
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(78px, 0.7fr)) auto;
}

.empty-wagon-db-gps-mode {
  width: auto;
  min-height: 38px;
  margin-top: 0;
  white-space: nowrap;
}

.empty-wagon-db-gps-mode.is-active {
  border-color: rgba(78, 209, 126, 0.42);
  color: #d9ffe4;
  background: rgba(78, 209, 126, 0.14);
  box-shadow: 0 0 0 1px rgba(78, 209, 126, 0.10), 0 0 18px rgba(78, 209, 126, 0.12);
}

.empty-wagon-db-table {
  max-height: 58vh;
  overflow: auto;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
}

.empty-wagon-db-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.empty-wagon-db-table th,
.empty-wagon-db-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.08);
  color: rgba(245, 250, 252, 0.86);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
}

.empty-wagon-db-table th {
  color: rgba(220, 235, 245, 0.58);
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-wagon-db-table button {
  min-height: 28px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  border-radius: 7px;
  color: #ffb4a8;
  background: rgba(255, 120, 120, 0.08);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.empty-wagon-db-table .empty-wagon-gps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: rgba(220, 236, 245, 0.20);
  color: rgba(245, 250, 252, 0.78);
  background: rgba(220, 236, 245, 0.06);
}

.empty-wagon-db-table .empty-wagon-gps-toggle.is-active {
  border-color: rgba(78, 209, 126, 0.36);
  color: #c9ffd8;
  background: rgba(78, 209, 126, 0.12);
}

.empty-wagon-result input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 6px;
  padding: 5px 7px;
  color: #f4fafc;
  background: rgba(4, 10, 16, 0.62);
  font-size: 11px;
  font-weight: 760;
}

.empty-wagon-result button[data-empty-wagon-save-missing] {
  min-height: 30px;
  border: 1px solid rgba(50, 230, 120, 0.28);
  border-radius: 7px;
  color: #d7ffe2;
  background: rgba(50, 230, 120, 0.10);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.empty-wagon-save-row td {
  padding-top: 4px;
  text-align: right;
  border-bottom-color: rgba(50, 230, 120, 0.14);
}

.import-history-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.72);
}

.import-history-panel > header {
  display: grid;
  gap: 4px;
}

.import-history-panel > header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.import-history-panel > header span {
  color: rgba(220, 235, 245, 0.62);
  font-size: 11px;
  font-weight: 760;
}

.import-history-list {
  display: grid;
  gap: 8px;
}

.import-history-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.65fr) minmax(150px, 0.75fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
  color: inherit;
  background: rgba(11, 17, 24, 0.92);
  text-decoration: none;
}

.import-history-row:hover {
  border-color: rgba(220, 236, 245, 0.20);
  background: rgba(16, 25, 35, 0.96);
}

.import-history-row span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.import-history-row strong,
.import-history-row b {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-history-row small {
  color: rgba(220, 235, 245, 0.62);
  font-size: 10px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-history-train strong {
  font-size: 13px;
}

.import-history-meta b {
  font-size: 11px;
}

.import-history-status {
  justify-self: end;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-radius: 999px;
  color: rgba(245, 248, 250, 0.82);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.import-history-watermark {
  position: absolute !important;
  top: 4px;
  right: 36px;
  z-index: 0 !important;
  width: 118px;
  height: 78px;
  opacity: 0.18;
  pointer-events: none;
}

.import-history-watermark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.import-history-watermark path,
.import-history-watermark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.import-history-watermark.trailer {
  color: #48a8ff;
}

.import-history-watermark.container {
  color: var(--green);
  opacity: 0.16;
}

.export-side-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.export-list-button,
.export-back-button,
.export-primary-button,
.export-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(36, 48, 58, 0.90);
  color: rgba(245, 248, 250, 0.94);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.export-primary-button {
  min-height: 52px;
  border-color: rgba(50, 230, 120, 0.48);
  background: rgba(36, 115, 70, 0.88);
}

.train-import-page .export-primary-button,
.train-import-page .export-secondary-button,
.train-import-page .export-list-button,
.train-import-page .export-back-button {
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.train-import-page .export-primary-button:hover,
.train-import-page .export-primary-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(50, 230, 120, 0.72);
  background: rgba(42, 142, 82, 0.92);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(50, 230, 120, 0.24),
    0 0 24px rgba(50, 230, 120, 0.28);
}

.train-import-page .export-secondary-button:hover,
.train-import-page .export-secondary-button:focus-visible,
.train-import-page .export-list-button:hover,
.train-import-page .export-list-button:focus-visible,
.train-import-page .export-back-button:hover,
.train-import-page .export-back-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(210, 222, 232, 0.34);
  background: rgba(52, 65, 76, 0.96);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.20),
    0 0 0 1px rgba(210, 222, 232, 0.10),
    0 0 18px rgba(210, 222, 232, 0.16);
}

.train-import-page .export-primary-button:hover i,
.train-import-page .export-primary-button:focus-visible i {
  filter: drop-shadow(0 0 8px rgba(50, 230, 120, 0.36));
}

.train-import-page .export-secondary-button:hover i,
.train-import-page .export-secondary-button:focus-visible i,
.train-import-page .export-list-button:hover i,
.train-import-page .export-list-button:focus-visible i,
.train-import-page .export-back-button:hover i,
.train-import-page .export-back-button:focus-visible i {
  filter: drop-shadow(0 0 7px rgba(210, 222, 232, 0.24));
}

.export-back-button {
  justify-self: start;
  width: 140px;
}

.export-upload-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.export-upload-topbar .export-title-block,
.export-upload-topbar .import-operation-heading {
  min-width: 0;
}

.export-upload-topbar .export-back-button {
  justify-self: end;
  width: auto;
  min-width: 142px;
}

.export-scroll-list {
  display: grid;
  gap: 6px;
  max-height: 266px;
  overflow: auto;
  padding-right: 2px;
}

.export-scroll-list.compact {
  max-height: 328px;
}

.train-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.train-search-panel.compact {
  margin-bottom: 10px;
}

.train-date-switcher {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: stretch;
}

.train-date-switcher.compact {
  margin-bottom: 10px;
}

.train-date-switcher > .export-secondary-button {
  min-width: 0;
  width: 38px;
  padding: 0;
}

.train-date-form {
  display: grid;
}

.train-search-panel input {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(18, 28, 40, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.train-date-form input {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(18, 28, 40, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.train-search-panel input::placeholder {
  color: rgba(220, 235, 245, 0.52);
}

.train-search-results {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(50, 230, 120, 0.18);
  border-radius: 8px;
  background: rgba(20, 35, 30, 0.48);
}

.train-search-results > strong {
  color: rgba(245, 248, 250, 0.9);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.export-list-card {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(18, 28, 40, 0.86);
  color: #fff;
  text-decoration: none;
}

.export-list-card:hover {
  border-color: rgba(245, 248, 250, 0.32);
  background: rgba(24, 36, 52, 0.95);
  color: #fff;
}

.export-list-card strong,
.export-list-card span,
.export-list-card small {
  display: block;
}

.export-list-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.export-list-card span {
  color: rgba(220, 235, 245, 0.70);
  font-size: 11px;
  font-weight: 750;
}

.export-list-card small {
  color: rgba(220, 235, 245, 0.66);
  font-size: 10px;
  font-weight: 750;
}

.export-create-panel,
.export-context-panel,
.export-ops-panel,
.export-state-panel {
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
  box-shadow: var(--shadow);
}

.export-context-panel > header {
  display: grid;
  gap: 4px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
}

.export-context-panel > header strong,
.export-state-panel > strong {
  color: rgba(245, 248, 250, 0.94);
  font-size: 13px;
  font-weight: 950;
}

.export-context-panel > header span {
  color: rgba(220, 235, 245, 0.64);
  font-size: 11px;
  font-weight: 750;
}

.export-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
  gap: 14px;
  align-items: start;
  max-width: 1280px;
}

.export-create-panel {
  display: grid;
  gap: 8px;
  max-width: 840px;
  padding: 18px 20px 20px;
}

.export-create-panel label {
  margin-top: 4px;
  color: rgba(220, 235, 245, 0.68);
  font-size: 11px;
  font-weight: 950;
}

.export-input-row,
.export-date-row {
  display: grid;
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.export-input-row {
  grid-template-columns: 52px minmax(0, 1fr);
}

.export-input-row.no-icon {
  display: block;
  width: 100%;
}

.export-input-row.no-icon input {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  overflow: visible;
  text-overflow: clip;
  caret-color: var(--green);
}

.export-input-row i {
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 24px;
}

.export-input-row input,
.export-date-row input,
.export-date-row select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 850;
  line-height: 48px;
  outline: 0;
  opacity: 1;
}

.export-input-row input::placeholder,
.export-date-row input::placeholder {
  color: rgba(220, 235, 245, 0.45);
}

.export-input-row input:focus,
.export-date-row input:focus,
.export-date-row select:focus {
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.42);
}

.export-date-row select {
  appearance: none;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.export-date-row input[type="date"],
.export-date-row input[type="time"] {
  color-scheme: dark;
  font-variant-numeric: tabular-nums;
}

.export-date-row {
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
}

.export-date-row input + input,
.export-date-row input + select {
  border-left: 1px solid rgba(220, 236, 245, 0.10);
}

.export-context-panel {
  display: grid;
  gap: 10px;
  min-height: 410px;
  padding-bottom: 14px;
}

.export-ops-panel {
  padding: 12px;
}

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

.export-upload-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.export-upload-card,
.export-file-action {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  min-height: 90px;
  padding: 14px 18px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.96);
  color: rgba(245, 248, 250, 0.94);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.train-import-page .export-upload-card:hover,
.train-import-page .export-upload-card:focus-within,
.train-import-page .export-upload-card.is-drag-over,
.train-import-page .export-upload-card.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(38, 221, 129, 0.42);
  background:
    linear-gradient(135deg, rgba(18, 45, 35, 0.96), rgba(9, 17, 24, 0.96)),
    rgba(10, 15, 21, 0.96);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    0 0 0 2px rgba(38, 221, 129, 0.18),
    0 0 34px rgba(50, 230, 120, 0.34);
}

.train-import-page .export-upload-card:hover > i,
.train-import-page .export-upload-card:focus-within > i,
.train-import-page .export-upload-card.is-drag-over > i,
.train-import-page .export-upload-card.is-dragover > i {
  filter: drop-shadow(0 0 9px rgba(50, 230, 120, 0.34));
}

.export-upload-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.export-upload-card i,
.export-file-action i {
  grid-row: span 2;
  color: var(--green);
  font-size: 34px;
}

.export-upload-card strong,
.export-upload-card span,
.export-file-action strong,
.export-file-action span {
  display: block;
}

.export-upload-card strong,
.export-file-action strong {
  color: rgba(245, 248, 250, 0.94);
  font-size: 13px;
  font-weight: 950;
}

.export-upload-card span,
.export-file-action span {
  color: rgba(220, 235, 245, 0.68);
  font-size: 11px;
  font-weight: 750;
}

.export-upload-card.import-main-upload-card,
.export-upload-card.import-archive-card {
  row-gap: 2px;
}

.import-upload-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.import-notification-panel {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: rgba(10, 18, 26, 0.90);
}

.import-notification-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.import-notification-panel > header strong,
.import-notification-panel > header span {
  display: block;
}

.import-notification-panel > header strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.import-notification-panel > header span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.import-notification-panel > header > i {
  color: var(--green);
  font-size: 18px;
}

.import-notification-list {
  display: grid;
  gap: 8px;
}

.import-notification-tile {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 247, 250, 0.68);
}

.import-notification-tile.is-done {
  color: var(--green);
}

.import-notification-tile.is-warning {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.import-notification-tile.is-warning > i {
  color: #f59e0b !important;
}

.import-notification-tile > i {
  font-size: 14px;
}

.import-notification-tile strong,
.import-notification-tile span,
.import-notification-tile small {
  display: block;
}

.import-notification-tile strong {
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
}

.import-notification-tile span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.import-notification-tile small {
  margin-top: 2px;
  color: rgba(220, 235, 245, 0.74);
  font-size: 9px;
  font-weight: 750;
}

.import-notification-panel > button {
  min-height: 30px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 247, 250, 0.56);
  font-size: 9px;
  font-weight: 950;
  cursor: not-allowed;
}

.export-upload-card.import-main-upload-card,
.export-upload-card.import-archive-card {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.export-upload-card.import-archive-card input[type="file"] {
  z-index: 1;
}

.export-upload-card.import-main-upload-card input[type="file"],
.export-upload-card.import-archive-card input[type="file"] {
  right: 48px;
  width: auto;
}

.export-upload-card-actions {
  position: relative;
  z-index: 5;
  grid-column: 3;
  grid-row: 1 / span 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  align-self: center;
  pointer-events: auto;
}

.export-upload-card .import-archive-open {
  width: 34px;
  min-height: 34px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.export-upload-card .compact-archive-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 0;
  height: 34px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.export-upload-card .compact-archive-open:hover,
.export-upload-card .compact-archive-open:focus,
.export-upload-card .compact-archive-open:focus-visible {
  text-decoration: none;
}

.export-upload-card .compact-archive-open i,
.export-upload-card .compact-archive-open svg {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  color: currentColor;
  font-size: 17px;
}

.export-upload-card .compact-archive-open:hover {
  border-color: rgba(210, 222, 232, 0.36);
  background: rgba(210, 222, 232, 0.11);
  box-shadow:
    0 0 0 2px rgba(210, 222, 232, 0.10),
    0 0 18px rgba(210, 222, 232, 0.24);
}

.export-upload-card.import-stable-upload-card {
  grid-template-columns: 42px minmax(0, 1fr) 92px 92px;
  cursor: default;
}

.export-upload-card.import-stable-upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.export-upload-card.import-stable-upload-card .import-file-open,
.export-upload-card.import-stable-upload-card .import-file-submit {
  position: relative;
  z-index: 2;
  min-height: 38px;
  align-self: center;
  cursor: pointer;
}

.export-upload-card.import-stable-upload-card .import-file-open {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.export-upload-card.import-stable-upload-card .import-file-submit {
  grid-column: 4;
  grid-row: 1 / span 2;
  width: 100%;
}

.export-upload-card.import-stable-upload-card.is-drag-over {
  border-color: rgba(38, 221, 129, 0.72);
  background: rgba(20, 52, 38, 0.92);
}

.export-upload-card-stack {
  cursor: default;
}

.export-upload-card-stack input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.export-upload-inline-actions {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-upload-inline-actions form,
.export-upload-inline-actions label {
  position: relative;
  margin: 0;
}

.export-upload-inline-actions .export-secondary-button {
  min-height: 34px;
  padding: 9px 14px;
  cursor: pointer;
}

.import-upload-list {
  display: grid;
  gap: 6px;
}

.import-dashboard-batch-delete {
  margin: 6px 0 0;
}

.import-dashboard-batch-delete button {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(245, 180, 80, 0.22);
  border-radius: 6px;
  color: #ffd28a;
  background: rgba(245, 180, 80, 0.09);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.import-dashboard-batch-delete button:hover {
  border-color: rgba(220, 70, 70, 0.36);
  color: #ffb8b8;
  background: rgba(220, 70, 70, 0.12);
}

.import-upload-details,
.import-upload-files {
  display: grid;
  gap: 6px;
}

.import-upload-details summary,
.import-upload-files summary {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(50, 230, 120, 0.16);
  border-radius: 6px;
  background: rgba(50, 230, 120, 0.06);
  color: rgba(245, 248, 250, 0.88);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.import-upload-details summary:hover,
.import-upload-files summary:hover {
  border-color: rgba(50, 230, 120, 0.34);
  background: rgba(50, 230, 120, 0.10);
  box-shadow:
    0 0 0 1px rgba(50, 230, 120, 0.10),
    0 0 18px rgba(50, 230, 120, 0.20);
}

.import-upload-details summary i,
.import-upload-files summary i {
  color: var(--green);
  font-size: 14px;
  transition: transform 160ms ease;
}

.import-upload-details summary span,
.import-upload-files summary span {
  padding-right: 22px;
}

.import-upload-details summary::-webkit-details-marker,
.import-upload-files summary::-webkit-details-marker {
  display: none;
}

.import-upload-details summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.import-upload-details[open] summary::after {
  content: "-";
}

.import-upload-files[open] summary i {
  transform: rotate(45deg);
}

.import-upload-details summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.import-upload-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 32px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(210, 222, 232, 0.09);
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.28);
}

.import-upload-list span {
  overflow: hidden;
  display: flex;
  gap: 7px;
  align-items: center;
  color: rgba(245, 248, 250, 0.88);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-upload-list span small {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #ffd28a;
  background: rgba(245, 180, 80, 0.12);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-upload-list form {
  margin: 0;
}

.import-upload-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(245, 248, 250, 0.76);
  background: transparent;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.import-upload-list button i {
  display: block;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.import-upload-list button:hover {
  border-color: rgba(210, 222, 232, 0.36);
  color: rgba(245, 248, 250, 0.94);
  background: rgba(210, 222, 232, 0.11);
  box-shadow:
    0 0 0 2px rgba(210, 222, 232, 0.10),
    0 0 18px rgba(210, 222, 232, 0.24);
}

.manual-import-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
}

.manual-import-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.manual-import-panel header strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.manual-import-panel header span {
  color: rgba(220, 235, 245, 0.72);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.manual-import-open-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 2px;
}

.manual-import-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
}

.manual-import-modal[hidden] {
  display: none;
}

.manual-import-window {
  width: min(1180px, 96vw);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(220, 236, 245, 0.16);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.98);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
}

.manual-import-window header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.manual-import-window header div {
  display: grid;
  gap: 4px;
}

.manual-import-window header strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.manual-import-window header span {
  color: rgba(220, 235, 245, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.manual-import-window header button {
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.manual-import-form {
  min-height: 0;
  display: grid;
  gap: 12px;
}

.manual-import-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 62vh;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.28);
}

.manual-import-table-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: start;
}

.manual-import-table {
  width: max-content;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.manual-import-table th,
.manual-import-table td {
  border-bottom: 1px solid rgba(220, 236, 245, 0.08);
  border-right: 1px solid rgba(220, 236, 245, 0.06);
  padding: 4px;
}

.manual-import-table th {
  color: rgba(245, 248, 250, 0.82);
  background: rgba(15, 24, 34, 0.92);
  font-size: 10px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

.manual-import-table input {
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-radius: 6px;
  color: #fff;
  background: rgba(10, 15, 21, 0.92);
  font-size: 12px;
  font-weight: 760;
}

.manual-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.manual-import-add-row {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(220, 236, 245, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(76, 129, 198, 0.22);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.manual-import-add-row:hover {
  background: rgba(76, 129, 198, 0.36);
}

.manual-import-frame {
  display: grid;
  gap: 14px;
  padding: 12px;
}

.manual-import-frame header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.manual-import-frame header div {
  display: grid;
  gap: 3px;
}

.manual-import-frame header strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.manual-import-frame header span,
.manual-import-frame header small {
  color: rgba(220, 235, 245, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.manual-import-frame .manual-import-table-shell {
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
}

.manual-import-frame .manual-import-table-wrap {
  overflow: auto;
  border: 1px solid rgba(210, 222, 232, 0.14);
  background: #fff;
}

.manual-import-frame .manual-import-table th,
.manual-import-frame .manual-import-table td {
  padding: 2px;
}

.manual-import-frame .manual-import-table th {
  font-size: 8px;
  line-height: 1.12;
}

.manual-import-frame .manual-import-table input {
  min-height: 28px;
  padding: 3px 4px;
  font-size: 10px;
}

.manual-import-frame .manual-import-add-row {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.manual-import-grid {
  display: grid;
  width: max-content;
  border-top: 1px solid rgba(28, 45, 58, 0.16);
  border-left: 1px solid rgba(28, 45, 58, 0.16);
  background: #fff;
}

.manual-import-grid-row {
  display: grid;
}

.manual-import-grid-cell {
  min-width: 0;
  min-height: 36px;
  border-right: 1px solid rgba(28, 45, 58, 0.16);
  border-bottom: 1px solid rgba(28, 45, 58, 0.16);
  padding: 0;
  background: #fff;
  color: #0f1820;
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

[data-manual-import-body] .manual-import-grid-row:nth-child(even) .manual-import-grid-cell {
  background: #f7fafc;
}

.manual-import-grid-head .manual-import-grid-cell {
  min-height: 36px;
  color: #fff;
  background: #171f2a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.manual-import-grid-cell input {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  color: #0f1820;
  background: transparent;
  font-size: 12px;
  font-weight: 760;
  padding: 8px 10px;
  font-family: inherit;
  outline: none;
  text-overflow: ellipsis;
}

.manual-import-grid-cell.cell-selected {
  color: #0f1820;
  background: rgba(85, 184, 100, 0.20);
  outline: 1px solid rgba(85, 184, 100, 0.36);
  outline-offset: -1px;
}

.manual-import-grid-cell.cell-selected input {
  background: transparent;
}

.manual-import-grid-cell:focus-within {
  background: rgba(85, 184, 100, 0.16);
  outline: 2px solid rgba(85, 184, 100, 0.42);
  outline-offset: -2px;
}

.manual-import-grid-cell.manual-import-select-cell {
  display: none;
  place-items: center;
  padding: 0;
}

.manual-import-actions [data-manual-delete-selected] {
  display: none;
}

.manual-import-grid-cell.manual-import-select-cell input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--green);
}

.manual-import-frame .manual-import-table-wrap {
  border-radius: 4px;
}

.manual-import-table-wrap.is-middle-panning {
  cursor: grabbing;
  user-select: none;
}

.manual-import-table-wrap.is-middle-panning input {
  pointer-events: none;
}

.export-state-panel {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
}

.export-state-list {
  display: grid;
  gap: 7px;
}

.export-state-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(210, 222, 232, 0.08);
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.30);
}

.export-state-list div.ready {
  border-color: rgba(50, 230, 120, 0.28);
  background: rgba(50, 230, 120, 0.08);
}

.export-state-list div.ready em {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--green);
  font-weight: 900;
}

.export-state-list span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.export-state-list em {
  color: rgba(220, 235, 245, 0.70);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.export-state-list em a {
  color: inherit;
  text-decoration: none;
}

.export-state-list em a:hover {
  text-decoration: underline;
}

.export-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.export-action-row form {
  margin: 0;
}

.import-summary-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(9, 16, 24, 0.70);
}

.import-summary-panel header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.import-summary-panel header strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.import-summary-panel header span {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(220, 235, 245, 0.62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.import-summary-title-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.import-summary-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.import-summary-grid:has(.export-loading-summary-row) {
  grid-template-columns: 1fr;
}

.export-loading-summary-row {
  display: grid;
  gap: 5px;
}

.export-loading-summary-label {
  color: rgba(245, 248, 250, 0.72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.export-loading-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}

.import-summary-grid div {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 42px;
  align-content: center;
  padding: 6px 8px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(12, 19, 28, 0.78);
}

.import-summary-grid div.is-warning {
  border-color: rgba(245, 180, 35, 0.72);
  background: rgba(58, 39, 5, 0.78);
  box-shadow: 0 0 0 1px rgba(245, 180, 35, 0.18);
}

.import-summary-badge {
  position: absolute;
  top: 5px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #f5b423;
  color: #1d1402;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  border: 0;
  font-family: inherit;
  overflow: hidden;
  cursor: default;
}

button.import-summary-badge {
  color: transparent;
  padding: 0;
  cursor: pointer;
}

button.import-summary-badge::before {
  content: "!";
  color: #1d1402;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

button.import-summary-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(255, 177, 95, 0.24);
}

.import-summary-grid strong {
  color: rgba(245, 248, 250, 0.96);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.import-summary-grid span {
  color: rgba(220, 235, 245, 0.70);
  font-size: 10px;
  font-weight: 850;
}

.import-summary-grid .export-loading-summary-row,
.import-summary-grid .export-loading-summary-cards {
  min-height: 0;
  align-content: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.import-summary-grid .export-loading-summary-label {
  color: rgba(245, 248, 250, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.import-summary-grid .export-loading-summary-cards > div {
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  background: rgba(12, 19, 28, 0.78);
}

.trailer-export-summary {
  gap: 8px;
  padding: 10px 12px;
}

.trailer-export-summary .import-summary-grid {
  gap: 6px;
}

.trailer-export-summary .export-loading-summary-row {
  grid-template-columns: minmax(82px, 106px) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 0 3px 7px;
  border-left: 3px solid rgba(31, 214, 112, 0.72);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(31, 214, 112, 0.08), rgba(12, 19, 28, 0));
}

.trailer-export-summary .export-loading-summary-row.is-spare {
  border-left-color: rgba(245, 180, 35, 0.78);
  background: linear-gradient(90deg, rgba(245, 180, 35, 0.10), rgba(12, 19, 28, 0));
}

.trailer-export-summary .export-loading-summary-cards {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  gap: 4px;
}

.trailer-export-summary .import-summary-grid .export-loading-summary-cards > div {
  min-width: 0;
  min-height: 34px;
  padding: 4px 6px;
}

.trailer-export-summary .export-loading-summary-cards strong {
  font-size: 14px;
}

.trailer-export-summary .export-loading-summary-cards .import-summary-value {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 14px;
  padding-right: 16px;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value] {
  position: relative;
  cursor: pointer;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail .import-summary-badge {
  pointer-events: none;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value]::before {
  content: attr(data-summary-value);
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 6px;
  color: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value] .import-summary-value {
  color: transparent !important;
}

.trailer-export-summary .export-loading-summary-cards .import-summary-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trailer-export-summary .import-summary-badge {
  top: 4px;
  right: 5px;
  bottom: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 13px;
}

.trailer-export-summary .export-loading-summary-cards span {
  font-size: 9px;
}

.trailer-export-summary .export-loading-summary-row.is-spare .export-loading-summary-label {
  color: #ffd166;
}

.trailer-export-summary .export-loading-summary-row.is-spare .export-loading-summary-label::after {
  content: "NÁHRADY";
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  border: 1px solid rgba(245, 180, 35, 0.35);
  border-radius: 999px;
  color: #ffd166;
  font-size: 8px;
  font-weight: 950;
}

.trailer-export-summary .export-loading-summary-row.is-spare .export-loading-summary-label::after {
  display: block;
  width: max-content;
}

.trailer-export-summary .export-loading-summary-cards > .tone-ok strong,
.trailer-export-summary .export-loading-summary-cards > .tone-ok span {
  color: var(--green);
}

.trailer-export-summary .export-loading-summary-cards > .tone-danger strong,
.trailer-export-summary .export-loading-summary-cards > .tone-danger span {
  color: #ff6b6b;
}

.trailer-export-summary .export-loading-summary-cards > .tone-warning {
  border-color: rgba(245, 180, 35, 0.72);
  background: rgba(58, 39, 5, 0.78);
  box-shadow: 0 0 0 1px rgba(245, 180, 35, 0.18);
}

.trailer-export-summary .export-loading-summary-cards > .tone-warning strong,
.trailer-export-summary .export-loading-summary-cards > .tone-warning span {
  color: #ffd166;
}

.trailer-export-summary .export-loading-summary-cards > .tone-adr {
  border-color: rgba(245, 180, 35, 0.78);
  background: rgba(58, 39, 5, 0.82);
  box-shadow: 0 0 0 1px rgba(245, 180, 35, 0.18);
}

.trailer-export-summary .export-loading-summary-cards > .tone-adr strong,
.trailer-export-summary .export-loading-summary-cards > .tone-adr span {
  color: #ffd166;
}

.container-export-summary .import-summary-grid > .tone-warning {
  border-color: rgba(245, 180, 35, 0.72);
  background: rgba(58, 39, 5, 0.78);
  box-shadow: 0 0 0 1px rgba(245, 180, 35, 0.18);
}

.container-export-summary .import-summary-grid > .tone-warning strong,
.container-export-summary .import-summary-grid > .tone-warning span {
  color: #ffd166;
}

.container-export-summary .import-summary-grid > .tone-danger {
  border-color: rgba(255, 107, 107, 0.72);
  background: rgba(70, 18, 22, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.18);
}

.container-export-summary .import-summary-grid > .tone-danger strong,
.container-export-summary .import-summary-grid > .tone-danger span {
  color: #ffb4b4;
}

.export-adr-detail-source {
  display: none !important;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value]::before {
  content: none;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value] .import-summary-value {
  color: currentColor !important;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value]::before {
  content: none !important;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail[data-summary-value] .import-summary-value {
  color: currentColor !important;
}

.trailer-export-summary .export-loading-summary-cards > .has-detail:focus,
.trailer-export-summary .export-loading-summary-cards > .has-detail:active {
  outline: 0;
  box-shadow: none;
}

.trailer-export-summary .import-summary-warnings textarea {
  width: 100%;
  max-height: none;
  overflow: hidden;
  resize: none;
  user-select: text;
  cursor: text;
}

.import-summary-warnings {
  display: grid;
  gap: 6px;
}

.export-manual-status-alert {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(245, 180, 35, 0.56);
  border-radius: 8px;
  color: #ffd166;
  background: rgba(58, 39, 5, 0.78);
  font-family: inherit;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(245, 180, 35, 0.16);
}

.export-manual-status-alert i {
  color: #ffd166;
  font-size: 16px;
}

.export-manual-status-alert strong {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #1b1202;
  background: #ffd166;
}

.summary-warning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 10px;
}

.summary-warning-alert {
  border-color: rgba(255, 122, 64, 0.78);
  color: #ffe2b8;
  background:
    linear-gradient(135deg, rgba(196, 56, 34, 0.42), rgba(245, 180, 35, 0.16)),
    rgba(72, 24, 10, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 122, 64, 0.18), 0 12px 30px rgba(196, 56, 34, 0.20);
}

.summary-warning-alert i {
  color: #ffb15f;
}

.summary-warning-alert strong {
  color: #240f04;
  background: #ffb15f;
}

.summary-warning-modal > section {
  border-color: rgba(255, 122, 64, 0.42);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 122, 64, 0.12);
  max-height: min(720px, 86vh);
  display: flex;
  flex-direction: column;
}

.summary-warning-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.summary-warning-list article {
  border-color: rgba(255, 122, 64, 0.30);
  background:
    linear-gradient(135deg, rgba(255, 122, 64, 0.11), rgba(245, 180, 35, 0.055)),
    rgba(5, 10, 16, 0.26);
}

.summary-warning-list {
  overflow-y: auto;
  padding-right: 4px;
}

.summary-warning-list article strong {
  color: #ffe2b8;
}

.summary-warning-list article p + p {
  padding-top: 5px;
  border-top: 1px solid rgba(245, 180, 80, 0.12);
}

.export-manual-status-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
}

.export-manual-status-modal[hidden] {
  display: none;
}

.export-manual-status-modal > section {
  display: grid;
  gap: 12px;
  width: min(720px, 96vw);
  max-height: 84vh;
  padding: 14px;
  border: 1px solid rgba(245, 180, 35, 0.30);
  border-radius: 10px;
  background: #0c141d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.export-manual-status-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.export-manual-status-modal header strong {
  color: #ffd166;
  font-size: 14px;
  font-weight: 950;
}

.export-manual-status-modal header button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.export-manual-status-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.export-manual-status-list article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(245, 180, 35, 0.24);
  border-radius: 8px;
  background: rgba(245, 180, 35, 0.08);
}

.export-manual-status-list article div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.export-manual-status-list article strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.export-manual-status-list article span,
.export-manual-status-list article small {
  color: rgba(245, 248, 250, 0.70);
  font-size: 11px;
  font-weight: 800;
}

.export-manual-status-list article p {
  margin: 0;
  color: rgba(245, 248, 250, 0.88);
  font-size: 12px;
  font-weight: 850;
}

.export-manual-status-list article b {
  color: #ffd166;
}

.export-manual-status-list article em {
  color: rgba(245, 248, 250, 0.82);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.import-summary-warnings > div {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 180, 80, 0.28);
  border-radius: 8px;
  background: rgba(245, 180, 80, 0.10);
}

.import-summary-warnings strong {
  color: #ffd28a;
  font-size: 12px;
  font-weight: 950;
}

.import-summary-warning-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.import-summary-warning-header strong {
  flex-shrink: 0;
}

.import-summary-warnings textarea {
  width: 100%;
  min-height: 0;
  padding: 6px 8px;
  border: 1px solid rgba(245, 180, 80, 0.20);
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.84);
  background: rgba(5, 10, 16, 0.26);
  font-family: inherit;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.3;
  overflow: hidden;
  resize: none;
}

.export-warning-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px;
}

.export-warning-chips span {
  display: grid;
  gap: 2px;
  min-height: 0;
  padding: 5px 8px;
  border: 1px solid rgba(245, 180, 80, 0.34);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.22);
}

.export-warning-chips strong {
  color: #ffd28a;
  font-size: 11px;
  font-weight: 950;
}

.export-warning-chips small {
  color: rgba(245, 248, 250, 0.78);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.import-summary-request-form {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin: 0;
}

.import-summary-request-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  line-height: 1;
  white-space: nowrap;
}

.export-manual-status-modal header .import-summary-request-form button,
.export-manual-status-modal header .import-summary-request-button,
.summary-warning-modal .import-summary-request-form button,
.summary-warning-modal .import-summary-request-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 104px;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  gap: 7px;
}

.import-summary-request-form button i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.export-manual-status-modal header .import-summary-request-form button i,
.export-manual-status-modal header .import-summary-request-button i,
.summary-warning-modal .import-summary-request-form button i,
.summary-warning-modal .import-summary-request-button i {
  flex: 0 0 auto;
}

.import-summary-request-form button span {
  display: inline;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.export-manual-status-modal header .import-summary-request-form button span,
.export-manual-status-modal header .import-summary-request-button span,
.summary-warning-modal .import-summary-request-form button span,
.summary-warning-modal .import-summary-request-button span {
  flex: 0 0 auto;
}

.summary-warning-request-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 10px;
}

.import-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 12, 0.78);
  backdrop-filter: blur(8px);
}

.import-preview-modal[hidden] {
  display: none;
}

.import-preview-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1500px, 96vw);
  height: min(900px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  background: #050a10;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.import-preview-window > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.12);
  background: rgba(12, 20, 29, 0.96);
}

.import-preview-window > header strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.import-preview-window > header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.82);
  background: rgba(5, 10, 16, 0.40);
  cursor: pointer;
}

.import-preview-window > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050a10;
}

.export-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.distribution-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.distribution-card {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, currentColor 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(21, 34, 45, 0.94), rgba(8, 15, 23, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.distribution-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.distribution-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.distribution-card-head p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(244, 247, 250, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.distribution-card-head i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 15%, transparent);
  color: currentColor;
  font-size: 30px;
}

.distribution-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.distribution-stats div,
.distribution-output-preview div,
.uploaded-file-list span {
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.distribution-stats div {
  padding: 11px 12px;
}

.distribution-stats strong,
.distribution-stats span {
  display: block;
}

.distribution-stats strong {
  color: currentColor;
  font-size: 26px;
  line-height: 1;
}

.distribution-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.distribution-output-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.distribution-output-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.distribution-output-actions form {
  margin: 0;
}

.distribution-output-actions a,
.distribution-output-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(95, 214, 120, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(95, 214, 120, 0.08);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.distribution-output-actions button {
  font-family: inherit;
}

.distribution-output-actions a:hover,
.distribution-output-actions button:hover {
  border-color: rgba(95, 214, 120, 0.48);
  background: rgba(95, 214, 120, 0.14);
}

.distribution-output-preview div {
  padding: 14px;
}

.distribution-output-preview span,
.distribution-output-preview strong {
  display: block;
}

.distribution-output-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.distribution-output-preview strong {
  margin-top: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.distribution-warning {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 199, 94, 0.26);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 231, 186, 0.92);
  background: rgba(255, 199, 94, 0.08);
  font-size: 13px;
  font-weight: 750;
}

.distribution-preview-table-wrap {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.distribution-print-sheet {
  display: none;
}

.distribution-print-source {
  display: none;
}

.distribution-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(2, 7, 12, 0.72);
  backdrop-filter: blur(12px);
}

.distribution-preview-modal.is-open {
  display: flex;
}

.distribution-preview-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 38px));
  max-height: min(820px, calc(100vh - 42px));
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(9, 17, 26, 0.98);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.56);
}

.distribution-preview-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.distribution-preview-dialog > header span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.distribution-preview-dialog > header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.distribution-preview-dialog > header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.distribution-preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.distribution-preview-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.distribution-preview-meta span,
.distribution-preview-meta strong {
  display: block;
}

.distribution-preview-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.distribution-preview-meta strong {
  margin-top: 5px;
  font-size: 20px;
}

.distribution-preview-dialog .distribution-preview-table-wrap {
  min-height: 0;
  margin: 14px 18px 18px;
}

.distribution-archive-dialog {
  max-height: min(760px, calc(100vh - 42px));
}

.distribution-archive-table-wrap {
  min-height: 0;
  margin: 14px 18px 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.distribution-archive-table {
  width: 100%;
  border-collapse: collapse;
}

.distribution-archive-table th,
.distribution-archive-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.distribution-archive-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.distribution-archive-table td {
  color: var(--text);
  font-size: 13px;
}

.distribution-archive-table button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.distribution-preview-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #000;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.distribution-preview-table th,
.distribution-preview-table td {
  border: 1px solid #d1d5df;
  padding: 1px 3px;
  text-align: left;
  vertical-align: middle;
  color: #000;
  background: #fff;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}

.distribution-preview-table th {
  background: #92d050;
}

.distribution-col-date {
  width: 11%;
}

.distribution-col-ilu {
  width: 20%;
}

.distribution-col-type {
  width: 7%;
}

.distribution-col-sector {
  width: 7%;
}

.distribution-col-slot {
  width: 5.5%;
}

.distribution-col-destination {
  width: 25.5%;
}

.distribution-col-time {
  width: 13%;
}

.distribution-preview-section td {
  border-color: #d1d5df;
  font-size: 13px;
}

.distribution-preview-day td {
  border-color: #d1d5df;
  font-size: 13px;
  font-weight: 700;
}

.distribution-preview-spacer td {
  height: 14px;
  padding: 0;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.download-link:hover {
  color: #fff;
}

.distribution-schedule {
  display: grid;
  gap: 9px;
}

.distribution-schedule-title {
  margin-top: 4px;
  padding: 8px 10px;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.38);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.distribution-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.distribution-schedule-row span,
.distribution-schedule-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.distribution-schedule-row strong {
  color: var(--green);
  font-size: 18px;
}

.uploaded-file-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.uploaded-file-list span {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-page {
  display: grid;
  gap: 18px;
}

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

.attendance-upload {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(50, 230, 120, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(21, 34, 45, 0.94), rgba(8, 15, 23, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.attendance-upload > i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(50, 230, 120, 0.45);
  border-radius: 50%;
  background: rgba(50, 230, 120, 0.14);
  color: var(--green);
  font-size: 27px;
}

.attendance-upload strong,
.attendance-upload span {
  display: block;
}

.attendance-upload strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.attendance-upload span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.attendance-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.attendance-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.employee-panel .panel-header span {
  color: var(--green);
  font-weight: 950;
}

.employee-list {
  display: grid;
  gap: 7px;
  max-height: 235px;
  overflow: auto;
}

.employee-list button {
  justify-content: flex-start;
  min-height: 36px;
  color: rgba(244, 247, 250, 0.88);
  background: rgba(5, 10, 16, 0.34);
}

.attendance-main {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

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

.today-shift-grid div:not(.empty-state) {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.today-shift-grid div.manual {
  border-color: rgba(50, 230, 120, 0.36);
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 230, 120, 0.12), transparent 34%),
    rgba(5, 10, 16, 0.34);
}

.today-shift-grid strong,
.today-shift-grid span,
.today-shift-grid small {
  display: block;
}

.today-shift-grid strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.today-shift-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.today-shift-grid small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--green);
  color: #061018;
  font-size: 11px;
  font-weight: 950;
}

.mini-delete-form {
  position: static;
  margin: 0;
}

.mini-delete-form button {
  width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 6px;
  font-size: 12px;
}

.attendance-edit-panel {
  min-width: 0;
}

.attendance-edit-form {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1.2fr) 160px 145px 105px 105px minmax(160px, 1fr) auto;
  gap: 10px;
}

.attendance-edit-form input,
.attendance-edit-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.55);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 750;
}

.attendance-edit-form button {
  min-height: 40px;
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.18);
}

.vacation-edit-form {
  grid-template-columns: minmax(180px, 1.2fr) 170px 145px 145px minmax(180px, 1fr) auto;
}

.manual-attendance-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.manual-attendance-list form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.28);
}

.manual-attendance-list strong {
  font-size: 13px;
  font-weight: 950;
}

.manual-attendance-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-attendance-list button {
  width: 28px;
  min-height: 28px;
  padding: 0;
}

.attendance-schedule-panel {
  min-width: 0;
}

.attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attendance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.attendance-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.shift-r,
.shift-r8,
.shift-r12 { background: #eef4f8; }
.shift-o,
.shift-o8,
.shift-o12 { background: var(--blue); }
.shift-n,
.shift-n12 { background: #8a6de9; }
.shift-12 { background: var(--green); }
.shift-x { background: #78848e; }
.shift-vacation { background: var(--purple); }
.day-weekend { background: rgba(240, 196, 60, 0.55); }
.day-holiday { background: rgba(224, 90, 80, 0.55); }

.attendance-table-wrap {
  overflow: auto;
  max-height: 620px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
}

.attendance-table {
  width: max(1180px, 100%);
  border-collapse: separate;
  border-spacing: 0;
  color: rgba(244, 247, 250, 0.92);
}

.attendance-table th,
.attendance-table td {
  min-width: 34px;
  height: 36px;
  border-right: 1px solid rgba(210, 222, 232, 0.08);
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
  background: rgba(5, 10, 16, 0.28);
  text-align: center;
}

.attendance-table th:first-child,
.attendance-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 180px;
  padding: 0 12px;
  background: rgba(13, 22, 31, 0.98);
  text-align: left;
}

.attendance-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(18, 30, 41, 0.98);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.attendance-table thead th:first-child {
  z-index: 4;
}

.attendance-table .attendance-category-row td,
.attendance-table .attendance-category-row td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 180px;
  height: 34px;
  padding: 0 12px;
  border-color: rgba(210, 222, 232, 0.14);
  background: rgba(8, 16, 24, 0.98);
  color: currentColor;
  text-align: left;
}

.attendance-category-row td strong,
.attendance-category-row td span {
  display: inline-flex;
  align-items: center;
}

.attendance-category-row td strong {
  margin-right: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.attendance-category-row td span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 900;
}

.attendance-table th span,
.attendance-table th small,
.attendance-table td strong,
.attendance-table td span {
  display: block;
}

.attendance-table th small {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
}

.attendance-table td strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.attendance-table td span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.attendance-table .weekend {
  background: rgba(240, 196, 60, 0.12);
}

.attendance-table .holiday {
  background: rgba(224, 90, 80, 0.16);
}

.attendance-table .today {
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.45);
}

.attendance-table .outside {
  color: rgba(160, 176, 188, 0.28);
  background: rgba(5, 10, 16, 0.16);
}

.shift-code {
  width: 30px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
}

.shift-code.shift-r,
.shift-code.shift-r8,
.shift-code.shift-r12 {
  background: #eef4f8;
  color: #061018;
}

.shift-code.shift-o,
.shift-code.shift-o8,
.shift-code.shift-o12 {
  background: var(--blue);
  color: #061018;
}

.shift-code.shift-n,
.shift-code.shift-n12 {
  background: #8a6de9;
  color: #fff;
}

.shift-code.shift-12 {
  background: var(--green);
  color: #061018;
}

.shift-code.shift-vl,
.shift-code.shift-custom {
  background: var(--purple);
  color: #fff;
}

.shift-code.shift-vacation {
  background: var(--purple);
  color: #fff;
}

.shift-code.manual {
  box-shadow: 0 0 0 2px rgba(50, 230, 120, 0.45);
}

.shift-code.shift-x {
  background: #78848e;
  color: #fff;
}

.hours-cell {
  color: var(--green);
  font-weight: 950;
}

.vacation-panel .attendance-table-wrap {
  display: grid;
  gap: 12px;
  max-height: 680px;
  padding-bottom: 12px;
}

.vacation-group-title {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 100%;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
  background: rgba(18, 30, 41, 0.96);
}

.vacation-group-title strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.vacation-group-title span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.vacation-table {
  margin-bottom: 8px;
}

.vacation-cell-form {
  margin: 0;
}

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

.attendance-shortcut-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 15px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(50, 230, 120, 0.10), transparent 36%),
    linear-gradient(135deg, rgba(17, 28, 38, 0.92), rgba(8, 14, 21, 0.92));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.attendance-shortcut-card:hover {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.32);
  transform: translateY(-1px);
}

.attendance-shortcut-card > i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(50, 230, 120, 0.30);
  border-radius: 9px;
  background: rgba(50, 230, 120, 0.10);
  color: var(--green);
  font-size: 24px;
}

.attendance-shortcut-card strong,
.attendance-shortcut-card span {
  display: block;
}

.attendance-shortcut-card strong {
  font-size: 15px;
  font-weight: 950;
}

.attendance-shortcut-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.attendance-shortcut-card em {
  padding: 7px 10px;
  border: 1px solid rgba(50, 230, 120, 0.24);
  border-radius: 999px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.10);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.attendance-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(3, 7, 11, 0.72);
  backdrop-filter: blur(10px);
}

.attendance-modal-window {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  width: min(1380px, calc(100vw - 52px));
  max-height: calc(100vh - 52px);
  min-height: min(780px, calc(100vh - 52px));
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 82% 0%, rgba(37, 111, 176, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(8, 14, 21, 0.98), rgba(11, 20, 28, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.attendance-vacation-modal {
  width: min(1180px, calc(100vw - 52px));
  min-height: min(680px, calc(100vh - 52px));
}

.attendance-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 9px;
  background: rgba(11, 19, 27, 0.96);
}

.attendance-modal-header strong,
.attendance-modal-header span {
  display: block;
}

.attendance-modal-header strong {
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
}

.attendance-modal-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.attendance-modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.attendance-modal-actions > span {
  min-width: 145px;
  margin: 0;
  color: rgba(244, 247, 250, 0.92);
  text-align: center;
  font-size: 13px;
  font-weight: 950;
}

.attendance-modal-actions a,
.attendance-modal-actions button {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.attendance-modal-actions button:disabled {
  opacity: 0.42;
}

.attendance-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(8, 14, 21, 0.82);
  color: rgba(238, 244, 248, 0.90);
  font-size: 12px;
  font-weight: 850;
}

.attendance-summary-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.attendance-summary-bar i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.attendance-modal-warning {
  padding: 10px 12px;
  border: 1px solid rgba(224, 90, 80, 0.32);
  border-radius: 8px;
  color: #ffd2cc;
  background: rgba(224, 90, 80, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.attendance-modal-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.attendance-modal-side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 9px;
  background: rgba(11, 19, 27, 0.96);
}

.attendance-modal-side > strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.attendance-modal-side > span,
.attendance-day-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.55);
  color: rgba(244, 247, 250, 0.88);
  font-size: 12px;
  font-weight: 850;
}

.attendance-modal-side b {
  color: var(--green);
}

.attendance-day-detail {
  display: grid;
  margin-top: 6px;
}

.attendance-day-detail small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.attendance-modal-table {
  max-height: none;
  min-height: 0;
  background: rgba(5, 10, 16, 0.26);
}

.attendance-modern-table th,
.attendance-modern-table td {
  height: 34px;
}

.attendance-modern-table tbody tr:hover td {
  background: rgba(50, 230, 120, 0.08);
}

.vacation-tabs {
  display: flex;
  gap: 8px;
}

.vacation-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px 8px 0 0;
  color: rgba(220, 235, 245, 0.82);
  background: rgba(18, 28, 38, 0.86);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.vacation-tabs a.active {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.40);
  background: rgba(36, 115, 70, 0.92);
}

.vacation-tabs span {
  color: inherit;
  opacity: 0.76;
}

.vacation-planner-board {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.vacation-planner-save-form {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.vacation-planner-toolbar,
.vacation-planner-month,
.vacation-planner-tabs,
.vacation-planner-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.vacation-planner-toolbar {
  justify-content: space-between;
}

.vacation-planner-tabs a,
.vacation-planner-month a,
.vacation-planner-month label,
.vacation-planner-summary div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 250, 0.82);
  text-decoration: none;
  font-size: 11px;
  font-weight: 950;
}

.vacation-planner-tabs a {
  padding: 0 12px;
  text-transform: uppercase;
}

.vacation-planner-tabs a.active {
  color: #04130a;
  background: var(--green);
  border-color: rgba(50, 230, 120, 0.45);
}

.vacation-planner-month a {
  width: 38px;
}

.vacation-planner-month form {
  margin: 0;
}

.vacation-planner-month label {
  padding: 0 10px;
}

.vacation-planner-month label span,
.vacation-planner-summary span,
.vacation-planner-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.vacation-planner-month input {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  color-scheme: dark;
}

.vacation-planner-month strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.vacation-planner-summary div {
  min-width: 128px;
  justify-content: space-between;
  padding: 0 12px;
}

.vacation-planner-summary strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.vacation-planner-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) 140px 140px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.vacation-planner-form label {
  display: grid;
  gap: 5px;
}

.vacation-planner-form input,
.vacation-planner-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  color-scheme: dark;
}

.vacation-planner-form button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(50, 230, 120, 0.32);
  border-radius: 8px;
  background: rgba(50, 230, 120, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.vacation-planner-form .vacation-save-button {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: rgba(74, 222, 128, 0.72);
  color: #04130a;
}

.vacation-range-status {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vacation-planner-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.vacation-planner-table-head > strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.vacation-planner-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 70vh;
}

.vacation-planner-table {
  table-layout: fixed;
  width: max-content;
  min-width: 1040px;
}

.vacation-planner-table th,
.vacation-planner-table td {
  width: 30px;
  min-width: 30px;
  height: 34px;
  padding: 0;
}

.vacation-planner-table th:first-child,
.vacation-planner-table td:first-child {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.vacation-planner-table th:last-child,
.vacation-planner-table td:last-child {
  width: 54px;
  min-width: 54px;
}

.vacation-planner-table td {
  position: relative;
}

.vacation-cell-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 5px;
  cursor: pointer;
}

.vacation-cell-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vacation-planner-table .vacation-cell-toggle span {
  display: none;
}

.vacation-planner-table .vacation-cell-toggle.is-active {
  background: transparent;
  box-shadow: none;
}

.vacation-planner-table .vacation-cell-toggle.is-active span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.vacation-cell-toggle:focus-within {
  outline: 1px solid rgba(50, 230, 120, 0.65);
  outline-offset: -2px;
}

@media (max-width: 900px) {
  .vacation-planner-form {
    grid-template-columns: 1fr 1fr;
  }

  .vacation-planner-form .wide,
  .vacation-planner-form button {
    grid-column: 1 / -1;
  }

}

@media (max-width: 760px) {
  .vacation-planner-board {
    gap: 10px;
  }

  .vacation-planner-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .vacation-planner-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .vacation-planner-tabs a {
    min-width: 0;
    min-height: 36px;
    padding: 0 7px;
    gap: 5px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }

  .vacation-planner-month {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    width: 100%;
    gap: 6px;
  }

  .vacation-planner-month form,
  .vacation-planner-month label,
  .vacation-planner-month input {
    width: 100%;
    min-width: 0;
  }

  .vacation-planner-month strong {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .vacation-planner-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .vacation-planner-summary div {
    min-width: 0;
    min-height: 44px;
    display: grid;
    gap: 1px;
    padding: 6px 8px;
  }

  .vacation-planner-summary span {
    font-size: 9px;
    line-height: 1.1;
  }

  .vacation-planner-summary strong {
    font-size: 16px;
    line-height: 1;
  }

  .vacation-planner-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }

  .vacation-planner-form label,
  .vacation-planner-form .wide,
  .vacation-range-status {
    grid-column: 1 / -1;
  }

  .vacation-planner-form label:nth-of-type(3),
  .vacation-planner-form label:nth-of-type(4) {
    grid-column: auto;
  }

  .vacation-planner-form button {
    grid-column: auto;
    min-width: 0;
    min-height: 40px;
    padding: 7px 8px;
    overflow: visible;
    font-size: 10px;
    line-height: 1.12;
    white-space: normal;
  }

  .vacation-planner-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .vacation-planner-table-head .table-zoom-controls {
    justify-self: end;
  }

  .vacation-planner-table-wrap {
    max-height: 62vh;
  }
}

body.theme-light::selection,
body.theme-light ::selection {
  color: #ffffff;
  background: #0078d4;
}

body.theme-light::-moz-selection,
body.theme-light ::-moz-selection {
  color: #ffffff;
  background: #0078d4;
}

/* Mobile application menu replaces the horizontal navigation strip. */
.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-nav-head {
  display: none;
}

@media (max-width: 760px) {
  body:not(.login-page) .sidebar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: visible;
  }

  body:not(.login-page) .mobile-nav-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 94px;
    height: 38px;
    margin-right: 10px;
    padding: 0 9px;
    border: 1px solid rgba(210, 222, 232, 0.18);
    border-radius: 8px;
    color: #edf3f7;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 850;
  }

  body:not(.login-page) .mobile-nav-toggle > i:first-child {
    font-size: 18px;
  }

  body:not(.login-page) .mobile-nav-toggle > i:last-child {
    margin-left: auto;
    font-size: 14px;
    transition: transform 150ms ease;
  }

  body:not(.login-page).mobile-nav-open .mobile-nav-toggle > i:last-child {
    transform: rotate(180deg);
  }

  body:not(.login-page) .mobile-nav-backdrop {
    position: fixed;
    inset: 58px 0 0;
    z-index: 1980;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(3, 8, 13, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
    backdrop-filter: blur(3px);
  }

  body:not(.login-page).mobile-nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.login-page) .nav-list {
    position: fixed;
    top: 68px;
    right: 10px;
    left: 10px;
    z-index: 2000;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: calc(100svh - 82px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(210, 222, 232, 0.20);
    border-radius: 12px;
    background: #111b24;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    overscroll-behavior: contain;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 140ms ease, transform 160ms ease;
  }

  body:not(.login-page).mobile-nav-open .nav-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body:not(.login-page) .mobile-nav-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 0 2px 8px 5px;
    border-bottom: 1px solid rgba(210, 222, 232, 0.14);
  }

  body:not(.login-page) .mobile-nav-head > span {
    display: grid;
    gap: 1px;
  }

  body:not(.login-page) .mobile-nav-head small {
    color: #91a2ae;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
  }

  body:not(.login-page) .mobile-nav-head strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
  }

  body:not(.login-page) .mobile-nav-head button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(210, 222, 232, 0.18);
    border-radius: 50%;
    color: #e9f0f4;
    background: rgba(255, 255, 255, 0.06);
  }

  body:not(.login-page) .mobile-nav-head button i {
    font-size: 18px;
  }

  body:not(.login-page) .nav-list .nav-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 54px;
    padding: 7px 9px;
    border: 1px solid rgba(210, 222, 232, 0.13);
    border-radius: 9px;
    color: #dce5eb;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    font-size: 11px;
    text-align: left;
  }

  body:not(.login-page) .nav-list .nav-link .nav-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(210, 222, 232, 0.15);
    border-radius: 8px;
    color: #b9c7d0;
    background: rgba(255, 255, 255, 0.05);
    font-size: 17px;
  }

  body:not(.login-page) .nav-list .nav-link.active {
    border-color: rgba(50, 190, 104, 0.58);
    color: #ffffff;
    background: rgba(31, 132, 72, 0.22);
    box-shadow: inset 3px 0 0 #32be68;
  }

  body:not(.login-page) .nav-list .nav-link.active .nav-icon {
    border-color: rgba(50, 190, 104, 0.54);
    color: #56d487;
    background: rgba(31, 132, 72, 0.18);
  }

  body:not(.login-page).mobile-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.theme-light:not(.login-page) .mobile-nav-toggle {
    border-color: #b8bec4;
    color: #202020;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  }

  body.theme-light:not(.login-page) .mobile-nav-backdrop {
    background: rgba(50, 55, 60, 0.28);
  }

  body.theme-light:not(.login-page) .nav-list {
    border-color: #b8bec4;
    background: #f7f7f7;
    box-shadow: 0 18px 46px rgba(35, 45, 52, 0.24);
  }

  body.theme-light:not(.login-page) .mobile-nav-head {
    border-bottom-color: #c7ccd1;
  }

  body.theme-light:not(.login-page) .mobile-nav-head small {
    color: #657078;
  }

  body.theme-light:not(.login-page) .mobile-nav-head strong {
    color: #202020;
  }

  body.theme-light:not(.login-page) .mobile-nav-head button {
    border-color: #b8bec4;
    color: #303030;
    background: #ffffff;
  }

  body.theme-light:not(.login-page) .nav-list .nav-link {
    border-color: #c7ccd1;
    color: #303030;
    background: #ffffff;
  }

  body.theme-light:not(.login-page) .nav-list .nav-link .nav-icon {
    border-color: #c7ccd1;
    color: #4f5e67;
    background: #f2f2f2;
  }

  body.theme-light:not(.login-page) .nav-list .nav-link:hover {
    border-color: #8eb5d1;
    color: #202020;
    background: #eef6fb;
  }

  body.theme-light:not(.login-page) .nav-list .nav-link.active {
    border-color: #70a788;
    color: #123822;
    background: #e2f1e8;
    box-shadow: inset 3px 0 0 #16834a;
  }

  body.theme-light:not(.login-page) .nav-list .nav-link.active .nav-icon {
    border-color: #70a788;
    color: #11683b;
    background: #f4fbf7;
  }
}

.vacation-modal-table {
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 8px;
}

.attendance-vacation-modal {
  grid-template-columns: minmax(0, 1fr);
}

.vacation-modal-table .vacation-table {
  table-layout: fixed;
  width: max-content;
  min-width: 1040px;
}

.vacation-modal-table .vacation-table th,
.vacation-modal-table .vacation-table td {
  min-width: 0;
  width: 27px;
  height: 32px;
  padding: 0;
}

.vacation-modal-table .vacation-table th:first-child,
.vacation-modal-table .vacation-table td:first-child {
  width: 164px;
  min-width: 164px;
  max-width: 164px;
  padding: 0 10px;
}

.vacation-modal-table .vacation-table th:last-child,
.vacation-modal-table .vacation-table td:last-child {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
}

.vacation-modal-table .vacation-table td:first-child strong,
.vacation-modal-table .vacation-table td:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vacation-modal-table .vacation-table tr.empty-row td {
  color: transparent;
  background: rgba(5, 10, 16, 0.18);
}

.vacation-modal-table .vacation-table tr.empty-row td:first-child {
  background: rgba(13, 22, 31, 0.92);
}

.vacation-modal-table .vacation-table .today {
  box-shadow: none;
}

.vacation-modal-table .shift-code {
  width: 22px;
  min-height: 22px;
  border-radius: 5px;
  font-size: 11px;
}

.dochazka-top-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 0%, rgba(50, 230, 120, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(15, 25, 35, 0.96), rgba(6, 12, 19, 0.96));
  box-shadow: var(--shadow);
}

.dochazka-title-block strong,
.dochazka-title-block span,
.dochazka-panel header strong,
.dochazka-panel header span {
  display: block;
}

.dochazka-title-block strong {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.dochazka-title-block span,
.dochazka-panel header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dochazka-top-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1.05fr) minmax(160px, 1fr) minmax(150px, 1fr);
  gap: 8px;
  align-items: stretch;
}

.dochazka-action-upload.attendance-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 7px;
  align-items: stretch;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dochazka-action-upload label,
.dochazka-top-button,
.dochazka-date-wrap,
.dochazka-action-upload button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(18, 28, 38, 0.92);
  color: rgba(244, 248, 250, 0.94);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.dochazka-action-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dochazka-action-upload button {
  width: 40px;
  padding: 0;
  color: var(--green);
}

.dochazka-date-wrap {
  position: relative;
  justify-content: space-between;
  padding: 0 8px;
}

.dochazka-date-wrap strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.dochazka-date-picker-trigger {
  width: auto;
  flex: 1;
  gap: 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.dochazka-date-picker-trigger i {
  color: var(--green);
  font-size: 16px;
}

.dochazka-date-picker {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  min-height: 30px;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.dochazka-date-wrap a,
.dochazka-date-wrap button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: 7px;
  text-decoration: none;
}

.dochazka-date-wrap a {
  z-index: 4;
}

.dochazka-date-wrap .dochazka-date-picker-trigger {
  width: auto;
  min-width: 112px;
  flex: 1;
  background: transparent;
  color: #fff;
}

.dochazka-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dochazka-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.dochazka-left-col,
.dochazka-right-col {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dochazka-panel {
  min-width: 0;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(50, 230, 120, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(15, 25, 35, 0.94), rgba(7, 13, 20, 0.94));
  box-shadow: var(--shadow);
}

.dochazka-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
}

.dochazka-panel header strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.dochazka-panel header em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.dochazka-assignment-form.attendance-edit-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 14px 14px;
}

.dochazka-employee-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dochazka-employee-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.dochazka-employee-wrap h3 {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.dochazka-employee-wrap.tone-blue h3 { color: var(--blue); }
.dochazka-employee-wrap.tone-amber h3 { color: var(--amber); }

.dochazka-employee-wrap .employee-list {
  max-height: 136px;
  overflow: auto;
}

.dochazka-employee-wrap .employee-list label {
  display: block;
  cursor: pointer;
}

.dochazka-employee-wrap .employee-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.dochazka-employee-wrap .employee-list span {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 248, 250, 0.88);
  font-size: 12px;
  font-weight: 850;
}

.dochazka-employee-wrap .employee-list input:checked + span {
  border-color: rgba(50, 230, 120, 0.48);
  background: rgba(50, 230, 120, 0.14);
  color: #fff;
}

.dochazka-shift-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dochazka-shift-buttons label {
  cursor: pointer;
}

.dochazka-shift-buttons input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.dochazka-shift-buttons span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(18, 28, 38, 0.92);
  color: rgba(244, 248, 250, 0.90);
  font-size: 12px;
  font-weight: 950;
}

.dochazka-shift-buttons input:checked + span {
  border-color: rgba(50, 230, 120, 0.56);
  background: rgba(50, 230, 120, 0.16);
  color: var(--green);
}

.dochazka-custom-times input,
.dochazka-vacation-quick input,
.dochazka-vacation-quick select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.50);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.dochazka-custom-times input[type="date"] {
  font-weight: 850;
}

.dochazka-custom-times button,
.dochazka-vacation-quick button {
  min-height: 40px;
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.16);
  color: #fff;
}

.dochazka-quick-note {
  margin: -2px 0 0;
  color: rgba(220, 235, 245, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.dochazka-assignment-form.is-editing {
  animation: assignmentPulse 1.1s ease;
}

@keyframes assignmentPulse {
  0% { box-shadow: 0 0 0 0 rgba(50, 230, 120, 0); }
  35% { box-shadow: 0 0 0 3px rgba(50, 230, 120, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(50, 230, 120, 0); }
}

.attendance-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(2, 7, 12, 0.64);
  backdrop-filter: blur(12px);
}

.attendance-edit-modal.is-open {
  display: grid;
}

.attendance-edit-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 0%, rgba(50, 230, 120, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(15, 25, 35, 0.98), rgba(7, 13, 20, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.attendance-edit-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.attendance-edit-dialog > header strong,
.attendance-edit-dialog > header span {
  display: block;
}

.attendance-edit-dialog > header strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.attendance-edit-dialog > header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.attendance-edit-dialog > header button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.attendance-edit-dialog-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}

.attendance-edit-dialog-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.attendance-edit-dialog-form label.wide,
.attendance-edit-dialog-actions {
  grid-column: 1 / -1;
}

.attendance-edit-dialog-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.attendance-edit-dialog-form input,
.attendance-edit-dialog-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

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

.attendance-edit-dialog-actions button {
  min-height: 38px;
}

.attendance-edit-dialog-actions button[type="submit"] {
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.16);
  color: #fff;
}

.dochazka-assigned-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dochazka-assigned-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.dochazka-assigned-list > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.38);
}

.dochazka-assigned-list > div.manual {
  border-color: rgba(50, 230, 120, 0.34);
}

.dochazka-assigned-list strong,
.dochazka-assigned-list span {
  display: block;
}

.dochazka-assigned-list strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.dochazka-assigned-list span {
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.dochazka-assigned-list b {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.attendance-row-edit,
.mini-delete-form button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 245, 250, 0.88);
  font-size: 14px;
}

.attendance-row-edit:hover,
.mini-delete-form button:hover {
  border-color: rgba(50, 230, 120, 0.38);
  color: #fff;
  background: rgba(50, 230, 120, 0.12);
}

.dochazka-assigned-list p {
  margin: 0;
  padding: 12px;
  color: rgba(220, 235, 245, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.dochazka-summary-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.dochazka-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.dochazka-summary-list span {
  color: rgba(230, 238, 244, 0.82);
  font-size: 12px;
  font-weight: 850;
}

.dochazka-summary-list strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.dochazka-summary-list .tone-blue strong { color: var(--blue); }
.dochazka-summary-list .tone-amber strong { color: var(--amber); }
.dochazka-summary-list .tone-purple strong { color: var(--purple); }
.dochazka-summary-list .tone-muted strong { color: var(--muted); }

.dochazka-day-confirm {
  display: grid;
  margin: 0 14px 14px;
}

.dochazka-day-confirm button {
  justify-content: center;
  min-height: 38px;
  border-color: rgba(50, 230, 120, 0.42);
  background: rgba(50, 230, 120, 0.16);
  color: #fff;
}

.dochazka-day-confirm.confirmed {
  border-color: rgba(50, 230, 120, 0.36);
}

.dochazka-day-confirm.confirmed button {
  background: rgba(50, 230, 120, 0.24);
}

.dochazka-vacation-quick .vacation-edit-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
}

.train-plan-page {
  --muted: rgba(218, 229, 238, 0.68);
  display: grid;
  gap: 12px;
  min-width: 0;
}

.train-plan-hero,
.train-plan-board,
.train-detail-panel,
.train-risks-panel,
.train-plan-form-panel,
.train-plan-list-drawer {
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(50, 230, 120, 0.07), transparent 36%),
    linear-gradient(135deg, rgba(18, 28, 39, 0.92), rgba(6, 11, 17, 0.96));
  box-shadow: var(--shadow);
}

.train-plan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.train-plan-hero span,
.train-plan-hero p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.train-plan-hero h2 {
  margin: 4px 0;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.train-plan-toolbar {
  display: grid;
  grid-template-columns: 38px minmax(210px, 1fr) 38px auto auto;
  gap: 8px;
  align-items: center;
  min-width: min(680px, 100%);
}

.train-plan-toolbar a,
.train-plan-view-switch a,
.train-plan-date-form label,
.train-plan-form-panel header a,
.train-detail-actions a,
.train-detail-actions button,
.train-plan-list-drawer summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.train-plan-date-form {
  margin: 0;
}

.train-plan-date-form label {
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
  text-transform: none;
}

.train-plan-date-form input {
  width: 24px;
  min-width: 24px;
  border: 0;
  background: transparent;
  color: transparent;
  color-scheme: dark;
}

.train-plan-view-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.38);
}

.train-plan-view-switch a {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}

.train-plan-view-switch a.active {
  color: #04130a;
  background: var(--green);
}

.train-plan-today {
  padding: 0 11px;
}

.train-plan-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.train-plan-kpi {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.72);
}

.train-plan-kpi i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: currentColor;
  font-size: 20px;
}

.train-plan-kpi strong,
.train-plan-kpi span,
.train-plan-kpi small {
  display: block;
}

.train-plan-kpi strong {
  color: #fff;
  font-size: 23px;
  font-weight: 950;
}

.train-plan-kpi span,
.train-plan-kpi small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.train-plan-kpi.tone-green { color: var(--green); }
.train-plan-kpi.tone-blue { color: var(--blue); }
.train-plan-kpi.tone-amber { color: var(--amber); }
.train-plan-kpi.tone-purple { color: #bca7ff; }
.train-plan-kpi.tone-red { color: var(--red); }

.train-plan-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.train-plan-main,
.train-plan-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.train-plan-board {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.train-plan-board > header,
.train-risks-panel header,
.train-plan-form-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.train-plan-board > header strong,
.train-risks-panel header strong,
.train-plan-form-panel header strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.train-plan-board > header span,
.train-risks-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.train-plan-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.train-plan-filter-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 250, 0.74);
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.train-plan-filter-pills a.active {
  border-color: rgba(50, 230, 120, 0.28);
  color: var(--green);
  background: rgba(50, 230, 120, 0.10);
}

.train-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 8px;
  align-items: start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.train-week-day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
  padding: 8px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.train-week-day.weekend {
  background: rgba(240, 196, 60, 0.06);
}

.train-week-day.today {
  border-color: rgba(220, 236, 245, 0.20);
  box-shadow: inset 0 0 0 1px rgba(220, 236, 245, 0.06);
}

.train-week-day.is-drop-target {
  border-color: rgba(75, 156, 232, 0.38);
}

.train-week-day.is-drop-over {
  border-color: rgba(50, 230, 120, 0.72);
  background: rgba(50, 230, 120, 0.10);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.28);
}

.train-week-day > header {
  display: grid;
  gap: 4px;
}

.train-week-day > header a {
  display: flex;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
}

.train-week-day > header strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.train-week-day > header span,
.train-week-day > header small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.train-week-day > header small {
  font-size: 11px;
}

.train-week-day-list .train-ops-card {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 58px;
  gap: 4px;
  padding: 8px 10px;
  color: var(--train-text);
}

.train-week-day-list .train-ops-card strong {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.train-week-day-list .train-card-head {
  min-height: 18px;
}

.train-week-day-list .train-card-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(235, 245, 250, 0.78);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.train-week-day-list .train-card-time i {
  font-size: 12px;
}

.train-week-day-list .train-ops-card.direction-in {
  --card-accent: #45a3ff;
  border-color: rgba(69, 163, 255, 0.44);
  border-left-color: #45a3ff;
  background:
    linear-gradient(135deg, rgba(69, 163, 255, 0.20), rgba(23, 34, 48, 0.92) 58%),
    #111a25;
}

.train-week-day-list .train-ops-card.direction-out {
  --card-accent: #35d779;
  border-color: rgba(53, 215, 121, 0.44);
  border-left-color: #35d779;
  background:
    linear-gradient(135deg, rgba(53, 215, 121, 0.20), rgba(23, 34, 48, 0.92) 58%),
    #111a25;
}

.train-week-day-list .train-ops-card.direction-in .train-card-time {
  color: #45a3ff;
}

.train-week-day-list .train-ops-card.direction-out .train-card-time {
  color: #35d779;
}

.train-week-day-list,
.train-day-timeline {
  display: grid;
  align-content: start;
  gap: 6px;
}

.train-ops-card,
.train-timeline-row {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(8, 15, 23, 0.76);
  color: #fff;
  text-decoration: none;
}

.train-ops-card {
  --card-accent: #4b9cff;
  overflow: hidden;
  min-height: 46px;
  align-content: start;
  gap: 4px;
  padding: 8px 36px 8px 10px;
  border-color: color-mix(in srgb, var(--card-accent) 34%, transparent);
  border-left-color: var(--card-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 20%, #101923), #172230 58%),
    #111a25;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 14%, transparent),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

.train-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.train-drag-handle,
.train-lock-hint {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--train-muted, rgba(218, 229, 238, 0.68));
  background: rgba(255, 255, 255, 0.06);
}

.train-drag-handle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: var(--card-accent);
  opacity: 0.42;
  transition: opacity 160ms ease, box-shadow 160ms ease;
}

.train-lock-hint {
  opacity: 0.55;
}

.train-ops-card.is-draggable {
  cursor: grab;
}

.train-ops-card.is-draggable:active,
.train-ops-card.is-dragging {
  cursor: grabbing;
}

.train-ops-card.is-dragging {
  opacity: 0.58;
}

.train-ops-card.is-dropping {
  opacity: 0.72;
  pointer-events: none;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(220, 236, 245, 0.28),
    0 0 24px rgba(220, 236, 245, 0.20);
}

.train-ops-card.is-readonly {
  cursor: default;
}

.train-ops-card.direction-out,
.train-timeline-row.direction-out {
  border-left-color: var(--green);
}

.train-ops-card.direction-in {
  --card-accent: #45a3ff;
}

.train-ops-card.direction-out {
  --card-accent: #35d779;
}

.train-ops-card > :not(.train-card-watermark) {
  position: relative;
  z-index: 1;
}

.train-ops-card:hover .train-drag-handle {
  opacity: 1;
  box-shadow: 0 0 14px color-mix(in srgb, var(--card-accent) 34%, transparent);
}

.train-ops-card.tone-warning,
.train-timeline-row.tone-warning {
  border-left-color: var(--amber);
}

.train-ops-card.tone-problem,
.train-timeline-row.tone-problem {
  border-left-color: var(--red);
}

.train-ops-card.selected,
.train-timeline-row.selected {
  border-color: color-mix(in srgb, var(--card-accent, #32e678) 62%, transparent);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-accent, #32e678) 22%, transparent), transparent 44%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent, #32e678) 22%, #101923), #172230 60%);
}

.train-card-time,
.train-timeline-time {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.train-ops-card strong,
.train-ops-card em,
.train-ops-card small,
.train-timeline-row strong,
.train-timeline-row span,
.train-timeline-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.train-ops-card strong,
.train-timeline-row strong {
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.train-ops-card em,
.train-ops-card small,
.train-timeline-row span {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.train-day-timeline {
  gap: 10px;
}

.train-timeline-row {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
}

.train-timeline-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 250, 0.80);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.train-detail-panel,
.train-risks-panel,
.train-plan-form-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.train-detail-panel header {
  display: grid;
  gap: 4px;
}

.train-detail-panel header span,
.train-detail-panel header p,
.train-detail-status span,
.train-detail-note,
.train-risks-panel p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.train-detail-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}

.train-detail-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--blue);
}

.train-detail-status.tone-ready,
.train-detail-status.tone-done { color: var(--green); }
.train-detail-status.tone-warning { color: var(--amber); }
.train-detail-status.tone-problem { color: var(--red); }
.train-detail-status.tone-processing { color: #bca7ff; }

.train-detail-status i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: currentColor;
}

.train-detail-status strong,
.train-detail-status span {
  display: block;
}

.train-detail-status strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.train-detail-checklist {
  display: grid;
  gap: 7px;
}

.train-detail-checklist > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(210, 222, 232, 0.09);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.35);
  color: rgba(244, 247, 250, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.train-detail-checklist > div.done {
  color: var(--green);
}

.train-detail-checklist > .train-detail-step-operation {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 9px;
  border-color: rgba(76, 156, 232, 0.20);
  background: rgba(76, 156, 232, 0.07);
}

.train-detail-step-operation > i {
  margin-top: 2px;
}

.train-detail-step-operation > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.train-detail-step-operation strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.train-detail-step-operation small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.train-detail-step-operation .train-operation-rail-buttons {
  grid-column: 1 / -1;
  grid-template-columns: 58px 58px minmax(0, 1fr) minmax(78px, 0.7fr);
}

.train-detail-note {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(240, 196, 60, 0.18);
  border-radius: 8px;
  background: rgba(240, 196, 60, 0.07);
}

.train-detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.train-detail-actions form {
  margin: 0;
}

.train-detail-actions a,
.train-detail-actions button {
  width: 100%;
  min-height: 38px;
  cursor: pointer;
}

.train-card-time,
.train-card-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.train-card-time {
  color: var(--card-accent);
}

.train-card-count {
  color: rgba(244, 247, 250, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.train-plan-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 84px 24px 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.train-detail-modal-panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.train-plan-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--train-border);
  border-radius: 8px;
  background: var(--train-surface-soft);
  color: var(--train-text);
  text-decoration: none;
}

.train-plan-modal-close:hover {
  border-color: rgba(210, 222, 232, 0.34);
  box-shadow: 0 0 16px rgba(210, 222, 232, 0.16);
}

.train-operation-start {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(76, 156, 232, 0.22);
  border-radius: 8px;
  background: rgba(76, 156, 232, 0.08);
}

.train-operation-start > div:first-child {
  display: grid;
  gap: 2px;
}

.train-operation-start strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.train-operation-start span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.train-operation-rail-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.train-operation-rail-buttons form {
  margin: 0;
}

.train-operation-rail-buttons button {
  min-height: 34px;
  border-color: rgba(76, 156, 232, 0.28);
  background: rgba(76, 156, 232, 0.12);
}

.train-operation-rail-buttons button.wide {
  padding: 0 10px;
}

.train-operation-rail-buttons button.active {
  border-color: rgba(50, 230, 120, 0.46);
  background: rgba(50, 230, 120, 0.18);
  color: var(--text);
}

.train-operation-rail-buttons button.done-button {
  border-color: rgba(50, 230, 120, 0.34);
  background: rgba(50, 230, 120, 0.12);
}

.train-operation-rail-buttons button.done-button.active {
  border-color: rgba(50, 230, 120, 0.58);
  background: rgba(50, 230, 120, 0.24);
}

.train-risks-panel header span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.train-risks-panel > div {
  display: grid;
  gap: 8px;
}

.train-risk-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.38);
}

.train-risk-item.tone-warning { border-left-color: var(--amber); }
.train-risk-item.tone-problem { border-left-color: var(--red); }
.train-risk-item.tone-info { border-left-color: var(--blue); }

.train-risk-item strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.train-risk-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.train-plan-form-panel header a {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.train-plan-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.train-plan-form input,
.train-plan-form select,
.train-plan-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.train-plan-form input[name="name"],
.train-plan-form input[name="relation"],
.train-plan-form textarea,
.train-plan-form button {
  grid-column: 1 / -1;
}

.train-plan-form textarea {
  min-height: 66px;
  padding-top: 10px;
  resize: vertical;
}

.train-plan-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(50, 230, 120, 0.34);
  border-radius: 8px;
  background: rgba(50, 230, 120, 0.14);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.train-plan-form-drawer {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.train-plan-form-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(50, 230, 120, 0.28);
  border-radius: 8px;
  background: rgba(50, 230, 120, 0.12);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  list-style: none;
  text-transform: uppercase;
}

.train-plan-form-drawer summary::-webkit-details-marker {
  display: none;
}

.train-plan-form-drawer summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.train-plan-form-drawer summary > i {
  transition: transform 0.18s ease;
}

.train-plan-form-drawer[open] summary > i {
  transform: rotate(180deg);
}

.train-plan-form-drawer .train-plan-form {
  padding: 2px;
}

.train-plan-edit-cancel {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--train-border, rgba(210, 222, 232, 0.12));
  border-radius: 8px;
  color: var(--train-text, #fff);
  background: var(--train-surface-soft, rgba(255, 255, 255, 0.06));
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.train-plan-list-drawer {
  overflow: hidden;
}

.train-plan-list-drawer summary {
  justify-content: flex-start;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  list-style: none;
}

.train-plan-list-drawer summary::-webkit-details-marker {
  display: none;
}

.train-plan-list-drawer summary span {
  margin-left: auto;
  color: var(--green);
}

.train-plan-table-scroll {
  overflow-x: auto;
  padding: 12px;
}

.train-plan-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  border: 1px dashed rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.train-plan-empty.compact {
  min-height: 160px;
}

.train-plan-empty i {
  color: var(--green);
  font-size: 28px;
}

.train-plan-empty strong,
.train-plan-empty span {
  display: block;
}

.train-plan-empty strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.train-card-actions,
.inline-row-actions {
  display: flex;
  gap: 5px;
  margin: 2px 0 0;
}

.train-card-actions button,
.train-card-actions a,
.inline-row-actions button,
.inline-row-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-decoration: none;
}

.inline-row-actions {
  margin: 0;
}

.muted-inline {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.train-day-empty {
  display: grid;
  place-items: center;
  min-height: 70px;
  color: rgba(169, 186, 199, 0.62);
  border: 1px dashed rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

/* Train plan cockpit refresh */
.train-plan-page {
  --train-surface: rgba(13, 22, 33, 0.86);
  --train-surface-soft: rgba(255, 255, 255, 0.055);
  --train-row: rgba(255, 255, 255, 0.045);
  --train-border: rgba(210, 222, 232, 0.14);
  --train-text: #f6f9fb;
  --train-muted: rgba(218, 229, 238, 0.68);
  --train-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  --train-selected: rgba(50, 230, 120, 0.11);
  --train-blue-soft: rgba(75, 156, 232, 0.15);
  --train-green-soft: rgba(50, 230, 120, 0.13);
  --train-amber-soft: rgba(240, 196, 60, 0.13);
  --train-purple-soft: rgba(188, 167, 255, 0.13);
  color: var(--train-text);
}

body.theme-light .train-plan-page {
  --train-surface: rgba(255, 255, 255, 0.92);
  --train-surface-soft: rgba(247, 250, 252, 0.92);
  --train-row: rgba(255, 255, 255, 0.78);
  --train-border: rgba(25, 48, 62, 0.12);
  --train-text: #122034;
  --train-muted: #526679;
  --train-shadow: 0 14px 34px rgba(34, 54, 70, 0.10);
  --train-selected: rgba(36, 115, 70, 0.08);
  --train-blue-soft: rgba(37, 111, 176, 0.13);
  --train-green-soft: rgba(36, 115, 70, 0.12);
  --train-amber-soft: rgba(155, 116, 21, 0.12);
  --train-purple-soft: rgba(114, 82, 184, 0.12);
}

.train-plan-hero {
  padding: 2px 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.train-plan-hero h2 {
  margin: 0;
  color: var(--train-text);
  font-size: 30px;
  letter-spacing: 0;
}

.train-plan-hero p {
  margin: 5px 0 0;
  color: var(--train-muted);
  font-size: 14px;
  font-weight: 750;
  text-transform: none;
}

.train-movements-source {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--train-border);
  border-radius: 8px;
  background: var(--train-surface);
  box-shadow: var(--train-shadow);
  color: var(--train-text);
}

.train-movements-source i {
  color: var(--purple);
  font-size: 22px;
}

.train-movements-source span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.train-movements-source strong,
.train-movements-source small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.train-movements-source strong {
  color: var(--train-text);
  font-size: 13px;
  font-weight: 900;
}

.train-movements-source small {
  color: var(--train-muted);
  font-size: 11px;
  font-weight: 750;
}

.train-movements-rails-panel {
  display: grid;
  gap: 4px;
}

.train-movements-rails-panel .map-rail-yard {
  padding: 12px 18px 18px;
}

.page-content.page-train_movements {
  padding: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 16% 20%, rgba(50, 230, 120, 0.11), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(75, 156, 232, 0.10), transparent 32%),
    linear-gradient(135deg, #06111a, #091722 45%, #050b11);
}

body:has(.page-content.page-train_movements) .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body:has(.page-content.page-train_movements) .sidebar,
body:has(.page-content.page-train_movements) .topbar,
body:has(.page-content.page-train_movements) .statusbar {
  display: none;
}

body:has(.page-content.page-train_movements) .app-main {
  grid-template-rows: minmax(0, 1fr);
}

body:has(.page-content.page-train_movements) .page-content.page-train_movements {
  padding: 0;
}

.train-tv-page {
  display: grid;
  height: 100vh;
  max-height: 100vh;
  padding: 16px;
  color: #f5f9fb;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.train-tv-page,
.train-tv-page * {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.train-tv-board {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 8px;
  height: calc(100vh - 32px);
  min-height: 0;
  padding: 16px 18px;
  border: 1px solid rgba(147, 190, 205, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(50, 230, 120, 0.10), transparent 30%),
    linear-gradient(135deg, rgba(13, 28, 41, 0.98), rgba(7, 15, 23, 0.98)),
    rgba(8, 16, 24, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.train-tv-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(147, 190, 205, 0.22);
}

.train-tv-board-head span {
  display: block;
  margin-bottom: 2px;
  color: rgba(139, 230, 190, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.train-tv-board-head h1 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(32px, 2.8vw, 44px);
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.train-tv-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.train-tv-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(147, 190, 205, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(236, 244, 248, 0.82);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.train-tv-back:hover {
  border-color: rgba(50, 230, 120, 0.40);
  color: #fff;
  background: rgba(50, 230, 120, 0.10);
}

.train-tv-back i {
  font-size: 17px;
}

.train-tv-board-head time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(50, 230, 120, 0.24);
  border-radius: 8px;
  color: #fff;
  font-weight: 950;
}

.train-tv-date {
  min-width: 118px;
  padding: 0 12px;
  background: rgba(147, 190, 205, 0.08);
  color: rgba(236, 244, 248, 0.88);
  font-size: 15px;
}

.train-tv-clock {
  min-width: 96px;
  background: rgba(50, 230, 120, 0.08);
  font-size: clamp(22px, 1.9vw, 30px);
}

.train-tv-rails {
  display: grid;
  gap: 5px;
  grid-auto-rows: 34px;
  align-content: start;
}

.train-tv-rail {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 116px;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 3px 10px;
  border: 1px solid rgba(147, 190, 205, 0.13);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(50, 230, 120, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.train-tv-rail-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 6px;
  border: 1px solid rgba(50, 230, 120, 0.22);
  border-radius: 7px;
  background: rgba(50, 230, 120, 0.075);
}

.train-tv-rail-number small {
  color: rgba(218, 232, 240, 0.78);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.train-tv-rail-number strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(50, 230, 120, 0.18);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
}

.train-tv-rail.tone-service,
.train-tv-rail.tone-service-active {
  border-color: rgba(255, 184, 77, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 184, 77, 0.24), rgba(255, 184, 77, 0.08) 34%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
}

.train-tv-rail.tone-service-active {
  border-color: rgba(50, 230, 120, 0.42);
  background:
    linear-gradient(90deg, rgba(50, 230, 120, 0.24), rgba(255, 184, 77, 0.12) 40%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}

.train-tv-rail.tone-service .train-tv-rail-number,
.train-tv-rail.tone-service-active .train-tv-rail-number {
  border-color: rgba(255, 184, 77, 0.44);
  background: rgba(255, 184, 77, 0.16);
}

.train-tv-rail.tone-service .train-tv-rail-number strong,
.train-tv-rail.tone-service-active .train-tv-rail-number strong {
  background: rgba(255, 184, 77, 0.26);
}

.train-tv-rail.tone-service .train-tv-track b {
  background: linear-gradient(90deg, #9a6621, #bc7a23);
}

.train-tv-rail.tone-service-active .train-tv-track b {
  background: linear-gradient(90deg, #247346, #bc7a23);
}

.train-tv-rail.tone-service .train-tv-rail-state span,
.train-tv-rail.tone-service-active .train-tv-rail-state span {
  border-color: rgba(255, 184, 77, 0.42);
  background: rgba(255, 184, 77, 0.16);
  color: #ffd899;
}

.train-tv-rail.tone-service-active .train-tv-rail-state span {
  border-color: rgba(50, 230, 120, 0.42);
  background: rgba(50, 230, 120, 0.14);
  color: #8dffbf;
}

.train-tv-rail.tone-waiting-active {
  border-color: rgba(142, 203, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(142, 203, 255, 0.20), rgba(255, 226, 138, 0.10) 44%, rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
}

.train-tv-rail.tone-waiting-active .train-tv-rail-number {
  border-color: rgba(142, 203, 255, 0.42);
  background: rgba(142, 203, 255, 0.12);
}

.train-tv-rail.tone-waiting-active .train-tv-rail-number strong {
  background: rgba(142, 203, 255, 0.22);
}

.train-tv-rail.tone-waiting-active .train-tv-track b {
  background: linear-gradient(90deg, #2b6f9e, #a67822);
}

.train-tv-rail.tone-waiting-active .train-tv-rail-state span {
  border-color: rgba(255, 226, 138, 0.40);
  background: rgba(255, 226, 138, 0.13);
  color: #ffe28a;
}

.train-tv-track {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 22px;
}

.train-tv-track i {
  display: block;
  height: 10px;
  border-top: 1px solid rgba(228, 239, 244, 0.54);
  border-bottom: 1px solid rgba(228, 239, 244, 0.54);
}

.train-tv-track i::before {
  content: "";
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(228, 239, 244, 0.34) 18px 20px);
}

.train-tv-track b {
  position: absolute;
  left: calc(var(--offset) * 1%);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #247346, #256fb0);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.train-tv-track em {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(6, 14, 22, 0.94);
  color: rgba(236, 244, 248, 0.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.train-tv-rail-state {
  justify-self: end;
}

.train-tv-rail-state span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(240, 196, 60, 0.34);
  border-radius: 6px;
  background: rgba(240, 196, 60, 0.14);
  color: #ffe28a;
  font-size: 11px;
  font-weight: 950;
}

.train-tv-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}

.train-tv-table-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(147, 190, 205, 0.16);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 15, 23, 0.72);
  overflow: hidden;
}

.train-tv-table-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(147, 190, 205, 0.13);
}

.train-tv-table-card h2 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(16px, 1.15vw, 21px);
  font-weight: 950;
}

.train-tv-table-card header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(147, 190, 205, 0.08);
  color: rgba(218, 232, 240, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.train-tv-table-card.tone-arrivals h2 {
  color: #8dffbf;
}

.train-tv-table-card.tone-departures h2 {
  color: #8ecbff;
}

.train-tv-table-wrap {
  min-height: 0;
  overflow: hidden;
}

.train-tv-table-card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.train-tv-table-card th,
.train-tv-table-card td {
  height: 23px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(147, 190, 205, 0.09);
  color: rgba(236, 244, 248, 0.86);
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.train-tv-table-card th {
  height: 23px;
  color: rgba(139, 230, 190, 0.70);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.train-tv-table-card th:first-child,
.train-tv-table-card td:first-child {
  width: 92px;
}

.train-tv-table-card th:nth-child(2),
.train-tv-table-card td:nth-child(2) {
  width: 84px;
}

.train-tv-table-card th:nth-child(5),
.train-tv-table-card td:nth-child(5) {
  width: 60px;
  color: rgba(236, 244, 248, 0.88);
  font-size: 11px;
  font-weight: 950;
  text-align: left;
}

.train-tv-table-card th:nth-child(6),
.train-tv-table-card td:nth-child(6) {
  width: 50px;
  color: #f7fbff;
  font-size: 11px;
  font-weight: 950;
  text-align: left;
}

.train-tv-table-card th:nth-child(7),
.train-tv-table-card td:nth-child(7) {
  width: 48px;
  color: #ffe28a;
  text-align: right;
}

.train-tv-table-card th:last-child,
.train-tv-table-card td:last-child {
  width: 96px;
  text-align: left;
}

.train-tv-table-card td:first-child {
  color: rgba(139, 230, 190, 0.92);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.train-tv-table-card td:nth-child(2) {
  color: #f7fbff;
  font-size: 11px;
  font-weight: 950;
}

.train-tv-table-card td.train-tv-cancelled {
  color: #ff6b6b;
  font-weight: 950;
}

.train-tv-table-card td.train-tv-status-cell {
  color: rgba(236, 244, 248, 0.88);
  font-size: 10px;
  font-weight: 950;
}

.train-tv-table-card td.train-tv-status-cell.tone-processing {
  color: #8dffbf;
}

.train-tv-table-card td.train-tv-status-cell.tone-done {
  color: #8dffbf;
}

.train-tv-table-card td.train-tv-status-cell.tone-warning {
  color: #ffe28a;
}

.train-tv-table-card td.train-tv-status-cell.tone-problem {
  color: #ff6b6b;
}

.train-tv-table-card tr.is-empty td {
  height: 86px;
  color: rgba(236, 244, 248, 0.46);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

body.theme-light .page-content.page-train_movements,
body.theme-light .train-tv-page,
body.theme-light .train-tv-board,
body.theme-light .train-tv-board-head h1,
body.theme-light .train-tv-board-head time,
body.theme-light .train-tv-rail-number strong,
body.theme-light .train-tv-track em {
  color: #f7fbff;
}

@media (max-width: 980px) {
  .train-tv-rail {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .train-tv-rail-state {
    grid-column: 2;
    justify-self: start;
  }

  .train-tv-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-content.page-train_movements {
    padding: 0;
  }

  .train-tv-page {
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 10px;
    overflow: auto;
  }

  .train-tv-board {
    grid-template-rows: auto auto auto;
    gap: 10px;
    height: auto;
    min-height: calc(100vh - 20px);
    max-height: none;
    padding: 12px;
    overflow: visible;
  }

  .train-tv-board-head {
    display: grid;
    align-items: start;
    gap: 10px;
    min-height: 0;
    padding: 0 0 10px;
  }

  .train-tv-board-head h1 {
    font-size: 34px;
  }

  .train-tv-head-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    width: 100%;
  }

  .train-tv-back {
    min-height: 34px;
    padding: 0 10px;
  }

  .train-tv-date {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .train-tv-clock {
    min-width: 74px;
    font-size: 20px;
  }

  .train-tv-rails {
    gap: 6px;
    grid-auto-rows: auto;
  }

  .train-tv-rail {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    min-height: 38px;
    padding: 5px 8px;
  }

  .train-tv-rail-state {
    display: none;
  }

  .train-tv-rail.tone-service-active,
  .train-tv-rail.tone-waiting-active {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 66px;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(50, 230, 120, 0.08);
  }

  .train-tv-rail.tone-service-active {
    border-color: rgba(50, 230, 120, 0.52);
  }

  .train-tv-rail.tone-waiting-active {
    border-color: rgba(255, 226, 138, 0.48);
  }

  .train-tv-rail.tone-service-active .train-tv-rail-state,
  .train-tv-rail.tone-waiting-active .train-tv-rail-state {
    display: block;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .train-tv-rail.tone-service-active .train-tv-rail-state span,
  .train-tv-rail.tone-waiting-active .train-tv-rail-state span {
    width: 100%;
    min-height: 24px;
    justify-content: flex-start;
    padding: 0 10px;
    font-size: 11px;
  }

  .train-tv-rail.tone-service-active .train-tv-rail-state span {
    background: rgba(50, 230, 120, 0.16);
  }

  .train-tv-rail.tone-waiting-active .train-tv-rail-state span {
    background: rgba(255, 226, 138, 0.14);
  }

  .train-tv-track b {
    min-width: 76px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 11px;
  }

  .train-tv-track em {
    padding: 2px 6px;
    font-size: 10px;
  }

  .train-tv-tables {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .train-tv-table-card {
    min-height: 0;
  }

  .train-tv-table-card header {
    min-height: 34px;
    padding: 0 10px;
  }

  .train-tv-table-card h2 {
    font-size: 16px;
  }

  .train-tv-table-card header span {
    min-width: 64px;
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

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

  .train-tv-table-card table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }

  .train-tv-table-card thead {
    display: none;
  }

  .train-tv-table-card tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .train-tv-table-card tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    padding: 9px;
    border: 1px solid rgba(147, 190, 205, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
  }

  .train-tv-table-card td {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto !important;
    height: auto;
    min-height: 20px;
    padding: 0;
    border-bottom: 0;
    color: rgba(236, 244, 248, 0.88);
    font-size: 11px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .train-tv-table-card td::before {
    flex: 0 0 auto;
    color: rgba(139, 230, 190, 0.58);
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .train-tv-table-card td:first-child {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(147, 190, 205, 0.12);
    color: rgba(139, 230, 190, 0.95);
    font-size: 12px;
  }

  .train-tv-table-card td:first-child::before {
    content: "Spoj";
    margin-right: 8px;
  }

  .train-tv-table-card td:nth-child(2) {
    grid-column: 1 / -1;
    color: #f7fbff;
    font-size: 12px;
  }

  .train-tv-table-card td:nth-child(2)::before {
    content: "Vlak";
  }

  .train-tv-table-card td:nth-child(3)::before {
    content: "Odkud";
  }

  .train-tv-table-card td:nth-child(4)::before {
    content: "Kam";
  }

  .train-tv-table-card td:nth-child(5)::before {
    content: "Datum";
  }

  .train-tv-table-card td:nth-child(6)::before {
    content: "Čas";
  }

  .train-tv-table-card td:nth-child(7)::before {
    content: "Zpož.";
  }

  .train-tv-table-card td:last-child {
    width: auto;
    text-align: left;
  }

  .train-tv-table-card td:last-child::before {
    content: "Stav";
  }

  .train-tv-table-card tr.is-empty {
    display: block;
  }

  .train-tv-table-card tr.is-empty td {
    display: block;
    height: auto;
    min-height: 44px;
    padding: 14px 10px;
  }

  .train-tv-table-card tr.is-empty td::before {
    content: none;
  }
}

@media (max-width: 420px) {
  .train-tv-board-head h1 {
    font-size: 30px;
  }

  .train-tv-head-actions {
    grid-template-columns: 1fr 1fr;
  }

  .train-tv-back {
    grid-column: 1 / -1;
  }

  .train-tv-date,
  .train-tv-clock {
    width: 100%;
  }

  .train-tv-rail {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .train-tv-rail.tone-service-active,
  .train-tv-rail.tone-waiting-active {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .train-tv-rail-number {
    gap: 4px;
    padding: 0 5px;
  }

  .train-tv-rail-number strong {
    min-width: 24px;
    height: 21px;
    padding: 0 4px;
    font-size: 15px;
  }

  .train-tv-table-card tbody {
    padding: 7px;
  }

  .train-tv-table-card tr {
    gap: 6px 8px;
    padding: 8px;
  }
}

.train-plan-refresh {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--train-border);
  border-radius: 8px;
  background: var(--train-surface);
  color: var(--train-text);
  box-shadow: var(--train-shadow);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.train-plan-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.train-plan-toolbar {
  order: 1;
}

.train-plan-controls .train-plan-form-drawer {
  order: 2;
}

.train-plan-upload {
  order: 3;
}

.train-plan-import-review {
  order: 4;
}

.train-plan-toolbar,
.train-plan-filter-pills-main {
  padding: 6px;
  border: 1px solid var(--train-border);
  border-radius: 8px;
  background: var(--train-surface);
  box-shadow: var(--train-shadow);
}

.train-plan-controls .train-plan-form-drawer {
  justify-self: end;
  min-width: 126px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.train-plan-controls .train-plan-form-drawer summary {
  min-height: 26px;
  padding: 0 10px;
  border-color: var(--train-border);
  background: var(--train-surface);
  color: var(--train-text);
  box-shadow: var(--train-shadow);
  text-transform: none;
}

.train-plan-controls .train-plan-form-drawer summary > i {
  color: var(--train-muted);
}

.train-plan-controls .train-plan-form-drawer[open] {
  grid-column: 1 / -1;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--train-border);
  background: var(--train-surface);
  box-shadow: var(--train-shadow);
}

.train-plan-controls .train-plan-form-drawer[open] summary {
  justify-self: end;
  width: fit-content;
  min-width: 126px;
  margin-bottom: 10px;
  box-shadow: none;
}

.train-plan-toolbar {
  grid-template-columns: 34px minmax(190px, 270px) 34px auto;
  min-width: 0;
}

.train-plan-toolbar > a,
.train-plan-date-form label {
  min-height: 26px;
}

.train-plan-view-switch a {
  min-height: 28px;
}

.train-plan-toolbar a,
.train-plan-view-switch a,
.train-plan-date-form label,
.train-plan-form-panel header a,
.train-detail-actions a,
.train-detail-actions button,
.train-plan-list-drawer summary {
  border-color: var(--train-border);
  background: var(--train-surface-soft);
  color: var(--train-text);
}

.train-plan-date-form label {
  color: var(--train-text);
  background: transparent;
}

.train-plan-date-form input {
  color-scheme: dark;
}

body.theme-light .train-plan-date-form input {
  color-scheme: light;
}

.train-plan-view-switch {
  display: flex;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.train-plan-view-switch a {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: rgba(235, 245, 250, 0.86);
  background: rgba(255, 255, 255, 0.035);
  text-transform: none;
}

.train-plan-view-switch a:hover {
  border-color: rgba(50, 230, 120, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.train-plan-view-switch a.active {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.40);
  background: rgba(50, 230, 120, 0.14);
  box-shadow: 0 0 0 1px rgba(50, 230, 120, 0.08), 0 0 18px rgba(50, 230, 120, 0.12);
}

.train-plan-filter-pills-main {
  flex-wrap: nowrap;
  gap: 0;
}

.train-plan-filter-pills a {
  min-width: 92px;
  justify-content: center;
  border-radius: 0;
  border-color: var(--train-border);
  background: transparent;
  color: var(--train-text);
  text-transform: none;
}

.train-plan-filter-pills a:first-child {
  border-radius: 8px 0 0 8px;
}

.train-plan-filter-pills a:last-child {
  border-radius: 0 8px 8px 0;
}

.train-plan-filter-pills a.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2f74db, #2f8a50);
}

.train-plan-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.train-plan-kpi,
.train-plan-board,
.train-detail-panel,
.train-risks-panel,
.train-plan-form-panel,
.train-plan-list-drawer {
  border: 1px solid var(--train-border);
  background: var(--train-surface);
  box-shadow: var(--train-shadow);
}

.train-plan-kpi {
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 12px;
}

.train-plan-kpi i {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.train-plan-kpi.tone-blue i { background: var(--train-blue-soft); }
.train-plan-kpi.tone-green i { background: var(--train-green-soft); }
.train-plan-kpi.tone-amber i { background: var(--train-amber-soft); }
.train-plan-kpi.tone-purple i { background: var(--train-purple-soft); }

.train-plan-kpi strong,
.train-plan-board > header strong,
.train-risks-panel header strong,
.train-plan-form-panel header strong,
.train-detail-panel h3,
.train-detail-status strong,
.train-risk-item strong,
.train-plan-empty strong {
  color: var(--train-text);
}

.train-plan-kpi span,
.train-plan-kpi small,
.train-plan-board > header span,
.train-risks-panel header span,
.train-detail-panel header span,
.train-detail-panel header p,
.train-detail-status span,
.train-detail-note,
.train-risks-panel p,
.train-risk-item span {
  color: var(--train-muted);
}

.train-plan-kpi strong {
  font-size: 21px;
}

.train-plan-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 14px;
}

.train-plan-workspace.week-mode {
  grid-template-columns: minmax(0, 1fr);
}

.train-plan-workspace.week-mode .train-plan-side {
  display: none;
}

.train-plan-workspace.week-mode .train-week-grid {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.train-plan-board {
  padding: 12px;
}

.train-plan-board > header {
  padding: 0 2px 6px;
  align-items: center;
}

.train-selected-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--train-border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--train-surface-soft);
}

.train-selected-strip.tone-ready,
.train-selected-strip.tone-done {
  border-left-color: var(--green);
}

.train-selected-strip.tone-warning {
  border-left-color: var(--amber);
}

.train-selected-strip.tone-problem {
  border-left-color: var(--red);
}

.train-selected-strip.tone-processing {
  border-left-color: var(--purple, #8a6de9);
}

.train-selected-strip strong,
.train-selected-strip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.train-selected-strip strong {
  color: var(--train-text);
  font-size: 12px;
  font-weight: 950;
}

.train-selected-strip span {
  color: var(--train-muted);
  font-size: 10px;
  font-weight: 800;
}

.train-selected-strip nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.train-selected-strip nav form {
  margin: 0;
}

.train-selected-strip nav a,
.train-selected-strip nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--train-border);
  border-radius: 8px;
  background: var(--train-surface);
  color: var(--train-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.train-selected-move-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.train-selected-move-form select {
  min-height: 28px;
  max-width: 118px;
  border: 1px solid var(--train-border);
  border-radius: 8px;
  background: var(--train-surface);
  color: var(--train-text);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.train-table-alias,
.train-table-id {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.train-table-alias {
  color: var(--train-text);
  font-size: 12px;
  font-weight: 950;
}

.train-table-id {
  color: var(--train-muted);
  font-size: 10px;
  font-weight: 800;
}

.train-plan-board-count {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--train-border);
  border-radius: 999px;
  background: var(--train-surface-soft);
  color: var(--train-muted);
  font-size: 11px;
  font-weight: 900;
}

.train-day-timeline {
  position: relative;
  gap: 0;
  overflow-x: hidden;
  padding-bottom: 2px;
}

.train-timeline-head,
.train-timeline-row {
  display: grid;
  grid-template-columns: 86px 92px minmax(140px, 1fr) 82px minmax(112px, 142px);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.train-timeline-head {
  min-height: 36px;
  padding: 0 10px 0 24px;
  color: var(--train-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.train-timeline-row {
  min-height: 70px;
  padding: 9px 10px 9px 24px;
  border: 1px solid transparent;
  border-left: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--train-text);
}

.train-timeline-row + .train-timeline-row {
  border-top-color: var(--train-border);
}

.train-timeline-row::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--train-border);
}

.train-timeline-row.selected {
  border-color: var(--green);
  background: var(--train-selected);
  box-shadow: inset 4px 0 0 var(--green);
}

.train-timeline-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--train-text);
  font-size: 18px;
  font-weight: 950;
}

.train-timeline-time i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--train-surface);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 22%, transparent);
}

.train-timeline-row.direction-out .train-timeline-time i {
  background: var(--green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 22%, transparent);
}

.train-type-pill,
.train-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 950;
  font-style: normal;
  text-decoration: none;
}

.train-type-pill.direction-in {
  background: var(--train-blue-soft);
  color: var(--blue);
}

.train-type-pill.direction-out {
  background: var(--train-green-soft);
  color: var(--green);
}

.train-timeline-name,
.train-timeline-units {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.train-timeline-name strong,
.train-timeline-units strong {
  color: var(--train-text);
  font-size: 12px;
  font-weight: 950;
}

.train-timeline-name span,
.train-timeline-units span {
  color: var(--train-muted);
  font-size: 11px;
  font-weight: 750;
}

.train-status-pill {
  min-width: 0;
  width: 100%;
  color: var(--blue);
  background: var(--train-blue-soft);
  white-space: nowrap;
}

.train-status-pill.tone-ready,
.train-status-pill.tone-done {
  color: var(--green);
  background: var(--train-green-soft);
}

.train-status-pill.tone-warning {
  color: var(--amber);
  background: var(--train-amber-soft);
}

.train-status-pill.tone-processing {
  color: var(--purple, #8a6de9);
  background: var(--train-purple-soft);
}

.train-status-pill.tone-problem {
  color: var(--red);
  background: rgba(224, 90, 80, 0.12);
}

.train-detail-panel {
  margin-top: 0;
  gap: 14px;
  border-left: 5px solid var(--green);
}

.train-detail-panel h3 {
  font-size: 21px;
}

.train-detail-facts {
  display: grid;
  gap: 10px;
}

.train-detail-facts div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--train-text);
  font-size: 13px;
  font-weight: 800;
}

.train-detail-facts i {
  color: var(--train-muted);
}

.train-detail-status,
.train-detail-checklist div,
.train-risk-item,
.train-plan-form input,
.train-plan-form select,
.train-plan-form textarea {
  border-color: var(--train-border);
  background: var(--train-surface-soft);
  color: var(--train-text);
}

.train-detail-checklist div {
  justify-content: space-between;
  min-height: 40px;
}

.train-detail-checklist div.done {
  color: var(--green);
}

.train-week-day,
.train-ops-card,
.train-day-empty,
.train-plan-empty {
  border-color: var(--train-border);
  background: var(--train-surface-soft);
  color: var(--train-muted);
}

.train-week-day > header a,
.train-ops-card strong,
.train-week-day > header span,
.train-week-day > header small,
.train-ops-card em,
.train-ops-card small {
  color: inherit;
}

.train-week-day-list .train-ops-card {
  position: relative;
  border-radius: 8px;
  background: rgba(11, 17, 24, 0.97);
  color: #fff;
  font-family: inherit;
  font-weight: 950;
  overflow: hidden;
  padding-right: 10px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.train-week-day-list .train-ops-card > :not(.train-card-watermark) {
  position: relative;
  z-index: 1;
}

.train-week-day-list .train-ops-card::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  opacity: 0.72;
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.train-week-day-list .train-ops-card.equipment-trailer {
  border-color: rgba(72, 168, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(72, 168, 255, 0.12), rgba(11, 17, 24, 0.84) 54%),
    rgba(11, 17, 24, 0.78);
}

.train-week-day-list .train-ops-card.equipment-trailer::after {
  background: #48a8ff;
  box-shadow: 0 0 14px rgba(72, 168, 255, 0.34);
}

.train-week-day-list .train-ops-card.equipment-trailer:hover {
  border-color: rgba(72, 168, 255, 0.72);
  background: rgba(15, 25, 36, 0.96);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(72, 168, 255, 0.28),
    0 0 32px rgba(72, 168, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.train-week-day-list .train-ops-card.equipment-container {
  border-color: rgba(50, 230, 120, 0.16);
  background:
    linear-gradient(135deg, rgba(50, 230, 120, 0.10), rgba(11, 17, 24, 0.84) 54%),
    rgba(11, 17, 24, 0.78);
}

.train-week-day-list .train-ops-card.equipment-container::after {
  background: var(--green);
  box-shadow: 0 0 14px rgba(50, 230, 120, 0.28);
}

.train-week-day-list .train-ops-card.equipment-container:hover {
  border-color: rgba(50, 230, 120, 0.64);
  background: rgba(15, 25, 36, 0.96);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(50, 230, 120, 0.24),
    0 0 32px rgba(50, 230, 120, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.train-week-day-list .train-ops-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.train-week-day-list .train-ops-card:focus,
.train-week-day-list .train-ops-card:visited {
  text-decoration: none;
}

.train-week-day-list .train-ops-card:hover::after {
  opacity: 1;
}

.train-week-day-list .train-ops-card strong,
.train-week-day-list .train-card-time,
.train-week-day-list .train-card-direction-label {
  color: #fff;
  font-weight: 950;
}

.train-week-day-list .train-card-direction-label {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(222, 232, 240, 0.08);
  color: rgba(235, 245, 250, 0.70);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.train-week-day-list .train-card-carrier {
  display: inline-flex;
  align-items: center;
  max-width: 64px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(235, 245, 250, 0.12);
  border-radius: 6px;
  background: rgba(235, 245, 250, 0.07);
  color: rgba(235, 245, 250, 0.76);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.train-week-day-list .train-ops-card.direction-in .train-card-time,
.train-week-day-list .train-ops-card.direction-out .train-card-time,
.train-week-day-list .train-ops-card.equipment-trailer .train-card-time,
.train-week-day-list .train-ops-card.equipment-container .train-card-time {
  color: rgba(235, 245, 250, 0.78);
}

.train-week-day-list .train-ops-card.tone-problem {
  border-color: rgba(255, 91, 91, 0.50);
  background:
    linear-gradient(135deg, rgba(255, 91, 91, 0.24), rgba(35, 13, 17, 0.92) 58%),
    rgba(20, 9, 12, 0.92);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.train-week-day-list .train-ops-card.tone-problem::after {
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 91, 91, 0.40);
}

.train-week-day-list .train-ops-card.tone-problem:hover {
  border-color: rgba(255, 91, 91, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 91, 91, 0.30), rgba(35, 13, 17, 0.96) 58%),
    rgba(20, 9, 12, 0.96);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 91, 91, 0.30),
    0 0 30px rgba(255, 91, 91, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.train-week-day-list .train-ops-card.tone-problem strong > span:last-child {
  color: rgba(255, 235, 235, 0.86);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 91, 91, 0.96);
  text-decoration-thickness: 2px;
}

.train-week-day-list .train-ops-card.tone-problem .train-card-watermark {
  color: var(--red);
}

.train-week-day-list .train-ops-card strong {
  display: block;
  min-width: 0;
  padding-right: 0;
  color: #fff;
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  line-height: 1.12;
  text-decoration: none;
}

.train-week-day-list .train-ops-card strong > span:last-child {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.train-week-day-list .train-ops-card.tone-problem strong > span:last-child {
  color: rgba(255, 235, 235, 0.86);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 91, 91, 0.96);
  text-decoration-thickness: 2px;
}

.train-week-day-list .train-card-watermark {
  position: absolute;
  right: -18px;
  top: 50%;
  z-index: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  opacity: 0.075;
  transform: translateY(-50%);
  transform-origin: center;
  pointer-events: none;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.train-week-day-list .train-ops-card.equipment-trailer .train-card-watermark,
.train-week-day-list .train-ops-card.equipment-container .train-card-watermark {
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
}

.train-week-day-list .train-card-watermark svg {
  width: 70px;
  height: 45px;
}

.train-week-day-list .train-card-watermark path,
.train-week-day-list .train-card-watermark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.train-week-day-list .train-ops-card.equipment-trailer .train-card-watermark {
  color: #48a8ff;
}

.train-week-day-list .train-ops-card.equipment-container .train-card-watermark {
  right: -58px;
  top: 55%;
  color: var(--green);
}

.train-week-day-list .train-ops-card:hover .train-card-watermark {
  opacity: 0.18;
  filter: drop-shadow(0 0 14px currentColor);
  transform: translateY(-50%);
}

.train-plan-table-scroll {
  background: var(--train-surface);
}

@media (max-width: 1180px) {
  .train-plan-workspace {
    grid-template-columns: 1fr;
  }

  .train-week-grid {
    grid-template-columns: repeat(7, minmax(142px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 820px) {
  .train-plan-hero,
  .train-plan-controls {
    grid-template-columns: 1fr;
  }

  .train-plan-refresh {
    justify-self: stretch;
  }

  .train-plan-toolbar {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .train-plan-controls .train-plan-form-drawer {
    justify-self: stretch;
    min-width: 0;
  }

  .train-plan-controls .train-plan-form-drawer summary {
    justify-content: center;
  }

  .train-plan-view-switch {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .train-plan-view-switch a {
    flex: 1;
  }

  .train-plan-filter-pills-main {
    overflow-x: auto;
  }

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

  .train-selected-strip {
    grid-template-columns: 1fr;
  }

  .train-selected-strip nav {
    justify-content: flex-start;
  }

  .train-day-timeline {
    overflow: visible;
  }

  .train-timeline-head {
    display: none;
  }

  .train-timeline-row {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 8px 10px;
    min-height: 82px;
    padding: 10px 10px 10px 24px;
  }

  .train-timeline-row .train-type-pill {
    justify-self: start;
  }

  .train-timeline-name {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .train-timeline-units {
    grid-column: 1 / 2;
    grid-row: 2;
    align-self: end;
  }

  .train-status-pill {
    justify-self: end;
    width: auto;
    max-width: 150px;
  }
}

@media (max-width: 520px) {
  .train-plan-kpis {
    grid-template-columns: 1fr;
  }

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

  .train-plan-kpi {
    min-height: 74px;
    padding: 12px;
  }

  .train-timeline-row {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 116px;
    align-items: start;
  }

  .train-timeline-time {
    font-size: 17px;
  }

  .train-type-pill {
    justify-self: start;
  }

  .train-status-pill {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
  }

  .train-timeline-name {
    grid-column: 2;
    grid-row: 3;
  }

  .train-timeline-units {
    grid-column: 1;
    grid-row: 3;
  }
}

body.theme-light .train-plan-page .train-plan-view-switch a {
  border-color: rgba(25, 48, 62, 0.12);
  color: rgba(16, 27, 36, 0.70);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

body.theme-light .train-plan-page .train-plan-view-switch a:hover,
body.theme-light .train-plan-page .train-plan-view-switch a.active {
  border-color: rgba(24, 164, 86, 0.34);
  color: #101b24;
  background: rgba(24, 164, 86, 0.12);
  box-shadow: 0 0 0 1px rgba(24, 164, 86, 0.10), 0 0 18px rgba(24, 164, 86, 0.16);
}

.report-side-card {
  min-height: 168px;
}

.source-list,
.flow-list {
  display: grid;
  gap: 10px;
}

.source-list div,
.flow-list div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.flow-list div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.source-list i {
  color: var(--green);
  font-size: 21px;
}

.source-list span,
.flow-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.source-list strong,
.flow-list strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.message-stack {
  position: fixed;
  top: 112px;
  left: 50%;
  z-index: 1200;
  display: grid;
  gap: 8px;
  width: min(460px, calc(100vw - 48px));
  transform: translateX(-50%);
  pointer-events: none;
}

.app-message {
  pointer-events: auto;
  padding: 11px 13px;
  border: 1px solid rgba(50, 230, 120, 0.35);
  border-radius: 8px;
  background: rgba(50, 230, 120, 0.12);
  color: #fff;
  font-weight: 850;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.app-message.is-hiding {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
}

.app-message.error {
  border-color: rgba(224, 90, 80, 0.45);
  background: rgba(224, 90, 80, 0.16);
}

.app-message.warning {
  border-color: rgba(245, 180, 80, 0.45);
  background: rgba(245, 180, 80, 0.16);
}

@media (max-width: 720px) {
  .message-stack {
    top: 104px;
    left: 50%;
    width: calc(100vw - 24px);
  }
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
  border: 1px dashed rgba(210, 222, 232, 0.18);
  border-radius: 8px;
}

.terminal-map-panel {
  min-height: 600px;
}

.terminal-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 16px;
}

.map-toolbar input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.65);
  color: #fff;
  padding: 12px 14px;
}

.map-reset {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.yard-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.yard-section {
  display: block;
  min-height: 245px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 15%, rgba(75, 156, 232, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(15, 27, 38, 0.96), rgba(8, 15, 23, 0.96));
  color: inherit;
  text-decoration: none;
}

.yard-section.selected {
  border-color: rgba(50, 230, 120, 0.72);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.34), 0 18px 38px rgba(0, 0, 0, 0.22);
}

.yard-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.yard-section strong,
.yard-section span {
  display: block;
}

.yard-section strong {
  color: var(--green);
  font-size: 24px;
}

.yard-section.warning strong {
  color: var(--amber, #f0c43c);
}

.yard-section.danger {
  border-color: rgba(224, 90, 80, 0.45);
}

.yard-section.danger strong {
  color: var(--red);
}

.yard-card-head,
.yard-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yard-card-head span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  font-weight: 950;
}

.yard-card-stats {
  margin-top: 14px;
}

.yard-card-stats div {
  display: grid;
  gap: 4px;
}

.yard-card-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bay-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  min-height: 106px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.bay-grid i {
  min-height: 13px;
  border-radius: 2px;
  background: rgba(75, 156, 232, 0.26);
  box-shadow: inset 0 0 0 1px rgba(210, 222, 232, 0.10);
}

.yard-section.active .bay-grid i:nth-child(3n),
.yard-section.warning .bay-grid i:nth-child(4n),
.yard-section.danger .bay-grid i:nth-child(2n) {
  background: rgba(50, 230, 120, 0.34);
}

.yard-section.warning .bay-grid i:nth-child(4n) {
  background: rgba(240, 196, 60, 0.36);
}

.yard-section.danger .bay-grid i:nth-child(2n) {
  background: rgba(224, 90, 80, 0.36);
}

.yard-rails {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.28);
}

.yard-rails div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.yard-rails span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.yard-rails strong {
  position: relative;
  display: block;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(50, 230, 120, 0.32), rgba(75, 156, 232, 0.18));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.container-mini-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.container-mini-list div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.container-mini-list strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.container-mini-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.container-mini-list small {
  display: block;
  overflow: hidden;
  color: rgba(169, 186, 199, 0.76);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container-mini-list .match {
  border-color: rgba(224, 90, 80, 0.58);
  box-shadow: inset 0 0 0 1px rgba(224, 90, 80, 0.28);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(50, 230, 120, 0.38);
  border-radius: 999px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.10);
  font-size: 12px;
  font-weight: 950;
}

.terminal-map-shell {
  display: grid;
}

.map-app-card {
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(75, 156, 232, 0.10), transparent 42%),
    linear-gradient(135deg, rgba(13, 24, 34, 0.96), rgba(6, 12, 19, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

.map-close-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  color: rgba(244, 247, 250, 0.80);
  text-decoration: none;
}

.map-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.map-command-close {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.map-command-row label {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.42);
}

.map-command-row input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.map-command-row i {
  color: var(--muted);
  font-size: 20px;
}

.map-command-row kbd {
  display: grid;
  place-items: center;
  height: 22px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 5px;
  color: rgba(169, 186, 199, 0.75);
  font-size: 12px;
  font-weight: 900;
}

.map-command-row button,
.map-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.map-rail-yard {
  display: grid;
  gap: 8px;
  padding: 22px 28px 18px;
}

.map-rail-row {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 20px;
}

.map-rail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-rail-row i {
  position: relative;
  display: block;
  height: 10px;
  border-top: 2px solid rgba(220, 232, 240, 0.42);
  border-bottom: 2px solid rgba(220, 232, 240, 0.42);
}

.map-rail-row i::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 1px dashed rgba(220, 232, 240, 0.52);
}

.map-rail-row strong {
  position: absolute;
  left: calc(94px + var(--offset));
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 22px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(37, 92, 60, 0.88), rgba(18, 38, 50, 0.90));
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
}

.map-rail-row strong.tone-blue {
  background: linear-gradient(90deg, rgba(37, 72, 112, 0.90), rgba(18, 38, 50, 0.90));
}

.map-section-selection {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 28px 16px;
}

.map-section-card {
  display: grid;
  gap: 14px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(75, 156, 232, 0.12), transparent 38%),
    rgba(8, 16, 24, 0.62);
  color: inherit;
  text-decoration: none;
}

.map-section-card:hover,
.map-service-card:hover,
.map-bay-cells a:hover {
  border-color: rgba(50, 230, 120, 0.58);
}

.map-section-card h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.map-section-perspective {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  min-height: 172px;
  padding: 30px 24px 22px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  background: linear-gradient(180deg, rgba(22, 36, 48, 0.52), rgba(5, 10, 16, 0.50));
  transform: perspective(440px) rotateX(10deg);
}

.map-section-perspective i {
  min-height: 15px;
  border-radius: 2px;
  background: rgba(75, 156, 232, 0.30);
  box-shadow: inset 0 0 0 1px rgba(210, 222, 232, 0.10);
}

.map-section-perspective i:nth-child(3n) {
  background: rgba(50, 230, 120, 0.35);
}

.map-section-perspective i:nth-child(7n) {
  background: rgba(240, 196, 60, 0.34);
}

.map-section-perspective i:nth-child(13n) {
  background: rgba(224, 90, 80, 0.30);
}

.map-section-perspective i.tone-open {
  background: rgba(50, 230, 120, 0.28);
}

.map-section-perspective i.tone-active {
  background: rgba(75, 156, 232, 0.36);
}

.map-section-perspective i.tone-warning {
  background: rgba(240, 196, 60, 0.38);
}

.map-section-perspective i.tone-danger {
  background: rgba(224, 90, 80, 0.42);
}

.map-section-perspective b {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotateX(-10deg);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: rgba(8, 16, 24, 0.88);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.map-section-card.tone-active .map-section-perspective b,
.map-section-card.tone-open .map-section-perspective b {
  border-color: var(--green);
}

.map-section-card.tone-warning .map-section-perspective b {
  border-color: var(--amber);
}

.map-section-card.tone-danger .map-section-perspective b {
  border-color: var(--red);
}

.map-section-card dl,
.container-stack-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.map-section-card dt,
.container-stack-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.map-section-card dd,
.container-stack-card dd {
  margin: 2px 0 0;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.map-section-card small {
  color: rgba(169, 186, 199, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.map-service-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 18px;
}

.map-service-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
  color: inherit;
  text-decoration: none;
}

.map-service-card i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 7px;
  color: var(--green);
  font-size: 20px;
}

.map-service-card span,
.map-service-card small {
  display: block;
}

.map-service-card span {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.map-service-card strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.map-service-card small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.map-legend-row,
.map-inline-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.map-legend-row {
  margin: 0 22px 22px;
  padding: 12px 16px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.map-legend-row span,
.map-inline-legend span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-legend-row i,
.map-inline-legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.map-legend-row i.open,
.map-inline-legend i.open,
.map-bay-cells a.tone-open {
  background: rgba(50, 230, 120, 0.28);
}

.map-legend-row i.active,
.map-inline-legend i.active,
.map-bay-cells a.tone-active {
  background: rgba(75, 156, 232, 0.34);
}

.map-legend-row i.warning,
.map-inline-legend i.warning,
.map-bay-cells a.tone-warning {
  background: rgba(240, 196, 60, 0.34);
}

.map-legend-row i.danger,
.map-inline-legend i.danger,
.map-bay-cells a.tone-danger {
  background: rgba(224, 90, 80, 0.36);
}

.map-legend-row small,
.map-inline-legend small {
  color: rgba(169, 186, 199, 0.84);
  font-size: 11px;
  font-weight: 750;
}

.map-legend-row em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.map-bay-layout {
  padding: 16px 22px 22px;
}

.map-bay-top,
.map-detail-head,
.map-table-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.map-range-pills,
.map-table-top nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.map-table-top.has-table-zoom {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.map-range-pills a,
.map-table-top nav a {
  padding: 10px 14px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: rgba(244, 247, 250, 0.86);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.map-range-pills a.active,
.map-table-top nav a.active {
  border-color: rgba(50, 230, 120, 0.56);
  color: #fff;
  background: rgba(50, 230, 120, 0.13);
}

.map-bay-top aside,
.map-capacity-pill,
.map-detail-head > div {
  min-width: 170px;
  padding: 12px 16px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.map-bay-top aside span,
.map-capacity-pill span,
.map-detail-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.map-bay-top aside strong,
.map-capacity-pill strong,
.map-detail-head strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.map-bay-top aside small,
.map-capacity-pill small,
.map-detail-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.map-bay-board {
  padding: 18px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.28);
}

.map-bay-board header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.map-bay-board h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-bay-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(210, 222, 232, 0.08);
}

.map-bay-row:first-of-type {
  border-top: 0;
}

.map-bay-row > div:first-child strong,
.map-bay-row > div:first-child span {
  display: block;
}

.map-bay-row > div:first-child strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.map-bay-row > div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.map-bay-cells {
  display: grid;
  grid-template-columns: repeat(15, minmax(30px, 1fr));
  gap: 6px;
}

.map-bay-cells a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 37px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.map-bay-cells span {
  font-size: 12px;
  font-weight: 950;
}

.map-bay-cells b {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.map-bay-cells a.searched {
  border-color: rgba(224, 90, 80, 0.95);
  box-shadow: 0 0 0 2px rgba(224, 90, 80, 0.28), 0 0 18px rgba(224, 90, 80, 0.22);
}

.map-detail-head {
  padding: 16px 22px 0;
}

.bay-detail-shell .map-detail-head {
  grid-template-columns: auto repeat(3, minmax(150px, 1fr));
}

.bay-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
  background:
    radial-gradient(circle at 86% 0%, rgba(50, 230, 120, 0.10), transparent 34%),
    rgba(5, 10, 16, 0.18);
}

.bay-detail-hero span,
.bay-detail-hero strong,
.bay-detail-hero small {
  display: block;
}

.bay-detail-hero span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.bay-detail-hero strong {
  margin-top: 1px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.bay-detail-hero small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.bay-detail-hero dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.bay-detail-hero dl div {
  padding: 10px 11px;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.32);
}

.bay-detail-hero dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.bay-detail-hero dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bay-stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 0 22px 22px;
}

.bay-stack-layout.modern {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  align-items: start;
  padding-top: 18px;
}

.bay-stack-panel,
.container-detail-panel {
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.bay-stack-panel {
  overflow: hidden;
}

.bay-visual-panel {
  display: grid;
  min-width: 0;
}

.bay-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.bay-visual-head span,
.bay-visual-head strong {
  display: block;
}

.bay-visual-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.bay-visual-head strong {
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.bay-row-board {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.bay-row-track {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.09);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(38, 68, 91, 0.22), rgba(5, 10, 16, 0.08));
}

.bay-row-track.reserve {
  border-color: rgba(240, 196, 60, 0.17);
  background: linear-gradient(90deg, rgba(240, 196, 60, 0.08), rgba(5, 10, 16, 0.08));
}

.bay-row-track > aside {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border-right: 1px solid rgba(210, 222, 232, 0.10);
}

.bay-row-track > aside strong,
.bay-row-track > aside span {
  display: block;
}

.bay-row-track > aside strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.bay-row-track > aside span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.bay-tier-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 9px;
  min-width: 0;
}

.bay-tier-cell {
  display: grid;
  grid-template-rows: auto minmax(78px, 1fr);
  gap: 4px;
  min-width: 0;
}

.bay-tier-cell > span {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  color: #9bc8f2;
  background: rgba(75, 156, 232, 0.10);
  font-size: 10px;
  font-weight: 950;
}

.bay-stack-scroll {
  overflow-x: auto;
  padding: 92px 14px 18px;
}

.bay-stack-grid {
  display: grid;
  grid-template-columns: 54px repeat(var(--rows), minmax(108px, 1fr));
  grid-auto-rows: auto;
  gap: 7px 8px;
  min-width: min(100%, calc(54px + var(--rows) * 108px));
}

.bay-grid-corner {
  min-height: 20px;
}

.bay-row-label,
.bay-tier-label {
  display: grid;
  place-items: center;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 7px;
  background: rgba(38, 68, 91, 0.40);
  color: #9bc8f2;
  font-size: 11px;
  font-weight: 950;
}

.bay-row-label {
  min-height: 24px;
}

.bay-row-label.reserve {
  color: var(--amber);
  background: rgba(240, 196, 60, 0.10);
}

.bay-tier-label {
  width: 46px;
  min-height: 74px;
}

.container-slot {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 82px;
  margin: 0 10px 9px 0;
  border: 0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  isolation: isolate;
  perspective: 520px;
  --container-front: #22313d;
  --container-top: color-mix(in srgb, var(--container-front) 78%, #ffffff);
  --container-shadow: rgba(6, 12, 18, 0.34);
}

.container-slot::before,
.container-slot::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.container-slot:not(.empty)::before {
  inset: 22px 16px 8px 6px;
  border: 2px solid rgba(5, 10, 16, 0.70);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 22px), rgba(0, 0, 0, 0.26) calc(100% - 22px) calc(100% - 20px), rgba(255, 255, 255, 0.16) calc(100% - 19px) calc(100% - 18px), transparent calc(100% - 17px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, rgba(0, 0, 0, 0.11) 1px 2px, transparent 2px 10px),
    linear-gradient(145deg, color-mix(in srgb, var(--container-front) 92%, #ffffff), color-mix(in srgb, var(--container-front) 82%, #050a10));
  box-shadow: 9px 9px 0 var(--container-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.20), inset 0 -10px 14px rgba(0, 0, 0, 0.16);
  transform: skewY(-1deg);
  z-index: -1;
}

.container-slot:not(.empty)::after {
  inset: 9px 6px auto 18px;
  height: 20px;
  border: 2px solid rgba(5, 10, 16, 0.64);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(135deg, var(--container-top), color-mix(in srgb, var(--container-front) 74%, #050a10));
  transform: skewX(-28deg);
  z-index: -2;
}

.container-slot span,
.container-slot strong,
.container-slot small {
  position: relative;
  z-index: 1;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.container-slot span {
  margin-top: 15px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(5, 10, 16, 0.16);
  font-size: 10px;
  font-weight: 950;
}

.container-slot strong {
  max-width: 112px;
  margin-top: 13px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.container-slot small {
  font-size: 9px;
  font-weight: 850;
}

.container-slot b {
  position: absolute;
  left: 10px;
  top: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #fff;
  background: rgba(5, 10, 16, 0.55);
  font-size: 11px;
  font-weight: 950;
}

.container-slot em {
  position: absolute;
  top: 10px;
  right: 7px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(5, 10, 16, 0.82);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.container-slot.tone-import { --container-front: #2f874e; }
.container-slot.tone-export { --container-front: #2f6598; }
.container-slot.tone-empty { --container-front: #b79a25; }
.container-slot.tone-glovis { --container-front: #7152a8; }
.container-slot.tone-damaged { --container-front: #a94742; }
.container-slot.tone-repair { --container-front: #5863a8; }

.container-slot.highlighted {
  outline: 3px solid rgba(220, 32, 32, 0.98);
  outline-offset: 3px;
  border-radius: 8px;
}

.container-slot.highlighted::before {
  box-shadow: 0 0 0 2px rgba(255, 230, 230, 0.85), 0 0 20px rgba(220, 32, 32, 0.50), 9px 9px 0 var(--container-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.20), inset 0 -10px 14px rgba(0, 0, 0, 0.16);
}

.container-slot.empty {
  min-height: 82px;
  border: 0;
  background: transparent;
  --container-front: #26323b;
  --container-top: #34424c;
  --container-shadow: rgba(6, 12, 18, 0.24);
  opacity: 0.78;
}

.container-slot.empty::before {
  inset: 22px 16px 8px 6px;
  border: 2px solid rgba(5, 10, 16, 0.56);
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(0, 0, 0, 0.10) 1px 2px, transparent 2px 10px),
    linear-gradient(145deg, #2d3942, #18232b);
  box-shadow: 9px 9px 0 var(--container-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: skewY(-1deg);
  z-index: -1;
}

.container-slot.empty::after {
  inset: 9px 6px auto 18px;
  height: 20px;
  border: 2px solid rgba(5, 10, 16, 0.50);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(135deg, #394753, #202c34);
  transform: skewX(-28deg);
  z-index: -2;
}

.container-slot.empty.reserve {
  opacity: 0.58;
}

.bay-container-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid rgba(210, 222, 232, 0.10);
}

.bay-container-legend span {
  margin-right: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.bay-container-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.bay-container-legend small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bay-container-legend .import { background: #2f874e; }
.bay-container-legend .export { background: #2f6598; }
.bay-container-legend .empty,
.bay-container-legend .legend-empty { background: #b79a25; }
.bay-container-legend .glovis { background: #7152a8; }
.bay-container-legend .damaged { background: #a94742; }

.container-detail-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.container-detail-panel dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.bay-stack-layout.modern .container-detail-panel dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bay-container-table-panel {
  margin: 0 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.bay-container-table-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.bay-container-table-panel span,
.bay-container-table-panel strong,
.bay-container-table-panel small {
  display: block;
}

.bay-container-table-panel span,
.bay-container-table-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.bay-container-table-panel strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.container-detail-panel header {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.container-detail-panel header span,
.container-detail-panel header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.container-detail-panel header strong {
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
}

.container-detail-panel dl div {
  display: grid;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(210, 222, 232, 0.07);
}

.container-detail-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.container-detail-panel dd {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.bay-original-card {
  display: grid;
  min-width: 0;
  padding: 8px 18px 18px;
}

.bay-original-header,
.bay-original-grid-panel {
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(12, 21, 30, 0.91);
}

.bay-original-header {
  display: grid;
  gap: 10px;
  padding: 10px 14px 12px;
}

.bay-original-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.bay-original-breadcrumb > i {
  width: 1px;
  height: 34px;
  background: rgba(210, 222, 232, 0.12);
}

.bay-original-breadcrumb > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bay-original-breadcrumb .panel-action-link {
  margin-left: auto;
}

.bay-original-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(104px, auto)) minmax(170px, 210px);
  align-items: center;
  gap: 10px;
}

.bay-original-title-row h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.bay-original-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.bay-original-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1px 8px;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(8, 15, 22, 0.67);
}

.bay-original-chip b {
  grid-row: span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}

.bay-original-chip span,
.bay-original-chip strong {
  display: block;
}

.bay-original-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.bay-original-chip strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.bay-original-search input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  background: rgba(8, 14, 22, 0.92);
  color: rgba(235, 240, 245, 0.94);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
}

.bay-original-grid-panel {
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 0 14px 18px;
}

.bay-original-grid-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-top: 10px;
}

.bay-grid-toolbar {
  position: sticky;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.bay-grid-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 6px;
  color: rgba(244, 247, 250, 0.82);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.bay-grid-back:hover {
  border-color: rgba(50, 230, 120, 0.42);
  color: var(--green);
}

.bay-grid-back i {
  font-size: 17px;
}

.bay-grid-title h2,
.bay-grid-title span {
  display: block;
}

.bay-grid-title h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.bay-grid-title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.bay-grid-stats {
  display: flex;
  align-items: stretch;
}

.bay-grid-stats > div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 6px;
  align-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 0 10px;
  border-left: 1px solid rgba(210, 222, 232, 0.10);
}

.bay-grid-stats b {
  grid-row: span 2;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.bay-grid-stats span,
.bay-grid-stats strong {
  display: block;
}

.bay-grid-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.bay-grid-stats strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.map-command-row.map-command-compact.bay-grid-search {
  position: relative;
  min-height: 34px;
  padding: 0;
}

.bay-grid-search .map-search-popover {
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
}

.bay-original-grid {
  display: grid;
  grid-template-columns: 54px repeat(var(--rows), minmax(118px, 1fr));
  gap: 8px;
  min-width: min(100%, calc(54px + var(--rows) * 118px));
}

.bay-original-grid.repair {
  --rows: 10;
  grid-template-columns: 54px repeat(10, minmax(118px, 1fr));
}

.bay-original-row-label,
.bay-original-tier-label {
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 200, 242, 0.22);
  border-radius: 7px;
  background: rgba(38, 68, 91, 0.53);
  color: #9bc8f2;
  font-size: 11px;
  font-weight: 950;
}

.bay-original-row-label {
  min-height: 28px;
}

.bay-original-row-label.reserve {
  color: var(--amber);
  background: rgba(240, 196, 60, 0.10);
}

.bay-original-tier-label {
  min-height: 84px;
}

.bay-original-grid .container-slot {
  min-height: 84px;
  min-width: 118px;
}

.container-slot-hover {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .bay-original-grid .container-slot:not(.empty) {
    z-index: 1;
    transition: filter 150ms ease, opacity 150ms ease, transform 150ms ease;
    will-change: transform;
  }

  .bay-original-grid:has(.container-slot:not(.empty):hover) .container-slot:not(.empty) {
    opacity: 0.72;
  }

  .bay-original-grid .container-slot:not(.empty):hover,
  .bay-original-grid .container-slot:not(.empty):focus-visible {
    z-index: 8;
    opacity: 1;
    filter: brightness(1.08) saturate(1.08);
    outline: 2px solid rgba(50, 230, 120, 0.92);
    outline-offset: 2px;
    border-radius: 6px;
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(50, 230, 120, 0.10);
    transform: translateY(-4px) scale(1.025);
  }

  .bay-original-grid .container-slot:not(.empty):hover::before,
  .bay-original-grid .container-slot:not(.empty):focus-visible::before {
    box-shadow: 9px 11px 0 var(--container-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -10px 14px rgba(0, 0, 0, 0.12);
  }

  .bay-original-grid .container-slot-hover {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    bottom: auto;
    z-index: 12;
    display: grid;
    gap: 2px;
    width: max-content;
    min-width: 218px;
    max-width: 250px;
    padding: 10px 11px;
    border: 1px solid rgba(50, 230, 120, 0.34);
    border-radius: 6px;
    background: #0b151e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, -5px) scale(0.98);
    transition: opacity 120ms ease, transform 150ms ease;
  }

  .bay-original-grid .container-slot.tier-1 .container-slot-hover,
  .bay-original-grid .container-slot.tier-2 .container-slot-hover {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translate(-50%, 5px) scale(0.98);
  }

  .bay-original-grid .container-slot-hover > b,
  .bay-original-grid .container-slot-hover > small,
  .bay-original-grid .container-slot-hover > i,
  .bay-original-grid .container-slot-hover em,
  .bay-original-grid .container-slot-hover strong {
    position: static;
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-overflow: clip;
    text-shadow: none;
    white-space: normal;
  }

  .bay-original-grid .container-slot-hover > b {
    color: #fff;
    padding-right: 54px;
    font-size: 12px;
    font-weight: 950;
  }

  .bay-original-grid .container-slot-hover > i {
    position: absolute;
    top: 10px;
    right: 11px;
    color: var(--green);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
  }

  .bay-original-grid .container-slot-hover > small {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(210, 222, 232, 0.08);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
  }

  .bay-original-grid .container-slot-hover em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
  }

  .bay-original-grid .container-slot-hover strong {
    overflow: hidden;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bay-original-grid .container-slot:not(.empty):hover .container-slot-hover,
  .bay-original-grid .container-slot:not(.empty):focus-visible .container-slot-hover {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 760px) {
  .bay-original-card {
    padding: 6px 10px 14px;
  }

  .bay-grid-toolbar {
    grid-template-columns: auto minmax(120px, 1fr) auto;
  }

  .bay-grid-stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bay-grid-stats > div:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.container-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 12, 0.64);
  backdrop-filter: blur(8px);
}

.container-detail-dialog {
  position: relative;
  width: min(620px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgb(10, 16, 24);
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.42);
}

.container-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
}

.container-detail-dialog header strong,
.container-detail-dialog header span {
  display: block;
}

.container-detail-dialog header strong {
  color: var(--green);
  font-size: 28px;
  font-weight: 950;
}

.container-detail-dialog header span {
  margin-top: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.container-detail-dialog dl {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
}

.container-detail-dialog dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 5px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.08);
}

.container-detail-dialog dt,
.container-detail-dialog dd {
  margin: 0;
  color: rgba(220, 235, 245, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.container-detail-dialog dt {
  color: var(--muted);
}

.container-stack-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 0 22px 22px;
}

.container-stack-card,
.map-empty-panel {
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.32);
}

.container-stack-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.container-stack-card.highlight {
  border-color: rgba(224, 90, 80, 0.72);
}

.container-stack-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.container-stack-card header strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.container-stack-card header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.container-box-visual {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(50, 230, 120, 0.10), transparent 16%),
    linear-gradient(135deg, rgba(33, 92, 60, 0.88), rgba(23, 53, 73, 0.90));
}

.container-box-visual i {
  display: inline-block;
  width: 1px;
  height: 76px;
  margin-left: 16%;
  background: rgba(255, 255, 255, 0.16);
}

.container-box-visual b {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 950;
}

.map-empty-panel {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 22px;
  color: var(--muted);
  font-weight: 850;
}

.map-table-view {
  padding: 16px 22px 22px;
}

.map-data-table {
  table-layout: auto;
  min-width: 720px;
}

.map-table-scroll {
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.20);
}

.map-data-table td,
.map-data-table th {
  white-space: nowrap;
}

.map-data-table .highlight-row {
  outline: 1px solid rgba(224, 90, 80, 0.50);
  outline-offset: -1px;
}

.dashboard-map-preview {
  display: grid;
  gap: 10px;
  min-height: 500px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 30% 8%, rgba(50, 230, 120, 0.10), transparent 34%),
    radial-gradient(circle at 80% 95%, rgba(75, 156, 232, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(7, 16, 24, 0.98), rgba(12, 24, 34, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.18);
}

.dashboard-map-rails {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(210, 222, 232, 0.09);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.34);
}

.dashboard-map-rails span {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(70px, 92px);
  align-items: center;
  gap: 6px;
}

.dashboard-map-rails b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-map-rails i {
  position: relative;
  height: 10px;
  border-top: 1px solid rgba(220, 232, 240, 0.44);
  border-bottom: 1px solid rgba(220, 232, 240, 0.38);
}

.dashboard-map-rails i::before {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  border-top: 1px dashed rgba(220, 232, 240, 0.30);
}

.dashboard-map-rails strong {
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid rgba(50, 230, 120, 0.18);
  background: rgba(50, 230, 120, 0.18);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
}

.dashboard-yard-stage {
  display: grid;
  grid-template-columns: 1.18fr 0.98fr 0.98fr;
  gap: 14px;
  align-items: stretch;
  perspective: 900px;
}

.dashboard-yard-section {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 236px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 18%, rgba(255, 255, 255, 0.035) 82%, transparent),
    linear-gradient(180deg, rgba(17, 31, 42, 0.92), rgba(5, 13, 20, 0.78));
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-yard-section:hover {
  transform: translateY(-2px);
  border-color: rgba(50, 230, 120, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 34px rgba(0, 0, 0, 0.24);
}

.dashboard-yard-section::before,
.dashboard-yard-section::after {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 56px;
  width: 1px;
  border-left: 1px dashed rgba(210, 222, 232, 0.20);
}

.dashboard-yard-section::before {
  left: 50%;
}

.dashboard-yard-section::after {
  right: 9px;
}

.dashboard-yard-section header,
.dashboard-yard-section footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-yard-section span,
.dashboard-map-services span {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-yard-section header strong {
  padding: 4px 9px;
  border: 1px solid rgba(50, 230, 120, 0.22);
  border-radius: 999px;
  background: rgba(50, 230, 120, 0.10);
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
}

.dashboard-yard-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 18px;
  gap: 8px 7px;
  align-content: center;
  min-height: 144px;
  padding: 20px 22px 16px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(210, 222, 232, 0.10) 48% 49%, transparent 49%),
    linear-gradient(0deg, transparent 0 48%, rgba(210, 222, 232, 0.08) 48% 49%, transparent 49%),
    rgba(5, 10, 16, 0.34);
  transform: rotateX(10deg);
  transform-origin: center bottom;
}

.dashboard-yard-stack i {
  position: relative;
  display: block;
  min-height: 18px;
  border: 1px solid rgba(5, 10, 16, 0.58);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(75, 156, 232, 0.66), rgba(40, 92, 132, 0.78));
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -5px 8px rgba(0, 0, 0, 0.16);
}

.dashboard-yard-stack i::before {
  content: "";
  position: absolute;
  left: 7px;
  right: -4px;
  top: -6px;
  height: 6px;
  border: 1px solid rgba(5, 10, 16, 0.42);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(135deg, rgba(120, 176, 222, 0.72), rgba(40, 92, 132, 0.62));
  transform: skewX(-34deg);
}

.dashboard-yard-stack i::after {
  content: "";
  position: absolute;
  inset: 4px 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 8px);
  opacity: 0.75;
}

.dashboard-yard-stack i:nth-child(3n) {
  background: linear-gradient(145deg, rgba(50, 170, 92, 0.74), rgba(35, 105, 62, 0.84));
}

.dashboard-yard-stack i:nth-child(7n) {
  background: linear-gradient(145deg, rgba(198, 169, 48, 0.78), rgba(126, 105, 28, 0.86));
}

.dashboard-yard-stack i.tone-open {
  background: linear-gradient(145deg, rgba(49, 148, 82, 0.70), rgba(32, 86, 54, 0.82));
}

.dashboard-yard-stack i.tone-active {
  background: linear-gradient(145deg, rgba(70, 132, 190, 0.72), rgba(39, 81, 124, 0.84));
}

.dashboard-yard-stack i.tone-warning {
  background: linear-gradient(145deg, rgba(201, 170, 45, 0.76), rgba(126, 105, 28, 0.86));
}

.dashboard-yard-stack i.tone-danger {
  background: linear-gradient(145deg, rgba(176, 72, 66, 0.78), rgba(112, 43, 40, 0.88));
}

.dashboard-yard-stack i.tone-open::before {
  background: linear-gradient(135deg, rgba(82, 196, 118, 0.72), rgba(32, 86, 54, 0.62));
}

.dashboard-yard-stack i.tone-active::before {
  background: linear-gradient(135deg, rgba(109, 169, 224, 0.72), rgba(39, 81, 124, 0.62));
}

.dashboard-yard-stack i.tone-warning::before {
  background: linear-gradient(135deg, rgba(230, 201, 75, 0.72), rgba(126, 105, 28, 0.62));
}

.dashboard-yard-stack i.tone-danger::before {
  background: linear-gradient(135deg, rgba(214, 105, 96, 0.72), rgba(112, 43, 40, 0.62));
}

.dashboard-yard-stack b {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  background: rgba(10, 18, 26, 0.78);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.dashboard-yard-section footer small,
.dashboard-yard-section footer em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.dashboard-yard-lower {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) 1fr;
  gap: 10px;
  align-items: stretch;
}

.dashboard-yard-road {
  position: relative;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.08) 16% 17%, transparent 17% 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 16px),
    rgba(5, 10, 16, 0.34);
}

.dashboard-yard-road span {
  position: absolute;
  left: 50%;
  top: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 5px;
  background: rgba(10, 18, 26, 0.82);
  color: rgba(235, 240, 245, 0.82);
  font-size: 10px;
  font-weight: 850;
  transform: translateX(-50%);
}

.dashboard-yard-road i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  border-top: 1px dashed rgba(210, 222, 232, 0.22);
}

.dashboard-yard-road i:nth-of-type(1) {
  bottom: 22px;
}

.dashboard-yard-road i:nth-of-type(2) {
  bottom: 38px;
}

.dashboard-yard-road b {
  position: absolute;
  left: 20px;
  bottom: 11px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border: 1px solid rgba(75, 156, 232, 0.28);
  border-radius: 5px;
  background: rgba(75, 156, 232, 0.18);
  color: #b9dcff;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-map-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard-map-services a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 9px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
  color: inherit;
  text-decoration: none;
}

.dashboard-map-services i {
  color: var(--green);
  font-size: 20px;
}

.dashboard-map-services strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.dashboard-yard-blueprint .dashboard-yard-stage {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(210, 222, 232, 0.10) 0 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(210, 222, 232, 0.06) 0 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 26% 28%, rgba(50, 230, 120, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(8, 18, 26, 0.88), rgba(5, 12, 18, 0.96));
}

.dashboard-yard-blueprint .dashboard-yard-stage::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 88px;
  height: 1px;
  border-top: 1px solid rgba(210, 222, 232, 0.30);
}

.dashboard-yard-blueprint .dashboard-yard-section {
  position: absolute;
  gap: 7px;
  min-height: 0;
  padding: 9px;
  border-color: rgba(176, 194, 206, 0.72);
  background:
    linear-gradient(145deg, rgba(27, 43, 54, 0.96), rgba(8, 15, 22, 0.96));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.dashboard-yard-blueprint .dashboard-yard-section::before,
.dashboard-yard-blueprint .dashboard-yard-section::after {
  top: 34px;
  bottom: 32px;
  border-left-color: rgba(210, 222, 232, 0.16);
}

.dashboard-yard-blueprint .dashboard-yard-section.section-a {
  left: 154px;
  bottom: 62px;
  width: 37%;
  height: 178px;
}

.dashboard-yard-blueprint .dashboard-yard-section.section-b {
  left: 176px;
  top: 18px;
  width: 25%;
  height: 88px;
}

.dashboard-yard-blueprint .dashboard-yard-section.section-c {
  right: 136px;
  bottom: 58px;
  width: calc(52% - 196px);
  height: 184px;
}

.dashboard-yard-blueprint .dashboard-yard-section.section-e {
  left: 18px;
  top: 18px;
  width: 120px;
  height: 278px;
}

.dashboard-yard-blueprint .dashboard-yard-section header,
.dashboard-yard-blueprint .dashboard-yard-section footer {
  min-height: 18px;
}

.dashboard-yard-blueprint .dashboard-yard-section span {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dashboard-yard-blueprint .dashboard-yard-section header strong {
  padding: 2px 7px;
  font-size: 12px;
}

.dashboard-yard-blueprint .dashboard-yard-section footer small,
.dashboard-yard-blueprint .dashboard-yard-section footer em {
  font-size: 9px;
}

.dashboard-yard-blueprint .dashboard-yard-stack {
  min-height: 0;
  height: 110px;
  padding: 13px 15px 9px;
  grid-auto-rows: 12px;
  gap: 6px;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(210, 222, 232, 0.13) 48% 49%, transparent 49%),
    rgba(5, 10, 16, 0.42);
}

.dashboard-yard-blueprint .section-a .dashboard-yard-stack {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: 14px;
  height: 112px;
}

.dashboard-yard-blueprint .section-b .dashboard-yard-stack {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 10px;
  gap: 4px;
  height: 42px;
  padding: 9px 10px 6px;
}

.dashboard-yard-blueprint .section-c .dashboard-yard-stack {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 15px;
  height: 120px;
}

.dashboard-yard-blueprint .section-e .dashboard-yard-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 14px;
  gap: 5px 4px;
  align-content: center;
  height: 208px;
  padding: 11px 10px 8px;
}

.dashboard-yard-blueprint .section-b footer {
  display: none;
}

.dashboard-yard-blueprint .dashboard-yard-stack i {
  min-height: 8px;
  border-radius: 2px;
}

.dashboard-yard-blueprint .dashboard-yard-stack i::before {
  left: 5px;
  right: -3px;
  top: -5px;
  height: 5px;
}

.dashboard-yard-blueprint .section-b .dashboard-yard-stack i::before {
  top: -3px;
  height: 3px;
}

.dashboard-yard-blueprint .dashboard-yard-stack i:nth-child(n+33) {
  display: none;
}

.dashboard-yard-blueprint .section-b .dashboard-yard-stack i:nth-child(n+11),
.dashboard-yard-blueprint .section-c .dashboard-yard-stack i:nth-child(n+21) {
  display: none;
}

.dashboard-yard-blueprint .section-e .dashboard-yard-stack i:nth-child(n+33) {
  display: block;
}

.dashboard-yard-blueprint .section-e .dashboard-yard-stack i:nth-child(n+37) {
  display: none;
}

.dashboard-yard-blueprint .section-e header,
.dashboard-yard-blueprint .section-e footer {
  display: grid;
  gap: 2px;
}

.dashboard-yard-blueprint .section-e header {
  grid-template-columns: 1fr;
}

.dashboard-yard-blueprint .section-e header strong {
  justify-self: start;
}

.dashboard-yard-blueprint .section-e footer em {
  display: none;
}

.dashboard-yard-blueprint .dashboard-yard-stack b {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.dashboard-yard-blueprint .section-b .dashboard-yard-stack b {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.dashboard-yard-blueprint .dashboard-yard-road {
  position: absolute;
  left: 16px;
  right: 144px;
  bottom: 10px;
  min-height: 56px;
}

.dashboard-yard-blueprint .dashboard-yard-road span {
  top: -9px;
}

.dashboard-yard-blueprint .dashboard-map-services {
  display: contents;
}

.dashboard-yard-blueprint .dashboard-yard-service {
  position: absolute;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 7px;
  min-height: 0;
  padding: 8px;
  border-color: rgba(176, 194, 206, 0.36);
  background: rgba(10, 18, 26, 0.84);
}

.dashboard-yard-blueprint .dashboard-yard-service i {
  grid-row: span 2;
  font-size: 18px;
}

.dashboard-yard-blueprint .dashboard-yard-service span {
  font-size: 9px;
}

.dashboard-yard-blueprint .dashboard-yard-service strong {
  font-size: 12px;
}

.dashboard-yard-blueprint .dashboard-yard-service.service-d {
  left: 49%;
  bottom: 14px;
  width: 116px;
  height: 54px;
}

.dashboard-yard-blueprint .dashboard-yard-service.service-p {
  right: 18px;
  bottom: 14px;
  width: 112px;
  height: 54px;
}

.dashboard-yard-blueprint .dashboard-yard-service.service-o {
  right: 18px;
  top: 116px;
  width: 112px;
  height: 84px;
}

.tone-warning strong,
.tone-warning i {
  color: var(--amber);
}

.tone-danger strong,
.tone-danger i {
  color: var(--red);
}

.tone-active strong,
.tone-active i,
.tone-blue {
  color: var(--blue);
}

.handover-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(21, 34, 45, 0.94), rgba(8, 15, 23, 0.96));
}

.handover-strip strong,
.handover-strip span {
  display: block;
}

.handover-strip strong {
  color: var(--green);
  font-size: 17px;
  font-weight: 950;
}

.handover-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.handover-date {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(50, 230, 120, 0.35);
  border-radius: 7px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.10);
  font-size: 12px;
  font-weight: 950;
}

.handover-form-panel {
  margin: 18px 0;
}

.handover-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.65fr));
  gap: 10px;
}

.handover-form input,
.handover-form select,
.handover-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.55);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
}

.handover-form textarea {
  grid-column: 1 / -2;
  min-height: 72px;
  padding-top: 10px;
  resize: vertical;
}

.handover-form button {
  min-height: 72px;
  border-color: rgba(50, 230, 120, 0.45);
  background: rgba(50, 230, 120, 0.18);
}

.handover-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 16px;
}

.handover-list {
  display: grid;
  gap: 10px;
}

.handover-item {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.handover-item.priority-watch {
  border-left-color: var(--amber);
}

.handover-item.priority-important {
  border-left-color: var(--red);
}

.handover-item.is-done {
  opacity: 0.66;
}

.handover-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.handover-item-head strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.handover-item-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.handover-meta span {
  padding: 4px 8px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
}

.handover-item p {
  margin: 0;
  color: rgba(244, 247, 250, 0.84);
  font-size: 12px;
  line-height: 1.45;
}

.handover-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.handover-actions form {
  display: flex;
  margin: 0;
}

.handover-actions a,
.handover-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.predavka-page {
  display: grid;
  gap: 16px;
}

.predavka-shift-strip {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
  box-shadow: var(--shadow);
}

.predavka-shift-strip strong,
.predavka-shift-strip span {
  display: block;
}

.predavka-shift-strip strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.predavka-shift-strip span {
  margin-top: 2px;
  color: rgba(220, 230, 236, 0.90);
  font-size: 12px;
  font-weight: 800;
}

.predavka-shift-strip em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(50, 230, 120, 0.34);
  border-radius: 6px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.predavka-primary-button,
.predavka-dialog-actions button,
.predavka-detail-actions button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: rgb(6, 12, 16);
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.predavka-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.predavka-kpi-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 105px;
  padding: 16px;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, currentColor 18%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(21, 34, 45, 0.94), rgba(8, 15, 23, 0.96));
  box-shadow: var(--shadow);
}

.predavka-kpi-card strong,
.predavka-kpi-card span,
.predavka-kpi-card small {
  display: block;
}

.predavka-kpi-card strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.predavka-kpi-card span {
  margin-top: 8px;
  color: rgba(244, 247, 250, 0.90);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.predavka-kpi-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.predavka-content {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 16px;
  align-items: stretch;
}

.predavka-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
  box-shadow: var(--shadow);
}

.predavka-panel > header {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.predavka-panel > header strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.predavka-panel > header span {
  color: rgba(220, 235, 245, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.predavka-train-list,
.predavka-general-list,
.predavka-note-list {
  display: grid;
  gap: 10px;
}

.predavka-train-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(14, 21, 29, 0.93);
  color: rgba(245, 248, 250, 0.92);
  text-decoration: none;
}

.predavka-train-card:hover,
.predavka-train-card.active {
  color: rgba(245, 248, 250, 0.96);
  border-color: var(--green);
  background: rgba(22, 32, 43, 0.96);
}

.predavka-train-card.priority-watch { border-left-color: #b89b48; }
.predavka-train-card.priority-important { border-left-color: #b65f5f; }

.predavka-train-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.predavka-train-card strong {
  color: rgba(245, 248, 250, 0.94);
  font-size: 12px;
  font-weight: 950;
}

.predavka-train-card em {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.predavka-train-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.predavka-train-card small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(210, 222, 230, 0.80);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.predavka-detail h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 25px;
  font-weight: 950;
}

.predavka-status-line {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 950;
}

.predavka-status-line.priority-watch { color: #b89b48; border-left-color: #b89b48; }
.predavka-status-line.priority-important { color: #b65f5f; border-left-color: #b65f5f; }

.predavka-detail-grid {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 16px 0;
}

.predavka-detail-grid div {
  display: contents;
}

.predavka-detail-grid dt {
  color: rgba(170, 188, 200, 0.88);
  font-size: 10px;
  font-weight: 950;
}

.predavka-detail-grid dd {
  margin: 0;
  color: rgba(245, 248, 250, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.predavka-notes-title {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 248, 250, 0.92);
  font-size: 12px;
  font-weight: 950;
}

.predavka-note-list div,
.predavka-general-list a {
  padding: 10px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 7px;
  color: rgba(235, 240, 245, 0.91);
  background: rgba(14, 21, 29, 0.93);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.42;
}

.predavka-general-list a {
  display: grid;
  gap: 5px;
  border-left: 3px solid rgba(50, 230, 120, 0.58);
  text-decoration: none;
}

.predavka-general-list a.active,
.predavka-general-list a:hover {
  border-color: rgba(50, 230, 120, 0.88);
}

.predavka-general-list strong {
  color: rgba(245, 248, 250, 0.94);
  font-size: 12px;
  font-weight: 950;
}

.predavka-general-list span {
  color: rgba(235, 240, 245, 0.82);
  font-size: 11px;
}

.predavka-add-note,
.predavka-general-form {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.predavka-add-note textarea,
.predavka-general-form textarea,
.predavka-dialog-form input,
.predavka-dialog-form select,
.predavka-dialog-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 15, 21, 0.96);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 750;
}

.predavka-add-note textarea,
.predavka-general-form textarea {
  min-height: 76px;
  resize: vertical;
}

.predavka-add-note button,
.predavka-general-form button,
.predavka-detail-actions button,
.predavka-detail-links a,
.predavka-detail-links button,
.predavka-dialog-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 7px;
  color: #fff;
  background: rgba(18, 28, 40, 0.93);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.predavka-detail-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.predavka-detail-actions form,
.predavka-detail-links form {
  margin: 0;
}

.predavka-detail-actions button,
.predavka-detail-links button {
  width: 100%;
}

.predavka-detail-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.predavka-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(3, 7, 11, 0.72);
  backdrop-filter: blur(10px);
}

.predavka-modal {
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 10px;
  background: rgb(9, 14, 20);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.predavka-modal > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.predavka-modal > header strong,
.predavka-modal > header span {
  display: block;
}

.predavka-modal > header strong {
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.predavka-modal > header span {
  margin-top: 3px;
  color: rgba(220, 230, 236, 0.90);
  font-size: 13px;
  font-weight: 800;
}

.predavka-modal > header a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 28, 40, 0.93);
  text-decoration: none;
}

.predavka-dialog-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.96);
}

.predavka-dialog-form label {
  display: grid;
  gap: 6px;
}

.predavka-dialog-form label span {
  color: rgba(245, 248, 250, 0.88);
  font-size: 11px;
  font-weight: 950;
}

.predavka-dialog-form .wide {
  grid-column: 1 / -1;
}

.predavka-dialog-form textarea {
  min-height: 130px;
  resize: vertical;
}

.predavka-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.predavka-page {
  gap: 18px;
}

.predavka-shift-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  min-height: 92px;
  padding: 18px 20px;
  border-left: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(50, 230, 120, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(18, 29, 39, 0.98), rgba(6, 12, 18, 0.98));
}

.predavka-shift-strip strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.predavka-shift-strip nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.predavka-shift-strip em {
  gap: 7px;
  min-height: 40px;
  border-radius: 8px;
}

.predavka-primary-button {
  gap: 7px;
  min-height: 40px;
  border-radius: 8px;
}

.predavka-kpi-card {
  min-height: 96px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 20%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(23, 34, 44, 0.98), rgba(8, 14, 21, 0.98));
}

.predavka-content {
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.35fr) minmax(280px, 0.9fr);
}

.predavka-panel {
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 25, 34, 0.98), rgba(8, 14, 20, 0.98));
}

.predavka-panel > header {
  margin-bottom: 14px;
}

.predavka-panel > header > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.predavka-panel > header > div > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.12);
  font-size: 18px;
}

.predavka-train-list,
.predavka-general-list,
.predavka-note-list {
  gap: 9px;
}

.predavka-train-card {
  gap: 8px;
  min-height: 96px;
  padding: 12px;
  border-left-width: 3px;
  background: rgba(7, 13, 20, 0.66);
}

.predavka-train-card:hover,
.predavka-train-card.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.predavka-train-card span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(220, 235, 245, 0.72);
}

.predavka-train-card span b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  color: rgba(235, 245, 250, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 900;
}

.predavka-detail {
  display: grid;
  gap: 13px;
}

.predavka-detail h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.predavka-status-line {
  border-radius: 8px;
  background: rgba(50, 230, 120, 0.09);
}

.predavka-detail-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.predavka-detail-grid div {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.predavka-note-list div,
.predavka-general-list a {
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.62);
}

.predavka-add-note {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: stretch;
}

.predavka-add-note textarea {
  min-height: 58px;
}

.predavka-add-note button,
.predavka-general-form button {
  border-color: rgba(50, 230, 120, 0.28);
  background: rgba(50, 230, 120, 0.12);
}

.predavka-detail-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.predavka-detail-actions button,
.predavka-detail-links a,
.predavka-detail-links button {
  border-radius: 8px;
}

.predavka-general-form {
  grid-template-columns: minmax(0, 1fr);
}

.empty-state.compact {
  min-height: 110px;
  padding: 18px;
  text-align: center;
}

.extra-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.extra-category-card {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, currentColor 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(21, 34, 45, 0.94), rgba(8, 15, 23, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.extra-category-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px 16px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.38;
}

.extra-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 15%, transparent);
}

.extra-card-icon i {
  color: currentColor;
  font-size: 29px;
}

.extra-category-card h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.extra-category-card p {
  min-height: 42px;
  margin: 9px 0 18px;
  color: rgba(244, 247, 250, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.extra-category-card div:last-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.extra-category-card div:last-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.extra-category-card div:last-child strong {
  color: currentColor;
  font-size: 25px;
  line-height: 1;
}

.extra-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
}

.dalsi-page {
  display: grid;
  gap: 16px;
}

.dalsi-header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15, 24, 33, 0.95), rgba(9, 15, 22, 0.95));
  box-shadow: var(--shadow);
}

.dalsi-header-panel strong,
.dalsi-header-panel span {
  display: block;
}

.dalsi-header-panel strong {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
}

.dalsi-header-panel span {
  margin-top: 2px;
  color: rgba(220, 235, 245, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.dalsi-header-panel em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(50, 230, 120, 0.32);
  border-radius: 8px;
  color: var(--green);
  background: rgba(50, 230, 120, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.dalsi-panel,
.dalsi-detail-panel,
.dalsi-evidence-form,
.dalsi-evidence-table {
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(50, 230, 120, 0.07), transparent 38%),
    linear-gradient(135deg, rgba(24, 34, 42, 0.92), rgba(9, 15, 22, 0.96));
  box-shadow: var(--shadow);
}

.dalsi-panel {
  min-height: 510px;
  padding: 16px;
}

.dalsi-panel > header,
.dalsi-evidence-form > header,
.dalsi-evidence-table > header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.dalsi-panel > header strong,
.dalsi-evidence-form > header strong,
.dalsi-evidence-table > header strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.dalsi-panel > header span,
.dalsi-evidence-form > header span,
.dalsi-evidence-table > header span {
  color: rgba(210, 224, 236, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.dalsi-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dalsi-category-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 255px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: currentColor;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, currentColor 18%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(18, 29, 40, 0.96), rgba(7, 13, 20, 0.98));
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dalsi-category-card:hover {
  color: currentColor;
  border-color: color-mix(in srgb, currentColor 48%, transparent);
  transform: translateY(-2px);
}

.dalsi-category-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.42;
}

.dalsi-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.dalsi-card-icon i {
  color: currentColor;
  font-size: 31px;
}

.dalsi-category-card h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.dalsi-category-card p {
  min-height: 64px;
  margin: 10px 0 22px;
  color: rgba(244, 247, 250, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.dalsi-category-card div:last-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.dalsi-category-card div:last-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dalsi-category-card div:last-child strong {
  color: currentColor;
  font-size: 26px;
  line-height: 1;
}

.dalsi-planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 430px;
  align-content: start;
}

.dalsi-planning-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: currentColor;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, currentColor 18%, transparent), transparent 38%),
    linear-gradient(135deg, rgba(18, 29, 40, 0.96), rgba(7, 13, 20, 0.98));
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.dalsi-planning-card:hover {
  border-color: color-mix(in srgb, currentColor 48%, transparent);
  transform: translateY(-2px);
}

.dalsi-planning-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.dalsi-planning-card p {
  min-height: 58px;
  margin: 10px 0 22px;
  color: rgba(244, 247, 250, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.dalsi-planning-card > span {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: currentColor;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dalsi-planning-card.is-disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

.shift-plan-board {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.shift-plan-toolbar,
.shift-plan-summary > div,
.shift-plan-checks section,
.shift-plan-pairs,
.shift-plan-crews,
.shift-plan-form {
  min-width: 0;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(10, 18, 26, 0.86);
}

.shift-plan-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.shift-plan-toolbar > a,
.shift-plan-toolbar button,
.shift-plan-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.shift-plan-toolbar > a.shift-plan-nav {
  width: 38px;
  padding: 0;
}

.shift-plan-toolbar .shift-plan-reset-button {
  color: #ff7a7a;
}

.shift-plan-toolbar label {
  display: grid;
  gap: 2px;
  min-width: 170px;
}

.shift-plan-toolbar label span,
.shift-plan-actions span {
  color: rgba(244, 247, 250, 0.62);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.shift-plan-toolbar input {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 850;
}

.shift-plan-toolbar strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.shift-plan-back {
  margin-left: auto;
}

.shift-plan-hidden-form {
  display: none;
}

.shift-plan-standby {
  position: relative;
  z-index: 20;
  justify-self: start;
  width: min(100%, 560px);
}

.shift-plan-standby[open] {
  z-index: 90;
}

.shift-plan-standby summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(32, 213, 210, 0.44);
  border-radius: 8px;
  background: rgba(32, 213, 210, 0.12);
  color: #8ff3f1;
  font-size: 12px;
  font-weight: 950;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.shift-plan-standby summary::-webkit-details-marker {
  display: none;
}

.shift-plan-standby-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  cursor: default;
}

.shift-plan-standby summary,
.shift-plan-standby-menu {
  position: relative;
  z-index: 2;
}

.shift-plan-standby-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 12px;
  width: min(92vw, 560px);
  padding: 12px;
  border: 1px solid rgba(32, 213, 210, 0.28);
  border-radius: 8px;
  background: rgba(8, 15, 22, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.shift-plan-standby-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.shift-plan-standby-fields label {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.shift-plan-standby-fields label span {
  color: rgba(244, 247, 250, 0.70);
  font-size: 11px;
  font-weight: 900;
}

.shift-plan-standby-menu small {
  color: rgba(32, 213, 210, 0.74);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-plan-standby-menu select {
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.74);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.shift-plan-standby-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.shift-plan-standby-actions button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 0 12px;
  border: 1px solid rgba(32, 213, 210, 0.42);
  border-radius: 8px;
  background: rgba(32, 213, 210, 0.16);
  color: #8ff3f1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.shift-plan-pairs,
.shift-plan-crews {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.shift-plan-pairs header,
.shift-plan-crews header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shift-plan-pairs header strong,
.shift-plan-pairs header span,
.shift-plan-crews header strong,
.shift-plan-crews header span {
  display: block;
}

.shift-plan-pairs header strong,
.shift-plan-pairs article > strong,
.shift-plan-crews header strong,
.shift-plan-crews article > strong {
  color: #fff;
  font-weight: 950;
}

.shift-plan-pairs header span,
.shift-plan-pairs label span,
.shift-plan-standby label span,
.shift-plan-crews header span,
.shift-plan-crews label span,
.shift-plan-crews p {
  color: rgba(244, 247, 250, 0.58);
  font-size: 11px;
  font-weight: 850;
}

.shift-plan-pairs header button,
.shift-plan-crews header button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.shift-plan-pairs > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shift-plan-crews > div {
  display: grid;
  gap: 10px;
}

.shift-plan-pairs article,
.shift-plan-crews article {
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.shift-plan-pairs article {
  grid-template-columns: 120px repeat(2, minmax(0, 1fr));
}

.shift-plan-crews article {
  grid-template-columns: 120px repeat(4, minmax(0, 1fr));
}

.shift-plan-pairs label,
.shift-plan-crews label {
  display: grid;
  gap: 5px;
}

.shift-plan-pairs select,
.shift-plan-crews select {
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.shift-plan-crews p {
  margin: 0;
}

.shift-plan-crews p strong {
  color: rgba(244, 247, 250, 0.82);
}

.shift-plan-crews p span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(244, 247, 250, 0.78);
  font-size: 11px;
  font-weight: 850;
}

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

.shift-plan-summary > div {
  display: grid;
  gap: 3px;
  padding: 14px;
}

.shift-plan-summary span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-plan-summary strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.shift-plan-checks {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.shift-plan-checks section {
  min-height: 160px;
  padding: 14px;
}

.shift-plan-checks header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 950;
}

.shift-plan-checks p {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.shift-plan-tail {
  display: grid;
  gap: 8px;
}

.shift-plan-tail article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: center;
}

.shift-plan-tail span {
  color: rgba(244, 247, 250, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.shift-plan-tail div {
  display: grid;
  grid-template-columns: repeat(14, 22px);
  gap: 3px;
}

.shift-plan-tail i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 250, 0.62);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.shift-plan-form {
  overflow: hidden;
}

.shift-plan-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.shift-plan-table-head strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.shift-plan-table-head span {
  display: block;
  margin-top: 3px;
  color: rgba(220, 235, 245, 0.66);
  font-size: 11px;
  font-weight: 850;
}

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

.shift-plan-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: rgba(244, 247, 250, 0.86);
}

.shift-plan-table th,
.shift-plan-table td {
  min-width: 50px;
  padding: 5px;
  border-right: 1px solid rgba(210, 222, 232, 0.08);
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
  text-align: center;
}

.shift-plan-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111d28;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.shift-plan-table thead th:first-child,
.shift-plan-table tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 170px;
  background: #0f1a24;
  text-align: left;
}

.shift-plan-table thead th:first-child {
  z-index: 4;
}

.shift-plan-table th span,
.shift-plan-table th small {
  display: block;
}

.shift-plan-table th small {
  color: rgba(244, 247, 250, 0.54);
  font-size: 10px;
  text-transform: uppercase;
}

.shift-plan-table tbody th strong,
.shift-plan-table tbody th span {
  display: block;
}

.shift-plan-table tbody th strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.shift-plan-table tbody th span {
  color: rgba(244, 247, 250, 0.55);
  font-size: 11px;
  font-weight: 800;
}

.shift-plan-table .weekend,
.shift-plan-table .holiday {
  background: rgba(240, 196, 60, 0.08);
}

.shift-plan-table .holiday {
  background: rgba(224, 76, 76, 0.10);
}

.shift-plan-table select {
  width: 46px;
  height: 34px;
  appearance: none;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 250, 0.78);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-align-last: center;
  line-height: 1;
  cursor: pointer;
}

.shift-plan-table select option {
  background: #fff;
  color: #101b24;
  font-weight: 850;
  text-align: center;
}

.shift-plan-table td.code-R,
.shift-plan-table select.code-R,
.shift-plan-table select:has(option[value="R"]:checked),
.shift-plan-tail .code-R {
  background: rgba(50, 230, 120, 0.16);
  color: var(--green);
}

.shift-plan-table td.code-O,
.shift-plan-table select.code-O,
.shift-plan-table select:has(option[value="O"]:checked),
.shift-plan-tail .code-O {
  background: rgba(75, 156, 232, 0.16);
  color: var(--blue);
}

.shift-plan-table td.code-N,
.shift-plan-table select.code-N,
.shift-plan-table select:has(option[value="N"]:checked),
.shift-plan-tail .code-N {
  background: rgba(138, 109, 233, 0.18);
  color: #bca7ff;
}

.shift-plan-table td.code-12,
.shift-plan-table select.code-12,
.shift-plan-table select:has(option[value="12"]:checked),
.shift-plan-tail .code-12 {
  background: rgba(240, 126, 64, 0.16);
  color: #ffb088;
}

.shift-plan-table td.code-X,
.shift-plan-table select.code-X,
.shift-plan-table select:has(option[value="X"]:checked),
.shift-plan-tail .code-X {
  background: rgba(240, 196, 60, 0.16);
  color: var(--amber);
}

.shift-plan-table td.is-standby {
  background: rgba(32, 213, 210, 0.18);
  box-shadow: inset 0 0 0 2px rgba(32, 213, 210, 0.58);
}

.shift-plan-table td.is-standby select {
  border-color: rgba(32, 213, 210, 0.74);
}

.shift-plan-table th.issue-red,
.shift-plan-table td.issue-red {
  background: rgba(224, 76, 76, 0.18);
  box-shadow: inset 0 0 0 1px rgba(224, 76, 76, 0.72);
}

.shift-plan-table th.issue-red span,
.shift-plan-table th.issue-red small {
  color: #ff9a90;
}

.shift-plan-table td.issue-red select {
  border-color: rgba(224, 76, 76, 0.78);
  background: rgba(224, 76, 76, 0.18);
  color: #ffd3ce;
}

.shift-plan-table .is-over {
  color: var(--amber);
  font-weight: 950;
}

.shift-plan-table .is-under {
  color: var(--blue);
  font-weight: 950;
}

.shift-plan-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.shift-plan-extra-employees {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.shift-plan-extra-employees > header,
.shift-plan-extra-employees form,
.shift-plan-extra-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shift-plan-extra-employees strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.shift-plan-extra-employees label {
  display: grid;
  gap: 4px;
  min-width: min(340px, 100%);
}

.shift-plan-extra-employees label span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-plan-extra-employees select {
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.shift-plan-extra-employees select option {
  background: #fff;
  color: #101b24;
}

.shift-plan-extra-employees button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(75, 156, 232, 0.18);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.shift-plan-extra-employees button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shift-plan-extra-list form {
  padding: 6px 8px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.shift-plan-extra-list span {
  color: rgba(244, 247, 250, 0.82);
  font-size: 12px;
  font-weight: 850;
}

.shift-plan-extra-list button {
  width: 28px;
  min-height: 28px;
  padding: 0;
  background: rgba(224, 76, 76, 0.14);
  color: #ff9288;
}

.evaluation-board {
  display: grid;
  gap: 16px;
}

.evaluation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.evaluation-summary div,
.evaluation-group,
.evaluation-detail,
.evaluation-form,
.evaluation-history {
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 10%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(16, 27, 38, 0.94), rgba(6, 12, 18, 0.96));
}

.evaluation-summary div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  min-height: 86px;
  padding: 14px;
}

.evaluation-summary i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: currentColor;
  font-size: 20px;
}

.evaluation-summary span,
.evaluation-summary strong {
  display: block;
}

.evaluation-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.evaluation-summary strong {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.evaluation-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.evaluation-group {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.evaluation-group > header,
.evaluation-detail > header,
.evaluation-history > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.evaluation-group > header strong,
.evaluation-group > header span,
.evaluation-detail h2,
.evaluation-detail span,
.evaluation-history > header strong,
.evaluation-history > header span {
  display: block;
}

.evaluation-group > header strong,
.evaluation-history > header strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.evaluation-group > header span,
.evaluation-detail span,
.evaluation-history > header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.evaluation-group > header i {
  color: currentColor;
  font-size: 24px;
}

.evaluation-people-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.evaluation-people-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  text-decoration: none;
}

.evaluation-people-list a.is-positive {
  border-color: rgba(81, 204, 75, 0.25);
  background: rgba(81, 204, 75, 0.08);
}

.evaluation-people-list a.is-negative {
  border-color: rgba(233, 83, 67, 0.28);
  background: rgba(233, 83, 67, 0.08);
}

.evaluation-people-list strong,
.evaluation-people-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evaluation-people-list strong {
  font-size: 13px;
  font-weight: 950;
}

.evaluation-people-list span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.evaluation-people-list em {
  grid-row: span 2;
  align-self: center;
  min-width: 44px;
  color: currentColor;
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.evaluation-detail {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.evaluation-detail h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
}

.evaluation-detail > header a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.evaluation-score {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 76px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.evaluation-score.is-positive { color: var(--green); }
.evaluation-score.is-negative { color: var(--red); }

.evaluation-score span,
.evaluation-score strong {
  margin: 0;
  display: block;
}

.evaluation-score strong {
  color: currentColor;
  font-size: 26px;
  font-weight: 950;
}

.evaluation-month-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.evaluation-month-toolbar > a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 28, 40, 0.72);
  text-decoration: none;
}

.evaluation-month-toolbar form {
  margin: 0;
}

.evaluation-month-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.evaluation-month-toolbar label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.evaluation-month-toolbar input {
  min-height: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.evaluation-month-toolbar > strong {
  padding: 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.evaluation-detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.evaluation-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.evaluation-form label {
  display: grid;
  gap: 6px;
}

.evaluation-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.evaluation-form input,
.evaluation-form select,
.evaluation-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.evaluation-form textarea {
  min-height: 116px;
  padding: 10px 11px;
  resize: vertical;
}

.evaluation-form button {
  justify-content: center;
  min-height: 42px;
  border-color: rgba(81, 204, 75, 0.34);
  background: rgba(81, 204, 75, 0.13);
  color: #fff;
}

.evaluation-history {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.evaluation-history > div {
  display: grid;
  gap: 9px;
}

.evaluation-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-left: 4px solid rgba(210, 222, 232, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.evaluation-note.is-positive { border-left-color: var(--green); }
.evaluation-note.is-negative { border-left-color: var(--red); }
.evaluation-note.is-general { border-left-color: var(--blue); }

.evaluation-note strong,
.evaluation-note span,
.evaluation-note p {
  display: block;
}

.evaluation-note strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.evaluation-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.evaluation-note p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(235, 245, 250, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.evaluation-note form {
  margin: 0;
}

.evaluation-note button {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(233, 83, 67, 0.24);
  background: rgba(233, 83, 67, 0.08);
  color: #ff8a7f;
}

.evaluation-month-table,
.evaluation-history-toggle {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 8%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(16, 27, 38, 0.94), rgba(6, 12, 18, 0.96));
}

.evaluation-history-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.evaluation-history-toggle summary::-webkit-details-marker {
  display: none;
}

.evaluation-history-toggle summary span,
.evaluation-history-toggle summary strong,
.evaluation-history-toggle summary em {
  display: block;
}

.evaluation-history-toggle summary strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.evaluation-history-toggle summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.evaluation-history-toggle summary i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  color: var(--green);
  transition: transform 0.18s ease;
}

.evaluation-history-toggle[open] summary i {
  transform: rotate(180deg);
}

.evaluation-month-table > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.evaluation-month-table > header strong,
.evaluation-month-table > header span {
  display: block;
}

.evaluation-month-table > header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.evaluation-month-table > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.evaluation-month-table > div,
.evaluation-history-toggle > div {
  overflow: auto;
  border: 1px solid rgba(210, 222, 232, 0.08);
  border-radius: 8px;
}

.evaluation-month-table table,
.evaluation-history-toggle table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.evaluation-month-table th,
.evaluation-month-table td,
.evaluation-history-toggle th,
.evaluation-history-toggle td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
  color: rgba(244, 247, 250, 0.82);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.evaluation-month-table th,
.evaluation-history-toggle th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.evaluation-month-table tr:last-child td,
.evaluation-history-toggle tr:last-child td {
  border-bottom: 0;
}

.evaluation-month-table tr.is-positive td strong { color: var(--green); }
.evaluation-month-table tr.is-negative td strong { color: var(--red); }
.evaluation-month-table tr.is-general td strong { color: var(--blue); }
.evaluation-history-toggle tr.is-positive td strong { color: var(--green); }
.evaluation-history-toggle tr.is-negative td strong { color: var(--red); }
.evaluation-history-toggle tr.is-general td strong { color: var(--blue); }

.evaluation-history-toggle form {
  margin: 0;
}

.evaluation-history-toggle button {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(233, 83, 67, 0.24);
  background: rgba(233, 83, 67, 0.08);
  color: #ff8a7f;
}

.employee-board,
.employee-list-panel,
.employee-profile {
  display: grid;
  gap: 16px;
}

.employee-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.employee-summary-strip > div,
.employee-category-card,
.employee-list-panel,
.employee-profile,
.employee-form,
.employee-training-panel {
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 9%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(16, 27, 38, 0.94), rgba(6, 12, 18, 0.96));
}

.employee-summary-strip > div {
  min-height: 76px;
  padding: 14px;
}

.employee-summary-strip span,
.employee-summary-strip strong {
  display: block;
}

.employee-summary-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-summary-strip strong {
  margin-top: 6px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

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

.employee-category-card {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 18px;
  color: currentColor;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.employee-category-card-add {
  border-color: rgba(81, 204, 75, 0.26);
  background:
    linear-gradient(135deg, rgba(81, 204, 75, 0.14), rgba(9, 18, 24, 0.96)),
    rgba(8, 14, 20, 0.96);
}

.employee-category-card:hover {
  color: currentColor;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  transform: translateY(-2px);
}

.employee-category-card h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.employee-category-card p {
  min-height: 46px;
  margin: 10px 0 18px;
  color: rgba(244, 247, 250, 0.72);
  font-size: 13px;
  line-height: 1.42;
}

.employee-category-card > div:last-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.employee-category-card > div:last-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-category-card > div:last-child strong {
  color: currentColor;
  font-size: 25px;
  line-height: 1;
}

.employee-list-panel,
.employee-profile {
  padding: 16px;
}

.employee-list-panel > header,
.employee-profile > header,
.employee-form > header,
.employee-training-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.employee-list-panel > header strong,
.employee-profile h2,
.employee-form > header strong,
.employee-training-panel > header strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.employee-list-panel > header strong {
  margin-top: 8px;
  font-size: 22px;
}

.employee-profile h2 {
  margin: 8px 0 0;
  font-size: 30px;
}

.employee-list-panel > header span,
.employee-profile > header span,
.employee-form > header span,
.employee-training-panel > header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.employee-list-panel > header a,
.employee-profile > header a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.employee-list-grid,
.employee-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.employee-list-grid-cards {
  grid-template-columns: minmax(0, 1fr);
}

.employee-profile-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.employee-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.employee-list a {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 116px;
  padding: 12px 86px 12px 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(6, 12, 18, 0.72);
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.employee-list a:hover {
  border-color: color-mix(in srgb, currentColor 36%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(6, 12, 18, 0.84);
  transform: translateY(-1px);
}

.employee-list a.is-archived {
  opacity: 0.72;
}

.employee-card-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.employee-card-avatar i {
  font-size: 22px;
}

.employee-card-main,
.employee-card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.employee-card-main {
  align-content: start;
}

.employee-card-meta {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  padding-top: 6px;
  border-top: 1px solid rgba(210, 222, 232, 0.08);
}

.employee-card-main strong,
.employee-card-main span,
.employee-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-card-main strong {
  font-size: 15px;
  font-weight: 950;
}

.employee-card-main span,
.employee-card-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.employee-list em {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 24px;
  padding: 5px 8px 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: color-mix(in srgb, currentColor 88%, #fff);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-hire-panel {
  max-width: 1120px;
}

.employee-detail-shell {
  padding: 0;
  border: 0;
  background: transparent;
}

.employee-detail-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(51, 87, 112, 0.38), rgba(10, 18, 28, 0.96) 52%, rgba(15, 32, 30, 0.92)),
    rgba(8, 14, 20, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 80px rgba(0, 0, 0, 0.26);
}

.employee-detail-headline {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
}

.employee-detail-headline > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.employee-detail-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, currentColor 22%, transparent), rgba(255, 255, 255, 0.05));
  color: currentColor;
}

.employee-detail-avatar i {
  font-size: 38px;
}

.employee-detail-headline h2 {
  margin: 0;
  max-width: min(760px, 70vw);
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.98;
  font-weight: 950;
}

.employee-detail-headline span {
  display: block;
  margin-top: 8px;
  color: rgba(244, 247, 250, 0.74);
  font-size: 14px;
  font-weight: 850;
}

.employee-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.employee-detail-actions form {
  margin: 0;
}

.employee-edit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(50, 230, 120, 0.34);
  border-radius: 8px;
  background: rgba(50, 230, 120, 0.13);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.employee-edit-action:hover {
  color: #fff;
  border-color: rgba(50, 230, 120, 0.58);
  background: rgba(50, 230, 120, 0.2);
}

.employee-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 250, 0.86);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-status-pill.is-active {
  border-color: rgba(50, 230, 120, 0.35);
  background: rgba(50, 230, 120, 0.13);
  color: #7cffac;
}

.employee-status-pill.is-archived {
  border-color: rgba(240, 196, 60, 0.3);
  background: rgba(240, 196, 60, 0.1);
  color: #ffd873;
}

.employee-profile-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.employee-profile-overview article,
.employee-profile-snapshot article {
  min-width: 0;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024)),
    rgba(7, 13, 20, 0.78);
}

.employee-profile-overview article {
  min-height: 104px;
  padding: 14px;
}

.employee-profile-overview span,
.employee-profile-overview strong,
.employee-profile-overview em {
  display: block;
  min-width: 0;
}

.employee-profile-overview span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-profile-overview strong {
  margin-top: 8px;
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-profile-overview em {
  margin-top: 6px;
  color: color-mix(in srgb, currentColor 72%, #fff);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.employee-profile-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.employee-profile-snapshot article {
  padding: 14px;
}

.employee-profile-snapshot header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #fff;
}

.employee-profile-snapshot header i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.employee-profile-snapshot header strong {
  font-size: 13px;
  font-weight: 950;
}

.employee-profile-snapshot dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.employee-profile-snapshot dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-height: 26px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
}

.employee-profile-snapshot dt,
.employee-profile-snapshot dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-profile-snapshot dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-profile-snapshot dd,
.employee-note-card p {
  color: rgba(244, 247, 250, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.employee-note-card {
  display: grid;
  align-content: start;
  gap: 9px;
}

.employee-note-card p {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.45;
}

.employee-training-overview-card {
  grid-column: 1 / -1;
}

.employee-training-overview-list,
.employee-training-add-form,
.employee-training-inline-form {
  display: grid;
  gap: 8px;
}

.employee-training-overview-row {
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.employee-training-overview-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.employee-training-overview-row summary::-webkit-details-marker {
  display: none;
}

.employee-training-overview-row summary div,
.employee-training-overview-row summary strong,
.employee-training-overview-row summary span,
.employee-training-overview-row summary small {
  display: block;
  min-width: 0;
}

.employee-training-overview-row summary strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-training-overview-row summary span,
.employee-training-overview-row summary small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.employee-training-overview-row summary em {
  min-width: 76px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: currentColor;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.employee-training-overview-row[open] {
  border-color: color-mix(in srgb, currentColor 34%, transparent);
  background: rgba(255, 255, 255, 0.055);
}

.employee-training-inline-form,
.employee-training-add-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
  border-top: 1px solid rgba(210, 222, 232, 0.08);
}

.employee-training-add-form {
  margin-top: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.employee-training-inline-form label,
.employee-training-add-form label {
  display: grid;
  gap: 6px;
}

.employee-training-inline-form label span,
.employee-training-add-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-training-inline-form input,
.employee-training-add-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.employee-training-inline-form .wide,
.employee-training-add-form .wide,
.employee-training-inline-form button,
.employee-training-add-form button {
  grid-column: 1 / -1;
}

.employee-training-inline-form button,
.employee-training-add-form button,
.employee-training-delete-form button {
  justify-content: center;
  min-height: 38px;
  border-color: rgba(81, 204, 75, 0.34);
  background: rgba(81, 204, 75, 0.13);
  color: #fff;
}

.employee-training-delete-form {
  display: grid;
  padding: 0 10px 10px;
}

.employee-training-delete-form button {
  border-color: rgba(233, 83, 67, 0.28);
  background: rgba(233, 83, 67, 0.10);
  color: #ffb0a8;
}

.employee-hire-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.employee-hire-form > header,
.employee-hire-form .employee-form-section,
.employee-hire-form .wide,
.employee-hire-form button {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .employee-detail-hero {
    flex-direction: column;
  }

  .employee-detail-actions {
    flex-direction: row;
    align-items: center;
  }

  .employee-profile-overview,
  .employee-profile-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-note-card {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .employee-detail-hero,
  .employee-profile-snapshot article,
  .employee-profile-overview article {
    padding: 12px;
  }

  .employee-detail-headline > div {
    align-items: flex-start;
  }

  .employee-detail-avatar {
    width: 50px;
    height: 50px;
  }

  .employee-detail-avatar i {
    font-size: 28px;
  }

  .employee-detail-headline h2 {
    max-width: 100%;
    font-size: 28px;
  }

  .employee-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-profile-overview,
  .employee-profile-snapshot {
    grid-template-columns: 1fr;
  }

  .employee-training-inline-form,
  .employee-training-add-form {
    grid-template-columns: 1fr;
  }

  .employee-training-overview-row summary {
    grid-template-columns: 1fr;
  }

  .employee-training-overview-row summary em {
    justify-self: start;
  }

  .employee-profile-snapshot dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .employee-list {
    grid-template-columns: 1fr;
  }

  .employee-list a {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-right: 12px;
  }

  .employee-list em {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
  }

  .employee-card-meta {
    grid-column: 1 / -1;
  }
}

.employee-form,
.employee-training-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.employee-form label,
.employee-training-form label {
  display: grid;
  gap: 6px;
}

.employee-form label span,
.employee-training-form label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-form-section {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-top: 2px;
  border-top: 1px solid rgba(210, 222, 232, 0.10);
}

.employee-form-section strong {
  padding-top: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-form input,
.employee-form select,
.employee-form textarea,
.employee-training-form input,
.employee-training-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.54);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
}

.employee-password-field {
  align-content: start;
}

.employee-password-strength {
  --strength-color: rgba(170, 185, 196, 0.34);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 18px;
}

.employee-password-strength > span {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.employee-password-strength i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(170, 185, 196, 0.22);
  transition: background-color 140ms ease;
}

.employee-password-strength em {
  min-width: 74px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

.employee-password-strength[data-state="weak"],
.employee-password-strength[data-state="mismatch"] {
  --strength-color: #e56a5f;
}

.employee-password-strength[data-state="fair"] {
  --strength-color: #d5a130;
}

.employee-password-strength[data-state="good"] {
  --strength-color: #4c91d7;
}

.employee-password-strength[data-state="strong"] {
  --strength-color: #43b66f;
}

.employee-password-strength[data-score="1"] i:nth-child(1),
.employee-password-strength[data-score="2"] i:nth-child(-n + 2),
.employee-password-strength[data-score="3"] i:nth-child(-n + 3),
.employee-password-strength[data-score="4"] i {
  background: var(--strength-color);
}

.employee-password-strength[data-state="mismatch"] em {
  color: var(--strength-color);
}

.employee-form textarea {
  min-height: 104px;
  padding: 10px 11px;
  resize: vertical;
}

.employee-form button,
.employee-training-form button,
.employee-profile > header button {
  justify-content: center;
  min-height: 40px;
  border-color: rgba(81, 204, 75, 0.34);
  background: rgba(81, 204, 75, 0.13);
  color: #fff;
}

.employee-profile > header form {
  margin: 0;
}

.employee-profile > header button.is-muted {
  border-color: rgba(235, 180, 80, 0.28);
  background: rgba(235, 180, 80, 0.10);
}

.employee-training-list {
  display: grid;
  gap: 8px;
}

.employee-training-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.employee-training-row strong,
.employee-training-row span,
.employee-training-row small {
  display: block;
}

.employee-training-row strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.employee-training-row span,
.employee-training-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.employee-training-row em {
  color: currentColor;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-training-row form {
  margin: 0;
}

.employee-training-row button {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(233, 83, 67, 0.24);
  background: rgba(233, 83, 67, 0.08);
  color: #ff8a7f;
}

.employee-training-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.employee-training-form .wide,
.employee-training-form button {
  grid-column: 1 / -1;
}

.dalsi-timesheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.dalsi-timesheet-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 8%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(17, 28, 39, 0.82), rgba(5, 10, 16, 0.64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dalsi-timesheet-toolbar a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(18, 28, 40, 0.74);
  text-decoration: none;
}

.dalsi-timesheet-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dalsi-timesheet-month-field {
  min-height: 48px;
  min-width: 190px;
  padding: 7px 10px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 12px;
  background: rgba(5, 10, 16, 0.42);
}

.dalsi-timesheet-month-field > i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(81, 204, 75, 0.10);
  color: var(--green);
  font-size: 18px;
}

.dalsi-timesheet-toolbar label span {
  display: grid;
  gap: 2px;
}

.dalsi-timesheet-toolbar label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
}

.dalsi-timesheet-toolbar input {
  min-height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 12px;
  font-weight: 950;
}

.dalsi-timesheet-toolbar > strong {
  margin-left: auto;
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.dalsi-timesheet-warning {
  padding: 11px 12px;
  border: 1px solid rgba(240, 196, 60, 0.26);
  border-radius: 8px;
  background: rgba(240, 196, 60, 0.09);
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.dalsi-timesheet-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dalsi-timesheet-summary > div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.36);
}

.dalsi-timesheet-summary span,
.dalsi-timesheet-summary strong {
  display: block;
}

.dalsi-timesheet-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dalsi-timesheet-summary strong {
  margin-top: 8px;
  color: currentColor;
  font-size: 22px;
  font-weight: 950;
}

.dalsi-timesheet-group {
  display: grid;
  gap: 12px;
}

.dalsi-timesheet-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.dalsi-timesheet-group > header strong {
  color: currentColor;
  font-size: 17px;
  font-weight: 950;
}

.dalsi-timesheet-group > header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dalsi-timesheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dalsi-timesheet-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, currentColor 10%, transparent), transparent 38%),
    rgba(5, 10, 16, 0.38);
}

.dalsi-timesheet-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dalsi-timesheet-card > header strong,
.dalsi-timesheet-card > header span {
  display: block;
}

.dalsi-timesheet-card > header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.dalsi-timesheet-card > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.dalsi-timesheet-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.dalsi-timesheet-metrics div {
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(210, 222, 232, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.dalsi-timesheet-metrics span,
.dalsi-timesheet-metrics strong {
  display: block;
}

.dalsi-timesheet-metrics span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.dalsi-timesheet-metrics strong {
  margin-top: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.dalsi-timesheet-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.dalsi-timesheet-days span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(210, 222, 232, 0.08);
  border-radius: 6px;
  background: rgba(18, 28, 40, 0.72);
}

.dalsi-timesheet-days span.weekend {
  background: rgba(240, 196, 60, 0.08);
}

.dalsi-timesheet-days span.manual {
  border-color: rgba(75, 156, 232, 0.42);
}

.dalsi-timesheet-days span.vacation {
  border-color: rgba(240, 196, 60, 0.55);
  background: rgba(240, 196, 60, 0.13);
}

.dalsi-timesheet-days b,
.dalsi-timesheet-days em {
  display: block;
  line-height: 1;
}

.dalsi-timesheet-days b {
  color: rgba(244, 247, 250, 0.94);
  font-size: 10px;
  font-weight: 950;
}

.dalsi-timesheet-days em {
  margin-top: 4px;
  color: currentColor;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.dalsi-timesheet-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dalsi-timesheet-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dalsi-timesheet-pick-card {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 20px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: currentColor;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, currentColor 16%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(18, 29, 40, 0.96), rgba(7, 13, 20, 0.98));
  text-decoration: none;
}

.dalsi-timesheet-pick-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.dalsi-timesheet-pick-card p {
  min-height: 54px;
  margin: 10px 0 18px;
  color: rgba(244, 247, 250, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.dalsi-timesheet-pick-card > strong {
  color: currentColor;
  font-size: 24px;
  font-weight: 950;
}

.dalsi-timesheet-people,
.dalsi-timesheet-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.dalsi-timesheet-people > header,
.dalsi-timesheet-person > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.32);
}

.dalsi-timesheet-people > header strong,
.dalsi-timesheet-people > header span,
.dalsi-timesheet-person > header strong,
.dalsi-timesheet-person > header span {
  display: block;
}

.dalsi-timesheet-people > header strong,
.dalsi-timesheet-person > header strong {
  color: currentColor;
  font-size: 20px;
  font-weight: 950;
}

.dalsi-timesheet-people > header span,
.dalsi-timesheet-person > header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dalsi-timesheet-people > header a,
.dalsi-timesheet-person > header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 28, 40, 0.92);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}

.dalsi-timesheet-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dalsi-timesheet-header-actions form {
  margin: 0;
}

.dalsi-timesheet-people-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.dalsi-timesheet-person-card {
  display: grid;
  min-width: 0;
  min-height: 70px;
  padding: 13px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0%, color-mix(in srgb, currentColor 8%, transparent), transparent 44%),
    rgba(5, 10, 16, 0.34);
  color: currentColor;
}

.dalsi-timesheet-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dalsi-timesheet-card-link {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: currentColor;
  text-decoration: none;
}

.dalsi-timesheet-people-list strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.dalsi-timesheet-people.is-signed-overview .dalsi-timesheet-person-card {
  min-height: 62px;
  padding: 11px 12px;
}

.dalsi-timesheet-people.is-signed-overview .dalsi-timesheet-people-list strong {
  font-size: 12px;
}

.dalsi-timesheet-people-list strong i {
  color: #84e26b;
  font-size: 18px;
}

.dalsi-timesheet-people-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.dalsi-timesheet-person-card.is-signed {
  border-color: rgba(81, 204, 75, 0.24);
  background:
    radial-gradient(circle at 94% 0%, rgba(81, 204, 75, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(10, 35, 20, 0.58), rgba(5, 10, 16, 0.34));
}

.dalsi-timesheet-person-card.is-signed span {
  color: rgba(132, 226, 107, 0.78);
}

.dalsi-timesheet-person-card.is-pending {
  border-color: rgba(75, 156, 232, 0.22);
  background:
    radial-gradient(circle at 94% 0%, rgba(75, 156, 232, 0.14), transparent 44%),
    linear-gradient(135deg, rgba(15, 30, 48, 0.58), rgba(5, 10, 16, 0.34));
}

.dalsi-timesheet-person-card.is-pending strong i,
.dalsi-timesheet-person-card.is-pending span {
  color: #7dc0ff;
}

.dalsi-timesheet-person-card.is-signed-waiting {
  border-color: rgba(240, 196, 60, 0.30);
  background:
    radial-gradient(circle at 94% 0%, rgba(240, 196, 60, 0.20), transparent 44%),
    linear-gradient(135deg, rgba(48, 37, 11, 0.62), rgba(5, 10, 16, 0.34));
}

.dalsi-timesheet-person-card.is-signed-waiting strong i,
.dalsi-timesheet-person-card.is-signed-waiting span {
  color: #f2cf62;
}

.dalsi-timesheet-person-card.is-returned {
  border-color: rgba(255, 95, 87, 0.34);
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 95, 87, 0.20), transparent 44%),
    linear-gradient(135deg, rgba(52, 17, 18, 0.70), rgba(5, 10, 16, 0.34));
}

.dalsi-timesheet-person-card.is-returned strong i,
.dalsi-timesheet-person-card.is-returned span {
  color: #ff7a72;
}

.dalsi-timesheet-people.is-signed-overview {
  grid-template-columns: 1fr;
  align-items: start;
}

.dalsi-timesheet-people.is-signed-overview > header {
  grid-column: 1 / -1;
}

.dalsi-timesheet-signed-side {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 0%, rgba(81, 204, 75, 0.12), transparent 36%),
    rgba(5, 10, 16, 0.34);
}

.dalsi-timesheet-signed-side > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
}

.dalsi-timesheet-signed-side span,
.dalsi-timesheet-signed-side small,
.dalsi-timesheet-signed-side em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.dalsi-timesheet-signed-side strong {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.dalsi-timesheet-signed-side > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dalsi-timesheet-signed-side > div > span,
.dalsi-timesheet-signed-side > div > em {
  grid-column: 1 / -1;
}

.dalsi-timesheet-signed-side a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(210, 222, 232, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.dalsi-timesheet-signed-side a strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.15;
}

.dalsi-timesheet-signed-side a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.dalsi-timesheet-signed-side a.is-returned {
  border-color: rgba(255, 95, 87, 0.28);
  background: rgba(255, 95, 87, 0.08);
}

.dalsi-timesheet-person-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dalsi-timesheet-person-metrics div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.34);
}

.dalsi-timesheet-person-metrics span,
.dalsi-timesheet-person-metrics strong {
  display: block;
}

.dalsi-timesheet-person-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.dalsi-timesheet-person-metrics strong {
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.dalsi-timesheet-calendar {
  overflow-x: auto;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.30);
}

.dalsi-timesheet-calendar header,
.dalsi-timesheet-calendar > div {
  display: grid;
  grid-template-columns: 82px 82px 95px 115px 95px 105px 88px 112px minmax(130px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 980px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
}

.dalsi-timesheet-calendar header {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.dalsi-timesheet-calendar > div:last-child {
  border-bottom: 0;
}

.dalsi-timesheet-calendar > div.weekend {
  background: rgba(240, 196, 60, 0.05);
}

.dalsi-timesheet-calendar > div.manual {
  box-shadow: inset 3px 0 0 rgba(75, 156, 232, 0.62);
}

.dalsi-timesheet-calendar > div.vacation {
  box-shadow: inset 3px 0 0 rgba(240, 196, 60, 0.70);
}

.dalsi-timesheet-calendar strong,
.dalsi-timesheet-calendar span,
.dalsi-timesheet-calendar em {
  color: rgba(244, 247, 250, 0.88);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.dalsi-timesheet-calendar strong small {
  display: inline-block;
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.dalsi-timesheet-person {
  gap: 16px;
}

.dalsi-timesheet-person-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 16px 20px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, currentColor 18%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(18, 30, 42, 0.98), rgba(5, 10, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 52px rgba(0, 0, 0, 0.24);
  overflow: visible;
  position: relative;
}

.dalsi-timesheet-person-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, currentColor 18%, transparent), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px);
  opacity: 0.82;
  pointer-events: none;
}

.dalsi-timesheet-person-title,
.dalsi-timesheet-person-actions {
  position: relative;
  z-index: 1;
}

.dalsi-timesheet-person-title {
  display: grid;
  align-content: center;
  gap: 7px;
}

.dalsi-timesheet-name-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.dalsi-timesheet-person-title span {
  color: currentColor;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dalsi-timesheet-person-title h2 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1.02;
}

.dalsi-timesheet-title-actions {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.dalsi-timesheet-title-actions form {
  display: inline-flex;
  margin: 0;
}

.dalsi-timesheet-title-actions button,
.dalsi-timesheet-title-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(6, 12, 18, 0.48);
  color: rgba(244, 247, 250, 0.86);
  font-size: 11px;
  font-weight: 950;
  cursor: default;
  text-decoration: none;
  text-transform: uppercase;
}

.dalsi-timesheet-title-actions a {
  cursor: pointer;
}

.dalsi-timesheet-title-actions button.is-signed {
  border-color: rgba(81, 204, 75, 0.28);
  background: rgba(81, 204, 75, 0.10);
  color: #84e26b;
}

.dalsi-timesheet-title-actions button.is-pending {
  border-color: rgba(75, 156, 232, 0.26);
  background: rgba(75, 156, 232, 0.10);
  color: #7dc0ff;
}

.dalsi-timesheet-title-actions button.is-returned {
  border-color: rgba(255, 95, 87, 0.34);
  background: rgba(255, 95, 87, 0.11);
  color: #ff7a72;
}

.dalsi-timesheet-title-actions button.is-fill-days {
  border-color: rgba(81, 204, 75, 0.26);
  background: rgba(81, 204, 75, 0.10);
  color: #84e26b;
  cursor: pointer;
}

.dalsi-timesheet-title-actions button.is-fill-days:hover {
  background: rgba(81, 204, 75, 0.16);
}

.timesheet-return-control {
  position: relative;
  z-index: 12;
}

.timesheet-bonus-control {
  position: relative;
  z-index: 12;
}

.timesheet-return-control[open] {
  z-index: 40;
}

.timesheet-bonus-control[open] {
  z-index: 40;
}

.timesheet-return-control summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(255, 95, 87, 0.22);
  border-radius: 8px;
  background: rgba(255, 95, 87, 0.08);
  color: #ffaaa4;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
}

.timesheet-bonus-control summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(244, 177, 54, 0.28);
  border-radius: 8px;
  background: rgba(244, 177, 54, 0.10);
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
}

.timesheet-return-control summary::-webkit-details-marker {
  display: none;
}

.timesheet-bonus-control summary::-webkit-details-marker {
  display: none;
}

.timesheet-return-control form {
  position: absolute;
  z-index: 42;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 10px;
  width: 310px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 10px;
  background: rgb(9, 15, 22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.timesheet-bonus-control form {
  position: absolute;
  z-index: 42;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 10px;
  width: 240px;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 10px;
  background: rgb(9, 15, 22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.timesheet-return-control label,
.timesheet-return-control label span,
.timesheet-bonus-control label,
.timesheet-bonus-control label span {
  display: grid;
  gap: 6px;
}

.timesheet-return-control label span,
.timesheet-bonus-control label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.timesheet-return-control textarea,
.timesheet-bonus-control input {
  min-height: 86px;
  resize: vertical;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.72);
  color: #fff;
  padding: 10px;
  font: inherit;
}

.timesheet-bonus-control input {
  min-height: 38px;
  resize: none;
}

.timesheet-return-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 720px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 95, 87, 0.28);
  border-radius: 8px;
  background: rgba(255, 95, 87, 0.09);
  color: #ffaaa4;
  font-size: 12px;
  font-weight: 850;
}

.dalsi-timesheet-person-title p {
  margin: 0;
  color: rgba(244, 247, 250, 0.68);
  font-size: 13px;
  font-weight: 750;
}

.dalsi-timesheet-person-actions {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 10px;
  min-width: 280px;
}

.dalsi-timesheet-person-actions > a,
.dalsi-timesheet-hero-month > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(6, 12, 18, 0.50);
  color: rgba(244, 247, 250, 0.88);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.dalsi-timesheet-hero-month {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.dalsi-timesheet-hero-month > a {
  width: 38px;
  padding: 0;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, rgba(6, 12, 18, 0.50));
}

.dalsi-timesheet-hero-month form {
  min-width: 142px;
}

.dalsi-timesheet-hero-month label {
  display: grid;
  gap: 3px;
}

.dalsi-timesheet-hero-month label span {
  color: rgba(244, 247, 250, 0.52);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.dalsi-timesheet-hero-month input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(6, 12, 18, 0.50);
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 950;
}

.dalsi-timesheet-person-metrics {
  grid-template-columns: repeat(7, minmax(116px, 1fr));
}

.dalsi-timesheet-person-metrics div {
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 96px;
  padding: 12px;
  overflow: hidden;
  border-color: rgba(210, 222, 232, 0.12);
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, currentColor 22%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(18, 30, 42, 0.90), rgba(6, 12, 18, 0.92));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.dalsi-timesheet-person-metrics div::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: currentColor;
  opacity: 0.62;
}

.dalsi-timesheet-person-metrics i {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: currentColor;
  font-size: 18px;
}

.dalsi-timesheet-person-metrics .metric-norm {
  color: var(--blue);
}

.dalsi-timesheet-person-metrics .metric-worked {
  color: var(--green);
}

.dalsi-timesheet-person-metrics .metric-overtime {
  color: var(--amber);
}

.dalsi-timesheet-person-metrics .metric-vacation {
  color: #63b3ff;
}

.dalsi-timesheet-person-metrics .metric-doctor {
  color: var(--purple);
}

.dalsi-timesheet-person-metrics .metric-standby {
  color: #43d3c2;
}

.dalsi-timesheet-person-metrics .metric-sick {
  color: var(--red);
}

.dalsi-timesheet-person-metrics span {
  color: rgba(244, 247, 250, 0.62);
  font-size: 10px;
  line-height: 1.25;
  max-width: calc(100% - 34px);
}

.dalsi-timesheet-person-metrics strong {
  margin-top: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.dalsi-timesheet-calendar-card {
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, currentColor 9%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(14, 24, 34, 0.96), rgba(5, 10, 16, 0.96));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.20);
}

.dalsi-timesheet-calendar-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.dalsi-timesheet-calendar-card > header strong,
.dalsi-timesheet-calendar-card > header span {
  display: block;
}

.dalsi-timesheet-calendar-card > header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.dalsi-timesheet-calendar-card > header span {
  margin-top: 4px;
  color: rgba(244, 247, 250, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.dalsi-timesheet-calendar-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.timesheet-evaluation-jump {
  display: grid;
  gap: 4px;
  min-width: 118px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 250, 0.86);
  text-decoration: none;
}

.timesheet-evaluation-jump:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
}

.timesheet-evaluation-jump span {
  margin: 0;
  color: rgba(244, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.timesheet-evaluation-jump strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.timesheet-evaluation-jump b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 950;
}

.timesheet-evaluation-jump b.is-positive {
  color: var(--green);
}

.timesheet-evaluation-jump b.is-negative {
  color: var(--red);
}

.timesheet-range-control {
  position: relative;
}

.timesheet-range-control summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 250, 0.88);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.timesheet-range-control summary::-webkit-details-marker {
  display: none;
}

.timesheet-range-control[open] summary,
.timesheet-range-control summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.timesheet-range-control form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 330px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 12px;
  background: rgba(11, 19, 28, 0.98);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.timesheet-range-control label {
  display: grid;
  gap: 6px;
}

.timesheet-range-control label:nth-of-type(3),
.timesheet-range-control button {
  grid-column: 1 / -1;
}

.timesheet-range-control label span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.timesheet-range-control input,
.timesheet-range-control select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.timesheet-range-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #07100b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.dalsi-timesheet-calendar-card > header em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: currentColor;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.timesheet-zoom-controls,
.table-zoom-controls {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.timesheet-zoom-controls button,
.table-zoom-controls button {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 26px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid rgba(210, 222, 232, 0.10);
  background: transparent;
  color: rgba(244, 247, 250, 0.82);
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.timesheet-zoom-controls button:last-child,
.table-zoom-controls button:last-child {
  border-right: 0;
}

.timesheet-zoom-controls button:hover,
.table-zoom-controls button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.timesheet-zoom-controls span,
.table-zoom-controls span {
  margin: 0;
  color: rgba(244, 247, 250, 0.82);
  font-size: 10px;
  line-height: 1;
}

.dalsi-timesheet-calendar-scroll,
.table-zoom-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.timesheet-zoom-stage,
.table-zoom-stage {
  position: relative;
  min-width: 100%;
}

.dalsi-timesheet-calendar-scroll [data-timesheet-zoom-content] {
  width: max-content;
  min-width: 100%;
}

.dalsi-timesheet-calendar-scroll.is-zoom-ready [data-timesheet-zoom-content] {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--timesheet-zoom, 1));
  transform-origin: 0 0;
  will-change: transform;
}

.table-zoom-scroll [data-table-zoom-content] {
  width: max-content;
  min-width: 100%;
}

.table-zoom-scroll.is-zoom-ready [data-table-zoom-content] {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--table-zoom, 1));
  transform-origin: 0 0;
  will-change: transform;
}

.dalsi-timesheet-calendar {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dalsi-timesheet-calendar header,
.dalsi-timesheet-calendar > div {
  grid-template-columns: 82px 82px 82px 132px 86px 96px 82px 106px 112px minmax(160px, 1fr) 48px;
  min-width: 1210px;
  padding: 11px 18px;
}

.dalsi-timesheet-calendar header {
  background: rgba(0, 0, 0, 0.18);
  color: rgba(244, 247, 250, 0.52);
}

.dalsi-timesheet-calendar > div {
  transition: background 160ms ease, transform 160ms ease;
}

.dalsi-timesheet-calendar > div:hover {
  background: rgba(255, 255, 255, 0.035);
}

.dalsi-timesheet-calendar > div.weekend {
  background: rgba(240, 196, 60, 0.055);
}

.dalsi-timesheet-calendar > div.vacation {
  background: linear-gradient(90deg, rgba(240, 196, 60, 0.12), rgba(240, 196, 60, 0.035));
}

.dalsi-timesheet-calendar > div.manual {
  background: linear-gradient(90deg, rgba(75, 156, 232, 0.12), rgba(75, 156, 232, 0.025));
}

.dalsi-timesheet-calendar strong {
  color: #fff;
}

.dalsi-timesheet-calendar span,
.dalsi-timesheet-calendar em {
  color: rgba(244, 247, 250, 0.78);
}

.shift-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 52px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.status-pill {
  min-width: 68px;
  color: rgba(244, 247, 250, 0.78);
}

.status-pill.is-work {
  border-color: rgba(81, 204, 75, 0.26);
  background: rgba(81, 204, 75, 0.10);
  color: #84e26b;
}

.status-pill.is-manual {
  border-color: rgba(75, 156, 232, 0.30);
  background: rgba(75, 156, 232, 0.12);
  color: #7dc0ff;
}

.status-pill.is-vacation {
  border-color: rgba(240, 196, 60, 0.34);
  background: rgba(240, 196, 60, 0.13);
  color: #f2cf62;
}

.timesheet-note-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timesheet-row-edit {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 26px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 247, 250, 0.86);
  cursor: pointer;
}

.timesheet-row-edit:hover {
  color: #fff;
  background: color-mix(in srgb, currentColor 14%, rgba(255, 255, 255, 0.06));
}

.timesheet-edit-modal .attendance-edit-dialog {
  max-width: 760px;
}

.dalsi-detail-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: rgb(9, 14, 20);
}

.dalsi-detail-panel.is-person-detail {
  gap: 12px;
  padding: 0;
  background: transparent;
}

.dalsi-detail-panel.is-signed-list {
  padding-top: 0;
}

.dalsi-detail-panel.is-timesheet-root {
  padding-top: 0;
}

.manager-summary-board {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.manager-summary-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(81, 204, 75, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(16, 28, 38, 0.98), rgba(6, 12, 18, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.manager-summary-hero h2,
.manager-summary-hero p {
  margin: 0;
}

.manager-summary-hero h2 {
  margin-top: 8px;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.manager-summary-hero p {
  margin-top: 7px;
  color: rgba(244, 247, 250, 0.68);
  font-size: 13px;
  font-weight: 780;
}

.manager-summary-hero > div > a,
.manager-calendar-open,
.manager-export-open,
.manager-day-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 247, 250, 0.86);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.manager-summary-toolbar {
  display: grid;
  grid-template-columns: 38px minmax(150px, 190px) 38px 38px minmax(126px, auto) minmax(138px, auto);
  align-items: end;
  gap: 7px;
}

.manager-summary-toolbar > a:not(.manager-calendar-open):not(.manager-export-open),
.manager-summary-toolbar button {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-decoration: none;
}

.manager-summary-toolbar button {
  background: rgba(47, 158, 88, 0.88);
  cursor: pointer;
}

.manager-summary-toolbar label {
  display: grid;
  gap: 4px;
}

.manager-summary-toolbar label span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-summary-toolbar input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.62);
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.manager-summary-toolbar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.62);
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.manager-overtime-toolbar {
  grid-template-columns: 38px 38px minmax(150px, 190px) 38px 38px;
}

.manager-summary-metrics,
.manager-summary-tabs {
  display: grid;
  gap: 10px;
}

.manager-summary-metrics {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.manager-summary-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manager-summary-metrics article,
.manager-summary-tabs a {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 10px;
  background:
    radial-gradient(circle at 84% 0%, color-mix(in srgb, currentColor 18%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(18, 30, 42, 0.94), rgba(6, 12, 18, 0.94));
  color: var(--green);
  text-decoration: none;
}

.manager-summary-metrics article.tone-blue,
.manager-summary-tabs a.tone-blue { color: var(--blue); }
.manager-summary-metrics article.tone-purple,
.manager-summary-tabs a.tone-purple { color: var(--purple); }
.manager-summary-metrics article.tone-amber,
.manager-summary-tabs a.tone-amber { color: var(--amber); }

.manager-summary-metrics i,
.manager-summary-tabs i {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 18px;
}

.manager-summary-metrics span,
.manager-summary-tabs span {
  display: block;
  max-width: calc(100% - 42px);
  color: rgba(244, 247, 250, 0.62);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-summary-metrics strong,
.manager-summary-tabs strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.manager-summary-metrics small,
.manager-summary-tabs small {
  display: block;
  margin-top: 8px;
  color: rgba(244, 247, 250, 0.58);
  font-size: 11px;
  font-weight: 820;
}

.manager-summary-tabs a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.manager-summary-tabs a i {
  position: static;
  width: 32px;
  height: 32px;
  font-size: 17px;
}

.manager-summary-tabs a span {
  max-width: none;
  color: rgba(244, 247, 250, 0.84);
  font-size: 12px;
}

.manager-summary-tabs a strong {
  margin: 0;
  font-size: 18px;
}

.manager-summary-tabs a small {
  display: none;
}

.manager-summary-tabs a:hover,
.manager-summary-tabs a.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, currentColor 40%, rgba(210, 222, 232, 0.11));
  background:
    radial-gradient(circle at 84% 0%, color-mix(in srgb, currentColor 24%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(22, 36, 48, 0.98), rgba(8, 15, 23, 0.98));
}

.manager-day-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(75, 156, 232, 0.18);
  border-radius: 10px;
  background: rgba(75, 156, 232, 0.08);
}

.manager-day-filter span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 250, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.manager-summary-table-card {
  overflow: hidden;
  border: 1px solid rgba(210, 222, 232, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(14, 24, 34, 0.96), rgba(5, 10, 16, 0.96));
}

.manager-summary-table-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.manager-summary-table-card > header strong,
.manager-summary-table-card > header span,
.manager-summary-table-card > header em {
  display: block;
}

.manager-summary-table-card > header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-summary-table-card > header span {
  margin-top: 4px;
  color: rgba(244, 247, 250, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.manager-summary-table-card > header em {
  color: rgba(244, 247, 250, 0.62);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.manager-summary-list {
  display: grid;
}

.manager-summary-list article {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(110px, auto);
  gap: 14px;
  align-items: start;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
}

.manager-summary-list article:last-child {
  border-bottom: 0;
}

.manager-summary-list time {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.manager-summary-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.manager-summary-row-main strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.manager-summary-row-main span {
  color: rgba(244, 247, 250, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.manager-summary-row-main p {
  margin: 0;
  color: rgba(244, 247, 250, 0.62);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.42;
}

.manager-summary-list article > small {
  justify-self: end;
  color: rgba(244, 247, 250, 0.56);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.manager-summary-list article.is-done {
  background: rgba(81, 204, 75, 0.045);
}

.manager-summary-empty {
  margin: 0;
  padding: 18px;
  color: rgba(244, 247, 250, 0.62);
  font-size: 13px;
  font-weight: 820;
}

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

.manager-overtime-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.manager-overtime-table th,
.manager-overtime-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
  color: rgba(244, 247, 250, 0.78);
  font-size: 12px;
  font-weight: 820;
  text-align: left;
  white-space: nowrap;
}

.manager-overtime-table th {
  background: rgba(255, 255, 255, 0.026);
  color: rgba(244, 247, 250, 0.54);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-overtime-table th.manager-overtime-month-head span,
.manager-overtime-table th.manager-overtime-month-head small {
  display: block;
}

.manager-overtime-table th.manager-overtime-month-head span {
  color: rgba(244, 247, 250, 0.72);
}

.manager-overtime-table th.manager-overtime-month-head small {
  margin-top: 3px;
  color: rgba(244, 247, 250, 0.42);
  font-size: 9px;
  font-weight: 950;
}

.manager-overtime-table th:nth-child(n+3),
.manager-overtime-table td:nth-child(n+3) {
  text-align: right;
}

.manager-overtime-table tbody tr:last-child td {
  border-bottom: 0;
}

.manager-overtime-table td strong {
  color: #fff;
  font-weight: 950;
}

.manager-overtime-month-cell span,
.manager-overtime-month-cell em {
  display: block;
}

.manager-overtime-month-cell span {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.manager-overtime-month-cell em {
  margin-top: 5px;
  color: rgba(244, 247, 250, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.manager-overtime-month-cell.is-pending span {
  color: rgba(244, 247, 250, 0.42);
  font-size: 11px;
  text-transform: uppercase;
}

.manager-overtime-month-cell.is-positive em {
  color: var(--amber);
}

.manager-overtime-month-cell.is-negative em {
  color: rgba(244, 247, 250, 0.54);
}

.manager-overtime-table tr.has-overtime {
  background: rgba(244, 177, 54, 0.05);
}

.manager-overtime-table tr.has-overtime td:nth-last-child(2) strong {
  color: var(--amber);
}

.manager-calendar-tools {
  padding: 14px 18px 0;
}

.manager-calendar-tools form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.manager-calendar-tools label {
  display: grid;
  gap: 5px;
}

.manager-calendar-tools label span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-calendar-tools input {
  min-height: 38px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.62);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.manager-calendar-tools button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #06110a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}

.manager-calendar-grid > span {
  color: rgba(244, 247, 250, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.manager-calendar-grid i.empty,
.manager-calendar-grid a {
  min-height: 70px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 8px;
}

.manager-calendar-grid i.empty {
  background: rgba(255, 255, 255, 0.02);
}

.manager-calendar-grid a {
  display: grid;
  align-content: space-between;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 250, 0.84);
  text-decoration: none;
}

.manager-calendar-grid a.weekend,
.manager-calendar-grid a.holiday {
  background: rgba(240, 196, 60, 0.055);
}

.manager-calendar-grid a.has-entry {
  border-color: rgba(81, 204, 75, 0.26);
  background: rgba(81, 204, 75, 0.09);
}

.manager-calendar-grid a.today {
  box-shadow: inset 0 0 0 1px rgba(75, 156, 232, 0.46);
}

.manager-calendar-grid a.selected {
  border-color: rgba(75, 156, 232, 0.62);
  background: rgba(75, 156, 232, 0.16);
}

.manager-calendar-grid b {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.manager-calendar-grid em {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.dalsi-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dalsi-detail-header strong,
.dalsi-detail-header span {
  display: block;
}

.dalsi-detail-header strong {
  color: var(--green);
  font-size: 26px;
  font-weight: 950;
}

.dalsi-detail-header span {
  max-width: 780px;
  margin-top: 4px;
  color: rgba(220, 235, 245, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.dalsi-close-button,
.dalsi-form-secondary,
.dalsi-row-actions a,
.dalsi-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 28, 40, 0.93);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.dalsi-evidence-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 14px;
  min-height: 520px;
}

.dalsi-evidence-form,
.dalsi-evidence-table {
  padding: 16px;
  background: rgba(12, 18, 25, 0.96);
}

.dalsi-detail-panel.is-shift-end {
  gap: 12px;
  padding-top: 12px;
}

.dalsi-detail-panel.is-shift-end .dalsi-detail-header {
  justify-content: flex-end;
  min-height: 38px;
}

.dalsi-evidence-layout.is-shift-end {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 0;
  gap: 16px;
}

.dalsi-evidence-form.is-shift-end,
.dalsi-evidence-table.is-shift-end {
  border-color: rgba(220, 236, 245, 0.14);
  background: linear-gradient(135deg, rgba(17, 26, 35, 0.98), rgba(9, 15, 22, 0.98));
}

.dalsi-evidence-form.is-shift-end {
  padding: 18px;
  border-left: 4px solid var(--green);
}

.dalsi-evidence-form.is-shift-end > header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.10);
}

.dalsi-evidence-form.is-shift-end > header strong,
.dalsi-evidence-form.is-shift-end > header span {
  grid-column: 1;
}

.dalsi-evidence-form.is-shift-end > header .dalsi-close-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 16px;
}

.dalsi-evidence-form.is-shift-end form {
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.dalsi-evidence-form.is-shift-end .shift-end-entry-form {
  display: block;
}

.shift-end-form-shell {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(170px, 210px);
  align-items: stretch;
  gap: 12px;
}

.shift-end-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

.shift-end-form-shell label {
  position: relative;
}

.shift-end-form-shell label span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}

.shift-end-form-shell input,
.shift-end-form-shell textarea {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.shift-end-form-shell input:focus,
.shift-end-form-shell textarea:focus {
  outline: none;
  border-color: rgba(95, 214, 120, 0.58);
  box-shadow: 0 0 0 3px rgba(95, 214, 120, 0.12);
}

.dalsi-evidence-form.is-shift-end input,
.dalsi-evidence-form.is-shift-end textarea {
  border-color: rgba(220, 236, 245, 0.18);
  background: rgba(5, 10, 16, 0.72);
}

.dalsi-evidence-form.is-shift-end form:not(.shift-end-entry-form) .dalsi-note-field {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.dalsi-evidence-form.is-shift-end .shift-end-entry-form .dalsi-note-field {
  display: grid;
  min-width: 0;
}

.dalsi-evidence-form.is-shift-end textarea {
  min-height: 154px;
  line-height: 1.45;
}

.dalsi-evidence-form.is-shift-end .shift-end-entry-form textarea {
  min-height: 176px;
}

.dalsi-car-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.dalsi-car-toggle legend {
  grid-column: 1 / -1;
  color: rgba(245, 248, 250, 0.88);
  font-size: 11px;
  font-weight: 950;
}

.dalsi-car-toggle label {
  display: block;
}

.dalsi-car-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dalsi-car-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(220, 236, 245, 0.16);
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.78);
  background: rgba(5, 10, 16, 0.72);
  font-size: 12px;
  font-weight: 950;
}

.dalsi-car-toggle input:checked + span {
  color: #fff;
  border-color: rgba(47, 158, 88, 0.56);
  background: rgba(47, 158, 88, 0.88);
}

.dalsi-evidence-form.is-shift-end form:not(.shift-end-entry-form) button[type="submit"] {
  grid-column: 1;
  margin-top: 2px;
  background: #2f9e58;
  box-shadow: 0 10px 24px rgba(47, 158, 88, 0.22);
}

.dalsi-evidence-form.is-shift-end form:not(.shift-end-entry-form) .dalsi-form-secondary {
  grid-column: 1;
}

.shift-end-form-actions {
  display: grid;
  align-content: end;
  gap: 10px;
}

.shift-end-form-actions button[type="submit"] {
  min-height: 44px;
  margin: 0;
  background: #2f9e58;
  box-shadow: 0 10px 20px rgba(47, 158, 88, 0.20);
}

.shift-end-form-actions .dalsi-form-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.dalsi-evidence-table.is-shift-end {
  padding: 18px;
}

.dalsi-month-filter {
  display: grid;
  grid-template-columns: 42px minmax(180px, 240px) 38px 42px;
  align-items: end;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(220, 236, 245, 0.10);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.42);
}

.dalsi-month-filter a,
.dalsi-month-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 28, 40, 0.93);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.dalsi-month-filter button {
  width: 38px;
  padding: 0;
  background: rgba(47, 158, 88, 0.88);
}

.dalsi-month-filter label {
  display: grid;
  gap: 5px;
}

.dalsi-month-filter label span {
  color: rgba(245, 248, 250, 0.78);
  font-size: 10px;
  font-weight: 950;
}

.dalsi-month-filter input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(220, 236, 245, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 10, 16, 0.72);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 850;
}

.dalsi-evidence-table.is-shift-end .dalsi-table {
  min-width: 560px;
}

.dalsi-evidence-table.is-shift-end .dalsi-table th,
.dalsi-evidence-table.is-shift-end .dalsi-table td {
  padding: 13px 12px;
}

.dalsi-evidence-table.is-shift-end .dalsi-table th:first-child,
.dalsi-evidence-table.is-shift-end .dalsi-table td:first-child {
  width: 118px;
}

.dalsi-evidence-table.is-shift-end .dalsi-table th:last-child,
.dalsi-evidence-table.is-shift-end .dalsi-table td:last-child {
  width: 112px;
}

.dalsi-evidence-table.is-shift-end .dalsi-table td small {
  margin-top: 0;
  color: rgba(235, 245, 250, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

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

.dalsi-evidence-form label {
  display: grid;
  gap: 6px;
}

.dalsi-evidence-form label span {
  color: rgba(245, 248, 250, 0.88);
  font-size: 11px;
  font-weight: 950;
}

.dalsi-evidence-form input,
.dalsi-evidence-form select,
.dalsi-evidence-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(220, 236, 245, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(10, 15, 21, 0.96);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 750;
}

.dalsi-evidence-form textarea {
  min-height: 134px;
  resize: vertical;
}

.dalsi-evidence-form button[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(85, 184, 100, 0.86);
  font-size: 12px;
  font-weight: 950;
}

.dalsi-form-secondary {
  width: 100%;
}

.dalsi-evidence-table > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dalsi-evidence-table > header em {
  color: rgba(220, 235, 245, 0.66);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.dalsi-table-wrap {
  overflow: auto;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.96);
}

.dalsi-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: rgba(245, 248, 250, 0.92);
}

.dalsi-table th,
.dalsi-table td {
  padding: 12px 11px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.08);
  font-size: 12px;
  vertical-align: top;
}

.dalsi-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: rgba(245, 248, 250, 0.92);
  background: rgba(18, 28, 40, 0.98);
  font-weight: 950;
}

.dalsi-table tbody tr:nth-child(even) td {
  background: rgba(17, 25, 34, 0.52);
}

.dalsi-table td strong,
.dalsi-table td small {
  display: block;
}

.dalsi-table td strong {
  font-weight: 950;
}

.dalsi-table td small {
  margin-top: 4px;
  color: rgba(220, 235, 245, 0.64);
  line-height: 1.35;
}

.dalsi-shift-duration {
  display: inline-grid;
  gap: 3px;
  min-width: 76px;
}

.dalsi-shift-duration strong {
  color: rgba(245, 248, 250, 0.95);
}

.dalsi-shift-delta {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: rgba(95, 214, 120, 0.95);
  background: rgba(95, 214, 120, 0.11);
  font-weight: 900;
  white-space: nowrap;
}

.dalsi-shift-delta.is-under {
  color: #ff8a8a;
  background: rgba(255, 99, 99, 0.13);
}

.dalsi-shift-delta.is-over {
  color: #f2bd5b;
  background: rgba(242, 189, 91, 0.13);
}

.dalsi-table tr.is-done {
  opacity: 0.58;
}

.dalsi-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 950;
  white-space: nowrap;
}

.dalsi-status.priority-ok { color: var(--green); }
.dalsi-status.priority-watch { color: var(--amber); }
.dalsi-status.priority-important { color: var(--red); }

.dalsi-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.dalsi-row-actions form {
  margin: 0;
}

.dalsi-row-actions a,
.dalsi-row-actions button {
  width: 34px;
  min-height: 26px;
  padding: 0;
}

.shift-end-records {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(220, 236, 245, 0.12);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.42);
}

.shift-end-record {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.09);
}

.shift-end-record:last-child {
  border-bottom: 0;
}

.shift-end-record.is-done {
  opacity: 0.56;
}

.shift-end-date {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 56px;
  border-right: 1px solid rgba(220, 236, 245, 0.11);
}

.shift-end-date span {
  color: rgba(245, 248, 250, 0.96);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.shift-end-date strong {
  color: rgba(220, 235, 245, 0.58);
  font-size: 11px;
  font-weight: 900;
}

.shift-end-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.shift-end-line {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.shift-end-line strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(245, 248, 250, 0.96);
  font-size: 12px;
  font-weight: 950;
}

.shift-end-line span {
  overflow-wrap: anywhere;
  color: rgba(220, 235, 245, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.shift-end-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 170px;
}

.shift-end-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.92);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.shift-end-meta .shift-end-delta {
  color: rgba(95, 214, 120, 0.96);
  background: rgba(95, 214, 120, 0.12);
}

.shift-end-meta .shift-end-delta.is-under {
  color: #ff8a8a;
  background: rgba(255, 99, 99, 0.14);
}

.shift-end-meta .shift-end-delta.is-over {
  color: #f2bd5b;
  background: rgba(242, 189, 91, 0.14);
}

.shift-end-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.shift-end-actions form {
  margin: 0;
}

.shift-end-actions a,
.shift-end-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  min-height: 26px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  color: rgba(245, 248, 250, 0.88);
  background: rgba(18, 28, 40, 0.82);
  font-size: 16px;
  text-decoration: none;
}

.shift-end-actions a:hover,
.shift-end-actions button:hover {
  color: #fff;
  border-color: rgba(85, 184, 100, 0.44);
  background: rgba(47, 158, 88, 0.72);
}

.shift-end-empty {
  margin: 0;
  padding: 22px;
  color: rgba(220, 235, 245, 0.68);
  font-size: 13px;
  font-weight: 850;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.statusbar i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

html.login-html {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.login-page {
  overflow: hidden;
  min-height: 100vh;
  background: #02070d;
  overscroll-behavior: none;
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.12)),
    url("/static/login-background-4k-clean.png?v=20260622-form-dark-1") center / cover no-repeat;
}

.login-panel {
  position: fixed;
  z-index: 1;
  left: clamp(26px, 3.75vw, 144px);
  top: calc(50vh - 1.67vw);
  width: clamp(280px, 21.56vw, 828px);
  min-height: 0;
}

.login-logo {
  display: none;
}

.login-form {
  position: relative;
  display: block;
  height: clamp(214px, 15.36vw, 590px);
}

.login-form label {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(50px, 3.9vw, 150px);
  margin: 0;
}

.login-form label:nth-of-type(1) {
  top: 0;
}

.login-form label:nth-of-type(2) {
  top: clamp(82px, 6.25vw, 240px);
}

.login-form span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-input {
  display: flex;
  align-items: center;
  height: 100%;
  border: 1px solid rgba(244, 247, 250, 0.72);
  border-radius: clamp(5px, 0.36vw, 14px);
  background: rgba(1, 7, 12, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-input i {
  display: block;
  flex: 0 0 clamp(46px, 3.6vw, 138px);
  color: rgba(244, 247, 250, 0.88);
  font-size: clamp(22px, 1.65vw, 64px);
  text-align: center;
}

.login-input:focus-within {
  border-color: rgba(244, 247, 250, 0.96);
  background: rgba(1, 7, 12, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.login-form input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 0 clamp(16px, 1.2vw, 46px) 0 0;
  font-size: clamp(16px, 1.2vw, 46px);
  font-weight: 650;
  caret-color: #fff;
}

.login-form input::placeholder {
  color: rgba(244, 247, 250, 0.9);
}

.login-form button {
  position: absolute;
  left: 0;
  top: clamp(142px, 11.46vw, 440px);
  width: 100%;
  height: clamp(54px, 3.9vw, 150px);
  margin: 0;
  border: 0;
  border-radius: clamp(5px, 0.36vw, 14px);
  background: #05a64f;
  color: #fff;
  cursor: pointer;
  font-size: clamp(16px, 1.26vw, 48px);
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.login-error {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(224, 90, 80, 0.5);
  border-radius: 6px;
  background: rgba(224, 90, 80, 0.18);
  color: #fff;
  font-weight: 800;
}

@media (max-aspect-ratio: 3 / 2) {
  .login-panel {
    left: clamp(22px, 3.75vw, 80px);
    top: 47.5vh;
    width: clamp(260px, 21.56vw, 520px);
  }
}

@media (max-width: 760px) {
  html.login-html,
  body.login-page {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  body.login-page {
    position: fixed;
    inset: 0;
    touch-action: manipulation;
  }

  .login-bg {
    inset: 0;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.14)),
      url("/static/login-background-4k-clean.png?v=20260622-mobile-small-login-1") center / cover no-repeat;
  }

  .login-panel {
    left: 50%;
    right: auto;
    top: 56%;
    transform: translate(-50%, -50%);
    width: min(336px, calc(100vw - 72px));
    padding: 12px;
    border: 1px solid rgba(210, 222, 232, 0.18);
    border-radius: 12px;
    background: rgba(4, 10, 16, 0.82);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
  }

  .login-logo {
    position: static;
    z-index: auto;
    display: block;
    width: min(164px, 54vw);
    height: auto;
    margin: 0 auto 10px;
    object-fit: contain;
    filter: none;
  }

  .login-form {
    display: grid;
    gap: 8px;
    height: auto;
  }

  .login-form label,
  .login-form label:nth-of-type(1),
  .login-form label:nth-of-type(2),
  .login-form button,
  .login-error {
    position: static;
  }

  .login-form label {
    display: grid;
    gap: 4px;
    height: auto;
  }

  .login-form span {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    color: rgba(244, 247, 250, 0.68);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .login-input {
    display: flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid rgba(210, 222, 232, 0.18);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
  }

  .login-input i {
    display: block;
    width: 36px;
    color: rgba(244, 247, 250, 0.68);
    font-size: 18px;
    text-align: center;
  }

  .login-form input {
    height: 40px;
    padding: 0 10px 0 0;
    font-size: 15px;
  }

  .login-form input::placeholder {
    color: transparent;
  }

  .login-form button {
    width: 100%;
    height: 42px;
    margin-top: 2px;
    border-radius: 9px;
    background: #1d613a;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
  }

  .login-error {
    order: -1;
  }
}

body.theme-light {
  --green: #247346;
  --green-dark: #1d613a;
  --blue: #256fb0;
  --amber: #9b7415;
  --purple: #7252b8;
  --red: #b94c44;
  --bg: #eef3f6;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(244, 248, 250, 0.92);
  --line: rgba(25, 48, 62, 0.14);
  --text: #101b24;
  --muted: #5d7180;
  background: linear-gradient(135deg, #eef3f6, #dfe8ee);
  color: var(--text);
}

body.theme-light .sidebar {
  background: linear-gradient(180deg, rgba(244, 248, 250, 0.98), rgba(226, 236, 242, 0.98));
}

body.theme-light .sidebar-photo {
  background:
    linear-gradient(180deg, rgba(244, 248, 250, 0), rgba(226, 236, 242, 0.86) 72%),
    url("/static/sidebar-terminal-yard.png") center bottom / cover no-repeat;
  opacity: 0.26;
  filter: grayscale(0.12) saturate(0.9) contrast(0.95);
}

body.theme-light .nav-link {
  color: rgba(16, 27, 36, 0.78);
}

body.theme-light .nav-link:hover {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .nav-link.active {
  color: #101b24;
  background: linear-gradient(90deg, rgba(36, 115, 70, 0.18), rgba(36, 115, 70, 0.06));
}

body.theme-light .nav-icon {
  border-color: rgba(25, 48, 62, 0.28);
  color: rgba(16, 27, 36, 0.68);
}

body.theme-light .app-main {
  background: radial-gradient(circle at 50% 0%, #f9fbfc, #e8f0f4 54%, #dfe8ee);
}

body.theme-light .topbar,
body.theme-light .statusbar {
  background: rgba(248, 251, 253, 0.78);
}

body.theme-light .page-kicker,
body.theme-light .section-title,
body.theme-light .panel-header h2,
body.theme-light .settings-hero h2,
body.theme-light .metric-card span,
body.theme-light .terminal-table,
body.theme-light .terminal-table td,
body.theme-light .calendar-day,
body.theme-light .calendar-month-row > strong,
body.theme-light .calendar-day-details header span,
body.theme-light .calendar-train-list strong,
body.theme-light .calendar-train-list em,
body.theme-light .yard-section h3,
body.theme-light .upload-card strong,
body.theme-light .attendance-upload strong,
body.theme-light .attendance-shortcut-card,
body.theme-light .attendance-modal-header strong,
body.theme-light .attendance-modal-actions > span,
body.theme-light .attendance-summary-bar,
body.theme-light .attendance-modal-side > span,
body.theme-light .attendance-day-detail,
body.theme-light .dalsi-header-panel strong,
body.theme-light .dalsi-panel > header strong,
body.theme-light .dalsi-detail-header strong,
body.theme-light .dalsi-evidence-form > header strong,
body.theme-light .dalsi-evidence-table > header strong,
body.theme-light .dalsi-category-card h2,
body.theme-light .dalsi-planning-card h2,
body.theme-light .shift-plan-toolbar strong,
body.theme-light .shift-plan-table-head strong,
body.theme-light .shift-plan-summary strong,
body.theme-light .shift-plan-checks header,
body.theme-light .shift-plan-table thead th,
body.theme-light .shift-plan-table tbody th strong,
body.theme-light .dalsi-timesheet-pick-card h2,
body.theme-light .dalsi-timesheet-people-list strong,
body.theme-light .dalsi-timesheet-person-metrics strong,
body.theme-light .dalsi-timesheet-calendar strong,
body.theme-light .dalsi-timesheet-calendar span,
body.theme-light .dalsi-timesheet-calendar em,
body.theme-light .dalsi-timesheet-card > header strong,
body.theme-light .dalsi-timesheet-metrics strong,
body.theme-light .dalsi-timesheet-days b,
body.theme-light .dalsi-table,
body.theme-light .dalsi-table td strong,
body.theme-light .predavka-shift-strip strong,
body.theme-light .predavka-kpi-card strong,
body.theme-light .predavka-kpi-card span,
body.theme-light .predavka-panel > header strong,
body.theme-light .predavka-train-card strong,
body.theme-light .predavka-detail-grid dd,
body.theme-light .predavka-notes-title,
body.theme-light .predavka-general-list strong,
body.theme-light .predavka-modal > header strong,
body.theme-light .distribution-card-head h2,
body.theme-light .extra-category-card h2,
body.theme-light .handover-item-head strong,
body.theme-light .operation-train-card strong,
body.theme-light .train-plan-card strong,
body.theme-light .activity-list li strong,
body.theme-light .stock-state-row strong,
body.theme-light .today-shift-grid strong,
body.theme-light .manual-attendance-list strong,
body.theme-light .vacation-group-title strong,
body.theme-light .attendance-table td strong,
body.theme-light .theme-switch-form strong,
body.theme-light .profile-switch-list strong,
body.theme-light .settings-system-list strong,
body.theme-light .stock-summary-grid strong,
body.theme-light .reports-title-block strong,
body.theme-light .report-upload-card strong,
body.theme-light .report-table-shortcut span,
body.theme-light .report-bar-chart strong,
body.theme-light .report-flow-visual strong,
body.theme-light .report-ranking-list strong,
body.theme-light .report-watch-list strong,
body.theme-light .report-kpi-detail strong,
body.theme-light .report-modal-header h2,
body.theme-light .report-modal-subhead strong,
body.theme-light .report-calendar-current strong {
  color: #101b24;
}

body.theme-light .page-subtitle,
body.theme-light .weather-pill small,
body.theme-light .profile-pill small,
body.theme-light .terminal-table th,
body.theme-light .upload-card span,
body.theme-light .attendance-upload span,
body.theme-light .attendance-shortcut-card span,
body.theme-light .attendance-modal-header span,
body.theme-light .attendance-day-detail small,
body.theme-light .vacation-tabs a,
body.theme-light .dalsi-header-panel span,
body.theme-light .dalsi-panel > header span,
body.theme-light .dalsi-detail-header span,
body.theme-light .dalsi-evidence-form > header span,
body.theme-light .dalsi-evidence-table > header span,
body.theme-light .dalsi-category-card p,
body.theme-light .dalsi-planning-card p,
body.theme-light .shift-plan-toolbar label span,
body.theme-light .shift-plan-table-head span,
body.theme-light .shift-plan-actions span,
body.theme-light .shift-plan-summary span,
body.theme-light .shift-plan-tail span,
body.theme-light .shift-plan-table th small,
body.theme-light .shift-plan-table tbody th span,
body.theme-light .dalsi-timesheet-pick-card p,
body.theme-light .dalsi-timesheet-people-list span,
body.theme-light .dalsi-timesheet-person-metrics span,
body.theme-light .dalsi-timesheet-calendar header,
body.theme-light .dalsi-timesheet-toolbar label span,
body.theme-light .dalsi-timesheet-card > header span,
body.theme-light .dalsi-timesheet-metrics span,
body.theme-light .dalsi-table td small,
body.theme-light .predavka-shift-strip span,
body.theme-light .predavka-kpi-card small,
body.theme-light .predavka-panel > header span,
body.theme-light .predavka-train-card small,
body.theme-light .predavka-detail-grid dt,
body.theme-light .predavka-general-list span,
body.theme-light .predavka-modal > header span,
body.theme-light .distribution-card-head p,
body.theme-light .extra-category-card p,
body.theme-light .handover-item p,
body.theme-light .source-list span,
body.theme-light .flow-list span,
body.theme-light .operation-list span,
body.theme-light .activity-list li small,
body.theme-light .train-plan-card span,
body.theme-light .attendance-table td span,
body.theme-light .manual-attendance-list span,
body.theme-light .theme-switch-form span,
body.theme-light .profile-switch-list small,
body.theme-light .settings-system-list span,
body.theme-light .stock-summary-grid span,
body.theme-light .reports-title-block span,
body.theme-light .report-upload-card span,
body.theme-light .report-upload-card small,
body.theme-light .report-table-shortcut strong,
body.theme-light .report-bar-chart small,
body.theme-light .report-bar-chart em,
body.theme-light .report-flow-visual span,
body.theme-light .report-ranking-list span,
body.theme-light .report-ranking-list span small,
body.theme-light .report-watch-list span,
body.theme-light .report-watch-list small,
body.theme-light .report-day-grid span,
body.theme-light .report-day-grid small,
body.theme-light .report-kpi-detail span,
body.theme-light .report-kpi-detail p,
body.theme-light .report-modal-header span,
body.theme-light .report-modal-subhead span,
body.theme-light .report-calendar-current span,
body.theme-light .report-period-form label span,
body.theme-light .calendar-demo small {
  color: var(--muted);
}

body.theme-light .weather-pill [data-weather-wind] {
  color: rgba(16, 27, 36, 0.54);
}

body.theme-light .calendar-day:hover {
  border-color: rgba(25, 48, 62, 0.20);
  background: rgba(25, 48, 62, 0.05);
}

body.theme-light .calendar-day.weekend:not(.today) {
  color: #9b6d00;
  background: rgba(204, 154, 12, 0.09);
}

body.theme-light .calendar-day.today {
  color: #fff;
}

body.theme-light .calendar-day-details,
body.theme-light .calendar-train-list > a {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .dashboard-calendar-modal {
  background: transparent;
}

body.theme-light .dashboard-calendar-dialog {
  border-color: rgba(25, 48, 62, 0.14);
  background: #f8fbfc;
  box-shadow: 0 22px 60px rgba(25, 48, 62, 0.24);
}

body.theme-light .dashboard-calendar-close {
  border-color: rgba(25, 48, 62, 0.14);
  background: rgba(25, 48, 62, 0.04);
  color: rgba(16, 27, 36, 0.72);
}

body.theme-light .weather-pill [data-weather-wind]::before {
  color: rgba(16, 27, 36, 0.34);
}

body.theme-light .weather-pill [data-weather-wind] i {
  color: rgba(36, 115, 70, 0.78);
}

body.theme-light .weather-pill strong i {
  color: rgba(36, 115, 70, 0.82);
}

body.theme-light .profile-menu-panel {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(248, 251, 253, 0.96);
  box-shadow: 0 22px 70px rgba(25, 48, 62, 0.20);
}

body.theme-light .profile-menu-head,
body.theme-light .profile-menu-logout {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .profile-switch-menu button,
body.theme-light .profile-menu-action button,
body.theme-light .profile-menu-logout {
  color: rgba(16, 27, 36, 0.88);
}

body.theme-light .profile-switch-menu button:hover,
body.theme-light .profile-switch-menu button.active,
body.theme-light .profile-menu-action button:hover,
body.theme-light .profile-menu-logout:hover {
  border-color: rgba(36, 115, 70, 0.24);
  background: rgba(36, 115, 70, 0.10);
  color: #101b24;
}

body.theme-light .metric-card,
body.theme-light .panel,
body.theme-light .reports-command-panel,
body.theme-light .upload-card,
body.theme-light .attendance-upload,
body.theme-light .attendance-shortcut-card,
body.theme-light .dalsi-header-panel,
body.theme-light .dalsi-panel,
body.theme-light .dalsi-detail-panel,
body.theme-light .dalsi-evidence-form,
body.theme-light .dalsi-evidence-table,
body.theme-light .dalsi-category-card,
body.theme-light .dalsi-planning-card,
body.theme-light .shift-plan-toolbar,
body.theme-light .shift-plan-table-head,
body.theme-light .shift-plan-summary > div,
body.theme-light .shift-plan-checks section,
body.theme-light .shift-plan-form,
body.theme-light .dalsi-timesheet-pick-card,
body.theme-light .dalsi-timesheet-people > header,
body.theme-light .dalsi-timesheet-person > header,
body.theme-light .dalsi-timesheet-person-card,
body.theme-light .dalsi-timesheet-person-metrics div,
body.theme-light .dalsi-timesheet-calendar,
body.theme-light .dalsi-timesheet-toolbar,
body.theme-light .dalsi-timesheet-summary > div,
body.theme-light .dalsi-timesheet-card,
body.theme-light .dalsi-timesheet-days span,
body.theme-light .predavka-shift-strip,
body.theme-light .predavka-kpi-card,
body.theme-light .predavka-panel,
body.theme-light .predavka-train-card,
body.theme-light .predavka-modal,
body.theme-light .predavka-dialog-form,
body.theme-light .distribution-card,
body.theme-light .extra-category-card {
  background:
    radial-gradient(circle at 88% 0%, rgba(36, 115, 70, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 248, 0.96));
  box-shadow: 0 16px 34px rgba(34, 54, 70, 0.10);
}

body.theme-light .shift-plan-table thead th,
body.theme-light .shift-plan-table thead th:first-child,
body.theme-light .shift-plan-table tbody th {
  background: #f4f8fb;
}

body.theme-light .predavka-panel > header > div > i,
body.theme-light .predavka-train-card span b,
body.theme-light .predavka-detail-grid div,
body.theme-light .predavka-note-list div,
body.theme-light .predavka-general-list a {
  border-color: rgba(25, 48, 62, 0.10);
  background: rgba(25, 48, 62, 0.045);
}

body.theme-light .predavka-status-line {
  color: #1d613a;
  background: rgba(36, 115, 70, 0.08);
}

body.theme-light .shift-plan-toolbar input,
body.theme-light .shift-plan-table select,
body.theme-light .shift-plan-tail i,
body.theme-light .shift-plan-standby-menu select,
body.theme-light .shift-plan-extra-employees select {
  background: rgba(16, 27, 36, 0.06);
  color: #101b24;
}

body.theme-light .shift-plan-extra-employees,
body.theme-light .shift-plan-extra-list form {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .shift-plan-standby summary {
  border-color: rgba(14, 165, 160, 0.30);
  background: rgba(14, 165, 160, 0.10);
  color: #095f5d;
}

body.theme-light .shift-plan-standby-menu {
  border-color: rgba(14, 165, 160, 0.24);
  background: rgba(248, 251, 253, 0.98);
  box-shadow: 0 18px 42px rgba(25, 48, 62, 0.18);
}

body.theme-light .shift-plan-standby-fields label {
  border-color: rgba(25, 48, 62, 0.10);
  background: rgba(255, 255, 255, 0.42);
}

body.theme-light .shift-plan-standby-fields label span {
  color: rgba(16, 27, 36, 0.62);
}

body.theme-light .shift-plan-standby-actions button {
  border-color: rgba(14, 165, 160, 0.30);
  background: rgba(14, 165, 160, 0.12);
  color: #095f5d;
}

body.theme-light .shift-plan-table td.is-standby,
body.theme-light .shift-plan-table td.is-standby select {
  background: rgba(14, 165, 160, 0.17);
  color: #095f5d;
}

body.theme-light .shift-plan-extra-employees strong,
body.theme-light .shift-plan-extra-list span {
  color: #101b24;
}

body.theme-light .shift-plan-extra-employees label span {
  color: rgba(16, 27, 36, 0.62);
}

body.theme-light .vacation-planner-tabs a,
body.theme-light .vacation-planner-month a,
body.theme-light .vacation-planner-month label,
body.theme-light .vacation-planner-summary div,
body.theme-light .vacation-planner-form,
body.theme-light .vacation-planner-table-head {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: #101b24;
}

body.theme-light .vacation-planner-tabs a.active {
  color: #fff;
  background: #15803d;
  border-color: rgba(21, 128, 61, 0.38);
}

body.theme-light .vacation-planner-month strong,
body.theme-light .vacation-planner-summary strong,
body.theme-light .vacation-planner-table-head > strong,
body.theme-light .vacation-planner-table th,
body.theme-light .vacation-planner-table td strong {
  color: #101b24;
}

body.theme-light .vacation-planner-month label span,
body.theme-light .vacation-planner-summary span,
body.theme-light .vacation-planner-form label span,
body.theme-light .vacation-range-status,
body.theme-light .vacation-planner-table td span,
body.theme-light .vacation-planner-table th small {
  color: rgba(16, 27, 36, 0.62);
}

body.theme-light .vacation-planner-month input,
body.theme-light .vacation-planner-form input,
body.theme-light .vacation-planner-form select {
  background: rgba(255, 255, 255, 0.82);
  color: #101b24;
  border-color: rgba(25, 48, 62, 0.12);
  color-scheme: light;
}

body.theme-light .vacation-planner-table thead th,
body.theme-light .vacation-planner-table tbody td:first-child,
body.theme-light .vacation-planner-table tbody td:last-child {
  background: #f4f8fb;
}

body.theme-light .vacation-cell-toggle.is-active span {
  background: var(--purple);
  color: #fff;
}

body.theme-light .shift-plan-table th.issue-red,
body.theme-light .shift-plan-table td.issue-red,
body.theme-light .shift-plan-table td.issue-red select {
  background: rgba(224, 76, 76, 0.16);
  color: #7a211c;
}

body.theme-light button,
body.theme-light .logout-button,
body.theme-light .panel-action-link,
body.theme-light .report-header-actions a,
body.theme-light .report-source-switch a,
body.theme-light .report-upload-card label,
body.theme-light .train-plan-actions a,
body.theme-light .train-card-actions a,
body.theme-light .inline-row-actions a,
body.theme-light .handover-actions a,
body.theme-light .file-pick {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .terminal-table td,
body.theme-light .terminal-table th {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .map-toolbar input,
body.theme-light .table-search-form input,
body.theme-light .report-period-form input,
body.theme-light .report-period-form select,
body.theme-light .train-plan-form input,
body.theme-light .train-plan-form select,
body.theme-light .train-plan-form textarea,
body.theme-light .attendance-edit-form input,
body.theme-light .attendance-edit-form select,
body.theme-light .attendance-edit-dialog-form input,
body.theme-light .attendance-edit-dialog-form select,
body.theme-light .dalsi-evidence-form input,
body.theme-light .dalsi-evidence-form select,
body.theme-light .dalsi-evidence-form textarea,
body.theme-light .dalsi-timesheet-toolbar input,
body.theme-light .predavka-add-note textarea,
body.theme-light .predavka-general-form textarea,
body.theme-light .predavka-dialog-form input,
body.theme-light .predavka-dialog-form select,
body.theme-light .predavka-dialog-form textarea,
body.theme-light .handover-form input,
body.theme-light .handover-form select,
body.theme-light .handover-form textarea {
  color: #101b24;
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .dalsi-evidence-form.is-shift-end,
body.theme-light .dalsi-evidence-table.is-shift-end {
  border-color: rgba(25, 48, 62, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 249, 0.98));
}

body.theme-light .dalsi-evidence-form.is-shift-end > header {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .dalsi-evidence-form.is-shift-end input,
body.theme-light .dalsi-evidence-form.is-shift-end textarea {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(25, 48, 62, 0.14);
}

body.theme-light .dalsi-evidence-table.is-shift-end .dalsi-table td small {
  color: rgba(16, 27, 36, 0.74);
}

body.theme-light .shift-end-records {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

body.theme-light .shift-end-record {
  border-color: rgba(25, 48, 62, 0.09);
}

body.theme-light .shift-end-date {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .shift-end-date span,
body.theme-light .shift-end-line strong {
  color: #101b24;
}

body.theme-light .shift-end-date strong,
body.theme-light .shift-end-line span,
body.theme-light .shift-end-empty {
  color: rgba(16, 27, 36, 0.66);
}

body.theme-light .shift-end-meta span,
body.theme-light .shift-end-actions a,
body.theme-light .shift-end-actions button {
  color: rgba(16, 27, 36, 0.78);
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(244, 249, 251, 0.86);
}

body.theme-light .shift-end-actions a:hover,
body.theme-light .shift-end-actions button:hover {
  color: #fff;
  background: #2f9e58;
}

body.theme-light .manager-summary-hero,
body.theme-light .manager-summary-metrics article,
body.theme-light .manager-summary-tabs a,
body.theme-light .manager-summary-table-card,
body.theme-light .manager-calendar-tools form {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 10%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 248, 0.98));
  box-shadow: 0 16px 34px rgba(34, 54, 70, 0.10);
}

body.theme-light .manager-summary-hero h2,
body.theme-light .manager-summary-metrics strong,
body.theme-light .manager-summary-tabs strong,
body.theme-light .manager-summary-table-card > header strong,
body.theme-light .manager-summary-list time,
body.theme-light .manager-summary-row-main strong,
body.theme-light .manager-calendar-grid b {
  color: #101b24;
}

body.theme-light .manager-summary-hero p,
body.theme-light .manager-summary-metrics span,
body.theme-light .manager-summary-metrics small,
body.theme-light .manager-summary-tabs span,
body.theme-light .manager-summary-tabs small,
body.theme-light .manager-summary-table-card > header span,
body.theme-light .manager-summary-table-card > header em,
body.theme-light .manager-summary-row-main p,
body.theme-light .manager-summary-list article > small,
body.theme-light .manager-calendar-tools label span,
body.theme-light .manager-calendar-grid > span {
  color: rgba(16, 27, 36, 0.60);
}

body.theme-light .manager-summary-row-main span,
body.theme-light .manager-day-filter span {
  color: rgba(16, 27, 36, 0.78);
}

body.theme-light .manager-summary-hero > div > a,
body.theme-light .manager-calendar-open,
body.theme-light .manager-export-open,
body.theme-light .manager-day-filter a,
body.theme-light .manager-summary-toolbar > a:not(.manager-calendar-open):not(.manager-export-open),
body.theme-light .manager-summary-toolbar input,
body.theme-light .manager-summary-toolbar select,
body.theme-light .manager-calendar-tools input {
  color: #101b24;
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(25, 48, 62, 0.055);
}

body.theme-light .manager-summary-table-card > header,
body.theme-light .manager-summary-list article,
body.theme-light .manager-calendar-grid i.empty,
body.theme-light .manager-calendar-grid a {
  border-color: rgba(25, 48, 62, 0.09);
}

body.theme-light .manager-summary-list article.is-done,
body.theme-light .manager-calendar-grid a.has-entry {
  background: rgba(36, 115, 70, 0.10);
}

body.theme-light .manager-overtime-table th,
body.theme-light .manager-overtime-table td {
  border-color: rgba(25, 48, 62, 0.09);
  color: rgba(16, 27, 36, 0.72);
}

body.theme-light .manager-overtime-table th {
  background: rgba(25, 48, 62, 0.045);
  color: rgba(16, 27, 36, 0.52);
}

body.theme-light .manager-overtime-table td strong {
  color: #101b24;
}

body.theme-light .manager-overtime-month-cell span {
  color: #101b24;
}

body.theme-light .manager-overtime-table th.manager-overtime-month-head span {
  color: rgba(16, 27, 36, 0.72);
}

body.theme-light .manager-overtime-table th.manager-overtime-month-head small {
  color: rgba(16, 27, 36, 0.48);
}

body.theme-light .manager-overtime-month-cell em,
body.theme-light .manager-overtime-month-cell.is-negative em {
  color: rgba(16, 27, 36, 0.50);
}

body.theme-light .manager-overtime-month-cell.is-pending span {
  color: rgba(16, 27, 36, 0.42);
}

body.theme-light .manager-overtime-table tr.has-overtime {
  background: rgba(244, 177, 54, 0.12);
}

body.theme-light .manager-calendar-grid a {
  color: rgba(16, 27, 36, 0.78);
  background: rgba(255, 255, 255, 0.62);
}

body.theme-light .manager-calendar-grid a.weekend,
body.theme-light .manager-calendar-grid a.holiday {
  background: rgba(155, 116, 21, 0.08);
}

body.theme-light .manager-calendar-grid a.selected {
  background: rgba(37, 111, 176, 0.14);
}

body.theme-light .manager-calendar-grid em {
  color: #101b24;
  background: rgba(25, 48, 62, 0.10);
}

body.theme-light .dalsi-car-toggle legend {
  color: #101b24;
}

body.theme-light .dalsi-car-toggle span {
  color: rgba(16, 27, 36, 0.68);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(25, 48, 62, 0.14);
}

body.theme-light .dalsi-car-toggle input:checked + span {
  color: #fff;
  border-color: rgba(47, 158, 88, 0.56);
  background: #2f9e58;
}

body.theme-light .dalsi-month-filter {
  border-color: rgba(25, 48, 62, 0.10);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-light .dalsi-month-filter a,
body.theme-light .dalsi-month-filter button {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .dalsi-month-filter button {
  color: #fff;
  background: #2f9e58;
}

body.theme-light .dalsi-month-filter label span {
  color: rgba(16, 27, 36, 0.62);
}

body.theme-light .dalsi-month-filter input {
  color: #101b24;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(25, 48, 62, 0.14);
}

body.theme-light .attendance-edit-dialog {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    radial-gradient(circle at 92% 0%, rgba(36, 115, 70, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 248, 0.98));
  box-shadow: 0 24px 60px rgba(34, 54, 70, 0.18);
}

body.theme-light .attendance-edit-dialog > header {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .attendance-edit-dialog > header strong,
body.theme-light .attendance-edit-dialog-form input,
body.theme-light .attendance-edit-dialog-form select {
  color: #101b24;
}

body.theme-light .attendance-edit-dialog > header button {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .attendance-edit-dialog-form label span,
body.theme-light .attendance-edit-dialog > header span,
body.theme-light .dochazka-quick-note {
  color: var(--muted);
}

body.theme-light .report-header-actions a.active,
body.theme-light .report-header-actions a:hover,
body.theme-light .report-source-switch a.active,
body.theme-light .report-chart-tabs a.active,
body.theme-light .report-calendar-reset:hover {
  color: #101b24;
  background: rgba(36, 115, 70, 0.16);
}

body.theme-light .report-calendar-reset,
body.theme-light .report-calendar-current {
  color: #101b24;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .report-modal-backdrop {
  background: rgba(218, 228, 235, 0.70);
}

body.theme-light .attendance-modal-backdrop {
  background: rgba(218, 228, 235, 0.74);
}

body.theme-light .report-modal-window {
  background:
    radial-gradient(circle at 82% 0%, rgba(37, 111, 176, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 248, 0.98));
}

body.theme-light .attendance-modal-window {
  background:
    radial-gradient(circle at 82% 0%, rgba(37, 111, 176, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 248, 0.98));
}

body.theme-light .report-modal-close {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .attendance-modal-actions a,
body.theme-light .attendance-modal-actions button {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .dalsi-close-button,
body.theme-light .dalsi-form-secondary,
body.theme-light .dalsi-timesheet-toolbar a,
body.theme-light .dalsi-timesheet-people > header a,
body.theme-light .dalsi-timesheet-person > header a,
body.theme-light .dalsi-row-actions a,
body.theme-light .dalsi-row-actions button {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .predavka-add-note button,
body.theme-light .predavka-general-form button,
body.theme-light .predavka-detail-actions button,
body.theme-light .predavka-detail-links a,
body.theme-light .predavka-detail-links button,
body.theme-light .predavka-dialog-actions a,
body.theme-light .predavka-modal > header a {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .predavka-modal-backdrop {
  background: rgba(218, 228, 235, 0.74);
}

body.theme-light .attendance-modal-warning {
  color: #8f261e;
  background: rgba(185, 76, 68, 0.10);
}

body.theme-light .settings-data-header h2,
body.theme-light .settings-source-main strong {
  color: #101b24;
}

body.theme-light .settings-data-header p,
body.theme-light .settings-source-main span,
body.theme-light .settings-source-main small {
  color: var(--muted);
}

body.theme-light .dalsi-timesheet-person-hero {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, currentColor 12%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 246, 0.98));
  box-shadow: 0 20px 44px rgba(34, 54, 70, 0.12);
}

body.theme-light .dalsi-timesheet-person-hero::before {
  opacity: 0.36;
}

body.theme-light .dalsi-timesheet-person-title h2,
body.theme-light .dalsi-timesheet-calendar-card > header strong,
body.theme-light .dalsi-timesheet-calendar strong,
body.theme-light .shift-pill {
  color: #101b24;
}

body.theme-light .dalsi-timesheet-person-title p,
body.theme-light .dalsi-timesheet-calendar-card > header span,
body.theme-light .timesheet-evaluation-jump span,
body.theme-light .dalsi-timesheet-calendar span,
body.theme-light .dalsi-timesheet-calendar em {
  color: rgba(16, 27, 36, 0.70);
}

body.theme-light .dalsi-timesheet-person-actions > a,
body.theme-light .dalsi-timesheet-hero-month > a,
body.theme-light .dalsi-timesheet-hero-month input,
body.theme-light .dalsi-timesheet-title-actions button,
body.theme-light .dalsi-timesheet-title-actions a {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .dalsi-timesheet-card-link {
  color: #101b24;
}

body.theme-light .dalsi-timesheet-title-actions button.is-signed {
  color: #1d613a;
  background: rgba(36, 115, 70, 0.12);
}

body.theme-light .dalsi-timesheet-title-actions button.is-fill-days {
  border-color: rgba(36, 115, 70, 0.22);
  background: rgba(36, 115, 70, 0.08);
  color: #1d613a;
}

body.theme-light .dalsi-timesheet-person-card.is-signed {
  border-color: rgba(36, 115, 70, 0.22);
  background:
    radial-gradient(circle at 94% 0%, rgba(36, 115, 70, 0.14), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 241, 233, 0.96));
}

body.theme-light .dalsi-timesheet-person-card.is-signed span,
body.theme-light .dalsi-timesheet-people-list strong i {
  color: #1d613a;
}

body.theme-light .dalsi-timesheet-person-card.is-pending {
  border-color: rgba(37, 111, 176, 0.20);
  background:
    radial-gradient(circle at 94% 0%, rgba(37, 111, 176, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 240, 249, 0.96));
}

body.theme-light .dalsi-timesheet-person-card.is-pending strong i,
body.theme-light .dalsi-timesheet-person-card.is-pending span,
body.theme-light .dalsi-timesheet-title-actions button.is-pending {
  color: #256fb0;
}

body.theme-light .dalsi-timesheet-person-card.is-signed-waiting {
  border-color: rgba(168, 126, 28, 0.26);
  background:
    radial-gradient(circle at 94% 0%, rgba(168, 126, 28, 0.14), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 242, 219, 0.96));
}

body.theme-light .dalsi-timesheet-person-card.is-signed-waiting strong i,
body.theme-light .dalsi-timesheet-person-card.is-signed-waiting span {
  color: #9d7417;
}

body.theme-light .dalsi-timesheet-title-actions button.is-pending {
  background: rgba(37, 111, 176, 0.10);
}

body.theme-light .dalsi-timesheet-person-card.is-returned {
  border-color: rgba(185, 76, 68, 0.26);
  background:
    radial-gradient(circle at 94% 0%, rgba(185, 76, 68, 0.14), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 232, 231, 0.96));
}

body.theme-light .dalsi-timesheet-person-card.is-returned strong i,
body.theme-light .dalsi-timesheet-person-card.is-returned span,
body.theme-light .dalsi-timesheet-title-actions button.is-returned {
  color: #b94c44;
}

body.theme-light .dalsi-timesheet-title-actions button.is-returned {
  background: rgba(185, 76, 68, 0.10);
}

body.theme-light .dalsi-timesheet-signed-side {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    radial-gradient(circle at 92% 0%, rgba(36, 115, 70, 0.10), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 248, 0.96));
}

body.theme-light .dalsi-timesheet-signed-side strong {
  color: #101b24;
}

body.theme-light .dalsi-timesheet-signed-side a {
  border-color: rgba(25, 48, 62, 0.10);
  background: rgba(25, 48, 62, 0.04);
}

body.theme-light .timesheet-return-control form,
body.theme-light .timesheet-bonus-control form {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(34, 54, 70, 0.18);
}

body.theme-light .timesheet-range-control summary {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(25, 48, 62, 0.045);
  color: #101b24;
}

body.theme-light .timesheet-range-control[open] summary,
body.theme-light .timesheet-range-control summary:hover {
  background: rgba(36, 115, 70, 0.10);
  color: #17472c;
}

body.theme-light .timesheet-range-control form {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(34, 54, 70, 0.18);
}

body.theme-light .timesheet-range-control label span {
  color: rgba(16, 27, 36, 0.58);
}

body.theme-light .timesheet-range-control input,
body.theme-light .timesheet-range-control select {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #101b24;
}

body.theme-light .timesheet-range-control button {
  background: #1d613a;
  color: #fff;
}

body.theme-light .timesheet-return-control textarea,
body.theme-light .timesheet-bonus-control input {
  color: #101b24;
  background: rgba(255, 255, 255, 0.82);
}

body.theme-light .timesheet-return-note {
  color: #b94c44;
  background: rgba(185, 76, 68, 0.10);
}

body.theme-light .dalsi-timesheet-hero-month label span {
  color: rgba(16, 27, 36, 0.58);
}

body.theme-light .dalsi-timesheet-month-field {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

body.theme-light .dalsi-timesheet-month-field > i {
  background: rgba(36, 115, 70, 0.12);
  color: #1d613a;
}

body.theme-light .dalsi-timesheet-toolbar label small {
  color: var(--muted);
}

body.theme-light .dalsi-timesheet-person-metrics div {
  border-color: rgba(25, 48, 62, 0.10);
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, currentColor 13%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 246, 0.94));
  box-shadow: 0 14px 26px rgba(34, 54, 70, 0.10);
}

body.theme-light .dalsi-timesheet-person-metrics span {
  color: rgba(16, 27, 36, 0.58);
}

body.theme-light .dalsi-timesheet-person-metrics strong {
  color: #101b24;
}

body.theme-light .dalsi-timesheet-calendar-card {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, currentColor 7%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 247, 0.98));
  box-shadow: 0 18px 42px rgba(34, 54, 70, 0.11);
}

body.theme-light .dalsi-timesheet-calendar-card > header,
body.theme-light .dalsi-timesheet-calendar header,
body.theme-light .dalsi-timesheet-calendar > div,
body.theme-light .timesheet-evaluation-jump,
body.theme-light .dalsi-timesheet-calendar-card > header em {
  border-color: rgba(25, 48, 62, 0.09);
}

body.theme-light .timesheet-evaluation-jump,
body.theme-light .dalsi-timesheet-calendar-card > header em {
  background: rgba(25, 48, 62, 0.045);
}

body.theme-light .timesheet-evaluation-jump strong {
  color: #101b24;
}

body.theme-light .dalsi-timesheet-calendar header {
  background: rgba(25, 48, 62, 0.045);
  color: rgba(16, 27, 36, 0.56);
}

body.theme-light .dalsi-timesheet-calendar > div:hover {
  background: rgba(25, 48, 62, 0.035);
}

body.theme-light .dalsi-timesheet-calendar > div.weekend {
  background: rgba(155, 116, 21, 0.08);
}

body.theme-light .dalsi-timesheet-calendar > div.vacation {
  background: linear-gradient(90deg, rgba(155, 116, 21, 0.12), rgba(155, 116, 21, 0.035));
}

body.theme-light .dalsi-timesheet-calendar > div.manual {
  background: linear-gradient(90deg, rgba(37, 111, 176, 0.12), rgba(37, 111, 176, 0.035));
}

body.theme-light .shift-pill,
body.theme-light .status-pill {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(25, 48, 62, 0.055);
}

body.theme-light .timesheet-row-edit {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(25, 48, 62, 0.055);
  color: #101b24;
}

body.theme-light .settings-data-path,
body.theme-light .settings-source-card {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .settings-source-icon {
  background: rgba(25, 48, 62, 0.05);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .settings-source-card label {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .settings-source-card.uploaded label {
  background: rgba(36, 115, 70, 0.12);
  border-color: rgba(36, 115, 70, 0.22);
}

body.theme-light .evaluation-summary div,
body.theme-light .evaluation-group,
body.theme-light .evaluation-detail,
body.theme-light .evaluation-form,
body.theme-light .evaluation-history,
body.theme-light .evaluation-month-table,
body.theme-light .evaluation-history-toggle {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, currentColor 8%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 243, 247, 0.98));
}

body.theme-light .evaluation-summary strong,
body.theme-light .evaluation-group > header strong,
body.theme-light .evaluation-detail h2,
body.theme-light .evaluation-history > header strong,
body.theme-light .evaluation-people-list strong,
body.theme-light .evaluation-note strong,
body.theme-light .evaluation-month-toolbar > strong,
body.theme-light .evaluation-month-table > header strong,
body.theme-light .evaluation-history-toggle summary strong {
  color: #101b24;
}

body.theme-light .evaluation-summary span,
body.theme-light .evaluation-group > header span,
body.theme-light .evaluation-detail span,
body.theme-light .evaluation-history > header span,
body.theme-light .evaluation-people-list span,
body.theme-light .evaluation-note span,
body.theme-light .evaluation-form label span,
body.theme-light .evaluation-month-toolbar label span,
body.theme-light .evaluation-month-table > header span,
body.theme-light .evaluation-month-table th,
body.theme-light .evaluation-history-toggle summary em,
body.theme-light .evaluation-history-toggle th {
  color: var(--muted);
}

body.theme-light .evaluation-people-list a,
body.theme-light .evaluation-score,
body.theme-light .evaluation-note,
body.theme-light .evaluation-month-toolbar,
body.theme-light .evaluation-month-toolbar label,
body.theme-light .evaluation-month-toolbar > a,
body.theme-light .evaluation-month-table > div,
body.theme-light .evaluation-history-toggle > div,
body.theme-light .evaluation-history-toggle summary i {
  border-color: rgba(25, 48, 62, 0.10);
  background: rgba(25, 48, 62, 0.04);
}

body.theme-light .evaluation-people-list a.is-positive {
  border-color: rgba(36, 115, 70, 0.22);
  background: rgba(36, 115, 70, 0.08);
}

body.theme-light .evaluation-people-list a.is-negative {
  border-color: rgba(185, 76, 68, 0.24);
  background: rgba(185, 76, 68, 0.08);
}

body.theme-light .evaluation-form input,
body.theme-light .evaluation-form select,
body.theme-light .evaluation-form textarea,
body.theme-light .evaluation-month-toolbar input {
  color: #101b24;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .evaluation-note p,
body.theme-light .evaluation-month-table td,
body.theme-light .evaluation-history-toggle td {
  color: rgba(16, 27, 36, 0.76);
}

body.theme-light .evaluation-month-table th,
body.theme-light .evaluation-history-toggle th {
  background: rgba(25, 48, 62, 0.045);
}

body.theme-light .train-report-scroll .terminal-table thead th,
body.theme-light .train-unit-table-wrap .terminal-table thead th {
  background: rgba(239, 246, 249, 0.98);
}

body.theme-light .yard-mini div,
body.theme-light .yard-mini a,
body.theme-light .yard-section,
body.theme-light .bay-grid,
body.theme-light .yard-rails,
body.theme-light .container-mini-list div,
body.theme-light .source-list div,
body.theme-light .flow-list div,
body.theme-light .report-source-switch,
body.theme-light .report-source-frame,
body.theme-light .report-period-form,
body.theme-light .report-upload-card,
body.theme-light .report-table-shortcut,
body.theme-light .report-flow-visual div,
body.theme-light .report-ranking-list div,
body.theme-light .report-watch-list div,
body.theme-light .report-day-grid a,
body.theme-light .report-kpi-detail,
body.theme-light .report-modal-window,
body.theme-light .train-report-table-panel,
body.theme-light .modal-train-detail,
body.theme-light .stock-summary-grid div,
body.theme-light .train-detail-metrics div,
body.theme-light .handover-item,
body.theme-light .operation-train-card,
body.theme-light .operation-list div:not(.empty-state),
body.theme-light .distribution-stats div,
body.theme-light .distribution-output-preview div,
body.theme-light .distribution-schedule-row,
body.theme-light .employee-list button,
body.theme-light .today-shift-grid div:not(.empty-state),
body.theme-light .manual-attendance-list form,
body.theme-light .vacation-group-title,
body.theme-light .attendance-modal-header,
body.theme-light .attendance-summary-bar,
body.theme-light .attendance-modal-side,
body.theme-light .attendance-modal-side > span,
body.theme-light .attendance-day-detail,
body.theme-light .vacation-tabs a,
body.theme-light .dalsi-table-wrap,
body.theme-light .predavka-note-list div,
body.theme-light .predavka-general-list a,
body.theme-light .train-day,
body.theme-light .train-plan-card,
body.theme-light .train-plan-card.manual,
body.theme-light .theme-switch-form button,
body.theme-light .profile-switch-list button,
body.theme-light .settings-system-list div {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .stock-donut div {
  background: rgba(248, 251, 253, 0.96);
}

body.theme-light .attendance-table-wrap {
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .attendance-table th,
body.theme-light .attendance-table td {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .attendance-table th:first-child,
body.theme-light .attendance-table td:first-child,
body.theme-light .attendance-table thead th {
  background: rgba(239, 246, 249, 0.98);
}

body.theme-light .attendance-table .attendance-category-row td,
body.theme-light .attendance-table .attendance-category-row td:first-child {
  border-color: rgba(25, 48, 62, 0.14);
  background: rgba(229, 239, 245, 0.98);
}

body.theme-light .attendance-category-row td strong {
  color: #101b24;
}

body.theme-light .attendance-category-row td span {
  color: rgba(16, 27, 36, 0.58);
}

body.theme-light .dalsi-table th {
  color: #101b24;
  background: rgba(239, 246, 249, 0.98);
}

body.theme-light .dalsi-table td {
  border-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .dalsi-table tbody tr:nth-child(even) td {
  background: rgba(239, 246, 249, 0.60);
}

body.theme-light .attendance-table .weekend,
body.theme-light .train-day.weekend {
  background: rgba(202, 151, 28, 0.13);
}

body.theme-light .attendance-table .holiday {
  background: rgba(185, 76, 68, 0.14);
}

body.theme-light .attendance-table .outside {
  color: rgba(93, 113, 128, 0.36);
  background: rgba(239, 246, 249, 0.42);
}

body.theme-light .vacation-modal-table .vacation-table tr.empty-row td {
  background: rgba(239, 246, 249, 0.46);
}

body.theme-light .vacation-modal-table .vacation-table tr.empty-row td:first-child {
  background: rgba(239, 246, 249, 0.92);
}

body.theme-light .dochazka-top-panel,
body.theme-light .dochazka-panel {
  background:
    radial-gradient(circle at 88% 0%, rgba(36, 115, 70, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 248, 0.96));
  box-shadow: 0 16px 34px rgba(34, 54, 70, 0.10);
}

body.theme-light .dochazka-title-block strong,
body.theme-light .dochazka-panel header strong,
body.theme-light .dochazka-date-wrap strong,
body.theme-light .dochazka-assigned-list strong,
body.theme-light .dochazka-assigned-list b,
body.theme-light .dochazka-summary-list span {
  color: #101b24;
}

body.theme-light .dochazka-title-block span,
body.theme-light .dochazka-panel header span,
body.theme-light .dochazka-assigned-list p {
  color: var(--muted);
}

body.theme-light .dochazka-action-upload label,
body.theme-light .dochazka-top-button,
body.theme-light .dochazka-date-wrap,
body.theme-light .dochazka-action-upload button,
body.theme-light .attendance-row-edit,
body.theme-light .mini-delete-form button,
body.theme-light .dochazka-day-confirm,
body.theme-light .dochazka-date-wrap button,
body.theme-light .dochazka-date-wrap a,
body.theme-light .dochazka-employee-wrap,
body.theme-light .dochazka-shift-buttons span,
body.theme-light .dochazka-assigned-list > div,
body.theme-light .dochazka-summary-list div {
  color: #101b24;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .dochazka-day-confirm button {
  color: #101b24;
  background: rgba(36, 115, 70, 0.13);
}

body.theme-light .dochazka-employee-wrap .employee-list span,
body.theme-light .dochazka-custom-times input,
body.theme-light .dochazka-vacation-quick input,
body.theme-light .dochazka-vacation-quick select,
body.theme-light .dochazka-date-picker,
body.theme-light .dochazka-assignment-form > input[type="date"] {
  color: #101b24;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .dochazka-date-wrap .dochazka-date-picker-trigger {
  color: #101b24;
}

body.theme-light .dochazka-employee-wrap .employee-list input:checked + span,
body.theme-light .dochazka-shift-buttons input:checked + span {
  color: #101b24;
  background: rgba(36, 115, 70, 0.16);
}

body.theme-light .app-message {
  color: #101b24;
  border-color: rgba(22, 101, 52, 0.32);
  background: #ecfdf3;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

body.theme-light .app-message.error {
  border-color: rgba(185, 28, 28, 0.58);
  background: #fee2e2;
  color: #7f1d1d;
}

body.theme-light .app-message.warning {
  border-color: rgba(194, 65, 12, 0.52);
  background: #ffedd5;
  color: #7c2d12;
}

body.theme-light .brand img {
  filter: drop-shadow(0 6px 14px rgba(25, 48, 62, 0.16));
}

body.theme-light .map-app-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 111, 176, 0.10), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(229, 238, 244, 0.98));
  box-shadow: 0 18px 42px rgba(34, 54, 70, 0.12);
}

body.theme-light .map-command-row {
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .map-section-card h2,
body.theme-light .map-section-card dd,
body.theme-light .map-service-card span,
body.theme-light .map-service-card strong,
body.theme-light .map-bay-board h2,
body.theme-light .map-bay-row > div:first-child strong,
body.theme-light .map-bay-cells a,
body.theme-light .bay-detail-hero strong,
body.theme-light .bay-detail-hero dd,
body.theme-light .bay-visual-head strong,
body.theme-light .bay-row-track > aside strong,
body.theme-light .bay-container-table-panel strong,
body.theme-light .bay-original-title-row h2,
body.theme-light .bay-original-chip strong,
body.theme-light .container-detail-dialog header span,
body.theme-light .container-stack-card header strong,
body.theme-light .container-stack-card dd,
body.theme-light .dashboard-yard-section span,
body.theme-light .dashboard-map-services span {
  color: #101b24;
}

body.theme-light .map-command-row label,
body.theme-light .map-command-row button,
body.theme-light .map-reset,
body.theme-light .map-section-card,
body.theme-light .map-section-perspective,
body.theme-light .map-service-card,
body.theme-light .map-legend-row,
body.theme-light .map-bay-top aside,
body.theme-light .map-capacity-pill,
body.theme-light .map-detail-head > div,
body.theme-light .map-bay-board,
body.theme-light .bay-original-header,
body.theme-light .bay-original-grid-panel,
body.theme-light .bay-original-chip,
body.theme-light .bay-detail-hero,
body.theme-light .bay-detail-hero dl div,
body.theme-light .bay-row-track,
body.theme-light .bay-container-table-panel,
body.theme-light .bay-stack-panel,
body.theme-light .container-detail-panel,
body.theme-light .container-stack-card,
body.theme-light .map-empty-panel,
body.theme-light .dashboard-map-rails,
body.theme-light .dashboard-map-preview,
body.theme-light .dashboard-yard-section,
body.theme-light .dashboard-yard-road,
body.theme-light .dashboard-map-services a {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-light .dashboard-map-preview {
  background:
    linear-gradient(90deg, rgba(25, 48, 62, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(25, 48, 62, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 34% 0%, rgba(40, 140, 78, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(235, 243, 248, 0.78));
}

body.theme-light .dashboard-yard-stack,
body.theme-light .dashboard-map-rails,
body.theme-light .dashboard-yard-road,
body.theme-light .dashboard-map-services a {
  background-color: rgba(255, 255, 255, 0.48);
}

body.theme-light .dashboard-yard-stack b,
body.theme-light .dashboard-yard-road span {
  color: #101b24;
  background: rgba(255, 255, 255, 0.82);
}

body.theme-light .dashboard-yard-blueprint .dashboard-yard-stage {
  background:
    linear-gradient(90deg, rgba(25, 48, 62, 0.055) 0 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(25, 48, 62, 0.04) 0 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 26% 28%, rgba(40, 140, 78, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(250, 253, 255, 0.94), rgba(230, 239, 245, 0.92));
}

body.theme-light .dashboard-yard-blueprint .dashboard-yard-section {
  border-color: rgba(52, 82, 102, 0.30);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(226, 237, 244, 0.94));
  box-shadow: 0 10px 20px rgba(34, 54, 70, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-light .dashboard-yard-blueprint .dashboard-yard-stack {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(25, 48, 62, 0.12) 48% 49%, transparent 49%),
    rgba(236, 244, 248, 0.72);
}

body.theme-light .dashboard-yard-blueprint .dashboard-yard-service {
  border-color: rgba(52, 82, 102, 0.20);
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .map-command-row input {
  color: #101b24;
}

body.theme-light .map-section-perspective b {
  color: #101b24;
  background: rgba(248, 251, 253, 0.92);
}

body.theme-light .map-rail-row i,
body.theme-light .dashboard-map-rails i {
  border-color: rgba(25, 48, 62, 0.24);
}

body.theme-light .map-rail-row i::before {
  border-color: rgba(25, 48, 62, 0.28);
}

body.theme-light .container-box-visual {
  background:
    linear-gradient(90deg, rgba(36, 115, 70, 0.12), transparent 16%),
    linear-gradient(135deg, rgba(78, 136, 101, 0.62), rgba(98, 143, 180, 0.55));
}

body.theme-light .map-data-table {
  background: rgba(255, 255, 255, 0.58);
}

body.theme-light .map-table-scroll {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

body.theme-light .timesheet-zoom-controls,
body.theme-light .table-zoom-controls {
  border-color: rgba(25, 48, 62, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .timesheet-zoom-controls button,
body.theme-light .table-zoom-controls button {
  border-right-color: rgba(25, 48, 62, 0.10);
  color: rgba(16, 27, 36, 0.76);
}

body.theme-light .timesheet-zoom-controls button:hover,
body.theme-light .table-zoom-controls button:hover {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .timesheet-zoom-controls span,
body.theme-light .table-zoom-controls span {
  color: rgba(16, 27, 36, 0.78);
}

body.theme-light .bay-row-label,
body.theme-light .bay-tier-label,
body.theme-light .bay-original-row-label,
body.theme-light .bay-original-tier-label {
  color: #245a84;
  background: rgba(230, 242, 250, 0.72);
  border-color: rgba(36, 80, 112, 0.18);
}

body.theme-light .bay-tier-cell > span {
  color: #245a84;
  background: rgba(37, 111, 176, 0.10);
}

body.theme-light .bay-original-search input {
  color: #101b24;
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .container-detail-overlay {
  background: rgba(218, 228, 235, 0.70);
}

body.theme-light .container-detail-dialog {
  background: rgb(255, 255, 255);
}

body.theme-light .container-detail-dialog dt,
body.theme-light .container-detail-dialog dd {
  color: #101b24;
}

body.theme-light .container-detail-close {
  color: #101b24;
}

body.theme-light .container-slot.empty {
  border: 0;
  background: transparent;
  opacity: 0.74;
}

body.theme-light .container-slot.empty::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, rgba(0, 0, 0, 0.08) 1px 2px, transparent 2px 10px),
    linear-gradient(145deg, #394957, #202c34);
}

body.theme-light .container-slot.empty::after {
  background: linear-gradient(135deg, #475864, #25313a);
}

body.theme-light .container-detail-panel header strong,
body.theme-light .container-detail-panel dd,
body.theme-light .bay-container-legend span {
  color: #101b24;
}

body.theme-light .operation-command-panel {
  background:
    linear-gradient(90deg, rgba(36, 115, 70, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 247, 0.96));
}

body.theme-light .operation-command-copy h1,
body.theme-light .operation-command-status strong,
body.theme-light .active-operation-main strong,
body.theme-light .operation-document-card strong,
body.theme-light .operation-flow-step strong,
body.theme-light .operation-preview-list strong {
  color: #101b24;
}

body.theme-light .operation-command-status,
body.theme-light .active-operation-main,
body.theme-light .operation-document-card,
body.theme-light .operation-flow-step,
body.theme-light .operation-preview-list div {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-light .operation-document-card span,
body.theme-light .operation-flow-step span,
body.theme-light .operation-preview-list span,
body.theme-light .active-operation-main span,
body.theme-light .operation-command-copy p,
body.theme-light .operation-command-status small {
  color: var(--muted);
}

body.theme-light .export-title-block strong,
body.theme-light .import-operation-heading strong,
body.theme-light .export-train-tile strong,
body.theme-light .export-list-card strong,
body.theme-light .export-report-panel > header strong,
body.theme-light .export-context-panel > header strong,
body.theme-light .export-state-panel > strong,
body.theme-light .export-upload-card strong,
body.theme-light .export-file-action strong,
body.theme-light .export-state-list span {
  color: #101b24;
}

body.theme-light .export-title-block small,
body.theme-light .import-operation-heading small,
body.theme-light .import-operation-edit span,
body.theme-light .export-list-card span,
body.theme-light .export-list-card small,
body.theme-light .export-report-panel > header span,
body.theme-light .export-context-panel > header span,
body.theme-light .export-create-panel label,
body.theme-light .export-upload-card span,
body.theme-light .export-file-action span,
body.theme-light .export-state-list em {
  color: var(--muted);
}

body.theme-light .export-section-label,
body.theme-light .export-train-tile,
body.theme-light .export-list-card,
body.theme-light .export-report-panel,
body.theme-light .export-create-panel,
body.theme-light .export-context-panel,
body.theme-light .export-ops-panel,
body.theme-light .import-operation-edit,
body.theme-light .export-state-panel,
body.theme-light .export-upload-card,
body.theme-light .export-file-action,
body.theme-light .export-state-list div {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .export-list-button,
body.theme-light .export-back-button,
body.theme-light .export-secondary-button {
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .train-import-page .export-primary-button,
body.theme-light .train-import-page .export-secondary-button,
body.theme-light .train-import-page .export-list-button,
body.theme-light .train-import-page .export-back-button {
  position: relative;
  border-color: rgba(100, 116, 139, 0.18);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(100, 116, 139, 0.04);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

body.theme-light .train-import-page .export-primary-button {
  border-color: rgba(21, 128, 61, 0.36);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.96), rgba(21, 128, 61, 0.92));
  box-shadow:
    0 12px 26px rgba(21, 128, 61, 0.18),
    0 0 0 1px rgba(21, 128, 61, 0.16),
    0 0 20px rgba(34, 197, 94, 0.14);
}

body.theme-light .train-import-page .export-secondary-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.76));
}

body.theme-light .train-import-page .export-primary-button:hover,
body.theme-light .train-import-page .export-primary-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(21, 128, 61, 0.56);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.98), rgba(21, 128, 61, 0.96));
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(21, 128, 61, 0.18),
    0 0 26px rgba(34, 197, 94, 0.30);
}

body.theme-light .train-import-page .export-secondary-button:hover,
body.theme-light .train-import-page .export-secondary-button:focus-visible,
body.theme-light .train-import-page .export-list-button:hover,
body.theme-light .train-import-page .export-list-button:focus-visible,
body.theme-light .train-import-page .export-back-button:hover,
body.theme-light .train-import-page .export-back-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.86));
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(100, 116, 139, 0.14),
    0 0 22px rgba(100, 116, 139, 0.18);
}

body.theme-light .train-import-page .export-primary-button:active,
body.theme-light .train-import-page .export-secondary-button:active,
body.theme-light .train-import-page .export-list-button:active,
body.theme-light .train-import-page .export-back-button:active {
  transform: translateY(0);
  box-shadow:
    0 5px 12px rgba(15, 23, 42, 0.08),
    inset 0 2px 6px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(21, 128, 61, 0.16);
}

body.theme-light .train-import-page .export-primary-button i,
body.theme-light .train-import-page .export-secondary-button i,
body.theme-light .train-import-page .export-list-button i,
body.theme-light .train-import-page .export-back-button i {
  transition: transform 150ms ease, filter 150ms ease;
}

body.theme-light .train-import-page .export-primary-button:hover i,
body.theme-light .train-import-page .export-primary-button:focus-visible i {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.38));
}

body.theme-light .train-import-page .export-secondary-button:hover i,
body.theme-light .train-import-page .export-secondary-button:focus-visible i,
body.theme-light .train-import-page .export-list-button:hover i,
body.theme-light .train-import-page .export-list-button:focus-visible i,
body.theme-light .train-import-page .export-back-button:hover i,
body.theme-light .train-import-page .export-back-button:focus-visible i {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 7px rgba(100, 116, 139, 0.28));
}

body.theme-light .train-import-page .export-primary-button:disabled,
body.theme-light .train-import-page .export-secondary-button:disabled {
  transform: none;
  box-shadow: none;
  filter: none;
}

body.theme-light .export-input-row,
body.theme-light .export-date-row,
body.theme-light .import-operation-edit input {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .export-input-row input,
body.theme-light .export-date-row input,
body.theme-light .export-date-row select,
body.theme-light .import-operation-edit input {
  color: #101b24;
}

body.theme-light .export-input-row input::placeholder,
body.theme-light .export-date-row input::placeholder {
  color: rgba(16, 27, 36, 0.45);
}

body.theme-light .export-date-row input[type="date"],
body.theme-light .export-date-row input[type="time"],
body.theme-light .import-operation-edit input[type="date"],
body.theme-light .import-operation-edit input[type="time"] {
  color-scheme: light;
}

body.theme-light .train-import-page .import-workbench-hero {
  border-bottom-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .train-import-page .import-workbench-hero strong,
body.theme-light .train-import-page .import-relation-section > header strong,
body.theme-light .train-import-page .import-relation-card-main strong,
body.theme-light .train-import-page .import-create-modal header strong,
body.theme-light .train-import-page .import-history-panel > header strong,
body.theme-light .train-import-page .import-history-train strong {
  color: #101b24;
}

body.theme-light .train-import-page .import-workbench-hero span,
body.theme-light .train-import-page .import-relation-section > header span,
body.theme-light .train-import-page .import-relation-card-main small,
body.theme-light .train-import-page .import-create-modal header span,
body.theme-light .train-import-page .import-create-modal label,
body.theme-light .train-import-page .import-history-panel > header span,
body.theme-light .train-import-page .import-history-train small,
body.theme-light .train-import-page .import-history-meta small {
  color: rgba(50, 66, 78, 0.68);
}

body.theme-light .train-import-page .import-workbench-actions a,
body.theme-light .train-import-page .import-relation-archive {
  border-color: rgba(25, 48, 62, 0.12);
  color: rgba(16, 27, 36, 0.70);
  background: rgba(255, 255, 255, 0.64);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

body.theme-light .train-import-page .import-workbench-actions a:hover,
body.theme-light .train-import-page .import-relation-archive:hover {
  border-color: rgba(24, 164, 86, 0.34);
  color: #101b24;
  background: rgba(24, 164, 86, 0.12);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: 0 0 0 1px rgba(24, 164, 86, 0.10), 0 0 18px rgba(24, 164, 86, 0.16);
}

body.theme-light .train-import-page .import-workbench-actions a,
body.theme-light .train-import-page .import-workbench-actions a:hover {
  background-image: none;
}

body.theme-light .train-import-page .import-relation-archive,
body.theme-light .train-import-page .import-relation-archive:hover {
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

body.theme-light .train-import-page .import-relation-card {
  border-color: rgba(25, 48, 62, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(238, 247, 250, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.theme-light .train-import-page .import-relation-card:hover {
  background: #fff;
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(25, 48, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.theme-light .train-import-page .import-relation-card::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.54) 100%),
    radial-gradient(circle at 18% 30%, rgba(14, 165, 233, 0.08), transparent 42%);
  opacity: 0.96;
}

body.theme-light .train-import-page .import-relation-card.trailer::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.54) 100%),
    radial-gradient(circle at 18% 30%, rgba(37, 99, 235, 0.11), transparent 42%);
}

body.theme-light .train-import-page .import-relation-card.container::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.54) 100%),
    radial-gradient(circle at 18% 30%, rgba(21, 128, 61, 0.10), transparent 42%);
}

body.theme-light .train-import-page .import-relation-card.trailer {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.96) 52%);
}

body.theme-light .train-import-page .import-relation-card.container {
  border-color: rgba(21, 128, 61, 0.16);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.96) 52%);
}

body.theme-light .train-import-page .import-relation-card.trailer:hover {
  border-color: rgba(37, 99, 235, 0.54);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 0 28px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.theme-light .train-import-page .import-relation-card.container:hover {
  border-color: rgba(21, 128, 61, 0.50);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(21, 128, 61, 0.16),
    0 0 28px rgba(21, 128, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.theme-light .train-import-page .import-relation-card-actions {
  border-top-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .train-import-page .import-relation-card.trailer .train-import-type-icon {
  color: rgba(37, 99, 235, 0.86);
  opacity: 0.14;
}

body.theme-light .train-import-page .import-relation-card.container .train-import-type-icon {
  color: rgba(21, 128, 61, 0.88);
  opacity: 0.14;
}

body.theme-light .train-import-page .import-relation-card.trailer:hover .train-import-type-icon {
  opacity: 0.50;
  filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.52));
}

body.theme-light .train-import-page .import-relation-card.container:hover .train-import-type-icon {
  opacity: 0.48;
  filter: drop-shadow(0 0 14px rgba(21, 128, 61, 0.48));
}

body.theme-light .train-import-page .import-relation-card.trailer .import-relation-create-hint {
  color: #1d4ed8;
}

body.theme-light .train-import-page .import-relation-card.container .import-relation-create-hint {
  color: #166534;
}

body.theme-light .train-import-page .import-create-modal {
  background: rgba(15, 23, 42, 0.38);
}

body.theme-light .train-import-page .import-create-modal > section {
  border-color: rgba(25, 48, 62, 0.14);
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
}

body.theme-light .train-import-page .import-create-modal header button {
  border-color: rgba(25, 48, 62, 0.12);
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .train-import-page .import-history-panel,
body.theme-light .train-import-page .import-history-row,
body.theme-light .train-import-page .import-notification-panel,
body.theme-light .train-import-page .import-notification-tile {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .train-import-page .import-history-meta b,
body.theme-light .train-import-page .import-history-status,
body.theme-light .train-import-page .import-notification-panel > header strong,
body.theme-light .train-import-page .import-notification-tile strong,
body.theme-light .train-import-page .import-notification-tile small {
  color: #101b24;
}

body.theme-light .train-import-page .import-notification-panel > header span,
body.theme-light .train-import-page .import-notification-tile span {
  color: rgba(50, 66, 78, 0.62);
}

body.theme-light .train-import-page .import-notification-tile {
  border-color: rgba(71, 85, 105, 0.22);
  background: #f8fafc;
  color: #334155;
  box-shadow: inset 3px 0 0 #94a3b8;
}

body.theme-light .train-import-page .import-notification-tile > i {
  color: #64748b;
  font-size: 16px;
}

body.theme-light .train-import-page .import-notification-tile strong {
  color: #1e293b;
}

body.theme-light .train-import-page .import-notification-tile.is-done {
  border-color: rgba(22, 101, 52, 0.34);
  background: #dcfce7;
  color: #14532d;
  box-shadow: inset 3px 0 0 #16a34a;
}

body.theme-light .train-import-page .import-notification-tile.is-done > i,
body.theme-light .train-import-page .import-notification-tile.is-done strong {
  color: #14532d;
}

body.theme-light .train-import-page .import-notification-tile.is-done span {
  color: rgba(20, 83, 45, 0.76);
}

body.theme-light .train-import-page .import-notification-tile.is-warning {
  border-color: rgba(185, 28, 28, 0.56);
  background: #fee2e2;
  color: #7f1d1d;
  box-shadow: inset 3px 0 0 #dc2626;
}

body.theme-light .train-import-page .import-notification-tile.is-warning > i,
body.theme-light .train-import-page .import-notification-tile.is-warning strong {
  color: #7f1d1d;
}

body.theme-light .train-import-page .import-notification-tile.is-warning span {
  color: rgba(127, 29, 29, 0.82);
}

body.theme-light .train-import-page .export-ops-screen {
  color: #101b24;
}

body.theme-light .train-import-page .import-operation-heading span {
  color: rgba(50, 66, 78, 0.82);
  background: transparent;
  box-shadow: none;
}

body.theme-light .train-import-page .import-operation-heading strong,
body.theme-light .train-import-page .import-operation-heading small {
  background: transparent;
  box-shadow: none;
}

body.theme-light .train-import-page .import-operation-id-row span {
  color: inherit;
  background: transparent;
}

body.theme-light .train-import-page .import-operation-id-row button {
  border-color: rgba(25, 48, 62, 0.16);
  color: #101b24;
  background: rgba(255, 255, 255, 0.82);
}

body.theme-light .train-import-page .export-upload-card,
body.theme-light .train-import-page .export-file-action,
body.theme-light .train-import-page .export-state-panel,
body.theme-light .train-import-page .export-context-panel,
body.theme-light .train-import-page .export-ops-panel {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.theme-light .train-import-page .export-upload-card {
  border-color: rgba(21, 128, 61, 0.20);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 244, 0.72)),
    #fff;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(21, 128, 61, 0.06),
    0 0 22px rgba(34, 197, 94, 0.10);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.theme-light .train-import-page .export-upload-card:hover,
body.theme-light .train-import-page .export-upload-card:focus-within,
body.theme-light .train-import-page .export-upload-card.is-drag-over,
body.theme-light .train-import-page .export-upload-card.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(21, 128, 61, 0.64);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(187, 247, 208, 0.88)),
    #fff;
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.12),
    0 0 0 2px rgba(21, 128, 61, 0.22),
    0 0 36px rgba(34, 197, 94, 0.42);
}

body.theme-light .train-import-page .export-upload-card strong,
body.theme-light .train-import-page .export-file-action strong,
body.theme-light .train-import-page .export-state-panel > strong,
body.theme-light .train-import-page .export-state-list span {
  color: #101b24;
}

body.theme-light .train-import-page .export-upload-card span,
body.theme-light .train-import-page .export-file-action span,
body.theme-light .train-import-page .export-state-list em {
  color: rgba(50, 66, 78, 0.68);
}

body.theme-light .train-import-page .export-upload-card i,
body.theme-light .train-import-page .export-file-action i,
body.theme-light .train-import-page .import-notification-panel > header > i {
  color: #15803d;
}

body.theme-light .train-import-page .export-upload-card:hover i,
body.theme-light .train-import-page .export-upload-card:focus-within i,
body.theme-light .train-import-page .export-upload-card.is-drag-over i,
body.theme-light .train-import-page .export-upload-card.is-dragover i {
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.36));
}

body.theme-light .train-import-page .export-upload-card.import-stable-upload-card.is-drag-over {
  border-color: rgba(21, 128, 61, 0.42);
  background: rgba(240, 253, 244, 0.96);
}

body:not(.theme-light) .train-import-page .import-upload-list div {
  border-color: rgba(210, 222, 232, 0.12);
  background: rgba(9, 16, 24, 0.92);
}

body:not(.theme-light) .train-import-page .import-upload-list span {
  color: rgba(245, 248, 250, 0.92);
}

body:not(.theme-light) .train-import-page .import-upload-list span small {
  color: #9fd4ff;
  background: rgba(160, 198, 232, 0.10);
}

body:not(.theme-light) .train-import-page .import-upload-list button {
  color: rgba(245, 248, 250, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

body.theme-light .train-import-page .import-upload-details summary,
body.theme-light .train-import-page .import-upload-files summary {
  border-color: rgba(21, 128, 61, 0.24);
  color: #101b24;
  background: rgba(240, 253, 244, 0.88);
}

body.theme-light .train-import-page .import-upload-list div {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

body.theme-light .page-content.page-train_import .import-upload-list div {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

body.theme-light .train-import-page .import-upload-list span {
  color: #101b24;
}

body.theme-light .page-content.page-train_import .import-upload-list span {
  color: #101b24;
}

body.theme-light .train-import-page .import-upload-list span small {
  color: #166534;
  background: rgba(22, 101, 52, 0.10);
}

body.theme-light .page-content.page-train_import .import-upload-list span small {
  color: #166534;
  background: rgba(22, 101, 52, 0.10);
}

body.theme-light .train-import-page .import-upload-list button {
  color: rgba(50, 66, 78, 0.72);
}

body.theme-light .page-content.page-train_import .import-upload-list button {
  color: rgba(50, 66, 78, 0.72);
  background: rgba(25, 48, 62, 0.05);
}

body.theme-light .train-import-page .import-upload-list button:hover {
  border-color: rgba(100, 116, 139, 0.30);
  color: #101b24;
  background: rgba(226, 232, 240, 0.86);
  box-shadow:
    0 0 0 2px rgba(100, 116, 139, 0.10),
    0 0 18px rgba(100, 116, 139, 0.22);
}

body.theme-light .train-import-page .import-summary-panel {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.theme-light .train-import-page .import-summary-panel header {
  border-bottom-color: rgba(25, 48, 62, 0.10);
}

body.theme-light .train-import-page .import-summary-panel header strong,
body.theme-light .train-import-page .import-summary-grid strong {
  color: #101b24;
}

body.theme-light .train-import-page .import-summary-panel header span,
body.theme-light .train-import-page .import-summary-grid span {
  color: rgba(50, 66, 78, 0.68);
}

body.theme-light .train-import-page .import-summary-grid div,
body.theme-light .train-import-page .import-summary-grid .export-loading-summary-cards > div {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.86);
}

body.theme-light .train-import-page .import-summary-grid div.is-warning {
  border-color: rgba(185, 28, 28, 0.56);
  background: #fee2e2;
  box-shadow: inset 3px 0 0 #dc2626, 0 0 0 1px rgba(185, 28, 28, 0.10);
}

body.theme-light .train-import-page .import-summary-badge {
  border-color: rgba(127, 29, 29, 0.22);
  color: #fff;
  background: #b91c1c;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.22);
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-row {
  background: linear-gradient(90deg, rgba(21, 128, 61, 0.08), rgba(255, 255, 255, 0));
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-row.is-spare {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.10), rgba(255, 255, 255, 0));
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-row.is-spare .export-loading-summary-label,
body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-row.is-spare .export-loading-summary-label::after {
  color: #92400e;
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-ok strong,
body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-ok span {
  color: #166534;
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-danger strong,
body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-danger span {
  color: #b91c1c;
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-warning {
  border-color: rgba(217, 119, 6, 0.34);
  background: rgba(255, 251, 235, 0.94);
  box-shadow: none;
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-warning strong,
body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-warning span {
  color: #92400e;
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-adr {
  border-color: rgba(185, 28, 28, 0.42);
  background: #fee2e2;
  box-shadow: inset 3px 0 0 #dc2626;
}

body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-adr strong,
body.theme-light .train-import-page .trailer-export-summary .export-loading-summary-cards > .tone-adr span {
  color: #7f1d1d;
}

body.theme-light .train-import-page .container-export-summary .import-summary-grid > .tone-warning {
  border-color: rgba(217, 119, 6, 0.34);
  background: rgba(255, 251, 235, 0.94);
  box-shadow: none;
}

body.theme-light .train-import-page .container-export-summary .import-summary-grid > .tone-warning strong,
body.theme-light .train-import-page .container-export-summary .import-summary-grid > .tone-warning span {
  color: #92400e;
}

body.theme-light .train-import-page .container-export-summary .import-summary-grid > .tone-danger {
  border-color: rgba(185, 28, 28, 0.34);
  background: #fee2e2;
  box-shadow: none;
}

body.theme-light .train-import-page .container-export-summary .import-summary-grid > .tone-danger strong,
body.theme-light .train-import-page .container-export-summary .import-summary-grid > .tone-danger span {
  color: #7f1d1d;
}

body.theme-light .train-import-page .import-summary-warnings > div,
body.theme-light .train-import-page .export-warning-chips span {
  border-color: rgba(185, 28, 28, 0.50);
  background: #fee2e2;
  box-shadow: inset 3px 0 0 #dc2626;
}

body.theme-light .train-import-page .import-summary-warnings strong,
body.theme-light .train-import-page .export-warning-chips strong {
  color: #7f1d1d;
}

body.theme-light .train-import-page .import-summary-warnings textarea {
  border-color: rgba(185, 28, 28, 0.34);
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.92);
}

body.theme-light .train-import-page .summary-warning-alert {
  border-color: rgba(220, 38, 38, 0.54);
  color: #7f1d1d;
  background:
    linear-gradient(135deg, rgba(254, 226, 226, 0.98), rgba(255, 247, 237, 0.96)),
    #fff7ed;
  box-shadow: inset 3px 0 0 #dc2626, 0 12px 24px rgba(185, 28, 28, 0.14);
}

body.theme-light .train-import-page .summary-warning-alert i {
  color: #dc2626;
}

body.theme-light .train-import-page .summary-warning-alert strong {
  color: #fff;
  background: #dc2626;
}

body.theme-light .train-import-page .summary-warning-modal > section {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fffaf5;
}

body.theme-light .train-import-page .summary-warning-list article {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff1f2;
}

body.theme-light .train-import-page .summary-warning-list article strong {
  color: #7f1d1d;
}

body.theme-light .train-import-page .export-warning-chips small {
  color: rgba(50, 66, 78, 0.72);
}

body.theme-light .train-import-page .import-preview-modal {
  background: rgba(15, 23, 42, 0.34);
}

body.theme-light .train-import-page .import-preview-window {
  border-color: rgba(25, 48, 62, 0.14);
  background: #eef3f7;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

body.theme-light .train-import-page .import-preview-window > header {
  border-bottom-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

body.theme-light .train-import-page .import-preview-window > header strong {
  color: #101b24;
}

body.theme-light .train-import-page .import-preview-window > header button {
  border-color: rgba(25, 48, 62, 0.14);
  color: #101b24;
  background: rgba(25, 48, 62, 0.06);
}

body.theme-light .train-import-page .import-preview-window > iframe {
  background: #eef3f7;
}

body.theme-light.import-preview-body {
  background: #eef3f7;
  color: #101b24;
}

body.theme-light .manual-import-frame header {
  border-color: rgba(25, 48, 62, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.96));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

body.theme-light .manual-import-frame header strong,
body.theme-light .manual-import-frame header small {
  color: #101b24;
}

body.theme-light .manual-import-frame header span {
  color: rgba(50, 66, 78, 0.68);
}

body.theme-light .manual-import-table-shell,
body.theme-light .manual-import-table-wrap {
  border-color: rgba(25, 48, 62, 0.14);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body.theme-light .manual-import-grid-cell {
  border-color: rgba(25, 48, 62, 0.14);
  color: #101b24;
  background: #fff;
}

body.theme-light [data-manual-import-body] .manual-import-grid-row:nth-child(even) .manual-import-grid-cell {
  background: #f7fafc;
}

body.theme-light .manual-import-grid-head .manual-import-grid-cell {
  color: #101b24;
  background: #e8eef4;
}

body.theme-light .manual-import-grid-cell input {
  color: #101b24;
}

body.theme-light .manual-import-add-row {
  border-color: rgba(21, 128, 61, 0.32);
  color: #166534;
  background: rgba(220, 252, 231, 0.94);
}

body.theme-light .employee-summary-strip > div,
body.theme-light .employee-category-card,
body.theme-light .employee-list-panel,
body.theme-light .employee-profile,
body.theme-light .employee-form,
body.theme-light .employee-training-panel,
body.theme-light .employee-list a,
body.theme-light .employee-training-row,
body.theme-light .employee-profile-overview article,
body.theme-light .employee-profile-snapshot article,
body.theme-light .employee-note-card p,
body.theme-light .employee-training-overview-row,
body.theme-light .employee-training-add-form {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .employee-detail-shell {
  background: transparent;
}

body.theme-light .employee-detail-hero {
  border-color: rgba(25, 48, 62, 0.12);
  background:
    linear-gradient(135deg, rgba(234, 241, 245, 0.94), rgba(255, 255, 255, 0.76) 52%, rgba(228, 245, 238, 0.86));
  box-shadow: 0 18px 70px rgba(26, 53, 68, 0.13);
}

body.theme-light .employee-summary-strip strong,
body.theme-light .employee-category-card h2,
body.theme-light .employee-list-panel > header strong,
body.theme-light .employee-profile h2,
body.theme-light .employee-form > header strong,
body.theme-light .employee-training-panel > header strong,
body.theme-light .employee-list strong,
body.theme-light .employee-training-row strong,
body.theme-light .employee-profile-overview strong,
body.theme-light .employee-profile-snapshot header,
body.theme-light .employee-profile-snapshot dd,
body.theme-light .employee-note-card p,
body.theme-light .employee-training-overview-row summary strong {
  color: #101b24;
}

body.theme-light .employee-category-card p,
body.theme-light .employee-list-panel > header span,
body.theme-light .employee-profile > header span,
body.theme-light .employee-form > header span,
body.theme-light .employee-training-panel > header span,
body.theme-light .employee-list span,
body.theme-light .employee-training-row span,
body.theme-light .employee-training-row small,
body.theme-light .employee-profile-overview span,
body.theme-light .employee-profile-overview em,
body.theme-light .employee-profile-snapshot dt,
body.theme-light .employee-training-overview-row summary span,
body.theme-light .employee-training-overview-row summary small,
body.theme-light .employee-training-inline-form label span,
body.theme-light .employee-training-add-form label span {
  color: var(--muted);
}

body.theme-light .employee-form input,
body.theme-light .employee-form select,
body.theme-light .employee-form textarea,
body.theme-light .employee-training-form input,
body.theme-light .employee-training-form select,
body.theme-light .employee-training-inline-form input,
body.theme-light .employee-training-add-form input {
  color: #101b24;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(25, 48, 62, 0.12);
}

body.theme-light .employee-password-strength i {
  background: rgba(66, 82, 94, 0.18);
}

body.theme-light .employee-password-strength em {
  color: #526372;
}

@media (max-width: 1500px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .map-preview {
    grid-column: 1 / -1;
  }

  .yard-mini {
    height: 170px;
  }

  .right-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .brand img,
  .nav-link span:last-child,
  .sidebar-photo,
  .sidebar-footer {
    display: none;
  }

  .nav-link {
    justify-content: center;
    padding: 0;
  }

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

  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .settings-layout,
  .settings-source-grid {
    grid-template-columns: 1fr;
  }

  .settings-data-header,
  .settings-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .stock-state-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .reports-main-grid,
  .reports-bottom-grid {
    grid-template-columns: 1fr;
  }

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

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

  .report-modal-body.has-detail {
    grid-template-columns: 1fr;
  }

  .terminal-map-layout {
    grid-template-columns: 1fr;
  }

  .operation-layout {
    grid-template-columns: 1fr;
  }

  .operation-workspace {
    grid-template-columns: 1fr;
  }

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

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

  .train-plan-hero,
  .train-plan-workspace {
    grid-template-columns: 1fr;
  }

  .train-plan-toolbar {
    min-width: 0;
  }

  .train-plan-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .train-plan-form-panel {
    grid-column: 1 / -1;
  }

  .dochazka-metric-grid {
    grid-template-columns: 1fr;
  }

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

  .attendance-toolbar,
  .attendance-layout,
  .attendance-upload,
  .dochazka-top-panel,
  .dochazka-top-actions,
  .dochazka-workspace,
  .dochazka-employee-select,
  .dochazka-assigned-row,
  .dochazka-custom-times {
    grid-template-columns: 1fr;
  }

  .distribution-card-grid,
  .distribution-output-preview,
  .stock-summary-grid,
  .report-calendar-controls {
    grid-template-columns: 1fr;
  }

  .report-period-form,
  .report-period-form.quarter,
  .report-period-form.custom {
    grid-template-columns: minmax(0, 1fr);
  }

  .reports-command-panel,
  .report-source-frame,
  .report-upload-row,
  .reports-four-grid {
    grid-template-columns: 1fr;
  }

  .report-header-actions,
  .report-source-frame .report-source-switch {
    justify-self: start;
  }

  .report-source-frame .report-header-actions {
    justify-self: start;
  }

  .report-upload-card,
  .report-table-shortcut,
  .report-kpi-detail {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .report-modal-backdrop {
    padding: 12px;
  }

  .report-modal-window {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .report-modal-header {
    grid-template-columns: 1fr 38px;
  }

  .report-calendar-modal .report-modal-header {
    grid-template-columns: 1fr 38px;
  }

  .report-calendar-reset {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .report-calendar-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-modal-header .table-search-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

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

  .map-section-selection,
  .map-service-strip,
  .dashboard-yard-stage,
  .dashboard-yard-lower,
  .dashboard-map-services {
    grid-template-columns: 1fr;
  }

  .map-command-row,
  .map-bay-top,
  .map-detail-head,
  .bay-detail-hero,
  .bay-stack-layout.modern,
  .map-table-top {
    grid-template-columns: 1fr;
  }

  .map-command-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .map-command-row label {
    grid-column: 1 / -1;
  }

  .map-table-top.has-table-zoom {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .map-table-top.has-table-zoom .table-zoom-controls {
    justify-self: start;
  }

  .map-table-top.has-table-zoom .map-capacity-pill {
    min-width: 0;
  }

  .bay-detail-hero dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bay-original-title-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bay-original-title-row > div:first-child,
  .bay-original-search {
    grid-column: 1 / -1;
  }

  .map-bay-row {
    grid-template-columns: 1fr;
  }

  .map-rail-yard {
    padding: 16px 14px 14px;
  }

  .map-rail-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .map-rail-row strong {
    left: min(calc(70px + var(--offset)), calc(100% - 88px));
    min-width: 86px;
    max-width: 86px;
    padding: 0 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bay-row-track {
    grid-template-columns: 1fr;
  }

  .bay-row-track > aside {
    border-right: 0;
    border-bottom: 1px solid rgba(210, 222, 232, 0.10);
  }

  .map-bay-cells {
    grid-template-columns: repeat(8, minmax(30px, 1fr));
  }

  .upload-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

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

  .operation-command-panel,
  .operation-lower-grid,
  .operation-flow-grid,
  .visual-operation-side,
  .export-dashboard-grid,
  .export-create-grid,
  .export-upload-grid,
  .export-upload-grid.three {
    grid-template-columns: 1fr;
  }

  .import-operation-edit-fields {
    grid-template-columns: 1fr 1fr;
  }

  .import-operation-edit-fields label:first-of-type,
  .import-operation-edit-fields .export-secondary-button {
    grid-column: 1 / -1;
  }

  .export-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .import-relation-grid.trailer,
  .import-relation-grid.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-workbench-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .import-history-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .import-history-status {
    justify-self: start;
  }

  .import-history-watermark {
    right: 12px;
  }

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

  .train-plan-form textarea {
    grid-column: auto;
  }

  .attendance-edit-form,
  .manual-attendance-list form {
    grid-template-columns: 1fr;
  }

  .handover-grid,
  .handover-form,
  .extra-category-grid,
  .extra-layout,
  .dalsi-category-grid,
  .manager-summary-metrics,
  .manager-summary-tabs,
  .dalsi-planning-grid,
  .shift-plan-summary,
  .shift-plan-checks,
  .employee-summary-strip,
  .employee-category-grid,
  .employee-list-grid,
  .employee-profile-grid,
  .employee-training-form,
  .dalsi-timesheet-picker,
  .dalsi-timesheet-people-list,
  .dalsi-timesheet-person-metrics,
  .dalsi-timesheet-summary,
  .dalsi-timesheet-grid,
  .dalsi-evidence-layout,
  .dalsi-evidence-layout.is-shift-end {
    grid-template-columns: 1fr;
  }

  .dalsi-timesheet-people,
  .dalsi-timesheet-person,
  .dalsi-timesheet-people > header,
  .dalsi-timesheet-person > header,
  .dalsi-timesheet-people-list,
  .dalsi-timesheet-person-card,
  .dalsi-timesheet-card-body,
  .dalsi-timesheet-card-link {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dalsi-timesheet-people > header,
  .dalsi-timesheet-person > header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dalsi-timesheet-card-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dalsi-evidence-form.is-shift-end form {
    grid-template-columns: 1fr;
  }

  .dalsi-evidence-form.is-shift-end .dalsi-note-field,
  .dalsi-evidence-form.is-shift-end button[type="submit"],
  .dalsi-evidence-form.is-shift-end .dalsi-form-secondary {
    grid-column: 1;
    grid-row: auto;
  }

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

  .shift-end-time-grid {
    grid-template-columns: 1fr;
  }

  .shift-end-form-actions {
    grid-template-rows: auto;
  }

  .shift-end-record {
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
  }

  .shift-end-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shift-end-meta {
    justify-content: flex-start;
    min-width: 0;
    flex-wrap: wrap;
  }

  .shift-end-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .dalsi-month-filter {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .dalsi-month-filter button {
    grid-column: 1 / -1;
  }

  .dalsi-detail-header,
  .dalsi-evidence-table > header,
  .manager-summary-hero,
  .manager-summary-table-card > header,
  .manager-day-filter,
  .shift-plan-toolbar,
  .shift-plan-actions {
    display: grid;
  }

  .manager-summary-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
  }

  .manager-calendar-open,
  .manager-export-open {
    grid-column: 1 / -1;
    width: 100%;
  }

  .manager-summary-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .manager-summary-list article > small {
    justify-self: start;
    text-align: left;
  }

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

  .manager-calendar-grid {
    gap: 6px;
    padding: 12px;
  }

  .manager-calendar-grid i.empty,
  .manager-calendar-grid a {
    min-height: 54px;
    padding: 7px;
  }

  .shift-plan-back {
    margin-left: 0;
  }

  .dalsi-timesheet-person-hero,
  .dalsi-timesheet-calendar-card > header {
    display: grid;
  }

  .dalsi-timesheet-name-row,
  .dalsi-timesheet-title-actions,
  .dalsi-timesheet-title-actions form {
    width: 100%;
    min-width: 0;
  }

  .dalsi-timesheet-title-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .dalsi-timesheet-title-actions button,
  .dalsi-timesheet-title-actions a,
  .dalsi-timesheet-title-actions form > button {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .dalsi-timesheet-toolbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
  }

  .dalsi-timesheet-toolbar label {
    min-width: 0;
  }

  .dalsi-timesheet-month-field {
    width: 100%;
    min-width: 0;
  }

  .dalsi-timesheet-toolbar input {
    min-width: 0;
  }

  .dalsi-timesheet-toolbar > strong {
    display: none;
  }

  .dalsi-timesheet-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dalsi-timesheet-header-actions a,
  .dalsi-timesheet-header-actions button {
    width: 100%;
    white-space: normal;
  }

  .dalsi-timesheet-person-actions {
    justify-items: start;
  }

  .dalsi-timesheet-people.is-signed-overview {
    grid-template-columns: 1fr;
  }

  .dalsi-timesheet-signed-side > div {
    grid-template-columns: 1fr;
  }

  .evaluation-summary,
  .evaluation-groups,
  .evaluation-detail-grid {
    grid-template-columns: 1fr;
  }

  .dalsi-timesheet-person-title h2 {
    font-size: 28px;
  }

  .predavka-shift-strip,
  .predavka-content,
  .predavka-kpi-row,
  .predavka-dialog-form {
    grid-template-columns: 1fr;
  }

  .predavka-shift-strip nav,
  .predavka-add-note {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .predavka-shift-strip nav > *,
  .predavka-add-note button {
    width: 100%;
  }

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

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

  .handover-form textarea {
    grid-column: auto;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body:not(.login-page) {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #071019;
  }

  body:not(.login-page) .app-shell {
    position: static;
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  body:not(.login-page) .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 10, 16, 0.96);
    backdrop-filter: blur(16px);
  }

  body:not(.login-page) .brand {
    height: 58px;
    padding: 8px 10px 8px 12px;
  }

  body:not(.login-page) .brand img {
    display: block;
    width: 92px;
    max-width: 92px;
  }

  .train-plan-hero {
    gap: 12px;
    padding: 12px;
  }

  .train-plan-hero h2 {
    font-size: 22px;
  }

  .train-plan-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    width: 100%;
  }

  .train-plan-view-switch,
  .train-plan-today {
    grid-column: 1 / -1;
  }

  .train-plan-view-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .train-plan-kpis,
  .train-plan-side,
  .train-plan-form {
    grid-template-columns: 1fr;
  }

  .train-plan-board,
  .train-detail-panel,
  .train-risks-panel,
  .train-plan-form-panel {
    padding: 12px;
  }

  .train-week-grid {
    grid-template-columns: repeat(7, minmax(178px, 178px));
  }

  .train-week-day {
    min-height: 360px;
  }

  body:not(.login-page) .nav-list {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    padding: 8px 10px 8px 0;
    scrollbar-width: none;
  }

  body:not(.login-page) .nav-list::-webkit-scrollbar {
    display: none;
  }

  body:not(.login-page) .nav-link {
    flex: 0 0 auto;
    min-height: 40px;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid rgba(210, 222, 232, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
  }

  body:not(.login-page) .nav-link span:last-child {
    display: inline;
  }

  body:not(.login-page) .nav-icon {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  body:not(.login-page) .sidebar-photo,
  body:not(.login-page) .sidebar-footer {
    display: none;
  }

  body:not(.login-page) .app-main {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body:not(.login-page) .topbar {
    position: sticky;
    top: 58px;
    z-index: 1500;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: auto;
    padding: 12px 14px;
    background: rgba(7, 13, 20, 0.94);
  }

  body:not(.login-page) .page-kicker {
    font-size: 13px;
  }

  body:not(.login-page) .page-subtitle {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body:not(.login-page) .topbar-actions {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body:not(.login-page) .profile-menu.is-open {
    z-index: 1800;
  }

  body:not(.login-page).profile-menu-open {
    height: 100svh;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body:not(.login-page).profile-menu-open .app-shell {
    height: 100svh;
    overflow: hidden;
  }

  body:not(.login-page).profile-menu-open .profile-menu-panel {
    position: fixed;
    z-index: 1900;
    top: 125px;
    right: 10px;
    display: block;
    width: min(292px, calc(100vw - 20px));
    max-height: calc(100svh - 140px);
    overscroll-behavior: contain;
  }

  body:not(.login-page) .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  body:not(.login-page) .weather-pill,
  body:not(.login-page) .profile-pill {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(210, 222, 232, 0.10);
    border-radius: 8px;
  }

  body:not(.login-page) .weather-pill i,
  body:not(.login-page) .profile-pill i,
  body:not(.login-page) .notification-wrap i {
    font-size: 18px;
  }

  body:not(.login-page) .notification-wrap {
    flex: 0 0 38px;
    width: 38px;
    height: 36px;
    border: 1px solid rgba(210, 222, 232, 0.10);
    border-radius: 8px;
  }

  body:not(.login-page) .weather-pill small,
  body:not(.login-page) .profile-pill small {
    font-size: 10px;
  }

  body:not(.login-page) .page-content {
    min-height: auto;
    overflow: visible;
    padding: 14px 10px 26px;
  }

  body:not(.login-page) .statusbar {
    display: grid;
    gap: 4px;
    height: auto;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    font-size: 10px;
  }

  .content-grid,
  .right-column,
  .dashboard-bottom-grid,
  .metric-grid,
  .content-grid .main-column > .metric-grid,
  .reports-workspace,
  .reports-main-grid,
  .reports-bottom-grid,
  .reports-four-grid,
  .report-pie-grid,
  .reports-command-panel,
  .report-upload-row,
  .report-calendar-controls,
  .occupancy-report-grid,
  .occupancy-detail-grid,
  .settings-layout,
  .report-layout,
  .terminal-map-layout,
  .operation-layout,
  .attendance-layout,
  .dochazka-workspace,
  .extra-layout,
  .dalsi-category-grid,
  .manager-summary-metrics,
  .manager-summary-tabs,
  .dalsi-planning-grid,
  .shift-plan-summary,
  .shift-plan-checks,
  .employee-summary-strip,
  .employee-category-grid,
  .employee-list-grid,
  .employee-profile-grid,
  .evaluation-summary,
  .evaluation-groups,
  .evaluation-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .metric-card,
  .panel {
    min-height: auto;
  }

  .metric-card {
    padding: 14px;
  }

  .reports-workspace,
  .reports-command-panel,
  .metric-grid,
  .occupancy-report-grid,
  .occupancy-detail-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .report-source-frame,
  .report-upload-row.report-source-shortcuts {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .report-period-form,
  .report-period-form.quarter,
  .report-period-form.custom {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .report-period-form button {
    width: 100%;
  }

  .report-source-frame .report-source-switch {
    justify-self: stretch;
    width: 100%;
  }

  .report-source-frame .report-header-actions {
    justify-self: stretch;
    width: 100%;
  }

  .report-source-switch a {
    flex: 1 1 145px;
    min-width: 0;
    padding: 0 9px;
    white-space: normal;
    text-align: center;
  }

  .occupancy-detail-grid .panel {
    overflow-x: auto;
  }

  .occupancy-section-table {
    min-width: 680px;
  }

  .metric-icon {
    width: 44px;
    height: 44px;
  }

  .page-dashboard .panel {
    padding: 12px;
  }

  .page-dashboard .panel-header {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .page-dashboard .panel-actions {
    justify-content: start;
  }

  .dashboard-train-table-wrap {
    max-width: none;
    overflow: visible;
  }

  .dashboard-train-table-wrap .terminal-table {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin-bottom: 0;
  }

  .dashboard-train-table-wrap .terminal-table thead {
    display: none;
  }

  .dashboard-train-table-wrap .terminal-table tbody {
    display: grid;
    gap: 8px;
  }

  .dashboard-train-table-wrap .terminal-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px;
    border: 1px solid rgba(210, 222, 232, 0.10);
    border-radius: 8px;
    background: rgba(5, 10, 16, 0.22);
  }

  .dashboard-train-table-wrap .terminal-table td {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .dashboard-train-table-wrap .terminal-table td::before {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .dashboard-train-table-wrap .terminal-table td:nth-child(1),
  .dashboard-train-table-wrap .terminal-table td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .dashboard-train-table-wrap .terminal-table td:nth-child(1)::before { content: "Číslo vlaku"; }
  .dashboard-train-table-wrap .terminal-table td:nth-child(2)::before { content: "Relace"; }
  .dashboard-train-table-wrap .terminal-table td:nth-child(3)::before { content: "Příjezd"; }
  .dashboard-train-table-wrap .terminal-table td:nth-child(4)::before { content: "Odjezd"; }
  .dashboard-train-table-wrap .terminal-table td:nth-child(5)::before { content: "Status"; }
  .dashboard-train-table-wrap .terminal-table td:nth-child(6)::before { content: "Kolej"; }
  .dashboard-train-table-wrap .terminal-table td:nth-child(7)::before { content: "TEU"; }

  .dashboard-train-table-wrap .terminal-table td:nth-child(1) {
    color: #fff;
    font-weight: 950;
  }

  .page-dashboard .chart-panel {
    overflow: visible;
  }

  .page-dashboard .bar-chart {
    height: 164px;
    gap: 8px;
    padding: 24px 4px 34px;
    overflow: visible;
  }

  .page-dashboard .bar-chart span {
    min-height: 24px;
    border-radius: 4px 4px 0 0;
    font-size: 10px;
  }

  .page-dashboard .bar-chart span strong {
    margin-top: -18px;
    font-size: 10px;
  }

  .page-dashboard .bar-chart span small {
    margin-bottom: -30px;
    font-size: 9px;
    line-height: 1.1;
  }

  .page-dashboard .dashboard-map-preview {
    min-height: 0;
    padding: 10px;
    overflow: visible;
  }

  .page-dashboard .dashboard-map-rails {
    padding: 8px;
  }

  .page-dashboard .dashboard-map-rails span {
    grid-template-columns: 44px minmax(0, 1fr) minmax(54px, 72px);
  }

  .page-dashboard .dashboard-map-rails strong {
    padding: 4px 5px;
    font-size: 8px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stage::before,
  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-section::before,
  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-section::after {
    display: none;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-section,
.page-dashboard .dashboard-yard-blueprint .dashboard-yard-section.section-a,
.page-dashboard .dashboard-yard-blueprint .dashboard-yard-section.section-b,
.page-dashboard .dashboard-yard-blueprint .dashboard-yard-section.section-c,
.page-dashboard .dashboard-yard-blueprint .dashboard-yard-section.section-e {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 0;
    gap: 8px;
    padding: 10px;
    overflow: visible;
  }

  .page-dashboard .dashboard-yard-blueprint .section-b footer {
    display: flex;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stack,
  .page-dashboard .dashboard-yard-blueprint .section-a .dashboard-yard-stack,
  .page-dashboard .dashboard-yard-blueprint .section-b .dashboard-yard-stack,
  .page-dashboard .dashboard-yard-blueprint .section-c .dashboard-yard-stack,
  .page-dashboard .dashboard-yard-blueprint .section-e .dashboard-yard-stack {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 10px;
    height: auto;
    min-height: 74px;
    gap: 4px;
    padding: 12px 10px 8px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stack i {
    min-height: 8px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stack i:nth-child(n+19) {
    display: none;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stack b {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-road {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 44px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-road span {
    top: -8px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-map-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-service,
  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-service.service-d,
  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-service.service-p,
  .page-dashboard .dashboard-yard-blueprint .dashboard-yard-service.service-o {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 48px;
  }

  .shift-plan-board,
  .employee-board,
  .evaluation-board,
  .dalsi-timesheet-board {
    gap: 12px;
  }

  .dalsi-page,
  .dalsi-detail-panel,
  .shift-plan-board,
  .shift-plan-toolbar,
  .shift-plan-summary,
  .shift-plan-checks,
  .shift-plan-form {
    min-width: 0;
    max-width: 100%;
  }

  .shift-plan-form {
    order: 2;
  }

  .shift-plan-summary {
    order: 3;
  }

  .shift-plan-checks {
    order: 4;
  }

  .shift-plan-toolbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    padding: 10px;
  }

  .shift-plan-toolbar > input[type="hidden"] {
    display: none;
  }

  .shift-plan-toolbar > a.shift-plan-nav {
    width: 38px;
    min-width: 38px;
  }

  .shift-plan-toolbar label {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .shift-plan-toolbar strong {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .shift-plan-toolbar > a:not(.shift-plan-nav),
  .shift-plan-toolbar button,
  .shift-plan-back {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 10px;
    overflow: visible;
    font-size: 11px;
    line-height: 1.16;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .shift-plan-back {
    margin-left: 0;
  }

  .shift-plan-standby {
    width: 100%;
  }

  .shift-plan-standby summary {
    width: 100%;
  }

  .shift-plan-standby-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .shift-plan-standby-fields {
    grid-template-columns: 1fr;
  }

  .shift-plan-pairs,
  .shift-plan-crews,
  .shift-plan-form,
  .shift-plan-checks section {
    border-radius: 8px;
  }

  .shift-plan-pairs header,
  .shift-plan-crews header,
  .shift-plan-table-head,
  .shift-plan-actions {
    display: grid;
    gap: 10px;
  }

  .shift-plan-table-head .table-zoom-controls,
  .attendance-summary-bar .table-zoom-controls {
    justify-self: start;
  }

  .attendance-vacation-modal .attendance-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .attendance-vacation-modal .attendance-modal-header > div:first-child,
  .attendance-vacation-modal .attendance-modal-header > div:first-child span {
    min-width: 0;
  }

  .attendance-vacation-modal .attendance-modal-header strong {
    font-size: 18px;
  }

  .attendance-vacation-modal .attendance-modal-actions {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
    width: 100%;
    gap: 6px;
  }

  .attendance-vacation-modal .attendance-modal-actions > span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .attendance-shift-modal .attendance-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .attendance-shift-modal .attendance-modal-header > div:first-child,
  .attendance-shift-modal .attendance-modal-header > div:first-child span {
    min-width: 0;
  }

  .attendance-shift-modal .attendance-modal-header strong {
    font-size: 18px;
  }

  .attendance-shift-modal .attendance-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    width: 100%;
    gap: 6px;
  }

  .attendance-shift-modal .attendance-modal-actions > span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .attendance-shift-modal .attendance-modal-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .attendance-shift-modal .attendance-modal-side {
    display: none;
  }

  .attendance-shift-modal .attendance-summary-bar {
    gap: 7px;
    max-height: 118px;
    overflow: auto;
  }

  .shift-plan-pairs > div,
  .shift-plan-crews > div,
  .shift-plan-pairs article,
  .shift-plan-crews article {
    grid-template-columns: 1fr;
  }

  .shift-plan-table-wrap,
  .dalsi-timesheet-calendar-scroll,
  .dalsi-evidence-table,
  .employee-table-wrap,
  .evaluation-month-table > div,
  .evaluation-history-toggle > div {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shift-plan-table {
    min-width: max-content;
  }

  .shift-plan-table th,
  .shift-plan-table td {
    min-width: 44px;
    padding: 4px;
  }

  .shift-plan-table thead th:first-child,
  .shift-plan-table tbody th {
    min-width: 132px;
    max-width: 132px;
  }

  .shift-plan-table tbody th strong {
    font-size: 12px;
  }

  .shift-plan-table tbody th span {
    font-size: 10px;
  }

  .shift-plan-table select {
    width: 40px;
    height: 30px;
    font-size: 12px;
  }

  .dalsi-planning-card,
  .employee-category-card,
  .evaluation-group,
  .dalsi-category-card {
    min-height: auto;
    padding: 14px;
  }

  .employee-profile,
  .employee-list-panel,
  .employee-form,
  .employee-training-panel,
  .evaluation-detail,
  .evaluation-form,
  .evaluation-history {
    padding: 12px;
  }

  .employee-detail-header,
  .employee-profile > header,
  .evaluation-detail > header,
  .dalsi-detail-header,
  .manager-summary-hero,
  .manager-summary-table-card > header,
  .manager-day-filter,
  .dalsi-timesheet-person-hero {
    display: grid;
    gap: 10px;
  }

  .employee-profile h2,
  .evaluation-detail h2,
  .dalsi-timesheet-person-title h2 {
    font-size: 24px;
  }

  .report-modal-window,
  .attendance-modal,
  .train-plan-modal {
    max-width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }
}

/* Final classic white theme shared by every application module. */
body.theme-light:not(.login-page) {
  --green: #16834a;
  --green-dark: #11683b;
  --blue: #176aa6;
  --amber: #8a5d00;
  --purple: #684ea0;
  --red: #b63833;
  --bg: #ececec;
  --panel: #ffffff;
  --panel-soft: #f5f5f5;
  --line: rgba(32, 32, 32, 0.17);
  --text: #202020;
  --muted: #626262;
  background: #ececec;
  color: #202020;
  color-scheme: light;
}

body.theme-light:not(.login-page) .app-shell,
body.theme-light:not(.login-page) .app-main,
body.theme-light:not(.login-page) .page-content {
  background: #ececec;
}

body.theme-light:not(.login-page) .sidebar {
  border-right-color: #c9c9c9;
  background: #f7f7f7;
}

body.theme-light:not(.login-page) .sidebar-photo {
  display: none;
}

body.theme-light:not(.login-page) .nav-link {
  color: #303030;
}

body.theme-light:not(.login-page) .nav-link:hover {
  color: #101010;
  background: #e8e8e8;
}

body.theme-light:not(.login-page) .nav-link.active {
  color: #123822;
  background: #e2f1e8;
  box-shadow: inset -4px 0 0 #16834a;
}

body.theme-light:not(.login-page) .nav-icon {
  border-color: #aeb7bc;
  background: #ffffff;
  color: #4f5e67;
}

body.theme-light:not(.login-page) .nav-link.active .nav-icon {
  border-color: #16834a;
  background: #f5fbf7;
  color: #11683b;
}

body.theme-light:not(.login-page) .sidebar-footer {
  color: #11683b;
}

body.theme-light:not(.login-page) .sidebar-footer span {
  color: #626262;
}

body.theme-light:not(.login-page) .topbar,
body.theme-light:not(.login-page) .statusbar {
  border-color: #c9c9c9;
  background: #f7f7f7;
  color: #202020;
  box-shadow: none;
}

body.theme-light:not(.login-page) .weather-pill,
body.theme-light:not(.login-page) .profile-pill,
body.theme-light:not(.login-page) .notification-wrap {
  border-color: #cccccc;
  background: transparent;
  color: #202020;
}

body.theme-light:not(.login-page) .weather-pill i,
body.theme-light:not(.login-page) .profile-pill i,
body.theme-light:not(.login-page) .notification-wrap i {
  color: #4f5e67;
}

body.theme-light:not(.login-page) .weather-pill small,
body.theme-light:not(.login-page) .profile-pill small,
body.theme-light:not(.login-page) .weather-pill [data-weather-wind] {
  color: #626d73;
}

body.theme-light:not(.login-page) .profile-menu-panel {
  border-color: #bfbfbf;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
}

body.theme-light:not(.login-page) .profile-menu-head,
body.theme-light:not(.login-page) .profile-menu-logout {
  border-color: #d2d2d2;
}

body.theme-light:not(.login-page) .profile-switch-menu button,
body.theme-light:not(.login-page) .profile-menu-action button,
body.theme-light:not(.login-page) .profile-menu-logout {
  color: #252525;
}

body.theme-light:not(.login-page) .profile-switch-menu button:hover,
body.theme-light:not(.login-page) .profile-switch-menu button.active,
body.theme-light:not(.login-page) .profile-menu-action button:hover,
body.theme-light:not(.login-page) .profile-menu-logout:hover {
  border-color: #b9d8c5;
  background: #e8f3ec;
  color: #123822;
}

body.theme-light:not(.login-page) .page-content :where(
  .panel,
  .metric-card,
  [class$="-panel"],
  [class*="-panel "],
  [class$="-card"],
  [class*="-card "],
  [class$="-dialog"],
  [class*="-dialog "],
  [class$="-window"],
  [class*="-window "],
  [class$="-popover"],
  [class*="-popover "]
) {
  border-color: #c8c8c8;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-light:not(.login-page) .page-content :where(
  [class$="-toolbar"],
  [class*="-toolbar "],
  [class$="-summary"],
  [class*="-summary "],
  [class$="-strip"],
  [class*="-strip "]
) {
  border-color: #c8c8c8;
  background: #f7f7f7;
  box-shadow: none;
}

body.theme-light:not(.login-page) .page-content :where(
  h1,
  h2,
  h3,
  h4,
  strong,
  b,
  dd,
  td,
  summary
) {
  color: #202020;
}

body.theme-light:not(.login-page) .page-content :where(
  p,
  small,
  em,
  dt,
  th,
  .muted
) {
  color: #626262;
}

body.theme-light:not(.login-page) .page-content :where(input, select, textarea) {
  border-color: #b8b8b8;
  background: #ffffff;
  color: #202020;
  box-shadow: none;
  caret-color: #202020;
  color-scheme: light;
}

body.theme-light:not(.login-page) .page-content :where(input, textarea)::placeholder {
  color: #7d7d7d;
}

body.theme-light:not(.login-page) .page-content :where(button, .logout-button, .file-pick) {
  border-color: #b9b9b9;
  background: #f1f1f1;
  color: #252525;
  box-shadow: none;
}

body.theme-light:not(.login-page) .page-content :where(button, .logout-button, .file-pick):hover {
  border-color: #969696;
  background: #e7e7e7;
  color: #101010;
}

body.theme-light:not(.login-page) .page-content :where(
  .export-primary-button,
  .settings-source-paste-submit,
  .attendance-modal-save,
  button[type="submit"].primary
) {
  border-color: #11683b;
  background: #16834a;
  color: #ffffff;
}

body.theme-light:not(.login-page) .page-content :where(table, .terminal-table, .dalsi-table, .attendance-table) {
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .page-content :where(table, .terminal-table, .dalsi-table, .attendance-table) th {
  border-color: #c6c6c6;
  background: #ededed;
  color: #3f3f3f;
}

body.theme-light:not(.login-page) .page-content :where(table, .terminal-table, .dalsi-table, .attendance-table) td {
  border-color: #d5d5d5;
  color: #252525;
}

body.theme-light:not(.login-page) .page-content :where(table, .terminal-table, .dalsi-table, .attendance-table) tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

body.theme-light:not(.login-page) .page-content :where(table, .terminal-table, .dalsi-table, .attendance-table) tbody tr:hover td {
  background: #edf5f0;
}

body.theme-light:not(.login-page) .page-content :where(code, pre) {
  border-color: #cccccc;
  background: #f3f3f3;
  color: #333333;
}

body.theme-light:not(.login-page) .page-content :where(.tab-button, .mode-button, [role="tab"]) {
  border-color: #bdbdbd;
  background: #f2f2f2;
  color: #303030;
}

body.theme-light:not(.login-page) .page-content :where(.tab-button.active, .mode-button.active, [role="tab"][aria-selected="true"]) {
  border-color: #16834a;
  background: #e2f1e8;
  color: #123822;
}

body.theme-light:not(.login-page) .page-content :where(
  .selected-row td,
  .is-selected,
  .selected,
  .active[data-selectable]
) {
  background-color: #e2f1e8;
}

body.theme-light:not(.login-page) .page-content :where(.weekend, .holiday) {
  background-color: #fff7e3;
}

body.theme-light:not(.login-page) .page-content :where(.tone-green, .tone-ok, .tone-ready) > i,
body.theme-light:not(.login-page) .page-content :where(.tone-green, .tone-ok, .tone-ready) > strong {
  color: #16834a;
}

body.theme-light:not(.login-page) .page-content :where(.tone-blue, .tone-active, .tone-planned) > i,
body.theme-light:not(.login-page) .page-content :where(.tone-blue, .tone-active, .tone-planned) > strong {
  color: #176aa6;
}

body.theme-light:not(.login-page) .page-content :where(.tone-amber, .tone-warning) > i,
body.theme-light:not(.login-page) .page-content :where(.tone-amber, .tone-warning) > strong {
  color: #8a5d00;
}

body.theme-light:not(.login-page) .page-content :where(.tone-red, .tone-danger, .tone-problem) > i,
body.theme-light:not(.login-page) .page-content :where(.tone-red, .tone-danger, .tone-problem) > strong {
  color: #b63833;
}

body.theme-light:not(.login-page) .train-plan-page {
  --train-surface: #ffffff;
  --train-surface-soft: #f5f5f5;
  --train-row: #ffffff;
  --train-border: rgba(32, 32, 32, 0.17);
  --train-text: #202020;
  --train-muted: #626262;
  --train-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-light:not(.login-page) .page-content.page-train_movements,
body.theme-light:not(.login-page) .train-tv-page,
body.theme-light:not(.login-page) .train-tv-board {
  background: #ececec;
  color: #202020;
}

body.theme-light:not(.login-page) .train-tv-board-head h1,
body.theme-light:not(.login-page) .train-tv-board-head time,
body.theme-light:not(.login-page) .train-tv-rail-number strong,
body.theme-light:not(.login-page) .train-tv-track em {
  color: #202020;
}

body.theme-light:not(.login-page) .train-tv-rail,
body.theme-light:not(.login-page) .train-tv-table-wrap,
body.theme-light:not(.login-page) .train-tv-track,
body.theme-light:not(.login-page) .train-tv-rail-state {
  border-color: #c8c8c8;
  background: #ffffff;
  color: #202020;
  box-shadow: none;
}

body.theme-light:not(.login-page) .map-app-card,
body.theme-light:not(.login-page) .map-live-overview,
body.theme-light:not(.login-page) .map-live-rails,
body.theme-light:not(.login-page) .map-yard-canvas,
body.theme-light:not(.login-page) .map-focus-inspector,
body.theme-light:not(.login-page) .yard-lanes-board {
  border-color: #c2c2c2;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-light:not(.login-page) .map-yard-zone,
body.theme-light:not(.login-page) .yard-lane-track,
body.theme-light:not(.login-page) .yard-lanes-list {
  border-color: #c8c8c8;
  background-color: #eeeeee;
}

body.theme-light:not(.login-page) .distribution-preview-modal,
body.theme-light:not(.login-page) .attendance-edit-modal,
body.theme-light:not(.login-page) .report-modal,
body.theme-light:not(.login-page) .train-plan-modal,
body.theme-light:not(.login-page) .summary-warning-modal,
body.theme-light:not(.login-page) .import-preview-modal {
  background: rgba(65, 65, 65, 0.30);
}

body.theme-light:not(.login-page) .distribution-preview-dialog,
body.theme-light:not(.login-page) .attendance-edit-dialog,
body.theme-light:not(.login-page) .report-modal-window,
body.theme-light:not(.login-page) .train-plan-modal > section,
body.theme-light:not(.login-page) .summary-warning-modal > section,
body.theme-light:not(.login-page) .import-preview-window {
  border-color: #bdbdbd;
  background: #ffffff;
  color: #202020;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 760px) and (orientation: portrait) {
  body.theme-light:not(.login-page) .app-shell,
  body.theme-light:not(.login-page) .page-content {
    background: #ececec;
  }

  body.theme-light:not(.login-page) .sidebar {
    border-bottom-color: #c9c9c9;
    background: #f7f7f7;
  }

  body.theme-light:not(.login-page) .nav-link {
    border-color: #c9c9c9;
    background: #f1f1f1;
    color: #303030;
  }

  body.theme-light:not(.login-page) .nav-link:hover,
  body.theme-light:not(.login-page) .nav-link.active {
    color: #123822;
    background: #e2f1e8;
  }
}

@media (max-width: 760px) {
  .import-relation-grid.trailer,
  .import-relation-grid.container {
    grid-template-columns: 1fr;
  }

  .import-relation-card {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 12px;
  }

  .import-relation-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    justify-content: flex-end;
  }

  .import-relation-archive {
    width: 30px;
  }

  .import-workbench-hero {
    padding: 14px;
  }

  .import-workbench-hero strong {
    font-size: 28px;
  }

  .import-operation-edit-fields {
    grid-template-columns: 1fr;
  }

  .import-operation-edit-fields label:first-of-type,
  .import-operation-edit-fields .export-secondary-button {
    grid-column: auto;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  body.theme-light:not(.login-page) {
    background: #eef3f6;
  }

  body.theme-light:not(.login-page) .app-shell {
    background: #eef3f6;
  }

  body.theme-light:not(.login-page) .sidebar {
    border-bottom-color: rgba(25, 48, 62, 0.12);
    background: rgba(248, 251, 253, 0.96);
  }

  body.theme-light:not(.login-page) .topbar {
    border-bottom: 1px solid rgba(25, 48, 62, 0.10);
    background: rgba(248, 251, 253, 0.94);
  }

  body.theme-light:not(.login-page) .nav-link {
    border-color: rgba(25, 48, 62, 0.12);
    background: rgba(25, 48, 62, 0.045);
    color: rgba(16, 27, 36, 0.78);
  }

  body.theme-light:not(.login-page) .nav-link:hover,
  body.theme-light:not(.login-page) .nav-link.active {
    color: #101b24;
    background: linear-gradient(90deg, rgba(36, 115, 70, 0.18), rgba(36, 115, 70, 0.08));
  }

  body.theme-light:not(.login-page) .weather-pill,
  body.theme-light:not(.login-page) .profile-pill,
  body.theme-light:not(.login-page) .notification-wrap {
    border-color: rgba(25, 48, 62, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #101b24;
  }

  body.theme-light:not(.login-page) .page-content {
    background: transparent;
  }

  body.theme-light:not(.login-page) .statusbar {
    border-top-color: rgba(25, 48, 62, 0.10);
    background: rgba(248, 251, 253, 0.94);
    color: rgba(16, 27, 36, 0.72);
  }

  body.theme-light .dashboard-train-table-wrap .terminal-table tr {
    border-color: rgba(25, 48, 62, 0.10);
    background: rgba(255, 255, 255, 0.74);
  }

body.theme-light .dashboard-train-table-wrap .terminal-table td:nth-child(1) {
    color: #101b24;
  }
}

.dalsi-category-grid,
.dalsi-planning-grid,
.employee-category-grid,
.dalsi-timesheet-picker {
  gap: 10px;
}

.dalsi-category-card,
.dalsi-planning-card,
.employee-category-card,
.dalsi-timesheet-pick-card {
  min-height: 142px;
  padding: 14px;
  align-content: start;
}

.dalsi-category-card::after {
  inset: auto 14px 14px 14px;
}

.dalsi-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.dalsi-card-icon i {
  font-size: 24px;
}

.dalsi-category-card h2,
.dalsi-planning-card h2,
.employee-category-card h2,
.dalsi-timesheet-pick-card h2 {
  font-size: 17px;
  line-height: 1.15;
}

.employee-category-card > div:last-child {
  margin-top: 16px;
}

.dalsi-timesheet-pick-card > strong {
  margin-top: 16px;
  font-size: 19px;
}

.employee-summary-strip > div {
  min-height: 60px;
  padding: 10px 12px;
}

.employee-summary-strip strong {
  margin-top: 3px;
  font-size: 21px;
}

.dalsi-planning-grid {
  min-height: 0;
}

@media (max-width: 760px) {
  .dalsi-category-card,
  .dalsi-planning-card,
  .employee-category-card,
  .dalsi-timesheet-pick-card {
    min-height: 112px;
  }
}

body.theme-light .sidebar-photo {
  display: none;
}

body.theme-light .brand img {
  filter: none;
}

body.theme-light .page-content {
  color: #101b24;
}

body.theme-light .page-content :is(
  h1,
  h2,
  h3,
  h4,
  strong,
  span,
  p,
  small,
  em,
  dt,
  dd,
  th,
  td,
  label,
  summary,
  li,
  b,
  a,
  button
) {
  color: #101b24;
}

body.theme-light .page-content :is(input, textarea, select) {
  color: #101b24;
  caret-color: #101b24;
}

body.theme-light .page-content :is(input, textarea, select)::placeholder {
  color: rgba(16, 27, 36, 0.42);
}

body.theme-light .page-content :is(
  .muted,
  small,
  em,
  dt,
  th,
  label span,
  .metric-label,
  .statusbar span
) {
  color: #5d7180;
}

.admin-log-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(95, 214, 120, 0.36);
  border-radius: 8px;
  color: var(--text);
  background: rgba(95, 214, 120, 0.1);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.admin-log-pill i {
  color: var(--green);
  font-size: 19px;
}

.admin-log-page {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-log-panel {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.admin-log-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-log-header span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-log-header h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.admin-log-search {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(135px, 1fr)) auto;
  gap: 8px;
  min-width: 0;
}

.admin-log-search input,
.admin-log-search select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-log-search button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #062014;
  background: var(--green);
  font-weight: 900;
}

.admin-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.admin-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.admin-account-card > div {
  min-width: 0;
}

.admin-account-card strong,
.admin-account-card span,
.admin-account-card small {
  display: block;
}

.admin-account-card span,
.admin-account-card small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-account-card em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.admin-account-card.is-online {
  border-color: rgba(95, 214, 120, 0.52);
  background: rgba(95, 214, 120, 0.08);
}

.admin-account-card.is-online em {
  color: #062014;
  background: var(--green);
}

.admin-account-card.is-disabled {
  opacity: 0.58;
}

.admin-log-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-log-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-log-table th,
.admin-log-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  vertical-align: top;
  text-align: left;
}

.admin-log-table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-log-table td {
  font-size: 13px;
}

.admin-log-table td span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-log-table code {
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-detail-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-detail-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-detail-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.admin-detail-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.admin-detail-module-grid a {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid rgba(95, 214, 120, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(95, 214, 120, 0.055);
  text-decoration: none;
}

.admin-detail-module-grid span,
.admin-detail-module-grid small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-module-grid span {
  font-size: 12px;
  font-weight: 850;
}

.admin-detail-module-grid strong {
  font-size: 20px;
}

.admin-detail-module-grid small {
  font-size: 11px;
}

.admin-detail-timeline {
  display: grid;
  gap: 8px;
}

.admin-detail-timeline article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-detail-timeline article.tone-green { border-color: rgba(95, 214, 120, 0.28); }
.admin-detail-timeline article.tone-blue { border-color: rgba(76, 166, 255, 0.24); }
.admin-detail-timeline article.tone-amber { border-color: rgba(255, 199, 94, 0.30); }
.admin-detail-timeline article.tone-red { border-color: rgba(255, 107, 107, 0.36); }

.admin-detail-timeline time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-event-body {
  min-width: 0;
}

.admin-event-body header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-event-body header strong,
.admin-event-body header span,
.admin-event-body code {
  display: block;
}

.admin-event-body header span {
  color: var(--muted);
  font-size: 12px;
}

.admin-event-body header em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #06130d;
  background: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.admin-event-body dl {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.4fr);
  gap: 8px;
  margin: 0;
}

.admin-event-body dl div {
  min-width: 0;
}

.admin-event-body dl div.wide {
  grid-column: 1 / -1;
}

.admin-event-body dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-event-body dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 12px;
}

.admin-event-body dd span {
  display: block;
  margin-top: 3px;
  color: rgba(210, 222, 232, 0.82);
}

.admin-event-body code {
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}

.admin-audit-groups,
.admin-detail-timeline {
  display: grid;
  gap: 18px;
}

.admin-audit-day {
  min-width: 0;
}

.admin-audit-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 7px;
  padding: 0 4px;
}

.admin-audit-day > header h3 {
  margin: 0;
  color: rgba(244, 247, 250, 0.94);
  font-size: 13px;
  font-weight: 950;
}

.admin-audit-day > header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.admin-audit-list {
  display: grid;
  gap: 6px;
}

.admin-audit-event {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(76, 166, 255, 0.68);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-audit-event.tone-green { border-left-color: rgba(95, 214, 120, 0.82); }
.admin-audit-event.tone-amber { border-left-color: rgba(255, 199, 94, 0.84); }
.admin-audit-event.tone-red { border-left-color: rgba(255, 107, 107, 0.88); }

.admin-audit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(76, 166, 255, 0.22);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(76, 166, 255, 0.08);
}

.admin-audit-event.tone-green .admin-audit-icon { color: var(--green); border-color: rgba(95, 214, 120, 0.22); background: rgba(95, 214, 120, 0.08); }
.admin-audit-event.tone-amber .admin-audit-icon { color: var(--amber); border-color: rgba(255, 199, 94, 0.24); background: rgba(255, 199, 94, 0.08); }
.admin-audit-event.tone-red .admin-audit-icon { color: var(--red); border-color: rgba(255, 107, 107, 0.24); background: rgba(255, 107, 107, 0.08); }

.admin-audit-icon i {
  font-size: 18px;
}

.admin-audit-content {
  min-width: 0;
}

.admin-audit-content > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-audit-content > header > div:first-child {
  min-width: 0;
}

.admin-audit-content > header strong,
.admin-audit-content > header span {
  display: block;
}

.admin-audit-content > header strong {
  color: rgba(244, 247, 250, 0.96);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-audit-content > header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.admin-audit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-audit-meta time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.admin-audit-meta em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-audit-meta em.tone-red {
  color: var(--red);
}

.admin-audit-summary {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 7px 9px;
  border-left: 2px solid rgba(210, 222, 232, 0.12);
  color: rgba(210, 222, 232, 0.78);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.admin-audit-technical {
  margin-top: 7px;
}

.admin-audit-technical summary {
  width: max-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.admin-audit-technical[open] summary {
  color: var(--green);
}

.admin-audit-technical dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 0;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.admin-audit-technical dl div {
  min-width: 0;
}

.admin-audit-technical dl div.wide {
  grid-column: 1 / -1;
}

.admin-audit-technical dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-audit-technical dd {
  margin: 2px 0 0;
  color: rgba(244, 247, 250, 0.86);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.admin-audit-technical code {
  color: inherit;
  white-space: normal;
  word-break: break-word;
}

body.theme-light .admin-audit-event {
  border-color: rgba(25, 48, 62, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .admin-audit-day > header h3,
body.theme-light .admin-audit-content > header strong,
body.theme-light .admin-audit-technical dd {
  color: #101b24;
}

.admin-log-command-panel {
  min-width: 0;
  padding: 12px 14px;
}

.admin-log-daybar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.admin-log-daybar > a:not(.admin-log-today),
.admin-log-filter-reset {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.admin-log-day-title {
  min-width: 112px;
}

.admin-log-day-title span,
.admin-log-day-title strong {
  display: block;
}

.admin-log-day-title span {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-log-day-title strong {
  margin-top: 1px;
  color: rgba(244, 247, 250, 0.96);
  font-size: 14px;
  font-weight: 950;
}

.admin-log-date-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
}

.admin-log-date-form label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-log-date-form label i {
  color: var(--green);
  font-size: 16px;
}

.admin-log-date-form input {
  min-width: 122px;
  color: var(--text);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
}

.admin-log-date-form button,
.admin-log-search-daily > button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: #062014;
  background: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.admin-log-today {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgba(95, 214, 120, 0.24);
  border-radius: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.admin-log-search.admin-log-search-daily {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto auto;
  align-items: center;
  margin-top: 10px;
}

.admin-log-query {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-log-query i {
  color: var(--muted);
  font-size: 15px;
}

.admin-log-query input {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
}

.admin-log-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  align-items: start;
}

.admin-day-users,
.admin-day-feed {
  min-width: 0;
  padding: 12px;
}

.admin-day-users > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 8px;
}

.admin-day-users > header span,
.admin-day-feed-head > div > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-day-users > header h2,
.admin-day-feed-head h2 {
  margin: 2px 0 0;
  color: rgba(244, 247, 250, 0.96);
  font-size: 16px;
  font-weight: 950;
}

.admin-day-users > header > strong {
  color: var(--green);
  font-size: 18px;
}

.admin-day-users nav {
  display: grid;
  gap: 4px;
}

.admin-day-user {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

.admin-day-user:hover,
.admin-day-user.active {
  border-color: rgba(95, 214, 120, 0.25);
  background: rgba(95, 214, 120, 0.08);
}

.admin-day-user > i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.admin-day-user.active > i {
  color: var(--green);
  background: rgba(95, 214, 120, 0.12);
}

.admin-day-user span,
.admin-day-user span strong,
.admin-day-user span small {
  display: block;
  min-width: 0;
}

.admin-day-user span .admin-day-user-activity {
  color: #55d98b;
  font-weight: 850;
}

.admin-day-user span strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-day-user span small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-day-user em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.admin-day-user > b {
  position: absolute;
  top: 7px;
  left: 28px;
  width: 6px;
  height: 6px;
  border: 1px solid #071019;
  border-radius: 50%;
  background: var(--green);
}

.admin-day-users nav > p {
  margin: 12px 4px;
  color: var(--muted);
  font-size: 10px;
}

.admin-day-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--line);
}

.admin-day-feed-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.admin-selected-status {
  display: grid;
  gap: 2px;
  text-align: right;
}

.admin-selected-status span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 10px;
  font-weight: 950;
}

.admin-selected-status span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.admin-selected-status.is-online span {
  color: #2ee879;
}

.admin-selected-status.is-offline span {
  color: #ff5f63;
}

.admin-selected-status small {
  font-size: 8px;
}

.admin-session-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 9px 0 2px;
}

.admin-session-summary > button {
  --session-accent: #2ee879;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 10px 32px 9px 50px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--session-accent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-session-summary > button.is-login {
  --session-accent: #4aa8ff;
}

.admin-session-summary > button.is-logout {
  --session-accent: #ff6268;
}

.admin-session-summary > button:hover,
.admin-session-summary > button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--session-accent) 62%, var(--line));
  background: color-mix(in srgb, var(--session-accent) 9%, var(--panel-2));
  transform: translateY(-1px);
}

.admin-session-summary > button > i:first-child {
  display: grid;
  place-items: center;
  position: absolute;
  top: 14px;
  left: 11px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--session-accent);
  background: color-mix(in srgb, var(--session-accent) 13%, transparent);
  font-size: 16px;
}

.admin-session-summary > button span,
.admin-session-summary > button strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-session-summary > button span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-session-summary > button strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.admin-session-summary .admin-session-open-icon {
  position: absolute;
  top: 50%;
  right: 9px;
  color: var(--muted);
  font-size: 13px;
  transform: translateY(-50%);
}

.admin-session-popover {
  --session-popover-arrow: 50%;
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  right: 0;
  width: min(390px, 100%);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.admin-session-popover::before {
  position: absolute;
  top: -6px;
  left: var(--session-popover-arrow);
  width: 11px;
  height: 11px;
  border-top: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-left: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  background: var(--panel);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.admin-session-popover[hidden] {
  display: none;
}

.admin-session-popover header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.admin-session-popover header span,
.admin-session-popover header strong,
.admin-session-popover header small {
  display: block;
}

.admin-session-popover header span {
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-session-popover header strong {
  margin-top: 2px;
  font-size: 13px;
}

.admin-session-popover header small {
  color: var(--muted);
  font-size: 8px;
}

.admin-session-popover header button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.admin-session-popover dl {
  display: grid;
  gap: 0;
  margin: 7px 0 0;
}

.admin-session-popover dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}

.admin-session-popover dl > div:last-child {
  border-bottom: 0;
}

.admin-session-popover dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.admin-session-popover dt i {
  color: var(--green);
}

.admin-session-popover dd {
  margin: 0;
  text-align: right;
}

.admin-session-popover dd strong,
.admin-session-popover dd span {
  display: block;
}

.admin-session-popover dd strong {
  font-size: 11px;
}

.admin-session-popover dd span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.admin-session-panel {
  --session-accent: #2ee879;
  padding: 13px 2px 2px;
}

.admin-session-panel.is-login {
  --session-accent: #4aa8ff;
}

.admin-session-panel.is-logout {
  --session-accent: #ff6268;
}

.admin-session-panel[hidden] {
  display: none;
}

.admin-session-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--session-accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-session-panel-title i {
  font-size: 17px;
}

.admin-session-panel-value {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.admin-session-panel > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.admin-session-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.admin-session-time-list span {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--session-accent) 35%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--session-accent) 8%, transparent);
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
}

.admin-session-time-list em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.admin-day-modules {
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 9px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-day-modules a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

.admin-day-modules a.active,
.admin-day-modules a:hover {
  border-color: rgba(95, 214, 120, 0.32);
  color: var(--text);
  background: rgba(95, 214, 120, 0.08);
}

.admin-day-modules strong {
  color: var(--green);
}

.admin-day-feed .admin-audit-groups {
  margin-top: 8px;
}

.admin-day-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 44px 16px;
  color: var(--muted);
  text-align: center;
}

.admin-day-empty i {
  color: rgba(95, 214, 120, 0.58);
  font-size: 28px;
}

.admin-day-empty strong {
  color: var(--text);
  font-size: 13px;
}

.admin-day-empty span {
  font-size: 10px;
}

body.theme-light .admin-log-day-title strong,
body.theme-light .admin-day-users > header h2,
body.theme-light .admin-day-feed-head h2,
body.theme-light .admin-day-empty strong {
  color: #101b24;
}

body.theme-light .admin-log-pill,
body.theme-light .admin-account-card,
body.theme-light .admin-detail-module-grid a,
body.theme-light .admin-detail-grid div,
body.theme-light .admin-detail-timeline article,
body.theme-light .admin-log-search input,
body.theme-light .admin-log-search select {
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .distribution-preview-modal {
  background: rgba(225, 235, 241, 0.74);
}

body.theme-light .distribution-preview-dialog {
  border-color: rgba(25, 48, 62, 0.14);
  background: rgba(248, 251, 253, 0.98);
  box-shadow: 0 24px 90px rgba(25, 48, 62, 0.28);
}

body.theme-light .distribution-preview-dialog > header button,
body.theme-light .distribution-preview-meta div {
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .admin-log-summary,
  .admin-log-search {
    grid-template-columns: 1fr;
  }

  .admin-log-header {
    display: grid;
  }

  .admin-log-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-log-panel {
    padding: 12px;
  }

  .admin-account-grid,
  .admin-detail-module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-detail-grid,
  .admin-event-body dl,
  .admin-detail-timeline article {
    grid-template-columns: 1fr;
  }

  .distribution-preview-modal {
    padding: 10px;
  }

  .distribution-preview-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .distribution-preview-dialog > header,
  .distribution-preview-meta {
    padding-left: 12px;
    padding-right: 12px;
  }

  .distribution-preview-meta {
    grid-template-columns: 1fr;
  }

  .distribution-preview-dialog .distribution-preview-table-wrap {
    margin: 12px;
  }
}

@media (max-width: 760px) {
  .page-content.page-admin_activity {
    overflow-x: clip;
  }

  .admin-log-page {
    gap: 10px;
  }

  .admin-log-command-panel {
    padding: 10px;
  }

  .admin-log-daybar {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .admin-log-date-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: 0;
  }

  .admin-log-date-form label,
  .admin-log-date-form input {
    min-width: 0;
    width: 100%;
  }

  .admin-log-today {
    grid-column: 1 / -1;
    justify-content: center;
    margin-left: 0;
  }

  .admin-log-search.admin-log-search-daily {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-log-filter-reset {
    width: 100%;
  }

  .admin-log-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-day-users {
    padding: 10px;
  }

  .admin-day-users nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .admin-day-user {
    flex: 0 0 210px;
  }

  .admin-day-feed {
    padding: 10px;
  }

  .admin-day-feed-head {
    display: grid;
    gap: 8px;
  }

  .admin-selected-status {
    text-align: left;
  }

  .admin-selected-status span {
    justify-content: flex-start;
  }

  .admin-session-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-session-popover {
    position: fixed;
    top: 50%;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    transform: translateY(-50%);
  }

  .admin-session-popover::before {
    display: none;
  }

  .admin-log-summary {
    gap: 8px;
  }

  .admin-log-summary .metric-card {
    min-height: 72px;
    padding: 10px 12px;
  }

  .admin-log-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .admin-log-header h2 {
    font-size: 17px;
  }

  .admin-log-search,
  .admin-log-search input,
  .admin-log-search select,
  .admin-log-search button,
  .admin-detail-clear {
    width: 100%;
    max-width: 100%;
  }

  .admin-account-card {
    min-height: 72px;
    padding: 10px;
  }

  .admin-account-card em {
    padding: 4px 7px;
    font-size: 9px;
  }

  .admin-detail-grid,
  .admin-detail-module-grid {
    gap: 7px;
  }

  .admin-detail-grid div,
  .admin-detail-module-grid a {
    min-height: 62px;
    padding: 9px 10px;
  }

  .admin-detail-timeline article {
    gap: 7px;
    padding: 10px;
  }

  .admin-audit-groups,
  .admin-detail-timeline {
    gap: 12px;
  }

  .admin-audit-event {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .admin-audit-icon {
    width: 28px;
    height: 28px;
  }

  .admin-audit-icon i {
    font-size: 15px;
  }

  .admin-audit-content > header {
    display: grid;
    gap: 6px;
  }

  .admin-audit-meta {
    justify-content: space-between;
  }

  .admin-audit-technical dl {
    grid-template-columns: 1fr;
  }

  .admin-audit-technical dl div.wide {
    grid-column: auto;
  }

  .admin-event-body header {
    display: grid;
    gap: 7px;
  }

  .admin-event-body header em {
    justify-self: start;
  }

  .admin-log-table-wrap {
    overflow: visible;
    border: 0;
  }

  .admin-log-table,
  .admin-log-table tbody,
  .admin-log-table tr,
  .admin-log-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-log-table {
    min-width: 0;
  }

  .admin-log-table thead {
    display: none;
  }

  .admin-log-table tbody {
    display: grid;
    gap: 8px;
  }

  .admin-log-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
  }

  .admin-log-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .admin-log-table td:last-child {
    border-bottom: 0;
  }

  .admin-log-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .admin-log-table td:nth-child(1)::before { content: "Čas"; }
  .admin-log-table td:nth-child(2)::before { content: "Profil"; }
  .admin-log-table td:nth-child(3)::before { content: "Modul"; }
  .admin-log-table td:nth-child(4)::before { content: "Akce"; }
  .admin-log-table td:nth-child(5)::before { content: "URL"; }
  .admin-log-table td:nth-child(6)::before { content: "IP"; }

  .admin-log-table td[colspan]::before {
    display: none;
  }

  .admin-log-table td span {
    font-size: 10px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  body.is-printing-distribution-preview {
    background: #ffffff !important;
  }

  body.is-printing-distribution-preview > :not(.distribution-print-sheet) {
    display: none !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.is-printing-distribution-preview .distribution-print-page {
    display: block !important;
    break-after: page !important;
    page-break-after: always !important;
  }

  body.is-printing-distribution-preview .distribution-print-page:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.is-printing-distribution-preview .distribution-print-page h2 {
    margin: 0 0 2mm !important;
    color: #000000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
  }

  body.is-printing-distribution-preview .distribution-print-day-block {
    margin: 0 0 2mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.is-printing-distribution-preview .distribution-print-day-block h3 {
    margin: 0 0 0.8mm !important;
    color: #000000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.is-printing-distribution-preview .distribution-print-page .distribution-preview-table {
    margin-bottom: 0 !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-table {
    min-width: 0 !important;
    width: 100% !important;
    color: #000000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-table thead {
    display: table-header-group !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-table th,
  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-table td {
    border: 1px solid #d1d5df !important;
    padding: 1px 3px !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-table th {
    background: #92d050 !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-section td,
  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-day td {
    font-size: 13px !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-day td {
    font-weight: 700 !important;
  }

  body.is-printing-distribution-preview .distribution-print-sheet .distribution-preview-spacer td {
    height: 18px !important;
    padding: 0 !important;
  }

  body:has(.manager-overtime-card) {
    background: #ffffff !important;
  }

  body:has(.manager-overtime-card) .sidebar,
  body:has(.manager-overtime-card) .nav-list,
  body:has(.manager-overtime-card) .brand,
  body:has(.manager-overtime-card) .topbar,
  body:has(.manager-overtime-card) .statusbar,
  body:has(.manager-overtime-card) .message-stack,
  body:has(.manager-overtime-card) .dalsi-panel,
  body:has(.manager-overtime-card) .manager-summary-hero,
  body:has(.manager-overtime-card) .manager-summary-toolbar {
    display: none !important;
  }

  body:has(.manager-overtime-card) .dalsi-page > :not(.dalsi-detail-panel),
  body:has(.manager-overtime-card) .dalsi-detail-panel > :not(.manager-summary-board) {
    display: none !important;
  }

  body:has(.manager-overtime-card) .app-shell,
  body:has(.manager-overtime-card) .app-main,
  body:has(.manager-overtime-card) .page-content,
  body:has(.manager-overtime-card) .dalsi-page,
  body:has(.manager-overtime-card) .dalsi-detail-panel,
  body:has(.manager-overtime-card) .manager-summary-board {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body:has(.manager-overtime-card) .manager-summary-metrics {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3mm !important;
    margin: 0 0 4mm !important;
  }

  body:has(.manager-overtime-card) .manager-summary-metrics article,
  body:has(.manager-overtime-card) .manager-summary-table-card {
    border: 1px solid #111111 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #000000 !important;
  }

  body:has(.manager-overtime-card) .manager-summary-metrics article {
    min-height: 0 !important;
    padding: 3mm !important;
  }

  body:has(.manager-overtime-card) .manager-summary-metrics i {
    display: none !important;
  }

  body:has(.manager-overtime-card) .manager-summary-metrics span,
  body:has(.manager-overtime-card) .manager-summary-metrics strong {
    color: #000000 !important;
  }

  body:has(.manager-overtime-card) .manager-summary-metrics strong {
    margin-top: 1mm !important;
    font-size: 16px !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-card > header {
    padding: 0 0 2mm !important;
    border: 0 !important;
    background: #ffffff !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-card > header strong {
    color: #000000 !important;
    font-size: 18px !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-card > header div {
    display: block !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-card > header div > :not(strong) {
    display: none !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-card > header span,
  body:has(.manager-overtime-card) .manager-overtime-card > header em {
    color: #000000 !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-table-wrap {
    overflow: visible !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-table {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: Arial, sans-serif !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-table th,
  body:has(.manager-overtime-card) .manager-overtime-table td {
    border: 1px solid #111111 !important;
    padding: 2mm !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  body:has(.manager-overtime-card) .manager-overtime-table th,
  body:has(.manager-overtime-card) .manager-overtime-table td strong,
  body:has(.manager-overtime-card) .manager-overtime-month-cell span,
  body:has(.manager-overtime-card) .manager-overtime-month-cell em,
  body:has(.manager-overtime-card) .manager-overtime-table th.manager-overtime-month-head span,
  body:has(.manager-overtime-card) .manager-overtime-table th.manager-overtime-month-head small {
    color: #000000 !important;
  }
}

body:has(.page-content.page-train_movements) .train-tv-board-head h1,
body:has(.page-content.page-train_movements) .train-tv-board-head time,
body:has(.page-content.page-train_movements) .train-tv-rail-number strong,
body:has(.page-content.page-train_movements) .train-tv-track em,
body:has(.page-content.page-train_movements) .train-tv-table-card h2 {
  color: #f7fbff !important;
}

body:has(.page-content.page-train_movements) .train-tv-board-head span,
body:has(.page-content.page-train_movements) .train-tv-rail-number small,
body:has(.page-content.page-train_movements) .train-tv-table-card th,
body:has(.page-content.page-train_movements) .train-tv-table-card header span {
  color: rgba(218, 232, 240, 0.78) !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card.tone-arrivals h2 {
  color: #8dffbf !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card.tone-departures h2 {
  color: #8ecbff !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td {
  color: rgba(236, 244, 248, 0.90) !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td:first-child {
  color: rgba(141, 255, 191, 0.96) !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(2),
body:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(6) {
  color: #f7fbff !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(7) {
  color: #ffe28a !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-processing {
  color: #8dffbf !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-done {
  color: #8dffbf !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-warning {
  color: #ffe28a !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-problem {
  color: #ff6b6b !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-cancelled {
  color: #ff6b6b !important;
}

body:has(.page-content.page-train_movements) .train-tv-table-card tr.is-empty td {
  color: rgba(236, 244, 248, 0.52) !important;
}

.terminal-table tr.selected-row td,
.kpi-click-table tbody tr.selected-row td,
.import-preview-table td.cell-selected,
td.cell-selected,
.manual-import-grid-cell.cell-selected,
.train-ops-card.selected,
.train-timeline-row.selected,
.train-week-day.selected,
.train-operation-rail-buttons button.active,
.train-plan-switch a.active,
.vacation-planner-table .vacation-cell-toggle.is-active,
.shift-plan-calendar .is-selected,
.employee-card.is-selected,
.employee-profile-card.is-selected,
.account-card.is-selected,
.manager-timesheet-card.is-selected,
.manager-signed-card.is-selected,
.manager-calendar-grid a.selected,
.more-tile.is-selected,
.profile-switch-menu button.active,
.profile-switch-list button.active,
.theme-switch-form button.active,
.mode-button.active,
.predavka-train-card.active,
.container-slot.highlighted,
.yard-section.selected,
.dalsi-car-toggle input:checked + span,
.employee-status-pill.is-active,
.list-row.is-selected,
.selectable-row.is-selected {
  border-color: var(--selection-border) !important;
  outline: 2px solid var(--selection-border) !important;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), var(--selection-ring) !important;
}

.terminal-table tr.selected-row td,
.kpi-click-table tbody tr.selected-row td,
.import-preview-table td.cell-selected,
td.cell-selected,
.manual-import-grid-cell.cell-selected,
.vacation-planner-table .vacation-cell-toggle.is-active,
.shift-plan-calendar .is-selected,
.manager-calendar-grid a.selected,
.profile-switch-menu button.active,
.profile-switch-list button.active,
.theme-switch-form button.active,
.mode-button.active,
.dalsi-car-toggle input:checked + span,
.list-row.is-selected,
.selectable-row.is-selected {
  background: linear-gradient(135deg, var(--selection-bg-strong), rgba(50, 230, 120, 0.10)) !important;
}

.dochazka-employee-wrap .employee-list input:checked + span,
.dochazka-shift-buttons input:checked + span,
.manual-import-grid-cell:focus-within {
  border-color: var(--selection-border) !important;
  background: linear-gradient(135deg, var(--selection-bg-strong), rgba(50, 230, 120, 0.12)) !important;
  color: #ffffff !important;
  outline: 2px solid var(--selection-border);
  outline-offset: -2px;
  box-shadow: var(--selection-ring) !important;
}

.dochazka-employee-wrap .employee-list label:has(input:checked),
.dochazka-shift-buttons label:has(input:checked) {
  transform: translateY(-1px);
}

.shift-plan-table td[class*="code-"],
.shift-plan-table select[class*="code-"],
.shift-plan-tail [class*="code-"] {
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  font-weight: 950;
}

.shift-plan-table td.is-standby,
.shift-plan-table td.issue-red,
.shift-plan-table th.issue-red {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

body.theme-light .terminal-table tr.selected-row td,
body.theme-light .kpi-click-table tbody tr.selected-row td,
body.theme-light td.cell-selected,
body.theme-light .manual-import-grid-cell.cell-selected,
body.theme-light .vacation-planner-table .vacation-cell-toggle.is-active,
body.theme-light .shift-plan-calendar .is-selected,
body.theme-light .manager-calendar-grid a.selected,
body.theme-light .profile-switch-menu button.active,
body.theme-light .profile-switch-list button.active,
body.theme-light .theme-switch-form button.active,
body.theme-light .mode-button.active,
body.theme-light .dalsi-car-toggle input:checked + span,
body.theme-light .list-row.is-selected,
body.theme-light .selectable-row.is-selected,
body.theme-light .dochazka-employee-wrap .employee-list input:checked + span,
body.theme-light .dochazka-shift-buttons input:checked + span {
  background: linear-gradient(135deg, rgba(50, 230, 120, 0.34), rgba(50, 230, 120, 0.16)) !important;
  color: #0d1f16 !important;
}

body.theme-light .train-ops-card.selected,
body.theme-light .train-timeline-row.selected,
body.theme-light .train-week-day.selected,
body.theme-light .employee-card.is-selected,
body.theme-light .employee-profile-card.is-selected,
body.theme-light .account-card.is-selected,
body.theme-light .manager-timesheet-card.is-selected,
body.theme-light .manager-signed-card.is-selected,
body.theme-light .more-tile.is-selected,
body.theme-light .predavka-train-card.active,
body.theme-light .container-slot.highlighted,
body.theme-light .yard-section.selected,
body.theme-light .employee-status-pill.is-active {
  border-color: #247346 !important;
  outline-color: #247346 !important;
  box-shadow: inset 0 0 0 1px rgba(36, 115, 70, 0.22), 0 0 0 2px rgba(36, 115, 70, 0.22) !important;
}
/* Server-side archive browser */
.archive-browser-page {
  display: grid;
  gap: 16px;
}

.archive-browser-hero,
.archive-browser-toolbar,
.archive-browser-table-wrap {
  border: 1px solid rgba(220, 236, 245, 0.11);
  border-radius: 8px;
  background: rgba(10, 15, 21, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.archive-browser-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.archive-browser-hero > div {
  min-width: 0;
}

.archive-browser-hero strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.archive-browser-hero span {
  display: block;
  margin-top: 6px;
  color: rgba(220, 235, 245, 0.62);
  font-size: 12px;
  font-weight: 780;
}

.archive-browser-back,
.archive-browser-actions a,
.archive-browser-upload label,
.archive-browser-row-actions a,
.archive-browser-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(220, 236, 245, 0.13);
  border-radius: 8px;
  color: rgba(245, 250, 252, 0.84);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 920;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.archive-browser-back,
.archive-browser-actions a,
.archive-browser-upload label {
  min-height: 36px;
  padding: 8px 12px;
}

.archive-browser-back:hover,
.archive-browser-actions a:hover,
.archive-browser-upload label:hover,
.archive-browser-row-actions a:hover,
.archive-browser-row-actions button:hover {
  border-color: rgba(50, 230, 120, 0.38);
  color: #fff;
  background: rgba(50, 230, 120, 0.11);
  box-shadow: 0 0 0 1px rgba(50, 230, 120, 0.10), 0 0 18px rgba(50, 230, 120, 0.14);
}

.archive-browser-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.archive-browser-path {
  min-width: 0;
}

.archive-browser-crumbs {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.archive-browser-crumbs a,
.archive-browser-crumbs span {
  color: rgba(220, 235, 245, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.archive-browser-crumbs a:hover {
  color: #fff;
}

.archive-browser-path small {
  display: block;
  margin-top: 6px;
  color: rgba(220, 235, 245, 0.46);
  font-size: 10px;
  font-weight: 760;
  word-break: break-all;
}

.archive-browser-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.archive-browser-drop-form {
  display: none;
}

.archive-browser-drop-zone {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 72px;
  border: 1px dashed rgba(50, 230, 120, 0.30);
  border-radius: 8px;
  color: rgba(220, 255, 232, 0.88);
  background: rgba(50, 230, 120, 0.08);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.10), 0 0 24px rgba(50, 230, 120, 0.12);
}

.archive-browser-drop-zone i {
  color: var(--green);
  font-size: 26px;
}

.archive-browser-drop-zone strong,
.archive-browser-drop-zone span {
  display: inline-flex;
  align-items: center;
}

.archive-browser-drop-zone strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.archive-browser-drop-zone span {
  color: rgba(220, 235, 245, 0.58);
  font-size: 11px;
  font-weight: 780;
}

.archive-browser-page.is-dragging-files .archive-browser-drop-zone {
  display: flex;
}

.archive-browser-page.is-dragging-files .archive-browser-toolbar,
.archive-browser-page.is-dragging-files .archive-browser-table-wrap {
  border-color: rgba(50, 230, 120, 0.34);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.20),
    0 0 0 2px rgba(50, 230, 120, 0.13),
    0 0 30px rgba(50, 230, 120, 0.16);
}

.archive-browser-table-wrap {
  overflow: auto;
}

.archive-browser-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.archive-browser-table th,
.archive-browser-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(220, 236, 245, 0.08);
  color: rgba(245, 250, 252, 0.84);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  vertical-align: middle;
}

.archive-browser-table th {
  color: rgba(220, 235, 245, 0.56);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.archive-browser-file {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: rgba(245, 250, 252, 0.88);
  font-weight: 880;
  text-decoration: none;
}

.archive-browser-file i {
  color: rgba(50, 230, 120, 0.92);
  font-size: 18px;
}

.archive-browser-file.is-dir i {
  color: #48a8ff;
}

.archive-browser-file span {
  overflow-wrap: anywhere;
}

.archive-browser-row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.archive-browser-row-actions a,
.archive-browser-row-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
}

.archive-browser-row-actions form {
  margin: 0;
}

.archive-browser-empty {
  padding: 24px !important;
  color: rgba(220, 235, 245, 0.58) !important;
  text-align: center !important;
}

/* Live terminal map */
.map-live-overview {
  background:
    linear-gradient(90deg, rgba(126, 154, 172, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(126, 154, 172, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    #071019;
}

.map-live-rails {
  padding: 7px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.12);
  background: rgba(3, 9, 14, 0.58);
}

.map-live-rails-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  margin-bottom: 4px;
}

.map-live-rails-head > div,
.map-live-rails-head > div > span,
.map-live-rails-head > div > strong {
  display: block;
}

.map-live-rails-head > div > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-live-rails-head > div > strong {
  margin-top: 1px;
  color: rgba(244, 247, 250, 0.96);
  font-size: 12px;
  font-weight: 950;
}

.map-live-rails-head > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(50, 230, 120, 0.24);
  border-radius: 6px;
  color: rgba(244, 247, 250, 0.88);
  background: rgba(50, 230, 120, 0.06);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.map-live-rails-head > a:hover {
  border-color: rgba(50, 230, 120, 0.52);
  color: #fff;
}

.map-live-rails-head > a i:first-child {
  color: var(--green);
  font-size: 14px;
}

.map-live-rails-head > a i:last-child {
  color: var(--muted);
  font-size: 13px;
}

.map-live-rails-list {
  display: grid;
  gap: 2px;
}

.map-live-rail {
  display: grid;
  grid-template-columns: 52px minmax(210px, 1fr) minmax(132px, 170px);
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 1px 7px 1px 3px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
}

.map-live-rail.is-occupied {
  border-color: rgba(50, 230, 120, 0.13);
  background: linear-gradient(90deg, rgba(50, 230, 120, 0.055), transparent 46%);
}

.map-live-rail.is-service {
  border-color: rgba(240, 196, 60, 0.12);
  background: linear-gradient(90deg, rgba(240, 196, 60, 0.045), transparent 46%);
}

.map-live-rail.is-service.is-occupied {
  border-color: rgba(50, 230, 120, 0.18);
  background: linear-gradient(90deg, rgba(50, 230, 120, 0.07), rgba(240, 196, 60, 0.025) 58%, transparent);
}

.map-live-rail-label {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.map-live-rail-label small {
  color: rgba(169, 186, 199, 0.64);
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.map-live-rail-label strong {
  color: rgba(244, 247, 250, 0.92);
  font-size: 11px;
  font-weight: 950;
}

.map-live-rail.is-service .map-live-rail-label strong {
  color: #f0c43c;
}

.map-live-track {
  position: relative;
  min-width: 0;
  height: 19px;
}

.map-track-bed {
  position: absolute;
  inset: 6px 6px;
  display: block;
  border-top: 1px solid rgba(207, 220, 228, 0.44);
  border-bottom: 1px solid rgba(207, 220, 228, 0.44);
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(207, 220, 228, 0.24) 12px 14px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.26);
}

.map-track-signal {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border: 1px solid rgba(210, 222, 232, 0.28);
  border-radius: 50%;
  background: #5f6b73;
  box-shadow: 0 0 0 3px rgba(4, 10, 16, 0.92);
}

.map-track-signal.start {
  left: 0;
}

.map-track-signal.end {
  right: 0;
}

.map-live-rail.is-occupied .map-track-signal.start {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(4, 10, 16, 0.92), 0 0 10px rgba(50, 230, 120, 0.62);
}

.map-live-rail.is-occupied .map-track-signal.end {
  background: #f05252;
  box-shadow: 0 0 0 3px rgba(4, 10, 16, 0.92), 0 0 9px rgba(240, 82, 82, 0.48);
}

.map-train-consist {
  position: absolute;
  top: 50%;
  left: 3%;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(76px, 104px) minmax(100px, 1fr);
  width: min(66%, 620px);
  height: 17px;
  transform: translateY(-50%);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.32));
}

.map-train-consist.direction-in {
  right: 3%;
  left: auto;
  grid-template-columns: minmax(100px, 1fr) minmax(76px, 104px);
}

.map-train-consist.direction-in b {
  grid-column: 2;
  grid-row: 1;
}

.map-train-consist.direction-in > span {
  grid-column: 1;
  grid-row: 1;
}

.map-train-consist b {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 0 6px;
  border: 1px solid rgba(137, 255, 185, 0.34);
  border-radius: 3px;
  color: #fff;
  background: #245e3d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 8px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-train-consist b i {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
}

.map-train-consist > span {
  min-width: 0;
  margin: 2px 0;
  border-top: 1px solid rgba(141, 255, 191, 0.22);
  border-bottom: 1px solid rgba(141, 255, 191, 0.22);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #2f744a 0 31px, #173527 31px 35px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.map-live-rail.tone-waiting-active .map-train-consist b,
.map-live-rail.tone-waiting-active .map-train-consist > span {
  border-color: rgba(142, 203, 255, 0.36);
  background-color: #285d84;
}

.map-live-rail.tone-waiting-active .map-train-consist b {
  background: #285d84;
}

.map-live-rail.tone-waiting-active .map-train-consist > span {
  background: repeating-linear-gradient(90deg, #2c648d 0 31px, #18354b 31px 35px);
}

.map-live-rail.tone-service-active .map-train-consist b {
  background: #806122;
}

.map-live-rail.tone-service-active .map-train-consist > span {
  border-color: rgba(240, 196, 60, 0.34);
  background: repeating-linear-gradient(90deg, #8f6c25 0 31px, #453719 31px 35px);
}

.map-live-track > em {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: rgba(169, 186, 199, 0.38);
  background: #071019;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.map-live-rail-state {
  min-width: 0;
  padding-left: 8px;
  border-left: 1px solid rgba(210, 222, 232, 0.08);
}

.map-live-rail-state strong,
.map-live-rail-state small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-live-rail-state strong {
  color: rgba(244, 247, 250, 0.74);
  font-size: 8px;
  font-weight: 900;
}

.map-live-rail.is-occupied .map-live-rail-state strong {
  color: #8dffbf;
}

.map-live-rail.tone-waiting-active .map-live-rail-state strong {
  color: #ffe28a;
}

.map-live-rail-state small {
  margin-top: 1px;
  color: rgba(169, 186, 199, 0.55);
  font-size: 7px;
  font-weight: 750;
}

.map-yard-canvas {
  position: relative;
  display: block;
  min-height: 410px;
  overflow: hidden;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
  background:
    linear-gradient(90deg, rgba(134, 158, 175, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(134, 158, 175, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, rgba(20, 35, 46, 0.72), rgba(7, 15, 22, 0.92));
}

.map-focus-inspector {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  padding: 18px 15px;
  border-right: 1px solid rgba(50, 230, 120, 0.20);
  color: inherit;
  background: rgba(6, 14, 21, 0.88);
  text-decoration: none;
}

.map-focus-inspector:hover {
  background: rgba(10, 26, 25, 0.94);
}

.map-focus-gauge {
  display: grid;
  place-items: center;
  align-self: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0a151e 0 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--map-progress) * 1%), rgba(113, 138, 153, 0.22) 0);
  box-shadow: 0 0 24px rgba(50, 230, 120, 0.08);
}

.map-focus-gauge strong,
.map-focus-gauge small {
  grid-area: 1 / 1;
}

.map-focus-gauge strong {
  transform: translateY(-5px);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.map-focus-gauge small {
  transform: translateY(13px);
  color: rgba(169, 186, 199, 0.64);
  font-size: 6px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-focus-inspector > div strong,
.map-focus-inspector > div span {
  display: block;
}

.map-focus-inspector > div strong {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-focus-inspector > div span {
  margin-top: 4px;
  color: rgba(220, 230, 236, 0.78);
  font-size: 9px;
  font-weight: 800;
}

.map-focus-inspector > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 5px;
  color: rgba(244, 247, 250, 0.84);
  background: rgba(255, 255, 255, 0.035);
  font-size: 17px;
}

.map-yard-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.map-yard-flow i {
  position: absolute;
  display: block;
  width: 14%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(240, 196, 60, 0.35) 0 5px, transparent 5px 10px);
}

.map-yard-flow i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(240, 196, 60, 0.48);
  border-right: 1px solid rgba(240, 196, 60, 0.48);
  transform: rotate(45deg);
}

.map-yard-flow i:nth-child(1) { left: 7%; top: 34%; }
.map-yard-flow i:nth-child(2) { left: 33%; top: 76%; transform: rotate(180deg); }
.map-yard-flow i:nth-child(3) { left: 57%; top: 34%; }
.map-yard-flow i:nth-child(4) { left: 78%; top: 76%; transform: rotate(180deg); }

.map-yard-zones {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.28fr 0.9fr 0.9fr 0.92fr;
  min-width: 0;
}

.map-yard-zone {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  min-width: 0;
  padding: 14px 12px 10px;
  border-right: 1px solid rgba(210, 222, 232, 0.13);
  color: inherit;
  background: rgba(255, 255, 255, 0.012);
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.map-yard-zone:last-child {
  border-right: 0;
}

.map-yard-zone:hover {
  background: rgba(50, 230, 120, 0.025);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.22);
}

.map-yard-zone.is-focused {
  background: linear-gradient(180deg, rgba(50, 230, 120, 0.035), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(50, 230, 120, 0.34), inset 0 0 34px rgba(50, 230, 120, 0.035);
}

.map-yard-zone > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-bottom: 8px;
}

.map-yard-zone > header strong {
  overflow: hidden;
  color: rgba(244, 247, 250, 0.94);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-yard-zone > header span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.map-yard-zone.tone-warning > header span {
  color: var(--amber);
}

.map-yard-zone.tone-danger > header span {
  color: var(--red);
}

.map-yard-container-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 18px;
  align-content: center;
  gap: 5px 6px;
  min-width: 0;
  padding: 24px 16px;
  border-top: 1px dashed rgba(210, 222, 232, 0.10);
  border-bottom: 1px dashed rgba(210, 222, 232, 0.10);
  background: linear-gradient(90deg, transparent 48%, rgba(210, 222, 232, 0.04) 49% 51%, transparent 52%);
  transform: perspective(760px) rotateX(4deg);
  transform-origin: center bottom;
}

.map-yard-zone.section-a .map-yard-container-grid,
.map-yard-zone.section-e .map-yard-container-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.map-yard-container-grid > i {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid rgba(126, 154, 172, 0.18);
  border-radius: 2px;
  background: rgba(81, 112, 130, 0.12);
  box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.map-yard-container-grid > i::before {
  content: "";
  position: absolute;
  inset: 3px 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(0, 0, 0, 0.18);
}

.map-yard-container-grid > i::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -2px;
  left: 2px;
  height: 3px;
  border-radius: 1px 1px 0 0;
  background: inherit;
  filter: brightness(1.26);
  opacity: 0.82;
  transform: skewX(-34deg);
  transform-origin: bottom;
}

.map-yard-container-grid > i.tone-open {
  border-color: rgba(85, 178, 122, 0.44);
  background: #315f48;
}

.map-yard-container-grid > i.tone-active {
  border-color: rgba(86, 164, 224, 0.40);
  background: #315e7d;
}

.map-yard-container-grid > i.tone-warning {
  border-color: rgba(240, 196, 60, 0.46);
  background: #7f6b27;
}

.map-yard-container-grid > i.tone-danger {
  border-color: rgba(224, 90, 80, 0.48);
  background: #7a3b39;
}

.map-yard-container-grid > i.is-empty {
  display: none;
}

.map-yard-container-grid > b {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) rotateX(-4deg);
  border: 2px solid var(--green);
  border-radius: 6px;
  color: #fff;
  background: rgba(6, 14, 21, 0.94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34), 0 0 18px rgba(50, 230, 120, 0.08);
  font-size: 21px;
  font-weight: 950;
}

.map-yard-zone.tone-warning .map-yard-container-grid > b {
  border-color: var(--amber);
}

.map-yard-zone.tone-danger .map-yard-container-grid > b {
  border-color: var(--red);
}

.map-yard-zone > footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding-top: 10px;
}

.map-yard-zone > footer span,
.map-yard-zone > footer small,
.map-yard-zone > footer strong {
  display: block;
  min-width: 0;
}

.map-yard-zone > footer small {
  color: rgba(169, 186, 199, 0.60);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-yard-zone > footer strong {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(244, 247, 250, 0.88);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-yard-zone > footer > i {
  color: rgba(169, 186, 199, 0.56);
  font-size: 14px;
}

body.theme-light .map-live-overview {
  background:
    linear-gradient(90deg, rgba(25, 48, 62, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(25, 48, 62, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    #edf4f7;
}

body.theme-light .map-live-rails,
body.theme-light .map-focus-inspector {
  background: rgba(248, 252, 253, 0.92);
}

body.theme-light .map-live-rails-head > div > strong,
body.theme-light .map-live-rail-label strong,
body.theme-light .map-yard-zone > header strong,
body.theme-light .map-yard-zone > footer strong,
body.theme-light .map-focus-gauge strong {
  color: #101b24;
}

body.theme-light .map-live-rails-head > a,
body.theme-light .map-focus-inspector > i {
  color: #173246;
  background: rgba(36, 115, 70, 0.05);
}

body.theme-light .map-live-track > em {
  color: rgba(25, 48, 62, 0.44);
  background: #f4f8fa;
}

body.theme-light .map-yard-canvas {
  background:
    linear-gradient(90deg, rgba(25, 48, 62, 0.055) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(25, 48, 62, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #edf4f7, #dfe9ee);
}

body.theme-light .map-focus-gauge {
  background:
    radial-gradient(circle, #f8fbfc 0 58%, transparent 59%),
    conic-gradient(#247346 calc(var(--map-progress) * 1%), rgba(25, 48, 62, 0.14) 0);
}

body.theme-light .map-focus-inspector > div span,
body.theme-light .map-live-rail-state strong,
body.theme-light .map-live-rail-state small {
  color: rgba(16, 27, 36, 0.66);
}

body.theme-light .map-yard-zone {
  border-color: rgba(25, 48, 62, 0.13);
  background: rgba(255, 255, 255, 0.10);
}

body.theme-light .map-yard-zone.is-focused {
  background: linear-gradient(180deg, rgba(36, 115, 70, 0.07), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(36, 115, 70, 0.30);
}

body.theme-light .map-yard-container-grid > b {
  color: #101b24;
  background: rgba(249, 252, 253, 0.95);
}

@media (max-width: 1180px) {
  .map-live-rail {
    grid-template-columns: 54px minmax(220px, 1fr) minmax(120px, 150px);
  }

  .map-yard-canvas {
    display: block;
  }

  .map-yard-flow {
    left: 0;
  }

  .map-yard-zone {
    padding-right: 9px;
    padding-left: 9px;
  }

  .map-yard-zone > footer {
    grid-template-columns: 1fr auto;
  }

  .map-yard-zone > footer > i {
    display: none;
  }
}

@media (max-width: 860px) {
  .map-live-rail {
    grid-template-columns: 48px minmax(180px, 1fr);
    gap: 6px;
    min-height: 30px;
    padding: 2px 6px;
  }

  .map-live-rail.is-occupied {
    min-height: 42px;
  }

  .map-live-rail:not(.is-occupied) .map-live-rail-state {
    display: none;
  }

  .map-live-rail-state {
    grid-column: 2;
    padding: 2px 0 0;
    border-left: 0;
  }

  .map-live-rail-state strong,
  .map-live-rail-state small {
    display: inline;
  }

  .map-live-rail-state small::before {
    content: " · ";
  }

  .map-train-consist {
    width: 82%;
  }

  .map-yard-canvas {
    display: block;
  }

  .map-focus-inspector {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(50, 230, 120, 0.20);
  }

  .map-focus-gauge {
    width: 60px;
    height: 60px;
  }

  .map-focus-gauge strong {
    font-size: 17px;
  }

  .map-focus-inspector > i {
    width: 32px;
    height: 32px;
  }

  .map-yard-flow {
    display: none;
  }

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

  .map-yard-zone {
    min-height: 320px;
    border-bottom: 1px solid rgba(210, 222, 232, 0.12);
  }
}

@media (max-width: 520px) {
  .map-live-rails {
    padding: 8px;
  }

  .map-live-rails-head > a span {
    display: none;
  }

  .map-live-rail {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .map-live-rail-label {
    display: grid;
    gap: 0;
  }

  .map-live-track {
    height: 23px;
  }

  .map-train-consist {
    grid-template-columns: minmax(70px, 98px) minmax(40px, 1fr);
    width: 90%;
  }

  .map-train-consist.direction-in {
    grid-template-columns: minmax(40px, 1fr) minmax(70px, 98px);
  }

  .map-yard-zones {
    grid-template-columns: 1fr;
  }

  .map-yard-zone {
    min-height: 310px;
    border-right: 0;
  }

  .map-yard-container-grid {
    padding-right: 24px;
    padding-left: 24px;
  }
}

.map-command-row.map-command-compact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding: 6px 14px;
}

.map-command-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-command-compact .map-command-actions > button,
.map-command-compact .map-command-actions > a {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 6px;
  color: rgba(244, 247, 250, 0.82);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.map-command-compact .map-command-actions > button:hover,
.map-command-compact .map-command-actions > a:hover,
.map-command-compact .map-search-trigger.is-active {
  border-color: rgba(50, 230, 120, 0.46);
  color: var(--green);
  background: rgba(50, 230, 120, 0.08);
}

.map-command-compact .map-command-actions i {
  color: currentColor;
  font-size: 17px;
}

.map-search-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 14px;
  z-index: 40;
  width: min(340px, calc(100% - 28px));
  padding: 6px;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 7px;
  background: #0b151e;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.map-search-popover[hidden] {
  display: none;
}

.map-command-compact .map-search-popover label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 3px 0 8px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 5px;
  background: rgba(4, 10, 16, 0.72);
}

.map-command-compact .map-search-popover label > i {
  color: rgba(169, 186, 199, 0.72);
  font-size: 16px;
}

.map-command-compact .map-search-popover input {
  min-width: 0;
  font-size: 11px;
}

.map-command-compact .map-search-popover button {
  display: grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(50, 230, 120, 0.30);
  background: rgba(50, 230, 120, 0.08);
}

.map-command-compact .map-search-popover button i {
  color: var(--green);
  font-size: 15px;
}

body.theme-light .map-command-compact .map-command-actions > button,
body.theme-light .map-command-compact .map-command-actions > a,
body.theme-light .map-search-popover,
body.theme-light .map-command-compact .map-search-popover label {
  border-color: rgba(25, 48, 62, 0.14);
  color: rgba(16, 27, 36, 0.76);
  background: #f8fbfc;
}

body.theme-light .map-search-popover {
  box-shadow: 0 18px 42px rgba(25, 48, 62, 0.20);
}

@media (max-width: 520px) {
  .map-command-row.map-command-compact {
    min-height: 44px;
    padding: 5px 10px;
  }

  .map-search-popover {
    right: 10px;
    width: min(320px, calc(100% - 20px));
  }
}

/* Spatial yard lanes - section detail */
.yard-lanes-detail {
  padding: 10px 14px 14px;
}

.yard-lanes-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.yard-lanes-nav .map-range-pills {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.yard-lanes-nav .map-range-pills a {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.yard-lanes-board {
  overflow: hidden;
  padding: 0;
  border-radius: 6px;
  background: #071016;
}

.yard-lanes-board > .yard-lanes-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 46px;
  margin: 0;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.14);
  background: rgba(5, 11, 17, 0.78);
}

.yard-lanes-summary h2 {
  padding-right: 16px;
  border-right: 1px solid rgba(210, 222, 232, 0.12);
  font-size: 15px;
}

.yard-lanes-occupancy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.yard-lanes-occupancy span {
  color: rgba(169, 186, 199, 0.72);
  font-size: 10px;
  font-weight: 850;
}

.yard-lanes-occupancy strong {
  color: var(--green);
  font-size: 19px;
  font-weight: 950;
}

.yard-lanes-occupancy small {
  color: rgba(230, 237, 242, 0.84);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.yard-lanes-summary .map-inline-legend {
  justify-self: end;
  flex-wrap: nowrap;
}

.yard-lanes-list {
  position: relative;
  background:
    linear-gradient(90deg, rgba(226, 234, 238, 0.025) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(0deg, rgba(226, 234, 238, 0.018) 1px, transparent 1px) 0 0 / 52px 52px,
    #11181d;
}

.yard-lane {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 88px;
  padding: 0;
  border-top: 1px solid rgba(210, 222, 232, 0.12);
}

.yard-lane:first-child {
  border-top: 0;
}

.yard-lane-label {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  min-width: 0;
  padding: 8px 11px;
  border-right: 1px solid rgba(210, 222, 232, 0.14);
  background: rgba(9, 17, 23, 0.94);
}

.yard-lane-label small,
.yard-lane-label strong,
.yard-lane-label em,
.yard-lane-label span {
  display: block;
  min-width: 0;
}

.yard-lane-label small {
  color: rgba(169, 186, 199, 0.46);
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.yard-lane-label strong {
  overflow: hidden;
  color: rgba(244, 247, 250, 0.96);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yard-lane-label em {
  position: static;
  margin-top: 1px;
  transform: none;
  color: rgba(244, 247, 250, 0.94);
  font-size: 22px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.yard-lane-label span {
  color: rgba(169, 186, 199, 0.72);
  font-size: 8px;
  font-weight: 800;
}

.yard-lane-label > i {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: rgba(210, 222, 232, 0.54);
  font-size: 13px;
}

.yard-lane-track {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px 10px 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 50%, transparent 50%) 0 0 / 96px 100%,
    #181f23;
}

.yard-lane-track::before {
  content: "";
  position: absolute;
  inset: 10px 6px 8px;
  border: 2px solid rgba(201, 208, 211, 0.44);
  border-radius: 26px;
  box-shadow: inset 0 0 0 3px rgba(8, 12, 14, 0.34), 0 2px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.yard-lane-track::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 11px;
  left: 10px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(224, 205, 155, 0.30) 0 11px, transparent 11px 22px);
  pointer-events: none;
}

.yard-lane-flow {
  position: absolute;
  top: 3px;
  right: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: rgba(231, 204, 128, 0.44);
  font-size: 12px;
  pointer-events: none;
}

.yard-lane-flow::before,
.yard-lane-flow::after {
  content: "";
  position: absolute;
  top: 17px;
  z-index: 5;
  width: 8px;
  height: 42px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #d2aa34 0 5px, #171b1d 5px 10px);
  box-shadow: 0 0 0 1px rgba(4, 8, 10, 0.52);
}

.yard-lane-flow::before {
  left: -15px;
}

.yard-lane-flow::after {
  right: -15px;
}

.yard-lane-flow span {
  height: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(231, 204, 128, 0.22) 24px 38px);
}

.yard-lane-cells {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(var(--bay-count), minmax(44px, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 7px 13px 15px;
}

.yard-lane-cells a {
  --bay-color: #315f48;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--bay-color) 54%, #9cabb3);
  border-radius: 3px;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, rgba(0, 0, 0, 0.10) 1px 2px, transparent 2px 9px),
    linear-gradient(145deg, #202a30, #12191e);
  box-shadow: 3px 5px 0 rgba(2, 6, 9, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -10px 12px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.yard-lane-cells a::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -2px;
  left: 5px;
  height: 4px;
  border: 1px solid color-mix(in srgb, var(--bay-color) 32%, #788891);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(135deg, #344047, #182126);
  transform: skewX(-32deg);
  transform-origin: bottom;
}

.yard-lane-cells a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: color-mix(in srgb, var(--bay-color) 88%, #d9e2e6);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.30);
}

.yard-lane-cells a.tone-open,
.yard-lane-cells a.tone-active,
.yard-lane-cells a.tone-warning,
.yard-lane-cells a.tone-danger {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, rgba(0, 0, 0, 0.10) 1px 2px, transparent 2px 9px),
    linear-gradient(145deg, #202a30, #12191e);
}

.yard-lane-cells a.tone-open { --bay-color: #315f48; }
.yard-lane-cells a.tone-active { --bay-color: #315e7d; }
.yard-lane-cells a.tone-warning { --bay-color: #806a25; }
.yard-lane-cells a.tone-danger { --bay-color: #7a3b38; }

.yard-lane-cells a:hover,
.yard-lane-cells a:focus-visible {
  z-index: 4;
  border-color: var(--green);
  outline: 0;
  box-shadow: 5px 9px 0 rgba(2, 7, 11, 0.42), 0 0 0 2px rgba(50, 230, 120, 0.28);
  transform: translateY(-3px);
}

.yard-lane-cells a.searched {
  border-color: #ff6258;
  box-shadow: 4px 6px 0 rgba(2, 7, 11, 0.34), 0 0 0 2px rgba(255, 98, 88, 0.38), 0 0 18px rgba(255, 98, 88, 0.24);
}

.yard-lane-cells a > span {
  margin-top: -2px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.64);
}

.yard-lane-cells a > b {
  right: 4px;
  bottom: 6px;
  z-index: 2;
  color: #fff;
  font-size: 7px;
}

.yard-lane-cells a > small {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  color: rgba(210, 222, 232, 0.58);
  font-size: 6px;
  font-weight: 800;
  text-align: center;
}

body.theme-light .yard-lanes-board {
  background: #edf3f6;
}

body.theme-light .yard-lanes-board > .yard-lanes-summary,
body.theme-light .yard-lane-label {
  background: rgba(248, 251, 253, 0.94);
}

body.theme-light .yard-lanes-summary h2,
body.theme-light .yard-lane-label strong,
body.theme-light .yard-lanes-occupancy small {
  color: #101b24;
}

body.theme-light .yard-lanes-list {
  background:
    linear-gradient(90deg, rgba(25, 48, 62, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(25, 48, 62, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    #dce6eb;
}

body.theme-light .yard-lane-track {
  background:
    linear-gradient(90deg, rgba(25, 48, 62, 0.025) 50%, transparent 50%) 0 0 / 90px 100%,
    rgba(216, 226, 231, 0.90);
}

body.theme-light .yard-lane-cells a > small {
  color: rgba(25, 48, 62, 0.56);
}

@media (max-width: 1180px) {
  .yard-lanes-detail {
    padding-right: 10px;
    padding-left: 10px;
  }

  .yard-lane {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .yard-lane-label {
    padding-right: 10px;
    padding-left: 10px;
  }

  .yard-lane-cells {
    gap: 5px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .yard-lane-cells a {
    min-height: 56px;
  }
}

@media (max-width: 860px) {
  .yard-lanes-nav {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .yard-lanes-nav > a {
    justify-self: start;
  }

  .yard-lanes-board > .yard-lanes-summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 16px;
  }

  .yard-lanes-summary h2 {
    padding-right: 14px;
  }

  .yard-lanes-summary .map-inline-legend {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
  }

  .yard-lane {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .yard-lane-label {
    grid-template-columns: auto auto minmax(0, 1fr) 24px;
    align-items: center;
    align-content: initial;
    gap: 8px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(210, 222, 232, 0.12);
  }

  .yard-lane-label small {
    display: none;
  }

  .yard-lane-label em {
    position: static;
    transform: none;
    font-size: 18px;
  }

  .yard-lane-label > i {
    position: static;
    justify-self: end;
  }

  .yard-lane-track {
    overflow-x: auto;
    padding-right: 8px;
    padding-left: 8px;
    scrollbar-width: thin;
  }

  .yard-lane-cells {
    grid-template-columns: repeat(var(--bay-count), 60px);
    width: max-content;
    min-width: 100%;
    gap: 7px;
  }

  .yard-lane-cells a {
    min-height: 60px;
  }
}

@media (max-width: 520px) {
  .yard-lanes-detail {
    padding: 7px;
  }

  .yard-lanes-board > .yard-lanes-summary {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .yard-lanes-summary h2 {
    padding-right: 0;
    border-right: 0;
  }

  .yard-lanes-occupancy {
    justify-content: space-between;
  }

  .yard-lanes-summary .map-inline-legend {
    flex-wrap: nowrap;
  }

  .yard-lane-cells {
    grid-template-columns: repeat(var(--bay-count), 56px);
  }

  .yard-lane-cells a {
    min-height: 58px;
  }
}

.train-week-day.today,
.train-week-day.selected {
  border-color: rgba(220, 236, 245, 0.22) !important;
  background: rgba(11, 17, 24, 0.70) !important;
  box-shadow: inset 0 0 0 1px rgba(220, 236, 245, 0.07) !important;
}

.train-week-day.today > header strong,
.train-week-day.selected > header strong {
  color: #fff !important;
}

.train-week-day.today > header span,
.train-week-day.selected > header span {
  color: rgba(235, 245, 250, 0.74) !important;
}

.train-plan-create-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px;
}

.train-plan-controls .train-plan-form-drawer:not([open]) {
  width: fit-content;
  min-width: 0;
}

.train-plan-controls .train-plan-form-drawer:not([open]) summary {
  min-width: 112px;
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(50, 230, 120, 0.38);
  background: rgba(50, 230, 120, 0.16);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(50, 230, 120, 0.12);
  font-size: 12px;
}

.train-plan-controls .train-plan-form-drawer:not([open]) summary:hover {
  border-color: rgba(50, 230, 120, 0.62);
  background: rgba(50, 230, 120, 0.22);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(50, 230, 120, 0.24);
}

.train-plan-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.train-plan-field span {
  color: rgba(235, 245, 250, 0.70);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.train-plan-create-form .train-plan-field input,
.train-plan-create-form .train-plan-field select,
.train-plan-create-form .train-plan-field textarea {
  min-height: 44px;
  border-color: rgba(210, 222, 232, 0.16);
  background: rgba(6, 12, 18, 0.72);
  font-size: 13px;
  font-weight: 950;
}

.train-plan-create-form .train-plan-field select {
  color-scheme: dark;
}

.train-plan-create-form .train-plan-field select option {
  color: #edf6fb;
  background: #0b131c;
}

.train-plan-create-form .train-plan-field input[readonly] {
  border-color: rgba(50, 230, 120, 0.22);
  background: rgba(50, 230, 120, 0.08);
  color: rgba(235, 255, 242, 0.90);
}

.train-plan-create-form .train-plan-field input.is-editable {
  border-color: rgba(72, 168, 255, 0.34);
  background: rgba(8, 18, 28, 0.84);
  color: #fff;
}

.train-plan-field-alias,
.train-plan-field-id {
  grid-column: span 2;
}

.train-plan-field-wide,
.train-plan-schedule-field,
.train-plan-repeat-field,
.train-plan-note-field {
  grid-column: 1 / -1;
}

.train-plan-create-form .train-plan-field-wide textarea {
  min-height: 82px;
}

.train-plan-schedule-field,
.train-plan-repeat-field {
  align-content: start;
}

.train-plan-repeat-list {
  display: grid;
  gap: 8px;
}

.train-plan-date-row,
.train-plan-repeat-row {
  display: grid;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.train-plan-date-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(92px, 0.62fr) minmax(104px, 0.68fr) minmax(190px, 1.5fr) 30px;
}

.train-plan-repeat-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(92px, 0.62fr) minmax(104px, 0.68fr) minmax(190px, 1.5fr) 30px;
}

.train-plan-date-row > input,
.train-plan-date-row > select,
.train-plan-repeat-row > input,
.train-plan-repeat-row > select {
  min-width: 0;
  width: 100%;
}

.train-plan-date-row-spacer {
  width: 28px;
  min-width: 28px;
  height: 28px;
}

.train-plan-create-form .train-plan-repeat-row button {
  display: inline-flex;
  grid-column: auto !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  align-self: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(235, 245, 250, 0.76);
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.train-plan-create-form .train-plan-repeat-row button i {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.train-plan-create-form .train-plan-repeat-row button:hover {
  border-color: rgba(210, 222, 232, 0.36);
  color: rgba(245, 248, 250, 0.94);
  background: rgba(210, 222, 232, 0.11);
  box-shadow:
    0 0 0 2px rgba(210, 222, 232, 0.10),
    0 0 18px rgba(210, 222, 232, 0.24);
}

.train-plan-add-date:hover {
  border-color: rgba(50, 230, 120, 0.44);
  color: #fff;
  box-shadow: 0 0 18px rgba(50, 230, 120, 0.20);
}

.train-plan-add-date {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border-color: rgba(50, 230, 120, 0.24);
  background: rgba(50, 230, 120, 0.10);
  color: rgba(235, 255, 242, 0.86);
  font-size: 12px;
}

.train-plan-create-form > button[type="submit"] {
  justify-self: start;
  min-width: 176px;
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(50, 230, 120, 0.34);
  background: rgba(50, 230, 120, 0.14);
  color: rgba(235, 255, 242, 0.94);
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.train-plan-create-form > button[type="submit"]:hover {
  border-color: rgba(50, 230, 120, 0.62);
  background: rgba(50, 230, 120, 0.22);
  box-shadow:
    0 0 0 1px rgba(50, 230, 120, 0.12),
    0 0 22px rgba(50, 230, 120, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .train-plan-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .train-plan-create-form,
  .train-plan-field-alias,
  .train-plan-field-id,
  .train-plan-field-wide {
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
  }

  .train-plan-date-row,
  .train-plan-repeat-row {
    grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.7fr);
  }

  .train-plan-date-row input[name="units"] {
    grid-column: auto;
  }

  .train-plan-date-row input[name="note"],
  .train-plan-repeat-row input[name="extra_notes"] {
    grid-column: 1 / -1;
  }

  .train-plan-create-form .train-plan-repeat-row button {
    grid-column: 2 !important;
    justify-self: end;
  }

  .train-plan-date-row-spacer {
    display: none;
  }
}

body.theme-light .train-plan-create-form .train-plan-field select {
  color-scheme: light;
}

body.theme-light .train-plan-create-form .train-plan-field select option {
  color: #202020;
  background: #ffffff;
}

.train-track-capacity {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(50, 230, 120, 0.22);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 18, 25, 0.96), rgba(7, 14, 20, 0.88));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.20);
}

.train-track-capacity.tone-warning {
  border-color: rgba(255, 184, 77, 0.52);
  box-shadow: 0 0 28px rgba(255, 184, 77, 0.10);
}

.train-track-capacity.tone-danger {
  border-color: rgba(255, 92, 92, 0.58);
  box-shadow: 0 0 32px rgba(255, 92, 92, 0.14);
}

.train-track-capacity > summary,
.train-track-capacity-title,
.train-track-capacity-meta,
.train-track-capacity-summary-peak {
  display: flex;
  align-items: center;
}

.train-track-capacity > summary {
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 9px 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.train-track-capacity > summary::-webkit-details-marker {
  display: none;
}

.train-track-capacity[open] > summary {
  border-bottom: 1px solid rgba(210, 222, 232, 0.09);
}

.train-track-capacity-body {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
}

.train-track-capacity-title {
  gap: 10px;
}

.train-track-capacity-title > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #65ef9c;
  background: rgba(50, 230, 120, 0.12);
  font-size: 21px;
}

.train-track-capacity.tone-warning .train-track-capacity-title > i {
  color: #ffc36e;
  background: rgba(255, 184, 77, 0.13);
}

.train-track-capacity.tone-danger .train-track-capacity-title > i {
  color: #ff8585;
  background: rgba(255, 92, 92, 0.14);
}

.train-track-capacity-title > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.train-track-capacity-title strong {
  color: #f3fbff;
  font-size: 15px;
  white-space: nowrap;
}

.train-track-capacity-work-badge {
  padding: 3px 6px;
  border: 1px solid rgba(72, 168, 255, 0.25);
  border-radius: 999px;
  color: #a9d4ff;
  background: rgba(72, 168, 255, 0.09);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.train-track-capacity-summary-peak {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: rgba(226, 237, 244, 0.62);
  font-size: 11px;
  white-space: nowrap;
}

.train-track-capacity-summary-peak em {
  font-style: normal;
}

.train-track-capacity-summary-peak strong {
  color: #f5fbff;
  font-size: 15px;
  line-height: 1;
}

.train-track-capacity-summary-peak > i {
  color: rgba(226, 237, 244, 0.52);
  font-size: 16px;
  transition: transform 160ms ease;
}

.train-track-capacity[open] .train-track-capacity-summary-peak > i {
  transform: rotate(180deg);
}

.train-track-capacity-meta {
  flex-wrap: wrap;
  gap: 7px;
}

.train-track-capacity-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(210, 222, 232, 0.11);
  border-radius: 7px;
  color: rgba(226, 237, 244, 0.72);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 850;
}

.train-track-capacity-meta .reserved {
  border-color: rgba(72, 168, 255, 0.26);
  color: #b9dcff;
  background: rgba(72, 168, 255, 0.08);
}

.train-track-capacity-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.train-track-capacity-days article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  padding: 9px;
  border: 1px solid rgba(210, 222, 232, 0.10);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.train-track-capacity-days article.tone-warning {
  border-color: rgba(255, 184, 77, 0.36);
  background: rgba(255, 184, 77, 0.07);
}

.train-track-capacity-days article.tone-danger {
  border-color: rgba(255, 92, 92, 0.42);
  background: rgba(255, 92, 92, 0.08);
}

.train-track-capacity-days article > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.train-track-capacity-days article > div:first-child strong,
.train-track-capacity-days article > strong {
  color: #f1f8fc;
  font-size: 11px;
}

.train-track-capacity-days article > div:first-child span,
.train-track-capacity-days article > small {
  color: rgba(226, 237, 244, 0.52);
  font-size: 9px;
}

.train-track-capacity-days article > small {
  text-align: right;
}

.train-track-capacity-bar {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.train-track-capacity-bar i {
  display: block;
  width: var(--track-use, 0%);
  height: 100%;
  border-radius: inherit;
  background: #3de184;
}

.train-track-capacity-days .tone-warning .train-track-capacity-bar i {
  background: #ffb84d;
}

.train-track-capacity-days .tone-danger .train-track-capacity-bar i {
  background: #ff6464;
}

.train-track-capacity-alerts {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 184, 77, 0.22);
  border-radius: 9px;
  background: rgba(255, 184, 77, 0.055);
}

.train-track-capacity-alerts > strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd495;
  font-size: 11px;
}

.train-track-capacity-alerts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.train-track-capacity-alerts span {
  padding: 5px 7px;
  border-radius: 7px;
  color: rgba(255, 241, 218, 0.86);
  background: rgba(255, 184, 77, 0.09);
  font-size: 10px;
}

.train-track-capacity-alerts span.tone-danger {
  color: #ffdada;
  background: rgba(255, 92, 92, 0.13);
}

.train-track-capacity-alerts b {
  margin-right: 5px;
  color: #fff;
}

.train-track-capacity footer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgba(226, 237, 244, 0.54);
  font-size: 10px;
}

body.theme-light .train-track-capacity {
  border-color: rgba(24, 164, 86, 0.20);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.theme-light .train-track-capacity.tone-warning {
  border-color: rgba(217, 135, 24, 0.38);
}

body.theme-light .train-track-capacity.tone-danger {
  border-color: rgba(210, 62, 62, 0.42);
}

body.theme-light .train-track-capacity-title strong,
body.theme-light .train-track-capacity-summary-peak strong,
body.theme-light .train-track-capacity-days article > div:first-child strong,
body.theme-light .train-track-capacity-days article > strong {
  color: #14212b;
}

body.theme-light .train-track-capacity-title span,
body.theme-light .train-track-capacity-summary-peak,
body.theme-light .train-track-capacity-days article > div:first-child span,
body.theme-light .train-track-capacity-days article > small,
body.theme-light .train-track-capacity footer {
  color: rgba(20, 33, 43, 0.58);
}

body.theme-light .train-track-capacity-work-badge {
  border-color: rgba(36, 116, 190, 0.22);
  color: #28699f;
  background: rgba(72, 168, 255, 0.08);
}

body.theme-light .train-track-capacity-meta span,
body.theme-light .train-track-capacity-days article {
  border-color: rgba(25, 48, 62, 0.12);
  color: rgba(20, 33, 43, 0.72);
  background: rgba(15, 23, 42, 0.025);
}

@media (max-width: 640px) {
  .train-track-capacity > summary {
    gap: 7px;
    padding-inline: 10px;
  }

  .train-track-capacity-title {
    gap: 7px;
  }

  .train-track-capacity-title > i {
    width: 34px;
    height: 34px;
  }

  .train-track-capacity-summary-peak {
    gap: 5px;
  }

  .train-track-capacity-summary-peak em {
    display: none;
  }

  .train-track-capacity-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.train-plan-upload {
  grid-column: 1 / -1;
}

.train-plan-upload > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.train-plan-upload label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px dashed rgba(72, 168, 255, 0.42);
  border-radius: 12px;
  background: rgba(72, 168, 255, 0.07);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.train-plan-upload label > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(72, 168, 255, 0.15);
  color: #76bcff;
  font-size: 20px;
}

.train-plan-upload label span {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.train-plan-upload label strong {
  color: #f2f8fc;
  font-size: 13px;
}

.train-plan-upload label small {
  color: rgba(226, 237, 244, 0.62);
  font-size: 11px;
}

.train-plan-upload label em {
  padding: 7px 10px;
  border: 1px solid rgba(72, 168, 255, 0.32);
  border-radius: 8px;
  color: #dceeff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.train-plan-upload label:hover,
.train-plan-upload label.is-drag-over {
  border-color: rgba(72, 168, 255, 0.82);
  background: rgba(72, 168, 255, 0.14);
  box-shadow: 0 0 24px rgba(72, 168, 255, 0.16);
}

.train-plan-upload.is-loading label {
  opacity: 0.68;
  pointer-events: none;
}

.train-plan-import-review {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(50, 230, 120, 0.24);
  border-radius: 12px;
  background: rgba(7, 15, 21, 0.88);
}

.train-plan-import-review > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #ecfff3;
  cursor: pointer;
  list-style: none;
}

.train-plan-import-review > summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
}

.train-plan-import-review > summary small {
  overflow: hidden;
  color: rgba(226, 237, 244, 0.58);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.train-plan-import-review form {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.train-plan-import-table-wrap {
  overflow-x: auto;
}

.train-plan-import-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.train-plan-import-table th,
.train-plan-import-table td {
  padding: 8px;
  border-top: 1px solid rgba(210, 222, 232, 0.10);
  text-align: left;
  vertical-align: middle;
}

.train-plan-import-table th {
  color: rgba(226, 237, 244, 0.58);
  font-size: 10px;
  text-transform: uppercase;
}

.train-plan-import-table td input[type="text"],
.train-plan-import-table td input[type="date"],
.train-plan-import-table td input[type="time"],
.train-plan-import-table td input[type="number"] {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 7px;
  background: rgba(4, 10, 15, 0.78);
  color: #f2f8fc;
}

.train-plan-import-table td:nth-child(2) input {
  width: 58px;
  margin-left: 7px;
}

.train-plan-import-table td:nth-child(7) input {
  width: 100%;
  min-width: 220px;
}

.train-plan-import-table tr.has-warning td {
  background: rgba(255, 184, 77, 0.045);
}

.train-plan-import-table tr.is-excluded {
  opacity: 0.42;
}

.train-plan-import-table td small {
  display: block;
  margin-top: 3px;
  color: #ffc06a;
  font-size: 10px;
}

.train-plan-import-review form > button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(50, 230, 120, 0.38);
  border-radius: 9px;
  background: rgba(50, 230, 120, 0.15);
  color: #ecfff3;
  font-weight: 950;
  cursor: pointer;
}

@media (max-width: 640px) {
  .train-plan-upload label em {
    display: none;
  }

  .train-plan-import-review > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.train-week-day-list .train-ops-card.tone-problem,
.train-week-day-list .train-ops-card.tone-problem.equipment-trailer,
.train-week-day-list .train-ops-card.tone-problem.equipment-container {
  border-color: rgba(255, 91, 91, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(255, 91, 91, 0.28), rgba(35, 13, 17, 0.94) 58%),
    rgba(20, 9, 12, 0.94) !important;
}

.train-week-day-list .train-ops-card.tone-problem::after {
  background: var(--red) !important;
  box-shadow: 0 0 16px rgba(255, 91, 91, 0.46) !important;
}

.train-week-day-list .train-ops-card.tone-problem strong > span:last-child {
  color: rgba(255, 235, 235, 0.88) !important;
  text-decoration-line: line-through !important;
  text-decoration-color: rgba(255, 91, 91, 0.98) !important;
  text-decoration-thickness: 2px !important;
}

.train-week-day-list .train-ops-card.tone-problem .train-card-watermark {
  color: var(--red) !important;
}

/* Dashboard-only light theme pass. Keep every other application view unchanged. */
body.theme-light:has(.page-dashboard) {
  --green: #16834a;
  --green-dark: #11683b;
  --blue: #176aa6;
  --amber: #9a6800;
  --purple: #684ea0;
  --red: #bd3e39;
  --bg: #ececec;
  --panel: #ffffff;
  --panel-soft: #f4f7f8;
  --line: rgba(28, 46, 58, 0.16);
  --text: #17242d;
  --muted: #5b6b76;
  background: #ececec;
  color: var(--text);
  color-scheme: light;
}

body.theme-light:has(.page-dashboard) .app-main {
  background: #ececec;
}

body.theme-light:has(.page-dashboard) .page-dashboard {
  background: #ececec;
}

body.theme-light:has(.page-dashboard) .sidebar {
  border-right-color: #c9c9c9;
  background: #f7f7f7;
}

body.theme-light:has(.page-dashboard) .sidebar-photo {
  display: none;
}

body.theme-light .brand img {
  width: 150px;
  max-width: 150px;
  filter: brightness(0.72) contrast(1.45) saturate(1.12);
}

body.theme-light .brand {
  justify-content: center;
  border-bottom: 1px solid #d0d0d0;
  background: #ffffff;
}

body.theme-light:has(.page-dashboard) .nav-link {
  color: #303030;
}

body.theme-light:has(.page-dashboard) .nav-link:hover {
  color: #101010;
  background: #e9e9e9;
}

body.theme-light:has(.page-dashboard) .nav-link.active {
  color: #123822;
  background: #e2f1e8;
  box-shadow: inset -4px 0 0 #16834a;
}

body.theme-light:has(.page-dashboard) .nav-icon {
  border-color: #aeb7bc;
  background: #ffffff;
  color: #4f5e67;
}

body.theme-light:has(.page-dashboard) .nav-link.active .nav-icon {
  border-color: #16834a;
  background: #f5fbf7;
  color: #11683b;
}

body.theme-light:has(.page-dashboard) .sidebar-footer {
  color: #11683b;
}

body.theme-light:has(.page-dashboard) .sidebar-footer span {
  color: #5e6b72;
}

body.theme-light:has(.page-dashboard) .topbar,
body.theme-light:has(.page-dashboard) .statusbar {
  border-color: #c9c9c9;
  background: #f7f7f7;
  color: #202020;
  box-shadow: none;
}

body.theme-light:has(.page-dashboard) .weather-pill,
body.theme-light:has(.page-dashboard) .profile-pill,
body.theme-light:has(.page-dashboard) .notification-wrap {
  border-color: #cccccc;
  color: #202020;
  background: transparent;
}

body.theme-light:has(.page-dashboard) .weather-pill i,
body.theme-light:has(.page-dashboard) .profile-pill i,
body.theme-light:has(.page-dashboard) .notification-wrap i {
  color: #4c5961;
}

body.theme-light:has(.page-dashboard) .weather-pill small,
body.theme-light:has(.page-dashboard) .profile-pill small,
body.theme-light:has(.page-dashboard) .weather-pill [data-weather-wind] {
  color: #60727e;
}

body.theme-light:has(.page-dashboard) .admin-log-pill {
  border-color: rgba(22, 131, 74, 0.28);
  background: rgba(22, 131, 74, 0.08);
  color: #11683b;
}

body.theme-light:has(.page-dashboard) .page-dashboard .metric-card,
body.theme-light:has(.page-dashboard) .page-dashboard .panel {
  border-color: #c8c8c8;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.theme-light:has(.page-dashboard) .page-dashboard .metric-card {
  border-top: 3px solid color-mix(in srgb, currentColor 78%, #ffffff);
}

body.theme-light:has(.page-dashboard) .page-dashboard .metric-icon {
  border-color: color-mix(in srgb, currentColor 48%, #c9d3d9);
  background: color-mix(in srgb, currentColor 10%, #ffffff);
}

body.theme-light:has(.page-dashboard) .page-dashboard .metric-card strong {
  color: currentColor;
}

body.theme-light:has(.page-dashboard) .page-dashboard .metric-card span {
  color: #263640;
}

body.theme-light:has(.page-dashboard) .page-dashboard .metric-card small {
  color: color-mix(in srgb, currentColor 82%, #465762);
}

body.theme-light:has(.page-dashboard) .page-dashboard .panel-header h2 {
  color: #1d2b34;
}

body.theme-light:has(.page-dashboard) .page-dashboard .panel-action-link {
  border-color: #bdbdbd;
  background: #f2f2f2;
  color: #252525;
}

body.theme-light:has(.page-dashboard) .page-dashboard .panel-action-link:hover {
  border-color: rgba(22, 131, 74, 0.36);
  background: rgba(22, 131, 74, 0.08);
  color: #11683b;
}

body.theme-light:has(.page-dashboard) .page-dashboard .panel-action-link.highlight {
  border-color: rgba(22, 131, 74, 0.38);
  background: rgba(22, 131, 74, 0.11);
  color: #11683b;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap {
  overflow: hidden;
  border: 1px solid #c8c8c8;
  background: #ffffff;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap .terminal-table {
  color: #22313a;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap .terminal-table thead th {
  border-color: #c5c5c5;
  background: #ededed;
  color: #3f3f3f;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap .terminal-table tbody td {
  border-color: #d4d4d4;
  color: #242424;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap .terminal-table tbody tr:nth-child(even) td {
  background: #f6f6f6;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap .terminal-table tbody tr:hover td {
  background: #e8f3ec;
}

body.theme-light:has(.page-dashboard) .dashboard-train-table-wrap .terminal-table td a {
  color: #145f3a;
}

body.theme-light:has(.page-dashboard) .page-dashboard .status-text.tone-planned {
  color: #176aa6;
}

body.theme-light:has(.page-dashboard) .page-dashboard .status-text.tone-warning {
  color: #8b5d00;
}

body.theme-light:has(.page-dashboard) .page-dashboard .status-text.tone-problem {
  color: #b3322e;
}

body.theme-light:has(.page-dashboard) .page-dashboard .bar-chart {
  border-color: #cccccc;
  background:
    repeating-linear-gradient(to top, transparent 0 40px, rgba(38, 59, 71, 0.07) 40px 41px);
}

body.theme-light:has(.page-dashboard) .page-dashboard .bar-chart span {
  background: #2d9a5c;
  box-shadow: inset 0 -12px 0 rgba(15, 92, 48, 0.18);
}

body.theme-light:has(.page-dashboard) .page-dashboard .bar-chart span:nth-child(even) {
  background: #2479b5;
  box-shadow: inset 0 -12px 0 rgba(18, 73, 115, 0.18);
}

body.theme-light:has(.page-dashboard) .page-dashboard .bar-chart span strong {
  color: #24333c;
}

body.theme-light:has(.page-dashboard) .page-dashboard .bar-chart span small {
  color: #596b76;
}

body.theme-light:has(.page-dashboard) .page-dashboard .stock-donut {
  background:
    radial-gradient(circle, #ffffff 0 46%, transparent 47%),
    conic-gradient(
      var(--green) 0 calc(var(--p1) * 1%),
      var(--blue) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
      var(--amber) calc((var(--p1) + var(--p2)) * 1%) calc((var(--p1) + var(--p2) + var(--p3)) * 1%),
      var(--purple) calc((var(--p1) + var(--p2) + var(--p3)) * 1%) calc((var(--p1) + var(--p2) + var(--p3) + var(--p4)) * 1%),
      #84939c 0 100%
    );
  box-shadow: inset 0 0 0 1px #c8c8c8;
}

body.theme-light:has(.page-dashboard) .page-dashboard .stock-donut div {
  background-color: #ffffff;
}

body.theme-light:has(.page-dashboard) .page-dashboard .stock-donut div {
  border: 1px solid #cdcdcd;
}

body.theme-light:has(.page-dashboard) .page-dashboard .stock-donut strong,
body.theme-light:has(.page-dashboard) .page-dashboard .stock-state-row strong {
  color: #1c2a33;
}

body.theme-light:has(.page-dashboard) .page-dashboard .stock-donut span,
body.theme-light:has(.page-dashboard) .page-dashboard .stock-state-row small {
  color: #60717c;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-month-row > strong,
body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day {
  color: #263640;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-grid > span[role="columnheader"] {
  color: #637581;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day:hover {
  border-color: #bbc8cf;
  background: #eef3f5;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.weekend:not(.today) {
  color: #825700;
  background: #fff7e3;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.has-trains:not(.today) {
  border-color: rgba(23, 106, 166, 0.42);
  background: #edf6fc;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.today {
  border-color: #11683b;
  background: #16834a;
  color: #ffffff;
}

body.theme-light:has(.page-dashboard) .page-dashboard .activity-list li {
  border-color: #d6d6d6;
}

body.theme-light:has(.page-dashboard) .page-dashboard .activity-list li > i {
  background: color-mix(in srgb, currentColor 9%, #ffffff);
}

body.theme-light:has(.page-dashboard) .page-dashboard .activity-list li strong {
  color: #24343e;
}

body.theme-light:has(.page-dashboard) .page-dashboard .activity-list li small,
body.theme-light:has(.page-dashboard) .page-dashboard .activity-list li > span {
  color: #60717c;
}

body.theme-light:has(.page-dashboard) .page-dashboard .alert-list .tone-red strong {
  color: #a72f2b;
}

body.theme-light:has(.page-dashboard) .page-dashboard .alert-list .tone-amber strong {
  color: #805600;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-preview {
  border-color: #bfbfbf;
  background:
    linear-gradient(90deg, rgba(39, 66, 82, 0.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(39, 66, 82, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    #ededed;
  box-shadow: inset 0 1px 0 #ffffff;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-rails {
  border-color: #bfbfbf;
  background: #fafafa;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-rails b {
  color: #4d606c;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-rails i,
body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-rails i::before {
  border-color: #7e909b;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-rails strong {
  border-color: rgba(22, 131, 74, 0.26);
  background: #dff2e7;
  color: #145f3a;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stage {
  border-color: #b5b5b5;
  background:
    linear-gradient(90deg, rgba(39, 66, 82, 0.065) 0 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(39, 66, 82, 0.05) 0 1px, transparent 1px) 0 0 / 42px 42px,
    #e5e5e5;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-blueprint .dashboard-yard-section {
  border-color: #999999;
  background: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-section span,
body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-map-services span {
  color: #23343e;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-blueprint .dashboard-yard-stack {
  border-color: #bdbdbd;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(39, 66, 82, 0.14) 48% 49%, transparent 49%),
    #e8e8e8;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-stack b {
  border-color: #627682;
  background: #ffffff;
  color: #20313a;
  box-shadow: 0 4px 10px rgba(37, 57, 69, 0.14);
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-road {
  border-color: #b8b8b8;
  background: #dedede;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-road span {
  border-color: #aebdc5;
  background: #ffffff;
  color: #354955;
}

body.theme-light:has(.page-dashboard) .page-dashboard .dashboard-yard-blueprint .dashboard-yard-service {
  border-color: #b7b7b7;
  background: #ffffff;
}

body.theme-light:has(.page-dashboard) .profile-menu-panel {
  border-color: #bfbfbf;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body.theme-light:has(.page-dashboard) .profile-switch-menu button,
body.theme-light:has(.page-dashboard) .profile-menu-action button,
body.theme-light:has(.page-dashboard) .profile-menu-logout {
  color: #24343e;
}

@media (max-width: 760px) and (orientation: portrait) {
  body.theme-light:has(.page-dashboard) .sidebar {
    border-bottom-color: #c9c9c9;
    background: #f7f7f7;
  }

  body.theme-light:has(.page-dashboard) .nav-link {
    border-color: #c9c9c9;
    background: #f1f1f1;
    color: #303030;
  }

  body.theme-light:has(.page-dashboard) .nav-link:hover,
  body.theme-light:has(.page-dashboard) .nav-link.active {
    color: #123822;
    background: #e2f1e8;
  }
}

/* Windows-style interaction polish: neutral chrome, clear hover, no visual jumps. */
body.theme-light:not(.login-page) {
  --selection-bg: #dbeef8;
  --selection-bg-strong: #c9e5f4;
  --selection-border: #0f6cbd;
  --selection-ring: 0 0 0 2px rgba(15, 108, 189, 0.20);
}

body.theme-light:not(.login-page) .page-content :where(
  .panel,
  .metric-card,
  [class$="-panel"],
  [class*="-panel "],
  [class$="-card"],
  [class*="-card "],
  [class$="-dialog"],
  [class*="-dialog "],
  [class$="-window"],
  [class*="-window "],
  [class$="-popover"],
  [class*="-popover "]
) {
  border-color: #c6c6c6;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.theme-light:not(.login-page) .page-content .metric-card {
  border: 1px solid #c6c6c6;
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .metric-card strong,
body.theme-light:not(.login-page) .page-content .metric-card span,
body.theme-light:not(.login-page) .page-content .metric-card small {
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .metric-card small {
  color: #626262;
}

body.theme-light:not(.login-page) .page-content .metric-card .metric-icon {
  border-color: #bcbcbc;
  background: #f2f2f2;
}

body.theme-light:not(.login-page) .page-content .metric-card.tone-green .metric-icon,
body.theme-light:not(.login-page) .page-content .metric-card.tone-green .metric-icon i {
  color: #16834a;
}

body.theme-light:not(.login-page) .page-content .metric-card.tone-blue .metric-icon,
body.theme-light:not(.login-page) .page-content .metric-card.tone-blue .metric-icon i {
  color: #176aa6;
}

body.theme-light:not(.login-page) .page-content .metric-card.tone-amber .metric-icon,
body.theme-light:not(.login-page) .page-content .metric-card.tone-amber .metric-icon i {
  color: #8a5d00;
}

body.theme-light:not(.login-page) .page-content .metric-card.tone-purple .metric-icon,
body.theme-light:not(.login-page) .page-content .metric-card.tone-purple .metric-icon i {
  color: #684ea0;
}

body.theme-light:not(.login-page) .page-content :where(
  button,
  summary,
  .panel-action-link,
  .logout-button,
  .file-pick,
  [role="tab"],
  [class$="-button"],
  [class*="-button "]
) {
  border-color: #b8b8b8;
  background: #f3f3f3;
  color: #242424;
  box-shadow: none;
  text-shadow: none;
  transition: background-color 90ms ease, border-color 90ms ease, color 90ms ease;
}

body.theme-light:not(.login-page) .page-content :where(
  button,
  summary,
  .panel-action-link,
  .logout-button,
  .file-pick,
  [role="tab"],
  [class$="-button"],
  [class*="-button "]
):hover {
  border-color: #858585;
  background: #e5e5e5;
  color: #101010;
  box-shadow: none;
  filter: none;
  transform: none;
}

body.theme-light:not(.login-page) .page-content :where(
  button,
  summary,
  .panel-action-link,
  [role="tab"],
  [class$="-button"],
  [class*="-button "]
):active {
  border-color: #6f6f6f;
  background: #d8d8d8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.10);
  transform: none;
}

body.theme-light:not(.login-page) .page-content :where(
  .export-primary-button,
  .settings-source-paste-submit,
  .attendance-modal-save,
  .distribution-preview-print,
  button[type="submit"].primary
) {
  border-color: #11683b;
  background: #16834a;
  color: #ffffff;
}

body.theme-light:not(.login-page) .page-content :where(
  .export-primary-button,
  .settings-source-paste-submit,
  .attendance-modal-save,
  .distribution-preview-print,
  button[type="submit"].primary
):hover {
  border-color: #0d522e;
  background: #11683b;
  color: #ffffff;
  box-shadow: none;
  filter: none;
  transform: none;
}

body.theme-light:not(.login-page) .page-content :where(
  input,
  select,
  textarea
) {
  border-color: #b8b8b8;
  background: #ffffff;
  color: #202020;
  box-shadow: none;
  transition: border-color 90ms ease, box-shadow 90ms ease;
}

body.theme-light:not(.login-page) .page-content :where(input, select, textarea):hover {
  border-color: #858585;
}

body.theme-light:not(.login-page) .page-content :where(input, select, textarea):focus {
  border-color: #0f6cbd;
  outline: 1px solid #0f6cbd;
  outline-offset: 0;
  box-shadow: none;
}

body.theme-light:not(.login-page) .page-content :where(
  .nav-tabs a,
  .vacation-tabs a,
  .report-source-switch a,
  .train-plan-view-switch a,
  .mode-button,
  [role="tab"]
) {
  border-color: #bdbdbd;
  background: #f2f2f2;
  color: #303030;
}

body.theme-light:not(.login-page) .page-content :where(
  .nav-tabs a,
  .vacation-tabs a,
  .report-source-switch a,
  .train-plan-view-switch a,
  .mode-button,
  [role="tab"]
):hover {
  border-color: #858585;
  background: #e5e5e5;
  color: #101010;
}

body.theme-light:not(.login-page) .page-content :where(
  .nav-tabs a.active,
  .vacation-tabs a.active,
  .report-source-switch a.active,
  .train-plan-view-switch a.active,
  .mode-button.active,
  [role="tab"][aria-selected="true"]
) {
  border-color: #0f6cbd;
  background: #dbeef8;
  color: #103f62;
  box-shadow: inset 0 -2px 0 #0f6cbd;
}

body.theme-light:not(.login-page) .page-content :where(
  .train-plan-card,
  .train-ops-card,
  .train-timeline-row,
  .train-week-day,
  .export-train-tile,
  .export-list-card,
  .employee-category-card,
  .employee-list a,
  .dalsi-category-card,
  .dalsi-planning-card,
  .dalsi-timesheet-pick-card,
  .predavka-train-card,
  .map-section-card,
  .map-service-card,
  .admin-day-user,
  .admin-audit-event,
  .calendar-train-list > a
) {
  border-color: #c6c6c6;
  background: #ffffff;
  box-shadow: none;
  transition: background-color 90ms ease, border-color 90ms ease, color 90ms ease;
}

body.theme-light:not(.login-page) .page-content :where(
  .train-plan-card,
  .train-ops-card,
  .train-timeline-row,
  .train-week-day,
  .export-train-tile,
  .export-list-card,
  .employee-category-card,
  .employee-list a,
  .dalsi-category-card,
  .dalsi-planning-card,
  .dalsi-timesheet-pick-card,
  .predavka-train-card,
  .map-section-card,
  .map-service-card,
  .admin-day-user,
  .admin-audit-event,
  .calendar-train-list > a
):hover {
  border-color: #858585;
  background: #e9e9e9;
  box-shadow: none;
  filter: none;
  transform: none;
}

body.theme-light:not(.login-page) .page-content :where(
  .train-plan-card.selected,
  .train-ops-card.selected,
  .train-timeline-row.selected,
  .train-week-day.selected,
  .employee-card.is-selected,
  .predavka-train-card.active,
  .admin-day-user.active,
  .selected-row,
  .is-selected
) {
  border-color: #0f6cbd;
  background: #dbeef8;
  color: #103f62;
  box-shadow: inset 3px 0 0 #0f6cbd;
}

body.theme-light:not(.login-page) .page-content table tbody tr {
  transition: background-color 80ms ease;
}

body.theme-light:not(.login-page) .page-content table tbody tr:hover td {
  background: #e9e9e9;
}

body.theme-light:not(.login-page) .page-content table tbody tr.selected-row td,
body.theme-light:not(.login-page) .page-content table tbody tr.is-selected td {
  background: #dbeef8;
  box-shadow: inset 0 1px 0 #0f6cbd, inset 0 -1px 0 #0f6cbd;
}

body.theme-light:not(.login-page) .page-content :where(
  .settings-source-card,
  .report-upload-card,
  .export-upload-card,
  .attendance-upload
) {
  border-color: #bdbdbd;
  background: #ffffff;
  box-shadow: none;
}

body.theme-light:not(.login-page) .page-content :where(
  .settings-source-card,
  .report-upload-card,
  .export-upload-card,
  .attendance-upload
):hover,
body.theme-light:not(.login-page) .page-content :where(
  .settings-source-card,
  .report-upload-card,
  .export-upload-card,
  .attendance-upload
).is-dragover {
  border-color: #0f6cbd;
  background: #eef6fb;
  box-shadow: none;
  transform: none;
}

body.theme-light:not(.login-page) .page-content :where(
  .report-flow-visual,
  .operation-command-panel,
  .settings-source-card,
  .employee-detail-hero,
  .manager-summary-hero,
  .predavka-shift-strip,
  .map-app-card
) {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.theme-light:not(.login-page) .page-content :where(
  .panel,
  .metric-card,
  [class$="-card"],
  [class*="-card "]
):hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.theme-light:not(.login-page) .notification-wrap span {
  color: #ffffff;
}

body.theme-light:not(.login-page) .statusbar > span:first-child i {
  background: #16834a;
}

body.theme-light:not(.login-page) a,
body.theme-light:not(.login-page) a:hover,
body.theme-light:not(.login-page) a:focus,
body.theme-light:not(.login-page) a:active {
  text-decoration: none !important;
}

body.theme-light:not(.login-page) .page-content .map-section-card {
  position: relative;
  z-index: 1;
  transition: transform 130ms ease, background-color 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
  transform-origin: center;
}

body.theme-light:not(.login-page) .page-content .map-section-card:hover {
  z-index: 3;
  border-color: #16834a;
  background: #eef6f1;
  box-shadow: 0 8px 18px rgba(26, 65, 43, 0.18);
  transform: translateY(-5px) scale(1.02);
}

body.theme-light:not(.login-page) .page-content .map-section-perspective {
  transition: transform 160ms ease, background-color 130ms ease, border-color 130ms ease;
}

body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective {
  border-color: #9eb8a8;
  background-color: #f7fbf8;
  transform: perspective(440px) translateY(-3px) rotateX(6deg) scale(1.01);
}

body.theme-light:not(.login-page) .page-content .map-section-perspective i {
  transition: transform 160ms ease, background-color 130ms ease;
}

body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective i:nth-child(odd) {
  transform: translateY(-2px);
}

body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective i:nth-child(3n) {
  transform: translateY(-4px);
}

body.theme-light:not(.login-page) .page-content .map-section-perspective b {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective b {
  box-shadow: 0 5px 12px rgba(22, 66, 40, 0.18);
  transform: translate(-50%, -50%) rotateX(-6deg) scale(1.08);
}

body.theme-light:not(.login-page) .page-content .map-yard-zone {
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

body.theme-light:not(.login-page) .page-content .map-yard-zone:hover {
  background: #eef6f1;
  box-shadow: inset 0 0 0 2px rgba(22, 131, 74, 0.42);
}

body.theme-light:not(.login-page) .page-content .map-yard-zone.is-focused {
  background: #e3f1e8;
  box-shadow: inset 0 0 0 2px #16834a;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-light:not(.login-page) .page-content .map-section-card,
  body.theme-light:not(.login-page) .page-content .map-section-perspective,
  body.theme-light:not(.login-page) .page-content .map-section-perspective i,
  body.theme-light:not(.login-page) .page-content .map-section-perspective b {
    transition: none;
  }

  body.theme-light:not(.login-page) .page-content .map-section-card:hover,
  body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective i {
    transform: none;
  }

  body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective {
    transform: perspective(440px) rotateX(10deg);
  }

  body.theme-light:not(.login-page) .page-content .map-section-card:hover .map-section-perspective b {
    transform: translate(-50%, -50%) rotateX(-10deg);
  }
}

/* Terminal map: complete light treatment for section and bay details. */
body.theme-light:not(.login-page) .page-content .yard-lanes-board {
  border: 1px solid #b8bec4;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

body.theme-light:not(.login-page) .page-content .yard-lanes-board > .yard-lanes-summary {
  border-bottom-color: #c7ccd1;
  background: #f3f3f3;
}

body.theme-light:not(.login-page) .page-content .yard-lanes-summary h2 {
  border-right-color: #c7ccd1;
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .yard-lanes-occupancy span,
body.theme-light:not(.login-page) .page-content .yard-lanes-occupancy small {
  color: #555f68;
}

body.theme-light:not(.login-page) .page-content .yard-lanes-occupancy strong {
  color: #107c41;
}

body.theme-light:not(.login-page) .page-content .yard-lanes-list {
  background:
    linear-gradient(90deg, rgba(65, 73, 80, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(65, 73, 80, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    #e9edef;
}

body.theme-light:not(.login-page) .page-content .yard-lane {
  border-top-color: #c7ccd1;
}

body.theme-light:not(.login-page) .page-content .yard-lane-label {
  border-right-color: #c7ccd1;
  background: #f8f8f8;
}

body.theme-light:not(.login-page) .page-content .yard-lane-label small {
  color: #737b82;
}

body.theme-light:not(.login-page) .page-content .yard-lane-label strong,
body.theme-light:not(.login-page) .page-content .yard-lane-label em {
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .yard-lane-label span,
body.theme-light:not(.login-page) .page-content .yard-lane-label > i {
  color: #59636b;
}

body.theme-light:not(.login-page) .page-content .yard-lane-track {
  background:
    linear-gradient(90deg, rgba(42, 49, 54, 0.025) 50%, transparent 50%) 0 0 / 96px 100%,
    #dfe4e7;
}

body.theme-light:not(.login-page) .page-content .yard-lane-track::before {
  border-color: #899299;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.62), 0 1px 0 #ffffff;
}

body.theme-light:not(.login-page) .page-content .yard-lane-track::after {
  background: repeating-linear-gradient(90deg, rgba(107, 86, 34, 0.35) 0 11px, transparent 11px 22px);
}

body.theme-light:not(.login-page) .page-content .yard-lane-flow {
  color: #8a701e;
}

body.theme-light:not(.login-page) .page-content .yard-lane-flow span {
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(138, 112, 30, 0.30) 24px 38px);
}

body.theme-light:not(.login-page) .page-content .yard-lane-flow::before,
body.theme-light:not(.login-page) .page-content .yard-lane-flow::after {
  box-shadow: 0 0 0 1px rgba(60, 60, 60, 0.32);
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a {
  --bay-color: #4b775e;
  border-color: color-mix(in srgb, var(--bay-color) 70%, #ffffff);
  color: #202020;
  background: #e5f1e9;
  box-shadow: 2px 3px 0 rgba(74, 82, 88, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a::before {
  border-color: color-mix(in srgb, var(--bay-color) 50%, #ffffff);
  background: color-mix(in srgb, var(--bay-color) 20%, #ffffff);
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a::after {
  background: var(--bay-color);
  box-shadow: none;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a.tone-open {
  --bay-color: #4b775e;
  background: #e5f1e9;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a.tone-active {
  --bay-color: #39759c;
  background: #e1eff8;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a.tone-warning {
  --bay-color: #9a7917;
  background: #fff2c9;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a.tone-danger {
  --bay-color: #a64b47;
  background: #f9e2e0;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a > span,
body.theme-light:not(.login-page) .page-content .yard-lane-cells a > b {
  color: #202020;
  text-shadow: none;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a > small {
  color: #626b72;
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a:hover,
body.theme-light:not(.login-page) .page-content .yard-lane-cells a:focus-visible {
  border-color: #0f6cbd;
  box-shadow: 3px 6px 0 rgba(74, 82, 88, 0.16), 0 0 0 2px rgba(15, 108, 189, 0.24);
}

body.theme-light:not(.login-page) .page-content .yard-lane-cells a.searched {
  border-color: #c42b1c;
  box-shadow: 2px 4px 0 rgba(74, 82, 88, 0.15), 0 0 0 2px rgba(196, 43, 28, 0.25);
}

body.theme-light:not(.login-page) .page-content .bay-original-card {
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .bay-original-grid-panel {
  border-color: #b8bec4;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

body.theme-light:not(.login-page) .page-content .bay-grid-toolbar {
  border-bottom-color: #c7ccd1;
  background: #f7f7f7;
}

body.theme-light:not(.login-page) .page-content .bay-grid-back {
  border-color: #aeb4b9;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

body.theme-light:not(.login-page) .page-content .bay-grid-back:hover,
body.theme-light:not(.login-page) .page-content .bay-grid-back:focus-visible {
  border-color: #0f6cbd;
  color: #0f5f9d;
  background: #eef6fb;
}

body.theme-light:not(.login-page) .page-content .bay-grid-title h2,
body.theme-light:not(.login-page) .page-content .bay-grid-stats strong {
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .bay-grid-title span,
body.theme-light:not(.login-page) .page-content .bay-grid-stats span {
  color: #59636b;
}

body.theme-light:not(.login-page) .page-content .bay-grid-stats > div {
  border-left-color: #c7ccd1;
}

body.theme-light:not(.login-page) .page-content .bay-original-grid-scroll {
  background: #ffffff;
}

body.theme-light:not(.login-page) .page-content .bay-original-row-label,
body.theme-light:not(.login-page) .page-content .bay-original-tier-label {
  border-color: #b5c8d6;
  color: #174f78;
  background: #eaf3f8;
}

body.theme-light:not(.login-page) .page-content .bay-original-row-label.reserve {
  border-color: #d3b65c;
  color: #735900;
  background: #fff5d6;
}

body.theme-light:not(.login-page) .page-content .container-slot:not(.empty) {
  color: #ffffff;
  --container-shadow: rgba(71, 78, 84, 0.22);
}

body.theme-light:not(.login-page) .page-content .container-slot:not(.empty) > span,
body.theme-light:not(.login-page) .page-content .container-slot:not(.empty) > strong,
body.theme-light:not(.login-page) .page-content .container-slot:not(.empty) > small,
body.theme-light:not(.login-page) .page-content .container-slot:not(.empty) > b,
body.theme-light:not(.login-page) .page-content .container-slot:not(.empty) > em {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

body.theme-light:not(.login-page) .page-content .container-slot:not(.empty)::before {
  border-color: color-mix(in srgb, var(--container-front) 70%, #202020);
  box-shadow: 6px 7px 0 var(--container-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.30), inset 0 -8px 12px rgba(0, 0, 0, 0.12);
}

body.theme-light:not(.login-page) .page-content .container-slot:not(.empty)::after {
  border-color: color-mix(in srgb, var(--container-front) 70%, #202020);
}

body.theme-light:not(.login-page) .page-content .container-slot.empty {
  opacity: 1;
}

body.theme-light:not(.login-page) .page-content .container-slot.empty::before {
  border: 2px dashed #9ba4aa;
  background:
    repeating-linear-gradient(90deg, rgba(91, 101, 108, 0.07) 0 1px, transparent 1px 10px),
    linear-gradient(145deg, #f4f6f7, #e3e7e9);
  box-shadow: 5px 6px 0 rgba(71, 78, 84, 0.12), inset 0 1px 0 #ffffff;
}

body.theme-light:not(.login-page) .page-content .container-slot.empty::after {
  border-color: #a7afb4;
  background: linear-gradient(135deg, #f8f9f9, #dce2e5);
}

body.theme-light:not(.login-page) .page-content .bay-container-legend {
  border-top-color: #c7ccd1;
  background: #f7f7f7;
}

body.theme-light:not(.login-page) .page-content .bay-container-legend span {
  color: #202020;
}

body.theme-light:not(.login-page) .page-content .bay-container-legend small {
  color: #59636b;
}

@media (hover: hover) and (pointer: fine) {
  body.theme-light:not(.login-page) .page-content .bay-original-grid:has(.container-slot:not(.empty):hover) .container-slot:not(.empty) {
    opacity: 0.82;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):hover,
  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):focus-visible {
    border-radius: 6px;
    outline-color: #0f6cbd;
    box-shadow: 0 10px 24px rgba(44, 62, 74, 0.24), 0 0 0 4px rgba(15, 108, 189, 0.10);
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover {
    border-color: #8eb5d1;
    color: #202020;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(44, 62, 74, 0.24);
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover > b,
  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover strong {
    color: #202020;
    text-shadow: none;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover > i {
    color: #107c41;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover > small {
    border-top-color: #d5d9dc;
    color: #59636b;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover em {
    color: #59636b;
    text-shadow: none;
  }
}

body.theme-light:not(.login-page) .container-detail-overlay {
  background: rgba(225, 229, 232, 0.78);
}

body.theme-light:not(.login-page) .container-detail-dialog {
  border-color: #aeb4b9;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(44, 62, 74, 0.24);
}

body.theme-light:not(.login-page) .container-detail-dialog header {
  border-bottom-color: #c7ccd1;
  background: #f3f3f3;
}

body.theme-light:not(.login-page) .container-detail-dialog header strong,
body.theme-light:not(.login-page) .container-detail-dialog header span,
body.theme-light:not(.login-page) .container-detail-dialog dt,
body.theme-light:not(.login-page) .container-detail-dialog dd {
  color: #202020;
}

body.theme-light:not(.login-page) .container-detail-dialog dl div {
  border-color: #d1d5d8;
  background: #fafafa;
}

body.theme-light:not(.login-page) .container-detail-close {
  border-color: #aeb4b9;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .container-detail-close:hover {
  border-color: #0f6cbd;
  color: #0f5f9d;
  background: #eef6fb;
}

@media (max-width: 760px) {
  body.theme-light:not(.login-page) .brand {
    justify-content: flex-start;
    height: 58px;
    padding: 8px 10px 8px 12px;
  }

  body.theme-light:not(.login-page) .brand img {
    display: block;
    width: 92px;
    max-width: 92px;
    max-height: 42px;
    object-fit: contain;
  }
}

/* Keep the mobile menu above all legacy responsive navigation rules. */
@media (max-width: 760px) {
  body:not(.login-page) .sidebar {
    overflow: visible;
  }

  body:not(.login-page) .mobile-nav-backdrop {
    inset: 120px 0 0;
  }

  body:not(.login-page) .nav-list {
    top: 136px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    max-height: calc(100svh - 150px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
  }

  body:not(.login-page) .mobile-nav-head {
    position: relative;
    padding-top: 10px;
  }

  body:not(.login-page) .mobile-nav-head::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(210, 222, 232, 0.30);
    transform: translateX(-50%);
  }

  body.theme-light:not(.login-page) .mobile-nav-head::before {
    background: #b2b8bd;
  }

  body:not(.login-page) .nav-list .nav-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    padding: 7px 9px;
  }

  body:not(.login-page).mobile-nav-open .nav-list {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

/* Trains TV board: complete, high-contrast light mode. */
body.theme-light:has(.page-content.page-train_movements) .page-content.page-train_movements {
  background: #e7eaed;
  color: #202020;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-page {
  color: #202020;
  background: #e7eaed;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-board {
  border-color: #b8bec4;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 43, 51, 0.12);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-board-head {
  border-bottom-color: #c7ccd1;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-board-head > div:first-child > span {
  color: #107c41 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-board-head h1 {
  color: #202020 !important;
  text-shadow: none;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-back {
  border-color: #aeb4b9;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-back span {
  color: #202020 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-back:hover,
body.theme-light:has(.page-content.page-train_movements) .train-tv-back:focus-visible {
  border-color: #0f6cbd;
  color: #0f5f9d;
  background: #eef6fb;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-board-head time {
  border-color: #a9b9c3;
  color: #202020 !important;
  background: #f3f3f3;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-clock {
  border-color: #70a788;
  color: #123822 !important;
  background: #e2f1e8;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail {
  border-color: #c5cacf;
  background: linear-gradient(90deg, #edf5f0, #f7f8f9 34%, #ffffff);
  box-shadow: inset 0 1px 0 #ffffff;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail-number {
  border-color: #a7c5b2;
  background: #e5f1e9;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail-number small {
  color: #53625a !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail-number strong {
  color: #123822 !important;
  background: #cfe7d8;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-track i {
  border-top-color: #778087;
  border-bottom-color: #778087;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-track i::before {
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(75, 82, 87, 0.46) 18px 20px);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-track b {
  border: 1px solid rgba(31, 58, 76, 0.30);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(31, 43, 51, 0.18);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-track em {
  border: 1px solid #c1c6ca;
  color: #59636b !important;
  background: #f3f3f3;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail-state {
  background: transparent;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail-state span {
  border-color: #d3b65c;
  color: #735900;
  background: #fff3cd;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service,
body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service-active {
  border-color: #d0ae55;
  background: linear-gradient(90deg, #fff1c9, #fff9e9 38%, #ffffff);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service-active {
  border-color: #70a788;
  background: linear-gradient(90deg, #dcefe3, #fff4d6 42%, #ffffff);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service .train-tv-rail-number,
body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service-active .train-tv-rail-number {
  border-color: #d0ae55;
  background: #fff0bf;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service .train-tv-rail-number strong,
body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service-active .train-tv-rail-number strong {
  color: #5e4800 !important;
  background: #f5d77f;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service .train-tv-rail-state span {
  border-color: #d0ae55;
  color: #735900;
  background: #fff0bf;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-service-active .train-tv-rail-state span {
  border-color: #70a788;
  color: #0f6637;
  background: #dcefe3;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-waiting-active {
  border-color: #75a9cc;
  background: linear-gradient(90deg, #dfeef8, #fff6da 44%, #ffffff);
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-waiting-active .train-tv-rail-number {
  border-color: #75a9cc;
  background: #dfeef8;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-waiting-active .train-tv-rail-number strong {
  color: #174f78 !important;
  background: #c8e1f1;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-rail.tone-waiting-active .train-tv-rail-state span {
  border-color: #d3b65c;
  color: #735900;
  background: #fff3cd;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card {
  border-color: #bfc5ca;
  color: #202020;
  background: #ffffff;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card header {
  border-bottom-color: #c7ccd1;
  background: #f3f3f3;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card h2 {
  color: #202020 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card.tone-arrivals h2 {
  color: #107c41 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card.tone-departures h2 {
  color: #0f6cbd !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card header span {
  border: 1px solid #c7ccd1;
  color: #4f5960 !important;
  background: #ffffff;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-wrap {
  background: #ffffff;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card th {
  border-bottom-color: #bfc5ca;
  color: #4f5960 !important;
  background: #eceff1;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td,
body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(2),
body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(5),
body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(6) {
  border-bottom-color: #dde0e2;
  color: #202020 !important;
  background: #ffffff;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card tbody tr:nth-child(even) td {
  background: #f8f8f8;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card tbody tr:hover td {
  background: #eef6fb;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td:first-child {
  color: #107c41 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td:nth-child(7),
body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-warning {
  color: #806000 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-processing,
body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-done {
  color: #107c41 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-status-cell.tone-problem,
body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td.train-tv-cancelled {
  color: #b42318 !important;
}

body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card tr.is-empty td {
  color: #687178 !important;
}

@media (max-width: 760px) {
  body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card tbody {
    background: #eceff1;
  }

  body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card tr {
    border-color: #c7ccd1;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(31, 43, 51, 0.08);
  }

  body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td,
  body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card tbody tr:nth-child(even) td {
    color: #202020 !important;
    background: transparent;
  }

  body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td::before {
    color: #687178;
  }

  body.theme-light:has(.page-content.page-train_movements) .train-tv-table-card td:first-child {
    border-bottom-color: #d5d9dc;
    color: #107c41 !important;
  }
}

/* Application light-mode typography: bold only true headings. */
body.theme-light:not(.login-page) {
  font-weight: 400;
}

body.theme-light:not(.login-page) :where(
  p,
  span,
  small,
  strong,
  b,
  em,
  dt,
  dd,
  th,
  td,
  label,
  a,
  button,
  input,
  select,
  textarea
) {
  font-weight: 400 !important;
}

body.theme-light:not(.login-page) :where(h1, h2, h3, h4),
body.theme-light:not(.login-page) :where(h1, h2, h3, h4) :where(span, strong, small, b, em) {
  font-weight: 700 !important;
}

@media (hover: hover) and (pointer: fine) {
  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):hover,
  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):focus-visible {
    z-index: 40;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover {
    z-index: 60;
    gap: 4px;
    min-width: 260px;
    max-width: 290px;
    padding: 12px 13px;
    border: 1px solid #0f6cbd;
    border-radius: 7px;
    color: #ffffff;
    background: #20262c;
    box-shadow: 0 16px 36px rgba(20, 30, 38, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover > b {
    padding-right: 76px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600 !important;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover > i {
    top: 12px;
    right: 13px;
    color: #70d99b;
    font-size: 10px;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover > small {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    padding-top: 5px;
    border-top-color: #46515a;
    color: #c3cdd4;
    font-size: 10.5px;
    line-height: 1.3;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover em {
    color: #aebac3;
    font-size: 10.5px;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover strong {
    overflow: visible;
    color: #ffffff !important;
    font-size: 10.5px;
    font-weight: 500 !important;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid:has(.container-slot:not(.empty):hover) .container-slot:not(.empty) {
    opacity: 1 !important;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):hover,
  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):focus-visible {
    opacity: 1 !important;
    filter: none !important;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot-hover {
    background-color: #171c20 !important;
    background-image: none !important;
    backdrop-filter: none;
    mix-blend-mode: normal;
  }

  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):hover .container-slot-hover,
  body.theme-light:not(.login-page) .page-content .bay-original-grid .container-slot:not(.empty):focus-visible .container-slot-hover {
    opacity: 1 !important;
  }
}

body.theme-light:not(.login-page) .page-train_plan :where(
  .train-timeline-time,
  .train-card-time,
  .train-plan-kpi strong,
  .train-plan-board-count,
  .train-timeline-units strong,
  .train-week-day > header span,
  .train-plan-date-form label span
) {
  font-weight: 400 !important;
}

/* Compact desktop topbar in both themes. */
@media (min-width: 761px) {
  body:not(.login-page) .app-main {
    grid-template-rows: 72px minmax(0, 1fr) 34px;
  }

  body:not(.login-page) .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  body:not(.login-page) .topbar-actions {
    gap: 12px;
  }

  body:not(.login-page) .weather-pill,
  body:not(.login-page) .profile-pill {
    gap: 8px;
    min-height: 40px;
    padding-right: 12px;
    padding-left: 12px;
  }

  body:not(.login-page) .weather-pill > i,
  body:not(.login-page) .profile-pill > i {
    font-size: 20px;
  }

  body:not(.login-page) .weather-pill small,
  body:not(.login-page) .profile-pill small {
    font-size: 11px;
  }

  body:not(.login-page) .weather-pill [data-weather-wind] i {
    font-size: 11px;
  }

  body:not(.login-page) .notification-wrap {
    width: 36px;
    height: 36px;
  }

  body:not(.login-page) .notification-wrap > i {
    font-size: 20px;
  }

  body:not(.login-page) .notification-wrap > span {
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  body:not(.login-page) .admin-log-pill {
    gap: 6px;
    min-height: 34px;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 12px;
  }

  body:not(.login-page) .admin-log-pill i {
    font-size: 17px;
  }

  body:not(.login-page) .profile-pill > span > strong {
    font-size: 13px;
    line-height: 1.15;
  }

  body:not(.login-page) .profile-menu-chevron {
    font-size: 14px !important;
  }
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.today,
body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.today.is-selected {
  border-color: #0f6cbd !important;
  color: #0b416a !important;
  background: #dbeef8 !important;
  box-shadow: inset 0 0 0 1px #ffffff, 0 0 0 2px rgba(15, 108, 189, 0.16) !important;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.today > span {
  color: #0b416a !important;
}

body.theme-light:has(.page-dashboard) .page-dashboard .calendar-day.today:hover {
  background: #c9e5f4 !important;
}

/* Attendance light mode: stronger Windows-style hierarchy and contrast. */
body.theme-light:not(.login-page) .page-attendance {
  color: #202020;
  background: #e7e9ec;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-top-panel,
body.theme-light:not(.login-page) .page-attendance .dochazka-panel {
  border-color: #aeb4b9;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 43, 51, 0.12);
}

body.theme-light:not(.login-page) .page-attendance .dochazka-panel > header {
  border-bottom-color: #bfc5ca;
  background: #eceff1;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-panel header strong,
body.theme-light:not(.login-page) .page-attendance .dochazka-panel header span,
body.theme-light:not(.login-page) .page-attendance .dochazka-panel header em {
  color: #202020;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-top-button,
body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap {
  border-color: #9fa6ac;
  color: #202020;
  background: #f5f5f5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

body.theme-light:not(.login-page) .page-attendance .dochazka-top-button:hover {
  border-color: #0f6cbd;
  color: #0b416a;
  background: #e7f2f9;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap {
  background: #ffffff;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap strong,
body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap .dochazka-date-picker-trigger {
  color: #202020;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-date-picker-trigger i {
  color: #0f6cbd;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap a,
body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap button {
  border: 1px solid #c2c7cb;
  color: #303030;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap a:hover,
body.theme-light:not(.login-page) .page-attendance .dochazka-date-wrap button:hover {
  border-color: #0f6cbd;
  color: #0b416a;
  background: #dbeef8;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-employee-wrap {
  border-color: #b8bec4;
  background: #f1f3f4;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-employee-wrap h3 {
  color: #174f78;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-employee-wrap.tone-amber h3 {
  color: #735900;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-employee-wrap .employee-list span {
  border-color: #d0d4d7;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-employee-wrap .employee-list span:hover {
  border-color: #8eb5d1;
  background: #eef6fb;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-shift-buttons span {
  border-color: #aeb4b9;
  color: #202020;
  background: #f5f5f5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

body.theme-light:not(.login-page) .page-attendance .dochazka-shift-buttons span:hover {
  border-color: #8eb5d1;
  background: #eef6fb;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-employee-wrap .employee-list input:checked + span,
body.theme-light:not(.login-page) .page-attendance .dochazka-shift-buttons input:checked + span {
  border-color: #0f6cbd !important;
  color: #0b416a !important;
  background: #dbeef8 !important;
  outline: 0;
  box-shadow: inset 3px 0 0 #0f6cbd, 0 0 0 1px rgba(15, 108, 189, 0.14) !important;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-assigned-list > div,
body.theme-light:not(.login-page) .page-attendance .dochazka-summary-list > div {
  border-color: #c0c5c9;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 43, 51, 0.06);
}

body.theme-light:not(.login-page) .page-attendance .dochazka-assigned-list > div:nth-child(even),
body.theme-light:not(.login-page) .page-attendance .dochazka-summary-list > div:nth-child(even) {
  background: #f5f6f7;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-assigned-list strong,
body.theme-light:not(.login-page) .page-attendance .dochazka-assigned-list b,
body.theme-light:not(.login-page) .page-attendance .dochazka-summary-list span {
  color: #202020;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-assigned-list span {
  color: #505b63;
}

body.theme-light:not(.login-page) .page-attendance .attendance-row-edit,
body.theme-light:not(.login-page) .page-attendance .mini-delete-form button {
  border-color: #aeb4b9;
  color: #303030;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .page-attendance .attendance-row-edit:hover {
  border-color: #0f6cbd;
  color: #0b416a;
  background: #dbeef8;
}

body.theme-light:not(.login-page) .page-attendance .mini-delete-form button:hover {
  border-color: #c45b52;
  color: #9d241b;
  background: #fbe9e7;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-day-confirm:not(.confirmed) button {
  border-color: #0f6cbd;
  color: #ffffff;
  background: #0f6cbd;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-day-confirm:not(.confirmed) button:hover {
  background: #0b5a9c;
}

body.theme-light:not(.login-page) .page-attendance .dochazka-day-confirm.confirmed button {
  border-color: #70a788;
  color: #0f6637;
  background: #dcefe3;
}

body.theme-light:not(.login-page) .attendance-edit-dialog,
body.theme-light:not(.login-page) .attendance-modal-window {
  border-color: #9fa6ac;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(31, 43, 51, 0.22);
}

body.theme-light:not(.login-page) .attendance-edit-dialog > header,
body.theme-light:not(.login-page) .attendance-modal-header,
body.theme-light:not(.login-page) .attendance-summary-bar,
body.theme-light:not(.login-page) .attendance-modal-side {
  border-color: #b8bec4;
  color: #202020;
  background: #eceff1;
}

body.theme-light:not(.login-page) .attendance-edit-dialog-form input,
body.theme-light:not(.login-page) .attendance-edit-dialog-form select {
  border-color: #9fa6ac;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .attendance-table-wrap {
  border: 1px solid #9fa6ac;
  background: #ffffff;
}

body.theme-light:not(.login-page) .attendance-table th,
body.theme-light:not(.login-page) .attendance-table td {
  border-color: #bfc5ca;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .attendance-table thead th,
body.theme-light:not(.login-page) .attendance-table th:first-child,
body.theme-light:not(.login-page) .attendance-table td:first-child {
  border-color: #aeb4b9;
  color: #202020;
  background: #e5e8ea;
}

body.theme-light:not(.login-page) .attendance-table tbody tr:nth-child(even) td:not(.weekend):not(.holiday):not(.today) {
  background: #f6f7f8;
}

body.theme-light:not(.login-page) .attendance-table tbody tr:hover td {
  background-color: #eaf3f8;
}

body.theme-light:not(.login-page) .attendance-table .attendance-category-row td,
body.theme-light:not(.login-page) .attendance-table .attendance-category-row td:first-child {
  border-color: #9fa6ac;
  color: #202020;
  background: #dce4e9;
}

body.theme-light:not(.login-page) .attendance-table .today {
  box-shadow: inset 0 0 0 2px #0f6cbd;
  background: #dbeef8;
}

/* Handover light mode: crisp Windows-style work surface. */
body.theme-light:not(.login-page) .page-handover {
  color: #202020;
  background: #e7e9ec;
}

body.theme-light:not(.login-page) .page-handover .predavka-shift-strip,
body.theme-light:not(.login-page) .page-handover .predavka-kpi-card,
body.theme-light:not(.login-page) .page-handover .predavka-panel {
  border-color: #aeb4b9;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31, 43, 51, 0.12);
}

body.theme-light:not(.login-page) .page-handover .predavka-shift-strip {
  border-left: 4px solid #0f6cbd;
}

body.theme-light:not(.login-page) .page-handover .predavka-shift-strip strong {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-shift-strip em {
  border-color: #aeb4b9;
  color: #303030;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .page-handover .predavka-primary-button {
  border: 1px solid #0f6cbd;
  color: #ffffff;
  background: #0f6cbd;
}

body.theme-light:not(.login-page) .page-handover .predavka-primary-button:hover {
  background: #0b5a9c;
}

body.theme-light:not(.login-page) .page-handover .predavka-kpi-card {
  border-top: 3px solid currentColor;
}

body.theme-light:not(.login-page) .page-handover .predavka-kpi-card strong,
body.theme-light:not(.login-page) .page-handover .predavka-kpi-card span {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-kpi-card small {
  color: #59636b;
}

body.theme-light:not(.login-page) .page-handover .predavka-panel > header {
  margin: -16px -16px 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #bfc5ca;
  border-radius: 7px 7px 0 0;
  background: #eceff1;
}

body.theme-light:not(.login-page) .page-handover .predavka-panel > header strong {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-panel > header > div > i {
  border: 1px solid #b5c8d6;
  color: #174f78;
  background: #e3eff6;
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card {
  border-color: #bfc5ca;
  border-left-color: #0f6cbd;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 43, 51, 0.06);
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card:nth-child(even) {
  background: #f6f7f8;
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card:hover {
  border-color: #75a9cc;
  border-left-color: #0f6cbd;
  color: #202020;
  background: #eef6fb;
  box-shadow: 0 4px 10px rgba(31, 43, 51, 0.12);
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card.active {
  border-color: #0f6cbd !important;
  border-left-color: #0f6cbd !important;
  color: #0b416a;
  background: #dbeef8 !important;
  outline: 0 !important;
  box-shadow: inset 3px 0 0 #0f6cbd, 0 0 0 1px rgba(15, 108, 189, 0.15) !important;
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card.priority-watch {
  border-left-color: #b58a12;
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card.priority-important {
  border-left-color: #b42318;
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card strong,
body.theme-light:not(.login-page) .page-handover .predavka-train-card span,
body.theme-light:not(.login-page) .page-handover .predavka-train-card em {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-train-card em,
body.theme-light:not(.login-page) .page-handover .predavka-train-card span b {
  border-color: #c3c8cc;
  color: #4f5960;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail h2 {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-status-line {
  border-color: #70a788;
  border-left-color: #107c41;
  color: #0f6637;
  background: #dcefe3;
}

body.theme-light:not(.login-page) .page-handover .predavka-status-line.priority-watch {
  border-color: #d3b65c;
  border-left-color: #b58a12;
  color: #735900;
  background: #fff3cd;
}

body.theme-light:not(.login-page) .page-handover .predavka-status-line.priority-important {
  border-color: #d58b84;
  border-left-color: #b42318;
  color: #8f2119;
  background: #fbe9e7;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-grid div {
  border-color: #bfc5ca;
  background: #f3f4f5;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-grid dt {
  color: #59636b;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-grid dd {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-note-list div,
body.theme-light:not(.login-page) .page-handover .predavka-general-list a {
  border-color: #bfc5ca;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .page-handover .predavka-general-list a {
  border-left: 3px solid #75a9cc;
}

body.theme-light:not(.login-page) .page-handover .predavka-general-list a:hover,
body.theme-light:not(.login-page) .page-handover .predavka-general-list a.active {
  border-color: #0f6cbd;
  color: #0b416a;
  background: #dbeef8;
}

body.theme-light:not(.login-page) .page-handover .predavka-general-list strong,
body.theme-light:not(.login-page) .page-handover .predavka-general-list span {
  color: #202020;
}

body.theme-light:not(.login-page) .page-handover .predavka-add-note textarea,
body.theme-light:not(.login-page) .page-handover .predavka-general-form textarea {
  border-color: #9fa6ac;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .page-handover .predavka-add-note button,
body.theme-light:not(.login-page) .page-handover .predavka-general-form button {
  border-color: #0f6cbd;
  color: #ffffff;
  background: #0f6cbd;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-actions button,
body.theme-light:not(.login-page) .page-handover .predavka-detail-links a,
body.theme-light:not(.login-page) .page-handover .predavka-detail-links button {
  border-color: #aeb4b9;
  color: #202020;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-actions button:hover,
body.theme-light:not(.login-page) .page-handover .predavka-detail-links a:hover {
  border-color: #0f6cbd;
  color: #0b416a;
  background: #dbeef8;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-actions button.primary {
  border-color: #107c41;
  color: #ffffff;
  background: #107c41;
}

body.theme-light:not(.login-page) .page-handover .predavka-detail-links button:hover {
  border-color: #b42318;
  color: #8f2119;
  background: #fbe9e7;
}

body.theme-light:not(.login-page) .predavka-modal-backdrop {
  background: rgba(50, 55, 60, 0.32);
  backdrop-filter: blur(4px);
}

body.theme-light:not(.login-page) .predavka-modal {
  border-color: #9fa6ac;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(31, 43, 51, 0.24);
}

body.theme-light:not(.login-page) .predavka-modal > header strong {
  color: #202020;
}

body.theme-light:not(.login-page) .predavka-modal > header a {
  border-color: #aeb4b9;
  color: #303030;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .predavka-dialog-form {
  border-color: #b8bec4;
  background: #f3f4f5;
}

body.theme-light:not(.login-page) .predavka-dialog-form label span {
  color: #4f5960;
}

body.theme-light:not(.login-page) .predavka-dialog-form input,
body.theme-light:not(.login-page) .predavka-dialog-form select,
body.theme-light:not(.login-page) .predavka-dialog-form textarea {
  border-color: #9fa6ac;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .predavka-dialog-actions a {
  border-color: #aeb4b9;
  color: #202020;
  background: #f1f1f1;
}

body.theme-light:not(.login-page) .predavka-dialog-actions button {
  border: 1px solid #0f6cbd;
  color: #ffffff;
  background: #0f6cbd;
}

/* Shift planning light mode: stronger, stable code colors. */
body.theme-light:not(.login-page) .shift-plan-table-wrap {
  border: 1px solid #aeb4b9;
  background: #ffffff;
}

body.theme-light:not(.login-page) .shift-plan-table th,
body.theme-light:not(.login-page) .shift-plan-table td {
  border-color: #c6cbd0;
}

body.theme-light:not(.login-page) .shift-plan-table thead th,
body.theme-light:not(.login-page) .shift-plan-table thead th:first-child,
body.theme-light:not(.login-page) .shift-plan-table tbody th {
  color: #202020;
  background: #e5e8ea;
}

body.theme-light:not(.login-page) .shift-plan-table tbody th {
  border-right-color: #9fa6ac;
}

body.theme-light:not(.login-page) .shift-plan-table select {
  border-color: #9fa6ac;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .shift-plan-table td.code-R,
body.theme-light:not(.login-page) .shift-plan-table select.code-R,
body.theme-light:not(.login-page) .shift-plan-table select:has(option[value="R"]:checked),
body.theme-light:not(.login-page) .shift-plan-tail .code-R {
  border-color: #4f8f68 !important;
  color: #174c2c !important;
  background: #cfe8d8 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 76, 44, 0.16) !important;
}

body.theme-light:not(.login-page) .shift-plan-table td.code-O,
body.theme-light:not(.login-page) .shift-plan-table select.code-O,
body.theme-light:not(.login-page) .shift-plan-table select:has(option[value="O"]:checked),
body.theme-light:not(.login-page) .shift-plan-tail .code-O {
  border-color: #4f8bb5 !important;
  color: #174f78 !important;
  background: #cfe4f3 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 79, 120, 0.16) !important;
}

body.theme-light:not(.login-page) .shift-plan-table td.code-N,
body.theme-light:not(.login-page) .shift-plan-table select.code-N,
body.theme-light:not(.login-page) .shift-plan-table select:has(option[value="N"]:checked),
body.theme-light:not(.login-page) .shift-plan-tail .code-N {
  border-color: #7d63b2 !important;
  color: #49316f !important;
  background: #ded4f2 !important;
  box-shadow: inset 0 0 0 1px rgba(73, 49, 111, 0.16) !important;
}

body.theme-light:not(.login-page) .shift-plan-table td.code-12,
body.theme-light:not(.login-page) .shift-plan-table select.code-12,
body.theme-light:not(.login-page) .shift-plan-table select:has(option[value="12"]:checked),
body.theme-light:not(.login-page) .shift-plan-tail .code-12 {
  border-color: #c47a4c !important;
  color: #7a3f1d !important;
  background: #f7dccb !important;
  box-shadow: inset 0 0 0 1px rgba(122, 63, 29, 0.16) !important;
}

body.theme-light:not(.login-page) .shift-plan-table td.code-X,
body.theme-light:not(.login-page) .shift-plan-table select.code-X,
body.theme-light:not(.login-page) .shift-plan-table select:has(option[value="X"]:checked),
body.theme-light:not(.login-page) .shift-plan-tail .code-X {
  border-color: #b58a12 !important;
  color: #674d00 !important;
  background: #f7e7ad !important;
  box-shadow: inset 0 0 0 1px rgba(103, 77, 0, 0.16) !important;
}

body.theme-light:not(.login-page) .shift-plan-table td.is-standby,
body.theme-light:not(.login-page) .shift-plan-table td.is-standby select {
  border-color: #0e8f8a !important;
  color: #075b58 !important;
  background: #cceeed !important;
  box-shadow: inset 0 0 0 2px rgba(14, 143, 138, 0.42) !important;
}

body.theme-light:not(.login-page) .shift-plan-table th.issue-red,
body.theme-light:not(.login-page) .shift-plan-table td.issue-red,
body.theme-light:not(.login-page) .shift-plan-table td.issue-red select {
  border-color: #b42318 !important;
  color: #8f2119 !important;
  background: #f6d2cf !important;
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(180, 35, 24, 0.36) !important;
}

body.theme-light:not(.login-page) .shift-plan-table .weekend:not([class*="code-"]),
body.theme-light:not(.login-page) .shift-plan-table .holiday:not([class*="code-"]) {
  background: #fff2cc;
}

body.theme-light:not(.login-page) .shift-plan-table .holiday:not([class*="code-"]) {
  background: #f9d7d4;
}

body.theme-light:not(.login-page) .shift-plan-tail i {
  border: 1px solid currentColor;
}

/* Keep service rails distinct in light mode without the dark-theme amber label. */
body.theme-light:not(.login-page) .map-live-rail.is-service {
  border-color: rgba(47, 99, 139, 0.24);
  border-left: 3px solid #4e7f9f;
  background: linear-gradient(90deg, rgba(78, 127, 159, 0.11), rgba(255, 255, 255, 0) 52%);
}

body.theme-light:not(.login-page) .map-live-rail.is-service.is-occupied {
  border-color: rgba(36, 115, 70, 0.28);
  border-left-color: #247346;
  background: linear-gradient(90deg, rgba(36, 115, 70, 0.11), rgba(78, 127, 159, 0.05) 58%, transparent);
}

body.theme-light:not(.login-page) .map-live-rail.is-service .map-live-rail-label small {
  color: #526572;
}

body.theme-light:not(.login-page) .map-live-rail.is-service .map-live-rail-label strong {
  color: #244f6b;
}

.profile-theme-switch {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.10);
}

.profile-theme-switch > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-theme-switch > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(210, 222, 232, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-theme-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(210, 222, 232, 0.72);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.profile-theme-switch button i {
  color: currentColor;
  font-size: 15px;
}

.profile-theme-switch button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.profile-theme-switch button.active {
  border-color: rgba(95, 214, 120, 0.24);
  color: #ffffff;
  background: rgba(95, 214, 120, 0.12);
}

body.theme-light:not(.login-page) .profile-theme-switch {
  border-color: #d2d2d2;
}

body.theme-light:not(.login-page) .profile-theme-switch > span {
  color: #626d73;
}

body.theme-light:not(.login-page) .profile-theme-switch > div {
  border-color: #c8c8c8;
  background: #f0f0f0;
}

body.theme-light:not(.login-page) .profile-theme-switch button {
  color: #4f565b;
}

body.theme-light:not(.login-page) .profile-theme-switch button:hover {
  color: #202020;
  background: #e4e4e4;
}

body.theme-light:not(.login-page) .profile-theme-switch button.active {
  border-color: #9eb8cc;
  color: #163c59;
  background: #dbeaf5;
}

body.theme-light:not(.login-page) .map-live-rail.tone-service-active .map-train-consist b {
  border-color: #7f9eb2;
  color: #ffffff;
  background: #486f88;
}

body.theme-light:not(.login-page) .map-live-rail.tone-service-active .map-train-consist > span {
  border-color: rgba(72, 111, 136, 0.38);
  background: repeating-linear-gradient(90deg, #66899f 0 31px, #38566a 31px 35px);
}

@media (min-width: 1181px) {
  body:not(.login-page) .brand {
    padding-right: 14px;
    padding-left: 14px;
  }

  body:not(.login-page) .brand img,
  body.theme-light:not(.login-page) .brand img {
    width: auto;
    max-width: 136px;
  }

  body:not(.login-page) .nav-link {
    gap: 9px;
    padding-right: 9px;
    padding-left: 9px;
  }

  body:not(.login-page) .sidebar-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (min-width: 761px) {
body.theme-light:not(.login-page) .sidebar {
  border-right-color: #aeb8c0;
  background: #e5eaed;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.72), 2px 0 8px rgba(35, 50, 60, 0.08);
}

body.theme-light:not(.login-page) .sidebar-photo {
  inset: -8px;
  display: block;
  height: auto;
  background:
    linear-gradient(180deg, rgba(245, 248, 249, 0.90) 0%, rgba(230, 236, 240, 0.84) 52%, rgba(218, 227, 232, 0.76) 100%),
    url("/static/sidebar-terminal-yard.png") center center / cover no-repeat;
  opacity: 1;
  filter: grayscale(0.82) saturate(0.38) contrast(0.78) brightness(1.13) blur(2px);
  transform: scale(1.03);
}

body.theme-light:not(.login-page) .brand {
  position: relative;
  z-index: 1;
  border-bottom-color: #b9c2c9;
  background: rgba(248, 250, 251, 0.62);
  backdrop-filter: blur(5px);
}

body.theme-light:not(.login-page) .nav-link {
  color: #26343d;
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

body.theme-light:not(.login-page) .nav-link .nav-icon {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.28);
}

body.theme-light:not(.login-page) .nav-link:hover {
  color: #0f4f7c;
  background: #e3f1fa;
  box-shadow: inset 3px 0 0 rgba(15, 108, 189, 0.42);
}

body.theme-light:not(.login-page) .nav-link:hover .nav-icon {
  border-color: #8eb5d1;
  color: #0f5f9d;
  background: #f5fbff;
}

body.theme-light:not(.login-page) .nav-link.active {
  color: #123f60;
  background: #d4e7f5;
  box-shadow: inset 3px 0 0 #0f6cbd;
}

body.theme-light:not(.login-page) .nav-link.active .nav-icon {
  border-color: #6f9fbe;
  color: #0f5f9d;
  background: #eef6fb;
}

body.theme-light:not(.login-page) .sidebar-footer {
  border-top: 1px solid #c3cbd1;
  color: #245b7d;
  background: rgba(244, 247, 249, 0.56);
  backdrop-filter: blur(5px);
}

body.theme-light:not(.login-page) .sidebar-footer span {
  color: #53636e;
}
}

@media (min-width: 761px) {
  body.theme-dark:not(.login-page) .sidebar {
    background: #071019;
    box-shadow: inset -1px 0 0 rgba(210, 222, 232, 0.08), 2px 0 10px rgba(0, 0, 0, 0.24);
  }

  body.theme-dark:not(.login-page) .sidebar-photo {
    inset: -8px;
    display: block;
    height: auto;
    background:
      linear-gradient(180deg, rgba(5, 11, 17, 0.72) 0%, rgba(5, 11, 17, 0.52) 50%, rgba(5, 10, 16, 0.68) 100%),
      url("/static/sidebar-terminal-yard.png") center center / cover no-repeat;
    opacity: 1;
    filter: saturate(0.76) contrast(1.06) brightness(0.82);
    transform: scale(1.02);
  }

  body.theme-dark:not(.login-page) .brand {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(210, 222, 232, 0.10);
    background: rgba(5, 11, 17, 0.46);
    backdrop-filter: blur(4px);
  }

  body.theme-dark:not(.login-page) .nav-link {
    transition: color 140ms ease, background-color 140ms ease, box-shadow 160ms ease;
  }

  body.theme-dark:not(.login-page) .nav-link:hover {
    color: #ffffff;
    background: rgba(50, 230, 120, 0.11);
    box-shadow: inset 3px 0 0 rgba(50, 230, 120, 0.52), 0 0 18px rgba(50, 230, 120, 0.07);
  }

  body.theme-dark:not(.login-page) .nav-link:hover .nav-icon {
    border-color: rgba(104, 232, 151, 0.52);
    color: #76e9a2;
    background: rgba(50, 230, 120, 0.12);
    box-shadow: 0 0 12px rgba(50, 230, 120, 0.10);
  }

  body.theme-dark:not(.login-page) .sidebar-footer {
    border-top: 1px solid rgba(210, 222, 232, 0.10);
    background: rgba(5, 10, 16, 0.52);
    backdrop-filter: blur(4px);
  }
}

.notification-menu {
  position: relative;
  z-index: 1650;
}

.notification-wrap {
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.notification-wrap:hover,
.notification-menu.is-open .notification-wrap {
  border-color: rgba(95, 214, 120, 0.30);
  background: rgba(95, 214, 120, 0.08);
  box-shadow: 0 0 16px rgba(50, 230, 120, 0.06);
}

body.theme-dark:not(.login-page) .notification-wrap:hover > i,
body.theme-dark:not(.login-page) .notification-menu.is-open .notification-wrap > i {
  color: #76e9a2;
  text-shadow: none;
}

.notification-wrap [data-notification-count].is-hidden,
.notification-panel [data-notification-new].is-hidden {
  display: none;
}

.notification-panel {
  position: absolute;
  z-index: 1750;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(332px, calc(100vw - 24px));
  max-height: min(430px, calc(100vh - 110px));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 8px;
  background: rgba(9, 17, 26, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(18px);
}

.notification-menu.is-open .notification-panel {
  display: block;
  animation: notification-panel-in 150ms ease-out;
}

@keyframes notification-panel-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.11);
}

.notification-panel > header > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-panel > header i {
  color: var(--green);
  font-size: 18px;
}

.notification-panel > header strong {
  color: #f4f7fa;
  font-size: 13px;
}

.notification-panel > header em {
  padding: 3px 7px;
  border: 1px solid rgba(233, 83, 67, 0.34);
  border-radius: 10px;
  color: #ffb5ad;
  background: rgba(233, 83, 67, 0.11);
  font-size: 9px;
  font-style: normal;
}

.notification-list {
  display: grid;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.08);
  background: transparent;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  transition: opacity 140ms ease;
}

.notification-panel.is-read .notification-item::before {
  opacity: 0;
}

.notification-item > i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(75, 156, 232, 0.28);
  border-radius: 6px;
  color: #7bb8ee;
  background: rgba(75, 156, 232, 0.09);
  font-size: 17px;
}

.notification-item.tone-amber > i {
  border-color: rgba(240, 196, 60, 0.30);
  color: #f0cf69;
  background: rgba(240, 196, 60, 0.09);
}

.notification-item.tone-green > i {
  border-color: rgba(50, 230, 120, 0.28);
  color: #68e897;
  background: rgba(50, 230, 120, 0.09);
}

.notification-item > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
}

.notification-item strong,
.notification-item span {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item strong {
  color: rgba(244, 247, 250, 0.94);
  font-size: 11px;
}

.notification-item span,
.notification-item time {
  color: rgba(169, 186, 199, 0.72);
  font-size: 9px;
}

.notification-item time {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  white-space: nowrap;
}

body.theme-light:not(.login-page) .notification-wrap:hover,
body.theme-light:not(.login-page) .notification-menu.is-open .notification-wrap {
  border-color: #8eb5d1;
  background: #e3f1fa;
  box-shadow: 0 0 0 1px rgba(15, 108, 189, 0.05);
}

body.theme-light:not(.login-page) .notification-panel {
  border-color: #b9c2c9;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(35, 50, 60, 0.20);
  backdrop-filter: none;
}

body.theme-light:not(.login-page) .notification-panel > header,
body.theme-light:not(.login-page) .notification-item {
  border-color: #d5dade;
}

body.theme-light:not(.login-page) .notification-panel > header strong,
body.theme-light:not(.login-page) .notification-item strong {
  color: #202020;
}

body.theme-light:not(.login-page) .notification-panel > header em {
  border-color: #e8aaa5;
  color: #8f2119;
  background: #f9e1df;
}

body.theme-light:not(.login-page) .notification-item span,
body.theme-light:not(.login-page) .notification-item time {
  color: #626d73;
}

body.theme-light:not(.login-page) .notification-item::before {
  background: #0f6cbd;
}

@media (max-width: 760px) {
  .notification-panel[data-mobile-detached="true"] {
    position: fixed;
    z-index: 1900;
    top: 125px;
    right: 10px;
    display: block;
    width: min(332px, calc(100vw - 20px));
    max-height: calc(100svh - 140px);
    animation: notification-panel-in 150ms ease-out;
    overscroll-behavior: contain;
  }
}

.dalsi-settings-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 760px;
  min-height: 0;
}

.dalsi-settings-workspace {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
  min-height: 430px;
  color: currentColor;
}

.dalsi-settings-workspace > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.11);
}

.dalsi-settings-workspace > header > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 6px;
  color: rgba(244, 247, 250, 0.86);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  text-decoration: none;
}

.dalsi-settings-workspace > header > a:hover {
  border-color: color-mix(in srgb, currentColor 44%, transparent);
  color: #ffffff;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.dalsi-settings-workspace > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dalsi-settings-workspace > header > div > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 18px;
}

.dalsi-settings-workspace > header strong {
  color: #ffffff;
  font-size: 15px;
}

.dalsi-settings-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 260px;
  color: rgba(169, 186, 199, 0.68);
}

.dalsi-settings-empty > i {
  font-size: 34px;
}

.dalsi-settings-empty > strong {
  font-size: 12px;
}

body.theme-light:not(.login-page) .dalsi-settings-workspace > header {
  border-color: #c9cfd4;
}

body.theme-light:not(.login-page) .dalsi-settings-workspace > header > a {
  border-color: #b9c2c9;
  color: #303030;
  background: #ffffff;
}

body.theme-light:not(.login-page) .dalsi-settings-workspace > header > a:hover {
  border-color: #8eb5d1;
  color: #0f4f7c;
  background: #e3f1fa;
}

body.theme-light:not(.login-page) .dalsi-settings-workspace > header strong {
  color: #202020;
}

body.theme-light:not(.login-page) .dalsi-settings-empty {
  color: #68747c;
}

@media (max-width: 760px) {
  .dalsi-settings-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .dalsi-settings-workspace {
    min-height: 330px;
  }

  .dalsi-settings-workspace > header {
    align-items: flex-start;
    padding: 12px;
  }
}

.yard-settings-shell {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.yard-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto auto;
  gap: 8px;
}

.yard-settings-summary > div,
.yard-settings-summary > a,
.yard-settings-legend-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 11px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 6px;
  color: rgba(239, 245, 249, 0.88);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.yard-settings-summary i {
  color: #6baee7;
  font-size: 17px;
}

.yard-settings-summary span {
  color: rgba(169, 186, 199, 0.76);
  font-size: 10px;
}

.yard-settings-summary strong {
  color: #ffffff;
  font-size: 16px;
}

.yard-settings-summary > a {
  grid-template-columns: auto auto;
  justify-content: center;
  color: #8bc4ef;
  font-size: 11px;
}

.yard-settings-legend-button {
  grid-template-columns: auto auto;
  justify-content: center;
  border: 1px solid rgba(210, 222, 232, 0.13);
  font: inherit;
  color: #8bc4ef;
  cursor: pointer;
}

.yard-settings-summary > a:hover,
.yard-settings-legend-button:hover {
  border-color: rgba(75, 156, 232, 0.5);
  background: rgba(75, 156, 232, 0.1);
}

.yard-settings-add-section,
.yard-section-panel {
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.yard-settings-add-section > summary,
.yard-section-panel > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  color: rgba(239, 245, 249, 0.9);
  cursor: pointer;
  list-style: none;
}

.yard-settings-add-section > summary::-webkit-details-marker,
.yard-section-panel > summary::-webkit-details-marker {
  display: none;
}

.yard-settings-add-section > summary {
  width: max-content;
  border: 0;
  color: #84bce9;
  font-size: 11px;
}

.yard-settings-add-section[open] > summary,
.yard-section-panel[open] > summary {
  border-bottom: 1px solid rgba(210, 222, 232, 0.11);
}

.yard-settings-sections {
  display: grid;
  gap: 8px;
}

.yard-section-panel.is-inactive {
  opacity: 0.68;
}

.yard-section-panel > summary > span:nth-of-type(2) {
  display: grid;
  min-width: 150px;
  margin-right: auto;
}

.yard-section-panel > summary > span:nth-of-type(2) strong {
  color: #f7f9fb;
  font-size: 12px;
}

.yard-section-panel > summary > span:nth-of-type(2) small {
  color: rgba(169, 186, 199, 0.67);
  font-size: 9px;
}

.yard-section-code {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(75, 156, 232, 0.36);
  border-radius: 5px;
  color: #84bce9;
  background: rgba(75, 156, 232, 0.1);
  font-size: 15px;
}

.yard-section-overview {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 150px;
  color: rgba(169, 186, 199, 0.72);
  font-size: 10px;
  white-space: nowrap;
}

.yard-section-overview b {
  color: #edf3f7;
  font-size: 12px;
}

.yard-section-overview i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(169, 186, 199, 0.46);
}

.yard-section-panel > summary > em {
  min-width: 56px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #d18b84;
  background: rgba(212, 107, 98, 0.1);
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.yard-section-panel > summary > em.is-active {
  color: #63df93;
  background: rgba(50, 230, 120, 0.09);
}

.yard-section-panel > summary > i {
  transition: transform 150ms ease;
}

.yard-section-panel[open] > summary > i {
  transform: rotate(180deg);
}

.yard-section-panel-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.yard-section-form {
  display: grid;
  grid-template-columns: 76px minmax(150px, 1.4fr) minmax(130px, 1fr) repeat(2, minmax(110px, 0.7fr)) minmax(220px, auto) auto;
  align-items: end;
  gap: 8px;
  padding: 12px;
}

.yard-section-edit-form {
  padding: 0;
}

.yard-section-form > label {
  display: grid;
  gap: 4px;
}

.yard-section-form > label > span,
.yard-bay-head span {
  color: rgba(169, 186, 199, 0.69);
  font-size: 9px;
}

.yard-section-form input,
.yard-section-form select,
.yard-bay-row input {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 4px;
  color: #eef3f7;
  background: rgba(4, 13, 20, 0.62);
  font: inherit;
  font-size: 11px;
  outline: none;
}

.yard-section-form input,
.yard-section-form select {
  padding: 0 8px;
}

.yard-section-form input:focus,
.yard-section-form select:focus,
.yard-bay-row input:focus {
  border-color: #4b9ce8;
  box-shadow: 0 0 0 2px rgba(75, 156, 232, 0.12);
}

.yard-section-form input:disabled {
  color: rgba(169, 186, 199, 0.65);
  background: rgba(255, 255, 255, 0.025);
}

.yard-section-toggles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 32px;
}

.yard-section-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(210, 222, 232, 0.13);
  border-radius: 4px;
  color: rgba(210, 222, 232, 0.76);
  font-size: 9px;
}

.yard-section-toggles input {
  width: 13px;
  height: 13px;
  accent-color: #4b9ce8;
}

.yard-settings-save,
.yard-section-disable-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(75, 156, 232, 0.4);
  border-radius: 5px;
  color: #a9d0ef;
  background: rgba(75, 156, 232, 0.1);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.yard-settings-save:hover {
  border-color: #6baee7;
  background: rgba(75, 156, 232, 0.18);
}

.yard-bays-editor {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(210, 222, 232, 0.09);
}

.yard-bay-row {
  display: grid;
  grid-template-columns: 110px repeat(2, minmax(86px, 110px)) 72px;
  align-items: center;
  gap: 6px;
  min-height: 37px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.yard-bay-row:not(.yard-bay-head):hover {
  border-color: rgba(75, 156, 232, 0.18);
  background: rgba(75, 156, 232, 0.045);
}

.yard-bay-head {
  min-height: 24px;
}

.yard-bay-row > label {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  color: #84bce9;
  font-size: 10px;
}

.yard-bay-row input {
  padding: 0 7px;
}

.yard-bay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.yard-bay-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(75, 156, 232, 0.27);
  border-radius: 4px;
  color: #84bce9;
  background: rgba(75, 156, 232, 0.08);
  cursor: pointer;
}

.yard-bay-actions button:hover,
.yard-bay-actions button.add {
  border-color: #4b9ce8;
  background: rgba(75, 156, 232, 0.17);
}

.yard-bay-actions button.danger {
  border-color: rgba(212, 107, 98, 0.28);
  color: #d98b84;
  background: rgba(212, 107, 98, 0.07);
}

.yard-bay-add-row {
  margin-top: 5px;
  border-color: rgba(75, 156, 232, 0.15);
  background: rgba(75, 156, 232, 0.035);
}

.yard-section-disable-form {
  display: flex;
  justify-content: flex-end;
}

.yard-section-disable-form button {
  border-color: rgba(212, 107, 98, 0.25);
  color: #d7938c;
  background: transparent;
}

body.theme-light:not(.login-page) .yard-settings-summary > div,
body.theme-light:not(.login-page) .yard-settings-summary > a,
body.theme-light:not(.login-page) .yard-settings-legend-button,
body.theme-light:not(.login-page) .yard-settings-add-section,
body.theme-light:not(.login-page) .yard-section-panel {
  border-color: #cbd2d7;
  color: #252b2f;
  background: #ffffff;
}

body.theme-light:not(.login-page) .yard-settings-summary strong,
body.theme-light:not(.login-page) .yard-section-panel > summary > span:nth-of-type(2) strong,
body.theme-light:not(.login-page) .yard-section-overview b {
  color: #202020;
}

body.theme-light:not(.login-page) .yard-settings-summary span,
body.theme-light:not(.login-page) .yard-section-panel > summary > span:nth-of-type(2) small,
body.theme-light:not(.login-page) .yard-section-form > label > span,
body.theme-light:not(.login-page) .yard-bay-head span {
  color: #657078;
}

body.theme-light:not(.login-page) .yard-settings-add-section[open] > summary,
body.theme-light:not(.login-page) .yard-section-panel[open] > summary,
body.theme-light:not(.login-page) .yard-bays-editor {
  border-color: #d7dce0;
}

body.theme-light:not(.login-page) .yard-section-form input,
body.theme-light:not(.login-page) .yard-section-form select,
body.theme-light:not(.login-page) .yard-bay-row input {
  border-color: #b9c2c9;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .yard-section-form input:disabled {
  color: #657078;
  background: #eef1f3;
}

body.theme-light:not(.login-page) .yard-section-toggles label {
  border-color: #c9d0d5;
  color: #3f484e;
  background: #f7f8f9;
}

body.theme-light:not(.login-page) .yard-section-overview {
  color: #5f696f;
}

body.theme-light:not(.login-page) .yard-bay-row:not(.yard-bay-head):hover {
  border-color: #b7d3e7;
  background: #edf6fc;
}

@media (max-width: 1120px) {
  .yard-section-form {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .yard-section-toggles {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .yard-settings-shell {
    padding: 10px;
  }

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

  .yard-section-panel > summary {
    display: grid;
    grid-template-columns: 32px minmax(90px, 1fr) auto;
  }

  .yard-section-panel > summary > em {
    display: none;
  }

  .yard-section-overview {
    grid-column: 2 / 4;
    grid-row: 2;
    min-width: 0;
  }

  .yard-section-panel > summary > i {
    grid-column: 3;
    grid-row: 1;
  }

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

  .yard-section-toggles,
  .yard-settings-save {
    grid-column: 1 / -1;
  }

  .yard-bays-editor {
    overflow-x: auto;
  }

  .yard-bay-row {
    min-width: 390px;
  }
}

body.yard-settings-legend-open {
  overflow: hidden;
}

.yard-settings-legend-overlay {
  position: fixed;
  z-index: 2550;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  background: rgba(1, 7, 12, 0.64);
  backdrop-filter: blur(5px);
  transition: opacity 150ms ease, visibility 150ms ease;
}

.yard-settings-legend-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.yard-settings-legend {
  width: min(760px, 100%);
  max-height: min(720px, calc(100svh - 40px));
  overflow: auto;
  border: 1px solid rgba(75, 156, 232, 0.32);
  border-radius: 7px;
  color: #eef3f7;
  background: #0c1821;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
  transform: translateY(8px) scale(0.99);
  transition: transform 150ms ease;
}

.yard-settings-legend-overlay.is-open .yard-settings-legend {
  transform: translateY(0) scale(1);
}

.yard-settings-legend > header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(210, 222, 232, 0.12);
  background: #0c1821;
}

.yard-settings-legend > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.yard-settings-legend > header > div i {
  color: #6baee7;
  font-size: 19px;
}

.yard-settings-legend > header strong {
  color: #ffffff;
  font-size: 14px;
}

.yard-settings-legend > header button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(210, 222, 232, 0.16);
  border-radius: 5px;
  color: rgba(239, 245, 249, 0.78);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.yard-settings-legend > header button:hover,
.yard-settings-legend > header button:focus-visible {
  border-color: rgba(75, 156, 232, 0.5);
  color: #ffffff;
  background: rgba(75, 156, 232, 0.11);
  outline: none;
}

.yard-settings-legend-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding: 18px;
}

.yard-settings-legend-content > section:first-child {
  grid-column: 1 / -1;
}

.yard-settings-legend-content h3 {
  margin: 0 0 8px;
  color: #82bae7;
  font-size: 10px;
  text-transform: uppercase;
}

.yard-settings-legend-content dl {
  margin: 0;
}

.yard-settings-legend-content dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(210, 222, 232, 0.09);
}

.yard-settings-legend-content dt {
  color: #eef3f7;
  font-size: 10px;
}

.yard-settings-legend-content dd {
  margin: 0;
  color: rgba(185, 200, 211, 0.76);
  font-size: 10px;
  line-height: 1.5;
}

body.theme-light:not(.login-page) .yard-settings-legend-overlay {
  background: rgba(31, 41, 48, 0.36);
  backdrop-filter: blur(3px);
}

body.theme-light:not(.login-page) .yard-settings-legend,
body.theme-light:not(.login-page) .yard-settings-legend > header {
  border-color: #c5cdd2;
  color: #202020;
  background: #ffffff;
}

body.theme-light:not(.login-page) .yard-settings-legend > header strong,
body.theme-light:not(.login-page) .yard-settings-legend-content dt {
  color: #202020;
}

body.theme-light:not(.login-page) .yard-settings-legend-content h3 {
  color: #0f6cbd;
}

body.theme-light:not(.login-page) .yard-settings-legend-content dl > div {
  border-color: #dde1e4;
}

body.theme-light:not(.login-page) .yard-settings-legend-content dd {
  color: #5f696f;
}

body.theme-light:not(.login-page) .yard-settings-legend > header button {
  border-color: #b9c2c9;
  color: #3f484e;
  background: #f5f6f7;
}

@media (max-width: 760px) {
  .yard-settings-legend-overlay {
    align-items: end;
    padding: 10px;
  }

  .yard-settings-legend {
    max-height: calc(100svh - 20px);
  }

  .yard-settings-legend-content {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .yard-settings-legend-content > section:first-child {
    grid-column: auto;
  }

  .yard-settings-legend-content dl > div {
    grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  }
}

body.app-confirm-open {
  overflow: hidden;
}

.app-confirm-overlay {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  background: rgba(1, 7, 12, 0.66);
  backdrop-filter: blur(5px);
  transition: opacity 150ms ease, visibility 150ms ease;
}

.app-confirm-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.app-confirm-dialog {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px 14px;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid rgba(212, 107, 98, 0.32);
  border-radius: 7px;
  color: #eef3f7;
  background: #0c1821;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  transform: translateY(8px) scale(0.985);
  transition: transform 150ms ease;
}

.app-confirm-overlay.is-open .app-confirm-dialog {
  transform: translateY(0) scale(1);
}

.app-confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 107, 98, 0.35);
  border-radius: 6px;
  color: #e0938b;
  background: rgba(212, 107, 98, 0.1);
  font-size: 21px;
}

.app-confirm-copy {
  align-self: center;
  min-width: 0;
}

.app-confirm-copy strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.app-confirm-copy p {
  margin: 5px 0 0;
  color: rgba(185, 200, 211, 0.78);
  font-size: 10px;
  line-height: 1.55;
}

.app-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 5px;
}

.app-confirm-actions button {
  min-width: 86px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(210, 222, 232, 0.18);
  border-radius: 5px;
  color: rgba(239, 245, 249, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.app-confirm-actions button:hover,
.app-confirm-actions button:focus-visible {
  border-color: rgba(210, 222, 232, 0.4);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.app-confirm-actions button.danger {
  border-color: rgba(212, 107, 98, 0.5);
  color: #ffffff;
  background: #a9473f;
}

.app-confirm-actions button.danger:hover,
.app-confirm-actions button.danger:focus-visible {
  border-color: #e0938b;
  background: #bb5148;
}

body.theme-light:not(.login-page) .app-confirm-overlay {
  background: rgba(31, 41, 48, 0.36);
  backdrop-filter: blur(3px);
}

body.theme-light:not(.login-page) .app-confirm-dialog {
  border-color: #d5aaa6;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(31, 41, 48, 0.25);
}

body.theme-light:not(.login-page) .app-confirm-icon {
  border-color: #dfb6b2;
  color: #a23c34;
  background: #fae9e7;
}

body.theme-light:not(.login-page) .app-confirm-copy strong {
  color: #202020;
}

body.theme-light:not(.login-page) .app-confirm-copy p {
  color: #5f696f;
}

body.theme-light:not(.login-page) .app-confirm-actions button {
  border-color: #b9c2c9;
  color: #30383d;
  background: #f5f6f7;
}

body.theme-light:not(.login-page) .app-confirm-actions button:hover,
body.theme-light:not(.login-page) .app-confirm-actions button:focus-visible {
  border-color: #8eb5d1;
  background: #e8f2f9;
}

body.theme-light:not(.login-page) .app-confirm-actions button.danger {
  border-color: #a23c34;
  color: #ffffff;
  background: #a23c34;
}

@media (max-width: 520px) {
  .app-confirm-overlay {
    align-items: end;
    padding: 10px;
  }

  .app-confirm-dialog {
    width: 100%;
    padding: 16px;
  }

  .app-confirm-actions button {
    flex: 1;
  }
}

.mfa-page {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
}

.mfa-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 24px;
  border: 1px solid rgba(210, 222, 232, 0.24);
  border-radius: 8px;
  color: #f5f8fa;
  background: rgba(4, 10, 16, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.mfa-panel-compact {
  width: min(460px, 100%);
}

.mfa-panel > img {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 0 20px;
}

.mfa-panel > header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.mfa-panel > header > i {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(52, 211, 122, 0.42);
  border-radius: 50%;
  color: #43dc83;
  background: rgba(52, 211, 122, 0.1);
  font-size: 24px;
}

.mfa-panel header span,
.mfa-panel header h1,
.mfa-panel header p {
  display: block;
  margin: 0;
}

.mfa-panel header span {
  color: #43dc83;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mfa-panel header h1 {
  margin-top: 2px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
}

.mfa-panel header p,
.mfa-help {
  color: rgba(225, 233, 239, 0.68);
  font-size: 13px;
}

.mfa-help-large {
  margin: 18px 0;
  font-size: 15px;
}

.mfa-error,
.mfa-recovery-warning {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  padding: 11px 12px;
  border: 1px solid rgba(224, 90, 80, 0.48);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(224, 90, 80, 0.16);
  font-size: 13px;
}

.mfa-recovery-warning {
  border-color: rgba(224, 177, 76, 0.42);
  background: rgba(224, 177, 76, 0.12);
}

.mfa-setup-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}

.mfa-qr {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 6px;
  background: #ffffff;
}

.mfa-qr img {
  width: 100%;
  height: auto;
}

.mfa-steps > p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 9px;
  color: rgba(235, 240, 244, 0.82);
  font-size: 13px;
}

.mfa-steps > p strong {
  display: grid;
  flex: 0 0 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #07100b;
  background: #43dc83;
  font-size: 11px;
}

.mfa-form {
  display: grid;
  gap: 8px;
}

.mfa-form label {
  color: rgba(225, 233, 239, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mfa-code-input {
  display: flex;
  height: 46px;
  align-items: center;
  border: 1px solid rgba(210, 222, 232, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.mfa-code-input:focus-within {
  border-color: #43dc83;
  box-shadow: 0 0 0 3px rgba(52, 211, 122, 0.12);
}

.mfa-code-input i {
  width: 42px;
  color: #43dc83;
  text-align: center;
}

.mfa-code-input input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-size: 18px;
  letter-spacing: 0;
}

.mfa-form button,
.mfa-primary-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #187a45;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mfa-form button:hover,
.mfa-primary-link:hover {
  color: #ffffff;
  background: #209554;
}

.mfa-help {
  margin: 13px 0 0;
}

.mfa-cancel {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 16px;
  color: rgba(225, 233, 239, 0.72);
  font-size: 13px;
  text-decoration: none;
}

.mfa-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.mfa-recovery-grid code {
  padding: 10px;
  border: 1px solid rgba(210, 222, 232, 0.2);
  border-radius: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

@media (max-width: 620px) {
  .mfa-page {
    display: block;
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: auto;
    padding: 12px;
  }

  .mfa-panel {
    margin: 18px auto;
    padding: 18px;
  }

  .mfa-setup-grid,
  .mfa-recovery-grid {
    grid-template-columns: 1fr;
  }

  .mfa-qr {
    width: min(220px, 100%);
    margin: 0 auto;
  }
}

.admin-day-user-lock {
  flex: 0 0 auto;
  color: #e36c63;
  font-size: 14px;
}

.admin-account-security {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 2px;
}

.admin-account-security article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid rgba(143, 164, 179, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-account-security article > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(143, 164, 179, 0.25);
  border-radius: 50%;
  color: #aebdc8;
  font-size: 18px;
}

.admin-account-security article > div {
  min-width: 0;
}

.admin-account-security article span,
.admin-account-security article strong,
.admin-account-security article small {
  display: block;
}

.admin-account-security article > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-account-security article strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.admin-account-security article small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-security article.is-ok > i {
  border-color: rgba(45, 207, 113, 0.35);
  color: #38cf79;
  background: rgba(45, 207, 113, 0.08);
}

.admin-account-security article.has-warning > i {
  border-color: rgba(225, 177, 76, 0.38);
  color: #e1b14c;
  background: rgba(225, 177, 76, 0.08);
}

.admin-account-security article.is-locked > i {
  border-color: rgba(224, 90, 80, 0.42);
  color: #e36c63;
  background: rgba(224, 90, 80, 0.1);
}

.admin-account-security form,
.admin-account-security form button {
  margin: 0;
}

.admin-account-security form button,
.admin-account-security article > a {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(55, 198, 113, 0.3);
  border-radius: 5px;
  color: #52d489;
  background: rgba(55, 198, 113, 0.08);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.admin-account-security form button.danger {
  border-color: rgba(224, 90, 80, 0.38);
  color: #ec8078;
  background: rgba(224, 90, 80, 0.08);
}

body.theme-light .admin-account-security article {
  border-color: #cbd5db;
  background: #f7f9fa;
}

body.theme-light .admin-account-security article > i {
  border-color: #c4ced4;
  color: #51636f;
  background: #ffffff;
}

body.theme-light .admin-account-security article.is-ok > i {
  border-color: #9ac7ad;
  color: #276f48;
  background: #e9f5ee;
}

body.theme-light .admin-account-security article.has-warning > i {
  border-color: #d5bd7d;
  color: #7f6419;
  background: #faf4e2;
}

body.theme-light .admin-account-security article.is-locked > i {
  border-color: #d8a09b;
  color: #a23f37;
  background: #fae9e7;
}

body.theme-light .admin-account-security form button,
body.theme-light .admin-account-security article > a {
  border-color: #9abda8;
  color: #245f40;
  background: #edf6f0;
}

body.theme-light .admin-account-security form button.danger {
  border-color: #d3a09c;
  color: #953b34;
  background: #faecea;
}

@media (max-width: 900px) {
  .admin-account-security {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-account-security article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-account-security form,
  .admin-account-security article > a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-account-security form button {
    width: 100%;
  }
}
