* {
  box-sizing: border-box;
}

:root {
  --primary: #1683f7;
  --primary-dark: #0b1f52;
  --orange: #ff9138;
  --green: #08a957;
  --gold: #b8974e;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --line: #e1e8f0;
  --text: #162033;
  --muted: #6d7a8a;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary-dark);
  z-index: 20;
}

.topbar {
  position: fixed;
  top: 6px;
  left: 0;
  bottom: 0;
  width: 184px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 24px rgba(25, 42, 70, 0.06);
  z-index: 10;
}

.topbar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.brand {
  padding: 26px 8px 24px;
  color: #111827;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 900;
}

.topbar-inner > div:last-child,
.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #202938;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-left: 4px solid transparent;
  margin-left: 0 !important;
}

.nav-label {
  flex: 1;
  min-width: 0;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(229, 57, 53, 0.24);
}

.nav-link.active .nav-badge,
.nav-link:hover .nav-badge {
  background: #c62828;
  color: #ffffff;
}

.nav-group {
  display: grid;
  gap: 2px;
  padding-bottom: 6px;
}

.nav-parent {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  color: #202938;
  font-size: 14px;
  font-weight: 900;
  border-left: 4px solid transparent;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-parent::-webkit-details-marker {
  display: none;
}

.nav-parent::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
  transition: transform 160ms ease;
}

.nav-group[open] .nav-parent::after {
  transform: rotate(45deg) translateY(-2px);
}

.nav-group.active .nav-parent {
  background: #eaf3ff;
  color: #0f66c2;
  border-left-color: var(--primary);
}

.nav-submenu {
  display: grid;
  gap: 2px;
}

.nav-sublink {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 34px;
  color: #526170;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border-left: 4px solid transparent;
}

.nav-sublink::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c1ccd8;
}

.nav-link:hover,
.nav-link.active,
.nav-sublink:hover,
.nav-sublink.active {
  background: #fff0d9;
  color: #ff8500;
  border-left-color: #ff8500;
}

.nav-sublink:hover::before,
.nav-sublink.active::before {
  background: #ff8500;
}

.nav-logout {
  margin-top: auto !important;
}

.page {
  width: auto;
  margin-left: 184px;
  padding: 20px 18px 32px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(27, 39, 56, 0.14);
}

.panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h1 {
  margin: 0;
  font-size: 24px;
  color: #101a3d;
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel-body {
  padding: 20px;
}

.dashboard-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  min-height: 96px;
  padding: 18px 16px;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 14px rgba(27, 39, 56, 0.12);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card span {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.stat-icon {
  width: 32px;
  height: 32px;
  opacity: 0.92;
}

.stat-orange {
  background: var(--orange);
}

.stat-blue {
  background: var(--primary);
}

.stat-green {
  background: var(--green);
}

.stat-gold {
  background: var(--gold);
}

.stat-red {
  background: #d84a4a;
}

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

.chart-card {
  min-height: 240px;
  padding: 18px;
}

.chart-card h2,
.table-title {
  margin: 0 0 12px;
  color: #101a3d;
  font-size: 20px;
}

.line-chart {
  width: 100%;
  min-height: 170px;
}

.donut-wrap {
  display: grid;
  place-items: center;
  min-height: 170px;
}

.driver-summary {
  margin-top: 8px;
  color: #263345;
  font-weight: 700;
  line-height: 1.6;
}

.profile-hero {
  margin-bottom: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #eaf3ff;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main h1 {
  margin: 0 0 8px;
  color: #101a3d;
  font-size: 26px;
}

.profile-main p {
  margin: 0 0 12px;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.info-grid > div,
.document-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.info-grid span,
.document-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-grid strong {
  color: #172033;
  word-break: break-word;
}

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

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

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.review-list {
  min-width: 0;
}

.preview-pane {
  position: sticky;
  top: 20px;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.preview-pane h2 {
  margin: 0 0 10px;
  color: #101a3d;
}

.preview-pane p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.preview-image,
.preview-frame {
  width: 100%;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.preview-image {
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.preview-empty {
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #c9d5df;
  border-radius: 10px;
  background: white;
  padding: 24px;
}

.payment-summary {
  display: grid;
  gap: 14px;
}

.payment-summary > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}

.payment-summary span,
.payment-summary small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.payment-summary strong {
  display: block;
  margin: 8px 0;
  color: var(--primary-dark);
  font-size: 24px;
}

.filter-panel {
  margin-bottom: 16px;
}

.period-form {
  display: grid;
  gap: 16px;
}

.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.period-pill {
  position: relative;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #cfd9e4;
  border-radius: 999px;
  background: #f7f9fc;
  color: #263345;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.period-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.period-pill.active,
.period-pill:has(input:checked) {
  border-color: var(--primary);
  background: #eaf3ff;
  color: #0f66c2;
}

.period-field[hidden] {
  display: none;
}

.filter-fields {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 14px;
  align-items: end;
}

.filter-fields .button {
  min-height: 44px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar input {
  min-width: min(360px, 100%);
  min-height: 44px;
}

.table-wrap {
  overflow: auto;
}

.ride-map {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #eef2f6;
}

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

th {
  text-align: left;
  padding: 12px 10px;
  background: #eef2f6;
  color: #2d3441;
  font-size: 14px;
}

td {
  padding: 12px 10px;
  border-bottom: 1px solid #e7edf3;
  color: #626f7f;
  vertical-align: top;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 800;
}

.field small {
  color: var(--muted);
  line-height: 1.35;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge-ok {
  background: #dff5e4;
  color: #17663d;
}

.badge-bad {
  background: #fde1e1;
  color: #9f1f1f;
}

.badge-warn {
  background: #fff0cc;
  color: #8a5a00;
}

.badge-muted {
  background: #e9eef3;
  color: #526170;
}

.badge-info {
  background: #eaf3ff;
  color: #0f66c2;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d5df;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  background: white;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(22, 131, 247, 0.18);
  border-color: var(--primary);
}

.actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mini-action-form {
  min-width: 220px;
  display: grid;
  gap: 8px;
}

.mini-action-form select,
.mini-action-form textarea,
.mini-action-form .button {
  min-height: 36px;
  font-size: 13px;
}

.button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 18px;
  background: #15639b;
  color: white;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.secondary {
  background: #e8eef3;
  color: #22313f;
}

.button.warning {
  background: var(--orange);
}

.button.success {
  background: #12a150;
}

.button.danger {
  background: #d93025;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #bde2ca;
  background: #eaf8ef;
  color: #1d6b36;
  font-weight: 700;
}

.flash.error {
  border-color: #f0b9b9;
  background: #fff0f0;
  color: #a22b2b;
}

.live-panel {
  margin-bottom: 16px;
}

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

.live-updated {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0f66c2;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.live-map-shell {
  position: relative;
}

.live-map {
  width: 100%;
  height: 540px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef3;
}

.live-map .leaflet-control-attribution {
  font-size: 10px;
}

.live-map-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #263345;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(27, 39, 56, 0.16);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(8, 169, 87, 0.14);
  flex: 0 0 10px;
}

.live-stats {
  margin-top: 0;
}

.driver-car-icon {
  background: transparent;
  border: 0;
}

.driver-cluster {
  background: transparent;
  border: 0;
}

.driver-cluster div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle at 35% 30%, #44a2ff 0, var(--primary) 60%, #0f66c2 100%);
  color: white;
  border: 4px solid white;
  box-shadow: 0 8px 22px rgba(15, 36, 64, 0.28), 0 0 0 8px rgba(22, 131, 247, 0.16);
}

.driver-cluster strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.driver-cluster span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.driver-cluster-medium div {
  background: radial-gradient(circle at 35% 30%, #28c77a 0, var(--green) 62%, #087f45 100%);
  box-shadow: 0 8px 22px rgba(15, 36, 64, 0.28), 0 0 0 9px rgba(8, 169, 87, 0.16);
}

.driver-cluster-large div {
  background: radial-gradient(circle at 35% 30%, #ffad64 0, var(--orange) 62%, #d66a00 100%);
  box-shadow: 0 8px 22px rgba(15, 36, 64, 0.28), 0 0 0 10px rgba(255, 145, 56, 0.18);
}

.driver-cluster-large strong {
  font-size: 23px;
}

.dynamic-tooltip-card {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: #101a3d;
}

.dynamic-tooltip-card strong {
  font-size: 13px;
}

.dynamic-tooltip-card span {
  color: #ef4444;
  font-size: 18px;
  font-weight: 950;
}

.dynamic-tooltip-card small {
  color: #526170;
  font-size: 11px;
  font-weight: 800;
}

.dynamic-center-label {
  background: transparent;
  border: 0;
}

.dynamic-center-label span {
  display: grid;
  min-width: 66px;
  height: 32px;
  place-items: center;
  border: 3px solid var(--dynamic-color, #f97316);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #101a3d;
  box-shadow: 0 8px 22px rgba(15, 36, 64, 0.18);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.driver-car-marker {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 131, 247, 0.18);
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(15, 36, 64, 0.28);
  transform: rotate(var(--car-rotation, 0deg)) scale(var(--car-scale, 1));
  transform-origin: center;
  transition: transform 140ms ease, opacity 140ms ease;
}

.driver-car-marker::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 22px;
  height: 15px;
  border-radius: 7px 7px 5px 5px;
  background: var(--primary);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.driver-car-marker::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--primary);
}

.car-window {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 12px;
  height: 5px;
  border-radius: 999px;
  background: #dff0ff;
  z-index: 2;
}

.car-wheel {
  position: absolute;
  top: 25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #101a3d;
  z-index: 3;
}

.wheel-left {
  left: 11px;
}

.wheel-right {
  right: 11px;
}

.driver-tooltip {
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 8px 22px rgba(20, 33, 52, 0.18);
}

.driver-tooltip-card {
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 10px 12px;
  color: #162033;
  font-size: 12px;
  line-height: 1.3;
}

.driver-tooltip-card strong {
  color: #101a3d;
  font-size: 14px;
}

.driver-tooltip-card span,
.driver-tooltip-card small {
  color: #526170;
}

.support-filters {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(190px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.support-list {
  display: grid;
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.support-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.support-ticket:hover,
.support-ticket.active {
  background: #f7faff;
}

.support-ticket.active {
  box-shadow: inset 4px 0 0 var(--primary);
}

.support-ticket strong,
.support-ticket span,
.support-ticket small {
  display: block;
}

.support-ticket strong {
  color: #101a3d;
  line-height: 1.25;
}

.support-ticket span,
.support-ticket small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.3;
}

.support-ticket-meta {
  min-width: 138px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.support-detail {
  min-width: 0;
}

.support-operator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.support-operator > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.support-operator span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.support-operator strong {
  color: #162033;
  word-break: break-word;
}

.support-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.support-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.support-context > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.support-context span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.support-context strong {
  color: #162033;
  word-break: break-word;
}

.support-description {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.support-description p {
  margin: 8px 0 0;
  color: #263345;
  line-height: 1.45;
}

.support-chat {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}

.support-message {
  width: min(78%, 620px);
  padding: 12px 14px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(27, 39, 56, 0.08);
}

.support-message.admin {
  justify-self: end;
  background: #eaf3ff;
}

.support-message.driver {
  justify-self: start;
}

.support-message strong {
  display: block;
  color: #101a3d;
  margin-bottom: 5px;
}

.support-message p {
  margin: 0;
  color: #263345;
  line-height: 1.45;
}

.support-message span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.support-reply {
  display: grid;
  gap: 14px;
}

.notice-form {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr);
  gap: 14px;
}

.notice-message,
.notice-form .actions {
  grid-column: 1 / -1;
}

.notice-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.notice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.notice-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.notice-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notice-card h2 {
  margin: 0;
  color: #101a3d;
  font-size: 18px;
}

.notice-card p {
  margin: 8px 0 0;
  color: #334155;
  line-height: 1.5;
}

.notice-card aside {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.notice-card aside span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.notice-card aside strong {
  color: #162033;
  word-break: break-word;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f8fafc;
  font-weight: 800;
}

.tariff-panel {
  margin-top: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  color: #101a3d;
  font-size: 18px;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section-title.compact {
  margin-bottom: 12px;
}

.tariff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.tariff-map-card {
  min-width: 0;
}

.tariff-map {
  width: 100%;
  height: 560px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #eaf3ff;
}

.tariff-map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tariff-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.compact-grid {
  gap: 12px;
}

.checkbox-field {
  align-content: end;
}

.checkbox-field label,
.category-toggle-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  font-weight: 900;
}

.checkbox-field input[type="checkbox"],
.category-toggle-grid input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.category-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tariff-category-prices {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tariff-category-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.tariff-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #101a3d;
  font-size: 14px;
  font-weight: 900;
}

.tariff-category-title input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.category-toggle-grid label {
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.tariff-region-list {
  display: grid;
  gap: 12px;
}

.tariff-region-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.region-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.region-title h2 {
  margin: 0;
  color: #101a3d;
  font-size: 18px;
}

.tariff-region-card p {
  margin: 0;
  color: #526170;
  font-size: 13px;
  line-height: 1.45;
}

.tariff-region-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.approved {
  background: #dff5e4;
  color: #17663d;
}

.status-pill.muted {
  background: #e9eef3;
  color: #526170;
}

.category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.category-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.category-badges .on {
  background: #eaf3ff;
  color: #0f66c2;
}

.category-badges .dynamic-on {
  background: #fff4d8;
  color: #9a5b00;
}

.category-badges .off {
  background: #f0f3f6;
  color: #8a96a3;
  text-decoration: line-through;
}

.tariff-card-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tariff-card-values span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-page::before {
  display: none;
}

.login-card {
  width: min(420px, 100%);
}

.check-line {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 800;
  gap: 8px;
  margin-top: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.floating-actions {
  bottom: 18px;
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  position: sticky;
  z-index: 4;
}

.soft-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.vehicle-catalog-page .panel-header {
  padding: 10px 16px;
}

.vehicle-catalog-page .panel-header h1 {
  font-size: 17px;
}

.vehicle-catalog-page .panel-header p {
  font-size: 12px;
  margin-top: 4px;
}

.vehicle-catalog-page th,
.vehicle-catalog-page td {
  font-size: 11px;
  padding: 5px 8px;
}

.vehicle-catalog-page td strong {
  font-size: 11px;
  font-weight: 700;
}

.vehicle-catalog-page input[type="checkbox"] {
  min-height: 0;
  height: 12px;
  width: 12px;
  padding: 0;
  border-radius: 3px;
}

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

  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .profile-hero,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .preview-pane {
    position: static;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .filter-fields {
    grid-template-columns: 1fr;
  }

  .support-filters,
  .support-layout,
  .support-operator,
  .support-context,
  .notice-form,
  .tariff-layout,
  .notice-card {
    grid-template-columns: 1fr;
  }

  .notice-card aside {
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .support-list,
  .support-chat {
    max-height: none;
  }

  .live-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tariff-map {
    height: 460px;
  }

  .tariff-region-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar-inner {
    min-height: auto;
  }

  .topbar-inner > div:last-child,
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 10px 10px;
  }

  .nav-logout {
    margin-top: 0 !important;
  }

  .nav-group {
    min-width: 170px;
    padding-bottom: 0;
  }

  .nav-link,
  .nav-parent,
  .nav-sublink {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .nav-sublink {
    padding-left: 18px;
  }

  .brand {
    padding: 18px;
  }

  .page {
    margin-left: 0;
  }

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

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

  .document-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-map {
    height: 440px;
    min-height: 360px;
  }

  .live-map-note {
    left: 10px;
    right: 10px;
    bottom: 10px;
    white-space: normal;
    border-radius: 10px;
  }

  .category-toggle-grid {
    grid-template-columns: 1fr;
  }

  .tariff-map {
    height: 380px;
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
