/* app/home/home-screen.component.css */
.home-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.home-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.home-card p {
  margin: 0;
  color: #4b5563;
}

.home-user-panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  white-space: nowrap;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #075985;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.user-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
  font-weight: 700;
}

.logout-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.logout-btn:hover {
  background: #dc2626;
}

.home-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(238, 242, 247, 0.78);
  backdrop-filter: blur(4px);
}

.loading-card {
  min-width: 260px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  padding: 24px;
  text-align: center;
  color: #0f172a;
}

.loading-card p {
  margin: 8px 0 0;
  color: #64748b;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  display: inline-block;
  margin-bottom: 14px;
  border: 4px solid #dbeafe;
  border-top-color: #075985;
  border-radius: 999px;
  animation: home-spin 0.85s linear infinite;
}

@keyframes home-spin {
  to {
    transform: rotate(360deg);
  }
}

.modules-card {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.module-tile {
  --module-color: #075985;
  --module-soft: #e0f2fe;
  --module-glow: rgba(7, 89, 133, 0.14);
  border: 1px solid color-mix(in srgb, var(--module-color) 28%, #ffffff);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--module-soft) 72%, transparent) 0, transparent 42%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  padding: 18px;
  min-height: 170px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.module-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--module-color) 62%, #ffffff);
  box-shadow: 0 18px 32px var(--module-glow);
}

.module-tile.denied {
  border-color: #e2e8f0;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  opacity: .72;
}

.module-tile.denied:hover {
  transform: none;
  border-color: #cbd5e1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.module-tile.theme-master {
  --module-color: #075985;
  --module-soft: #dbeafe;
  --module-glow: rgba(7, 89, 133, 0.18);
}

.module-tile.theme-planning {
  --module-color: #15803d;
  --module-soft: #dcfce7;
  --module-glow: rgba(21, 128, 61, 0.16);
}

.module-tile.theme-reports {
  --module-color: #c2410c;
  --module-soft: #ffedd5;
  --module-glow: rgba(194, 65, 12, 0.16);
}

.module-tile.theme-tracking {
  --module-color: #0369a1;
  --module-soft: #cffafe;
  --module-glow: rgba(3, 105, 161, 0.16);
}

.module-tile.theme-security {
  --module-color: #334155;
  --module-soft: #e2e8f0;
  --module-glow: rgba(51, 65, 85, 0.16);
}

.module-tile.theme-push-information {
  --module-color: #0f766e;
  --module-soft: #ccfbf1;
  --module-glow: rgba(15, 118, 110, 0.16);
}

.module-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--module-soft) 74%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--module-color) 22%, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.module-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.module-title {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.module-description {
  color: #475569;
  line-height: 1.35;
  min-height: 38px;
  overflow-wrap: anywhere;
}

.module-detail {
  color: var(--module-color);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-access {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-soft) 78%, #ffffff);
  color: var(--module-color);
  font-size: 0.78rem;
  font-weight: 800;
}

.module-access.denied {
  background: #fee2e2;
  color: #991b1b;
}

.company-picker-card {
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.company-picker-card h3 {
  margin: 0;
  font-size: 18px;
}

.company-picker-card p {
  margin: 8px 0 0;
  color: #475569;
}

.picker-loading {
  margin-top: 12px;
  color: #64748b;
}

.picker-list {
  margin-top: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 10px 12px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

.picker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  font-size: 0.95rem;
}

.picker-item.all {
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.picker-empty {
  margin: 0;
  color: #64748b;
}

.picker-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.apply-btn,
.clear-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.apply-btn {
  background: #2563eb;
  color: #fff;
}

.clear-btn {
  background: #e2e8f0;
  color: #0f172a;
}

.picker-status {
  margin-top: 10px;
  color: #0f766e;
  font-weight: 600;
}

@media (max-width: 760px) {
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-user-panel {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
  }

  .user-name {
    flex: 1;
    max-width: none;
  }

  .home-card,
  .company-picker-card {
    padding: 16px;
  }
}

/* app/layout/app-shell/app.component.css */
:root, .mfe-component-host {
  display: block;
  min-height: 100vh;
}

.global-loading-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(14, 116, 144, 0.12), transparent 30%),
    rgba(4, 14, 32, 0.22);
  backdrop-filter: blur(2px);
}

.global-loading-card {
  width: min(520px, calc(100vw - 48px));
  padding: 48px 54px 42px;
  border: 1px solid rgba(145, 188, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 56px rgba(5, 31, 66, 0.2);
  color: #0f2d4f;
  text-align: center;
  animation: global-loading-pulse 1.35s ease-in-out infinite;
}

.global-loading-logo {
  width: 216px;
  height: 216px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(7, 71, 125, 0.12);
}

.global-loading-logo img {
  width: 198px;
  height: 198px;
  object-fit: contain;
}

.global-loading-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

@keyframes global-loading-pulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.94;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

/* app/layout/main-shell/main-screen.component.css */
:root, .mfe-component-host {
  display: block;
  height: 100vh;
}

.main-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  background: #eef2f7;
  color: #0f172a;
}

.main-layout.collapsed {
  grid-template-columns: 40px 1fr;
}

.main-layout.home-view,
.main-layout.home-view.collapsed {
  grid-template-columns: 1fr;
}

.main-layout.home-view .sidebar-fab {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-fab {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #17bcff;
  color: #0d203e;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1100;
}

.sidebar-fab::before,
.sidebar-fab::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar-fab::before {
  top: 20px;
}

.sidebar-fab::after {
  top: 26px;
}

.sidebar {
  background: #0d203e;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 10px 0px;
  gap: 16px;
  height: 100vh;
  overflow-y: auto;
  /* Oculta la barra visible, pero mantiene el scroll con la rueda */
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.sidebar-brand:hover .brand-text {
  color: #73e2ff;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.sidebar-toggle {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 6px;
}

.sidebar-toggle span {
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  display: block;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-action.logout-icon {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.sidebar-action.logout-icon:hover {
  color: #73e2ff;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0px;
  overflow-y: auto;
  padding-right: 0px;
  scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-group-header.is-collapsible:hover .nav-group-label {
  color: #fff;
}

.nav-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  padding: 0 8px;
}
.nav-group-label.collapsed {
  padding: 0;
  text-align: center;
  width: 100%;
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.chevron.collapsed {
  transform: rotate(-135deg);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 2px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-item:hover {
  background: #73e2ff;
  color: #0f172a;
  transform: translateX(2px);
}

.nav-item.active {
  background: #17bcff;
  color: #fff;
  width: 100%;
  border-radius: 0;
  margin: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  flex-shrink: 0;
}

.icon-inicio { background-image: url('/assets/img/IconInicio.png'); }
.icon-tracking { background-image: url('/assets/img/IconTracking.png'); }
.icon-tenant { background-image: url('/assets/img/IconTenant.png'); }
.icon-user { background-image: url('/assets/img/IconUser.png'); }
.icon-regmaestro { background-image: url('/assets/img/IconRegMaestro.png'); }
.icon-company { background-image: url('/assets/img/IconCompany.png'); }
.icon-route { background-image: url('/assets/img/IconRoute.png'); }
.icon-direction { background-image: url('/assets/img/IconDirection.png'); }
.icon-zones { background-image: url('/assets/img/IconZones.png'); }
.icon-tariff { background-image: url('/assets/img/IconTariff.png'); }
.icon-price { background-image: url('/assets/img/IconPrice.png'); }
.icon-busstop { background-image: url('/assets/img/IconBusStop.png'); }
.icon-routesegment { background-image: url('/assets/img/IconRouteSegment.png'); }
.icon-farerules { background-image: url('/assets/img/IconFareRules.png'); }
.icon-timebands { background-image: url('/assets/img/IconTimeBands.png'); }
.icon-servicecalendar { background-image: url('/assets/img/IconServiceCalendar.png'); }
.icon-bus { background-image: url('/assets/img/IconBus.png'); }
.icon-busroute { background-image: url('/assets/img/IconBusRoute.png'); }
.icon-upload { background-image: url('/assets/img/IconUpload.png'); }
.icon-kardex { background-image: url('/assets/img/IconKardex.png'); }

/* Tecnico: no puede eliminar */
.main-layout.profile-technician .crud-icon.danger,
.main-layout.profile-technician button[aria-label*="Eliminar"],
.main-layout.profile-technician .toast-btn.danger {
  display: none !important;
}

.main-layout.profile-technician .crud-icon.danger,
.main-layout.profile-technician button[aria-label*="Eliminar"],
.main-layout.profile-technician .toast-btn.danger {
  display: none !important;
}

/* Invitado: solo lectura (sin crear/editar/eliminar/guardar) */
.main-layout.profile-guest .btn.icon-only,
.main-layout.profile-guest .crud-icon,
.main-layout.profile-guest .crud-form-actions .crud-primary,
.main-layout.profile-guest .crud-form-actions .crud-secondary,
.main-layout.profile-guest .toast-btn.danger,
.main-layout.profile-guest .create-toggle,
.main-layout.profile-guest button[aria-label*="Nuevo"],
.main-layout.profile-guest button[aria-label*="Editar"],
.main-layout.profile-guest button[aria-label*="Eliminar"],
.main-layout.profile-guest .main-content .mini-actions,
.main-layout.profile-guest .main-content .trip-header .btn-primary,
.main-layout.profile-guest .main-content .col-header-actions .btn-primary,
.main-layout.profile-guest .main-content .modal footer .btn-primary,
.main-layout.profile-guest .main-content .modal footer .btn-secondary,
.main-layout.profile-guest .main-content .padron-confirm .btn-primary,
.main-layout.profile-guest .main-content .padron-confirm .btn-secondary {
  display: none !important;
}

.main-layout.profile-guest .btn.icon-only,
.main-layout.profile-guest .crud-icon,
.main-layout.profile-guest .crud-form-actions .crud-primary,
.main-layout.profile-guest .crud-form-actions .crud-secondary,
.main-layout.profile-guest .toast-btn.danger,
.main-layout.profile-guest .create-toggle,
.main-layout.profile-guest button[aria-label*="Nuevo"],
.main-layout.profile-guest button[aria-label*="Editar"],
.main-layout.profile-guest button[aria-label*="Eliminar"],
.main-layout.profile-guest .main-content .mini-actions,
.main-layout.profile-guest .main-content .trip-header .btn-primary,
.main-layout.profile-guest .main-content .col-header-actions .btn-primary,
.main-layout.profile-guest .main-content .modal footer .btn-primary,
.main-layout.profile-guest .main-content .modal footer .btn-secondary,
.main-layout.profile-guest .main-content .padron-confirm .btn-primary,
.main-layout.profile-guest .main-content .padron-confirm .btn-secondary {
  display: none !important;
}

.nav-item.active .nav-icon {
  background: transparent;
  opacity: 1;
}

.nav-text {
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
  display: block;
}

.main-content {
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 100vh;
}

.logout-float {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.logout-float:hover {
  background: #dc2626;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 40px 1fr;
  }

  .main-layout.collapsed {
    grid-template-columns: 40px 1fr;
  }

  .main-content {
    padding: 16px;
  }
}

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

  .main-layout.collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    max-width: 80vw;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1050;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  }

  .main-layout:not(.collapsed) .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1040;
  }

  .sidebar-fab {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* feature/FleetTracking/screen/fleet-tracking-screen.component.css */
.tracking-shell {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
}

.tracking-shell.tools-hidden {
  grid-template-columns: 1fr;
}

.map-wrapper {
  position: relative;
}

.tracking-map {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.legend-panel {
  position: absolute;
  bottom: 16px;
  left: 72px;
  z-index: 700;
  width: 290px;
  max-height: 320px;
  display: none;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(2px);
  padding: 10px;
}

.legend-panel.open {
  display: flex;
}

.ctrl-btn.legend-trigger {
  color: #2563eb;
  font-weight: 800;
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  color: #0f172a;
}

.legend-close {
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.legend-list {
  overflow: auto;
  max-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.legend-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.legend-badge {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.legend-text {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.legend-empty {
  color: #64748b;
  font-size: 13px;
  padding: 8px 2px;
}

.tracking-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.ctrl-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ctrl-btn:hover {
  background: #e5f0ff;
}

.ctrl-btn:active {
  transform: translateY(1px);
}

.ctrl-btn.star {
  color: #f59e0b;
}

.ctrl-btn.cluster,
.ctrl-btn.expand {
  color: #0ea5e9;
}

.ctrl-btn.zoom-in,
.ctrl-btn.zoom-out {
  color: #374151;
}

.ctrl-separator {
  width: 18px;
  height: 1px;
  background: #d1d5db;
}

.ctrl-slider {
  width: 4px;
  height: 46px;
  background: #d1d5db;
  border-radius: 2px;
}

.tool-panel {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -4px 0 14px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 810;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-search {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
}

.tool-search-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  height: 38px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tool-close {
  border: none;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-list > button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-list > button:hover {
  background: #e8f2ff;
  transform: translateX(2px);
}

.tool-list > button .chevron {
  font-size: 14px;
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}

.tool-list > button .chevron.open {
  transform: rotate(270deg);
}

.layer-options {
  margin: -4px 0 6px 0;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.layer-item input {
  width: 16px;
  height: 16px;
}

.layer-item.nested {
  padding-left: 12px;
  font-weight: 500;
}

.layer-options.inner {
  margin: 6px 0 10px 0;
}

.subheader {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.subheader .chevron {
  font-size: 14px;
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}

.subheader .chevron.open {
  transform: rotate(270deg);
}

.route-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.route-code {
  font-weight: 700;
}

.route-actions {
  display: flex;
  gap: 6px;
}

.pill {
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill.active {
  border-color: #16a34a;
  background: #16a34a;
}

.pill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}

.color-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.capture-popup {
  position: absolute;
  bottom: 16px;
  left: 72px;
  width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  padding: 10px;
  z-index: 550;
}

.capture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.capture-add {
  border: none;
  background: #f59e0b;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
}

.capture-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capture-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.capture-item input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
}

.capture-item button {
  border: 1px solid #d8db9e;
  background: #d8db9e;
  color: #374151;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.capture-empty {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.loc-icon {
  font-size: 18px;
  color: #374151;
}

.capture-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: flash 0.25s ease;
  z-index: 549;
}

@keyframes flash {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 0;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 900;
}

.zone-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
  padding: 14px;
  z-index: 901;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zone-title {
  font-weight: 800;
  color: #0f172a;
}

.zone-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.zone-close {
  border: none;
  background: #e5e7eb;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.zone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.zone-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.zone-item input {
  width: 16px;
  height: 16px;
}

.zone-color {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.zone-empty {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 12px 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.filter-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.tool-toggle {
  position: absolute;
  right: 12px;
  bottom: 16px;
  z-index: 600;
  border: none;
  background: #0f172a;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.vehicle-details-card {
  margin-top: 6px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vehicle-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
}

.vehicle-details-close {
  border: none;
  background: #e2e8f0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.vehicle-details-loading {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.vehicle-details-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.vehicle-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.vehicle-details-grid .detail-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: center;
}

.vehicle-details-grid .label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.vehicle-details-grid .value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.vehicle-details-grid .value.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f1f5f9;
}

.vehicle-details-grid .value.status.live {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.vehicle-details-grid .value.status.last {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

@media (max-width: 1080px) {
  .tracking-shell {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 900px) {
  .tracking-shell {
    grid-template-columns: 1fr;
    height: 100dvh;
  }

  .map-wrapper,
  .tracking-map {
    min-height: 100dvh;
    height: 100dvh;
  }

  .tool-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 420px);
    height: 100dvh;
    border-left: 1px solid #e5e7eb;
    border-top: none;
    background: #fff;
    z-index: 900;
    box-shadow: -10px 0 26px rgba(15, 23, 42, 0.2);
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .tool-toggle {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 910;
  }
}

@media (max-width: 720px) {
  .tool-panel {
    width: 100vw;
    max-width: 100vw;
  }
}

.tracking-vehicle-icon .vehicle-chip {
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1;
  text-align: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.tracking-zone-order-icon {
  background: transparent;
  border: none;
}

.tracking-zone-order-icon span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

.tracking-vehicle-icon .vehicle-dot {
  display: none;
}

.tracking-vehicle-icon .vehicle-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

.tracking-vehicle-icon .vehicle-core {
  width: 12px;
  height: 12px;
  background: #2563eb;
  border-radius: 50%;
  border: 2px solid #fff;
}

.tracking-vehicle-label {
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  font-size: 12px;
  font-weight: 600;
}

.tracking-vehicle-label .vehicle-tooltip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 86px;
}

.tracking-vehicle-label .vehicle-tooltip-title {
  font-size: 12px;
  font-weight: 800;
  color: inherit;
  line-height: 1.2;
}

.tracking-vehicle-label .vehicle-tooltip--chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  border: 2px solid #16a34a;
  background: #ecfdf5;
  color: #14532d;
  min-width: 88px;
  text-align: center;
}

.tracking-vehicle-label .vehicle-tooltip--chip.is-live {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #14532d;
}

.tracking-vehicle-label .vehicle-tooltip--chip.is-last-known {
  border-color: #9ca3af;
  background: #f3f4f6;
  color: #334155;
}

.bus-marker-div {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
}

.bus-marker-div.is-live {
  box-shadow: 0 0 0 3px #22c55e,
              0 0 0 5px rgba(34,197,94,0.3);
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

.bus-marker-div.is-last-known {
  box-shadow: 0 0 0 3px #6b7280,
              0 0 0 5px rgba(107,114,128,0.2);
  border-radius: 50%;
  opacity: 0.75;
}

.bus-marker-div.is-highlighted {
  box-shadow: 0 0 0 4px #38bdf8,
              0 0 0 8px rgba(56,189,248,0.3);
  border-radius: 50%;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 3px #22c55e,
                0 0 0 5px rgba(34,197,94,0.2);
  }
  50% {
    box-shadow: 0 0 0 5px #22c55e,
                0 0 0 10px rgba(34,197,94,0.4);
  }
}

.tracking-stop-label {
  background: #fff;
  color: #0f172a;
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  font-size: 12px;
  font-weight: 600;
}

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

  .tracking-map {
    min-height: 420px;
  }
}

/* Premium blue UI theme (map tiles are intentionally untouched) */
:root, .mfe-component-host {
  --ui-bg: #06122a;
  --ui-bg-soft: #0c1f3f;
  --ui-bg-card: #10284f;
  --ui-border: #23467a;
  --ui-border-soft: #1c3865;
  --ui-text: #f8fbff;
  --ui-muted: #9eb8df;
  --ui-accent: #59b7ff;
  --ui-live: #22c55e;
  --ui-last: #f59e0b;
}

.tracking-controls {
  background: rgba(6, 18, 42, 0.9);
  border: 1px solid var(--ui-border);
  box-shadow: 0 10px 22px rgba(2, 8, 24, 0.45);
}

.ctrl-btn {
  background: var(--ui-bg-soft);
  color: var(--ui-text);
  border-color: var(--ui-border);
}

.ctrl-btn:hover {
  background: #143163;
}

.ctrl-btn.legend-trigger {
  color: var(--ui-accent);
}

.ctrl-separator {
  background: var(--ui-border);
}

.tool-panel {
  background: linear-gradient(180deg, #071633 0%, #06122a 100%);
  border-left: 1px solid var(--ui-border);
  box-shadow: -8px 0 24px rgba(2, 8, 24, 0.48);
}

.tool-search {
  background: var(--ui-bg-soft);
  color: var(--ui-text);
  border-color: var(--ui-border);
}

.tool-search::placeholder {
  color: var(--ui-muted);
}

.tool-search-btn {
  background: #173a72;
  border-color: #2f5a96;
  color: var(--ui-text);
}

.tool-close {
  background: #17325a;
  color: var(--ui-text);
}

.tool-list > button {
  background: var(--ui-bg-soft);
  border-color: var(--ui-border-soft);
  color: var(--ui-text);
}

.tool-list > button:hover {
  background: #17355f;
}

.layer-options {
  background: #0a1d3d;
  border-color: var(--ui-border-soft);
}

.layer-item,
.filter-row,
.route-code {
  color: var(--ui-text);
}

.subheader {
  background: #112a52;
  border-color: var(--ui-border);
  color: var(--ui-text);
}

.filter-row select {
  background: #0f2548;
  border-color: var(--ui-border);
  color: var(--ui-text);
}

.filter-row label {
  color: var(--ui-muted);
}

.legend-panel,
.capture-popup,
.zone-modal {
  background: rgba(7, 22, 51, 0.96);
  border-color: var(--ui-border);
  color: var(--ui-text);
  box-shadow: 0 16px 30px rgba(2, 8, 24, 0.5);
}

.legend-header,
.capture-header,
.zone-title {
  color: var(--ui-text);
}

.legend-row {
  background: #10284f;
  border-color: var(--ui-border-soft);
}

.legend-text,
.zone-item {
  color: var(--ui-text);
}

.legend-empty,
.capture-empty,
.zone-subtitle,
.zone-empty {
  color: var(--ui-muted);
}

.legend-close,
.zone-close {
  background: #15345f;
  color: var(--ui-text);
}

.capture-item input {
  background: #0f2548;
  border-color: var(--ui-border);
  color: var(--ui-text);
}

.capture-item button {
  background: #15345f;
  border-color: #2f5a96;
  color: var(--ui-text);
}

.vehicle-details-card {
  border-color: var(--ui-border);
  background: #0a1c3a;
}

.vehicle-details-card.collapsed {
  gap: 0;
}

.vehicle-details-header {
  color: var(--ui-text);
  gap: 8px;
}

.vehicle-details-title-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.vehicle-details-title-btn strong {
  color: var(--ui-text);
}

.vehicle-details-title-btn .chevron {
  font-size: 14px;
  color: var(--ui-muted);
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.vehicle-details-title-btn .chevron.open {
  transform: rotate(270deg);
}

.vehicle-details-close {
  background: #17345f;
  color: var(--ui-text);
}

.vehicle-details-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 1800px;
  opacity: 1;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.vehicle-details-body.collapsed {
  max-height: 0;
  opacity: 0;
}

.vehicle-details-loading {
  color: var(--ui-muted);
}

.vehicle-details-grid .label {
  color: var(--ui-muted);
}

.vehicle-details-grid .value {
  color: var(--ui-text);
}

.vehicle-details-grid .value.status {
  background: #11284a;
  border-color: var(--ui-border);
}

.vehicle-details-grid .value.status.live {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.65);
  color: #86efac;
}

.vehicle-details-grid .value.status.last {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fcd34d;
}

.tracking-vehicle-label {
  background: rgba(7, 22, 51, 0.94);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  box-shadow: 0 4px 12px rgba(2, 8, 24, 0.45);
}

.tracking-vehicle-label .vehicle-tooltip-title {
  color: var(--ui-text);
}

.tracking-vehicle-label .vehicle-tooltip--chip.is-live {
  border-color: #1cc16b;
  background: rgba(28, 193, 107, 0.2);
  color: #86efac;
}

.tracking-vehicle-label .vehicle-tooltip--chip.is-last-known {
  border-color: #f6b03d;
  background: rgba(246, 176, 61, 0.2);
  color: #fde68a;
}

.vehicle-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vehicle-premium-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ui-border-soft);
}

.vehicle-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.18);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.vehicle-main {
  min-width: 0;
}

.vehicle-id {
  color: var(--ui-text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.vehicle-route {
  color: var(--ui-muted);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.vehicle-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--ui-border);
  background: #11284a;
  color: var(--ui-muted);
}

.vehicle-status.live {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.vehicle-status.last {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.vehicle-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vehicle-stat {
  border: 1px solid var(--ui-border-soft);
  background: #0f2548;
  border-radius: 10px;
  padding: 8px 10px;
}

.stat-label {
  color: var(--ui-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stat-value {
  color: var(--ui-text);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  margin-top: 5px;
}

.stat-sub {
  color: var(--ui-muted);
  font-size: 10px;
  margin-top: 4px;
}

.vehicle-route-progress {
  border: 1px solid var(--ui-border-soft);
  border-radius: 10px;
  background: #0f2548;
  padding: 10px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-value {
  color: var(--ui-accent);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  margin-top: 8px;
  height: 6px;
  border-radius: 6px;
  background: #1e3b66;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #1cc16b 0%, #59b7ff 100%);
}

.progress-stops {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ui-muted);
  font-size: 10px;
}

.progress-current {
  margin-top: 6px;
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 700;
}

.vehicle-data-grid {
  border: 1px solid var(--ui-border-soft);
  border-radius: 10px;
  background: #0a1d3d;
  overflow: hidden;
}

.data-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(35, 70, 122, 0.45);
}

.data-row:last-child {
  border-bottom: none;
}

.data-row span:first-child {
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 700;
}

.data-row span:last-child {
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 700;
  word-break: break-word;
  text-align: right;
}

/* feature/Identity/LoginScreen/components/input-field.component.css */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.label {
  color: #2b2b2b;
  font-weight: 600;
}

.input {
  border: 1px solid #ccd1d8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: #3a5a98;
}

.error {
  color: #b52b2b;
  font-size: 12px;
  margin-top: 6px;
}

/* feature/Identity/LoginScreen/screen/login-screen.component.css */
.login-layout {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0d203e;
}

.panel {
  min-height: 100vh;
}

.panel.left {
  background: #0d203e;
  position: relative;
  color: #fff;
}

.footer-note {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.footer-note.desktop {
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.footer-note.mobile {
  color: #0f172a;
  text-align: center;
  margin-top: 10px;
  display: none;
}

.footer-note.mobile-fixed {
  display: none;
}

.center-logo.mobile {
  display: none;
}

.center-logo.desktop {
  display: flex;
}

.footer-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 13px;
  font-weight: 600;
}

.panel.right {
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 32px;
  position: relative;
}

.auth-form {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 2;
  justify-items: stretch;
  align-items: center;
  margin-left: 240px;
}

.input-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.input-row .icon {
  width: 48px;
  height: 48px;
  border: 1px solid #1f2a44;
  border-radius: 6px;
  background: #c8d2e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  color: #0d203e;
  align-self: center;
}

.input-row.user .icon::before {
  content: "👤";
}

.input-row.pass .icon::before {
  content: "🔒";
}

.input-row app-input-field {
  width: 100%;
  display: block;
  pointer-events: auto;
}

.input-row app-input-field .input-wrapper {
  width: 100%;
  display: block;
}

.input-row app-input-field input {
  width: 100%;
  height: 48px;
  border: 1px solid #1f2a44;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.input-row app-input-field .label {
  display: none;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
}

.btn-login {
  border: 1px solid #1a8a4a;
  background: #7fe0a8;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-login:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

.status {
  font-size: 13px;
}

.status.error {
  color: #b52b2b;
}

.status.success {
  color: #237a3a;
}

.center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.center-logo img {
  max-width: 340px;
  max-height: 340px;
}

@media (max-width: 1200px) {
  .auth-form {
    margin-left: 140px;
  }

  .center-logo {
    width: 320px;
    height: 320px;
  }

  .center-logo img {
    max-width: 290px;
    max-height: 290px;
  }
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    background: #eef2f7;
    grid-auto-flow: row;
    min-height: 100vh;
  }

  .panel.left {
    display: none;
  }

  .panel.right {
    min-height: 100vh;
    padding: 24px 20px 12px;
    justify-content: center;
    align-items: center;
  }

  .center-logo {
    position: relative;
    transform: none;
    left: 0;
    top: 0;
    order: -1; /* logo antes del formulario */
    margin: 12px auto 18px;
    width: 260px;
    height: 260px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .center-logo img {
    max-width: 230px;
    max-height: 230px;
  }

  .center-logo.desktop {
    display: none;
  }

  .center-logo.mobile {
    display: flex;
  }

  .auth-form {
    margin: 0 auto;
    width: min(500px, 100%);
    padding: 0 6px;
    align-items: stretch;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

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

  .btn-login {
    width: 100%;
  }

  .footer-note.mobile {
    display: block;
  }

  .footer-note.mobile-fixed {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0d203e;
    color: #fff;
    padding: 12px;
    text-align: center;
    z-index: 3;
  }
}

@media (max-width: 600px) {
  .panel.left {
    min-height: 120px;
    padding-bottom: 24px;
  }

  .center-logo {
    width: 220px;
    height: 220px;
  }

  .center-logo img {
    max-width: 200px;
    max-height: 200px;
  }

  .auth-form {
    gap: 14px;
    padding: 0 4px;
    margin-top: 4px;
  }

  .input-row .icon {
    width: 38px;
    height: 38px;
  }

  .footer-note.desktop {
    display: none;
  }

  .footer-note.mobile {
    display: block;
  }
}

/* feature/Identity/Role/screen/role-screen.component.css */
.role-admin-page {
  padding: 24px;
  color: #10233f;
}

.role-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #006a8f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  font-size: 28px;
  font-weight: 900;
}

.subtitle {
  margin-top: 6px;
  color: #65758b;
}

.tenant-card,
.roles-panel,
.editor-panel {
  background: #ffffff;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 45, 75, .08);
}

.tenant-card {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.tenant-card label,
.editor-grid label {
  display: grid;
  gap: 7px;
  color: #20344f;
  font-weight: 800;
}

.tenant-card select,
.editor-grid input,
.editor-grid select,
.roles-panel input,
.permissions-toolbar input {
  height: 42px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  padding: 0 12px;
  color: #10233f;
  background: #f8fbff;
}

.tenant-card select {
  min-width: 320px;
}

.tenant-hint {
  color: #708094;
  font-size: 13px;
}

.role-admin-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.roles-panel {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.panel-title,
.permissions-toolbar,
.module-head,
.resource-head,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title span {
  min-width: 30px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f2ff;
  color: #005a9e;
  font-weight: 900;
}

.role-item {
  border: 1px solid #dce6f1;
  border-radius: 14px;
  padding: 13px;
  background: #f8fbff;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.role-item:hover,
.role-item.active {
  border-color: #0088bf;
  background: #eaf8ff;
}

.role-item strong {
  color: #0b2d55;
}

.role-item span,
.permissions-toolbar p,
.module-head small,
.resource-head small {
  color: #718197;
  font-size: 12px;
}

.editor-panel {
  padding: 18px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 260px minmax(240px, 1fr) 280px;
  gap: 14px;
  margin-bottom: 18px;
}

.permissions-toolbar {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef8ff, #f8fbff);
  border: 1px solid #dceaf7;
  margin-bottom: 14px;
}

.permissions-toolbar input {
  min-width: 320px;
}

.permissions-tree {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 370px);
  overflow: auto;
  padding-right: 4px;
}

.module-card {
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
}

.module-head {
  margin-bottom: 10px;
}

.module-check,
.resource-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.module-check span {
  font-size: 17px;
}

.resource-card {
  border-top: 1px solid #edf2f8;
  padding: 12px 0;
}

.resource-card:first-of-type {
  border-top: 0;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
  padding-left: 28px;
}

.action-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid #cfdeed;
  background: #ffffff;
  color: #24415f;
  font-weight: 800;
  font-size: 13px;
}

.action-pill.disabled {
  opacity: .55;
  background: #f3f6fa;
}

.resource-check em {
  font-style: normal;
  font-size: 11px;
  color: #0077a7;
  background: #e9f8ff;
  border-radius: 999px;
  padding: 3px 8px;
}

.no-actions {
  color: #7a8999;
  font-size: 13px;
}

.primary-button,
.ghost-button,
.danger-button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  background: #006a8f;
  color: #ffffff;
}

.ghost-button {
  background: #eef4fb;
  color: #173451;
}

.danger-button {
  background: #fff1f1;
  color: #b42318;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.editor-actions {
  border-top: 1px solid #e6edf5;
  padding-top: 16px;
  margin-top: 16px;
}

.spacer {
  flex: 1;
}

.status {
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 800;
}

.status.error {
  color: #9f1f1f;
  background: #fff0f0;
  border: 1px solid #ffd4d4;
}

.status.ok {
  color: #0e6b40;
  background: #ecfff5;
  border: 1px solid #bdebd1;
}

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2600;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 18px;
  border-radius: 16px;
  background: #0e6b40;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 35, 63, .22);
  font-weight: 900;
  animation: toast-in .18s ease-out;
}

.toast.error {
  background: #b42318;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty,
.loading-box {
  padding: 18px;
  color: #72839a;
  text-align: center;
}

.empty-state,
.role-summary {
  display: grid;
  gap: 14px;
  min-height: 260px;
  align-content: center;
  justify-items: start;
  padding: 28px;
}

.role-summary strong {
  color: #006a8f;
}

.summary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 22, 38, .48);
  display: grid;
  place-items: center;
  padding: 22px;
}

.role-modal {
  width: min(980px, 96vw);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(5, 18, 35, .35);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid #e6edf5;
}

.close-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eef4fb;
  color: #183755;
  font-weight: 900;
  cursor: pointer;
}

.modal-body {
  overflow: auto;
  padding: 18px 22px;
  display: grid;
  gap: 14px;
}

.description-field,
.screen-picker label,
.permission-search {
  display: grid;
  gap: 7px;
  color: #20344f;
  font-weight: 800;
}

.description-field input,
.screen-picker input,
.screen-picker select,
.permission-search input,
.editor-grid select {
  height: 42px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  padding: 0 12px;
  color: #10233f;
  background: #f8fbff;
}

.screen-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.4fr);
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dceaf7;
  background: linear-gradient(135deg, #eef8ff, #fbfdff);
}

.screen-actions-card {
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
}

.allow-all-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe7d8;
  border-radius: 14px;
  background: #f0fff6;
  color: #174c31;
  font-weight: 900;
}

.allow-all-actions em {
  margin-left: auto;
  font-style: normal;
  color: #0e6b40;
  font-size: 12px;
}

.editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border: 1px solid #dceaf7;
  border-radius: 16px;
  background: #eef6ff;
}

.editor-tabs button {
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: transparent;
  color: #31516f;
  font-weight: 900;
  cursor: pointer;
}

.editor-tabs button.active {
  background: #006a8f;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 106, 143, .18);
}

.editor-tabs button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tab-panel {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  padding: 14px;
  background: #fbfdff;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.module-select-card {
  min-height: 150px;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  color: #10233f;
  text-align: left;
  display: grid;
  gap: 7px;
  cursor: pointer;
}

.module-select-card:hover,
.module-select-card.active {
  border-color: #006a8f;
  background: #edf9ff;
}

.module-select-card .module-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #006a8f;
  display: inline-grid;
  place-items: center;
}

.module-select-card small {
  color: #718197;
}

.module-select-card em {
  color: #0e6b40;
  font-style: normal;
  font-weight: 900;
}

.tab-context {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #24415f;
}

.tab-context span {
  color: #718197;
  font-size: 13px;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

.resource-row.active {
  border-color: #006a8f;
  background: #edf9ff;
}

.resource-row .resource-check {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .role-admin-layout,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .tenant-card,
  .role-admin-header,
  .permissions-toolbar,
  .screen-picker,
  .resource-row,
  .tab-context,
  .allow-all-actions {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .allow-all-actions em {
    margin-left: 0;
  }

  .editor-tabs {
    grid-template-columns: 1fr;
  }

  .tenant-card select,
  .permissions-toolbar input {
    min-width: 0;
    width: 100%;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: none;
  }
}

/* feature/Identity/Tenant/screen/tenant-screen.component.css */
.route-page {
  display: flex;
  flex-direction: column;
  gap: 0px;
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
}

.tenant-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.tenant-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.tenant-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.crud-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}

.crud-actions {
  display: flex;
  gap: 8px;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

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

.crud-search input {
  width: 100%;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.crud-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tenant-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-row input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.tenant-usage {
  font-size: 0.85rem;
  color: #475569;
  padding: 6px 0;
}

.tenant-usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tenant-usage-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #475569;
  background: #f8fafc;
}

.tenant-usage-list li.blocking {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.tenant-usage-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #6b7280;
}

.tenant-wizard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tenant-wizard-step {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2a44;
}

.tenant-wizard-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}

.wizard-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.wizard-entity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.wizard-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #475569;
}

.tenant-wizard-actions {
  display: flex;
  gap: 8px;
}

.usage-entity {
  font-weight: 600;
}

.usage-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.crud-form-row .input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.error-text {
  color: #ef4444;
  font-size: 0.75rem;
}

.crud-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(720px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.crud-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.crud-table-header,
.crud-table-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 1fr 0.9fr;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.crud-table-header {
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.crud-table-row:nth-child(even) {
  background: #f8fafc;
}

.crud-actions-cell {
  display: flex;
  gap: 6px;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.9rem;
  color: #475569;
  padding-right: 6px;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

  .crud-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .crud-page {
    justify-content: space-between;
  }

  .tenant-table .crud-table-header {
    display: none;
  }

  .tenant-table .crud-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .tenant-table .crud-table-row .cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .tenant-table .crud-table-row .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }

.tenant-table .crud-actions-cell {
  justify-content: flex-start;
}
}

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

.page-header h2 {
  margin: 0;
}

.page-header-centered {
  justify-content: center;
  position: relative;
}

.page-header-centered .btn.icon-only {
  position: absolute;
  right: 0;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field input,
.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  min-width: 220px;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: none;
  height: auto;
  border: none;
  border-radius: 0;
  vertical-align: middle;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters .actions-col {
  width: 110px;
}

.column-filters input,
.column-filters select {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder {
  color: #fff;
}

.tenant-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.loading {
  padding: 20px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field input,
  .filter-field select {
    min-width: 0;
    width: 100%;
  }
}

/* feature/Identity/User/screen/user-screen.component.css */
.user-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

h1 {
  font-size: 26px;
  margin: 0 0 4px;
  color: #1f2a44;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

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

.crud-search input {
  width: 100%;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.crud-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.crud-form-row.checkbox {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(780px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assign-company-modal {
  width: min(720px, 92vw);
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.crud-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.crud-table-header,
.crud-table-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr 1.4fr 1fr 0.6fr 0.6fr 0.9fr;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.crud-table-header {
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.crud-table-row:nth-child(even) {
  background: #f8fafc;
}

.crud-actions-cell {
  display: flex;
  gap: 6px;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

  .crud-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .crud-page {
    justify-content: space-between;
  }

  .user-table .crud-table-header {
    display: none;
  }

  .user-table .crud-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .user-table .crud-table-row .cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .user-table .crud-table-row .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }

  .user-table .crud-actions-cell {
    justify-content: flex-start;
  }
}

.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
}

.user-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.user-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.user-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field input,
.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  min-width: 220px;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.bulk-trigger {
  background: #1d4ed8;
  color: #fff;
  padding: 8px 14px;
}

.edit-bulk-trigger {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-bulk-trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: calc(100vh - 260px);
  height: auto;
  border: none;
  border-radius: 0;
  vertical-align: middle;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 150px;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: none;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder {
  color: #fff;
}

.user-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bulk-user-modal {
  width: min(1080px, 96vw);
  max-height: calc(100vh - 24px);
}

.bulk-user-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
}

.bulk-mode-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-mode-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.bulk-mode-btn.active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

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

.bulk-config-form-edit {
  grid-template-columns: minmax(0, 1fr);
}

.bulk-paste-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-paste-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.bulk-paste-area {
  width: 100%;
  min-height: 90px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.35;
}

.bulk-user-table {
  max-height: none;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.bulk-user-table table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-user-table th,
.bulk-user-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.bulk-user-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  color: #334155;
}

.bulk-user-table input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
}

.bulk-user-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  z-index: 2;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.loading {
  padding: 20px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.error-text {
  color: #ef4444;
  font-size: 0.75rem;
}

.company-assignment-row {
  align-items: flex-start;
}

.company-assignment-box {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.company-assignment-loading {
  color: #475569;
  font-size: 0.85rem;
}

.company-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #1e293b;
}

.company-check.all {
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.role-hint {
  color: #475569;
  font-size: 0.75rem;
}

.assign-user-label {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}

@media (max-width: 860px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field input,
  .filter-field select {
    min-width: 0;
    width: 100%;
  }
}

/* feature/MasterData/Company/screen/company-screen.component.css */
.company-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0px;
  height: 100%;
  overflow: visible;
}

.company-page {
  min-height: 100vh;
}

.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  overflow-y: auto;
}

.company-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.company-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.company-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

h2 {
  font-size: 26px;
  margin: 0;
  color: #1f2a44;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

h1 {
  font-size: 26px;
  margin: 0 0 4px;
  color: #1f2a44;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

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

.crud-search input {
  width: 100%;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.crud-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-row input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  gap: 6px;
}

.field-label {
  font-weight: 600;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
}

.field-control:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.2);
}

.field-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  background: transparent;
}

.field-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #64748b;
}

.field-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.field-icon.right {
  color: #16a34a;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.crud-modal .crud-form-row {
  gap: 8px;
}

.crud-modal .crud-form-row label {
  font-weight: 600;
  color: #111827;
}

.crud-modal .crud-form-row input {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.crud-form-row .input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.error-text {
  color: #ef4444;
  font-size: 0.75rem;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(780px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: none;
  height: auto;
  border: none;
  border-radius: 0;
  vertical-align: middle;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder {
  color: #fff;
}

.company-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/FareRules/screen/fare-rule-screen.component.css */
.fare-rule-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  min-height: calc(100vh - 120px);
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

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

.page-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.page-header-centered {
  justify-content: center;
  position: relative;
}

.page-header-centered .btn.icon-only {
  position: absolute;
  right: 0;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 172px));
  justify-content: start;
  gap: 12px 16px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.fare-rule-form-tabs .crud-form {
  width: fit-content;
  max-width: 100%;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 172px;
}

.crud-form-row.narrow-stack-row {
  grid-column: 1 / -1;
  max-width: 172px;
}

.crud-form-row.full-row {
  grid-column: 1 / -1;
  max-width: calc(172px * 2 + 16px);
}

.crud-form-row input,
.crud-form-row select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.fare-rule-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.fare-rule-form-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fare-rule-tabs {
  display: flex;
  gap: 8px;
}

.fare-rule-tab-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-with-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-only-action {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
}

.fare-rule-tab-actions .crud-secondary.icon-only-action[aria-label="Cancelar"] {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.fare-rule-tab-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.fare-rule-tab-btn.active.collapsed {
  background: #1d4ed8;
  opacity: 0.78;
}

.fare-rule-tab-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  grid-column: 1 / -1;
  max-width: calc(172px * 2 + 16px);
}

.crud-modal {
  position: absolute;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #fff;
  backdrop-filter: none;
}

.crud-modal-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  backdrop-filter: none;
  border: none;
}

.fare-rule-modal-body {
  position: relative;
  display: block;
  min-height: 0;
  flex: 1;
  border-radius: 0;
  overflow: hidden;
}

.fare-rule-map-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-card {
  position: relative;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.map-search-wrap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 8;
}

.map-search-btn {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
}

.map-search-btn svg {
  width: 18px;
  height: 18px;
  fill: #0f172a;
}

.map-search-float {
  display: grid;
  gap: 6px;
  min-width: min(360px, 62vw);
}

.map-search-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
}

.map-search {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.96);
}

.suggestions {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  max-height: 220px;
  overflow: auto;
  z-index: 2;
}

.suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.suggestion:hover {
  background: #f1f5f9;
}

.map-placeholder {
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.fare-rule-form-tabs {
  position: absolute;
  top: 62px;
  left: 12px;
  z-index: 3;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.fare-rule-form-tabs.collapsed {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  width: auto;
  max-height: none;
  overflow: visible;
}

.fare-rule-form-tabs .crud-form {
  margin-top: 8px;
  position: relative;
  min-height: 292px;
  padding-bottom: 56px;
  align-content: start;
}

.fare-rule-form-tabs .crud-form-row {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.fare-rule-form-tabs .crud-form-row.floating-field-row {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 2px;
  align-items: flex-start;
}

.fare-rule-form-tabs .crud-form-row.floating-field-row select,
.fare-rule-form-tabs .crud-form-row.floating-field-row input {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.fare-rule-form-tabs .crud-form-row.floating-field-row .floating-field-label {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 2px 8px;
  margin: 0 0 3px 2px;
  line-height: 1.1;
}

#fare-rule-map .leaflet-top.leaflet-left {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 40px;
}

#fare-rule-map .leaflet-top.leaflet-left .leaflet-control {
  margin: 0;
}

.fare-rule-form-tabs .fare-rule-tab-actions {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(172px * 2 + 16px);
  max-width: 100%;
  justify-content: flex-end;
}

.fare-rule-form-tabs .fare-rule-tab-actions .crud-primary,
.fare-rule-form-tabs .fare-rule-tab-actions .crud-secondary {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.zone-rules-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: calc(172px * 2 + 16px);
  max-width: calc(100% - 8px);
}

.zone-rules-card.under-form {
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(4px);
}

.zone-rules-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.9);
}

.zone-rules-empty {
  color: #e2e8f0;
  font-size: 0.78rem;
}

.zone-rules-list {
  max-height: 150px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.zone-rule-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  padding: 7px 8px;
  border-bottom: 1px solid #dbe3ef;
  font-size: 0.76rem;
  color: #1f2937;
}

.zone-rule-item:last-child {
  border-bottom: none;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 9;
  pointer-events: none;
}

.crud-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  pointer-events: auto;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1d4ed8;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  pointer-events: auto;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

/* Override to usar layout unificado */
.fare-rule-shell {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  min-height: 100vh;
  height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 12px 12px 40px;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.bulk-manage-btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid #1d4ed8;
  color: #fff;
  background: #1d4ed8;
}

.bulk-manage-btn:hover {
  background: #1e40af;
}

.fare-rule-slider {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
}

.slider-section {
  border-radius: 14px;
  background: #fff;
}

.slider-filter-card {
  border: 1px solid #dbe1eb;
  padding: 8px;
}

.slider-section-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.chevron {
  font-size: 15px;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.chevron.open {
  transform: rotate(0deg);
}

.slider-section-body {
  display: grid;
  gap: 10px;
  padding: 2px 6px 8px;
}

.slider-field {
  display: grid;
  gap: 6px;
}

.slider-field-label {
  font-weight: 700;
  color: #111827;
}

.slider-field select {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.slider-search-btn {
  border-radius: 999px;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  padding: 11px 14px;
}

.slider-search-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.slider-create-btn {
  border: 2px solid #2b6cb0;
  border-radius: 999px;
  background: #f8fbff;
  color: #2b6cb0;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.slider-create-btn .plus {
  font-size: 20px;
  line-height: 1;
}

.slider-results-title {
  padding: 0 4px;
  font-size: 30px;
  font-weight: 800;
  color: #111827;
}

.table-card {
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.table-wrapper {
  overflow-x: auto;
  flex: 1;
  overflow-y: auto;
  border: none;
  border-radius: 0;
  vertical-align: middle;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
  vertical-align: middle;
}

.table-wrapper th input,
.table-wrapper th select {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.table-wrapper th input::placeholder {
  color: #fff;
}

.table-wrapper th select option {
  color: #0f172a;
  background: #fff;
}

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

.crud-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  height: 32px;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.crud-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-right: 6px;
  font-size: 0.85rem;
  color: #475569;
}

/* Overrides para igualar estilo de tablas (como Rutas) */
.table-wrapper {
  border: none;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: auto;
  flex: 1 1 auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 0px solid #e5e7eb;
}

.table-wrapper th {
  background: #1971c2;
  color: #fff;
  border-bottom: none;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-wrapper thead th {
  position: sticky;
  top: 0;
}


.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .crud-modal {
    padding: 10px;
  }

  .crud-modal-card {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 12px;
    overflow: auto;
  }

  .fare-rule-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 10px;
    overflow: visible;
  }

  .fare-rule-map-panel {
    position: static;
    min-height: 420px;
  }

  .map-search-wrap {
    left: 10px;
    bottom: 10px;
  }

  .map-search-float {
    min-width: min(300px, calc(100vw - 90px));
  }

  .fare-rule-form-tabs {
    position: static;
    width: 100%;
    max-height: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    padding: 0;
  }

  .crud-form {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-bottom: 0;
  }

  .fare-rule-tab-actions {
    max-width: 100%;
    position: static;
    width: 100%;
  }
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

  .fare-rule-modal-body {
    grid-template-columns: 1fr;
  }
}

/* Layout final: pantalla normal + modal crear estilo zonas/paraderos */
.fare-rule-shell {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  min-height: calc(100vh - 120px);
  height: calc(100vh - 120px);
  padding: 20px;
  gap: 12px;
}

.route-toolbar .crud-primary {
  padding: 8px 12px;
}

.route-toolbar .btn-icon {
  color: #fab53e;
  border-color: #fab53e;
}

.route-toolbar .add-btn {
  align-self: flex-end;
}

.crud-modal-header {
  left: auto;
  right: 12px;
  top: 12px;
}

.fare-rule-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  height: 100%;
  gap: 0;
}

.fare-rule-map-panel {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: 0;
}

.map-card {
  height: 100%;
}

.fare-rule-form-tabs.fare-rule-side-panel {
  position: relative;
  top: auto;
  left: auto;
  z-index: 3;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid #e5e7eb;
  backdrop-filter: blur(4px);
}

.fare-rule-form-tabs.fare-rule-side-panel.collapsed {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid #e5e7eb;
}

.fare-rule-form-tabs.fare-rule-side-panel .fare-rule-tabs {
  margin-bottom: 8px;
}

.fare-rule-form-tabs.fare-rule-side-panel .crud-form {
  width: 100%;
  margin-top: 0;
  min-height: auto;
  padding-bottom: 0;
}

.fare-rule-form-tabs.fare-rule-side-panel .fare-rule-tab-actions {
  position: static;
  width: 100%;
  max-width: 100%;
}

.zone-rules-card.under-form {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .fare-rule-modal-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 980px) {
  .fare-rule-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .fare-rule-map-panel {
    min-height: 420px;
  }

  .fare-rule-form-tabs.fare-rule-side-panel {
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }
}

/* Slider derecho del modal igual a Zonas/Paraderos */
.crud-modal {
  position: fixed;
  inset: 0;
  height: 100vh;
  align-items: stretch;
}

.crud-modal-card {
  height: 100vh;
  max-height: 100vh;
}

.fare-rule-modal-body {
  height: 100vh;
  min-height: 100vh;
}

.fare-rule-map-panel,
.map-card,
.map-placeholder,
.fare-rule-side-panel {
  height: 100%;
  min-height: 0;
}

.fare-rule-side-panel {
  background: #f3f5f9;
  border-left: 1px solid #e5e7eb;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fare-rule-side-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.fare-rule-side-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fare-rule-side-panel .panel-header h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #111827;
}

.fare-rule-side-panel .panel-section {
  background: #f3f5f9;
  border: none;
  border-radius: 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fare-rule-side-panel .filter-card {
  background: #fff;
  border: 1px solid #dbe1eb;
  border-radius: 14px;
  padding: 8px;
}

.fare-rule-side-panel .section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: default;
  font-weight: 700;
  color: #1f2937;
  font-size: 15px;
}

.fare-rule-side-panel .results-toggle {
  padding: 2px 4px;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.fare-rule-side-panel .section-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-x: hidden;
  padding: 2px 6px 8px;
}

.fare-rule-side-panel .fare-rule-tabs {
  display: flex;
  gap: 8px;
}

.fare-rule-side-panel .fare-rule-tab-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.fare-rule-side-panel .fare-rule-tab-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.fare-rule-side-panel .fare-rule-tab-btn.active.collapsed {
  background: #1d4ed8;
  opacity: 0.9;
}

.fare-rule-side-panel .crud-form {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fare-rule-side-panel .crud-form-row,
.fare-rule-side-panel .crud-form-row.full-row,
.fare-rule-side-panel .crud-form-row.narrow-stack-row {
  max-width: 100%;
}

.fare-rule-side-panel .crud-form-row.floating-field-row {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 6px;
}

.fare-rule-side-panel .crud-form-row.floating-field-row .floating-field-label {
  color: #111827;
  text-shadow: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-weight: 700;
}

.fare-rule-side-panel .crud-form-row.floating-field-row .floating-field-label.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fare-rule-side-panel .crud-form-row.floating-field-row .floating-field-label.with-icon svg {
  width: 16px;
  height: 16px;
  fill: #111827;
  opacity: 0.88;
}

.fare-rule-side-panel .crud-form-row.floating-field-row select,
.fare-rule-side-panel .crud-form-row.floating-field-row input {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  background: #fff;
  box-shadow: none;
}

.fare-rule-side-panel .fare-rule-date-range-field {
  width: 100%;
}

.fare-rule-date-range-field .mdc-text-field--filled {
  border-radius: 10px 10px 0 0;
  --mdc-filled-text-field-container-color: #d7dbe3;
  --mdc-filled-text-field-focus-active-indicator-color: #8a94a3;
  --mdc-filled-text-field-active-indicator-color: #9ca6b5;
}

.fare-rule-date-range-field .mat-mdc-form-field-subscript-wrapper {
  display: none;
}

.fare-rule-side-panel .fare-rule-tab-actions {
  grid-column: 1 / -1;
  position: static;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
}

.fare-rule-side-panel .zone-rules-card {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.fare-rule-side-panel .zone-rules-title {
  color: #111827;
  text-shadow: none;
  font-size: 0.95rem;
}

.fare-rule-side-panel .zone-rules-empty {
  color: #6b7280;
}

.fare-rule-side-panel .zone-rules-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #dbe1eb;
  border-radius: 10px;
  background: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fare-rule-side-panel .zone-rules-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@media (max-width: 980px) {
  .fare-rule-side-panel .crud-form {
    grid-template-columns: 1fr;
  }

  .fare-rule-side-panel .panel-header h2 {
    font-size: 30px;
  }
}

.destination-checklist {
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
}

.destination-checklist.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.destination-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 8px;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.destination-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

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

.bulk-delete-btn .btn-icon {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

.bulk-create-btn .btn-icon {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.bulk-master-modal {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.bulk-master-card {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bulk-master-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.bulk-master-header-left {
  display: grid;
  gap: 10px;
}

.bulk-master-header h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

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

.bulk-master-tab {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.bulk-master-tab.active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.bulk-master-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
}

.bulk-master-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
}

.bulk-edit-form {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
}

.bulk-edit-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.bulk-edit-toggle input {
  width: 16px;
  height: 16px;
}

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

.bulk-edit-form .bulk-control input,
.bulk-edit-form .bulk-control select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.bulk-create-modal {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.bulk-create-modal .bulk-delete-modal-card {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
}

.bulk-create-modal .crud-modal-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fff;
}

.bulk-create-modal .bulk-delete-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 20px 20px;
}

.bulk-delete-modal {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bulk-delete-backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.bulk-delete-modal-card {
  width: min(1320px, calc(100vw - 48px));
  height: min(90vh, 860px);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  background: #fff;
}

.bulk-delete-modal-card .crud-modal-header {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.bulk-delete-modal-card .crud-modal-header h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.bulk-delete-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 18px 18px;
  min-height: 0;
  height: 100%;
}

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

.bulk-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-control span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.bulk-control select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}

.bulk-meta {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.bulk-matrix-shell {
  flex: 1 1 auto;
  min-height: 420px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  overflow: auto;
  background: #f8fafc;
}

.bulk-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.bulk-matrix th,
.bulk-matrix td {
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  min-width: 90px;
  padding: 0;
}

.bulk-matrix th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf2f7;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1e293b;
  white-space: nowrap;
  padding: 10px 8px;
}

.bulk-matrix .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 210px;
  max-width: 260px;
  background: #edf2f7;
  text-align: left;
  padding: 10px 12px;
}

.bulk-matrix tbody .sticky-col {
  z-index: 1;
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.bulk-cell {
  width: 100%;
  min-height: 38px;
  border: 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #d1fae5;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, color 0.15s ease;
}

.bulk-cell:hover:not(:disabled) {
  transform: scale(1.01);
  background: #a7f3d0;
}

.bulk-cell.na {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
}

.bulk-cell.empty {
  background: #f8fafc;
  color: #94a3b8;
}

.bulk-cell.selected {
  background: #ef4444;
  color: #fff;
}

.bulk-cell.create-selected {
  background: #16a34a;
  color: #fff;
}

.bulk-cell.exists-product {
  background: #fef3c7;
  color: #92400e;
  cursor: not-allowed;
}

.bulk-cell:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.bulk-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}

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

.bulk-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
}

.bulk-create-form .bulk-control input,
.bulk-create-form .bulk-control select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.bulk-compact-form .bulk-control span {
  font-size: 11px;
}

.bulk-compact-form .bulk-control input,
.bulk-compact-form .bulk-control select {
  min-height: 36px;
}

.bulk-create-form.bulk-compact-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bulk-processing-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-processing-card {
  min-width: 280px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-processing-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #dbeafe;
  border-top-color: #1d4ed8;
  border-radius: 999px;
  animation: bulk-spin 0.9s linear infinite;
}

.bulk-processing-text {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

@keyframes bulk-spin {
  to {
    transform: rotate(360deg);
  }
}

.crud-primary.danger {
  background: #dc2626;
}

.crud-primary.danger:disabled {
  background: #fca5a5;
}

.bulk-confirm {
  border: 1px solid #fecaca;
  background: #fff1f2;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.bulk-confirm p {
  margin: 0;
  color: #7f1d1d;
}

.bulk-create-confirm {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.bulk-create-confirm p {
  color: #14532d;
}

.bulk-create-footer {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: grid;
  gap: 10px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), #fff 24%);
}

.bulk-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1100px) {
  .bulk-delete-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bulk-matrix-shell {
    min-height: 320px;
  }

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

  .bulk-edit-inline {
    grid-template-columns: 1fr;
  }

  .bulk-matrix .sticky-col {
    min-width: 180px;
  }
}

@media (max-width: 760px) {
  .bulk-delete-modal {
    padding: 10px;
  }

  .bulk-master-header {
    padding: 12px;
  }

  .bulk-master-body {
    padding: 12px;
  }

  .bulk-delete-modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .bulk-delete-controls {
    grid-template-columns: 1fr;
  }

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

  .bulk-matrix-shell {
    min-height: 240px;
  }

  .bulk-matrix .sticky-col {
    min-width: 150px;
  }

  .bulk-create-modal .bulk-delete-modal-card {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .bulk-create-modal .bulk-delete-modal-body {
    padding: 12px;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/Fares/components/fare-status.component.css */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2f7;
  color: #475467;
}

.status-pill.success {
  background: #16a34a;
  color: #fff;
}

.status-pill.muted {
  background: #f2f4f7;
  color: #667085;
}

/* feature/MasterData/Fares/screen/fare-screen.component.css */
.route-page {
  background: #fff;
  padding: 12px 12px 24px;
  min-height: 100vh;
  box-shadow: none;
  border-radius: 0;
}

.fare-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-hero {
  display: flex;
  justify-content: center;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0;
  color: #1f1f1f;
}

.master-tabs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  flex: 1;
}

.tab {
  border: none;
  background: transparent;
  padding: 10px 0;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  position: relative;
}

.tab.active {
  color: #111827;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #b91c1c;
  border-radius: 999px;
}

.add-btn {
  align-self: flex-end;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: #f8fafc;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.table-wrapper {
  overflow-x: auto;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 8px;
  padding-bottom: 12px;
  vertical-align: bottom;
}

.column-filter {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
}

.column-filter::placeholder {
  color: #fff;
}

.column-filter.muted {
  opacity: 0.7;
}

.actions {
  display: inline-flex;
  gap: 6px;
}

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

.actions-col {
  width: 160px;
  text-align: center;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.empty {
  text-align: center;
  padding: 16px;
  color: #64748b;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.9rem;
  padding: 0 4px 8px;
}

.pagination button {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  width: min(720px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
}

.close {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-weight: 600;
  color: #344054;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}

.field-control input,
.field-control select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font: inherit;
}

.fare-color-chip {
  width: 28px;
  height: 20px;
  display: inline-block;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  vertical-align: middle;
}

.color-field {
  gap: 10px;
}

.color-picker {
  width: 36px !important;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
}

.field-stack {
  display: grid;
  gap: 6px;
  width: 100%;
}

.field-stack input,
.field-stack select {
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  padding: 8px 10px;
  width: 100%;
}

.field-icon {
  font-size: 18px;
}

.fare-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-actions button {
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.modal-actions button.primary {
  border: none;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}

.modal-actions button.primary:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
}

.modal-actions button.secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
}

.modal-actions button.secondary:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
  max-width: 420px;
  font-weight: 600;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #f59e0b;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 980px) {
  .table-wrapper {
    max-height: none;
  }

  .tabs {
    flex-wrap: wrap;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/MasterRegister/components/master-register-tabs.component.css */
.tabs {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  gap: 0;
  background: transparent !important;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}

.tab {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  min-width: 112px;
  min-height: 36px;
  padding: 0 18px 8px;
  border-radius: 0;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tabs .tab.active,
.tabs button.tab.active,
.tabs .tab.active:hover,
.tabs button.tab.active:hover,
.tabs .tab.active:focus,
.tabs button.tab.active:focus {
  color: #2563eb !important;
  border: 0 !important;
  border-bottom: 2px solid #2563eb !important;
  background: transparent !important;
  box-shadow: none !important;
  outline-color: #2563eb;
}

.tabs .tab.active::after,
.tabs button.tab.active::after {
  display: none !important;
  content: none !important;
}

.tab:hover {
  color: #1d4ed8;
  background: transparent !important;
}

.tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 6px;
}

/* feature/MasterData/MasterRegister/screen/master-register-screen.component.css */
.master-register {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 24px;
  overflow: visible;
}

.route-page {
  background: #fff;
  padding: 12px 0 0;
  min-height: 0;
  box-shadow: none;
  border-radius: 0;
}

.master-user-tab {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.master-user-tab .table-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.master-user-tab .table-wrapper {
  flex: 1;
  height: auto;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.master-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.master-header > div {
  width: 100%;
  text-align: center;
}

.master-tabs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.master-tabs {
  flex: 1;
}

.master-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.master-scope-filters {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.master-scope-filters .filter-field {
  min-width: 240px;
}

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

.master-scope-panel {
  width: 100%;
  max-width: 760px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 6px;
}

.master-scope-title {
  margin: 0 0 10px;
  color: #1f3a66;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.master-scope-filters.compact {
  align-items: center;
}

.filter-field.modern-field {
  gap: 0;
}

.mat-like-select {
  min-width: 240px;
  border: 1px solid #bdc9df;
  border-radius: 6px;
  background: #d8dde7;
  padding: 8px 10px 6px;
  display: grid;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mat-like-label {
  color: #4b5563;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.mat-like-select:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  border: none;
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  width: 100%;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.custom-select-arrow {
  color: #334155;
  font-size: 13px;
  transition: transform 0.15s ease;
}

.custom-select-arrow.open {
  transform: rotate(180deg);
}

.custom-select-panel {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 6px);
  background: #d8dde7;
  border: 1px solid #bdc9df;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  z-index: 40;
}

.custom-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: #1f2937;
  text-align: left;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: #c5d0e2;
}

.modern-apply {
  background: #2563eb;
  border-radius: 12px;
  padding: 9px 16px;
}

.modern-clear {
  border-radius: 12px;
  padding: 9px 16px;
}

.modern-clear.icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modern-clear.icon-only svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.action-icon {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: #475569;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s ease;
  padding: 0 2px;
}

.action-icon:hover,
.action-icon:focus-visible {
  color: #1e3a8a;
  background: transparent;
  outline: none;
}

.action-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.apply-icon {
  color: #2563eb;
}

.add-btn {
  align-self: flex-end;
}

.person-bulk-trigger {
  background: #1d4ed8;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

h1 {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
  color: #1f1f1f;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

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

.page-header h2 {
  margin: 0;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field input,
.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  min-width: 220px;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}


.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-primary.ghost {
  background: #e0e7ff;
  color: #1d4ed8;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

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

.crud-search input {
  width: 100%;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.crud-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.crud-form-row.checkbox {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(820px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.crud-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 240px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder {
  color: #fff;
}

.column-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.user-actions {
  display: flex;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.loading {
  padding: 20px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.crud-table-header,
.crud-table-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.person-table .crud-table-header,
.person-table .crud-table-row {
  grid-template-columns: 120px 1.4fr 1fr 1fr 1.4fr 0.8fr;
}

.user-table .crud-table-header,
.user-table .crud-table-row {
  grid-template-columns: 120px 1fr 1.4fr 1.4fr 1fr 0.6fr 0.6fr 0.9fr;
}

.seller-table .crud-table-header,
.seller-table .crud-table-row {
  grid-template-columns: 120px 0.9fr 1.2fr 1.4fr 1fr 0.8fr;
}

.crud-table-header {
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.crud-table-row:nth-child(even) {
  background: #f8fafc;
}

.crud-actions-cell {
  display: flex;
  gap: 6px;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.crud-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.helper {
  font-size: 12px;
  color: #64748b;
}

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

  .crud-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .crud-page {
    justify-content: space-between;
  }

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

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field input,
  .filter-field select {
    min-width: 0;
    width: 100%;
  }

  .person-table .crud-table-header,
  .user-table .crud-table-header,
  .seller-table .crud-table-header {
    display: none;
  }

  .person-table .crud-table-row,
  .user-table .crud-table-row,
  .seller-table .crud-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .person-table .crud-table-row .cell,
  .user-table .crud-table-row .cell,
  .seller-table .crud-table-row .cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .person-table .crud-table-row .cell::before,
  .user-table .crud-table-row .cell::before,
  .seller-table .crud-table-row .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* Premium Registro Maestro shell */
.master-register {
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.08), transparent 26rem),
    linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
  padding: 24px 28px 32px;
  gap: 8px;
}

.master-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  align-items: start;
  flex-wrap: nowrap;
}

.master-header > div {
  width: auto;
  text-align: left;
}

.master-heading {
  justify-self: start;
  text-align: left !important;
  display: grid;
  gap: 6px;
}

.master-heading .route-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #111827;
  text-align: left !important;
}

.master-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.master-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.master-action {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe5f2;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #172033;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.master-action:hover {
  transform: translateY(-1px);
  border-color: #b8c7df;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.master-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.master-action.primary {
  border-color: #2457e6;
  background: linear-gradient(180deg, #2f67f3 0%, #1f54df 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.master-action.secondary {
  color: #243044;
}

.read-only-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.master-scope-panel {
  max-width: none;
  margin: 0;
  position: relative;
  width: fit-content;
  z-index: 20;
}

.master-filter-details {
  position: relative;
}

.master-filter-details[open] {
  z-index: 60;
}

.master-filter-summary {
  min-height: 42px;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #243044;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.master-filter-summary::-webkit-details-marker {
  display: none;
}

.master-filter-summary svg {
  width: 15px;
  height: 15px;
  fill: #64748b;
}

.master-scope-filters {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: min(720px, calc(100vw - 56px));
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.mat-like-select {
  min-width: 220px;
  border-color: #dbe5f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 7px 10px 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.custom-select-trigger {
  font-size: 13px;
}

.custom-select-panel {
  background: #fff;
  border-color: #dbe5f2;
  border-radius: 10px;
}

.custom-select-option {
  padding: 10px 12px;
  font-size: 13px;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: #f1f5ff;
}

.scope-actions {
  gap: 6px;
}

.action-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.action-icon:hover,
.action-icon:focus-visible {
  background: #fff;
}

.master-tabs-toolbar {
  margin-bottom: 0;
  margin-top: -2px;
}

@media (max-width: 900px) {
  .master-register {
    padding: 18px 14px 24px;
  }

  .master-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .master-header-actions {
    justify-content: flex-start;
  }

  .master-scope-filters .filter-field,
  .mat-like-select {
    min-width: min(100%, 260px);
  }

  .master-scope-filters {
    min-width: calc(100vw - 28px);
  }
}

/* Registro Maestro / Usuarios premium kardex, aligned with Personas. */
.master-user-tab {
  gap: 8px;
  padding-top: 0;
}

.user-kardex-toolbar {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  margin-top: 0;
}

.user-search {
  position: relative;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.user-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: #64748b;
}

.user-search input {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px 0 52px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
  line-height: 50px;
}

.user-search input::placeholder {
  color: #94a3b8;
}

.user-filter-group {
  display: grid;
  grid-template-columns: auto auto;
  align-items: stretch;
  gap: 12px;
}

.user-filter-details {
  position: relative;
  height: 50px;
}

.user-filter-details[open] {
  z-index: 30;
}

.user-filter-button,
.user-status-filter {
  min-height: 50px;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.user-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.user-filter-button::-webkit-details-marker {
  display: none;
}

.user-filter-button svg {
  width: 16px;
  height: 16px;
  fill: #64748b;
}

.user-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(620px, calc(100vw - 64px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.user-filter {
  display: grid;
  gap: 6px;
  color: #172033;
}

.user-filter span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-filter input,
.user-filter select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #172033;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
}

.user-filter input:focus,
.user-filter select:focus,
.user-search:focus-within {
  border-color: #93b4ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.user-status-filter {
  width: 206px;
  min-width: 206px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  padding: 0 14px;
}

.user-status-filter span {
  color: #172033;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.user-status-filter select {
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.user-premium-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: min(618px, calc(100vh - 312px));
  max-height: 618px;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.user-card-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf2f8;
  flex: 0 0 auto;
}

.user-result-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #172033;
  font-size: 14px;
}

.user-result-count strong {
  font-size: 16px;
}

.user-count-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
}

.user-count-icon svg,
.user-refresh-btn svg,
.user-company svg,
.user-page-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.user-refresh-btn,
.user-page-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe5f2;
  background: #fff;
  color: #48617f;
  cursor: pointer;
}

.user-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.user-table-viewport {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
}

.user-premium-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
}

.user-premium-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  padding: 0 20px;
  border-bottom: 1px solid #edf2f7;
  border-left: 0 !important;
  border-right: 0 !important;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.user-premium-table td {
  height: 54px;
  padding: 7px 20px;
  border-bottom: 1px solid #edf2f7;
  border-left: 0 !important;
  border-right: 0 !important;
  color: #172033;
  vertical-align: middle;
  font-size: 13px;
}

.user-premium-table tr,
.user-premium-table thead,
.user-premium-table tbody {
  border-left: 0 !important;
  border-right: 0 !important;
}

.user-premium-table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.user-premium-table tbody tr:hover {
  background: #f8fbff;
}

.user-premium-table th:nth-child(1),
.user-premium-table td:nth-child(1) {
  width: 30%;
}

.user-premium-table th:nth-child(2),
.user-premium-table td:nth-child(2) {
  width: 24%;
}

.user-premium-table th:nth-child(3),
.user-premium-table td:nth-child(3) {
  width: 30%;
}

.user-premium-table th:nth-child(4),
.user-premium-table td:nth-child(4) {
  width: 12%;
}

.user-premium-table th:nth-child(5),
.user-premium-table td:nth-child(5) {
  width: 120px;
}

.user-main-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #2457e6;
  font-size: 12px;
  font-weight: 800;
}

.user-premium-table tbody tr:nth-child(8n + 2) .user-avatar {
  background: #ede9fe;
  color: #7c3aed;
}

.user-premium-table tbody tr:nth-child(8n + 3) .user-avatar {
  background: #fef3c7;
  color: #d97706;
}

.user-premium-table tbody tr:nth-child(8n + 4) .user-avatar {
  background: #dcfce7;
  color: #16a34a;
}

.user-premium-table tbody tr:nth-child(8n + 5) .user-avatar {
  background: #fce7f3;
  color: #db2777;
}

.user-premium-table tbody tr:nth-child(8n + 6) .user-avatar {
  background: #e0e7ff;
  color: #4f46e5;
}

.user-premium-table tbody tr:nth-child(8n + 7) .user-avatar {
  background: #ffedd5;
  color: #ea580c;
}

.user-premium-table tbody tr:nth-child(8n + 8) .user-avatar {
  background: #cffafe;
  color: #0891b2;
}

.user-primary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-name {
  color: #172033;
  font-weight: 800;
  letter-spacing: 0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta,
.user-muted-cell {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.user-muted-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-company svg {
  flex: 0 0 auto;
  color: #64748b;
}

.user-access-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-access-list span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.user-access-list span.enabled {
  background: #e9fbea;
  color: #087a32;
}

.user-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.user-status-chip.active {
  background: #e9fbea;
  color: #087a32;
}

.user-status-chip.inactive {
  background: #feecec;
  color: #b91c1c;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.user-empty-state,
.user-loading {
  height: 180px;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}

.user-card-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  border-top: 1px solid #edf2f8;
  color: #64748b;
  font-size: 12px;
  flex: 0 0 auto;
}

.user-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-page-btn,
.user-page-current {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.user-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-page-current {
  display: inline-grid;
  place-items: center;
  border: 1px solid #93b4ff;
  color: #2563eb;
  background: #f5f8ff;
  font-weight: 900;
}

.user-page-total {
  color: #64748b;
  font-weight: 700;
}

.user-refresh-btn:hover,
.user-page-btn:hover:not(:disabled) {
  border-color: #b8c7df;
  color: #1d4ed8;
  background: #f8fbff;
}

@media (max-width: 900px) {
  .user-kardex-toolbar,
  .user-filter-group,
  .user-filter-popover {
    grid-template-columns: 1fr;
  }

  .user-status-filter,
  .user-filter-button {
    width: 100%;
  }

  .user-premium-table {
    min-width: 900px;
  }

  .user-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* feature/MasterData/Person/components/person-table.component.css */
.crud-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.crud-table-header,
.crud-table-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.person-table .crud-table-header,
.person-table .crud-table-row {
  grid-template-columns: 120px 1.4fr 1fr 1fr 1.4fr 0.8fr;
}

.crud-table-header {
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.crud-table-row:nth-child(even) {
  background: #f8fafc;
}

.crud-actions-cell {
  display: flex;
  gap: 6px;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 980px) {
  .person-table .crud-table-header {
    display: none;
  }

  .person-table .crud-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .person-table .crud-table-row .cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .person-table .crud-table-row .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }
}

/* feature/MasterData/Person/screen/person-screen.component.css */
.route-page {
  background: #fff;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  border-radius: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field input,
.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  min-width: 220px;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 240px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters input,
.column-filters select {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder,
.column-filters select {
  color: #fff;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

.person-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.person-actions {
  display: flex;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.loading {
  padding: 20px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.person-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.field-warning {
  font-size: 12px;
  color: #d97706;
}

.field-error {
  font-size: 12px;
  color: #b91c1c;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(820px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-person-modal {
  width: min(1100px, 96vw);
}

.bulk-person-config {
  grid-template-columns: 1fr;
}

.bulk-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  width: fit-content;
}

.bulk-mode-btn {
  border: none;
  background: transparent;
  color: #334155;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.bulk-mode-btn.active {
  background: #1d4ed8;
  color: #fff;
}

.bulk-mode-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bulk-person-users {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-person-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-person-users-title {
  font-weight: 700;
  color: #1e293b;
}

.bulk-check-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #334155;
}

.bulk-user-search {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.bulk-person-user-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-person-user-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  font-size: 0.9rem;
}

.bulk-paste-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-paste-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.bulk-paste-area {
  width: 100%;
  min-height: 90px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.35;
}

.bulk-person-table {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.bulk-person-table table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-person-table th,
.bulk-person-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.bulk-person-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  color: #334155;
}

.bulk-person-table input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.bulk-person-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .crud-form {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field input,
  .filter-field select {
    min-width: 0;
    width: 100%;
  }
}



.crud-primary.danger {
  background: #dc2626;
}

.crud-primary.danger:hover {
  background: #b91c1c;
}

/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* Premium person kardex inspired by Linear / Stripe / Vercel. */
.person-page {
  background: transparent;
}

.person-kardex {
  display: grid;
  gap: 14px;
}

.person-kardex-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.person-search {
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.person-search svg {
  width: 18px;
  height: 18px;
  fill: #64748b;
  flex: 0 0 auto;
}

.person-search input {
  height: 100%;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 14px;
  line-height: 1;
}

.person-search input::placeholder {
  color: #94a3b8;
}

.person-filter-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.person-filter-details {
  position: relative;
}

.person-filter-details[open] {
  z-index: 50;
}

.person-filter-button {
  height: 50px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #243044;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.person-filter-button::-webkit-details-marker {
  display: none;
}

.person-filter-button svg {
  width: 15px;
  height: 15px;
  fill: #64748b;
}

.person-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.person-filter {
  min-height: 50px;
  min-width: 130px;
  display: grid;
  gap: 2px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.person-filter span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.person-filter input,
.person-filter select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}

.status-filter {
  min-width: 150px;
}

.person-premium-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.person-card-header {
  min-height: 64px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
}

.person-result-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  font-size: 14px;
}

.person-count-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef4ff;
  color: #2457e6;
}

.person-count-icon svg,
.person-refresh-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.person-refresh-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.person-refresh-btn:hover {
  transform: translateY(-1px);
  border-color: #b9c7de;
  color: #2457e6;
}

.person-table-viewport {
  height: min(618px, calc(100vh - 312px));
  min-height: 558px;
  max-height: 618px;
  overflow: auto;
}

.person-premium-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border-spacing: 0;
}

.person-premium-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  padding: 0 20px;
  border-bottom: 1px solid #edf2f7;
  border-left: 0 !important;
  border-right: 0 !important;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.person-premium-table td {
  height: 54px;
  padding: 7px 20px;
  border-bottom: 1px solid #edf2f7;
  border-left: 0 !important;
  border-right: 0 !important;
  color: #172033;
  vertical-align: middle;
  font-size: 13px;
}

.person-premium-table tr,
.person-premium-table thead,
.person-premium-table tbody {
  border-left: 0 !important;
  border-right: 0 !important;
}

.person-premium-table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.person-premium-table tbody tr:hover {
  background: #f8fbff;
}

.person-main-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.person-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #2457e6;
  font-size: 12px;
  font-weight: 800;
}

.person-premium-table tbody tr:nth-child(8n + 2) .person-avatar {
  background: #ede9fe;
  color: #7c3aed;
}

.person-premium-table tbody tr:nth-child(8n + 3) .person-avatar {
  background: #fef3c7;
  color: #d97706;
}

.person-premium-table tbody tr:nth-child(8n + 4) .person-avatar {
  background: #dcfce7;
  color: #16a34a;
}

.person-premium-table tbody tr:nth-child(8n + 5) .person-avatar {
  background: #fce7f3;
  color: #db2777;
}

.person-premium-table tbody tr:nth-child(8n + 6) .person-avatar {
  background: #e0e7ff;
  color: #4f46e5;
}

.person-premium-table tbody tr:nth-child(8n + 7) .person-avatar {
  background: #ffedd5;
  color: #ea580c;
}

.person-premium-table tbody tr:nth-child(8n + 8) .person-avatar {
  background: #cffafe;
  color: #0891b2;
}

.person-primary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.person-name {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-meta {
  color: #64748b;
  font-size: 11px;
}

.person-muted-cell {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.person-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-company svg {
  width: 14px;
  height: 14px;
  fill: #64748b;
  flex: 0 0 auto;
}

.person-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.person-status-chip.active {
  background: #eafaf1;
  color: #15803d;
}

.person-status-chip.inactive {
  background: #fff1f2;
  color: #dc2626;
}

.person-status-chip .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.person-status-chip.active .status-dot {
  background: #22c55e;
}

.person-status-chip.inactive .status-dot {
  background: #ef4444;
}

.actions-heading,
.person-actions-cell {
  width: 116px;
  text-align: right;
}

.person-row-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.person-premium-table tbody tr:hover .person-row-actions,
.person-row-actions:focus-within {
  opacity: 1;
  transform: translateX(0);
}

.person-action-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.person-action-btn:hover {
  transform: translateY(-1px);
  border-color: #b9c7de;
  color: #2457e6;
}

.person-action-btn.danger {
  background: #fff7f7;
  color: #ef4444;
}

.person-action-btn.danger:hover {
  border-color: #fecaca;
  color: #dc2626;
}

.person-action-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.person-empty-state,
.person-loading {
  padding: 36px 20px;
  text-align: center;
  color: #94a3b8;
}

.person-card-footer {
  min-height: 58px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #edf2f7;
  color: #64748b;
  font-size: 13px;
}

.person-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.person-page-btn,
.person-page-current {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.person-page-btn {
  border: 1px solid #dbe5f2;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.person-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.person-page-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.person-page-current {
  border: 1px solid #9bb8ff;
  background: #f5f8ff;
  color: #2457e6;
  font-weight: 800;
}

.person-page-total {
  color: #64748b;
}

/* Premium compact modal for single person create/edit. */
.person-page .crud-modal {
  padding: 20px;
}

.person-page .crud-modal-backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.person-page .crud-modal-card:not(.bulk-person-modal) {
  width: min(640px, 94vw);
  max-height: min(88dvh, 720px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  padding: 0;
  gap: 0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.person-page .crud-modal-card:not(.bulk-person-modal) .crud-modal-header {
  min-height: 62px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
}

.person-page .crud-modal-title {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.person-page .crud-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 10px;
  font-size: 16px;
}

.person-page .crud-modal-card:not(.bulk-person-modal) .crud-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px;
  max-height: calc(88dvh - 142px);
  overflow-y: auto;
}

.person-page .field-label {
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.person-page .field-control {
  min-height: 42px;
  border-radius: 11px;
  background: #fff;
  padding: 8px 38px;
}

.person-page .field-input {
  font-size: 13px;
  font-weight: 600;
}

.person-page .field-icon {
  width: 20px;
  height: 20px;
}

.person-page .field-icon svg {
  width: 15px;
  height: 15px;
}

.person-page .field-icon.left {
  left: 12px;
}

.person-page .field-icon.right {
  right: 12px;
}

.person-page .crud-modal-card:not(.bulk-person-modal) .crud-form-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid #edf2f7;
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 980px) {
  .person-kardex-toolbar {
    grid-template-columns: 1fr;
  }

  .person-filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .person-premium-table {
    min-width: 0;
  }

  .person-premium-table thead {
    display: none;
  }

  .person-premium-table,
  .person-premium-table tbody,
  .person-premium-table tr,
  .person-premium-table td {
    display: block;
    width: 100%;
  }

  .person-premium-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
  }

  .person-premium-table td {
    height: auto;
    padding: 7px 0;
    border-bottom: 0;
  }

  .person-main-cell {
    min-width: 0;
  }

  .person-company {
    max-width: 100%;
  }

  .person-actions-cell {
    width: auto;
    text-align: left;
  }

  .person-row-actions {
    opacity: 1;
    transform: none;
  }

  .person-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .person-page .crud-modal-card:not(.bulk-person-modal) .crud-form {
    grid-template-columns: 1fr;
  }
}

/* Person 1x1 drawer modal: visual-only redesign. */
.person-page .person-single-modal {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.person-page .person-single-modal .crud-modal-backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(7px);
}

.person-page .person-single-modal .person-drawer {
  width: min(680px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 18px 0 0 18px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -34px 0 90px rgba(15, 23, 42, 0.28);
}

.person-page .person-drawer-header {
  min-height: 108px;
  padding: 28px 32px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 0;
}

.person-drawer-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.person-drawer-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.person-drawer-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.person-page .person-drawer-heading .crud-modal-title {
  margin-top: 2px;
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.person-drawer-heading p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.35;
}

.person-page .person-single-modal .crud-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.person-page .person-single-modal .crud-modal-close:hover {
  background: #f1f5f9;
  color: #111827;
}

.person-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 26px;
  padding: 10px 32px 28px;
}

.person-form-section {
  display: grid;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e5eaf2;
}

.person-form-section:last-child {
  border-bottom: 0;
}

.person-form-section h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.01em;
}

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

.person-form-grid .full-row {
  grid-column: 1 / -1;
}

.person-page .person-single-modal .crud-form-row {
  gap: 8px;
}

.person-page .person-single-modal .field-label {
  color: #475569;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.person-page .person-single-modal .field-label::after {
  color: #ef4444;
}

.person-page .person-single-modal .field-control {
  min-height: 46px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #fff;
  padding: 0 42px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.person-page .person-single-modal .field-control:focus-within {
  border-color: #9db7ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.person-page .person-single-modal .field-input {
  height: 44px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
}

.person-page .person-single-modal .field-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.person-page .person-single-modal select.field-input {
  cursor: pointer;
}

.person-page .person-single-modal .field-icon {
  width: 22px;
  height: 22px;
  color: #94a3b8;
}

.person-page .person-single-modal .field-icon.left {
  left: 14px;
}

.person-page .person-single-modal .field-icon.right {
  right: 12px;
  color: #16a34a;
  background: #ecfdf5;
  border-radius: 999px;
}

.person-page .person-single-modal .field-icon svg {
  width: 16px;
  height: 16px;
}

.person-permission-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
}

.permission-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
}

.permission-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.person-permission-row strong {
  display: block;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.person-permission-row small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.person-page .person-single-modal .person-drawer-footer {
  flex: 0 0 auto;
  position: static;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px 32px 28px;
  border-top: 1px solid #e5eaf2;
  background: rgba(255, 255, 255, 0.98);
}

.person-page .person-single-modal .crud-primary,
.person-page .person-single-modal .crud-secondary {
  min-height: 44px;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.person-page .person-single-modal .crud-primary {
  background: linear-gradient(180deg, #2f67f3 0%, #1f54df 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.person-page .person-single-modal .crud-secondary {
  border-color: #dbe3ee;
  background: #fff;
}

@media (max-width: 760px) {
  .person-page .person-single-modal .person-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .person-page .person-drawer-header,
  .person-drawer-body,
  .person-page .person-single-modal .person-drawer-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .person-form-grid,
  .person-page .person-single-modal .person-drawer-footer {
    grid-template-columns: 1fr;
  }
}

/* Registro Maestro fit fixes: one clean row, aligned controls, visible footer. */
.person-kardex {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.person-kardex-toolbar {
  grid-template-columns: minmax(420px, 1fr) auto;
  align-items: stretch;
  gap: 14px;
}

.person-search {
  position: relative;
  height: 50px;
  min-height: 50px;
  padding: 0;
}

.person-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

.person-search input {
  height: 100%;
  padding: 0 18px 0 52px;
  display: block;
  line-height: 50px;
}

.person-filter-group {
  display: grid;
  grid-template-columns: auto auto;
  align-items: stretch;
  gap: 12px;
}

.person-filter-details,
.status-filter {
  height: 50px;
}

.person-filter-button,
.status-filter {
  min-height: 50px;
  height: 50px;
  box-sizing: border-box;
}

.status-filter {
  width: 206px;
  min-width: 206px;
  padding: 0 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
}

.status-filter span {
  color: #172033;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.status-filter select {
  width: 100%;
  height: 100%;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.person-premium-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: min(500px, calc(100dvh - 340px));
  max-height: calc(100dvh - 340px);
  overflow: hidden;
}

.person-card-header {
  min-height: 48px;
  padding: 10px 18px;
  flex: 0 0 auto;
}

.person-table-viewport {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.person-premium-table {
  table-layout: fixed;
}

.person-premium-table th:nth-child(1),
.person-premium-table td:nth-child(1) {
  width: 34%;
}

.person-premium-table th:nth-child(2),
.person-premium-table td:nth-child(2) {
  width: 17%;
  padding-left: 34px;
}

.person-premium-table th:nth-child(3),
.person-premium-table td:nth-child(3) {
  width: 34%;
}

.person-premium-table th:nth-child(4),
.person-premium-table td:nth-child(4) {
  width: 15%;
  padding-left: 34px;
}

.person-premium-table th:nth-child(5),
.person-premium-table td:nth-child(5) {
  width: 116px;
}

.person-premium-table th {
  height: 34px;
}

.person-premium-table td {
  height: 38px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.person-avatar {
  width: 30px;
  height: 30px;
}

.person-card-footer {
  min-height: 46px;
  padding: 8px 18px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .person-kardex-toolbar,
  .person-filter-group {
    grid-template-columns: 1fr;
  }

  .status-filter,
  .person-filter-button {
    width: 100%;
  }
}

/* feature/MasterData/Price/screen/price-screen.component.css */
.price-page {
  min-height: 100vh;
}

.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

h1 {
  font-size: 26px;
  margin: 0 0 4px;
  color: #1f2a44;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

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

.crud-search input {
  width: 100%;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.crud-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-shell {
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.price-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}


.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(780px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 200px;
  max-height: calc(100vh - 280px);
  height: calc(100vh - 280px);
  overflow-y: auto;
  scrollbar-width: thin;
  -ms-overflow-style: auto;
  border: none;
  border-radius: 0;
  vertical-align: middle;
}

.table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #e2e8f0;
}

.table-wrapper table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder {
  color: #fff;
}

.price-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/Route/screen/route-screen.component.css */
.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  overflow-y: auto;
  position: relative;
  z-index: 0;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.filter-field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.primary {
  background: #111827;
  color: #fff;
}

.btn.ghost {
  background: #f3f4f6;
  color: #111827;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 200px;
  max-height: none;
  height: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: none;
  border-radius: 0;
  vertical-align: middle;
  position: relative;
  z-index: 0;
}

.table-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.route-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon.sync {
  background: #dbeafe;
  color: #1d4ed8;
}

.crud-icon.sync svg {
  width: 15px;
  height: 15px;
}

.crud-icon.sync.is-syncing svg {
  animation: route-sync-spin 0.9s linear infinite;
}

.crud-icon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

@keyframes route-sync-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
}

.column-filters select {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 150px;
  white-space: nowrap;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters th input::placeholder {
  color: #fff;
}

.column-filters th select {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.status-na {
  background: #f59e0b;
  color: #fff;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.loading {
  padding: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 2200;
}

.modal {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon-button {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
}

.route-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-weight: 600;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
}

.field-control:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.2);
}

.field-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  background: transparent;
}

.field-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #64748b;
}

.field-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.route-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2600;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.route-toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
  pointer-events: auto;
}

.route-toast.route-toast-success {
  background: #10b981;
  color: #fff;
  border: 1px solid #059669;
}

.route-toast-error {
  background: #dc2626;
  color: #fff;
}

.route-toast-warning {
  background: #d97706;
  color: #fff;
  border: none;
}

.route-toast-confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.route-toast-title {
  font-weight: 800;
}

.route-toast-text {
  line-height: 1.35;
}

.route-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.route-toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.route-toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.route-toast-btn-success {
  background: #fff;
  color: #166534;
}

.route-toast-btn-danger {
  background: #fff;
  color: #b91c1c;
}

.route-toast-btn-neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    max-width: 100%;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/RouteDirections/components/route-direction-status.component.css */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.active {
  background: rgba(24, 162, 86, 0.16);
  color: #18a256;
}

.status-pill.inactive {
  background: rgba(200, 65, 65, 0.16);
  color: #c84141;
}

/* feature/MasterData/RouteDirections/screen/route-direction-screen.component.css */
.route-direction-page {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-height: 100vh;
  overflow: visible;
}

.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0 0px;
  padding-right: 6px;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field input,
.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  min-width: 220px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 200px;
  max-height: calc(100vh - 220px);
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: none;
  border-radius: 0;
  vertical-align: middle;
}

.table-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  background: #1971c2;
  z-index: 1;
  border-bottom: none;
  height: 44px;
  vertical-align: middle;
}

.table-wrapper th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.table-wrapper th input::placeholder {
  color: #fff;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
}

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

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
  padding-right: 6px;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(680px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-weight: 600;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
}

.field-control:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.2);
}

.field-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  background: transparent;
}

.field-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #64748b;
}

.field-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.field-icon.right {
  color: #16a34a;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.route-direction-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.field-warning {
  color: #d97706;
  font-size: 12px;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1300;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #f59e0b;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field input,
  .filter-field select {
    min-width: 0;
    width: 100%;
  }

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

  .table-wrapper {
    max-height: calc(100vh - 260px);
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/RouteSegment/screen/route-segment-screen.component.css */
.segment-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #f5f7fb;
  min-height: 100vh;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

h1 {
  font-size: 26px;
  margin: 0 0 4px;
  color: #1f2a44;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.crud-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.crud-filter select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(760px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.crud-table {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 12px;
}

.crud-table-header,
.crud-table-row {
  display: grid;
  grid-template-columns: 140px 100px 1.4fr 1.4fr 120px;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.crud-table-header {
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.crud-table-row:nth-child(even) {
  background: #f8fafc;
}

.crud-actions-cell {
  display: flex;
  gap: 6px;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

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

  .segment-table .crud-table-header {
    display: none;
  }

  .segment-table .crud-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .segment-table .crud-table-row .cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .segment-table .crud-table-row .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }

  .segment-table .crud-actions-cell {
    justify-content: flex-start;
  }
}

/* feature/MasterData/Seller/components/seller-table.component.css */
.crud-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.crud-table-header,
.crud-table-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.seller-table .crud-table-header,
.seller-table .crud-table-row {
  grid-template-columns: 120px 0.9fr 1.2fr 1.4fr 1fr 0.8fr;
}

.crud-table-header {
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.crud-table-row:nth-child(even) {
  background: #f8fafc;
}

.crud-actions-cell {
  display: flex;
  gap: 6px;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.crud-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 980px) {
  .seller-table .crud-table-header {
    display: none;
  }

  .seller-table .crud-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .seller-table .crud-table-row .cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .seller-table .crud-table-row .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }
}

/* feature/MasterData/Seller/screen/seller-screen.component.css */
.route-page {
  background: #fff;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  border-radius: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #4f6a9b;
  margin: 0 0 6px;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  color: #5b667a;
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #111827;
}

.filter-field input,
.filter-field select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  min-width: 220px;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}


.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.table-wrapper {
  overflow-x: auto;
  min-height: 240px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.table-wrapper th {
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters input::placeholder {
  color: #fff;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

.seller-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.loading {
  padding: 20px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seller-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.input-error {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.error-text {
  font-size: 12px;
  color: #b91c1c;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(820px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.helper {
  font-size: 12px;
  color: #64748b;
}

.bulk-seller-modal {
  width: min(980px, 94vw);
  max-height: 92vh;
}

.bulk-seller-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.bulk-seller-config {
  grid-template-columns: 1fr;
}

.bulk-seller-users {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-seller-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bulk-seller-users-title {
  font-weight: 700;
  color: #111827;
}

.bulk-user-search {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.bulk-seller-user-list {
  max-height: 160px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.bulk-seller-user-item {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.bulk-seller-user-item:last-child {
  border-bottom: none;
}

.bulk-seller-user-item .username {
  font-weight: 700;
  color: #1d4ed8;
}

.bulk-seller-user-item .fullname {
  color: #334155;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-seller-user-list .full-row {
  grid-column: 1 / -1;
  padding: 10px;
}

.bulk-seller-user-list .empty {
  border-right: none;
}

.bulk-paste-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-paste-box label {
  font-weight: 700;
  color: #111827;
}

.bulk-paste-area {
  min-height: 80px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.bulk-seller-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: auto;
  max-height: 260px;
}

.bulk-seller-table table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-seller-table th,
.bulk-seller-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
}

.bulk-seller-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.bulk-seller-table input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}

.bulk-seller-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
}

.seller-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .crud-form {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-field input,
  .filter-field select {
    min-width: 0;
    width: 100%;
  }

  .bulk-seller-user-item {
    grid-template-columns: 1fr;
  }

  .bulk-seller-user-list {
    grid-template-columns: 1fr;
  }
}



.crud-primary.danger {
  background: #dc2626;
}

.crud-primary.danger:hover {
  background: #b91c1c;
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* Premium Registro Maestro / Conductores kardex. */
.seller-page {
  min-height: 0;
}

.seller-kardex {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.seller-kardex-toolbar {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  align-items: stretch;
  gap: 14px;
}

.seller-search {
  position: relative;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.seller-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: #64748b;
}

.seller-search input {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px 0 52px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
  line-height: 50px;
}

.seller-search input::placeholder {
  color: #94a3b8;
}

.seller-filter-group {
  display: grid;
  grid-template-columns: auto auto;
  align-items: stretch;
  gap: 12px;
}

.seller-filter-details {
  position: relative;
  height: 50px;
}

.seller-filter-details[open] {
  z-index: 30;
}

.seller-filter-button,
.seller-status-filter {
  min-height: 50px;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.seller-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.seller-filter-button::-webkit-details-marker {
  display: none;
}

.seller-filter-button svg {
  width: 16px;
  height: 16px;
  fill: #64748b;
}

.seller-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, calc(100vw - 64px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.seller-filter {
  display: grid;
  gap: 6px;
  color: #172033;
}

.seller-filter span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seller-filter input,
.seller-filter select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #172033;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
}

.seller-filter input:focus,
.seller-filter select:focus,
.seller-search:focus-within {
  border-color: #93b4ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.seller-status-filter {
  width: 206px;
  min-width: 206px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  padding: 0 14px;
}

.seller-status-filter span {
  color: #172033;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.seller-status-filter select {
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.seller-premium-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: min(500px, calc(100dvh - 340px));
  max-height: calc(100dvh - 340px);
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.06);
}

.seller-card-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf2f8;
  flex: 0 0 auto;
}

.seller-result-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #172033;
  font-size: 14px;
}

.seller-result-count strong {
  font-size: 16px;
}

.seller-count-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
}

.seller-count-icon svg,
.seller-refresh-btn svg,
.seller-company svg,
.seller-action-btn svg,
.seller-page-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.seller-refresh-btn,
.seller-page-btn,
.seller-action-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe5f2;
  background: #fff;
  color: #48617f;
  cursor: pointer;
}

.seller-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.seller-table-viewport {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
}

.seller-premium-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}

.seller-premium-table th {
  height: 34px;
  padding: 0 18px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf2f8;
  position: sticky;
  top: 0;
  z-index: 2;
}

.seller-premium-table td {
  height: 44px;
  padding: 4px 18px;
  color: #172033;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
}

.seller-premium-table tbody tr {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.seller-premium-table tbody tr:hover {
  background: #f8fbff;
}

.seller-premium-table th:nth-child(1),
.seller-premium-table td:nth-child(1) {
  width: 29%;
}

.seller-premium-table th:nth-child(2),
.seller-premium-table td:nth-child(2) {
  width: 15%;
}

.seller-premium-table th:nth-child(3),
.seller-premium-table td:nth-child(3) {
  width: 28%;
}

.seller-premium-table th:nth-child(4),
.seller-premium-table td:nth-child(4) {
  width: 14%;
}

.seller-premium-table th:nth-child(5),
.seller-premium-table td:nth-child(5) {
  width: 12%;
}

.seller-premium-table th:nth-child(6),
.seller-premium-table td:nth-child(6) {
  width: 116px;
}

.seller-main-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.seller-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  font-size: 11px;
  font-weight: 900;
}

.seller-primary-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.seller-name {
  color: #0f1f35;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-meta,
.seller-muted-cell,
.seller-muted-cell span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.seller-muted-cell {
  display: table-cell;
}

.seller-muted-cell strong {
  display: block;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.seller-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-company svg {
  flex: 0 0 auto;
  color: #64748b;
}

.seller-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.seller-status-chip.active {
  background: #e9fbea;
  color: #087a32;
}

.seller-status-chip.inactive {
  background: #feecec;
  color: #b91c1c;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.seller-actions-cell {
  text-align: right;
}

.seller-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.seller-premium-table tr:hover .seller-row-actions,
.seller-row-actions:focus-within {
  opacity: 1;
  transform: translateX(0);
}

.seller-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.seller-action-btn:hover,
.seller-refresh-btn:hover,
.seller-page-btn:hover:not(:disabled) {
  border-color: #b8c7df;
  color: #1d4ed8;
  background: #f8fbff;
}

.seller-action-btn.danger {
  color: #ef4444;
  background: #fff5f5;
}

.seller-action-btn.danger:hover {
  border-color: #fecaca;
  color: #dc2626;
  background: #fff1f1;
}

.seller-empty-state,
.seller-loading {
  height: 180px;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}

.seller-card-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  border-top: 1px solid #edf2f8;
  color: #64748b;
  font-size: 12px;
  flex: 0 0 auto;
}

.seller-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.seller-page-btn,
.seller-page-current {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.seller-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.seller-page-current {
  display: inline-grid;
  place-items: center;
  border: 1px solid #93b4ff;
  color: #2563eb;
  background: #f5f8ff;
  font-weight: 900;
}

.seller-page-total {
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 900px) {
  .seller-kardex-toolbar,
  .seller-filter-group,
  .seller-filter-popover {
    grid-template-columns: 1fr;
  }

  .seller-status-filter,
  .seller-filter-button {
    width: 100%;
  }

  .seller-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Registro Maestro / Conductores: align with Personas premium kardex. */
.seller-kardex {
  gap: 8px;
}

.seller-kardex-toolbar {
  grid-template-columns: minmax(420px, 1fr) auto;
  align-items: stretch;
  gap: 14px;
}

.seller-filter-group {
  grid-template-columns: auto auto;
}

.seller-premium-card {
  height: min(500px, calc(100dvh - 340px));
  max-height: calc(100dvh - 340px);
}

.seller-card-header {
  min-height: 48px;
  padding: 10px 18px;
}

.seller-table-viewport {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.seller-premium-table {
  min-width: 860px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

.seller-premium-table th,
.seller-premium-table td {
  border-left: 0 !important;
  border-right: 0 !important;
}

.seller-premium-table tr,
.seller-premium-table thead,
.seller-premium-table tbody {
  border-left: 0 !important;
  border-right: 0 !important;
}

.seller-premium-table th:nth-child(1),
.seller-premium-table td:nth-child(1) {
  width: 34%;
}

.seller-premium-table th:nth-child(2),
.seller-premium-table td:nth-child(2) {
  width: 17%;
  padding-left: 34px;
}

.seller-premium-table th:nth-child(3),
.seller-premium-table td:nth-child(3) {
  width: 34%;
}

.seller-premium-table th:nth-child(4),
.seller-premium-table td:nth-child(4) {
  width: 15%;
  padding-left: 34px;
}

.seller-premium-table th:nth-child(5),
.seller-premium-table td:nth-child(5) {
  width: 116px;
}

.seller-premium-table th {
  height: 34px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}

.seller-premium-table td {
  height: 38px;
  padding: 4px 20px;
  border-bottom: 1px solid #edf2f7;
}

.seller-main-cell {
  gap: 12px;
  min-width: 280px;
}

.seller-avatar {
  width: 30px;
  height: 30px;
  background: #dbeafe;
  color: #2457e6;
  font-size: 12px;
  font-weight: 800;
}

.seller-premium-table tbody tr:nth-child(8n + 2) .seller-avatar {
  background: #ede9fe;
  color: #7c3aed;
}

.seller-premium-table tbody tr:nth-child(8n + 3) .seller-avatar {
  background: #fef3c7;
  color: #d97706;
}

.seller-premium-table tbody tr:nth-child(8n + 4) .seller-avatar {
  background: #dcfce7;
  color: #16a34a;
}

.seller-premium-table tbody tr:nth-child(8n + 5) .seller-avatar {
  background: #fce7f3;
  color: #db2777;
}

.seller-premium-table tbody tr:nth-child(8n + 6) .seller-avatar {
  background: #e0e7ff;
  color: #4f46e5;
}

.seller-premium-table tbody tr:nth-child(8n + 7) .seller-avatar {
  background: #ffedd5;
  color: #ea580c;
}

.seller-premium-table tbody tr:nth-child(8n + 8) .seller-avatar {
  background: #cffafe;
  color: #0891b2;
}

.seller-name {
  color: #172033;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.seller-meta {
  font-size: 11px;
}

.seller-company {
  max-width: 320px;
}

.seller-status-chip {
  gap: 6px;
  min-width: 0;
  min-height: 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.status-dot {
  width: 6px;
  height: 6px;
}

.seller-actions-cell,
.actions-heading {
  width: 116px;
  text-align: right;
}

.seller-card-footer {
  min-height: 46px;
  padding: 8px 18px;
}

/* Conductores 1x1 drawer: same visual system as Personas. */
.seller-page .seller-single-modal {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.seller-page .seller-single-modal .crud-modal-backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(7px);
}

.seller-page .seller-single-modal .seller-drawer {
  width: min(680px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 18px 0 0 18px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -34px 0 90px rgba(15, 23, 42, 0.28);
}

.seller-page .seller-drawer-header {
  min-height: 108px;
  padding: 28px 32px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 0;
}

.seller-drawer-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.seller-drawer-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.seller-drawer-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.seller-page .seller-drawer-heading .crud-modal-title {
  margin-top: 2px;
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.seller-drawer-heading p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.35;
}

.seller-page .seller-single-modal .crud-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.seller-page .seller-single-modal .crud-modal-close:hover {
  background: #f1f5f9;
  color: #111827;
}

.seller-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 26px;
  padding: 0 32px 28px;
}

.seller-form-section {
  display: grid;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e5eaf2;
}

.seller-form-section:last-child {
  border-bottom: 0;
}

.seller-form-section h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.01em;
}

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

.seller-page .seller-single-modal .crud-form-row {
  gap: 8px;
}

.seller-page .seller-single-modal .field-label {
  color: #475569;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.seller-page .seller-single-modal .field-control {
  min-height: 46px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #fff;
  padding: 0 42px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.seller-page .seller-single-modal .field-control:focus-within {
  border-color: #9db7ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.seller-page .seller-single-modal .field-input {
  height: 44px;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
}

.seller-page .seller-single-modal .field-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.seller-page .seller-single-modal select.field-input {
  cursor: pointer;
}

.seller-page .seller-single-modal .field-icon {
  width: 22px;
  height: 22px;
  color: #94a3b8;
}

.seller-page .seller-single-modal .field-icon.left {
  left: 14px;
}

.seller-page .seller-single-modal .field-icon.right {
  right: 12px;
  color: #16a34a;
  background: #ecfdf5;
  border-radius: 999px;
}

.seller-page .seller-single-modal .field-icon svg {
  width: 16px;
  height: 16px;
}

.seller-permission-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
}

.permission-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
}

.permission-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.seller-permission-row strong {
  display: block;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.seller-permission-row small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.seller-page .seller-single-modal .seller-drawer-footer {
  flex: 0 0 auto;
  position: static;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px 32px 28px;
  border-top: 1px solid #e5eaf2;
  background: rgba(255, 255, 255, 0.98);
}

.seller-page .seller-single-modal .crud-primary,
.seller-page .seller-single-modal .crud-secondary {
  min-height: 44px;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.seller-page .seller-single-modal .crud-primary {
  background: linear-gradient(180deg, #2f67f3 0%, #1f54df 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.seller-page .seller-single-modal .crud-secondary {
  border-color: #dbe3ee;
  background: #fff;
}

@media (max-width: 760px) {
  .seller-page .seller-single-modal .seller-drawer {
    width: 100vw;
    border-radius: 0;
  }

  .seller-page .seller-drawer-header,
  .seller-drawer-body,
  .seller-page .seller-single-modal .seller-drawer-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .seller-form-grid,
  .seller-page .seller-single-modal .seller-drawer-footer {
    grid-template-columns: 1fr;
  }
}

/* Final parity pass with Personas: one dominant identity column. */
.seller-premium-table {
  min-width: 860px;
}

.seller-premium-table th:nth-child(1),
.seller-premium-table td:nth-child(1) {
  width: 40%;
}

.seller-premium-table th:nth-child(2),
.seller-premium-table td:nth-child(2) {
  width: 13%;
  padding-left: 28px;
}

.seller-premium-table th:nth-child(3),
.seller-premium-table td:nth-child(3) {
  width: 30%;
}

.seller-premium-table th:nth-child(4),
.seller-premium-table td:nth-child(4) {
  width: 13%;
  padding-left: 28px;
}

.seller-premium-table th:nth-child(5),
.seller-premium-table td:nth-child(5) {
  width: 96px;
}

.seller-main-cell {
  min-width: 320px;
}

.seller-company {
  max-width: 280px;
}

/* Hard fix: keep the conductor identity column readable even in narrow kardex widths. */
.seller-premium-table {
  display: block;
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.seller-premium-table thead,
.seller-premium-table tbody {
  display: block;
  min-width: 100%;
}

.seller-premium-table tr {
  display: grid;
  grid-template-columns:
    minmax(430px, 2fr)
    minmax(150px, 0.72fr)
    minmax(320px, 1.45fr)
    minmax(140px, 0.64fr)
    116px;
  min-width: 1156px;
}

.seller-premium-table th,
.seller-premium-table td {
  width: auto !important;
  min-width: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border-left: 0 !important;
  border-right: 0 !important;
}

.seller-premium-table th:nth-child(2),
.seller-premium-table td:nth-child(2),
.seller-premium-table th:nth-child(4),
.seller-premium-table td:nth-child(4) {
  padding-left: 20px;
}

.seller-main-cell {
  min-width: 0;
}

.seller-primary-copy {
  min-width: 0;
  max-width: 100%;
}

.seller-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-muted-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.seller-actions-cell {
  justify-content: flex-end;
}

/* Final alignment pass: Conductores uses the same kardex geometry as Personas. */
.seller-premium-table {
  display: table;
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

.seller-premium-table thead {
  display: table-header-group;
}

.seller-premium-table tbody {
  display: table-row-group;
}

.seller-premium-table tr {
  display: table-row;
  min-width: 0;
}

.seller-premium-table th,
.seller-premium-table td {
  display: table-cell;
  width: auto !important;
  min-width: 0;
  box-sizing: border-box;
  vertical-align: middle;
  border-left: 0 !important;
  border-right: 0 !important;
}

.seller-premium-table th:nth-child(1),
.seller-premium-table td:nth-child(1) {
  width: 34% !important;
}

.seller-premium-table th:nth-child(2),
.seller-premium-table td:nth-child(2) {
  width: 17% !important;
  padding-left: 34px;
}

.seller-premium-table th:nth-child(3),
.seller-premium-table td:nth-child(3) {
  width: 34% !important;
}

.seller-premium-table th:nth-child(4),
.seller-premium-table td:nth-child(4) {
  width: 15% !important;
  padding-left: 34px;
}

.seller-premium-table th:nth-child(5),
.seller-premium-table td:nth-child(5) {
  width: 116px !important;
}

.seller-main-cell {
  display: flex;
  min-width: 280px;
}

.seller-muted-cell {
  display: table-cell;
}

.seller-actions-cell {
  text-align: right;
}

.seller-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* feature/MasterData/ServiceCalendar/screen/service-calendar-screen.component.css */
.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 4px;
  padding-right: 6px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.btn.icon-only {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: calc(100vh - 260px);
  scrollbar-gutter: stable;
  border: none;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #111827;
}

thead th {
  background: #1971c2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: none;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters th input::placeholder {
  color: #fff;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 120px;
  white-space: nowrap;
}

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

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.empty,
.loading {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.error-text {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(760px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

@media (max-width: 860px) {
  .table-wrapper {
    max-height: none;
    height: auto;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/StopPoint/screen/stop-point-screen.component.css */
.stop-point-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: 100vh;
  background: #fff;
}

.stop-point-shell.panel-hidden {
  grid-template-columns: 1fr;
}

.map-wrapper {
  position: relative;
  min-height: 100vh;
  background: #f8fafc;
}

.stop-point-map {
  width: 100%;
  height: 100vh;
}

.map-tools {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 520;
}

.map-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.map-search-btn svg {
  width: 20px;
  height: 20px;
  fill: #0f172a;
}

.map-search-float {
  position: absolute;
  left: 80px;
  bottom: 16px;
  z-index: 520;
  display: grid;
  gap: 6px;
  min-width: min(520px, 90vw);
}

.map-search-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.map-search {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
}

.stop-point-panel {
  background: #f3f5f9;
  border-left: 1px solid #e5e7eb;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stop-point-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

.panel-header h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  color: #111827;
}

.panel-toggle {
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.panel-section {
  background: #f3f5f9;
  border: none;
  border-radius: 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.filter-card {
  background: #fff;
  border: 1px solid #dbe1eb;
  border-radius: 14px;
  padding: 8px;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
  font-size: 15px;
}

.create-toggle {
  border: 2px solid #2b6cb0;
  border-radius: 999px;
  background: #f8fbff;
  color: #2b6cb0;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 800;
}

.create-toggle .plus {
  font-size: 20px;
  line-height: 1;
}

.results-toggle {
  padding: 2px 4px;
  font-size: 36px;
  font-weight: 800;
  color: #111827;
}

.chevron {
  font-size: 15px;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.chevron.open {
  transform: rotate(0deg);
}

.section-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-x: hidden;
  padding: 2px 6px 8px;
}

.form-section-body {
  max-height: calc(100vh - 280px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.form-section-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #111827;
}

.field-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.field-label-with-icon svg {
  width: 16px;
  height: 16px;
  fill: #111827;
  opacity: 0.88;
}

.field select,
.field input {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  background: #fff;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
}

.panel-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 560;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn.primary {
  background: #1f6fd6;
  color: #fff;
  border-radius: 999px;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  padding: 11px 14px;
}

.btn.primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn.ghost {
  background: #f3f4f6;
  color: #111827;
}

.btn.ghost.danger {
  color: #ef4444;
}

.btn.ghost.sm,
.btn.sky.sm {
  padding: 6px 10px;
}

.btn.sky {
  background: #0ea5e9;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.active,
.icon-button.small.active {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.result-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 390px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.result-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe1eb;
  background: #fff;
}

.result-media {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8eef8;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.result-media svg {
  width: 18px;
  height: 18px;
  fill: #0f172a;
}

.result-main {
  min-width: 0;
  flex: 1 1 auto;
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.result-sub {
  margin-top: 2px;
  font-size: 13px;
  color: #6b7280;
}

.result-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.crud-icon {
  border: none;
  background: #eef2f8;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.draggable {
  cursor: grab;
}

.draggable:active {
  cursor: grabbing;
}

tr.drag-over {
  background: #f1f5f9;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.status-na {
  background: #f59e0b;
  color: #fff;
}

.empty {
  text-align: center;
  color: #9ca3af;
  background: #fff;
  border: 1px dashed #d1d9e6;
  border-radius: 12px;
  padding: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
}

.modal {
  background: #fff;
  border-radius: 0;
  width: 100%;
  height: 100vh;
  max-width: none;
  max-height: none;
  box-shadow: none;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}

.icon-button {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

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

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.modal-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 16px;
  min-height: calc(100vh - 190px);
}

.modal-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-grid-left .field.full {
  grid-column: 1 / -1;
}

.modal-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.geo-block {
  margin-top: 6px;
}

.map-block {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-header {
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-search-wrap {
  position: relative;
  display: flex;
  gap: 8px;
  width: 100%;
}

.map-search {
  flex: 1;
  max-width: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}

.map {
  position: relative;
  flex: 1;
  min-height: 520px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.leaflet-container.map-crosshair-dark {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='2' fill='%23111827'/%3E%3Cpath d='M12 1v8M12 15v8M1 12h8M15 12h8' stroke='%23111827' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, crosshair !important;
}

.geo-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  max-height: 190px;
  min-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 8px;
}

.geo-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  background: #f9fafb;
  padding: 6px 8px;
  border-radius: 8px;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.geo-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-actions {
  display: flex;
  gap: 6px;
}

.pill {
  background: #e5e7eb;
  color: #111827;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.map-actions {
  display: flex;
  gap: 8px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-top: 6px;
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.suggestion {
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.suggestion:hover {
  background: #f3f4f6;
}

.icon-button.small {
  font-size: 14px;
  padding: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.icon-button.small.danger {
  color: #ef4444;
  font-size: 16px;
}

.form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.actions-right {
  display: flex;
  gap: 8px;
}

.map-block.full-map {
  gap: 10px;
  flex: 1;
}

@media (max-width: 980px) {
  .stop-point-shell {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }

  .map-wrapper,
  .stop-point-map {
    min-height: 100dvh;
    height: 100dvh;
  }

  .stop-point-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 420px);
    height: 100dvh;
    border-left: 1px solid #e5e7eb;
    border-top: none;
    background: #f3f5f9;
    z-index: 900;
    box-shadow: -10px 0 26px rgba(15, 23, 42, 0.2);
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .panel-header h2 {
    font-size: 28px;
  }

  .results-toggle {
    font-size: 30px;
  }

  .create-toggle {
    font-size: 16px;
  }

  .result-title {
    font-size: 16px;
  }

  .result-sub {
    font-size: 12px;
  }

  .panel-reopen {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

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

  .modal {
    max-width: 100%;
  }

  .stop-point-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .panel-header h2 {
    font-size: 24px;
  }
}



.stop-point-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

/* Compact density: keep Paraderos readable without the oversized 100% panel feel. */
.stop-point-shell {
  grid-template-columns: 1fr 320px;
}

.stop-point-shell.panel-hidden {
  grid-template-columns: 1fr;
}

.stop-point-panel {
  padding: 10px;
  gap: 8px;
  font-size: 12px;
}

.panel-header h2 {
  font-size: 26px;
  line-height: 1.05;
}

.panel-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
}

.panel-section {
  gap: 6px;
  border-radius: 10px;
}

.filter-card {
  border-radius: 10px;
  padding: 6px;
}

.section-toggle {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.15;
}

.create-toggle {
  padding: 7px 12px;
  border-width: 1px;
  font-size: 13px;
}

.create-toggle .plus {
  font-size: 16px;
}

.results-toggle {
  font-size: 24px;
}

.section-body {
  gap: 7px;
  padding: 2px 4px 6px;
}

.field {
  gap: 4px;
  font-size: 11px;
}

.field-label-with-icon {
  gap: 5px;
}

.field-label-with-icon svg {
  width: 13px;
  height: 13px;
}

.field input,
.field select {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.15;
}

.btn {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.btn.primary {
  padding: 8px 10px;
  font-size: 13px;
  gap: 6px;
}

.btn.primary svg {
  width: 13px;
  height: 13px;
}

.result-list {
  gap: 7px;
  max-height: calc(100vh - 320px);
}

.result-card {
  gap: 7px;
  padding: 8px;
  border-radius: 9px;
}

.result-media {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.result-media svg {
  width: 14px;
  height: 14px;
}

.result-title {
  font-size: 13px;
  line-height: 1.15;
}

.result-sub {
  font-size: 11px;
}

.crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 6px;
}

.status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

.empty {
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .stop-point-shell {
    grid-template-columns: 1fr;
  }

  .stop-point-panel {
    width: min(92vw, 360px);
  }
}

@media (max-width: 720px) {
  .stop-point-panel {
    width: 100vw;
    max-width: 100vw;
  }
}

/* feature/MasterData/TimeBand/screen/timeband-screen.component.css */
.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0px 0 0px;
  padding-right: 6px;
}
.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}
.btn.icon-only {
  background: transparent;
  padding: 8px;
}
.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: calc(100vh - 260px);
  scrollbar-gutter: stable;
  border: none;
  border-radius: 0;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: #111827;
}

thead th {
  background: #1971c2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: none;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters th input::placeholder {
  color: #fff;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 110px;
  white-space: nowrap;
}

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

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.loading {
  padding: 20px;
}

.toast-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
}

.toast {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.toast.confirm {
  border-radius: 12px;
  padding: 12px;
}

.toast-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.toast-text {
  margin-bottom: 8px;
}

.toast-actions {
  display: flex;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.toast-btn.danger {
  background: #dc2626;
  color: #fff;
}

.toast-btn.neutral {
  background: #e5e7eb;
  color: #111827;
}

.toast-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toast.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.toast.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.toast.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.error-text {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.crud-form-row .field-input {
  border: none;
  padding: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(760px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

@media (max-width: 860px) {
  .table-wrapper {
    max-height: none;
    height: auto;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/Vehicle/screen/vehicle-screen.component.css */
.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 4px;
  padding-right: 6px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.ghost {
  background: #f3f4f6;
  color: #111827;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: calc(100vh - 260px);
  scrollbar-gutter: stable;
  border: none;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  color: #111827;
}

thead th {
  background: #1971c2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: none;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters th input::placeholder {
  color: #fff;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 130px;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.crud-icon.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.status-assigment {
  border: 1px solid transparent;
}

.status-assigment-unassigned {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.status-assigment-dispatch {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.status-assigment-driver {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.status-assigment-automatic {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.empty,
.loading {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.field-control select.field-input {
  appearance: none;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.error-text {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.vehicle-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vehicle-edit-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, max-content));
  align-items: flex-end;
  gap: 14px;
}

.compact-toggle-row {
  min-width: 130px;
}

.vehicle-form-right-column {
  grid-column: 2;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(820px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-vehicle-modal {
  width: min(1100px, 96vw);
  max-height: 90vh;
  overflow: auto;
}

.bulk-vehicle-config {
  grid-template-columns: 1fr;
}

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

.bulk-vehicle-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-vehicle-mode,
.bulk-create-options {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
}

.bulk-create-options {
  gap: 10px;
}

.bulk-create-option,
.bulk-create-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.bulk-create-option select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.bulk-create-toggle strong {
  min-width: 18px;
  color: #111827;
}

.bulk-mode-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.bulk-mode-btn.active {
  background: #fff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.bulk-mode-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bulk-paste-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulk-paste-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.bulk-paste-area {
  width: 100%;
  min-height: 90px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.35;
}

.bulk-vehicle-table {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.bulk-vehicle-table table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-vehicle-table th,
.bulk-vehicle-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.bulk-vehicle-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  color: #334155;
  z-index: 1;
}

.bulk-vehicle-table input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.bulk-vehicle-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 8px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
}

.toast {
  background: #10b981;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  min-width: 240px;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #fff;
  color: #b91c1c;
}

.toast-btn.neutral {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.qr-modal-card {
  width: min(420px, 92vw);
}

.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.qr-title {
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.qr-image {
  width: 280px;
  height: 280px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.qr-value {
  font-size: 12px;
  color: #475569;
  text-align: center;
  word-break: break-all;
  max-width: 320px;
}

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

  .vehicle-form-right-column {
    grid-column: auto;
  }

  .vehicle-edit-toggle-group {
    grid-template-columns: 1fr;
  }

  .bulk-assign-config {
    grid-template-columns: 1fr;
  }

  .bulk-vehicle-toolbar,
  .bulk-vehicle-mode,
  .bulk-create-options {
    flex-wrap: wrap;
  }

  .table-wrapper {
    max-height: none;
    height: auto;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/VehicleDevice/screen/vehicle-device-screen.component.css */
.vehicle-device-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vehicle-device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-device-header h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
}

.action-btn,
.icon-btn,
.pagination button,
.modal-actions button,
.close-btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.action-btn:disabled,
.pagination button:disabled,
.modal-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.table-card {
  background: #fff;
  min-height: 0;
  flex: 1;
}

.table-wrapper {
  overflow: auto;
  max-height: calc(100vh - 210px);
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1971c2;
  color: #fff;
  text-transform: uppercase;
  height: 44px;
}

.column-filters th input,
.column-filters th select {
  width: 100%;
  min-width: 140px;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-align: center;
}

.column-filters th input::placeholder {
  color: #fff;
  text-align: center;
}

.column-filters th select {
  cursor: pointer;
}

.relation-filter-select {
  width: 100%;
  min-width: 150px;
  max-width: 210px;
  border-color: transparent;
  background: #1971c2;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

.filter-select option {
  background: #fff;
  color: #111827;
}

.actions-col {
  width: 190px;
  text-align: left;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 8px;
}

.vehicle-col {
  width: 110px;
  text-align: center;
}

.device-col {
  width: 230px;
  text-align: center;
}

.route-col {
  width: 220px;
  text-align: center;
}

.date-col {
  width: 170px;
  text-align: center;
}

.relation-col {
  width: 230px;
  text-align: center;
}

.actions-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 6px;
}

.actions-header > span {
  font-size: 13px;
  line-height: 1;
}

.row-actions {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.action-btn {
  background: #fee2e2;
  color: #b91c1c;
  padding: 7px 10px;
}

.pending-action {
  display: inline-flex;
  min-width: 82px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn.neutral {
  background: #e0f2fe;
  color: #075985;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.state-active {
  background: #dcfce7;
  color: #166534;
}

.state-pending {
  background: #fef3c7;
  color: #92400e;
}

.state-expired {
  background: #e5e7eb;
  color: #374151;
}

.state-neutral {
  background: #dbeafe;
  color: #1e40af;
}

.empty,
.loading {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.pagination button {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 6px 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-card {
  position: relative;
  width: min(460px, 92vw);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 18px;
}

.history-card {
  width: min(1680px, 98vw);
  max-height: 86vh;
  overflow: auto;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111827;
}

.close-btn {
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
}

.history-subtitle {
  color: #475569;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.history-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.history-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
}

.mini-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.55fr 1.2fr 1.2fr;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  align-items: center;
  text-align: center;
}

.mini-row:last-child {
  border-bottom: none;
}

.mini-row.header {
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.mini-empty {
  padding: 12px;
  color: #64748b;
  text-align: center;
}

.mini-state {
  min-width: 128px;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.modal-body {
  display: grid;
  gap: 8px;
  color: #334155;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .primary {
  background: #dc2626;
  color: #fff;
  padding: 8px 14px;
}

.modal-actions .secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

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

@media (max-width: 900px) {
  .table-wrapper {
    max-height: none;
  }
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/VehicleRoute/screen/vehicle-route-screen.component.css */
.route-page {
  background: #fff;
  min-height: 100vh;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.route-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 0;
}

.route-title {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  margin: 0;
}

.route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 4px;
  padding-right: 6px;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn.icon-only {
  background: transparent;
  padding: 8px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fab53e;
  border: 1px solid #fab53e;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.status.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.table-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 200px;
  max-height: calc(100vh - 260px);
  scrollbar-gutter: stable;
  border: none;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  color: #111827;
}

thead th {
  background: #1971c2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: none;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.column-filters th {
  padding-top: 6px;
  padding-bottom: 12px;
  vertical-align: bottom;
  background: #1971c2;
}

.column-filters th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #1971c2;
  color: #fff;
  text-transform: none;
}

.column-filters th input::placeholder {
  color: #fff;
}

.table-wrapper tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table-wrapper tbody tr:last-child {
  border-bottom: none;
}

.table-wrapper th.actions-col,
.table-wrapper td.actions-col {
  text-align: center;
  width: 130px;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.crud-icon {
  border: none;
  background: #e2e8f0;
  color: #111827;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crud-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.crud-icon.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 12px;
}

.status-active {
  background: #16a34a;
  color: #fff;
}

.status-inactive {
  background: #dc2626;
  color: #fff;
}

.empty,
.loading {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.crud-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.crud-page-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.crud-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crud-primary {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.crud-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.crud-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-form-row input,
.crud-form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.field-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 12px 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.field-control select.field-input {
  appearance: none;
}

.field-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #94a3b8;
}

.field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field-icon.left {
  left: 14px;
}

.field-icon.right {
  right: 14px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 999px;
}

.field-shell.invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  background: #fff;
}

.field-shell.invalid .field-icon.right {
  color: #ef4444;
  background: #fee2e2;
}

.error-text {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.vehicle-route-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.crud-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.crud-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.crud-modal-card {
  position: relative;
  width: min(820px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crud-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.crud-modal-close {
  border: none;
  background: #e5e7eb;
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.crud-modal .crud-form {
  padding: 0;
  border: none;
  background: transparent;
}

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

  .table-wrapper {
    max-height: none;
    height: auto;
  }
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.toast.error {
  background: #dc2626;
}

.toast.warning {
  background: #d97706;
}

.toast.confirm {
  color: #111827;
  background: #fff7ed;
  border: 1px solid #fdba74;
}

.toast-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.toast-text {
  margin-bottom: 10px;
}

.toast-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toast-btn.danger {
  background: #dc2626;
  color: #fff;
}

.toast-btn.neutral {
  background: #e5e7eb;
  color: #111827;
}
/* MasterData cardex compact density and wrapping guard. */
.table-wrapper table {
  table-layout: auto;
  min-width: 100%;
}

.table-wrapper th,
.table-wrapper td {
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.12;
}

.table-wrapper th {
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.table-wrapper tbody td:not(.actions-col) {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.table-wrapper tbody td:not(.actions-col) > * {
  max-width: 100%;
}

.table-wrapper th input,
.table-wrapper th select,
.table-wrapper .filter-select,
.table-wrapper .relation-filter-select {
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9px;
}

.table-wrapper .crud-icon {
  min-width: 24px;
  height: 24px;
  padding: 3px 5px;
}

.table-wrapper .status-pill {
  padding: 3px 7px;
  font-size: 10px;
}

/* feature/MasterData/Zone/screen/zone-screen.component.css */
.zone-shell {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 360px;
  overflow: hidden;
  position: relative;
}

.zone-shell.panel-hidden {
  grid-template-columns: 1fr;
}

.map-wrapper {
  position: relative;
}

.zone-map {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.zone-map .leaflet-container,
.zone-map {
  cursor: grab;
}

.map-tools {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 510;
}

.map-search-btn {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
}

.map-search-btn svg {
  width: 18px;
  height: 18px;
  fill: #0f172a;
}
.legend-toggle {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.map-mode-btn {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
}

.map-mode-btn.draw {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

.legend-panel {
  position: absolute;
  bottom: 58px;
  left: 16px;
  width: 260px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 509;
}

.legend-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.map-search-float {
  position: absolute;
  left: 160px;
  bottom: 16px;
  z-index: 508;
  display: grid;
  gap: 6px;
  min-width: min(360px, 70vw);
}

.map-search-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(6px);
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.legend-close {
  border: none;
  background: #f3f4f6;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.legend-list {
  width: 100%;
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legend-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legend-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.stop-focus-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 8px;
  cursor: pointer;
}

.stop-focus-row:hover {
  background: #f8fafc;
}

.legend-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.legend-text {
  color: #111827;
  font-weight: 600;
}

.legend-empty {
  color: #9ca3af;
  font-weight: 600;
  padding: 6px 0;
}

.zone-panel {
  background: #f3f5f9;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 810;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.zone-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.panel-header h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #111827;
}

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

.panel-toggle {
  border: none;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.panel-reopen {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 520;
  border: none;
  background: #0f172a;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f3f5f9;
  border: none;
  border-radius: 14px;
  padding: 0;
}

.filter-card {
  background: #fff;
  border: 1px solid #dbe1eb;
  border-radius: 14px;
  padding: 8px;
}

.section-toggle {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-toggle .chevron {
  font-size: 15px;
  transform: rotate(180deg);
  transition: transform 0.15s ease;
  opacity: 0.8;
}

.section-toggle .chevron.open {
  transform: rotate(0deg);
}

.create-toggle {
  border: 2px solid #2b6cb0;
  border-radius: 999px;
  background: #f8fbff;
  color: #2b6cb0;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 800;
}

.create-toggle .plus {
  font-size: 20px;
  line-height: 1;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #dbe1eb;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #111827;
}

.field-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-label-with-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.9;
}

.field input,
.field select {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.multi-check {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
}

.multi-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #111827;
}

.zone-rule-note {
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.map-search-wrap {
  position: relative;
  display: flex;
  gap: 8px;
}

.map-search {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.suggestions {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.suggestions::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.suggestion {
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.suggestion:hover {
  background: #f3f4f6;
}

.coords-block {
  margin-top: 4px;
}

.coords-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 6px;
}

.coords-header small {
  color: #6b7280;
  font-weight: 500;
}

.coords-list {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  display: grid;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.coords-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.coords-list.empty {
  display: block;
}

.coords-empty {
  text-align: center;
  color: #9ca3af;
  padding: 8px 0;
}

.coord-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  background: #f9fafb;
}

.coord-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #111827;
}

.coord-values {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: #111827;
}

.coord-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.icon-btn.active {
  border-color: #2563eb;
  color: #2563eb;
}

.icon-btn.danger {
  border-color: #ef4444;
  color: #ef4444;
}

.subheading {
  text-align: center;
  font-weight: 700;
  color: #111827;
}

.paradero-list .legend-row {
  grid-template-columns: auto 1fr;
}

.edit-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border-radius: 10px;
  font-weight: 700;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
}

.btn.primary {
  background: #1f6fd6;
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn.success {
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
}

.btn.ghost {
  background: #eef2f8;
  color: #1f2937;
  border: 1px solid #dbe1eb;
}

.btn.sky {
  background: #38bdf8;
  color: #fff;
}

.btn.sky.ghost {
  background: rgba(56, 189, 248, 0.2);
  color: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.zone-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.zone-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-order-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.bulk-zone-panel {
  border: 1px solid #dbe1eb;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.bulk-zone-title {
  font-weight: 800;
  color: #1e293b;
}

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

.bulk-zone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-zone-progress {
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
}

.zone-order-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  scrollbar-gutter: stable;
  padding-bottom: 0;
}

.zone-order-row {
  display: grid;
  grid-template-columns: 24px 44px 1fr max-content;
  gap: 0;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  min-width: 300px;
}

.zone-order-row.bulk-mode {
  grid-template-columns: 44px 24px 44px 1fr max-content;
}

.zone-order-row .cell:last-child {
  justify-self: start;
}

.zone-order-row.header {
  background: #eef2f8;
  font-weight: 700;
}

.zone-order-row:last-child {
  border-bottom: none;
}

.zone-order-row.draggable {
  cursor: grab;
}

.zone-order-row.draggable:active {
  cursor: grabbing;
}

.zone-order-row .cell.zone-name {
  font-weight: 600;
}

.order-pill {
  display: inline-block;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 700;
  text-align: center;
}

.zone-order-row.drag-over {
  background: #eff6ff;
}

.zone-order-row .cell.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-order-row .cell.bulk-selector {
  display: grid;
  place-items: center;
}

.zone-order-row .cell.bulk-selector input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.zone-order-row .cell {
  min-width: 0;
  white-space: nowrap;
}

.zone-status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5f5;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background-color: #22c55e;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-weight: 600;
  color: #1f2a44;
}

.drag-handle {
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
}

.toast {
  background: #16a34a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.error {
  background: #ef4444;
}

.toast.warn {
  background: #f59e0b;
}

.toast-message {
  flex: 1;
}

.zone-products {
  display: grid;
  gap: 8px;
}

.zone-product-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe1eb;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}

.zone-product-name {
  color: #0f172a;
  min-width: 0;
}

.zone-product-price {
  color: #2563eb;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .zone-shell {
    grid-template-columns: 1fr 300px;
  }

  .panel-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .zone-shell {
    grid-template-columns: 1fr;
    height: 100dvh;
    min-height: 100dvh;
  }

  .map-wrapper,
  .zone-map {
    min-height: 100dvh;
    height: 100dvh;
  }

  .zone-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 420px);
    height: 100dvh;
    border-left: 1px solid #e5e7eb;
    border-top: none;
    background: #f3f5f9;
    z-index: 900;
    box-shadow: -10px 0 26px rgba(15, 23, 42, 0.2);
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .panel-reopen {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 910;
  }
}

@media (max-width: 720px) {
  .zone-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .bulk-zone-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact density: keep the map tools usable while the side panel feels closer to 70%. */
.zone-shell {
  grid-template-columns: 1fr 320px;
}

.zone-shell.panel-hidden {
  grid-template-columns: 1fr;
}

.zone-panel {
  padding: 10px;
  gap: 8px;
  font-size: 12px;
}

.panel-header h2 {
  font-size: 26px;
  line-height: 1.05;
}

.panel-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
}

.panel-section {
  gap: 6px;
  border-radius: 10px;
}

.filter-card {
  border-radius: 10px;
  padding: 6px;
}

.section-toggle {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.15;
}

.section-toggle .chevron {
  font-size: 12px;
}

.create-toggle {
  padding: 7px 12px;
  border-width: 1px;
  font-size: 13px;
}

.create-toggle .plus {
  font-size: 16px;
}

.section-body {
  gap: 7px;
  padding: 7px;
  border-radius: 9px;
}

.field {
  gap: 4px;
  font-size: 11px;
}

.field-label-with-icon {
  gap: 5px;
}

.field-label-with-icon svg {
  width: 13px;
  height: 13px;
}

.field input,
.field select {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.15;
}

.multi-check {
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
}

.coords-list {
  max-height: 160px;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
}

.coord-row,
.zone-product-row {
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
}

.coord-badge,
.legend-badge {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.coord-values,
.legend-text,
.coords-empty {
  font-size: 11px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.btn {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.btn.primary {
  padding: 8px 10px;
  font-size: 13px;
  gap: 6px;
}

.btn.primary svg {
  width: 13px;
  height: 13px;
}

.map-tools {
  gap: 6px;
}

.legend-toggle,
.map-mode-btn,
.map-search-btn {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}

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

  .zone-panel {
    width: min(92vw, 360px);
  }
}

@media (max-width: 720px) {
  .zone-panel {
    width: 100vw;
    max-width: 100vw;
  }
}

/* feature/Planning/PlanningCardex/screen/planning-cardex-screen.component.css */
.cardex-page {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  min-height: calc(100vh - 120px);
  height: calc(100vh - 120px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.cardex-hero {
  display: flex;
  justify-content: center;
}

.hero-kicker,
.cardex-hero p,
.hero-motif {
  display: none;
}

.cardex-hero h2 {
  margin: 0;
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1f1f1f;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.toast.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.toast.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.toast.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.table-wrapper {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0;
}

.table-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-wrapper table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  background: #fff;
}

.query-search-btn {
  border: none;
  background: #f59e0b;
  color: #111827;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.query-search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.table-wrapper .table-query-row th {
  background: #1971c2;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: bottom;
  padding-top: 10px;
  padding-bottom: 10px;
}

.table-wrapper .table-query-row .query-search-cell {
  text-align: right;
}

.table-wrapper .table-query-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.table-wrapper .table-query-row input,
.table-wrapper .table-query-row select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}

.table-wrapper .table-query-row input:focus,
.table-wrapper .table-query-row select:focus {
  outline: none;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.35);
}

.table-wrapper .table-query-row select option {
  background: #fff;
  color: #0f172a;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2ff;
  font-size: 0.92rem;
  vertical-align: middle;
}

.table-wrapper thead th {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1971c2;
  font-size: 13px;
  font-weight: 700;
  border-bottom: none;
}

.table-wrapper .column-filters th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.table-wrapper .column-filters input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-transform: none;
}

.table-wrapper .column-filters input:focus {
  outline: none;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.35);
}

.table-wrapper .column-filters input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.actions-col {
  width: 140px;
  min-width: 140px;
}

.expand-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.trip-detail-cell {
  padding: 0;
  background: #f8fafc;
}

.cardex-table-wrap {
  max-height: 300px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-top: 1px solid #e2e8f0;
}

.cardex-table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.trip-table {
  min-width: 980px;
}

.trip-table thead th {
  background: #2563eb;
}

.trip-table .column-filters th {
  background: #2563eb;
}

.empty {
  text-align: center;
  color: #9ca3af;
  padding: 16px;
}

@media (max-width: 980px) {
  .cardex-page {
    padding: 12px;
  }
}

.table-wrapper .table-query-collapsed th {
  background: #1971c2;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 12px;
}

.query-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.query-summary span {
  font-size: 13px;
  white-space: nowrap;
}

.query-summary-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.query-edit-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

/* feature/Planning/PlanningGeneralReport/screen/planning-general-report-details-screen.component.css */
.details-shell {
  height: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
  display: grid;
  gap: 12px;
}

.details-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7088aa;
}

.details-head h2 {
  margin: 4px 0;
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 32px;
  color: #1a304f;
}

.details-head p {
  margin: 0;
  color: #60708a;
}

.back-link {
  border: 1px solid #bfd4ef;
  background: #fff;
  color: #1c6fbe;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 800;
}

.details-ledger {
  border: 1px solid #d8e5f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
  overflow: hidden;
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
}

.ledger-head {
  background: #f5f9ff;
  border-bottom: 1px solid #dbe6f5;
  color: #5b6f8e;
  font-weight: 800;
}

.ledger-body {
  display: grid;
}

.ledger-row {
  border-bottom: 1px solid #edf3fb;
}

.ledger-row:nth-child(even) {
  background: #fafcff;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row strong {
  color: #203855;
}

.ledger-row span {
  color: #354866;
}

.ledger-row em {
  justify-self: end;
  font-style: normal;
  color: #0f5f52;
  font-weight: 800;
}

@media (max-width: 900px) {
  .details-shell {
    padding: 12px;
  }

  .details-head {
    flex-direction: column;
  }

  .ledger-head,
  .ledger-row {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .ledger-row em {
    justify-self: start;
  }
}

/* feature/Planning/PlanningGeneralReport/screen/planning-general-report-screen.component.css */
.analytics-board {
  --bg: #f3f7fc;
  --panel: #ffffff;
  --line: rgba(34, 63, 105, 0.16);
  --text: #17385f;
  --muted: #5c7498;
  --blue: #1d75c7;
  --top: #22a06b;
  --low: #e45757;
  --shadow: 0 14px 28px rgba(2, 8, 18, 0.45);

  min-height: 100%;
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 52% -8%, rgba(70, 118, 187, 0.12), transparent 36%),
    radial-gradient(circle at 90% 15%, rgba(96, 154, 216, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fd 58%, var(--bg) 100%);
  display: grid;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.plus-hero {
  border: 1px solid rgba(193, 168, 112, 0.28);
  border-radius: 16px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(100, 152, 218, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 42%, #eef4fc 100%);
  box-shadow: 0 10px 22px rgba(17, 43, 76, 0.12);
  display: grid;
  gap: 10px;
}

.plus-hero-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f5e97;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.plus-brand {
  font-weight: 900;
}

.plus-separator {
  opacity: 0.8;
}

.plus-caption {
  color: #4f6f99;
}

.plus-hero h2 {
  margin: 0;
  color: #1d3960;
  font-family: 'Cinzel', 'Lilita One', 'Poppins', serif;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-align: center;
}

.plus-context-line {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.header-filter.compact {
  min-width: 0;
  gap: 0;
}

.header-filter.compact input,
.header-filter.compact select {
  height: 30px;
  border: 1px solid rgba(214, 227, 245, 0.5);
  background: #fff;
  color: #1d3a61;
  font-size: 11px;
  border-radius: 8px;
  padding: 0 9px;
}

.header-filter.compact.filter-date input {
  width: 126px;
}

.header-filter.compact.filter-company select {
  width: 278px;
}

.plus-context-meta {
  margin: 0;
  color: #cfdcf3;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.plus-step {
  display: grid;
  gap: 12px;
}

.hero-total-section {
  display: grid;
  grid-template-columns: 1fr;
}

.plus-hito-card.hero-total-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(172, 195, 229, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.94) 100%),
    linear-gradient(135deg, rgba(29, 117, 199, 0.07) 0%, rgba(18, 30, 48, 0.02) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 46px rgba(28, 55, 94, 0.12),
    0 3px 10px rgba(28, 55, 94, 0.08);
}

.plus-hito-card.hero-total-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #14b8a6 52%, #8b5cf6 100%);
  opacity: 0.86;
  z-index: 0;
}

.plus-hito-card.hero-total-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 85, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 85, 130, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
}

.hero-total-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hero-total-content .priority-eyebrow {
  color: #295b91;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(183, 205, 235, 0.72);
  border-radius: 999px;
  padding: 7px 11px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.hero-total-content .priority-value {
  color: #0a2a4d;
  font-size: clamp(44px, 5vw, 72px) !important;
  letter-spacing: 0;
  font-weight: 950;
  line-height: 0.98;
}

.hero-total-content small {
  color: #597392;
  font-size: 13px;
  font-weight: 800;
}

.priority-kpi-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.4fr) minmax(300px, 1fr);
  gap: 12px;
}

.priority-card {
  min-height: 176px;
}

.priority-total-content,
.priority-compliance-content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.priority-eyebrow {
  color: #456993;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
}

.priority-value {
  color: #0f3358;
  font-size: clamp(38px, 4vw, 58px) !important;
  text-shadow: none !important;
  line-height: 1.05;
}

.priority-progress-wrap {
  display: grid;
  gap: 6px;
}

.priority-progress-track {
  height: 14px;
  border-radius: 999px;
  background: #dde9f8;
  overflow: hidden;
}

.priority-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dcf84 0%, #199a60 100%);
}

.priority-progress-meta {
  color: #2f5f93;
  font-size: 12px;
  font-weight: 800;
}

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

.priority-meta-grid article {
  border: 1px solid rgba(196, 171, 113, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.priority-meta-grid span {
  color: #456993;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

.priority-meta-grid .priority-mini-value {
  color: #123a63;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: none;
}

.insight-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.insight-grid-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-chart {
  min-height: 380px;
}

.hero-chart > header h4 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hour-bars-panel {
  display: grid;
  gap: 10px;
  height: 100%;
  align-content: space-between;
}

.bars-layout {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: flex-end;
}

.bars-y-axis {
  height: 220px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
}

.bars-y-axis span {
  color: #6b82a2;
  font-size: 11px;
  font-weight: 700;
}

.bars-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 159, 137, 0.38) transparent;
}

.bars-scroll::-webkit-scrollbar {
  height: 6px;
}

.bars-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.bars-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 159, 137, 0.32);
}

.bars-scroll-12 {
  max-width: 100%;
}

.bars-scroll-10 {
  max-width: min(100%, calc((42px * 18) + (6px * 17)));
}

.bars-scroll-12 .hour-bars {
  min-width: calc((30px * 24) + (4px * 23));
}

.bars-scroll-10 .hour-bars {
  min-width: calc((42px * 18) + (6px * 17));
}

.hour-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42px;
  gap: 6px;
  align-items: end;
  min-height: 250px;
  width: max-content;
}

.hour-bar-item {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.hour-bar-track {
  width: 100%;
  height: 220px;
  display: grid;
  align-items: flex-end;
  border-radius: 8px;
  background: #e9f1fb;
  padding: 2px;
}

.hour-bar-fill {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #40a8ff 0%, #1e6dbc 100%);
}

.hour-bar-fill.ticket-bars {
  background: linear-gradient(180deg, #3ac9a3 0%, #1f9e76 100%);
}

.ticket-chart-bars .hour-bar-item {
  cursor: pointer;
}

.ticket-chart-bars .hour-bar-item.ticket-selected .ticket-track {
  background: linear-gradient(180deg, #e7fbf5 0%, #d8f3ea 100%);
  border: 1px solid rgba(28, 164, 124, 0.55);
  box-shadow: 0 0 0 3px rgba(28, 164, 124, 0.12), 0 10px 24px rgba(15, 105, 80, 0.16);
}

.ticket-chart-bars .hour-bar-item.ticket-selected .ticket-bars {
  background: linear-gradient(180deg, #28d5a4 0%, #0f8d6b 100%);
}

.ticket-chart-bars .hour-bar-item.ticket-selected small {
  color: #087b61;
  font-weight: 950;
}

.ticket-chart-bars.hour-bars-24,
.ticket-hour-bars.hour-bars-24 {
  grid-auto-columns: 30px;
  gap: 4px;
}

.ticket-chart-bars.hour-bars-24 .ticket-track {
  height: 210px;
}

.ticket-hour-bars {
  position: relative;
  z-index: 2;
}

.ticket-hour-track {
  width: 22px;
  margin-inline: auto;
  background: transparent;
  border: 0;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ticket-hour-bars.hour-bars-24 .ticket-hour-track {
  width: 16px;
}

.ticket-hour-fill {
  border-radius: 11px 11px 5px 5px;
  background: linear-gradient(180deg, #14b8a6 0%, #10b981 58%, #047857 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 16px rgba(16, 185, 129, 0.14);
  transition: height 320ms ease, filter 180ms ease;
}

.ticket-hour-bar-item {
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

.ticket-hour-bar-item.ticket-selected .ticket-hour-track {
  transform: translateY(-3px);
}

.ticket-hour-bar-item.ticket-selected .ticket-hour-fill {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 12px 22px rgba(16, 185, 129, 0.24);
}

.ticket-bar-value {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(var(--bar-height, 0%) + 8px);
  transform: translateX(-50%);
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.ticket-hour-bars.hour-bars-24 .ticket-bar-value {
  bottom: calc(var(--bar-height, 0%) + 6px);
  font-size: 10px;
}

.ticket-hour-bars.hour-bars-24 .ticket-hour-bar-item small {
  font-size: 9px;
}

.hide-ticket-bars .ticket-hour-fill {
  opacity: 0;
}

.hide-ticket-bars .ticket-bar-value {
  display: none;
}

.hide-ticket-bars .ticket-hour-track {
  background: transparent;
}

.ticket-hour-bar-item:hover .ticket-hour-track {
  transform: translateY(-3px);
}

.ticket-hour-bar-item:hover .ticket-hour-fill {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 12px 22px rgba(16, 185, 129, 0.24);
}

.ticket-hour-bar-item::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  min-width: max-content;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ticket-hour-bar-item::before {
  content: "";
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: rgba(6, 78, 59, 0.94);
  transform: translate(-50%, 6px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ticket-hour-bar-item:hover::after,
.ticket-hour-bar-item:hover::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(0deg);
}

.ticket-hour-bar-item:hover::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.hour-bars.coverage-bars .hour-bar-fill {
  background: linear-gradient(180deg, #49c07f 0%, #198953 100%);
}

.hour-bars.coverage-bars .hour-bar-item {
  cursor: pointer;
}

.hour-bars.coverage-bars .hour-bar-item.coverage-empty {
  cursor: default;
}

.hour-bars.coverage-bars .hour-bar-item.coverage-selected .coverage-track {
  background: linear-gradient(180deg, #e7f7ff 0%, #d7ecff 100%);
  border: 1px solid rgba(35, 128, 211, 0.55);
  box-shadow: 0 0 0 3px rgba(35, 128, 211, 0.12), 0 10px 24px rgba(18, 58, 99, 0.15);
}

.hour-bars.coverage-bars .hour-bar-item.coverage-selected .coverage-bars-fill {
  background: linear-gradient(180deg, #1ba7ff 0%, #0869bb 100%);
}

.hour-bars.coverage-bars .hour-bar-item.coverage-selected small {
  color: #075caa;
  font-weight: 900;
}

.hour-bars.pod-bars .hour-bar-fill {
  background: linear-gradient(180deg, #ffbf64 0%, #ff7a00 100%);
}

.hour-bars.pod-bars .hour-bar-item {
  cursor: pointer;
}

.hour-bars.pod-bars .hour-bar-item.pod-selected .pod-track {
  background: linear-gradient(180deg, #fff3e1 0%, #ffe3be 100%);
  border: 1px solid rgba(255, 122, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12), 0 10px 24px rgba(145, 78, 12, 0.15);
}

.hour-bars.pod-bars .hour-bar-item.pod-selected .pod-bars-fill {
  background: linear-gradient(180deg, #ff8f1f 0%, #e86200 100%);
}

.hour-bars.pod-bars .hour-bar-item.pod-selected small {
  color: #c85c00;
  font-weight: 900;
}

.hour-bar-item small {
  color: #4f6f98;
  font-size: 10px;
  font-weight: 700;
}

.hour-bars-foot {
  margin: 0;
  color: #456993;
  font-size: 12px;
  font-weight: 800;
}

.hour-bars-foot strong {
  color: #123a63;
}

.am-pm-vertical-chart {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 250px;
  align-items: flex-end;
}

.am-pm-column {
  border: 1px solid rgba(196, 171, 113, 0.24);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.am-pm-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.am-pm-column-head span {
  color: #46658f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.am-pm-column-head strong {
  font-size: 26px;
  line-height: 1;
  text-shadow: none;
}

.am-pm-column-track {
  height: 170px;
  border-radius: 10px;
  background: #e8eff9;
  overflow: hidden;
  display: grid;
  align-items: flex-end;
  padding: 4px;
}

.am-pm-column-fill {
  display: block;
  height: 0;
  border-radius: inherit;
}

.am-pm-column-fill.am {
  background: linear-gradient(90deg, #45d5c4 0%, #26a99a 100%);
}

.am-pm-column-fill.pm {
  background: linear-gradient(90deg, #ff6a86 0%, #ff4666 100%);
}

.insight-grid-secondary {
  margin-top: 4px;
}

.period-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #cad9ec;
  background: #f1f6fc;
  width: max-content;
}

.period-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #496587;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.period-tabs button.active {
  background: #1d75c7;
  color: #fff;
}

.coverage-chart-panel,
.pod-chart-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.pod-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 14px;
  align-items: start;
}

.pod-executive-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 141, 26, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}

.pod-executive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(239, 190, 122, 0.45);
}

.pod-title-block,
.pod-focused-day {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pod-title-icon,
.pod-focused-day {
  border: 1px solid #ffd6a8;
  background: linear-gradient(180deg, #ffffff 0%, #fff3e5 100%);
  box-shadow: 0 8px 18px rgba(145, 78, 12, 0.08);
}

.pod-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ff7900;
  font-size: 28px;
  line-height: 1;
}

.pod-title-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pod-title-block h4 {
  margin: 0;
  color: #102844;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pod-title-block p {
  margin: 4px 0 0;
  color: #486482;
  font-size: 13px;
  font-weight: 800;
}

.pod-focused-day {
  border-radius: 14px;
  padding: 9px 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 170px;
}

.pod-focused-day span {
  color: #7a5a35;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pod-focused-day strong {
  color: #102844;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.pod-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 18px;
  align-items: stretch;
}

.pod-history-panel,
.pod-executive-summary,
.pod-day-note {
  border: 1px solid #f0d5b1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(145, 78, 12, 0.07);
}

.pod-history-panel {
  padding: 16px 16px 12px;
}

.pod-period-tabs {
  max-width: 320px;
  margin-bottom: 14px;
}

.pod-period-tabs button.active {
  background: #ff7900;
}

.pod-bars-layout {
  min-height: 280px;
}

.pod-executive-summary {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 141, 26, 0.11), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.pod-summary-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.pod-summary-eyebrow {
  margin: 0 0 8px;
  color: #1f3857;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pod-main-percent {
  margin: 0;
  color: #ff7900;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 950;
  line-height: 0.95;
  text-shadow: 0 10px 24px rgba(255, 121, 0, 0.14);
}

.pod-summary-copy {
  margin: 12px 0 0;
  color: #17375d;
  font-size: 16px;
  font-weight: 850;
}

.pod-summary-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ff7900;
  font-size: 42px;
  line-height: 1;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(#ff7900 0deg, #ff7900 var(--pod-angle, 0deg), #f3dfcc var(--pod-angle, 0deg), #f3dfcc 360deg) border-box;
  border: 10px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(151, 83, 13, 0.1), 0 14px 28px rgba(145, 78, 12, 0.12);
}

.pod-summary-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.pod-progress-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #e66c00;
  font-size: 14px;
  font-weight: 950;
}

.pod-progress-track {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    #e5ecf3 0,
    #e5ecf3 28px,
    #f2f5f8 28px,
    #f2f5f8 34px
  );
  box-shadow: inset 0 1px 2px rgba(145, 78, 12, 0.12);
}

.pod-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a00 0%, #ffbf64 100%);
  box-shadow: 0 6px 14px rgba(255, 121, 0, 0.22);
}

.pod-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pod-status-row small {
  color: #506987;
  font-size: 13px;
  font-weight: 850;
}

.pod-status-badge {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff1df;
  color: #d76700;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pod-status-badge.percent-band-red {
  color: #c72929 !important;
  background: #ffeded;
}

.pod-status-badge.percent-band-yellow,
.pod-status-badge.percent-band-blue {
  color: #c46b00 !important;
  background: #fff2d8;
}

.pod-status-badge.percent-band-green {
  color: #13864d !important;
  background: #e8f8ef;
}

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

.pod-mini-kpi {
  border: 1px solid #efd8ba;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 12px;
  box-shadow: 0 10px 22px rgba(145, 78, 12, 0.06);
}

.pod-mini-kpi span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #664d32;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pod-mini-kpi span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #1d75c7;
}

.pod-mini-kpi.used span::before {
  background: #189b5e;
}

.pod-mini-kpi.pending span::before {
  background: #ff4545;
}

.pod-mini-kpi strong {
  display: block;
  margin-top: 8px;
  color: #102844;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.pod-mini-kpi.planned strong {
  color: #1d75c7;
}

.pod-mini-kpi.used strong {
  color: #159b5b;
}

.pod-mini-kpi.pending strong {
  color: #d72f35;
}

.pod-mini-kpi small {
  display: block;
  margin-top: 5px;
  color: #6b563d;
  font-size: 12px;
  font-weight: 800;
}

.pod-day-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border-color: #d6e6f8;
}

.pod-day-note strong {
  color: #0d4d9a;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pod-day-note span {
  color: #324f70;
  font-size: 13px;
  font-weight: 750;
}

.pod-kpi-aside {
  border: 1px solid #d8e6f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
  padding: 20px 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
}

.pod-kpi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pod-kpi-chip {
  border: 1px solid #c5d9f0;
  border-radius: 999px;
  background: #ffffff;
  color: #214f84;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
}

.pod-kpi-percent {
  margin: 0;
  color: #0f3f73;
  font-size: clamp(72px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 3px 14px rgba(17, 46, 85, 0.18);
}

.kpi-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
  background: #fff;
  border: 1px solid #c5d9f0;
  box-shadow: 0 8px 16px rgba(18, 58, 99, 0.12);
}

.kpi-icon-task {
  color: #1d75c7;
}

.kpi-icon-vehicle {
  color: #12804d;
}

.kpi-icon-ticket {
  color: #1d75c7;
}

.ticket-executive-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 0%, rgba(32, 184, 142, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fffc 100%);
}

.ticket-executive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(190, 225, 215, 0.78);
}

.ticket-title-block,
.ticket-focused-period {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticket-title-icon,
.ticket-focused-period {
  border: 1px solid #cfeee5;
  background: linear-gradient(180deg, #ffffff 0%, #effbf7 100%);
  box-shadow: 0 8px 18px rgba(20, 120, 95, 0.08);
}

.ticket-title-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #119878;
  font-size: 27px;
  line-height: 1;
}

.ticket-title-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ticket-title-block h4 {
  margin: 0;
  color: #102844;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticket-title-block p {
  margin: 4px 0 0;
  color: #42627f;
  font-size: 13px;
  font-weight: 800;
}

.ticket-focused-period {
  border-radius: 16px;
  padding: 10px 18px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
}

.ticket-focused-period span {
  color: #52706a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-focused-period strong {
  color: #102844;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.ticket-chart-panel {
  display: grid;
  gap: 16px;
}

.ticket-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 18px;
  align-items: stretch;
}

.ticket-history-panel,
.ticket-executive-summary,
.ticket-period-note {
  border: 1px solid #cdece3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(15, 105, 80, 0.07);
}

.ticket-history-panel {
  padding: 16px 16px 12px;
}

.ticket-hour-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ticket-period-tabs {
  max-width: 320px;
  margin-bottom: 0;
}

.ticket-period-tabs button.active {
  background: #12a681;
}

.ticket-display-select {
  min-width: 168px;
  display: grid;
  gap: 6px;
  color: #496a8b;
  font-size: 12px;
  font-weight: 900;
}

.ticket-display-select span {
  text-align: center;
}

.ticket-display-select select {
  min-height: 42px;
  border: 1px solid #c9dced;
  border-radius: 14px;
  background: #ffffff;
  color: #173760;
  font-weight: 900;
  padding: 0 34px 0 14px;
}

.ticket-hour-legend {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 10px;
  color: #18375d;
  font-size: 13px;
  font-weight: 900;
}

.ticket-hour-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticket-hour-legend i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #18b99a;
}

.ticket-hour-legend .line i {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #0f9b86;
}

.ticket-bars-layout {
  min-height: 280px;
}

.ticket-hour-bars-layout {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: end;
  padding-top: 8px;
}

.ticket-y-axis-right {
  color: #6381a6;
  text-align: right;
}

.ticket-y-axis-right.axis-disabled {
  opacity: 0;
}

.ticket-hour-plot {
  position: relative;
  width: max-content;
  padding-top: 24px;
  background:
    linear-gradient(to bottom, rgba(81, 112, 144, 0.09) 1px, transparent 1px) 0 24px / 100% 42px no-repeat,
    linear-gradient(to bottom, rgba(81, 112, 144, 0.065) 1px, transparent 1px) 0 66px / 100% 42px repeat-y;
  border-radius: 18px;
}

.ticket-cumulative-line {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 24px;
  width: 100%;
  height: 220px;
  pointer-events: none;
  overflow: visible;
}

.ticket-cumulative-line polyline {
  fill: none;
  stroke: #0f9b86;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 6px rgba(15, 159, 137, 0.16));
}

.ticket-line-points-layer {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 24px;
  height: 220px;
  pointer-events: none;
}

.ticket-line-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #0f9b86;
  box-shadow: 0 3px 5px rgba(15, 159, 137, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.ticket-line-point::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 12;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, -6px);
  min-width: max-content;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.24);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ticket-line-point:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ticket-executive-summary {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 86% 14%, rgba(31, 190, 145, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #effcf8 100%);
}

.ticket-summary-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.ticket-summary-eyebrow {
  margin: 0 0 8px;
  color: #118166;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticket-main-number {
  margin: 0;
  color: #119878;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 950;
  line-height: 0.92;
  text-shadow: 0 12px 24px rgba(17, 152, 120, 0.15);
}

.ticket-summary-copy {
  margin: 12px 0 0;
  color: #18375d;
  font-size: 16px;
  font-weight: 850;
}

.ticket-summary-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #119878;
  font-size: 40px;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e8fbf5 100%);
  border: 1px solid #c8eee3;
  box-shadow: inset 0 0 0 10px rgba(20, 169, 133, 0.1), 0 14px 28px rgba(15, 105, 80, 0.12);
}

.ticket-summary-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

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

.ticket-mini-kpi {
  border: 1px solid #cfeee5;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 12px;
  box-shadow: 0 10px 22px rgba(15, 105, 80, 0.06);
}

.ticket-mini-kpi span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e5d73;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticket-mini-kpi span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #18a884;
}

.ticket-mini-kpi.trips span::before,
.ticket-mini-kpi.average span::before {
  background: #18b99a;
}

.ticket-mini-kpi.best span::before {
  background: #0f7d68;
}

.ticket-mini-kpi strong {
  display: block;
  margin-top: 8px;
  color: #102844;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.ticket-mini-kpi.total strong {
  color: #119878;
}

.ticket-mini-kpi small {
  display: block;
  margin-top: 5px;
  color: #54706c;
  font-size: 12px;
  font-weight: 800;
}

.ticket-period-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbf8 100%);
}

.ticket-period-note strong {
  color: #087b61;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-period-note span {
  color: #355b70;
  font-size: 13px;
  font-weight: 750;
}

.coverage-executive-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(65, 150, 241, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.coverage-executive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(188, 207, 230, 0.7);
}

.coverage-title-block,
.coverage-focused-day {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coverage-title-icon,
.coverage-focused-day {
  border: 1px solid #cfe0f4;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 8px 18px rgba(19, 60, 104, 0.08);
}

.coverage-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.coverage-title-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.coverage-title-block h4 {
  margin: 0;
  color: #102844;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.coverage-focused-day {
  border-radius: 14px;
  padding: 9px 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 160px;
}

.coverage-focused-day span {
  color: #557194;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coverage-focused-day strong {
  color: #102844;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.coverage-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 18px;
  align-items: stretch;
}

.coverage-history-panel,
.coverage-executive-summary {
  border: 1px solid #d9e7f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(17, 56, 96, 0.07);
}

.coverage-history-panel {
  padding: 16px 16px 12px;
}

.coverage-period-tabs {
  max-width: 320px;
  margin-bottom: 14px;
}

.coverage-bars-layout {
  min-height: 280px;
}

.coverage-executive-summary {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(24, 144, 255, 0.09), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.coverage-summary-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.coverage-summary-eyebrow {
  margin: 0 0 8px;
  color: #1f3857;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coverage-main-percent {
  margin: 0;
  color: #159b5b;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 950;
  line-height: 0.95;
  text-shadow: 0 10px 24px rgba(21, 155, 91, 0.14);
}

.coverage-summary-copy {
  margin: 12px 0 0;
  color: #17375d;
  font-size: 16px;
  font-weight: 850;
}

.coverage-summary-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(#22b76a 0deg, #22b76a var(--coverage-angle, 0deg), #dce6f2 var(--coverage-angle, 0deg), #dce6f2 360deg) border-box;
  border: 10px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(40, 89, 143, 0.1), 0 14px 28px rgba(17, 56, 96, 0.12);
}

.coverage-summary-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.coverage-progress-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #159b5b;
  font-size: 14px;
  font-weight: 950;
}

.coverage-progress-track {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    #dbe5f0 0,
    #dbe5f0 28px,
    #eef3f8 28px,
    #eef3f8 34px
  );
  box-shadow: inset 0 1px 2px rgba(17, 56, 96, 0.12);
}

.coverage-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ca45f 0%, #39d487 100%);
  box-shadow: 0 6px 14px rgba(22, 168, 96, 0.22);
}

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

.coverage-mini-kpi {
  border: 1px solid #d5e4f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 12px;
  box-shadow: 0 10px 22px rgba(17, 56, 96, 0.06);
}

.coverage-mini-kpi span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2d4f78;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coverage-mini-kpi span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #1d75c7;
}

.coverage-mini-kpi.active span::before {
  background: #20b86c;
}

.coverage-mini-kpi.inactive span::before {
  background: #ef3a3a;
}

.coverage-mini-kpi strong {
  display: block;
  margin-top: 8px;
  color: #102844;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.coverage-mini-kpi.total strong {
  color: #1d75c7;
}

.coverage-mini-kpi.active strong {
  color: #159b5b;
}

.coverage-mini-kpi.inactive strong {
  color: #d72f35;
}

.coverage-mini-kpi small {
  display: block;
  margin-top: 5px;
  color: #466485;
  font-size: 12px;
  font-weight: 800;
}

.ticket-kpi-aside {
  background: linear-gradient(180deg, #f9fcff 0%, #eef5ff 100%);
}

.ticket-kpi-aside .pod-kpi-percent {
  font-size: clamp(44px, 4.5vw, 66px);
}

.percent-band-red {
  color: #d74a4a !important;
}

.percent-band-yellow {
  color: #c28a00 !important;
}

.percent-band-blue {
  color: #1d75c7 !important;
}

.percent-band-green {
  color: #1a9a60 !important;
}

.sales-kpi-aside {
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.sales-kpi-total {
  font-size: clamp(44px, 4.8vw, 70px);
  line-height: 1;
  word-break: break-word;
}

.sales-hour-card {
  overflow: hidden;
  border-color: rgba(16, 185, 129, 0.14);
  background:
    radial-gradient(circle at 12% 4%, rgba(16, 185, 129, 0.08), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(20, 184, 166, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
  animation: premiumCardIn 260ms ease-out both;
}

.sales-hour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(203, 224, 235, 0.72);
}

.sales-hour-title,
.sales-hour-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sales-hour-title h4 {
  margin: 0;
  color: #102844;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sales-hour-title p {
  margin: 5px 0 0;
  color: #385a7e;
  font-size: 15px;
  font-weight: 750;
}

.sales-hour-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 7px);
  gap: 5px;
  justify-content: center;
  align-items: end;
  padding: 13px;
  background: linear-gradient(180deg, #ecfdf7 0%, #dffaf1 100%);
  border: 1px solid #c8f1e4;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.16);
}

.sales-hour-icon span {
  display: block;
  width: 7px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.sales-hour-icon span:nth-child(1) { height: 14px; }
.sales-hour-icon span:nth-child(2) { height: 22px; }
.sales-hour-icon span:nth-child(3) { height: 30px; }

.sales-hour-period,
.sales-export-btn {
  min-height: 54px;
  border: 1px solid #d6e4ee;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(15, 74, 111, 0.06);
}

.sales-hour-period {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 10px 18px;
}

.sales-hour-period span {
  color: #557194;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-hour-period strong {
  color: #102844;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.sales-export-btn {
  padding: 0 18px;
  color: #0f7d68;
  font-size: 13px;
  font-weight: 950;
  cursor: not-allowed;
  opacity: 0.72;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sales-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 74, 111, 0.1);
}

.sales-export-btn:active {
  transform: scale(0.98);
}

.sales-hour-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 0;
  margin-top: 18px;
  border: 1px solid #d2eee6;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(7, 89, 72, 0.07);
}

.sales-hour-chart-panel,
.sales-hour-summary {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sales-hour-chart-panel {
  padding: 24px 26px 22px;
}

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

.sales-hour-tabs {
  max-width: 330px;
  margin-bottom: 0;
}

.sales-hour-tabs button.active {
  background: #10b981;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.2);
}

.sales-hour-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  color: #284b70;
  font-size: 12px;
  font-weight: 850;
}

.sales-display-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d6e4ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #6b82a2;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 74, 111, 0.06);
}

.sales-display-select select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #18375d;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.sales-hour-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sales-hour-legend i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: #10b981;
}

.sales-hour-legend .line i {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #0f9f89;
}

.sales-hour-bars-layout {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: end;
  padding-top: 8px;
}

.sales-y-axis-right {
  text-align: right;
}

.sales-y-axis-right.axis-disabled {
  opacity: 0;
}

.sales-hour-plot {
  position: relative;
  width: max-content;
  padding-top: 24px;
  background:
    linear-gradient(to bottom, rgba(81, 112, 144, 0.09) 1px, transparent 1px) 0 24px / 100% 42px no-repeat,
    linear-gradient(to bottom, rgba(81, 112, 144, 0.065) 1px, transparent 1px) 0 66px / 100% 42px repeat-y;
  border-radius: 18px;
}

.sales-hour-bars {
  position: relative;
  z-index: 2;
}

.sales-hour-bars.hour-bars-24 {
  grid-auto-columns: 30px;
  gap: 4px;
}

.sales-hour-track {
  width: 22px;
  margin-inline: auto;
  background: transparent;
  border: 0;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sales-hour-bars.hour-bars-24 .sales-hour-track {
  width: 16px;
}

.sales-hour-fill {
  border-radius: 11px 11px 5px 5px;
  background: linear-gradient(180deg, #14b8a6 0%, #10b981 58%, #047857 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 16px rgba(16, 185, 129, 0.14);
  transition: height 320ms ease, filter 180ms ease;
}

.sales-hour-bar-item {
  cursor: default;
  position: relative;
  isolation: isolate;
}

.sales-bar-value {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(var(--bar-height, 0%) + 8px);
  transform: translateX(-50%);
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.sales-hour-bars.hour-bars-24 .sales-bar-value {
  bottom: calc(var(--bar-height, 0%) + 6px);
  font-size: 10px;
}

.sales-hour-bars.hour-bars-24 .sales-hour-bar-item small {
  font-size: 9px;
}

.hide-sales-bars .sales-hour-fill {
  opacity: 0;
}

.hide-sales-bars .sales-bar-value {
  display: none;
}

.hide-sales-bars .sales-hour-track {
  background: transparent;
}

.disable-bar-hover .sales-hour-bar-item::after,
.disable-bar-hover .sales-hour-bar-item::before {
  display: none;
}

.disable-bar-hover .sales-hour-bar-item:hover .sales-hour-track {
  transform: none;
}

.disable-bar-hover .sales-hour-bar-item:hover .sales-hour-fill {
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 16px rgba(16, 185, 129, 0.14);
}

.sales-hour-bar-item:hover .sales-hour-track {
  transform: translateY(-3px);
}

.sales-hour-bar-item:hover .sales-hour-fill {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 12px 22px rgba(16, 185, 129, 0.24);
}

.sales-hour-bar-item::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  min-width: max-content;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sales-hour-bar-item::before {
  content: "";
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: rgba(6, 78, 59, 0.94);
  transform: translate(-50%, 6px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sales-hour-bar-item:hover::after,
.sales-hour-bar-item:hover::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(0deg);
}

.sales-hour-bar-item:hover::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.sales-cumulative-line {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 24px;
  width: 100%;
  height: 220px;
  pointer-events: none;
  overflow: visible;
}

.sales-cumulative-line polyline {
  fill: none;
  stroke: #0f9f89;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 6px rgba(15, 159, 137, 0.16));
}

.sales-line-points-layer {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 24px;
  height: 220px;
  pointer-events: none;
}

.sales-line-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #0f9f89;
  box-shadow: 0 3px 5px rgba(15, 159, 137, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.sales-line-point::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 12;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, -6px);
  min-width: max-content;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.24);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sales-line-point:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sales-hour-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid #d3ece5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf8 100%);
  color: #17375d;
  font-size: 13px;
  font-weight: 850;
}

.sales-hour-insight-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #087b61;
  background: #e2fbf2;
  font-weight: 950;
}

.sales-hour-summary {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: 32px 28px;
  border-left: 1px solid #d2eee6;
  background:
    radial-gradient(circle at 76% 8%, rgba(16, 185, 129, 0.12), transparent 32%),
    linear-gradient(180deg, #fffffb 0%, #f2fbf7 100%);
}

.sales-summary-eyebrow {
  margin: 0 0 14px;
  color: #087b61;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sales-summary-total {
  display: block;
  color: #047857;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 28px rgba(4, 120, 87, 0.13);
}

.sales-summary-copy {
  display: block;
  margin-top: 14px;
  color: #18375d;
  font-size: 15px;
  font-weight: 850;
}

.sales-summary-metrics {
  display: grid;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 55, 93, 0.09);
}

.sales-summary-metrics article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sales-metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #059669;
  background: linear-gradient(180deg, #e7fbf4 0%, #d8f7ee 100%);
  box-shadow: inset 0 0 0 8px rgba(16, 185, 129, 0.08), 0 10px 20px rgba(16, 185, 129, 0.08);
}

.sales-metric-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sales-summary-metrics span {
  display: block;
  margin-bottom: 4px;
  color: #45627d;
  font-size: 13px;
  font-weight: 850;
}

.sales-summary-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: #047857;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.05;
}

.sales-summary-metrics small {
  display: block;
  color: #18375d;
  font-size: 13px;
  font-weight: 800;
}

.sales-average-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 18px;
  align-items: end;
  margin-top: 2px;
  padding: 18px 20px;
  border: 1px solid rgba(24, 55, 93, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 28px rgba(7, 89, 72, 0.06);
}

.sales-average-card span {
  display: block;
  margin-bottom: 10px;
  color: #66758e;
  font-size: 12px;
  font-weight: 750;
}

.sales-average-card strong {
  color: #059669;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.sales-average-spark {
  width: 92px;
  height: 34px;
}

.sales-average-spark polyline {
  fill: none;
  stroke: #10a987;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes premiumCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawSalesLine {
  from {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    opacity: 0;
  }
  to {
    stroke-dasharray: 180;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.coverage-track,
.pod-track {
  background: #edf4fb;
}

.stacked-progress {
  display: flex;
  width: 100%;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #cfdef2;
  background: #edf4fb;
}

.stacked-progress-active,
.stacked-progress-inactive {
  display: block;
  height: 100%;
}

.stacked-progress-active {
  background: linear-gradient(90deg, #35c979 0%, #1aa660 100%);
}

.stacked-progress-inactive {
  background: linear-gradient(90deg, #d8e3f1 0%, #c2d2e8 100%);
}

.stacked-progress-active.pod {
  background: linear-gradient(90deg, #3d9cf3 0%, #1f6fbe 100%);
}

.stacked-progress-inactive.pod {
  background: linear-gradient(90deg, #dbe8f8 0%, #c2d5ef 100%);
}

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  border: 1px solid #dae6f5;
  border-radius: 999px;
  background: #f8fbff;
  color: #345a87;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.legend-item.active {
  border-color: #b8e6cd;
  color: #117d45;
}

.legend-item.inactive {
  border-color: #d3deed;
  color: #546c8e;
}

.coverage-percent-large {
  margin: 0;
  color: #123a63;
  font-size: clamp(28px, 2.5vw, 44px);
  font-weight: 900;
  line-height: 1;
}

.detail-toggle-btn {
  justify-self: start;
  border: 1px solid #c8d9ee;
  border-radius: 10px;
  background: #f1f6fc;
  color: #1e4f82;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.coverage-detail-list {
  border: 1px solid #d9e6f6;
  border-radius: 10px;
  overflow: auto;
  max-height: 260px;
  background: #fff;
}

.coverage-detail-list table {
  width: 100%;
  border-collapse: collapse;
}

.coverage-detail-list th,
.coverage-detail-list td {
  padding: 8px 10px;
  border-bottom: 1px solid #ecf2fb;
  font-size: 12px;
  text-align: left;
}

.coverage-detail-list th {
  background: #f7fbff;
  color: #456993;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rank-bars-panel {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  gap: 4px;
}

.rank-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.rank-row-head span {
  color: #294c76;
  font-size: 12px;
  font-weight: 800;
}

.rank-row-head strong {
  color: #123a63;
  font-size: 14px;
  font-weight: 900;
  text-shadow: none;
}

.rank-row-track {
  height: 11px;
  border-radius: 999px;
  background: #e7eff9;
  overflow: hidden;
}

.rank-row-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.rank-row-fill.route {
  background: linear-gradient(90deg, #5db0ff 0%, #1f7dcb 100%);
}

.rank-row-fill.vehicle {
  background: linear-gradient(90deg, #8d7cf8 0%, #5f50d8 100%);
}

.plus-hitos-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.3fr) minmax(260px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.plus-hito-card {
  display: grid;
  gap: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(102, 154, 220, 0.1), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid rgba(196, 171, 113, 0.36);
}

.plus-hito-card .plus-hito-content {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.plus-hito-card-no-title .plus-hito-content {
  padding: 0;
}

.plus-hito-side .plus-hito-content article {
  min-height: 122px;
}

.plus-hito-center .plus-hito-content {
  padding: 14px 10px 8px;
}

.trip-ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(196, 171, 113, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.trip-ops-item-full {
  grid-column: 1 / -1;
  justify-items: center;
  text-align: center;
}

.trip-ops-item {
  justify-items: center;
  text-align: center;
  border: 0;
  border-right: 1px solid rgba(196, 171, 113, 0.28);
  border-bottom: 1px solid rgba(196, 171, 113, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 14px 10px;
}

.trip-ops-grid .trip-ops-item:nth-child(2) {
  border-right: 0;
}

.trip-ops-grid .trip-ops-item-full {
  border-right: 0;
  border-bottom: 0;
}

.trip-ops-foot {
  color: #178e50;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.panel.plus-hito-card > header {
  background: #f7fbff;
  border-bottom: 1px solid rgba(196, 171, 113, 0.32);
}

.plus-hito-card h4 {
  text-align: center;
  color: #26476f;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plus-hito-card-rate h4 {
  color: #3b5e8c;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.plus-hito-content article {
  border: 1px solid rgba(196, 171, 113, 0.26);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.plus-hito-content span {
  color: #46658f;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.plus-hito-content strong {
  color: #143a63;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.plus-hito-content small {
  color: #5e789e;
  font-size: 12px;
  font-weight: 700;
}

.plus-am-pm {
  gap: 8px;
}

.plus-am-pm-plus {
  grid-template-columns: 102px 1fr 102px;
  align-items: center;
  gap: 8px;
}

.am-pm-side {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.am-pm-side strong {
  font-size: 28px;
}

.am-pm-side.am strong,
.am-pm-side.am .am-pm-label {
  color: #45d5c4;
}

.am-pm-side.pm strong,
.am-pm-side.pm .am-pm-label {
  color: #ff4666;
}

.am-pm-label {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.am-pm-donut-wrap {
  display: grid;
  place-items: center;
}

.am-pm-donut {
  --am-color: #45d5c4;
  --pm-color: #ff4666;
  width: 182px;
  height: 182px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--am-color) 0 var(--am-share),
    var(--pm-color) var(--am-share) 100%
  );
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(196, 171, 113, 0.25), 0 10px 24px rgba(0, 0, 0, 0.42);
}

.am-pm-donut-core {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #182a44 0%, #0b1422 72%);
  border: 1px solid rgba(184, 203, 232, 0.14);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.48);
}

.am-pm-foot {
  margin: 4px 0 8px;
  color: #58769f;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
}

.report-pager {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pager-btn {
  min-width: 170px;
  border: 1px solid #c7d5ea;
  background: linear-gradient(180deg, #f0f5fc 0%, #dfe8f7 100%);
  color: #213a60;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.pager-btn-primary {
  border-color: #a78f48;
  background: linear-gradient(180deg, #e7cf89 0%, #c8aa56 100%);
  color: #35260a;
}

.today-chip {
  border: 1px solid #bdd5ee;
  background: #fff;
  color: #1e5f9d;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
}

.header-filter {
  display: grid;
  gap: 4px;
}

.header-filter span {
  color: #5a6f90;
  font-size: 11px;
  font-weight: 800;
}

.header-filter input,
.header-filter select {
  height: 34px;
  border: 1px solid #cad9ec;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #243b5a;
  font-size: 13px;
  font-weight: 700;
}

.report-state {
  margin: -2px 0 2px;
  color: #9eb0cb;
  font-size: 13px;
  font-weight: 700;
}

.report-state.error {
  color: #b42318;
}

.kpi-groups-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.3fr) minmax(280px, 0.95fr);
  gap: 10px;
  align-items: start;
}

.kpi-groups-grid > .kpi-group:nth-child(1) {
  order: 3;
}

.kpi-groups-grid > .kpi-group:nth-child(2) {
  order: 1;
}

.kpi-groups-grid > .kpi-group:nth-child(3) {
  order: 2;
}

.kpi-group {
  border: 1px solid #c7cdd6;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31, 64, 106, 0.06);
  overflow: hidden;
}

.kpi-group-title {
  margin: 0;
  padding: 9px 10px;
  text-align: center;
  color: #214469;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #c7cdd6;
  background: transparent;
}

.kpi-group-body {
  background: #ffffff;
}

.coverage-kpi {
  width: 100%;
  display: grid;
  gap: 12px;
}

.coverage-progress-wrap {
  display: grid;
  gap: 6px;
}

.coverage-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #dce9f8;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(196, 171, 113, 0.22);
}

.coverage-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35c979 0%, #1aa660 100%);
}

.coverage-percent {
  color: #0f8a4a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none !important;
}

.coverage-kpi-data {
  display: grid;
  gap: 4px;
  text-align: left;
}

.coverage-kpi-data-full {
  gap: 6px;
}

.coverage-kpi-data strong {
  text-align: left;
}

.coverage-history {
  border-top: 1px solid rgba(196, 171, 113, 0.26);
}

.coverage-history header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(196, 171, 113, 0.2);
  background: rgba(6, 14, 25, 0.86);
}

.coverage-history h6 {
  margin: 0;
  color: #d8bf84;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Times New Roman', serif;
}

.coverage-history table {
  width: 100%;
  border-collapse: collapse;
}

.coverage-history th,
.coverage-history td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(196, 171, 113, 0.14);
  font-size: 12px;
}

.coverage-history th {
  color: #4a6893;
  background: #f6faff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coverage-history td {
  color: #1f3f65;
}

.operation-breakdown {
  border-top: 1px solid rgba(196, 171, 113, 0.26);
}

.operation-breakdown header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(196, 171, 113, 0.2);
  background: rgba(6, 14, 25, 0.86);
}

.operation-breakdown h6 {
  margin: 0;
  color: #d8bf84;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Cinzel', 'Times New Roman', serif;
}

.operation-breakdown table {
  width: 100%;
  border-collapse: collapse;
}

.operation-breakdown th,
.operation-breakdown td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(196, 171, 113, 0.14);
  font-size: 12px;
}

.operation-breakdown th {
  color: #c6d4ea;
  background: rgba(8, 18, 31, 0.9);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.operation-breakdown td {
  color: #e8f0ff;
}

.operation-breakdown td:nth-child(2) {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-group-grid {
  display: grid;
  border-top: 1px solid #d3d8e0;
}

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

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

.kpi-cell {
  padding: 14px 10px;
  border-right: 1px solid #d3d8e0;
  border-bottom: 1px solid #d3d8e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 136px;
}

.kpi-group-grid .kpi-cell:last-child {
  border-right: 0;
}

.kpi-cell-wide {
  grid-column: 1 / -1;
}

.kpi-group-production .kpi-cell {
  min-height: 124px;
  padding: 10px 8px;
}

.kpi-group-production .kpi-title {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.kpi-group-production .kpi-value-money {
  font-size: clamp(24px, 2vw, 36px);
  letter-spacing: -0.015em;
}

.kpi-group-production .kpi-value-key {
  font-size: clamp(20px, 1.55vw, 30px);
  letter-spacing: 0;
  text-shadow: none;
}

.kpi-cell strong {
  color: #123a63;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.kpi-title {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #2e5685;
  font-weight: 800;
  line-height: 1.1;
  font-family: 'Cinzel', 'Times New Roman', serif;
}

.kpi-subtitle {
  margin: 0;
  font-size: 12px;
  color: #6482a9;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-cell strong.variation-positive {
  color: #0f8a4a;
}

.kpi-cell strong.variation-negative {
  color: #c23737;
}

.kpi-cell strong.variation-negative-soft {
  color: #d67575;
}

.kpi-cell strong.variation-neutral {
  color: #123a63;
}

.kpi-cell strong.quota-excellent {
  color: #0f8a4a;
  text-shadow: 0 0 16px rgba(15, 138, 74, 0.28);
}

.kpi-cell strong.quota-on-track {
  color: #1f7fce;
}

.kpi-cell strong.quota-warning {
  color: #d18400;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.executive-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 12px;
}

.executive-alerts-list {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.executive-alert-item {
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.executive-alert-item strong {
  color: #12315d;
  font-size: 13px;
  font-weight: 800;
}

.executive-alert-item p {
  margin: 0;
  color: #4f6789;
  font-size: 13px;
  line-height: 1.3;
}

.executive-alert-item.alert-critical {
  border-color: #f3b7b7;
  background: #fff6f6;
}

.executive-alert-item.alert-warning {
  border-color: #f2d8aa;
  background: #fffbf3;
}

.executive-alert-item.alert-info {
  border-color: #cfe0f6;
  background: #f4f9ff;
}

.health-summary-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.health-chip {
  border-radius: 10px;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  padding: 10px 8px;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.health-chip span {
  color: #6a7f9d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.health-chip strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: #112c52;
}

.health-green {
  border-color: #b9e5ce;
  background: #f2fcf7;
}

.health-yellow {
  border-color: #f5dfaf;
  background: #fffaf0;
}

.health-red {
  border-color: #efc0c0;
  background: #fff6f6;
}

.health-caption {
  margin: 0;
  padding: 0 12px 12px;
  color: #5e7699;
  font-size: 12px;
  font-weight: 700;
}

.executive-actions-list {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.executive-actions-list button {
  width: 100%;
  border: 1px solid #c7d5ea;
  background: #edf3fb;
  color: #17385f;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.executive-actions-list button:hover {
  background: #e2ecf9;
  border-color: #a9bfde;
}

.trend-panel {
  display: grid;
  gap: 12px;
}

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

.trend-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.trend-period-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #cad9ec;
  background: #f1f6fc;
}

.trend-period-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #496587;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.trend-period-tabs button.active {
  background: #123a66;
  color: #fff;
}

.trend-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #cad9ec;
  background: #eaf2fb;
}

.trend-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #496587;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.trend-tabs button.active {
  background: #1d75c7;
  color: #fff;
}

.trend-tabs button.disabled,
.trend-tabs button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.trend-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px;
}

.trend-summary-card {
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.trend-summary-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a7f9d;
  font-weight: 700;
}

.trend-summary-card strong {
  color: #112c52;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.trend-summary-leader {
  color: #4f6789;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.passenger-counter-panel {
  margin: 0 12px;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
  display: grid;
  gap: 8px;
}

.counter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a7f9d;
  font-weight: 700;
}

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

.counter-dot {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: #e7eff9;
  border: 1px solid #d4e1f2;
}

.counter-dot.filled {
  background: linear-gradient(180deg, #6ca7eb 0%, #2d74c5 100%);
  border-color: #2d74c5;
}

.trend-chart-wrap {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 0 12px 12px;
}

.trend-y-axis {
  height: 260px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
}

.trend-y-axis span {
  color: #7387a5;
  font-size: 12px;
  font-weight: 700;
}

.trend-canvas {
  border: 1px solid #e7eef8;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.86) 0%, rgba(251, 253, 255, 0.95) 100%),
    repeating-linear-gradient(
      to top,
      #f6faff 0,
      #f6faff 52px,
      #edf4fd 52px,
      #edf4fd 53px
    );
  padding: 8px 8px 10px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.trend-svg {
  width: 100%;
  height: 260px;
}

.trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line-current {
  stroke: #1d75c7;
}

.trend-line-previous {
  stroke: #9cb8d8;
  stroke-dasharray: 6 5;
}

.trend-x-axis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18px, 1fr);
  gap: 2px;
}

.trend-x-axis span {
  color: #4f6789;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.tables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.sales-detail-block {
  border: 1px solid #e2ebf7;
  border-radius: 10px;
  overflow: hidden;
  background: #fbfdff;
}

.sales-detail-block h5 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e7eef8;
  background: #f8fbff;
  color: #253853;
  font-size: 20px;
  font-family: 'Lilita One', 'Poppins', sans-serif;
}

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

.avg-metric-card h4 {
  font-size: 24px;
}

.avg-metric-body {
  padding: 14px 16px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.avg-metric-body strong {
  color: #1b2c46;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
}

.avg-hover-hint {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  color: #4b6487;
  font-size: 12px;
  font-weight: 800;
  transition: opacity 0.15s ease, max-height 0.2s ease;
}

.avg-metric-card:hover .avg-hover-hint,
.avg-metric-card:focus-within .avg-hover-hint {
  opacity: 1;
  max-height: 36px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(17, 43, 76, 0.1);
  overflow: hidden;
}

.panel header {
  padding: 10px 12px;
  border-bottom: 1px solid #e7eef8;
  background: #f8fbff;
}

.panel h4 {
  margin: 0;
  color: #253853;
  font-size: 30px;
  font-family: 'Lilita One', 'Poppins', sans-serif;
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf3fb;
  font-size: 14px;
}

th {
  color: #5f718d;
  text-align: left;
  background: #f9fcff;
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

.detail-clickable-row {
  cursor: pointer;
}

.detail-clickable-row:hover {
  background: #eef6ff;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 23, 38, 0.48);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 16px;
}

.overlay-card {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #c8dbf1;
  background: #fff;
  box-shadow: 0 18px 38px rgba(10, 23, 41, 0.25);
}

.overlay-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3eefb;
}

.overlay-card h5 {
  margin: 0;
  font-size: 24px;
  font-family: 'Lilita One', 'Poppins', sans-serif;
  color: #223656;
}

.overlay-card button {
  border: 1px solid #cad9ec;
  background: #f8fbff;
  color: #1f4e83;
  font-weight: 800;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
}

.overlay-body {
  padding: 14px 16px;
  color: #2c3f5b;
}

.overlay-body p {
  margin: 0 0 10px;
  font-size: 16px;
}

.coverage-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.coverage-modal-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #cad9ec;
  background: #f1f6fc;
}

.coverage-modal-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #496587;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.coverage-modal-tabs button.active {
  background: #123a66;
  color: #fff;
}

.coverage-modal-date {
  height: 30px;
  border: 1px solid #cad9ec;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #243b5a;
  font-size: 12px;
  font-weight: 700;
  width: 138px;
}

.coverage-modal-caption {
  margin: 0 0 10px;
  color: #5e7699;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coverage-modal-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  background: #f8fbff;
}

.coverage-progress-wrap-modal .coverage-percent {
  justify-self: end;
}

.progress-block {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #2c3f5b;
  font-size: 14px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #d8e5f6;
  background: #eef5ff;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #22a06b 100%);
}

.progress-fill-top {
  background: linear-gradient(90deg, #22a06b 0%, #1d75c7 100%);
}

.trips-overlay-card {
  width: min(980px, 100%);
}

.trip-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.trip-detail-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.trip-detail-table td,
.trip-detail-table th {
  white-space: nowrap;
}

.trip-detail-table .empty-row {
  text-align: center;
  color: #5f718d;
  font-style: italic;
}

.vehicles-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.vehicles-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3eefb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f9fcff;
}

.vehicles-list strong {
  color: #223656;
}

.vehicles-list span {
  color: #5f718d;
  font-size: 13px;
}

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

.bus-card {
  border: 1px solid #e3eefb;
  border-radius: 10px;
  background: #f9fcff;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.bus-passenger-hero {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e7f3ff 0%, #f4f9ff 100%);
  border: 1px solid #d4e7fb;
}

.bus-passenger-value {
  color: #0f2e4f;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.bus-passenger-label {
  color: #24578d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bus-card h6 {
  margin: 0;
  color: #223656;
  font-size: 16px;
  font-family: 'Lilita One', 'Poppins', sans-serif;
}

.bus-meta {
  margin: 0;
  color: #3d5576;
  font-size: 14px;
}

.quota-overlay-card {
  width: min(560px, 100%);
}

.quota-overlay-body {
  display: grid;
  gap: 12px;
}

.quota-modal-input {
  display: grid;
  gap: 6px;
}

.quota-modal-input span {
  color: #5a6f90;
  font-size: 12px;
  font-weight: 800;
}

.quota-modal-input input {
  height: 40px;
  border: 1px solid #cad9ec;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #243b5a;
  font-size: 14px;
  font-weight: 700;
}

.quota-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quota-modal-actions .primary {
  border-color: #1d75c7;
  background: #1d75c7;
  color: #fff;
}

.empty-state {
  margin: 0;
  color: #5f718d;
  text-align: center;
  font-style: italic;
}

@media (max-width: 1200px) {
  .priority-kpi-grid,
  .insight-grid-hero,
  .insight-grid-two,
  .plus-hitos-grid {
    grid-template-columns: 1fr;
  }

  .plus-am-pm-plus {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .kpi-groups-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .charts-grid,
  .tables-grid,
  .executive-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .sales-hour-summary {
    border-left: 0;
    border-top: 1px solid #d2eee6;
  }

  .sales-hour-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-hour-header,
  .sales-hour-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-hour-period,
  .sales-export-btn {
    width: 100%;
  }

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

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

  .trend-chart-wrap {
    grid-template-columns: 1fr;
  }

  .trend-y-axis {
    display: none;
  }

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

@media (max-width: 760px) {
  .analytics-board {
    padding: 12px;
  }

  .plus-hero {
    padding: 12px;
  }

  .plus-hero h2 {
    font-size: 34px;
  }

  .plus-hito-card h4 {
    font-size: 22px;
  }

  .am-pm-side strong {
    font-size: 26px;
  }

  .am-pm-label {
    font-size: 18px;
  }

  .am-pm-donut {
    width: 136px;
    height: 136px;
  }

  .am-pm-donut-core {
    width: 68px;
    height: 68px;
  }

  .trip-ops-grid {
    grid-template-columns: 1fr;
  }

  .kpi-group-title {
    font-size: 24px;
  }

  .kpi-title {
    font-size: 16px;
  }

  .plus-context-line {
    flex-direction: column;
    align-items: stretch;
  }

  .header-filter.compact {
    min-width: 0;
  }

  .header-filter.compact.filter-date input,
  .header-filter.compact.filter-company select {
    width: 100%;
  }

  .kpi-group-grid-3,
  .kpi-group-grid-2 {
    grid-template-columns: 1fr;
  }

  .kpi-cell-wide {
    grid-column: auto;
  }

  .kpi-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(196, 171, 113, 0.2);
    min-height: 128px;
  }

  .coverage-kpi {
    gap: 8px;
  }

  .coverage-kpi-data,
  .coverage-kpi-data strong {
    text-align: center;
  }

  .kpi-group-grid .kpi-cell:last-child {
    border-bottom: 0;
  }

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

  .trend-header {
    flex-direction: column;
    align-items: stretch;
  }

  .trend-toolbar {
    align-items: stretch;
  }

  .trend-tabs {
    border-radius: 12px;
  }

  .trend-tabs button {
    width: 100%;
    border-radius: 8px;
  }

  .bus-cards {
    grid-template-columns: 1fr;
  }

  .report-pager {
    width: 100%;
    flex-direction: column;
  }

  .coverage-modal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .coverage-modal-summary {
    align-items: center;
    text-align: center;
  }

  .ticket-executive-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-title-block {
    align-items: flex-start;
  }

  .ticket-focused-period {
    width: 100%;
    min-width: 0;
  }

  .ticket-summary-top {
    grid-template-columns: 1fr;
  }

  .ticket-summary-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }

  .ticket-mini-kpis {
    grid-template-columns: 1fr;
  }

  .ticket-period-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .coverage-modal-date {
    width: 100%;
  }

  .pager-btn {
    width: 100%;
  }

  .priority-meta-grid {
    grid-template-columns: 1fr;
  }

  .bars-layout {
    grid-template-columns: 1fr;
  }

  .sales-hour-bars-layout {
    grid-template-columns: 1fr;
  }

  .bars-y-axis {
    display: none;
  }

  .pod-main-layout {
    grid-template-columns: 1fr;
  }

  .coverage-executive-header {
    flex-direction: column;
    align-items: stretch;
  }

  .coverage-focused-day {
    width: 100%;
  }

  .coverage-summary-top {
    grid-template-columns: 1fr;
  }

  .coverage-mini-kpis {
    grid-template-columns: 1fr;
  }

  .coverage-summary-icon {
    width: 72px;
    height: 72px;
  }

  .pod-executive-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pod-focused-day {
    width: 100%;
  }

  .pod-summary-top {
    grid-template-columns: 1fr;
  }

  .pod-mini-kpis {
    grid-template-columns: 1fr;
  }

  .pod-summary-icon {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }

  .pod-day-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .hour-bar-track {
    height: 140px;
  }

  .am-pm-vertical-chart {
    grid-template-columns: 1fr;
  }

  .hero-chart {
    min-height: auto;
  }
}

/* feature/Planning/PlanningGeneralReport/screen/planning-report-live-detail-screen.component.css */
.liquidation-board {
  --surface: #ffffff;
  --line: #dbe5f3;
  --ink: #1d2f4d;
  --muted: #5d7498;
  --primary: #1d6fd6;

  display: grid;
  gap: 12px;
  padding: 14px;
  min-height: 100%;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(17, 40, 79, 0.06);
}

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

.liquidation-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.filters-toggle-btn {
  border: 1px solid #c7d5ea;
  background: #edf3fb;
  color: #17385f;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.filters-toggle-btn:hover {
  background: #e2ecf9;
  border-color: #a9bfde;
}

.filters-panel {
  padding: 12px;
}

.filters-grid {
  display: grid;
  grid-template-columns:
    minmax(150px, 190px)
    minmax(320px, 1.6fr)
    minmax(190px, 1fr)
    minmax(220px, 1.1fr);
  gap: 10px;
}

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

.field span {
  font-size: 12px;
  font-weight: 800;
  color: #5b7397;
}

.field input,
.field select {
  height: 36px;
  border: 1px solid #cddcf0;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 13px;
  color: #29456d;
  background: #fff;
  font-weight: 700;
}

.field-date input {
  max-width: 190px;
}

.error-text {
  margin: 8px 0 0;
  color: #bf2323;
  font-weight: 700;
  font-size: 13px;
}

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

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dbe6f5;
  box-shadow: 0 10px 22px rgba(13, 38, 76, 0.08);
}

.metric-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7f9d;
  font-weight: 700;
}

.metric-card strong {
  font-size: 46px;
  color: #112c52;
  line-height: 1;
  font-weight: 800;
}

.table-panel {
  padding: 10px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c8daf1;
  background: #f5f9ff;
  color: #23456f;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.table-toolbar small {
  color: #60779a;
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  max-height: calc(100vh - 360px);
  overflow: auto;
  border: 1px solid #e3ecf8;
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1060px;
}

th,
td {
  border-bottom: 1px solid #ecf2fb;
  padding: 9px 10px;
  text-align: left;
  color: #243f63;
  font-size: 13px;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: #47648d;
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr.priority-row td {
  font-weight: 800;
  background: linear-gradient(180deg, #eef6ff 0%, #f6fbff 100%);
  border-top: 2px solid #9ac4f5;
  border-bottom: 2px solid #9ac4f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(141, 183, 235, 0.35);
}

.col-sentido {
  min-width: 160px;
}

.col-padron {
  min-width: 140px;
}

td small {
  color: #6b829f;
  font-size: 11px;
  margin-left: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.status-closed {
  color: #0f5f3f;
  background: #e8fbf1;
  border-color: #bde7d1;
}

.status-open {
  color: #915f0a;
  background: #fff7e7;
  border-color: #f0d39d;
}

.status-none {
  color: #5e6f85;
  background: #f1f5fa;
  border-color: #d7e0ea;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #60779a;
  font-size: 14px;
  font-weight: 700;
}

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

@media (max-width: 760px) {
  .liquidation-header {
    flex-direction: column;
  }

  .filters-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    max-height: none;
  }
}

/* feature/Planning/PlanningGeneralReport/screen/planning-report-opportunities-screen.component.css */
.opportunities-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.header h2 {
  margin: 0;
}

.header p {
  margin: 6px 0 0;
  color: #4b5563;
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

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

.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filters input,
.filters select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

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

.kpi-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.kpi-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7280;
}

.kpi-card strong {
  font-size: 20px;
}

.insights-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.insights-panel h4 {
  margin: 0 0 10px;
}

.insights-panel ul {
  margin: 0;
  padding-left: 18px;
}

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

.table-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  overflow: auto;
}

.table-card h4 {
  margin: 0 0 10px;
}

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

.table-card th,
.table-card td {
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  padding: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: #6b7280;
}

.state {
  margin: 0;
}

.state.error {
  color: #b91c1c;
}

/* feature/Planning/PlanningGeneralReport/screen/planning-report-vehicle-detail-screen.component.css */
.vehicle-focus-shell {
  height: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
  display: grid;
  gap: 12px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7088aa;
}

.detail-head h2 {
  margin: 4px 0;
  font-size: 32px;
  color: #1a304f;
  font-family: 'Lilita One', 'Poppins', sans-serif;
}

.detail-head p {
  margin: 0;
  color: #60708a;
}

.back-link {
  border: 1px solid #bfd4ef;
  background: #fff;
  color: #1c6fbe;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 800;
}

.focus-banner {
  background: #fff;
  border: 1px solid #d8e5f3;
  border-left: 6px solid #1c6fbe;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
  display: grid;
  gap: 2px;
}

.focus-banner span {
  color: #5b6f8e;
  font-size: 12px;
}

.focus-banner strong {
  color: #1a304f;
  font-size: 28px;
}

.placeholder-card {
  background: #fff;
  border: 1px solid #d8e5f3;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
  padding: 16px;
}

.placeholder-card p {
  margin: 0;
  color: #4f607c;
}

@media (max-width: 900px) {
  .vehicle-focus-shell {
    padding: 12px;
  }

  .detail-head {
    flex-direction: column;
  }
}

/* feature/Planning/PlanningGeneralReport/screen/planning-report-vehicles-screen.component.css */
.fleet-shell {
  height: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
  display: grid;
  gap: 12px;
}

.fleet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7088aa;
}

.fleet-head h2 {
  margin: 4px 0;
  font-size: 32px;
  color: #1a304f;
  font-family: 'Lilita One', 'Poppins', sans-serif;
}

.fleet-head p {
  margin: 0;
  color: #60708a;
}

.back-link {
  border: 1px solid #bfd4ef;
  background: #fff;
  color: #1c6fbe;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 800;
}

.fleet-count {
  background: #fff;
  border: 1px solid #d8e5f3;
  border-left: 6px solid #1c6fbe;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fleet-count span {
  color: #4f607c;
  font-weight: 700;
}

.fleet-count strong {
  color: #1a304f;
  font-size: 32px;
  line-height: 1;
}

.fleet-ledger {
  border: 1px solid #d8e5f3;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
}

.ledger-head,
.fleet-row {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr 0.6fr 0.7fr 0.45fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}

.ledger-head {
  color: #5b6f8e;
  background: #f5f9ff;
  border-bottom: 1px solid #dbe6f5;
  font-weight: 800;
}

.fleet-row {
  border-bottom: 1px solid #edf3fb;
}

.fleet-row:nth-child(even) {
  background: #fafcff;
}

.fleet-row:last-child {
  border-bottom: 0;
}

.fleet-row strong {
  color: #203855;
}

.fleet-row span {
  color: #354866;
}

.fleet-row .num,
.fleet-row em {
  justify-self: end;
}

.fleet-row em {
  font-style: normal;
  color: #0f5f52;
  font-weight: 800;
}

.fleet-row button {
  justify-self: end;
  border: 1px solid #bfd4ef;
  background: #fff;
  color: #1c6fbe;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  .fleet-shell {
    padding: 12px;
  }

  .fleet-head {
    flex-direction: column;
  }

  .ledger-head,
  .fleet-row {
    grid-template-columns: 1fr;
  }

  .fleet-row .num,
  .fleet-row em,
  .fleet-row button {
    justify-self: start;
  }
}

/* feature/Planning/PlanningGeneralSalesReport/screen/planning-general-sales-report-screen.component.css */
:root, .mfe-component-host {
  display: block;
}
.sales-report-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: #f4f7fb;
  min-height: 100%;
}
.sales-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sales-report-header h2 {
  margin: 6px 0 0;
  color: #12315d;
  font-size: 28px;
}
.kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbe9ff;
  color: #18457d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stream-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d7dfec;
  box-shadow: 0 10px 24px rgba(13, 38, 76, 0.08);
}
.stream-status.live {
  border-color: #6cc08a;
}
.stream-status.history {
  border-color: #6f8ecf;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c64b4b;
  box-shadow: 0 0 0 4px rgba(198, 75, 75, 0.15);
}
.stream-status.live .status-dot {
  background: #21a453;
  box-shadow: 0 0 0 4px rgba(33, 164, 83, 0.15);
}
.stream-status.history .status-dot {
  background: #3f6fb8;
  box-shadow: 0 0 0 4px rgba(63, 111, 184, 0.15);
}
.stream-status strong,
.stream-status small {
  display: block;
}
.stream-status small {
  color: #5a6f88;
  margin-top: 2px;
  word-break: break-word;
}
.btn-export-excel {
  border: 1px solid #bcd0ea;
  background: #ffffff;
  color: #194777;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-export-excel:hover:not(:disabled) {
  background: #edf4ff;
}
.btn-export-excel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sales-report-panel {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(13, 38, 76, 0.08);
}
.filters-grid,
.metrics-grid {
  display: grid;
  gap: 14px;
}
.filters-grid {
  grid-template-columns: minmax(200px, 1.3fr) repeat(2, minmax(130px, 0.7fr)) repeat(2, minmax(170px, 1fr));
}
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field span {
  color: #24456e;
  font-size: 13px;
  font-weight: 700;
}
.field select,
.field input {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #17385f;
  background: #fdfefe;
}
.field-date-compact {
  max-width: 170px;
}
.field-date-compact input {
  padding: 9px 10px;
  font-size: 13px;
}
.error-text {
  margin: 14px 0 0;
  color: #b33030;
  font-weight: 600;
}
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-card span {
  color: #5a6f88;
  font-size: 13px;
}
.metric-card strong {
  color: #12315d;
  font-size: 28px;
}
.table-panel {
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf3fb;
  color: #234a82;
  font-weight: 700;
}
.table-wrap {
  max-height: 520px;
  overflow: auto;
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1560px;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e7edf6;
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: #284c78;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:hover td {
  background: #fafcff;
}
.cell-strong {
  font-weight: 700;
  color: #163963;
}
td small {
  display: block;
  color: #72859a;
  margin-top: 3px;
}
.empty-state {
  padding: 36px 18px 12px;
  text-align: center;
  color: #5a6f88;
}
.empty-state h3 {
  margin: 0 0 8px;
  color: #17385f;
}
@media (max-width: 1100px) {
  .sales-report-header {
    flex-direction: column;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .filters-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-date-compact {
    max-width: none;
  }
}
@media (max-width: 720px) {
  .sales-report-board {
    padding: 16px;
  }
  .filters-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* feature/Planning/PlanningLoad/screen/planning-load-screen.component.css */
:root, .mfe-component-host {
  --pl-ink: #16213e;
  --pl-subtle: #5b6473;
  --pl-coral: #ff8a6b;
  --pl-sun: #ffd6a5;
  --pl-mint: #9df6c1;
  --pl-sky: #9ec9ff;
  --pl-cream: #fff7e8;
  --pl-bg: #ffffff;
  --pl-emerald: #16a34a;
  --pl-rose: #dc2626;
  --pl-amber: #f59e0b;
}

.planning-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, #fff7f1 0%, #ffffff 40%);
  border-radius: 18px;
  padding: 22px;
  min-height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  animation: fadeUp 400ms ease both;
  font-family: "Plus Jakarta Sans", "Cabinet Grotesk", "Segoe UI", sans-serif;
}

.planning-page::-webkit-scrollbar {
  width: 10px;
}

.planning-page::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.planning-page::-webkit-scrollbar-track {
  background: #e2e8f0;
}

.planning-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ef 45%, #eef9ff 100%);
  border: 1px solid #eef2f7;
  position: relative;
  overflow: hidden;
}

.hero-text h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--pl-ink);
}

.hero-text p {
  margin: 0;
  color: var(--pl-subtle);
  max-width: 520px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px dashed #d4d9e2;
  font-size: 0.8rem;
  color: #374151;
}

.hero-art {
  position: relative;
  min-height: 120px;
}

.blob {
  position: absolute;
  border-radius: 48% 52% 46% 54%;
  opacity: 0.9;
  filter: blur(0.2px);
  animation: float 6s ease-in-out infinite;
}

.blob-1 {
  width: 120px;
  height: 120px;
  background: var(--pl-sun);
  top: 10px;
  right: 40px;
}

.blob-2 {
  width: 90px;
  height: 90px;
  background: var(--pl-mint);
  top: 60px;
  right: 120px;
  animation-delay: -1.5s;
}

.blob-3 {
  width: 100px;
  height: 100px;
  background: var(--pl-sky);
  top: 0;
  right: 140px;
  animation-delay: -3s;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  max-width: min(300px, calc(100vw - 32px));
}

.toast.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.toast.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.toast.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.upload-card {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #fef9ff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.upload-title {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}

.upload-info p {
  margin: 6px 0 0;
  color: #64748b;
}

.upload-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #64748b;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.15);
}

.file-button input {
  display: none;
}

.file-meta {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.status-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  animation: fadeUp 500ms ease both;
}

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

.status-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pl-ink);
}

.status-subtitle {
  color: var(--pl-subtle);
  font-size: 0.9rem;
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
}

.status-pill.valid {
  background: #dcfce7;
  color: #166534;
}

.status-pill.invalid {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.loading {
  background: #fef3c7;
  color: #92400e;
}

.progress {
  display: grid;
  gap: 6px;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}

.progress-bar.running::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, var(--pl-coral), var(--pl-sky));
  animation: progressMove 1.4s ease-in-out infinite;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--pl-subtle);
}

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

.summary-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.summary-value {
  margin-top: 4px;
  font-weight: 700;
  color: #111827;
  word-break: break-all;
}

.error-panel {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.error-title {
  font-weight: 700;
  color: #991b1b;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.error-code {
  font-weight: 700;
  color: #b91c1c;
  margin-right: 6px;
}

.error-message {
  color: #7f1d1d;
}

.error-path {
  color: #9f1239;
  font-size: 0.8rem;
  margin-left: 6px;
}

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

.actions-hint {
  margin-top: -8px;
  text-align: right;
  color: #b45309;
  font-size: 0.85rem;
}

.cute-primary {
  border: none;
  background: linear-gradient(135deg, #ff8a6b 0%, #ffd166 100%);
  color: #2b1f0e;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 138, 107, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cute-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(255, 138, 107, 0.35);
}

.cute-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-button {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ghost-button:hover {
  border-color: #cbd5f5;
  color: #1f2937;
}

.ghost-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.details-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 12px;
  animation: fadeUp 500ms ease both;
}

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

.details-title {
  font-weight: 700;
  color: #111827;
}

.details-subtitle {
  font-size: 0.85rem;
  color: var(--pl-subtle);
}

.details-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.preview-panel {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.panel-header {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #1f2a44;
}

.json-preview {
  flex: 1;
  border: none;
  resize: none;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  background: #f8fafc;
}

@media (max-width: 980px) {
  .upload-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-actions {
    align-items: flex-start;
  }

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

  .planning-hero {
    grid-template-columns: 1fr;
  }

  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes progressMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* feature/Planning/PlanningOperationalVehicleReport/screen/planning-operational-vehicle-report-screen.component.css */
.fleet-shell {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
  display: grid;
  gap: 14px;
}

.fleet-shell > * {
  direction: ltr;
}

.fleet-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.fleet-head h2 {
  margin: 0;
  font-size: 30px;
  color: #1a304f;
  font-family: 'Lilita One', 'Poppins', sans-serif;
  text-align: center;
}

.mode-tabs {
  display: inline-flex;
  border: 1px solid #bfd4ef;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.mode-tab-btn {
  border: 0;
  border-right: 1px solid #d7e5f5;
  background: #fff;
  color: #1c6fbe;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 14px;
  line-height: 1.1;
  cursor: pointer;
}

.mode-tab-btn:last-child {
  border-right: 0;
}

.mode-tab-btn.active {
  background: #1c6fbe;
  color: #fff;
}

.filters-panel {
  background: #ffffff;
  border: 1px solid #d8e5f3;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(10, 24, 46, 0.08);
  display: grid;
  gap: 12px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 230px));
  gap: 10px;
  justify-content: flex-start;
}

.field {
  display: grid;
  gap: 5px;
  width: 100%;
  max-width: 230px;
}

.field span {
  color: #4f607c;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  border: 1px solid #c6d9ef;
  border-radius: 8px;
  background: #fff;
  color: #203855;
  font-weight: 600;
  padding: 7px 9px;
  min-height: 34px;
}

.search-select {
  position: relative;
}

.search-select.disabled {
  opacity: 0.85;
}

.search-select input {
  width: 100%;
  padding-right: 34px;
}

.clear-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #53739a;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.search-dropdown {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 25;
  background: #fff;
  border: 1px solid #c6d9ef;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.search-dropdown li {
  padding: 8px 10px;
  cursor: pointer;
  color: #203855;
  font-weight: 600;
}

.search-dropdown li:hover,
.search-dropdown li.active {
  background: #eef5ff;
}

.search-dropdown li.empty {
  color: #6b7f9c;
  cursor: default;
}

.filters-actions {
  display: flex;
  justify-content: flex-start;
}

.search-btn {
  border: 0;
  border-radius: 8px;
  background: #2f7f2f;
  color: #fff;
  font-weight: 800;
  padding: 8px 18px;
  cursor: pointer;
}

.search-btn:disabled {
  background: #91b891;
  cursor: not-allowed;
}

.back-link {
  border: 1px solid #bfd4ef;
  background: #fff;
  color: #1c6fbe;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.error-text {
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.fleet-ledger {
  border: 1px solid #d8e5f3;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

table {
  border-collapse: collapse;
  min-width: 1240px;
  width: 100%;
}

th,
td {
  border: 1px solid #dbe6f5;
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
}

th {
  background: #f0f6ff;
  color: #27496f;
  font-weight: 800;
}

.left-col {
  text-align: left;
  font-weight: 800;
  color: #1f3857;
}

tbody tr:nth-child(even) {
  background: #fafcff;
}

.empty-state {
  border: 1px dashed #c6d9ef;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  color: #4f607c;
  font-weight: 700;
}

@media (max-width: 980px) {
  .fleet-shell {
    padding: 12px;
  }

  .fleet-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .fleet-head h2 {
    text-align: left;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

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

/* feature/Planning/PlanningSoldTicketsReport/screen/planning-sold-tickets-report-screen.component.css */
:root, .mfe-component-host {
  display: block;
}

.sold-report-board {
  --rpvt-density-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: #f4f7fb;
  width: 100%;
  min-height: 100%;
}

.sold-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sold-report-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sold-report-header h2 {
  margin: 0;
  color: #12315d;
  font-size: 24px;
}

.filters-toggle-btn {
  border: 1px solid #c7d5ea;
  background: #edf3fb;
  color: #17385f;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.filters-toggle-btn:hover {
  background: #e2ecf9;
  border-color: #a9bfde;
}

.filters-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.panel {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(13, 38, 76, 0.08);
}

.filters-grid,
.metrics-grid {
  display: grid;
  gap: 14px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: #24456e;
  font-size: 13px;
  font-weight: 700;
}

.field select,
.field input {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  color: #17385f;
  background: #fdfefe;
}

.error-text {
  margin: 14px 0 0;
  color: #b33030;
  font-weight: 600;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dbe6f5;
  box-shadow: 0 10px 22px rgba(13, 38, 76, 0.08);
}

.metric-card span {
  color: #6a7f9d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  color: #112c52;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.table-panel {
  overflow: hidden;
}

.table-wrap {
  --ticket-main-row-height: 220px;
  height: calc(var(--rpvt-density-height) - 250px);
  max-height: calc(var(--rpvt-density-height) - 250px);
  min-height: 420px;
  overflow-y: auto;
  overflow-x: scroll;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #8ea5c6 #e7eef8;
  border-radius: 10px;
  padding-bottom: 4px;
}

.table-wrap {
  --col-date: #CFE5F9;
  --col-departure: #D9EAD3;
  --col-direction: #FCE5CD;
  --col-trip: #EAD1DC;
  --col-shift: #D9D2E9;
  --col-driver: #D0E0E3;
  --col-vehicle: #EAD1DC;
  --col-total-tickets: #FFF2CC;
  --col-total-amount: #D0E0E3;
}

.table-wrap::-webkit-scrollbar {
  height: 12px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #e7eef8;
  border-radius: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #8ea5c6;
  border-radius: 8px;
}

table {
  width: max-content;
  min-width: max(1140px, 100%);
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid #e7edf6;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f8fbff;
  color: #284c78;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

thead .ticket-main-head-row th {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #f8fbff;
  box-shadow: 0 1px 0 #dbe5f4 inset;
  vertical-align: middle;
}

thead .ticket-main-head-row > th:nth-child(1) {
  min-width: 76px;
}

thead .ticket-main-head-row > th:nth-child(2) {
  min-width: 64px;
}

thead .ticket-main-head-row > th:nth-child(3) {
  min-width: 66px;
}

thead .ticket-main-head-row > th:nth-child(4) {
  min-width: 78px;
}

thead .ticket-main-head-row > th:nth-child(5) {
  min-width: 86px;
}

thead .ticket-main-head-row > th:nth-child(6) {
  min-width: 92px;
}

thead .ticket-main-head-row > th:nth-child(7) {
  min-width: 128px;
}

thead .ticket-main-head-row > th:nth-child(8) {
  min-width: 72px;
}

thead .ticket-main-head-row > th:nth-child(9) {
  min-width: 82px;
}

thead .ticket-main-head-row > th:nth-child(10) {
  min-width: 82px;
}

thead .ticket-main-head-row > th:nth-child(11) {
  min-width: 180px;
}

thead .ticket-main-head-row > th:nth-last-child(2),
thead .ticket-main-head-row > th:nth-last-child(1) {
  min-width: 122px;
}

thead .ticket-subhead-row th {
  position: sticky;
  top: var(--ticket-main-row-height);
  z-index: 10;
  background-color: #f8fbff;
  box-shadow: 0 -1px 0 #dbe5f4 inset;
}

.ticket-type-head {
  min-width: 56px;
  height: var(--ticket-main-row-height);
  text-align: center;
  vertical-align: middle;
  padding: 8px 4px 6px;
}

.ticket-type-head-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.ticket-type-head-names {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
}

.ticket-type-head-content-split .ticket-type-head-names {
  justify-content: space-around;
  gap: 4px;
}

.ticket-type-head-text {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

.ticket-type-head-price {
  display: block;
  width: 100%;
  border-top: 1px solid rgba(28, 45, 68, 0.22);
  padding-top: 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  text-align: center;
}

.ticket-subhead {
  width: 52px;
  min-width: 52px;
  padding: 6px 2px;
  font-size: 10px;
}

.ticket-subhead-count {
  text-align: left;
  padding-left: 9px;
}

.ticket-subhead-amount {
  text-align: right;
  padding-right: 9px;
}

.ticket-data-cell {
  width: 52px;
  min-width: 52px;
  padding: 7px 4px;
  font-size: 12px;
}

.ticket-data-count {
  text-align: left;
  padding-left: 9px;
}

.ticket-data-amount {
  text-align: right;
  padding-right: 9px;
}

.total-tickets-head,
.total-tickets-cell {
  text-align: center;
}

.base-col-head,
.base-col-cell {
  background-color: inherit;
}

.base-col-date {
  border-left: 3px solid var(--col-date);
}

.base-col-departure {
  border-left: 3px solid var(--col-departure);
}

.base-col-direction {
  border-left: 3px solid var(--col-direction);
}

.base-col-trip {
  border-left: 3px solid var(--col-trip);
}

.base-col-shift {
  border-left: 3px solid var(--col-shift);
}

.base-col-driver {
  border-left: 3px solid var(--col-driver);
}

.base-col-vehicle {
  border-left: 3px solid var(--col-vehicle);
}

.total-tickets-head,
.total-tickets-cell,
.total-tickets-total {
  border-left: 3px solid var(--col-total-tickets);
}

.total-amount-head,
.total-amount-cell,
.total-amount-total {
  border-left: 3px solid var(--col-total-amount);
  border-right: 3px solid var(--col-total-amount);
}

tr:hover td {
  background: #fafcff;
}

tfoot .ticket-total-row th {
  background: #edf3fb;
  color: #17385f;
  font-size: 12px;
  font-weight: 800;
  border-top: 2px solid #cddbef;
  border-bottom: 0;
  vertical-align: middle;
}

.ticket-total-cell {
  text-align: right;
  white-space: nowrap;
}

.ticket-total-count {
  text-align: left;
  padding-left: 9px;
}

.ticket-total-amount {
  text-align: right;
  padding-right: 9px;
}

.ticket-total-all {
  text-align: center;
}

.cell-strong {
  font-weight: 700;
  color: #163963;
}

td small {
  display: block;
  color: #72859a;
  margin-top: 3px;
}

.empty-state {
  padding: 36px 18px 12px;
  text-align: center;
  color: #5a6f88;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: #17385f;
}

@media (max-width: 1280px) {
  .filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sold-report-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sold-report-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .table-wrap {
    height: calc(var(--rpvt-density-height) - 280px);
    max-height: calc(var(--rpvt-density-height) - 280px);
    min-height: 320px;
  }

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

@media (max-width: 680px) {
  .sold-report-board {
    padding: 16px;
  }

  .table-wrap {
    height: calc(var(--rpvt-density-height) - 260px);
    max-height: calc(var(--rpvt-density-height) - 260px);
    min-height: 280px;
  }

  .filters-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* RPVT visual isolation: these selectors intentionally outrank generic report styles
   that become global when the report is rendered through Module Federation. */
.sold-report-board {
  --rpvt-density-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  background: #f4f7fb !important;
  overflow: hidden !important;
}

.sold-report-board .sold-report-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 0 0 auto !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sold-report-board .sold-report-header h2 {
  margin: 0 !important;
  color: #12315d !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.sold-report-board .sold-report-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.sold-report-board .filters-toggle-btn {
  border: 1px solid #c7d5ea !important;
  background: #edf3fb !important;
  color: #17385f !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  min-height: 34px !important;
}

.sold-report-board .panel {
  background: #fff !important;
  border: 1px solid #dde5f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(13, 38, 76, 0.08) !important;
}

.sold-report-board .filters-panel {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: visible !important;
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sold-report-board .filters-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}

.sold-report-board .field {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.sold-report-board .field span {
  display: block !important;
  color: #24456e !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.sold-report-board .field select,
.sold-report-board .field input {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid #cfd8e6 !important;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #17385f !important;
  background: #fdfefe !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
}

.sold-report-board .error-text,
.sold-report-board .status-text {
  display: block !important;
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.sold-report-board .error-text {
  color: #b33030 !important;
}

.sold-report-board .status-text {
  color: #345d8f !important;
}

.sold-report-board .metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}

.sold-report-board .metric-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 86px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: #f8fbff !important;
  border: 1px solid #dbe6f5 !important;
  box-shadow: 0 10px 22px rgba(13, 38, 76, 0.08) !important;
}

.sold-report-board .metric-card strong {
  color: #112c52 !important;
  font-size: 46px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.sold-report-board .metric-card span {
  color: #6a7f9d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.sold-report-board .table-panel {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.sold-report-board .table-wrap {
  --ticket-main-row-height: 220px;
  display: block !important;
  height: calc(var(--rpvt-density-height) - 250px) !important;
  max-height: calc(var(--rpvt-density-height) - 250px) !important;
  min-height: 420px !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable both-edges !important;
  border-radius: 10px !important;
  padding-bottom: 4px !important;
}

.sold-report-board.filters-open .table-wrap {
  height: calc(var(--rpvt-density-height) - 360px) !important;
  max-height: calc(var(--rpvt-density-height) - 360px) !important;
  min-height: 300px !important;
}

.sold-report-board.filters-open .table-panel {
  min-height: 320px !important;
}

.sold-report-board table {
  width: max-content !important;
  min-width: max(1140px, 100%) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.sold-report-board th,
.sold-report-board td {
  padding: 7px 7px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7edf6 !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: normal !important;
  font-size: 11px !important;
}

.sold-report-board th {
  background: #f8fbff;
  color: #284c78;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.sold-report-board thead .ticket-main-head-row th {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  height: var(--ticket-main-row-height) !important;
  vertical-align: middle !important;
}

.sold-report-board thead .ticket-subhead-row th {
  position: sticky !important;
  top: var(--ticket-main-row-height) !important;
  z-index: 10 !important;
}

.sold-report-board .ticket-type-head {
  min-width: 50px !important;
  height: var(--ticket-main-row-height) !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 8px 4px 6px !important;
}

.sold-report-board .ticket-type-head-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
}

.sold-report-board .ticket-type-head-names {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 0 !important;
}

.sold-report-board .ticket-type-head-content-split .ticket-type-head-names {
  justify-content: space-around !important;
  gap: 4px !important;
}

.sold-report-board .ticket-type-head-text {
  display: inline-block !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  white-space: nowrap !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.sold-report-board .ticket-type-head-price {
  display: block !important;
  width: 100% !important;
  border-top: 1px solid rgba(28, 45, 68, 0.22) !important;
  padding-top: 6px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.sold-report-board .ticket-subhead,
.sold-report-board .ticket-data-cell {
  width: 46px !important;
  min-width: 46px !important;
}

@media (max-width: 1280px) {
  .sold-report-board .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .sold-report-board .filters-grid,
  .sold-report-board .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sold-report-board.filters-open .table-wrap {
    height: calc(var(--rpvt-density-height) - 430px) !important;
    max-height: calc(var(--rpvt-density-height) - 430px) !important;
    min-height: 260px !important;
  }
}

@media (max-width: 680px) {
  .sold-report-board .filters-grid,
  .sold-report-board .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

.sold-report-board .base-col-date {
  border-left: 3px solid var(--col-date) !important;
}

.sold-report-board .base-col-departure {
  border-left: 3px solid var(--col-departure) !important;
}

.sold-report-board .base-col-direction {
  border-left: 3px solid var(--col-direction) !important;
}

.sold-report-board .base-col-trip {
  border-left: 3px solid var(--col-trip) !important;
}

.sold-report-board .base-col-shift {
  border-left: 3px solid var(--col-shift) !important;
}

.sold-report-board .base-col-driver {
  border-left: 3px solid var(--col-driver) !important;
}

.sold-report-board .base-col-vehicle {
  border-left: 3px solid var(--col-vehicle) !important;
}

.sold-report-board .total-tickets-head,
.sold-report-board .total-tickets-cell,
.sold-report-board .total-tickets-total {
  border-left: 3px solid var(--col-total-tickets) !important;
}

.sold-report-board .total-amount-head,
.sold-report-board .total-amount-cell,
.sold-report-board .total-amount-total {
  border-left: 3px solid var(--col-total-amount) !important;
  border-right: 3px solid var(--col-total-amount) !important;
}

/* RPVT extra compact density: keep width at 100% and reduce real UI sizes. */
.sold-report-board {
  gap: 9px !important;
  padding: 10px !important;
}

.sold-report-board .sold-report-header {
  gap: 9px !important;
}

.sold-report-board .sold-report-header h2 {
  font-size: 20px !important;
}

.sold-report-board .sold-report-header-actions {
  gap: 6px !important;
}

.sold-report-board .filters-toggle-btn {
  border-radius: 8px !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
}

.sold-report-board .panel {
  border-radius: 10px !important;
}

.sold-report-board .filters-panel,
.sold-report-board .table-panel {
  padding: 9px !important;
}

.sold-report-board .filters-grid,
.sold-report-board .metrics-grid {
  gap: 10px !important;
}

.sold-report-board .field {
  gap: 6px !important;
}

.sold-report-board .field span,
.sold-report-board .error-text,
.sold-report-board .status-text {
  font-size: 11px !important;
}

.sold-report-board .field select,
.sold-report-board .field input {
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  padding: 7px 8px !important;
  font-size: 11px !important;
}

.sold-report-board .metric-card {
  gap: 7px !important;
  min-height: 68px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
}

.sold-report-board .metric-card strong {
  font-size: 38px !important;
}

.sold-report-board .metric-card span {
  font-size: 10px !important;
}

.sold-report-board .table-wrap {
  --ticket-main-row-height: 190px;
  height: calc(var(--rpvt-density-height) - 215px) !important;
  max-height: calc(var(--rpvt-density-height) - 215px) !important;
  min-height: 360px !important;
}

.sold-report-board.filters-open .table-wrap {
  height: calc(var(--rpvt-density-height) - 315px) !important;
  max-height: calc(var(--rpvt-density-height) - 315px) !important;
  min-height: 260px !important;
}

.sold-report-board th,
.sold-report-board td {
  padding: 5px 5px !important;
  font-size: 10px !important;
}

.sold-report-board th {
  font-size: 10px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(1) {
  min-width: 66px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(2),
.sold-report-board thead .ticket-main-head-row > th:nth-child(3) {
  min-width: 58px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(4) {
  min-width: 66px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(5) {
  min-width: 74px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(6) {
  min-width: 78px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(7) {
  min-width: 112px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(8) {
  min-width: 62px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(9),
.sold-report-board thead .ticket-main-head-row > th:nth-child(10) {
  min-width: 68px !important;
}

.sold-report-board thead .ticket-main-head-row > th:nth-child(11) {
  min-width: 150px !important;
}

.sold-report-board .ticket-type-head {
  min-width: 42px !important;
  padding: 6px 3px 5px !important;
}

.sold-report-board .ticket-type-head-content,
.sold-report-board .ticket-type-head-names {
  gap: 6px !important;
}

.sold-report-board .ticket-type-head-text {
  font-size: 12px !important;
}

.sold-report-board .ticket-type-head-price {
  padding-top: 5px !important;
  font-size: 15px !important;
}

.sold-report-board .ticket-subhead,
.sold-report-board .ticket-data-cell {
  width: 38px !important;
  min-width: 38px !important;
}

/* feature/Planning/PlanningTariffReport/screen/planning-tariff-report-screen.component.css */
.tariff-board {
  --bg: #f4f8ee;
  --panel: #ffffff;
  --line: #d8e6ce;
  --text: #203026;
  --muted: #58715f;
  --accent: #2f9d63;
  --accent-soft: #e9f7ef;
  --shadow: 0 10px 22px rgba(15, 38, 26, 0.08);

  min-height: 100%;
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 8% 5%, rgba(47, 157, 99, 0.18), transparent 28%),
    linear-gradient(180deg, #f9fdf7 0%, var(--bg) 100%);
  display: grid;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.tariff-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tariff-header h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 50px;
  line-height: 1;
}

.subtitle {
  margin: 0;
  color: #4d6f59;
  font-size: 14px;
  font-weight: 700;
}

.header-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.header-filter {
  display: grid;
  gap: 4px;
}

.header-filter span {
  color: #4f7158;
  font-size: 11px;
  font-weight: 800;
}

.header-filter select {
  min-width: 240px;
  height: 34px;
  border: 1px solid #c1d8c5;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #224733;
  font-size: 13px;
  font-weight: 700;
}

.header-filter.compact select {
  min-width: 220px;
  height: 32px;
}

.passenger-filter {
  min-width: 320px;
}

.passenger-switch {
  min-height: 34px;
  border: 1px solid #c1d8c5;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.passenger-switch button {
  border: 0;
  background: #eef5ee;
  color: #2f5d43;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  cursor: pointer;
  line-height: 1.1;
  white-space: nowrap;
}

.passenger-switch button.active {
  background: #2f9d63;
  color: #fff;
}

.fullscreen-passenger-filter {
  display: grid;
  gap: 4px;
  min-width: 280px;
}

.fullscreen-passenger-filter > span {
  color: #4a6b57;
  font-size: 11px;
  font-weight: 800;
}

.passenger-switch.compact {
  max-width: min(72vw, 760px);
}

.passenger-switch.compact button {
  font-size: 10px;
  padding: 4px 7px;
}

.fullscreen-filters {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.route-chip {
  margin: -4px 0 0;
  padding: 6px 12px;
  width: fit-content;
  border-radius: 999px;
  background: #edf8f1;
  border: 1px solid #cbe5d4;
  color: #1f6f45;
  font-size: 12px;
  font-weight: 800;
}

.report-state {
  margin: 0;
  color: #516f5b;
  font-size: 13px;
  font-weight: 700;
}

.report-state.error {
  color: #b42318;
}

.report-state.warning {
  color: #8a5a00;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel header {
  padding: 10px 12px;
  border-bottom: 1px solid #dfedd8;
  background: #f6fbf4;
}

.panel h3 {
  margin: 0;
  color: #244534;
  font-size: 30px;
  font-family: 'Lilita One', 'Poppins', sans-serif;
}

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

.matrix-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: static;
  min-height: clamp(560px, calc(100dvh - 170px), 920px);
}

.eye-button {
  width: 38px;
  height: 38px;
  border: 1px solid #b8d7c0;
  border-radius: 10px;
  background: #eff9f2;
  color: #1f6f45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eye-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(24, 73, 47, 0.12);
}

.eye-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.eye-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.matrix-scroll {
  overflow-x: auto;
  overflow-y: auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  background: #f8fcf7;
  padding-bottom: 8px;
  padding-right: 16px;
  scrollbar-gutter: stable;
}

.matrix-scroll::-webkit-scrollbar {
  height: 11px;
  width: 11px;
}

.matrix-scroll::-webkit-scrollbar-thumb {
  background: #9eb5a2;
  border-radius: 999px;
}

.matrix-scroll::-webkit-scrollbar-track {
  background: #e6f0e7;
}

.matrix-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #5d7564;
  font-size: 14px;
  font-weight: 700;
}

.tariff-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-right: 16px;
}

.tariff-matrix th,
.tariff-matrix td {
  border-right: 1px solid #e4eedf;
  border-bottom: 1px solid #e4eedf;
  padding: 10px 8px;
  text-align: center;
  min-width: 106px;
}

.tariff-matrix .sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f6fbf4;
}

.tariff-matrix .sticky-head {
  top: 0;
  z-index: 5;
}

.tariff-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #edf8f1;
  color: #1f4f37;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tariff-matrix thead th.zone-head {
  height: 160px;
  min-width: 56px;
  width: 56px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  vertical-align: bottom;
  padding: 8px 4px;
}

.tariff-matrix .zone-row {
  text-align: left;
  color: #24563c;
  font-size: 12px;
  font-weight: 900;
}

.tariff-matrix td strong {
  display: block;
  color: #17492f;
  font-size: 15px;
  font-weight: 900;
}

.tariff-matrix td small {
  display: block;
  margin-top: 2px;
  color: #4f6e59;
  font-size: 10px;
  font-weight: 700;
}

.tariff-matrix td {
  background: #f9fcf8;
}

.tariff-matrix .empty-cell {
  background: #f5faf4;
}

.tariff-matrix .na-cell {
  background: #f0f4ee;
}

.detail-collapsible {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.collapsible-panel {
  overflow: hidden;
}

.secondary-header {
  padding: 10px 12px;
  border-bottom: 1px solid #dfedd8;
  background: #f6fbf4;
}

.tariff-cards {
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.tariff-card {
  border: 1px solid #d9e9d9;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfffd 0%, #f4fbf5 100%);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.tariff-card h4 {
  margin: 0;
  color: #1d4a33;
  font-size: 17px;
  font-weight: 900;
}

.tariff-card strong {
  color: #1f7f4b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.tariff-card small {
  color: #5d7768;
  font-size: 11px;
  font-weight: 700;
}

.detail-scroll {
  max-height: 260px;
  overflow: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.detail-table th,
.detail-table td {
  border-bottom: 1px solid #e7efe3;
  padding: 9px 10px;
  font-size: 12px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.detail-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f6fbf4;
  color: #315742;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-chip {
  display: inline-block;
  min-width: 86px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #163124;
  font-weight: 900;
  text-align: center;
}

.empty-row,
.empty-list {
  margin: 0;
  padding: 16px;
  color: #6a7f6f;
  font-size: 13px;
  text-align: center;
}

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(17, 31, 22, 0.72);
  display: grid;
  place-items: center;
  padding: 10px;
}

.fullscreen-card {
  width: min(98vw, 1720px);
  height: min(96vh, 980px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c4dbcb;
  background: #f9fdf8;
  box-shadow: 0 24px 46px rgba(11, 31, 19, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #d3e4d8;
  background: #edf8f1;
  position: sticky;
  top: 0;
  z-index: 6;
}

.fullscreen-header h3 {
  margin: 0;
  color: #244534;
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-size: 28px;
}

.fullscreen-header p {
  margin: 2px 0 0;
  color: #4a6b57;
  font-size: 12px;
  font-weight: 700;
}

.close-button {
  width: 34px;
  height: 34px;
  border: 1px solid #b9d5c2;
  border-radius: 999px;
  background: #fff;
  color: #27553d;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-body {
  padding: 8px;
  min-height: 0;
}

.fullscreen-matrix-scroll {
  max-height: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

.fullscreen-table th,
.fullscreen-table td {
  min-width: 62px;
  padding: 4px 3px;
}

.fullscreen-table {
  /* Evita que la matriz se estire al ancho del modal cuando hay pocas columnas útiles. */
  width: max-content;
  min-width: max-content;
  margin: 0 auto;
}

.fullscreen-table .sticky-col {
  min-width: 190px;
  width: 190px;
  max-width: 190px;
}

.fullscreen-table .zone-row,
.fullscreen-table thead th {
  font-size: 9px;
}

.fullscreen-table thead th.zone-head {
  height: 120px;
  min-width: 46px;
  width: 46px;
}

.fullscreen-table td strong {
  font-size: 10px;
}

.fullscreen-table td small {
  display: none;
}

.fullscreen-table.few-zones-layout {
  width: max-content;
  min-width: max-content;
  margin: 0 auto;
}

.fullscreen-table.few-zones-layout .sticky-col {
  min-width: 190px;
  width: 190px;
  max-width: 190px;
}

.fullscreen-table.few-zones-layout thead th.zone-head {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
  height: 54px;
  min-width: 118px;
  width: 118px;
  white-space: nowrap;
  vertical-align: middle;
  padding: 8px 6px;
}

.fullscreen-table.few-zones-layout td {
  min-width: 118px;
}

.fullscreen-table.few-zones-layout .zone-row {
  font-size: 11px;
}

@media (max-width: 1100px) {
  .matrix-panel {
    min-height: clamp(480px, calc(100dvh - 150px), 760px);
  }

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

@media (max-width: 780px) {
  .tariff-board {
    padding: 12px;
  }

  .tariff-header h2 {
    font-size: 36px;
  }

  .header-filter select {
    min-width: 220px;
  }

  .fullscreen-overlay {
    padding: 6px;
  }

  .fullscreen-card {
    width: 100%;
    height: calc(100vh - 12px);
    border-radius: 8px;
  }

  .fullscreen-header h3 {
    font-size: 22px;
  }

  .fullscreen-filters {
    width: 100%;
  }

  .header-filter.compact select {
    min-width: 190px;
  }
}

/* feature/Planning/PlanningTripAssignment/screen/planning-trip-assignment-screen.component.css */
:root, .mfe-component-host {
  --trip-bp-xl: 1280px;
  --trip-bp-lg: 1024px;
  --trip-bp-md: 768px;
  display: block;
  min-height: 0;
}

.trip-page {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 96px);
  height: calc(100vh - 96px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.trip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trip-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) repeat(3, minmax(140px, 1fr)) minmax(140px, 0.9fr);
  gap: 8px;
}

.filters input,
.filters select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field span {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.btn-primary,
.btn-search,
.btn-secondary,
.btn-danger {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary,
.btn-search {
  background: #2563eb;
  color: #fff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: auto;
  flex: 1;
}

.kanban-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: visible;
  align-items: stretch;
}

.kanban-col {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.kanban-col > header {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-col h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.kanban-col header span {
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.tabs-inline {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
}

.tab-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}

.tab-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.kanban-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.kanban-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Columna 1: scroll visible para validar navegación */
.kanban-col:first-child .kanban-list {
  overflow-y: auto;
}

.table-wrapper.mini-table-wrap {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}

/* En curso y Finalizado: habilitar scroll horizontal para evitar cabeceras truncadas */
.kanban-col:nth-child(2) .table-wrapper.mini-table-wrap,
.kanban-col:nth-child(3) .table-wrapper.mini-table-wrap {
  overflow-x: auto;
}

.table-wrapper.mini-table-wrap::-webkit-scrollbar {
  width: 10px;
}

.table-wrapper.mini-table-wrap::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

.table-wrapper.mini-table-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

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

.kanban-col:nth-child(2) .mini-table-grid {
  min-width: 100%;
  table-layout: fixed;
}

.kanban-col:nth-child(3) .mini-table-grid {
  min-width: 100%;
  table-layout: fixed;
}

.mini-table-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1971c2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-bottom: 1px solid #dbe3ef;
  text-align: left;
  white-space: nowrap;
}

.mini-table-grid thead th input {
  width: 100%;
  border: 1px solid #1971c2;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  background: #1971c2;
  color: #fff;
  text-transform: uppercase;
}

.mini-table-grid thead th input::placeholder {
  color: #fff;
}

/* Columna Finalizado: cabeceras mas compactas */
.kanban-col:nth-child(3) .mini-table-grid thead th {
  font-size: 11px;
  padding: 6px;
}

.kanban-col:nth-child(3) .mini-table-grid thead th input {
  font-size: 11px;
  padding: 4px 6px;
}

.mini-table-grid td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
  vertical-align: middle;
}

.mini-table-grid tr.compact-row td {
  padding: 6px 8px;
  font-size: 10px;
}

.mini-table-grid tr.compact-row {
  cursor: pointer;
}

.mini-table-grid tr.row-selected {
  background: #eef4ff;
}

.mini-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.mini-table-grid th.actions-col,
.mini-table-grid td.actions-col {
  width: 86px;
}

.mini-table-grid th.index-col,
.mini-table-grid td.index-col {
  width: 30px;
  text-align: left;
}

.mini-table-grid td.index-col {
  font-size: 11px;
  color: #6b7280;
}

.mini-table-grid th.status-col,
.mini-table-grid td.status-col {
  width: 84px;
  text-align: center;
}

.truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.kanban-col:nth-child(1) .mini-table-grid {
  min-width: 100%;
  table-layout: fixed;
}

/* En curso: compact widths */
.kanban-col:nth-child(2) .c2-trip-col { width: 56px; }
.kanban-col:nth-child(2) .c2-padv-col { width: 62px; }
.kanban-col:nth-child(2) .c2-vend-col { width: 132px; }
.kanban-col:nth-child(2) .status-col { width: 72px; }
.kanban-col:nth-child(2) .actions-col { width: 66px; }

/* Finalizado: compact widths */
.kanban-col:nth-child(3) .c3-trip-col { width: 58px; }
.kanban-col:nth-child(3) .c3-padr-col { width: 52px; }
.kanban-col:nth-child(3) .c3-vend-col { width: 90px; }
.kanban-col:nth-child(3) .c3-hini-col { width: 60px; }
.kanban-col:nth-child(3) .c3-hfin-col { width: 60px; }
.kanban-col:nth-child(3) .c3-status-col { width: 86px; text-align: center; }

/* Planificado: compact widths */
.kanban-col:nth-child(1) .c1-trip-col { width: 74px; }
.kanban-col:nth-child(1) .c1-salida-col { width: 72px; }
.kanban-col:nth-child(1) .status-col { width: 96px; }
.kanban-col:nth-child(1) .actions-col { width: 66px; }

.chip {
  margin-left: 6px;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
}

.chip-cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.chip-planned {
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.chip-finished {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid #d1d5db;
}

.chip-interrupted {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.trip-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-mini {
  padding: 4px 9px;
  min-width: 30px;
}

.btn-mini:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* En curso: compact action buttons (F, I, R) */
.kanban-col:nth-child(2) .mini-actions .btn-mini {
  padding: 2px 5px;
  min-width: 18px;
  font-size: 10px;
  line-height: 1;
}

.kanban-col:nth-child(2) .mini-actions {
  gap: 2px;
}

.row-cancelled td:first-child {
  border-left: 3px solid #ef4444;
}

.row-started td:first-child {
  border-left: 3px solid #06b6d4;
}

.row-inprogress td:first-child {
  border-left: 3px solid #6366f1;
}

.row-finished td:first-child {
  border-left: 3px solid #9ca3af;
}

.row-interrupted td:first-child {
  border-left: 3px solid #f59e0b;
}

.actions {
  display: flex;
  gap: 6px;
}

.empty {
  text-align: center;
  color: #9ca3af;
}

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-other {
  background: #e5e7eb;
  color: #374151;
}

.resolved-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 8px 10px;
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2000;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d1d5db;
}

.toast.success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #065f46;
}

.toast.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.toast.warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.assign-modal ~ .toast,
.modal-backdrop ~ .toast {
  display: none;
}

.modal-toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  transform: none;
  z-index: 2300;
  width: min(620px, calc(100vw - 48px));
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #7c2d12;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.34);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

.modal-toast.success {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #065f46;
}

.modal-toast.error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.modal-toast.warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #7c2d12;
}

.toast.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
}

.toast-title {
  font-weight: 800;
}

.toast-text {
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.toast-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast-btn.success {
  background: #fff;
  color: #166534;
}

.toast-btn.neutral {
  background: #fff;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 2100;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
  z-index: 2200;
  display: flex;
  flex-direction: column;
}

.modal header,
.modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.modal footer {
  border-top: 1px solid #e5e7eb;
  border-bottom: none;
  justify-content: flex-end;
  gap: 8px;
}

.modal header h3 {
  margin: 0;
}

.modal header button {
  border: none;
  background: #e5e7eb;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.modal-body {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}

.assign-modal {
  overflow-y: visible;
  overflow-x: visible;
}

.assign-modal .modal-body {
  overflow-y: visible;
  overflow-x: visible;
  max-height: none;
}

.modal-body:not(.two-cols) {
  max-width: 460px;
  margin: 0 auto;
}

.modal-body:not(.two-cols) label,
.modal-body:not(.two-cols) input,
.modal-body:not(.two-cols) select,
.modal-body:not(.two-cols) .combo-box,
.modal-body:not(.two-cols) .inline-confirm {
  width: min(100%, 420px);
  margin-inline: auto;
}

.modal-body.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 6px;
  max-width: 760px;
  margin: 0 auto;
}

.modal-body label {
  font-size: 11px;
  color: #374151;
  font-weight: 700;
}

.modal-body input,
.modal-body select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
}

.modal-body.two-cols label,
.modal-body.two-cols input,
.modal-body.two-cols select,
.modal-body.two-cols .combo-box {
  width: 100%;
}

.combo-box {
  position: relative;
}

.combo-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  z-index: 20;
}

.combo-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
}

.combo-option:hover {
  background: #eff6ff;
}

.vehicle-combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-combo-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assigment-mode-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.assigment-mode-unassigned {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.assigment-mode-dispatch {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.assigment-mode-driver {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.assigment-mode-automatic {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.combo-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: #6b7280;
}

.time-picker-text {
  text-align: left;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.combo-help {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.inline-confirm {
  margin-top: 0;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #7c2d12;
  border-radius: 8px;
  text-align: center;
  padding: 8px 10px;
}

.confirm-title {
  margin-bottom: 4px;
  font-size: 13px;
}

.confirm-text {
  font-size: 12px;
}

.confirm-trip {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1280px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .trip-page {
    min-height: 0;
    height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .kanban-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
  }

  .kanban-col {
    height: auto;
    min-height: 320px;
    max-height: none;
    overflow: visible;
  }

  .kanban-list {
    overflow: visible;
  }

  .table-wrapper.mini-table-wrap {
    max-height: none;
    overflow-y: visible;
    overflow-x: auto;
  }

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

@media (max-width: 768px) {
  .trip-page {
    padding: 12px;
    gap: 10px;
  }

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

  .modal-body.two-cols {
    grid-template-columns: 1fr;
  }

  .modal {
    left: 8px;
    right: 8px;
    top: 8px;
    transform: none;
    width: auto;
    max-height: calc(100vh - 16px);
  }

  .trip-header h2 {
    font-size: 22px;
  }

  .modal header h3 {
    font-size: 15px;
  }
}

/* feature/Planning/PlanningUserLevelReport/screen/planning-user-level-report-screen.component.css */
:root, .mfe-component-host {
  display: block;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.heatmap-page {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  max-height: calc(100vh - 0.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

.page-header h2 {
  margin: 0;
  font-size: 24px;
  color: #12315d;
}

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

.filters-toggle-btn {
  border: 1px solid #c7d5ea;
  background: #edf3fb;
  color: #17385f;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.filters-toggle-btn:hover {
  background: #e2ecf9;
  border-color: #a9bfde;
}

.filter-panel {
  border: 1px solid #dfe7f0;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.65rem 0.7rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 0.55rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.68rem;
  color: #3f5368;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field input, .field select {
  border: 1px solid #d6e1ec;
  border-radius: 0.45rem;
  padding: 0.38rem 0.55rem;
  font-size: 0.82rem;
  color: #27374a;
  background: #fff;
}

.field input:disabled, .field select:disabled {
  background: #f4f7fb;
  color: #8394a8;
}

.actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-search {
  border: none;
  border-radius: 0.45rem;
  background: #2f6bd6;
  color: #fff;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-search:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  margin: 0;
  font-size: 0.9rem;
  color: #41576e;
}

.status-error {
  color: #b03b3b;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 0.75rem;
}

.kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dbe6f5;
  box-shadow: 0 10px 22px rgba(13, 38, 76, 0.08);
}

.kpi-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7f9d;
}

.kpi strong {
  color: #112c52;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.95fr;
  gap: 0.85rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid #edf2f8;
}

.panel-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2d3d;
}

.panel-header span {
  font-size: 0.82rem;
  color: #5b6b7c;
}

.map-panel,
.table-panel {
  border: 1px solid #dfe7f0;
  border-radius: 0.85rem;
  background: #fff;
  overflow: hidden;
}

.map-panel {
  position: relative;
}

.map-panel.is-expanded {
  position: relative;
  z-index: 2;
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(15, 30, 56, 0.2);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
}

.map-container {
  width: 100%;
  height: min(74vh, 760px);
  min-height: 500px;
}

.map-panel.is-expanded .map-container {
  height: min(86vh, 950px);
  min-height: 0;
}

.btn-map-expand {
  border: 1px solid #c7d8ef;
  border-radius: 0.5rem;
  background: #f5f9ff;
  color: #2d4e74;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-map-expand:hover {
  background: #eaf2ff;
  border-color: #aac3e4;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

thead th,
tfoot th {
  background: #f4f8ff;
  color: #2f4b66;
  font-size: 0.78rem;
  text-align: left;
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid #dfe7f0;
}

tbody td {
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid #edf2f8;
  color: #233447;
  font-size: 0.86rem;
}

tbody tr:hover {
  background: #f9fcff;
}

.color-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  margin-right: 0.38rem;
  vertical-align: middle;
}

.empty-row {
  text-align: center;
  color: #6f879f;
}

.heatmap-legend {
  background: #fff;
  border: 1px solid #ccd9ea;
  border-radius: 0.55rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0.55rem 0.65rem;
  font-size: 0.76rem;
  color: #2f4760;
}

.heatmap-legend .legend-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.heatmap-legend .legend-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.35;
}

.heatmap-legend .legend-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
}

@media (max-width: 1450px) {
  .filters-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

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

  .map-container {
    height: min(64vh, 560px);
    min-height: 360px;
  }
}

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

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

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

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

/* feature/PushInformation/screen/push-information-screen.component.css */
:root, .mfe-component-host {
  display: block;
}

.push-shell {
  min-height: 100%;
  padding: 20px;
  color: #0f172a;
}

.push-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.push-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.push-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tabs button,
.btn,
.link-btn {
  cursor: pointer;
}

.tabs button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.tabs button.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.tab-body {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tab-body:has(.event-form),
.tab-body:has(.selected-info),
.tab-body:has(.attempt-list),
.tab-body:has(.empty) {
  grid-template-columns: 1fr;
}

.external-api-layout {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr) !important;
}

.external-users-layout {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr) !important;
}

.external-api-detail {
  display: grid;
  gap: 14px;
}

.external-user-detail {
  display: grid;
  gap: 14px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.panel-title {
  font-weight: 700;
  margin-bottom: 12px;
}

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

.inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 86px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

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

.check-row {
  flex-direction: row;
  align-items: center;
}

.check-row input {
  width: auto;
}

.checkbox-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.checkbox-list label {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
}

.checkbox-list input {
  width: auto;
}

.nested-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.nested-form {
  padding-top: 4px;
}

.form-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

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

.btn {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
}

.btn.primary {
  background: #0f766e;
  color: #ffffff;
}

.btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.link-btn {
  border: none;
  background: transparent;
  color: #0369a1;
  font-weight: 700;
  padding: 4px 6px;
}

.link-btn.danger {
  color: #b91c1c;
}

.status {
  margin-bottom: 12px;
  border-radius: 6px;
  padding: 10px 12px;
  background: #e2e8f0;
  color: #0f172a;
}

.status.success {
  background: #dcfce7;
  color: #166534;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
}

.status.warning {
  background: #fef3c7;
  color: #92400e;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr.selected {
  background: #ecfeff;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
}

.pill.off {
  background: #e2e8f0;
  color: #475569;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-sending {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-sent {
  background: #dcfce7;
  color: #166534;
}

.status-failed {
  background: #ffedd5;
  color: #9a3412;
}

.status-deadletter {
  background: #fee2e2;
  color: #991b1b;
}

.actions-cell {
  white-space: nowrap;
}

.empty-cell {
  color: #64748b;
  text-align: center;
}

.selected-info,
.empty {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.attempt-list {
  display: grid;
  gap: 10px;
}

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

.endpoint-list {
  display: grid;
  gap: 10px;
}

.endpoint-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.endpoint-card.active {
  border-color: #0f766e;
  background: #f0fdfa;
}

.endpoint-name {
  font-weight: 800;
}

.endpoint-path {
  grid-column: 1 / -1;
  color: #64748b;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  word-break: break-word;
}

.api-doc {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.api-doc:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.api-doc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.api-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.api-methods {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.api-method {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 12px;
}

.api-method span:last-child {
  grid-column: 2;
  color: #475569;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  border-radius: 6px;
  padding: 3px 8px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

code {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 6px;
  color: #0f172a;
  word-break: break-word;
}

.accepted-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
}

.api-key-table {
  margin-top: 12px;
}

.attempt {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
}

.attempt-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.attempt-head .ok {
  color: #166534;
}

.attempt-head .fail {
  color: #991b1b;
}

.attempt-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
}

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

  .external-api-layout {
    grid-template-columns: 1fr !important;
  }

  .external-users-layout {
    grid-template-columns: 1fr !important;
  }

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

/* feature/Reporting/DeviceActivityReport/screen/device-activity-report-screen.component.css */
.device-activity-page {
  min-height: 100%;
  padding: 20px 24px 32px;
  background: #eef4fb;
  color: #0b2545;
}

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

.page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.page-header p {
  margin: 4px 0 0;
  color: #58708f;
  font-size: 14px;
}

.live-chip {
  min-width: 92px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #dfe8f5;
  color: #46607f;
  font-weight: 800;
}

.live-chip.connected {
  background: #d9fbe7;
  color: #04703b;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .7fr) minmax(180px, 1fr) minmax(230px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d6e2f1;
  border-radius: 8px;
}

.filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #4b607b;
  text-transform: uppercase;
}

.filters input,
.filters select {
  height: 36px;
  border: 1px solid #c8d6e8;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  color: #09213d;
  background: #fff;
}

.checkbox-filter {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  height: 36px;
  gap: 8px !important;
  text-transform: none !important;
}

.checkbox-filter input {
  width: 18px;
  height: 18px;
}

.filters button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: #1b76d1;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filters button:disabled {
  opacity: .65;
  cursor: wait;
}

.feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.feedback.error {
  background: #fee2e2;
  color: #991b1b;
}

.feedback.ok {
  background: #e0f2fe;
  color: #075985;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.summary-grid article {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d6e2f1;
  border-radius: 8px;
}

.summary-grid strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #072b59;
}

.summary-grid span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #59708f;
  text-transform: uppercase;
}

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

.panel {
  background: #ffffff;
  border: 1px solid #d6e2f1;
  border-radius: 8px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d6e2f1;
}

.panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.panel-header span {
  color: #64758f;
  font-weight: 700;
}

.link-button {
  border: 0;
  background: transparent;
  color: #1b76d1;
  font-weight: 800;
  cursor: pointer;
}

.table-wrap {
  max-height: calc(100vh - 360px);
  overflow: auto;
}

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

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8fc;
  color: #4a5d78;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #edf7ff;
}

td strong {
  display: block;
  font-size: 14px;
}

td small {
  display: block;
  margin-top: 2px;
  color: #677890;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.ok {
  background: #dcfce7;
  color: #166534;
}

.status.warn {
  background: #fef3c7;
  color: #92400e;
}

.status.off {
  background: #fee2e2;
  color: #991b1b;
}

.status.neutral {
  background: #e5e7eb;
  color: #374151;
}

.timeline-panel {
  min-height: 420px;
}

.timeline {
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding: 12px 18px 18px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 28px;
  bottom: -10px;
  width: 2px;
  background: #dbe6f4;
}

.timeline-item:last-child::before {
  display: none;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #1b76d1;
}

.timeline-item.incident .dot {
  background: #dc2626;
}

.timeline-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.timeline-item time {
  color: #6b7b90;
  font-size: 12px;
  white-space: nowrap;
}

.timeline-item p {
  margin: 5px 0 4px;
  color: #344966;
  line-height: 1.35;
}

.timeline-item small {
  color: #74849a;
}

.empty-state {
  padding: 42px 20px;
  color: #66758a;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .filters,
  .summary-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  .timeline {
    max-height: none;
  }
}
