html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.db-map {
  --db-map-height: 30rem;
  position: relative;
  min-height: 16rem;
  height: var(--db-map-height);
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: .5rem;
  background: #eef5f0;
}

.db-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-v2 .db-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.db-map-background {
  fill: #edf6ef;
}

.db-map-layer-hidden {
  display: none;
}

.db-map-polygon {
  fill-rule: evenodd;
  stroke-width: .8;
}

.db-map-polygon-built-up {
  fill: #d8dde3;
  stroke: #c4ccd5;
}

.db-map-polygon-forest {
  fill: #b9d99f;
  stroke: #97bf78;
}

.db-map-polygon-water {
  fill: #a8d7f1;
  stroke: #7dbbdf;
}

.db-map-polygon-default {
  fill: #e2e8f0;
  stroke: #cbd5e1;
}

.db-map-road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.db-map-road-major {
  stroke: #f8fafc;
  stroke-width: 7;
  filter: drop-shadow(0 1px 1px rgb(15 23 42 / 18%));
}

.db-map-road-medium {
  stroke: #fff;
  stroke-width: 5;
  filter: drop-shadow(0 1px 1px rgb(15 23 42 / 14%));
}

.db-map-road-minor {
  stroke: #fff;
  stroke-width: 3;
  opacity: .95;
}

.db-map-road-path {
  stroke: #f8fafc;
  stroke-width: 2;
  stroke-dasharray: 7 7;
  opacity: .8;
}

.db-map-topology-segment {
  fill: none;
  stroke: #2563eb;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
}

.db-map-topology-node {
  fill: #1d4ed8;
  stroke: #fff;
  stroke-width: 1.2;
}

.db-map-jimka {
  fill: #dc2626;
  stroke: #fff;
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 2px rgb(15 23 42 / 22%));
}

.db-map-cov circle {
  fill: #0f766e;
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgb(15 23 42 / 24%));
}

.db-map-cov path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.db-map-plan-route {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
}

.db-map-plan-stop circle {
  fill: #f59e0b;
  stroke: #fff;
  stroke-width: 1.5;
}

.db-map-plan-stop text {
  fill: #111827;
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}

.db-map-collection-group {
  fill: #7c3aed;
  stroke: #fff;
  stroke-width: 1.3;
  opacity: .9;
}

.db-map-layer-controls {
  position: absolute;
  z-index: 2;
  top: .85rem;
  left: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-width: calc(100% - 1.7rem);
  padding: .45rem .55rem;
  border: 1px solid rgb(148 163 184 / 34%);
  border-radius: .45rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 20px rgb(15 23 42 / 10%);
}

.db-map-layer-controls label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.db-map-layer-controls input {
  width: .9rem;
  height: .9rem;
  margin: 0;
}

.db-map-legend {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  max-width: calc(100% - 1.7rem);
  padding: .5rem .65rem;
  border: 1px solid rgb(148 163 184 / 34%);
  border-radius: .45rem;
  background: rgb(255 255 255 / 90%);
  color: #475569;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgb(15 23 42 / 10%);
}

.db-map-legend span {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  white-space: nowrap;
}

.db-map-legend i {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border-radius: .15rem;
}

.legend-built-up {
  background: #d8dde3;
}

.legend-forest {
  background: #b9d99f;
}

.legend-water {
  background: #a8d7f1;
}

.legend-road {
  height: .25rem !important;
  margin-block: .275rem;
  background: #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.legend-topology {
  height: .25rem !important;
  margin-block: .275rem;
  background: #2563eb;
}

.legend-jimka {
  border-radius: 50% !important;
  background: #dc2626;
}

.legend-cov {
  border-radius: 50% !important;
  background: #0f766e;
}

.legend-plan {
  background: #f59e0b;
}

.db-map-empty {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 2rem;
  color: #64748b;
  text-align: center;
}

.db-map-empty strong,
.db-map-empty span {
  display: block;
}

.db-map-empty strong {
  color: #334155;
  font-size: 1.1rem;
}

.db-map-admin-preview {
  min-height: 32rem;
}

.role-area-placeholder {
  display: grid;
  min-height: 24rem;
  place-items: center;
  padding: 3rem 1rem;
  background: #f8fafc;
}

.role-area-placeholder > div {
  width: min(42rem, 100%);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 16px 35px rgb(15 23 42 / 7%);
}

.role-area-placeholder h1 {
  margin: .25rem 0 .75rem;
  color: #203a75;
  font-size: 2rem;
  font-weight: 800;
}

.role-area-placeholder p:last-child {
  margin: 0;
  color: #64748b;
}

.dispatcher-body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #1e293b;
}

