:root {
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #94a3b8;
  --sidebar-active: #38bdf8;
  --page-bg: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(148, 163, 184, 0.16);
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.14);
  --text-main: #0f172a;
  --text-soft: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 18%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.layout-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 272px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--sidebar-text);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 0.75rem 1.25rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.brand-subtitle {
  color: var(--sidebar-muted);
  font-size: 0.8rem;
}

.menu-section {
  padding: 1rem 0.85rem 0.45rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-link,
.menu-link-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.menu-link:hover,
.menu-link-group:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.menu-link.active,
.menu-link-group.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.24));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.16);
}

.menu-group-children {
  margin: 0.25rem 0 0.4rem 1rem;
  padding-left: 1rem;
  border-left: 1px dashed rgba(148, 163, 184, 0.25);
}

.main-content {
  flex: 1;
  min-width: 0;
}

.topbar {
  padding: 1.25rem 1.5rem 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(37, 99, 235, 0.92)),
    linear-gradient(180deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-card::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.hero-card::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  right: 180px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.hero-subtitle,
.hero-meta {
  color: rgba(255, 255, 255, 0.85);
}

.hero-meta {
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.profile-box {
  min-width: 220px;
  text-align: right;
}

.profile-name {
  font-size: 1rem;
  font-weight: 800;
}

.profile-role {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.page-wrap {
  padding: 1.5rem;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.filter-card {
  padding: 1.2rem;
}

.form-label {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  min-height: 44px;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.btn-primary {
  min-height: 44px;
  border: 0;
  border-radius: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
}

.metric-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 1.3rem;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -10px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.metric-card .card-body {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.05rem;
}

.metric-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff !important;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.metric-value {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metric-footnote {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92) !important;
}


.metric-ps { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); }
.metric-potensi { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.metric-ogp { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
.metric-oke { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.metric-belum { background: linear-gradient(135deg, #dc2626 0%, #f43f5e 100%); }
.metric-undispatch { background: linear-gradient(135deg, #334155 0%, #475569 100%); }
.metric-dark { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.metric-idle { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }

.section-card {
  border-radius: 1.35rem;
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.4rem 0;
}

.section-title {
  color: var(--text-main);
  font-size: 1.03rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.chart-card .card-body {
  min-height: 330px;
  padding: 1rem 1.4rem 1.4rem;
}

.chart-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem 0.4rem;
}

.table-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.dashboard-table {
  margin-bottom: 0;
}

.dashboard-table th,
.dashboard-table td {
  white-space: nowrap;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  padding: 0.8rem 0.75rem;
  border-color: rgba(226, 232, 240, 0.9);
}

.dashboard-table thead th,
.sisa-pivot-table thead th,
#drilldownTable thead th,
.dataTables_scrollHead table thead th {
  color: #fff !important;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1e293b !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.sisa-pivot-table,
.sisa-pivot-table th,
.sisa-pivot-table td,
.dashboard-table,
.dashboard-table th,
.dashboard-table td,
#drilldownTable,
#drilldownTable th,
#drilldownTable td {
  border: 1px solid #cbd5e1 !important;
}


.sisa-pivot-table td.clickable-pivot-cell {
  cursor: pointer;
  transition: all 0.15s ease;
}

.sisa-pivot-table td.clickable-pivot-cell:hover {
  background-color: rgba(37, 99, 235, 0.15) !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}

.dashboard-table td:first-child,
.dashboard-table th:first-child {
  text-align: left;
}

.dashboard-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}


.th-area { background: linear-gradient(135deg, #0f172a, #1e293b); }
.th-progress { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.th-ready { background: linear-gradient(135deg, #64748b, #94a3b8); }
.th-done { background: linear-gradient(135deg, #16a34a, #22c55e); }
.th-cust { background: linear-gradient(135deg, #d97706, #f59e0b); }
.th-hr { background: linear-gradient(135deg, #0891b2, #06b6d4); }

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-status-compwork,
.badge-status-psok,
.badge-status-ps-ok,
.badge-status-complete,
.badge-status-complete-ok,
.badge-status-completeok,
.badge-status-done,
.badge-status-closed {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.badge-status-startwork,
.badge-status-oke-tarik {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
}

.badge-status-workfail,
.badge-status-belum-dikerjakan {
  background: rgba(244, 63, 94, 0.14);
  color: #be123c;
}

.badge-status-empty {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info {
  color: var(--text-soft);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.8rem;
  padding: 0.45rem 0.7rem;
  background: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.8rem !important;
  border: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
  color: #fff !important;
}

/* ─── Matrix Compact Table ───────────────────────────────────────── */
.matrix-compact-table th,
.matrix-compact-table td {
  padding: 0.3rem 0.55rem !important;
  font-size: 0.70rem !important;
  vertical-align: middle;
  white-space: nowrap;
  text-align: left !important;
}

.matrix-compact-table thead th {
  background: linear-gradient(135deg, #1e293b, #334155) !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.matrix-compact-row:hover td {
  filter: brightness(0.94);
  transition: filter 0.12s ease;
}

.matrix-compact-table .bg-success-subtle  { background-color: rgba(22, 163, 74, 0.22) !important; border-left: 4px solid #16a34a; }
.matrix-compact-table .bg-primary-subtle  { background-color: rgba(37, 99, 235, 0.18) !important; border-left: 4px solid #2563eb; }
.matrix-compact-table .bg-warning-subtle  { background-color: rgba(202, 138, 4, 0.22) !important; border-left: 4px solid #ca8a04; }
.matrix-compact-table .bg-secondary-subtle { background-color: rgba(100, 116, 139, 0.15) !important; border-left: 4px solid #64748b; }
.matrix-compact-table .bg-danger-subtle   { background-color: rgba(220, 38, 38, 0.18) !important; border-left: 4px solid #dc2626; }

/* ─── Legend Dot ─────────────────────────────────────────────────── */
.matrix-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ─── Modern Matrix Layout (Workzone Header + TIM Beside Order) ── */
tr.dt-rowgroup-wz td {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #f8fafc !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem !important;
  border-top: 3px solid #0ea5e9 !important;
}

.tim-row-first td {
  border-top: 2px solid #cbd5e1 !important; /* Pemisah tegas antar Tim */
}

.tim-row-subsequent td {
  border-top: 1px solid #f1f5f9 !important;
}

/* Kolom TIM (Col 1): Background halus agar menyatu */
.matrix-compact-table tr td:nth-child(1) {
  background-color: rgba(248, 250, 252, 0.6); 
  font-weight: 700 !important;
  color: #1e293b !important;
}

.tim-cell-merged {
  color: transparent !important;
  background-color: transparent !important;
  border-top: none !important;
  pointer-events: none;
  user-select: none;
}

.tim-cell-merged * {
  visibility: hidden !important;
}

/* ─── Summary Product Badges (Soft Type) ────────────────────────── */
.ps-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  justify-content: center;
}

.badge-soft-summary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ─── Compact List Layout (Anti-Scroll) ────────────────────────── */
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 5px 0;
}

.compact-item {
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #fff;
  transition: background 0.2s;
  border-radius: 8px;
}

.compact-item:hover {
  background: rgba(0, 0, 0, 0.01);
}

.compact-item:last-child {
  border-bottom: none;
}

.compact-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 10px;
}

.compact-tim-track {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.compact-tim {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
}

.compact-track {
  font-size: 0.65rem;
  color: #64748b;
  font-family: inherit;
}

.compact-status {
  text-align: right;
}

.compact-catatan {
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.02);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
}
/* ─── Team Flagging Badges ───────────────────────────────────────── */
.badge-team-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-ogp {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse-ogp 2s infinite;
}

.badge-idle {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse-ogp {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Row separation enhancement */
.matrix-compact-table tbody tr {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* ─── Matrix Info Status (Light Blue) ────────────────────────── */
.matrix-compact-table .bg-info-subtle {
    background-color: rgba(6, 182, 212, 0.12) !important;
    border-left: 4px solid #06b6d4 !important;
}
.matrix-compact-table .text-info {
    color: #0891b2 !important;
    font-weight: 700;
}

/* ─── Solid Tracking Badges (High Contrast) ─────────────────── */
.matrix-compact-table .badge.bg-success { background-color: #10b981 !important; color: #fff !important; }
.matrix-compact-table .badge.bg-danger { background-color: #ef4444 !important; color: #fff !important; }
.matrix-compact-table .badge.bg-warning { background-color: #f59e0b !important; color: #fff !important; }
.matrix-compact-table .badge.bg-info { background-color: #06b6d4 !important; color: #fff !important; }
.matrix-compact-table .badge.bg-primary { background-color: #3b82f6 !important; color: #fff !important; }
.matrix-compact-table .badge.bg-secondary { background-color: #64748b !important; color: #fff !important; }

/* ─── Status Mini Badges (TRACK ORDER Column) ─────────────────── */
.badge-mini {
    font-size: 0.55rem !important;
    font-weight: 800 !important;
    padding: 0.25em 0.5em !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.bg-ps { background-color: #10b981 !important; color: #fff !important; } 
.bg-ogp-status { background-color: #f59e0b !important; color: #fff !important; } 
.bg-hr { background-color: #3b82f6 !important; color: #fff !important; } 
.bg-issue { background-color: #ef4444 !important; color: #fff !important; } 
.bg-no-update { background-color: #64748b !important; color: #fff !important; }

/* ─── Metric Card Grid Enhancement (7 Columns) ─────────────────── */
@media (min-width: 1200px) {
    .metric-grid-7 {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.75rem !important;
        margin-right: -0.75rem;
        margin-left: -0.75rem;
    }
    .metric-grid-7 > [class*="col-"] {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        padding-left: 0.375rem !important;
        padding-right: 0.375rem !important;
    }
    .metric-card .card-body {
        padding: 0.9rem 0.8rem !important;
    }
    .metric-value {
        font-size: 1.7rem !important;
    }
    .metric-label {
        font-size: 0.7rem !important;
    }
}

/* ─── DOMINANT WHITE MINIMALIST THEME (As requested) ─────────────────── */
body {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

/* Headers: Minimalist Light Header */
.matrix-compact-table thead th,
.sisa-pivot-table thead th,
.dashboard-table thead th {
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #cbd5e1 !important;
  border-top: 0 !important;
  text-align: left !important;
}

/* Data Rows: Clean White */
.matrix-compact-table tbody tr,
.sisa-pivot-table tbody tr {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.matrix-compact-table tbody tr:hover,
.sisa-pivot-table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Workzone Row Group Header: Soft Lavender Tint */
.dataTables_wrapper table.dataTable tbody tr.dtrg-group td {
  background: #f4f6ff !important;
  color: #1e293b !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  padding: 0.6rem 0.85rem !important;
  border-top: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* ODC Pill Badge */
.odc-badge,
.link-maps {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background-color: #f0f3ff;
  color: #4338ca !important;
  font-size: 0.70rem;
  font-weight: 700;
  border: 1px solid #e0e7ff;
}

/* Soft Pill Badges for Status Morning */
.badge-soft-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-sedang { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.status-belum { background: #fff1f2; color: #e11d48; border: 1px solid #ffe4e6; }
.status-pending { background: #fdf4ff; color: #c026d3; border: 1px solid #fae8ff; }
.status-oke { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.status-ps { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }

/* Subtotals & Grand Totals */
.matriks-group-total td,
.sisa-pivot-table .table-secondary td {
  background-color: #eef2ff !important;
  color: #1e293b !important;
  font-weight: 800 !important;
  border-top: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.matriks-grand-total td,
.sisa-pivot-table tfoot tr td {
  background-color: #e0e7ff !important;
  color: #1e293b !important;
  font-weight: 800 !important;
  border-top: 3px double #94a3b8 !important;
  font-size: 0.85rem !important;
}

/* ─── Navigation Pills Styling ────────────────────────── */
.custom-main-nav .nav-link {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

.custom-main-nav .nav-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.custom-main-nav .nav-link.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  border-color: #2563eb !important;
}

.sub-tab-btn {
  font-size: 0.78rem;
  padding: 0.4rem 1rem;
  border-width: 1.5px;
}

.sub-tab-btn.active {
  background-color: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
}
