/* ADMIN GLOBAL 10.1A2 — green/white lightweight shell */
:root {
  --admin-green-950: #062A20;
  --admin-green-900: #0B3D2E;
  --admin-green-800: #0F4A35;
  --admin-green-700: #145C42;
  --admin-green-600: #1F7A55;
  --admin-green-100: #E3F2EA;
  --admin-green-50: #F2F7F4;
  --admin-white: #ffffff;
  --admin-border: #D5E3DB;
  --admin-muted: #68776d;
}

html {
  color-scheme: light;
}

body {
  background: #F4F7F5;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.22);
  outline-offset: 2px;
}

.auth-shell {
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.18), transparent 34%),
    linear-gradient(145deg, #062A20 0%, #0B3D2E 58%, #0F4A35 100%);
}

.auth-feature {
  background: rgba(5, 46, 22, 0.36);
}

.brand-mark {
  background:
    linear-gradient(145deg, #ffffff, #E3F2EA);
  color: #0B3D2E;
}

.brand-mark-wing {
  font-size: 15px;
  letter-spacing: -0.04em;
}

.login-badge,
.hero-badge,
.count-badge {
  color: #0F4A35;
  background: #F2F7F4;
}

.primary-button {
  background:
    linear-gradient(135deg, #0F4A35, #1F7A55);
  box-shadow: 0 12px 24px rgba(22, 101, 52, 0.20);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.24);
}

.sidebar {
  overflow: hidden;
  background:
    linear-gradient(180deg, #062A20 0%, #0B3D2E 58%, #0F4A35 100%);
}

.sidebar-brand {
  flex: 0 0 auto;
  padding: 0 8px 18px;
}

.sidebar-brand strong {
  font-size: 15px;
  letter-spacing: 0.035em;
}

.sidebar-brand small {
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-nav {
  min-height: 0;
  flex: 1 1 auto;
  display: block;
  margin-top: 14px;
  padding: 0 3px 12px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.nav-group {
  display: grid;
  gap: 4px;
  margin-bottom: 15px;
}

.nav-group-label {
  padding: 0 12px 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 41px;
  gap: 10px;
  padding: 0 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.14s ease,
    color 0.14s ease,
    transform 0.14s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(1px);
}

.nav-item.active {
  color: #0B3D2E;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 24, 10, 0.18);
}

.nav-item.active::before {
  position: absolute;
  left: -3px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #2E8B62;
  content: "";
}

.nav-symbol {
  flex: 0 0 27px;
  color: inherit;
  background: rgba(255, 255, 255, 0.10);
}

.nav-item.active .nav-symbol {
  background: #E3F2EA;
}

.nav-item-child {
  padding-left: 18px;
}

.sidebar-status {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 13px;
  border-radius: 12px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.97);
}

.topbar h2 {
  margin-top: 4px;
  color: #102D22;
}

.eyebrow {
  color: #145C42;
}

.admin-avatar {
  background:
    linear-gradient(145deg, #0F4A35, #237A57);
}

.secondary-button:hover,
.logout-button:hover,
.mobile-menu-button:hover {
  border-color: #B7D5C5;
  background: #F2F7F4;
}

.dashboard-content {
  max-width: 1680px;
  margin: 0 auto;
}

.hero-card {
  background:
    linear-gradient(135deg, #062A20, #0F4A35);
  box-shadow: 0 18px 40px rgba(20, 83, 45, 0.16);
}

.summary-card,
.panel,
.management-panel,
.service-panel,
.admin-panel,
.audit-panel,
.platform-panel,
.otp-panel {
  box-shadow: 0 7px 20px rgba(20, 83, 45, 0.055);
}

.summary-card-icon,
.management-icon,
.service-icon {
  color: #0F4A35 !important;
  background: #F2F7F4 !important;
}

.access-notice {
  border-color: #B7D5C5;
  background: #F2F7F4;
}

.access-notice strong {
  color: #0F4A35;
}

.toast {
  background: #0B3D2E;
}

body.sidebar-open {
  overflow: hidden;
}

.sidebar-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  border: 0;
  background: rgba(5, 46, 22, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Recolor existing modules without changing their behavior */
.management-primary,
.service-primary,
.admin-primary,
.audit-primary,
.platform-primary,
.otp-primary,
.gsc-primary,
.brand-feature-save,
button.primary {
  border-color: #145C42 !important;
  background: #145C42 !important;
}

.management-primary:hover,
.service-primary:hover,
.admin-primary:hover,
.audit-primary:hover,
.platform-primary:hover,
.otp-primary:hover,
.gsc-primary:hover,
button.primary:hover {
  border-color: #0F4A35 !important;
  background: #0F4A35 !important;
}

.management-tab.active,
.service-tab.active,
.admin-tab.active,
.audit-tab.active,
.platform-tab.active,
.otp-tab.active {
  color: #0F4A35 !important;
  border-color: #78AD91 !important;
  background: #F2F7F4 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #237A57 !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10) !important;
}

@media (max-width: 850px) {
  .sidebar {
    left: -292px;
    width: 272px;
  }

  .sidebar.open {
    left: 0;
  }

  .topbar {
    min-height: 68px;
    padding: 11px 14px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .logout-button {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .topbar .eyebrow {
    display: none;
  }

  .topbar h2 {
    margin: 0;
    font-size: 15px;
  }

  .admin-profile {
    gap: 6px;
  }

  .admin-avatar {
    width: 36px;
    height: 36px;
  }

  .logout-button {
    padding: 0 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ADMIN GLOBAL 10.1A2B — standard readable typography */
html {
  font-size: 16px;
}

body {
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.sidebar-brand strong {
  font-size: 16px;
  line-height: 1.3;
}

.sidebar-brand small,
.sidebar-status,
.sidebar-status small {
  font-size: 13px;
  line-height: 1.45;
}

.nav-group-label {
  padding-top: 3px;
  padding-bottom: 7px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.nav-item,
.nav-item-child {
  min-height: 44px;
  font-size: 15px;
  line-height: 1.35;
}

.topbar h2,
.page-header h1,
.dashboard-header h1 {
  font-size: clamp(24px, 2.25vw, 28px);
  line-height: 1.2;
}

.eyebrow,
.breadcrumb,
.topbar-meta,
.admin-role,
.admin-email {
  font-size: 13px;
  line-height: 1.4;
}

.dashboard-content,
.management-content,
.service-content,
.audit-content,
.platform-content,
.otp-content {
  font-size: 16px;
  line-height: 1.5;
}

.dashboard-content p,
.dashboard-content li,
.management-content p,
.management-content li,
.service-content p,
.service-content li,
.audit-content p,
.audit-content li,
.platform-content p,
.platform-content li,
.otp-content p,
.otp-content li,
.modal p,
.modal li,
.drawer p,
.drawer li {
  font-size: 15px;
  line-height: 1.55;
}

button,
.button,
.primary-button,
.secondary-button,
.logout-button,
.action-button,
input,
select,
textarea {
  font-size: 15px;
  line-height: 1.4;
}

label,
.form-label,
.field-label,
.filter-label {
  font-size: 14px;
  line-height: 1.45;
}

input,
select,
textarea {
  min-height: 42px;
}

textarea {
  min-height: 104px;
}

table th,
.data-table th,
.management-table th {
  font-size: 14px;
  line-height: 1.4;
}

table td,
.data-table td,
.management-table td {
  font-size: 15px;
  line-height: 1.45;
}

.panel-title,
.card-title,
.section-title,
.management-title,
.service-title,
.modal-title,
.drawer-title {
  font-size: 18px;
  line-height: 1.3;
}

.panel-subtitle,
.card-subtitle,
.section-description,
.helper-text,
.form-help,
.empty-description {
  font-size: 14px;
  line-height: 1.5;
}

.badge,
.status-badge,
.count-badge,
.login-badge,
.hero-badge,
.chip,
.pill,
.tag {
  font-size: 13px;
  line-height: 1.3;
}

summary,
details,
.pagination,
.pagination button,
.table-action,
.action-link {
  font-size: 14px;
  line-height: 1.4;
}

small,
.small-text,
.meta,
.metadata,
.timestamp,
.audit-meta {
  font-size: 13px;
  line-height: 1.45;
}

/* Vehicle and Job Driver pages previously contained the smallest typography. */
.vehicle-job-shell,
.vehicle-job-shell p,
.vehicle-job-shell label,
.vehicle-job-shell button,
.vehicle-job-shell input,
.vehicle-job-shell select,
.vehicle-job-shell textarea,
.vehicle-job-management,
.vehicle-job-management p,
.vehicle-job-management label,
.vehicle-job-management button,
.vehicle-job-management input,
.vehicle-job-management select,
.vehicle-job-management textarea {
  font-size: 15px;
  line-height: 1.5;
}

.vehicle-job-shell h1,
.vehicle-job-management h1 {
  font-size: clamp(24px, 2.25vw, 28px);
  line-height: 1.2;
}

.vehicle-job-shell h2,
.vehicle-job-management h2,
.vehicle-job-shell h3,
.vehicle-job-management h3 {
  font-size: 18px;
  line-height: 1.3;
}

.vehicle-job-shell table th,
.vehicle-job-management table th {
  font-size: 14px;
}

.vehicle-job-shell table td,
.vehicle-job-management table td {
  font-size: 15px;
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .nav-item,
  .nav-item-child {
    font-size: 15px;
  }

  .topbar h2,
  .page-header h1,
  .dashboard-header h1 {
    font-size: 23px;
  }

  table td,
  .data-table td,
  .management-table td {
    font-size: 14px;
  }
}


/* ADMIN GLOBAL 10.1A2D — darker forest-green identity */
:root {
  --admin-green-950: #062A20;
  --admin-green-900: #0B3D2E;
  --admin-green-800: #0F4A35;
  --admin-green-700: #145C42;
  --admin-green-600: #1F7A55;
  --admin-green-100: #E3F2EA;
  --admin-green-50: #F2F7F4;
  --admin-border: #D5E3DB;
}

.sidebar {
  background:
    linear-gradient(
      180deg,
      #062A20 0%,
      #0B3D2E 48%,
      #0F4A35 100%
    );
}

.auth-shell {
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(31, 122, 85, 0.16),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #062A20 0%,
      #0B3D2E 58%,
      #0F4A35 100%
    );
}

.primary-button {
  background:
    linear-gradient(135deg, #0B3D2E, #145C42);
  box-shadow: 0 12px 24px rgba(6, 42, 32, 0.24);
}

.primary-button:hover {
  background:
    linear-gradient(135deg, #0F4A35, #1F7A55);
  box-shadow: 0 14px 30px rgba(6, 42, 32, 0.28);
}

.admin-avatar {
  background:
    linear-gradient(145deg, #0B3D2E, #145C42);
}

.eyebrow,
.login-badge,
.hero-badge,
.count-badge {
  color: #0F4A35;
}

.nav-item.active {
  color: #0B3D2E;
}

.nav-item.active::before {
  background: #1F7A55;
}

.nav-item.active .nav-symbol {
  background: #E3F2EA;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(20, 92, 66, 0.28);
}