.dispatcher-shell {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.dispatcher-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 16rem;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

.dispatcher-brand {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: 1.5rem;
  background: #203a75;
  color: #fff;
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .75rem;
  background: rgb(255 255 255 / 18%);
}

.brand-mark svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-title {
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  color: rgb(255 255 255 / 76%);
  font-size: .875rem;
}

.dispatcher-nav {
  flex: 1;
  padding: 1rem;
  overflow: auto;
}

.nav-label {
  padding: .75rem .75rem .45rem;
  color: rgb(32 58 117 / 70%);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dispatcher-nav .nav-link {
  display: flex;
  gap: .7rem;
  align-items: center;
  min-height: 2.6rem;
  margin-bottom: .2rem;
  padding: .65rem .85rem;
  border-radius: .65rem;
  color: rgb(32 58 117 / 76%);
  font-weight: 600;
}

.dispatcher-nav .nav-link:hover {
  background: rgb(147 185 66 / 12%);
  color: #203a75;
}

.dispatcher-nav .nav-link.active {
  background: #203a75;
  color: #fff;
  box-shadow: 0 10px 20px rgb(32 58 117 / 18%);
}

.nav-icon {
  display: grid;
  flex: 0 0 1.25rem;
  place-items: center;
  font-size: 1rem;
}

.dispatcher-user {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.user-avatar {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  background: #203a75;
  color: #fff;
  font-weight: 700;
}

.user-name {
  color: #203a75;
  font-size: .9rem;
  font-weight: 700;
}

.user-status {
  color: #64748b;
  font-size: .78rem;
}

.dispatcher-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.dispatcher-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.dispatcher-topbar h1,
.dashboard-heading h2 {
  margin: 0;
  color: #203a75;
  font-size: 1.35rem;
  font-weight: 800;
}

.eyebrow {
  color: #64748b;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
}

.dispatcher-primary {
  border-color: #203a75;
  background: #203a75;
}

.dispatcher-content {
  flex: 1;
  padding: 1.5rem;
  overflow: auto;
  background: #f8fafc;
}

.dashboard-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dashboard-heading p {
  margin: .15rem 0 0;
  color: #64748b;
}

.live-pill {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .45rem .75rem;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: .85rem;
  font-weight: 700;
}

.live-pill span {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #22c55e;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card,
.dashboard-card {
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 16px 35px rgb(15 23 42 / 7%);
}

.metric-card {
  padding: 1rem;
  border-left: 5px solid #3b82f6;
}

.metric-green {
  border-left-color: #22c55e;
}

.metric-red {
  border-left-color: #ef4444;
}

.metric-amber {
  border-left-color: #f59e0b;
}

.metric-label,
.metric-detail,
.card-heading p,
.pickup-meta,
.vehicle-row p,
.vehicle-location,
.alert-row p {
  color: #64748b;
}

.metric-label {
  font-size: .82rem;
  font-weight: 700;
}

.metric-value {
  margin-top: .3rem;
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.metric-detail {
  margin-top: .45rem;
  font-size: .84rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(22rem, 1fr);
  gap: 1rem;
}

.dashboard-card {
  min-width: 0;
  overflow: hidden;
}

.dashboard-card-large {
  grid-row: span 3;
}

.card-heading {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  padding: 1.1rem 1.25rem .75rem;
}

.card-heading h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 800;
}

.card-heading p {
  margin: .2rem 0 0;
  font-size: .85rem;
}

.soft-badge,
.status-badge,
.priority {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}

.soft-badge {
  padding: .35rem .65rem;
  background: #eff6ff;
  color: #1d4ed8;
}

.pickup-list,
.vehicle-list,
.alert-list {
  padding: 0 .75rem 1rem;
}

.pickup-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem .55rem;
  border-top: 1px solid #f1f5f9;
}

.pickup-time {
  color: #64748b;
  font-weight: 800;
}

.pickup-title {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.priority {
  padding: .2rem .5rem;
  background: #f1f5f9;
  color: #475569;
}

.priority-kritické {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-vysoké {
  background: #ffedd5;
  color: #c2410c;
}

.fill-bar {
  height: .45rem;
  margin-top: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.fill-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93b942, #14b8a6);
}

.fill-bar.muted span {
  background: #203a75;
}

.status-badge {
  padding: .32rem .55rem;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.map-widget {
  position: relative;
  height: 17.5rem;
  margin: 0 .75rem 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: .65rem;
  background:
    linear-gradient(135deg, rgb(148 185 66 / 12%), transparent 36%),
    linear-gradient(45deg, #f1f5f9, #eff6ff);
}

.map-street {
  position: absolute;
  height: .45rem;
  border-radius: 999px;
  background: rgb(148 163 184 / 34%);
}

.street-a {
  top: 34%;
  left: -8%;
  width: 75%;
  transform: rotate(18deg);
}

.street-b {
  top: 61%;
  right: -10%;
  width: 82%;
  transform: rotate(-22deg);
}

.street-c {
  top: 48%;
  left: 18%;
  width: 70%;
  transform: rotate(82deg);
}

.map-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgb(100 116 139 / 55%);
  font-weight: 700;
}

.map-dot,
.map-vehicle {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.map-dot {
  width: .85rem;
  height: .85rem;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 .25rem rgb(59 130 246 / 14%), 0 8px 16px rgb(15 23 42 / 16%);
}

.map-blue {
  background: #3b82f6;
}

.map-amber {
  background: #f59e0b;
}

.map-red {
  background: #ef4444;
}

.map-vehicle {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgb(15 23 42 / 20%);
}

.vehicle-row,
.alert-row {
  padding: .85rem;
  border-top: 1px solid #f1f5f9;
}

.vehicle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-top span {
  color: #203a75;
  font-size: .78rem;
  font-weight: 800;
}

.vehicle-row p,
.alert-row p {
  margin: .2rem 0;
  font-size: .86rem;
}

.vehicle-location {
  font-size: .78rem;
}

.alert-row {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  border-left: 4px solid #3b82f6;
}

.alert-critical {
  border-left-color: #ef4444;
}

.alert-warning {
  border-left-color: #f59e0b;
}

.alert-row time {
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .metric-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .dispatcher-shell,
  .dispatcher-topbar,
  .dashboard-heading {
    display: block;
  }

  .dispatcher-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .dispatcher-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-label {
    grid-column: 1 / -1;
  }

  .dispatcher-user {
    display: none;
  }

  .topbar-actions {
    justify-content: flex-start;
    margin-top: .9rem;
  }

  .dispatcher-content {
    padding: 1rem;
  }

  .metric-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pickup-row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .status-badge {
    grid-column: 2;
    justify-self: start;
  }
}

.dashboard-v2 {
  --brand-blue: #203a75;
  --brand-green: #93b942;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-v2 svg:not(.db-map-svg) {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-v2 .dispatcher-sidebar {
  position: relative;
  z-index: 50;
  flex: 0 0 16rem;
  width: 16rem;
  min-height: 100vh;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

.dashboard-v2 .dispatcher-brand {
  gap: .75rem;
  padding: 1.5rem;
  background: var(--blue-600);
}

.dashboard-v2 .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
}

.dashboard-v2 .brand-mark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.dashboard-v2 .brand-title {
  font-size: 1.125rem;
}

.dashboard-v2 .brand-subtitle {
  font-size: .75rem;
}

.dashboard-v2 .dispatcher-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem .75rem;
}

.dashboard-v2 .nav-label {
  padding: 0 .75rem .5rem;
  color: var(--slate-400);
  font-size: .75rem;
  line-height: 1rem;
}

.dashboard-v2 .nav-link {
  gap: .75rem;
  min-height: 2.25rem;
  margin: 0 0 .25rem;
  padding: .5rem .75rem;
  border-radius: .75rem;
  color: var(--slate-600);
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.dashboard-v2 .nav-link svg {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.dashboard-v2 .nav-link:hover {
  background: var(--slate-100);
  color: var(--blue-600);
}

.dashboard-v2 .nav-link.active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
}

.dashboard-v2 .dispatcher-user {
  padding: 1rem;
  border-top-color: #e5e7eb;
  background: #f9fafb;
}

.dashboard-v2 .user-avatar {
  background: var(--blue-600);
}

.dashboard-v2 .user-name {
  color: var(--slate-700);
}

.dashboard-v2 .user-status {
  color: #16a34a;
}

.icon-button,
.mobile-menu-button,
.remove-task {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  border-radius: .375rem;
  color: #6b7280;
}

.icon-button:hover,
.mobile-menu-button:hover {
  background: #e5e7eb;
}

.dashboard-v2 .dispatcher-main {
  height: 100vh;
  overflow: hidden;
}

.dashboard-v2 .dispatcher-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: .75rem 1.5rem;
  border-bottom-color: #e5e7eb;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.topbar-title h1 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  color: var(--slate-600);
}

.app-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.4rem;
  padding: .45rem .75rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.app-button-green {
  border: 1px solid var(--brand-green);
  background: #fff;
  color: var(--brand-green);
}

.app-button-green:hover {
  background: var(--brand-green);
  color: #fff;
}

.app-button-light {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--slate-700);
}

.app-button-light:hover {
  background: #f3f4f6;
}

.app-button-primary {
  border: 1px solid var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.app-button-primary:hover {
  background: rgb(32 58 117 / 90%);
}

.dashboard-v2 .dispatcher-content {
  height: calc(100vh - 4.15rem);
  padding: 1.5rem;
  overflow: auto;
  background: var(--slate-50);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid #f3f4f6;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
  transition: box-shadow .15s ease;
}

.summary-card:hover {
  box-shadow: 0 4px 6px -1px rgb(15 23 42 / 10%);
}

.summary-card.selected-date {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #fff, #eff6ff);
}

.summary-card p {
  margin: 0 0 .25rem;
  color: #6b7280;
  font-size: .875rem;
  font-weight: 500;
}

.summary-card small {
  color: #9ca3af;
  font-size: .75rem;
}

.summary-inline {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.summary-number {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 600;
}

.summary-number.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.summary-breakdown {
  color: #6b7280;
  font-size: .75rem;
  line-height: 1.35;
}

.summary-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .5rem;
}

.summary-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.summary-icon.danger {
  background: #fef2f2;
  color: #ef4444;
}

.summary-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.summary-icon.red {
  background: #fef2f2;
  color: #dc2626;
}

.summary-icon.green {
  background: #f0fdf4;
  color: #16a34a;
}

.summary-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.summary-icon.indigo {
  background: #eef2ff;
  color: #6366f1;
}

.summary-icon.neutral {
  background: #f9fafb;
  color: #6b7280;
}

.tank-chips {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: .125rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.chip.red {
  background: #fee2e2;
  color: #b91c1c;
}

.chip.orange {
  background: #ffedd5;
  color: #c2410c;
}

.chip.green {
  background: #dcfce7;
  color: #15803d;
}

.summary-big {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.daily-summary-card {
  display: grid;
  grid-template-columns: minmax(10rem, .55fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .65rem .8rem;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: none;
}

.daily-summary-card.today {
  border-color: #38bdf8;
}

.daily-summary-card.selected {
  border-color: #f59e0b;
}

.daily-summary-heading span,
.daily-summary-metrics span,
.daily-summary-risk span {
  color: var(--slate-500);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.daily-summary-heading strong {
  display: block;
  margin-top: .15rem;
  color: var(--slate-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
  line-height: 1.2;
}

.daily-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.daily-summary-metrics div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem;
  padding: .4rem .5rem;
  border: 1px solid var(--slate-200);
  border-radius: .375rem;
  background: #fff;
}

.daily-summary-metrics strong {
  display: block;
  color: var(--slate-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
  line-height: 1.1;
  text-align: right;
}

.daily-summary-risk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.daily-summary-risk span {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .25rem .45rem;
  border: 1px solid var(--slate-200);
  border-radius: .375rem;
  background: #fff;
  white-space: nowrap;
}

.cov-alert {
  color: #ea580c;
  font-weight: 700;
}

.prediction-card,
.map-card,
.today-plan-card {
  border: 1px solid #f1f5f9;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 10%), 0 4px 6px -4px rgb(15 23 42 / 10%);
}

.prediction-card {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.prediction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f8fafc;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(12px);
}

.prediction-header h2,
.map-toolbar h2,
.today-plan-header h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 700;
}

.prediction-window-label {
  margin: .25rem 0 0;
  color: var(--slate-500);
  font-size: .8125rem;
}

.prediction-header-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .625rem;
}

.prediction-window-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: .5rem;
  background: #fff;
}

.prediction-window-controls a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .7rem;
  border-right: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}

.prediction-window-controls a:last-child {
  border-right: 0;
}

.prediction-window-controls a:hover {
  background: var(--slate-50);
  color: var(--brand-blue);
}

.prediction-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--slate-500);
  font-size: .75rem;
}

.prediction-sort-controls span {
  margin-right: .25rem;
  font-weight: 600;
}

.prediction-sort-controls a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .25rem .55rem;
  border: 1px solid var(--slate-200);
  border-radius: .375rem;
  background: #fff;
  color: var(--slate-700);
  font-weight: 700;
  text-decoration: none;
}

.prediction-sort-controls a:hover,
.prediction-sort-controls a.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand-blue);
}

.prediction-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--slate-700);
  font-size: .75rem;
}

.prediction-legend span {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
}

.prediction-legend i {
  display: block;
  width: .75rem;
  height: .75rem;
  border-radius: .125rem;
}

.legend-red {
  background: #ef4444;
}

.legend-orange {
  background: #fb923c;
}

.legend-yellow {
  background: #fde047;
}

.legend-green {
  background: #86efac;
}

.legend-history {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
}

.legend-today {
  border: 2px solid #0284c7;
  background: #ecfeff;
}

.legend-prediction {
  border: 1px solid #2563eb;
  background: #dbeafe;
}

.prediction-scroll {
  padding: 1rem;
  overflow-x: auto;
}

.prediction-table {
  position: relative;
  --tank-col: 8rem;
  --day-col: 34px;
  --timeline-width: calc(var(--tank-col) + 1428px);
  width: max-content;
  min-width: var(--timeline-width);
}

.prediction-selected-column {
  position: absolute;
  top: -.35rem;
  bottom: -.25rem;
  left: calc(var(--tank-col) + var(--selected-column-left));
  z-index: 4;
  width: var(--day-col);
  border: 2px solid rgb(14 116 144 / 72%);
  border-radius: .375rem;
  background: rgb(14 165 233 / 5%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 90%);
  pointer-events: none;
}

.pickup-bars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--tank-col) repeat(42, var(--day-col));
  width: var(--timeline-width);
  gap: 0;
  margin-bottom: .25rem;
}

.pickup-bar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.6rem;
  margin: 1px;
  border-radius: .25rem;
  background: transparent;
  box-shadow: none;
}

.volume-row-label {
  display: flex;
  align-items: flex-end;
  color: var(--slate-600);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.pickup-bar-cell span {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.pickup-bar-cell.history {
  background: transparent;
  box-shadow: none;
}

.pickup-bar-cell.today {
  background: transparent;
  box-shadow: none;
}

.pickup-bar-cell.selected {
  box-shadow: none;
}

.pickup-bar-cell.prediction {
  background: transparent;
  box-shadow: none;
}

.pickup-bar-cell.prediction span {
  color: #1d4ed8;
  font-weight: 700;
}

.pickup-bar-cell.weekend {
  background: transparent;
  box-shadow: none;
}

.pickup-bar-cell.prediction.weekend {
  background: transparent;
  box-shadow: none;
}

.pickup-bar-cell.today.weekend {
  background: transparent;
  box-shadow: none;
}

.pickup-bar-cell.today span {
  color: #0e7490;
  font-weight: 800;
}

.pickup-bar-cell.history span {
  color: #94a3b8;
}

.pickup-bar-cell.no-data:not(.today) span {
  color: #cbd5e1;
  font-weight: 500;
}

.prediction-days {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--tank-col) repeat(42, var(--day-col));
  width: var(--timeline-width);
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--slate-200);
}

.tank-column-header {
  display: flex;
  align-items: flex-end;
  color: var(--slate-600);
  font-size: .875rem;
  font-weight: 600;
}

.prediction-day {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--day-col) - 2px);
  min-height: 1.7rem;
  margin: 1px;
  border: 0;
  border-radius: .25rem;
  box-sizing: border-box;
  color: var(--slate-400);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.prediction-day.history {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgb(148 163 184 / 16%);
  color: #94a3b8;
}

.prediction-day.today {
  background: #ecfeff;
  box-shadow: inset 0 0 0 2px rgb(8 145 178 / 60%);
  color: #0e7490;
  font-weight: 800;
}

.prediction-day.prediction {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 34%);
  color: #1d4ed8;
}

.prediction-day.weekend {
  background: #e2e8f0;
  box-shadow: inset 0 0 0 2px rgb(100 116 139 / 26%);
  color: #334155;
}

.prediction-day.prediction.weekend {
  background: #bfdbfe;
  box-shadow: inset 0 0 0 2px rgb(37 99 235 / 42%);
  color: #1e3a8a;
}

.prediction-day.today.weekend {
  background: #ecfeff;
  box-shadow: inset 0 0 0 2px rgb(8 145 178 / 68%);
  color: #0e7490;
}

.prediction-day.no-data:not(.today) {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgb(203 213 225 / 18%);
  color: #cbd5e1;
}

.prediction-day.selected {
  color: #1d4ed8;
  font-weight: 800;
}

.prediction-rows {
  position: relative;
  z-index: 2;
  max-height: 28rem;
  overflow-y: auto;
  border-bottom: 1px solid #f8fafc;
  scrollbar-gutter: stable;
}

.prediction-row {
  display: grid;
  grid-template-columns: var(--tank-col) repeat(42, var(--day-col));
  width: var(--timeline-width);
  align-items: center;
  padding: .25rem 0;
  border-bottom: 1px solid #f8fafc;
  transition: background-color .15s ease;
}

.prediction-row:hover {
  background: rgb(248 250 252 / 50%);
}

.tank-label strong,
.tank-label span {
  display: block;
}

.tank-label strong {
  color: var(--slate-700);
  font-size: .875rem;
  font-weight: 500;
}

.tank-label a {
  text-decoration: none;
}

.tank-label a:hover strong {
  color: var(--brand-blue);
  text-decoration: underline;
}

.tank-label span {
  max-width: 7.25rem;
  overflow: hidden;
  color: var(--slate-400);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heat-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--day-col) - 2px);
  height: calc(var(--day-col) - 2px);
  margin: 1px;
  border-radius: .25rem;
  cursor: pointer;
  opacity: .95;
  transition: box-shadow .15s ease, transform .15s ease;
}

.heat-cell.history {
  filter: saturate(.42) brightness(1.08);
  box-shadow: inset 0 0 0 1px rgb(100 116 139 / 22%);
}

.heat-cell.prediction {
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 28%);
}

.heat-cell.prediction .heat-percent,
.heat-cell.prediction small {
  font-style: italic;
}

.heat-cell.today,
.heat-cell.empty-today {
  box-shadow: inset 0 0 0 2px #0284c7;
}

.heat-cell.selected {
  box-shadow: inherit;
}

.heat-cell:hover {
  z-index: 2;
  box-shadow: 0 0 0 2px #60a5fa;
}

.heat-cell .heat-percent {
  display: grid;
  place-items: center;
  color: var(--slate-800);
  font-size: 10px;
  font-weight: 700;
  opacity: .52;
}

.heat-cell:hover .heat-percent {
  opacity: 1;
}

.heat-cell small {
  display: none;
  color: var(--slate-700);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.heat-cell:hover small {
  display: block;
}

.heat-ok {
  background: #86efac;
}

.heat-watch {
  background: #fde047;
}

.heat-warning {
  background: #fb923c;
}

.heat-critical {
  background: #ef4444;
}

.heat-empty {
  border: 1px dashed var(--slate-200);
  background: #fff;
}

.heat-empty.history,
.heat-empty.empty-history {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgb(100 116 139 / 18%);
}

.heat-empty.prediction,
.heat-empty.empty-prediction {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgb(203 213 225 / 18%);
  color: #cbd5e1;
}

.heat-empty.empty-today {
  background: #fff;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(22rem, 1fr);
  gap: 1.5rem;
}

.map-card,
.today-plan-card {
  min-height: 600px;
  overflow: hidden;
}

.map-toolbar,
.today-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #f8fafc;
  background: linear-gradient(90deg, var(--slate-50), #fff);
}

.map-tools {
  display: flex;
  gap: .5rem;
}

.map-tool {
  padding: .25rem .75rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-600);
  font-size: .75rem;
  font-weight: 700;
}

.map-tool.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--brand-blue);
}

.map-frame {
  height: 540px;
  overflow: auto;
  background: #eaf3ec;
}

.map-frame img {
  width: 100%;
  min-width: 760px;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.today-plan-card {
  display: flex;
  flex-direction: column;
}

.today-title,
.today-actions,
.today-left,
.task-info div,
.driver {
  display: flex;
  align-items: center;
}

.today-title {
  gap: .5rem;
}

.today-title svg {
  color: var(--brand-blue);
}

.today-actions {
  gap: .5rem;
}

.today-actions span {
  padding: .25rem .75rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgb(219 234 254 / 50%);
  color: var(--brand-blue);
  font-size: .75rem;
  font-weight: 700;
}

.today-actions button {
  padding: .25rem .75rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.today-list {
  flex: 1;
  overflow-y: auto;
}

.today-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: 1rem;
  border-bottom: 1px solid #f8fafc;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.today-row:hover {
  border-left-color: var(--brand-blue);
  background: rgb(248 250 252 / 80%);
}

.today-left {
  min-width: 0;
  gap: 1rem;
}

.drag-handle {
  color: var(--slate-300);
  font-size: .95rem;
  line-height: 1;
  letter-spacing: -2px;
}

.task-state {
  display: grid;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
}

.task-state svg {
  width: 1rem;
  height: 1rem;
}

.task-state.done {
  background: #f0fdf4;
  color: var(--brand-green);
  box-shadow: 0 0 0 1px #dcfce7;
}

.task-state.waiting {
  background: var(--slate-50);
  color: var(--slate-400);
}

.today-row:hover .task-state.waiting {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 4px 6px -1px rgb(15 23 42 / 10%);
}

.task-info {
  min-width: 0;
}

.task-info strong {
  display: block;
  color: var(--slate-800);
  font-weight: 600;
  transition: color .15s ease;
}

.today-row:hover .task-info strong {
  color: var(--brand-blue);
}

.task-info div {
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .125rem;
  color: var(--slate-500);
  font-size: .75rem;
}

.task-info i {
  width: .25rem;
  height: .25rem;
  border-radius: 999px;
  background: var(--slate-300);
}

.driver {
  gap: .25rem;
}

.driver svg {
  width: .75rem;
  height: .75rem;
}

.task-time {
  min-width: 4.7rem;
  text-align: right;
}

.task-time strong {
  display: block;
  color: var(--slate-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .875rem;
  font-weight: 700;
}

.task-time span {
  display: block;
  margin-top: .25rem;
  color: var(--slate-400);
  font-size: .75rem;
  font-weight: 500;
}

.task-time .done-text {
  color: var(--brand-green);
}

.remove-task {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: var(--slate-300);
  font-size: 1.25rem;
}

.remove-task:hover {
  background: #fef2f2;
  color: #ef4444;
}

.plan-detail-button {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem;
  border: 0;
  border-top: 1px solid #f8fafc;
  background: rgb(248 250 252 / 50%);
  color: var(--brand-blue);
  font-size: .875rem;
  font-weight: 700;
}

.plan-detail-button svg {
  width: 1rem;
  height: 1rem;
  transition: transform .15s ease;
}

.plan-detail-button:hover {
  background: var(--slate-50);
}

.plan-detail-button:hover svg {
  transform: translateX(.25rem);
}

@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .daily-summary-risk {
    align-items: flex-start;
    flex-direction: row;
  }

  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .dashboard-v2 {
    height: auto;
    overflow: visible;
  }

  .dashboard-v2 .dispatcher-sidebar {
    display: none;
  }

  .dashboard-v2 .dispatcher-main {
    height: auto;
    min-height: 100vh;
  }

  .dashboard-v2 .dispatcher-content {
    height: auto;
    padding: 1rem;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .dashboard-v2 .dispatcher-topbar {
    display: flex;
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

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

  .prediction-header,
  .map-toolbar,
  .today-plan-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-card,
  .today-plan-card {
    min-height: 0;
  }

  .today-row {
    align-items: flex-start;
  }
}

.reports-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reports-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reports-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.reports-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.report-counter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.report-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.report-count-pill.blue {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}

.report-count-pill.green {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #15803d;
}

.report-list {
  display: grid;
  gap: 1rem;
}

.report-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
  transition: box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}

.report-card:hover {
  box-shadow: 0 4px 6px -1px rgb(15 23 42 / 10%);
}

.report-card-new {
  border-color: #bfdbfe;
  background: rgb(239 246 255 / 35%);
}

.report-card-resolved {
  opacity: .75;
}

.report-card-body {
  position: relative;
  padding: 1.5rem;
}

.report-main-row {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding-right: 3rem;
}

.report-icon {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 999px;
}

.report-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.report-icon.issue {
  background: #fee2e2;
  color: #dc2626;
}

.report-icon.request {
  background: #dbeafe;
  color: #2563eb;
}

.report-copy {
  min-width: 0;
}

.report-meta-line,
.report-subline,
.report-address,
.report-status {
  display: flex;
  align-items: center;
}

.report-meta-line {
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .25rem;
}

.report-meta-line h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 600;
}

.report-date {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  color: var(--slate-400);
  font-size: .75rem;
}

.report-date svg,
.report-address svg,
.report-status svg,
.report-action svg {
  width: .75rem;
  height: .75rem;
}

.report-status {
  gap: .25rem;
  padding: .125rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.report-status.new {
  background: #dbeafe;
  color: #1d4ed8;
}

.report-status.resolved {
  background: #dcfce7;
  color: #15803d;
}

.report-subline {
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .5rem;
  color: var(--slate-500);
  font-size: .875rem;
}

.report-subline i {
  width: .25rem;
  height: .25rem;
  border-radius: 999px;
  background: var(--slate-300);
}

.report-type {
  padding: .125rem .5rem;
  border-radius: .25rem;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.report-address {
  gap: .25rem;
}

.report-copy p {
  margin: 0;
  color: var(--slate-800);
  font-weight: 500;
}

.report-details-toggle {
  display: block;
}

.report-details-toggle summary {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .375rem;
  color: var(--slate-400);
  cursor: pointer;
  list-style: none;
}

.report-details-toggle summary::-webkit-details-marker {
  display: none;
}

.report-details-toggle summary:hover {
  background: #eff6ff;
  color: #2563eb;
}

.report-details-toggle .chevron-up,
.report-details-toggle[open] .chevron-down {
  display: none;
}

.report-details-toggle[open] .chevron-up {
  display: block;
}

.report-detail-panel {
  margin: 1rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem 1.25rem 5.5rem;
  border-top: 1px solid #f8fafc;
  background: rgb(248 250 252 / 80%);
}

.report-detail-panel strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--slate-700);
  font-size: .875rem;
}

.report-detail-panel p {
  margin: 0;
  color: var(--slate-600);
  font-size: .875rem;
}

.report-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .75rem;
  color: var(--slate-500);
  font-size: .875rem;
}

.report-detail-meta b {
  color: var(--slate-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.report-detail-meta strong {
  display: inline;
  color: #ea580c;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
  padding-left: 3.75rem;
}

.report-action {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.15rem;
  padding: .375rem .75rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.report-action.primary {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
}

.report-action.primary:hover {
  background: #1d4ed8;
}

.report-action.neutral {
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600);
}

.report-action.neutral:hover {
  background: var(--slate-50);
}

.report-action.success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.report-action.success:hover {
  background: #dcfce7;
}

.report-empty {
  padding: 3rem;
  border: 1px dashed #d1d5db;
  border-radius: .75rem;
  background: #fff;
  color: #6b7280;
  text-align: center;
}

.report-empty svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: #bbf7d0;
}

.report-empty h3 {
  margin: 0 0 .25rem;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 500;
}

.report-empty p {
  margin: 0;
}

@media (max-width: 820px) {
  .reports-heading,
  .report-main-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-heading {
    display: flex;
  }

  .report-counter-row {
    justify-content: flex-start;
  }

  .report-main-row {
    padding-right: 0;
  }

  .report-actions {
    padding-left: 0;
  }

  .report-detail-panel {
    margin: .75rem -1.5rem -1.5rem;
    padding: 1rem;
  }
}

.tanks-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tanks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tanks-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.tanks-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.tank-new-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.5rem;
  padding: .5rem 1rem;
  border: 1px solid #2563eb;
  border-radius: .375rem;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
  transition: background-color .15s ease;
}

.tank-new-button:hover {
  background: #1d4ed8;
}

.tank-new-button svg {
  width: 1rem;
  height: 1rem;
}

.tanks-table-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.tanks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tank-search,
.tank-filter {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tank-search {
  position: relative;
  width: min(24rem, 100%);
}

.tank-search svg {
  position: absolute;
  left: .75rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

.tank-search input,
.tank-filter select {
  min-height: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  background: #fff;
  color: #374151;
  font-size: .875rem;
}

.tank-search input {
  width: 100%;
  padding: .5rem 1rem .5rem 2.5rem;
}

.tank-search input:focus,
.tank-filter select:focus {
  border-color: transparent;
  outline: 2px solid #3b82f6;
  outline-offset: 0;
}

.tank-filter svg {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

.tank-filter select {
  padding: .5rem 2rem .5rem .5rem;
}

.tanks-table-scroll {
  overflow-x: auto;
}

.tanks-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  color: #4b5563;
  font-size: .875rem;
  text-align: left;
}

.tanks-table thead {
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 500;
}

.tanks-table th,
.tanks-table td {
  padding: .75rem 1.5rem;
  vertical-align: middle;
}

.tanks-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background-color .15s ease;
}

.tanks-table tbody tr:last-child {
  border-bottom: 0;
}

.tanks-table tbody tr:hover {
  background: rgb(239 246 255 / 50%);
}

.tank-code {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.tank-code:hover {
  color: #1d4ed8;
}

.tank-address {
  color: #111827;
}

.tank-fill {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tank-fill-track {
  width: 6rem;
  height: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.tank-fill-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.tank-fill-track .critical {
  background: #ef4444;
}

.tank-fill-track .warning {
  background: #f97316;
}

.tank-fill-track .ok {
  background: #22c55e;
}

.tank-fill strong {
  min-width: 2.4rem;
  color: #4b5563;
  font-size: .75rem;
  font-weight: 500;
}

.tank-status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.tank-status.ok {
  background: #dcfce7;
  color: #15803d;
}

.tank-status.warning {
  background: #ffedd5;
  color: #c2410c;
}

.tank-status.critical {
  background: #fee2e2;
  color: #b91c1c;
}

.tanks-empty {
  padding: 2rem;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 820px) {
  .tanks-heading,
  .tanks-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tank-new-button,
  .tank-search,
  .tank-filter,
  .tank-filter select {
    width: 100%;
  }
}

.vehicles-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vehicles-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vehicles-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.vehicles-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.vehicle-new-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.5rem;
  padding: .5rem 1rem;
  border: 1px solid #2563eb;
  border-radius: .375rem;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
  transition: background-color .15s ease;
}

.vehicle-new-button:hover {
  background: #1d4ed8;
}

.vehicle-new-button svg {
  width: 1rem;
  height: 1rem;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
  transition: box-shadow .15s ease;
}

.vehicle-card:hover {
  box-shadow: 0 4px 6px -1px rgb(15 23 42 / 10%);
}

.vehicle-card-body {
  padding: 1.5rem;
}

.vehicle-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vehicle-title-group {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.vehicle-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .5rem;
  background: #eff6ff;
  color: #2563eb;
}

.vehicle-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.vehicle-title-group h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.125rem;
  font-weight: 700;
}

.vehicle-title-group p {
  margin: .125rem 0 0;
  color: var(--slate-500);
  font-size: .875rem;
}

.vehicle-status {
  display: inline-flex;
  flex: 0 0 auto;
  gap: .5rem;
  align-items: center;
  padding: .25rem .75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.vehicle-status svg {
  width: 1rem;
  height: 1rem;
}

.vehicle-status.available {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.vehicle-status.busy {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.vehicle-status.service {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.vehicle-facts {
  display: grid;
  gap: 0;
}

.vehicle-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.vehicle-facts div:last-child {
  border-bottom: 0;
}

.vehicle-facts span {
  color: #6b7280;
  font-size: .875rem;
}

.vehicle-facts strong {
  color: var(--slate-700);
  font-weight: 500;
  text-align: right;
}

.vehicle-load-track {
  height: .5rem;
  margin-top: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
}

.vehicle-load-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width .5s ease;
}

.vehicle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
}

.vehicle-detail {
  display: contents;
  min-width: 0;
}

.vehicle-detail summary,
.vehicle-assign-button {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
}

.vehicle-detail summary {
  background: #f9fafb;
  color: var(--slate-600);
  cursor: pointer;
  list-style: none;
  transition: background-color .15s ease;
}

.vehicle-detail summary::-webkit-details-marker {
  display: none;
}

.vehicle-detail summary:hover {
  background: #f3f4f6;
}

.vehicle-detail summary svg {
  width: 1rem;
  height: 1rem;
}

.vehicle-detail .chevron-up,
.vehicle-detail[open] .chevron-down {
  display: none;
}

.vehicle-detail[open] .chevron-up {
  display: block;
}

.vehicle-assign-button {
  background: #eff6ff;
  color: #2563eb;
  transition: background-color .15s ease;
}

.vehicle-assign-button:hover {
  background: #dbeafe;
}

.vehicle-detail-panel {
  grid-column: 1 / -1;
  margin: .75rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: rgb(248 250 252 / 70%);
}

.vehicle-detail-panel h4 {
  margin: 0 0 .5rem;
  color: var(--slate-500);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vehicle-service-list {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

.vehicle-service-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
}

.vehicle-service-row svg {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: .125rem;
}

.vehicle-service-row.maintenance svg {
  color: #f97316;
}

.vehicle-service-row.issue svg {
  color: #ef4444;
}

.vehicle-service-row strong {
  display: block;
  color: var(--slate-700);
  font-weight: 500;
}

.vehicle-service-row p {
  margin: .125rem 0 0;
  color: var(--slate-400);
  font-size: .75rem;
}

.vehicle-availability {
  display: flex;
  height: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.vehicle-availability span.available {
  background: #22c55e;
}

.vehicle-availability span.busy {
  background: #fb923c;
}

.vehicle-availability span.off {
  background: #d1d5db;
}

.vehicle-availability-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .25rem;
  color: var(--slate-400);
  font-size: .625rem;
}

@media (max-width: 1200px) {
  .vehicles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .vehicles-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .vehicle-new-button {
    width: 100%;
    justify-content: center;
  }

  .vehicles-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-card-top {
    flex-direction: column;
  }

  .vehicle-actions {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-panel {
    margin: .75rem 0 0;
    padding: 1rem;
  }
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(56rem, 100%);
}

.settings-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.settings-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.settings-save-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.5rem;
  padding: .5rem 1.5rem;
  border: 1px solid #2563eb;
  border-radius: .375rem;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgb(191 219 254 / 80%);
  transition: background-color .15s ease;
}

.settings-save-button:hover {
  background: #1d4ed8;
}

.settings-save-button svg {
  width: 1rem;
  height: 1rem;
}

.settings-card {
  width: min(56rem, 100%);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.settings-section {
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.settings-section:last-child {
  border-bottom: 0;
}

.settings-section-muted {
  background: rgb(249 250 251 / 50%);
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.settings-section-title h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.125rem;
  font-weight: 600;
}

.settings-section-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .5rem;
}

.settings-section-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.settings-section-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.settings-section-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.settings-section-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.settings-slider-list {
  display: grid;
  gap: 2rem;
}

.settings-slider-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.settings-slider-label label,
.settings-field span {
  color: var(--slate-700);
  font-size: .875rem;
  font-weight: 500;
}

.settings-slider-label span {
  color: #2563eb;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

.settings-slider-row input[type="range"] {
  width: 100%;
  height: .5rem;
  accent-color: #2563eb;
  cursor: pointer;
}

.settings-slider-help {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .25rem;
  color: #9ca3af;
  font-size: .75rem;
}

.settings-slider-row p {
  margin: .5rem 0 0;
  color: #6b7280;
  font-size: .75rem;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.settings-operation-grid {
  margin-bottom: 1.5rem;
}

.settings-field {
  display: grid;
  gap: .5rem;
}

.settings-field input {
  width: 100%;
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  background: #fff;
  color: #374151;
}

.settings-field input:focus {
  border-color: #3b82f6;
  outline: 2px solid rgb(59 130 246 / 25%);
  outline-offset: 0;
}

.settings-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.settings-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--slate-700);
  cursor: pointer;
  font-size: .875rem;
}

.settings-checkbox-row input {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

.settings-cov-box {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #f9fafb;
}

@media (max-width: 820px) {
  .settings-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-save-button {
    width: 100%;
    justify-content: center;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-slider-label,
  .settings-slider-help {
    flex-direction: column;
    gap: .25rem;
  }
}

.owner-v2 .owner-brand {
  background: #2563eb;
}

.owner-v2 .owner-sidebar .user-status {
  color: #64748b;
}

.owner-v2 .dispatcher-user form {
  margin-left: auto;
}

.owner-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.owner-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.owner-page-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.owner-page-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.owner-tank-pill,
.owner-record-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .75rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 700;
}

.owner-tank-status-card,
.owner-panel,
.owner-history-card,
.owner-report-form-card,
.owner-report-item {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.owner-tank-status-card,
.owner-panel,
.owner-report-form-card {
  padding: 1.5rem;
}

.owner-tank-status-card {
  max-width: 70rem;
}

.owner-card-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.owner-card-heading h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.05rem;
  font-weight: 700;
}

.owner-card-heading p {
  margin: .15rem 0 0;
  color: var(--slate-500);
  font-size: .82rem;
}

.owner-heading-icon {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .5rem;
}

.owner-heading-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.owner-heading-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.owner-heading-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.owner-heading-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.owner-fill-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.owner-fill-summary strong {
  color: var(--slate-800);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.owner-fill-summary span {
  color: var(--slate-500);
  font-size: .875rem;
}

.owner-fill-track {
  height: 1rem;
  margin-top: .75rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.owner-fill-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width .4s ease;
}

.owner-fill-track span.normal {
  background: #2563eb;
}

.owner-fill-track span.warning {
  background: #f97316;
}

.owner-fill-track span.critical {
  background: #ef4444;
}

.owner-fill-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
  color: var(--slate-500);
  font-size: .8rem;
}

.owner-fill-footer strong {
  color: var(--slate-700);
  font-weight: 600;
}

.owner-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 70rem;
}

.owner-next-collection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.owner-next-date strong,
.owner-next-date span {
  display: block;
}

.owner-next-date strong {
  color: var(--slate-800);
  font-size: 1.5rem;
  font-weight: 700;
}

.owner-next-date span {
  margin-top: .25rem;
  color: #2563eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
}

.owner-next-meta {
  display: grid;
  gap: .4rem;
  color: var(--slate-500);
  font-size: .82rem;
  text-align: right;
}

.owner-next-meta span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  color: var(--slate-700);
  font-weight: 600;
}

.owner-next-meta svg {
  width: 1rem;
  height: 1rem;
  color: #2563eb;
}

.owner-quick-actions {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.owner-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.owner-action svg {
  width: 1.1rem;
  height: 1.1rem;
}

.owner-action.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.owner-action.primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.owner-action.secondary {
  border-color: var(--slate-200);
  background: #fff;
  color: var(--slate-700);
}

.owner-action.secondary:hover {
  background: var(--slate-50);
  color: #2563eb;
}

.owner-history-card {
  max-width: 70rem;
  overflow: hidden;
}

.owner-table-scroll {
  overflow-x: auto;
}

.owner-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--slate-600);
  font-size: .875rem;
  text-align: left;
}

.owner-history-table thead {
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.owner-history-table th,
.owner-history-table td {
  padding: .9rem 1.5rem;
}

.owner-history-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color .15s ease;
}

.owner-history-table tbody tr:last-child {
  border-bottom: 0;
}

.owner-history-table tbody tr:hover {
  background: rgb(239 246 255 / 45%);
}

.owner-table-value {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--slate-700);
}

.owner-table-value.strong {
  font-weight: 600;
}

.owner-table-value svg {
  width: 1rem;
  height: 1rem;
  color: var(--slate-400);
}

.owner-table-value.strong svg {
  color: #2563eb;
}

.owner-status-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.owner-status-badge.completed {
  background: #dcfce7;
  color: #15803d;
}

.owner-empty-state {
  display: grid;
  min-height: 10rem;
  place-items: center;
  color: var(--slate-500);
  text-align: center;
}

.owner-empty-state svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto .75rem;
  color: var(--slate-300);
}

.owner-empty-state p {
  margin: 0;
}

.owner-success-message {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 70rem;
  padding: .75rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: .5rem;
  background: #f0fdf4;
  color: #15803d;
  font-size: .875rem;
  font-weight: 600;
}

.owner-success-message svg {
  width: 1rem;
  height: 1rem;
}

.owner-report-form-card,
.owner-reports-section {
  max-width: 70rem;
}

.owner-report-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.owner-form-field {
  display: grid;
  gap: .45rem;
}

.owner-form-field > span:first-child {
  color: var(--slate-700);
  font-size: .875rem;
  font-weight: 600;
}

.owner-form-field select,
.owner-form-field textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--slate-300);
  border-radius: .5rem;
  background: #fff;
  color: var(--slate-700);
  font: inherit;
}

.owner-form-field textarea {
  resize: vertical;
}

.owner-form-field select:focus,
.owner-form-field textarea:focus {
  border-color: #3b82f6;
  outline: 2px solid rgb(59 130 246 / 18%);
  outline-offset: 0;
}

.owner-submit-button {
  justify-self: start;
  min-height: 2.5rem;
  padding: .5rem 1.25rem;
  border: 1px solid #2563eb;
  border-radius: .5rem;
  background: #2563eb;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
}

.owner-submit-button:hover {
  background: #1d4ed8;
}

.owner-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.owner-section-heading h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.05rem;
  font-weight: 700;
}

.owner-section-heading span {
  color: var(--slate-500);
  font-size: .8rem;
}

.owner-report-list {
  display: grid;
  gap: .75rem;
}

.owner-report-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.owner-report-copy {
  min-width: 0;
}

.owner-report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: var(--slate-400);
  font-size: .75rem;
}

.owner-report-type {
  display: inline-flex;
  padding: .2rem .5rem;
  border-radius: .25rem;
  font-weight: 700;
}

.owner-report-type.issue {
  background: #fee2e2;
  color: #b91c1c;
}

.owner-report-type.collection_request {
  background: #dbeafe;
  color: #1d4ed8;
}

.owner-report-type.other {
  background: var(--slate-100);
  color: var(--slate-600);
}

.owner-report-copy p {
  margin: .6rem 0 0;
  color: var(--slate-700);
  font-size: .9rem;
}

.owner-report-status {
  display: grid;
  flex: 0 0 5.5rem;
  justify-items: center;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
}

.owner-report-status svg {
  width: 1.25rem;
  height: 1.25rem;
}

.owner-report-status.new {
  color: #ea580c;
}

.owner-report-status.in_progress {
  color: #2563eb;
}

.owner-report-status.resolved {
  color: #16a34a;
}

@media (max-width: 900px) {
  .owner-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .owner-page-heading,
  .owner-fill-summary,
  .owner-fill-footer,
  .owner-next-collection {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-next-meta {
    text-align: left;
  }

  .owner-next-meta span:first-child {
    justify-content: flex-start;
  }

  .owner-report-item {
    flex-direction: column;
  }

  .owner-report-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
  }

  .owner-submit-button {
    width: 100%;
  }
}

.driver-v2 .driver-brand {
  background: #2563eb;
}

.driver-v2 .driver-sidebar .user-status {
  color: #64748b;
}

.driver-v2 .dispatcher-user form {
  margin-left: auto;
}

.driver-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.driver-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.driver-page-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.driver-page-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.driver-route-status,
.driver-record-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .75rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 700;
}

.driver-success-message {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: .5rem;
  background: #f0fdf4;
  color: #15803d;
  font-size: .875rem;
  font-weight: 600;
}

.driver-success-message svg {
  width: 1rem;
  height: 1rem;
}

.driver-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.driver-summary-card,
.driver-notifications,
.driver-route-section,
.driver-history-card,
.driver-incident-form-card,
.driver-incident-item {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.driver-summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
}

.driver-summary-icon {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: .5rem;
}

.driver-summary-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.driver-summary-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.driver-summary-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.driver-summary-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.driver-summary-copy {
  min-width: 0;
  flex: 1;
}

.driver-summary-copy > span,
.driver-summary-copy small {
  display: block;
  overflow: hidden;
  color: var(--slate-500);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-summary-copy strong {
  display: block;
  margin-top: .15rem;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 1.1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-summary-track {
  height: .35rem;
  margin-top: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.driver-summary-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.driver-summary-track.green span {
  background: #22c55e;
}

.driver-notifications,
.driver-route-section,
.driver-incident-form-card {
  padding: 1.25rem;
}

.driver-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.driver-section-heading h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 700;
}

.driver-section-heading span {
  color: var(--slate-500);
  font-size: .75rem;
}

.driver-notification-list,
.driver-stop-list,
.driver-incident-list {
  display: grid;
  gap: .75rem;
}

.driver-notification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: start;
  padding: .75rem;
  border-left: 4px solid #3b82f6;
  border-radius: .375rem;
  background: var(--slate-50);
}

.driver-notification.warning {
  border-left-color: #f97316;
}

.driver-notification > svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #2563eb;
}

.driver-notification.warning > svg {
  color: #ea580c;
}

.driver-notification strong {
  display: block;
  color: var(--slate-700);
  font-size: .85rem;
}

.driver-notification p {
  margin: .15rem 0 0;
  color: var(--slate-500);
  font-size: .78rem;
}

.driver-notification time {
  color: var(--slate-400);
  font-size: .72rem;
}

.driver-stop-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--slate-300);
  border-radius: .625rem;
  background: #fff;
}

.driver-stop-card.current {
  border-color: #93c5fd;
  border-left-color: #2563eb;
  background: rgb(239 246 255 / 40%);
}

.driver-stop-card.completed {
  border-left-color: #22c55e;
  opacity: .78;
}

.driver-stop-order {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-weight: 800;
}

.driver-stop-card.current .driver-stop-order {
  background: #2563eb;
  color: #fff;
}

.driver-stop-card.completed .driver-stop-order {
  background: #dcfce7;
  color: #16a34a;
}

.driver-stop-order svg {
  width: 1rem;
  height: 1rem;
}

.driver-stop-main {
  min-width: 0;
}

.driver-stop-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.driver-stop-topline h4 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 700;
}

.driver-stop-topline div > span {
  display: block;
  margin-top: .15rem;
  color: var(--slate-500);
  font-size: .78rem;
}

.driver-current-pill,
.driver-completed-pill {
  display: inline-flex;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.driver-current-pill {
  background: #dbeafe;
  color: #1d4ed8;
}

.driver-completed-pill {
  background: #dcfce7;
  color: #15803d;
}

.driver-stop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .75rem;
  color: var(--slate-500);
  font-size: .8rem;
}

.driver-stop-facts strong {
  color: var(--slate-700);
}

.driver-stop-note {
  margin: .6rem 0 0;
  color: var(--slate-500);
  font-size: .8rem;
}

.driver-stop-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.driver-action-detail {
  min-width: 0;
}

.driver-action-detail summary,
.driver-incident-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.4rem;
  padding: .45rem .65rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  text-align: center;
  text-decoration: none;
}

.driver-action-detail summary::-webkit-details-marker {
  display: none;
}

.driver-action-detail summary svg,
.driver-incident-link svg {
  flex: 0 0 .9rem;
  width: .9rem;
  height: .9rem;
}

.driver-action-detail.complete summary {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.driver-action-detail.fail summary {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.driver-incident-link {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.driver-action-detail form {
  display: grid;
  gap: .6rem;
  margin-top: .5rem;
  padding: .75rem;
  border: 1px solid var(--slate-200);
  border-radius: .5rem;
  background: var(--slate-50);
}

.driver-action-detail form label {
  display: grid;
  gap: .3rem;
}

.driver-action-detail form label span {
  color: var(--slate-600);
  font-size: .72rem;
  font-weight: 600;
}

.driver-action-detail form input,
.driver-action-detail form select {
  width: 100%;
  min-height: 2.25rem;
  padding: .4rem .55rem;
  border: 1px solid var(--slate-300);
  border-radius: .375rem;
  background: #fff;
  color: var(--slate-700);
  font-size: .8rem;
}

.driver-action-detail form button {
  min-height: 2.25rem;
  border: 0;
  border-radius: .375rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.driver-action-detail.complete form button {
  background: #16a34a;
}

.driver-action-detail.fail form button {
  background: #dc2626;
}

.driver-history-card {
  overflow: hidden;
}

.driver-table-scroll {
  overflow-x: auto;
}

.driver-history-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  color: var(--slate-600);
  font-size: .83rem;
  text-align: left;
}

.driver-history-table thead {
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.driver-history-table th,
.driver-history-table td {
  padding: .85rem 1.25rem;
}

.driver-history-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

.driver-history-table tbody tr:last-child {
  border-bottom: 0;
}

.driver-result,
.driver-incident-status,
.driver-priority,
.driver-incident-type {
  display: inline-flex;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

.driver-result.completed,
.driver-incident-status.resolved {
  background: #dcfce7;
  color: #15803d;
}

.driver-result.failed {
  background: #fee2e2;
  color: #b91c1c;
}

.driver-incident-form-card {
  max-width: 70rem;
}

.driver-card-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.driver-card-heading h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.05rem;
  font-weight: 700;
}

.driver-card-heading p {
  margin: .15rem 0 0;
  color: var(--slate-500);
  font-size: .8rem;
}

.driver-heading-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .5rem;
}

.driver-heading-icon.red {
  background: #fee2e2;
  color: #dc2626;
}

.driver-heading-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.driver-incident-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.driver-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.driver-form-field {
  display: grid;
  gap: .4rem;
}

.driver-form-field > span:first-child {
  color: var(--slate-700);
  font-size: .8rem;
  font-weight: 600;
}

.driver-form-field select,
.driver-form-field textarea {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--slate-300);
  border-radius: .5rem;
  background: #fff;
  color: var(--slate-700);
}

.driver-form-field textarea {
  resize: vertical;
}

.driver-form-field select:focus,
.driver-form-field textarea:focus {
  border-color: #3b82f6;
  outline: 2px solid rgb(59 130 246 / 18%);
  outline-offset: 0;
}

.driver-submit-button {
  justify-self: start;
  min-height: 2.5rem;
  padding: .5rem 1.2rem;
  border: 1px solid #dc2626;
  border-radius: .5rem;
  background: #dc2626;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}

.driver-submit-button:hover {
  background: #b91c1c;
}

.driver-incidents-section {
  max-width: 70rem;
}

.driver-incident-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.driver-incident-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  color: var(--slate-400);
  font-size: .72rem;
}

.driver-incident-type {
  border-radius: .25rem;
  background: var(--slate-100);
  color: var(--slate-600);
}

.driver-priority.high {
  background: #fee2e2;
  color: #b91c1c;
}

.driver-priority.medium {
  background: #ffedd5;
  color: #c2410c;
}

.driver-priority.low {
  background: #dcfce7;
  color: #15803d;
}

.driver-incident-item p {
  margin: .6rem 0 .35rem;
  color: var(--slate-700);
  font-size: .88rem;
}

.driver-incident-stop {
  color: var(--slate-500);
  font-size: .75rem;
}

.driver-incident-status.in_progress {
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 1100px) {
  .driver-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .driver-summary-card:last-child {
    grid-column: 1 / -1;
  }

  .driver-stop-actions,
  .driver-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .driver-page-heading,
  .driver-stop-topline,
  .driver-incident-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .driver-summary-grid {
    grid-template-columns: 1fr;
  }

  .driver-summary-card:last-child {
    grid-column: auto;
  }

  .driver-stop-card {
    grid-template-columns: 1fr;
  }

  .driver-stop-order {
    width: 2rem;
    height: 2rem;
  }

  .driver-submit-button {
    width: 100%;
  }
}

.municipality-v2 .municipality-brand {
  background: #2563eb;
}

.municipality-v2 .municipality-sidebar .user-status {
  color: #64748b;
}

.municipality-v2 .dispatcher-user form {
  margin-left: auto;
}

.municipality-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.municipality-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.municipality-page-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0;
}

.municipality-page-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.municipality-export-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .5rem 1rem;
  border: 1px solid #2563eb;
  border-radius: .5rem;
  background: #2563eb;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.municipality-export-button:hover {
  background: #1d4ed8;
  color: #fff;
}

.municipality-export-button svg {
  width: 1rem;
  height: 1rem;
}

.municipality-volume-pill {
  display: inline-flex;
  padding: .3rem .75rem;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: .8rem;
  font-weight: 700;
}

.municipality-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.municipality-summary-card,
.municipality-chart-card,
.municipality-alert-card,
.municipality-capacity-card,
.municipality-deliveries-card,
.municipality-settings-card {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.municipality-summary-card {
  padding: 1rem;
}

.municipality-summary-card > span,
.municipality-summary-card small {
  display: block;
  color: var(--slate-500);
  font-size: .78rem;
}

.municipality-summary-card strong {
  display: block;
  margin: .3rem 0;
  color: var(--slate-800);
  font-size: 1.45rem;
  font-weight: 750;
}

.municipality-summary-card strong.warning {
  color: #ea580c;
}

.municipality-chart-card,
.municipality-alert-card,
.municipality-capacity-card {
  padding: 1.25rem;
}

.municipality-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.municipality-section-heading h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 700;
}

.municipality-section-heading p {
  margin: .2rem 0 0;
  color: var(--slate-500);
  font-size: .78rem;
}

.municipality-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  color: var(--slate-500);
  font-size: .72rem;
}

.municipality-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.municipality-chart-legend i {
  width: .75rem;
  height: .75rem;
  border-radius: .18rem;
}

.municipality-chart-legend i.actual {
  background: #2563eb;
}

.municipality-chart-legend i.forecast {
  border: 1px dashed #2563eb;
  background: #bfdbfe;
}

.municipality-chart-legend i.limits {
  background: rgb(34 197 94 / 18%);
}

.municipality-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(38px, 1fr));
  gap: .4rem;
  height: 20rem;
  margin-top: 1.5rem;
  padding: 1rem .5rem 0;
  border-bottom: 1px solid var(--slate-200);
  background:
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent calc(25% - 1px),
      #f1f5f9 25%
    );
  overflow-x: auto;
}

.municipality-limit-band {
  position: absolute;
  right: .5rem;
  left: .5rem;
  z-index: 0;
  min-height: 1rem;
  border-top: 1px dashed rgb(22 163 74 / 45%);
  border-bottom: 1px dashed rgb(22 163 74 / 45%);
  background: rgb(34 197 94 / 9%);
  pointer-events: none;
}

.municipality-limit-band span {
  position: absolute;
  top: .15rem;
  right: .3rem;
  color: #15803d;
  font-size: .62rem;
  font-weight: 600;
}

.municipality-chart-column {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 1.8rem;
  min-width: 38px;
}

.municipality-bar-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.municipality-bar-value {
  position: absolute;
  bottom: calc(var(--bar-height, 0%) + .25rem);
  color: var(--slate-500);
  font-size: .62rem;
  font-weight: 700;
}

.municipality-bar {
  display: block;
  width: min(2rem, 70%);
  min-height: 2px;
  border-radius: .25rem .25rem 0 0;
  background: #2563eb;
}

.municipality-bar.forecast {
  border: 1px dashed #2563eb;
  background: #bfdbfe;
}

.municipality-bar.critical {
  border-color: #dc2626;
  background: #ef4444;
}

.municipality-bar.low {
  border-color: #f97316;
  background: #fdba74;
}

.municipality-chart-date {
  display: grid;
  place-items: center;
  color: var(--slate-500);
  font-size: .65rem;
}

.municipality-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 1rem;
}

.municipality-alert-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.municipality-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: start;
  padding: .75rem;
  border: 2px solid #3b82f6;
  border-radius: .375rem;
  background: var(--slate-50);
}

.municipality-alert.critical {
  border-color: #ef4444;
}

.municipality-alert.warning {
  border-color: #f97316;
}

.municipality-alert > svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #ea580c;
}

.municipality-alert strong {
  display: block;
  color: var(--slate-700);
  font-size: .84rem;
}

.municipality-alert p {
  margin: .15rem 0 0;
  color: var(--slate-500);
  font-size: .76rem;
}

.municipality-alert time {
  color: var(--slate-400);
  font-size: .7rem;
}

.municipality-capacity-card {
  display: flex;
  flex-direction: column;
}

.municipality-capacity-ring {
  display: grid;
  width: 10rem;
  height: 10rem;
  margin: 1.5rem auto;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#2563eb calc(var(--value) * 1%), #e2e8f0 0);
}

.municipality-capacity-ring::before {
  grid-area: 1 / 1;
  width: 7.4rem;
  height: 7.4rem;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.municipality-capacity-ring div {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.municipality-capacity-ring strong,
.municipality-capacity-ring span {
  display: block;
}

.municipality-capacity-ring strong {
  color: var(--slate-800);
  font-size: 1.5rem;
}

.municipality-capacity-ring span {
  color: var(--slate-500);
  font-size: .7rem;
}

.municipality-capacity-card > a {
  margin-top: auto;
  color: #2563eb;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.municipality-deliveries-card {
  max-width: 70rem;
  padding: 1.25rem;
}

.municipality-delivery-timeline {
  display: grid;
}

.municipality-delivery {
  display: grid;
  grid-template-columns: 4rem 2.5rem minmax(0, 1fr);
  min-height: 7rem;
}

.municipality-delivery-time {
  padding-top: .5rem;
  color: var(--slate-600);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  font-weight: 700;
}

.municipality-delivery-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.municipality-delivery-marker::after {
  position: absolute;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
  content: "";
}

.municipality-delivery:last-child .municipality-delivery-marker::after {
  display: none;
}

.municipality-delivery-marker svg,
.municipality-delivery-marker span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: .15rem;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.municipality-delivery-marker svg {
  padding: .25rem;
  background: #22c55e;
  box-shadow: 0 0 0 1px #bbf7d0;
}

.municipality-delivery-content {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: .625rem;
  background: #fff;
}

.municipality-delivery.completed .municipality-delivery-content {
  background: rgb(240 253 244 / 45%);
}

.municipality-delivery-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.municipality-delivery-top h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: .95rem;
  font-weight: 700;
}

.municipality-delivery-top p {
  margin: .2rem 0 0;
  color: var(--slate-500);
  font-size: .76rem;
}

.municipality-delivery-status {
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}

.municipality-delivery-status.completed {
  background: #dcfce7;
  color: #15803d;
}

.municipality-delivery-status.planned {
  background: #dbeafe;
  color: #1d4ed8;
}

.municipality-delivery-volume {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .75rem;
  color: var(--slate-500);
  font-size: .78rem;
}

.municipality-delivery-volume strong {
  color: var(--slate-700);
}

.municipality-success-message {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 70rem;
  padding: .75rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: .5rem;
  background: #f0fdf4;
  color: #15803d;
  font-size: .85rem;
  font-weight: 600;
}

.municipality-success-message svg {
  width: 1rem;
  height: 1rem;
}

.municipality-settings-card {
  max-width: 70rem;
  overflow: hidden;
}

.municipality-settings-section {
  padding: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.municipality-settings-section.muted {
  background: rgb(248 250 252 / 55%);
}

.municipality-settings-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.municipality-settings-heading h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 700;
}

.municipality-settings-heading p {
  margin: .15rem 0 0;
  color: var(--slate-500);
  font-size: .76rem;
}

.municipality-setting-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .5rem;
}

.municipality-setting-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.municipality-setting-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.municipality-setting-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.municipality-setting-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.municipality-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.municipality-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.municipality-form-field {
  display: grid;
  gap: .4rem;
}

.municipality-form-field > span:first-child {
  color: var(--slate-700);
  font-size: .8rem;
  font-weight: 600;
}

.municipality-form-field input {
  width: 100%;
  min-height: 2.5rem;
  padding: .5rem .7rem;
  border: 1px solid var(--slate-300);
  border-radius: .5rem;
  background: #fff;
  color: var(--slate-700);
}

.municipality-form-field input:focus {
  border-color: #3b82f6;
  outline: 2px solid rgb(59 130 246 / 18%);
  outline-offset: 0;
}

.municipality-toggle {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1rem;
  padding: .85rem;
  border: 1px solid var(--slate-200);
  border-radius: .5rem;
  background: var(--slate-50);
}

.municipality-toggle input,
.municipality-checkbox-row input {
  width: 1rem;
  height: 1rem;
  margin-top: .15rem;
  accent-color: #2563eb;
}

.municipality-toggle strong,
.municipality-toggle small {
  display: block;
}

.municipality-toggle strong {
  color: var(--slate-700);
  font-size: .82rem;
}

.municipality-toggle small {
  margin-top: .15rem;
  color: var(--slate-500);
  font-size: .72rem;
}

.municipality-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.municipality-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--slate-700);
  font-size: .82rem;
}

.municipality-settings-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  background: var(--slate-50);
}

.municipality-settings-footer button {
  min-height: 2.5rem;
  padding: .5rem 1.2rem;
  border: 1px solid #2563eb;
  border-radius: .5rem;
  background: #2563eb;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}

.municipality-settings-footer button:hover {
  background: #1d4ed8;
}

@media (max-width: 1100px) {
  .municipality-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .municipality-lower-grid {
    grid-template-columns: 1fr;
  }

  .municipality-form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .municipality-page-heading,
  .municipality-section-heading,
  .municipality-delivery-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .municipality-export-button {
    width: 100%;
    justify-content: center;
  }

  .municipality-summary-grid,
  .municipality-form-grid,
  .municipality-form-grid.three {
    grid-template-columns: 1fr;
  }

  .municipality-chart {
    grid-template-columns: repeat(14, 42px);
  }

  .municipality-delivery {
    grid-template-columns: 3.5rem 2rem minmax(0, 1fr);
  }

  .municipality-settings-footer button {
    width: 100%;
  }
}

.planning-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.planning-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.planning-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.875rem;
  font-weight: 300;
}

.planning-heading p {
  margin: .25rem 0 0;
  color: var(--slate-500);
}

.planning-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
}

.planning-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.25rem;
  padding: .5rem 1rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.planning-button svg {
  width: 1rem;
  height: 1rem;
}

.planning-button-light {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--slate-700);
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.planning-button-light:hover {
  background: #f9fafb;
}

.planning-button-primary {
  border: 0;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 25%);
}

.planning-button-primary:hover {
  background: linear-gradient(90deg, #1d4ed8, #4338ca);
}

.planning-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.week-nav-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--slate-500);
  transition: background-color .15s ease;
}

.week-nav-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.week-nav-button:hover {
  background: var(--slate-100);
}

.planning-week-label {
  color: var(--slate-700);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.planning-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
}

.planning-day-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8rem;
  padding: .75rem;
  border: 1px solid var(--slate-200);
  border-radius: .75rem;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

.planning-day-card:hover {
  box-shadow: 0 4px 6px -1px rgb(15 23 42 / 10%);
}

.planning-day-card.selected {
  border-color: #bfdbfe;
  background: rgb(239 246 255 / 50%);
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 15%);
  outline: 2px solid #3b82f6;
  outline-offset: 0;
}

.planning-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planning-day-name {
  color: var(--slate-700);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.planning-day-number {
  color: var(--slate-800);
  font-size: 1.125rem;
  font-weight: 700;
}

.planning-day-events {
  align-self: flex-end;
  color: var(--slate-500);
  font-size: .75rem;
}

.planning-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.planning-main-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.planning-plan-card {
  min-height: 0;
}

.planning-route-section h3 {
  margin: 0 0 1rem;
  color: var(--slate-800);
  font-size: 1.125rem;
  font-weight: 600;
}

.planning-route-map {
  height: 500px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: .75rem;
  background: #eaf3ec;
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 10%), 0 4px 6px -4px rgb(15 23 42 / 10%);
}

.planning-route-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.planning-suggestions-panel {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: .75rem;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 10%), 0 4px 6px -4px rgb(15 23 42 / 10%);
}

.planning-suggestions-header {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.planning-suggestions-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #f97316;
}

.planning-suggestions-header h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.25rem;
  font-weight: 500;
}

.planning-suggestions-list {
  display: grid;
  gap: 1rem;
}

.planning-suggestion-card {
  padding: .75rem;
  border: 1px solid #bfdbfe;
  border-radius: .5rem;
  background: #eff6ff;
  transition: background-color .15s ease;
}

.planning-suggestion-card:hover {
  background: #dbeafe;
}

.planning-suggestion-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}

.planning-suggestion-code {
  color: #1e3a8a;
  font-weight: 600;
}

.planning-suggestion-date {
  padding: .125rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}

.planning-suggestion-date.critical {
  background: #fee2e2;
  color: #b91c1c;
}

.planning-suggestion-date.warning {
  background: #bfdbfe;
  color: #1e40af;
}

.planning-suggestion-address {
  margin: 0 0 .25rem;
  color: #1e40af;
  font-size: .875rem;
}

.planning-suggestion-reason {
  margin: 0 0 .75rem;
  color: #2563eb;
  font-size: .75rem;
}

.planning-suggestion-actions {
  display: flex;
  gap: .5rem;
}

.planning-suggestion-action {
  display: inline-flex;
  flex: 1;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .375rem .75rem;
  border-radius: .375rem;
  background: #fff;
  font-size: .875rem;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}

.planning-suggestion-action svg {
  width: .75rem;
  height: .75rem;
}

.planning-suggestion-action.approve {
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.planning-suggestion-action.approve:hover {
  background: #eff6ff;
}

.planning-suggestion-action.defer {
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.planning-suggestion-action.defer:hover {
  background: #fef2f2;
}

.planning-suggestions-empty {
  margin: 0;
  color: var(--slate-500);
  font-size: .875rem;
  text-align: center;
}

@media (max-width: 1200px) {
  .planning-main-grid {
    grid-template-columns: 1fr;
  }

  .planning-suggestions-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .planning-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .planning-heading-actions {
    justify-content: flex-start;
  }

  .planning-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planning-route-map {
    height: 360px;
  }
}
.portal-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f6f8;
  color: #18212f;
  font-family: Inter, "Segoe UI", sans-serif;
}

.portal-header {
  min-height: 76px;
  padding: 14px clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #e2e7ec;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #172033;
  text-decoration: none;
}

.portal-brand:hover {
  color: #172033;
}

.portal-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1769aa;
  color: #fff;
}

.portal-brand-mark svg,
.portal-logout svg,
.portal-login svg,
.portal-area-card svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-brand-mark svg {
  width: 25px;
  height: 25px;
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.portal-brand small {
  margin-top: 2px;
  color: #6e7785;
  font-size: .76rem;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-user-name {
  max-width: 260px;
  overflow: hidden;
  color: #465165;
  font-size: .9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user form {
  margin: 0;
}

.portal-logout {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  background: #fff;
  color: #637083;
}

.portal-logout:hover {
  border-color: #b7c1cb;
  color: #263345;
}

.portal-logout svg {
  width: 19px;
  height: 19px;
}

.portal-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vh, 104px) 0 72px;
}

.portal-intro {
  max-width: 720px;
}

.portal-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #1769aa;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-intro h1 {
  margin: 0;
  color: #162033;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-intro p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #687386;
  font-size: 1rem;
  line-height: 1.65;
}

.portal-login {
  width: fit-content;
  min-height: 46px;
  margin-top: 30px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  background: #1769aa;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.portal-login:hover {
  background: #11568d;
  color: #fff;
}

.portal-login svg,
.portal-area-action svg {
  width: 18px;
  height: 18px;
}

.portal-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-area-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--portal-accent);
  border-radius: 8px;
  background: #fff;
  color: #18212f;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(24, 33, 47, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-area-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--portal-accent) 45%, #dfe5ea);
  color: #18212f;
  box-shadow: 0 14px 34px rgba(24, 33, 47, .1);
}

.portal-area-dispatcher {
  --portal-accent: #1769aa;
  --portal-soft: #e9f2fa;
}

.portal-area-owner {
  --portal-accent: #15826f;
  --portal-soft: #e6f4f0;
}

.portal-area-driver {
  --portal-accent: #d56b18;
  --portal-soft: #fff0e3;
}

.portal-area-municipality {
  --portal-accent: #527335;
  --portal-soft: #edf3e7;
}

.portal-area-admin {
  --portal-accent: #1f2937;
  --portal-soft: #eef2f7;
}

.portal-area-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--portal-soft);
  color: var(--portal-accent);
}

.portal-area-icon svg {
  width: 25px;
  height: 25px;
}

.portal-area-label {
  margin-bottom: 7px;
  color: var(--portal-accent);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portal-area-card strong {
  font-size: 1.35rem;
  line-height: 1.25;
}

.portal-area-description {
  margin-top: 10px;
  color: #697487;
  font-size: .9rem;
  line-height: 1.55;
}

.portal-area-action {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--portal-accent);
  font-size: .85rem;
  font-weight: 750;
}

.portal-empty {
  max-width: 720px;
  margin-top: 42px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e3d6b3;
  border-radius: 8px;
  background: #fffaf0;
  color: #745616;
}

.dashboard-v2 .dispatcher-user form {
  margin-left: auto;
}

.portal-user-menu-root {
  position: relative;
}

.portal-user-trigger {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: .75rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.portal-user-trigger .min-w-0 {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.portal-user-trigger:hover .user-name {
  color: var(--blue-600);
}

.portal-user-menu {
  position: absolute;
  right: .75rem;
  bottom: calc(100% + .65rem);
  left: .75rem;
  z-index: 80;
  padding: .5rem;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 18px 45px rgb(15 23 42 / 16%);
}

.portal-user-menu-title {
  padding: .35rem .5rem .5rem;
  color: var(--slate-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.portal-user-menu-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.35rem;
  padding: .45rem .5rem;
  border-radius: .45rem;
  color: var(--slate-700);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.portal-user-menu-link:hover {
  background: var(--slate-100);
  color: var(--blue-600);
}

.portal-user-menu-link.active {
  background: #eff6ff;
  color: var(--blue-600);
}

.portal-user-menu-icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: .45rem;
  background: #eef2ff;
  color: var(--blue-600);
}

.portal-user-menu-icon svg {
  width: 1rem;
  height: 1rem;
}

.portal-user-menu-logout {
  margin: .5rem 0 0 !important;
  padding-top: .5rem;
  border-top: 1px solid #e5e7eb;
}

.portal-user-menu-logout button {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid #fee2e2;
  border-radius: .45rem;
  background: #fff;
  color: #b91c1c;
  font-size: .86rem;
  font-weight: 700;
}

.portal-user-menu-logout button:hover {
  background: #fef2f2;
}

.admin-v2 .admin-brand {
  background: #1f2937;
}

.admin-v2 .admin-sidebar .user-status {
  color: #64748b;
}

.admin-content {
  width: 100%;
  max-width: 1180px;
}

.portal-main-compact {
  width: min(980px, calc(100% - 48px));
  padding-top: clamp(48px, 8vh, 78px);
}

.portal-intro-compact {
  max-width: 560px;
}

.portal-intro-compact h1 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
}

.portal-intro-compact p {
  margin-top: 12px;
}

.portal-grid-compact {
  margin-top: 34px;
  gap: 12px;
}

.portal-area-card-compact {
  min-height: 144px;
  padding: 20px;
  flex-direction: row;
  gap: 17px;
  box-shadow: none;
}

.portal-area-card-compact:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(24, 33, 47, .07);
}

.portal-area-icon-compact {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
}

.portal-area-icon-compact svg {
  width: 22px;
  height: 22px;
}

.portal-area-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.portal-area-card-compact strong {
  font-size: 1.05rem;
}

.portal-area-card-compact .portal-area-description {
  margin-top: 5px;
  font-size: .82rem;
}

.portal-area-card-compact .portal-area-action {
  padding-top: 14px;
  font-size: .78rem;
}

.portal-header-logout {
  margin: 0;
}

.portal-logout-text {
  padding: 8px 12px;
  border: 1px solid #dce2e8;
  border-radius: 7px;
  background: #fff;
  color: #526074;
  font-size: .82rem;
  font-weight: 650;
}

.portal-login-body {
  --login-accent: #1769aa;
  --login-soft: #e9f2fa;
  min-height: 100vh;
  margin: 0;
  background: #f4f6f8;
  color: #18212f;
  font-family: Inter, "Segoe UI", sans-serif;
}

.portal-login-owner {
  --login-accent: #15826f;
  --login-soft: #e6f4f0;
}

.portal-login-driver {
  --login-accent: #d56b18;
  --login-soft: #fff0e3;
}

.portal-login-municipality {
  --login-accent: #527335;
  --login-soft: #edf3e7;
}

.portal-login-admin {
  --login-accent: #1f2937;
  --login-soft: #eef2f7;
}

.portal-login-shell {
  width: min(430px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 8vh, 76px) 0;
}

.portal-login-back {
  width: fit-content;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #637083;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.portal-login-back:hover {
  color: #263345;
}

.portal-login-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login-panel {
  padding: 32px;
  border: 2px solid var(--login-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 33, 47, .07);
}

.portal-login-heading {
  margin-bottom: 26px;
}

.portal-login-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--login-soft);
  color: var(--login-accent);
}

.portal-login-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-login-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--login-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.portal-login-heading h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.portal-login-heading p {
  margin: 8px 0 0;
  color: #6a7586;
  font-size: .87rem;
}

.portal-login-field {
  margin-bottom: 17px;
}

.portal-login-field label {
  margin-bottom: 6px;
  display: block;
  color: #344054;
  font-size: .8rem;
  font-weight: 700;
}

.portal-login-field input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  background: #fff;
  color: #18212f;
  outline: none;
}

.portal-login-field input:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--login-accent) 14%, transparent);
}

.portal-login-field > span,
.portal-login-validation {
  color: #b42318;
  font-size: .78rem;
}

.portal-login-validation:empty {
  display: none;
}

.portal-login-validation {
  margin-bottom: 16px;
}

.portal-login-validation ul {
  margin: 0;
  padding-left: 18px;
}

.portal-login-remember {
  margin: 2px 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #596579;
  font-size: .82rem;
}

.portal-login-remember input {
  accent-color: var(--login-accent);
}

.portal-login-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--login-accent);
  color: #fff;
  font-size: .88rem;
  font-weight: 750;
}

.portal-login-submit:hover {
  filter: brightness(.93);
}

@media (max-width: 700px) {
  .portal-header {
    padding: 12px 18px;
  }

  .portal-brand small,
  .portal-user-name {
    display: none;
  }

  .portal-main {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .portal-area-card {
    min-height: 244px;
    padding: 24px;
  }

  .portal-area-card-compact {
    min-height: 136px;
    padding: 18px;
  }

  .portal-login-panel {
    padding: 26px 22px;
  }
}
