/* ==========================================================================
   NATIONAL LAND ACQUISITION & MANAGEMENT SYSTEM (NLAMS)
   Design System: Bharat Land Governance (Google Stitch Design Specification)
   Palette Tokens:
   - Background: #f8f9ff
   - Surface: #ffffff
   - Surface Container Low (SideNav): #eff4ff
   - Surface Container High: #dce9ff
   - Surface Container Highest: #d3e4fe
   - On Surface (Text Ink): #0b1c30
   - On Surface Variant (Muted): #45464d
   - Primary Container (Deep Navy): #131b2e
   - Secondary (Emerald Action): #006c4a
   - Secondary Container (Emerald Pill): #82f5c1 / #ecfdf5
   - On Secondary Container: #00714e
   - Outline Variant (Border): #c6c6cd / #e2e8f0
   - Semantic Metrics: Blue #2563EB | Green #10B981 | Orange #F59E0B | Red #ba1a1a
   ========================================================================== */

:root {
  /* Google Stitch: Bharat Land Governance Core Tokens */
  --surface: #ffffff;
  --surface-dim: #cbdbf5;
  --surface-bright: #f8f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-container-high: #dce9ff;
  --surface-container-highest: #d3e4fe;
  
  --on-surface: #0b1c30;
  --on-surface-variant: #45464d;
  --inverse-surface: #213145;
  --inverse-on-surface: #eaf1ff;
  
  --outline: #76777d;
  --outline-variant: #c6c6cd;
  --border-light: #e2e8f0;
  
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #131b2e;
  --on-primary-container: #ffffff;
  --inverse-primary: #bec6e0;
  
  --secondary: #006c4a;
  --on-secondary: #ffffff;
  --secondary-container: #82f5c1;
  --secondary-container-subtle: #ecfdf5;
  --on-secondary-container: #00714e;
  
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  
  --background: #f8f9ff;
  --on-background: #0b1c30;

  /* Metric semantic accents */
  --metric-blue: #2563EB;
  --metric-green: #10B981;
  --metric-orange: #F59E0B;
  --metric-purple: #7C3AED;
  
  /* Legacy mapping aliases */
  --gov-primary-navy: #131b2e;
  --gov-dark-navy: #0b1c30;
  --gov-blue: #1d4ed8;
  --gov-accent-blue: #2563eb;
  --gov-success-green: #006c4a;
  --gov-light-green: #82f5c1;
  --gov-warning-orange: #f59e0b;
  --gov-gold: #d97706;
  --gov-purple: #7c3aed;
  --gov-red: #ba1a1a;
  
  --gov-bg-page: #f8f9ff;
  --gov-bg-card: #ffffff;
  --gov-border: #e2e8f0;
  
  --gov-text-primary: #0b1c30;
  --gov-text-secondary: #45464d;
  --gov-text-light: #76777d;

  --font-body: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', 'Noto Sans Devanagari', -apple-system, sans-serif;

  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --shadow-card: 0px 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0px 6px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0px 12px 28px rgba(15, 23, 42, 0.09);
}

/* Global Multilingual Switcher */
.gov-lang-switcher-wrap {
  user-select: none;
}
.btn-lang-selector:hover {
  background: var(--surface-container-high) !important;
  border-color: var(--outline) !important;
}
@media (max-width: 768px) {
  .lang-text-desktop { display: none !important; }
  .lang-text-mobile { display: inline-block !important; }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #10B981); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--background);
  font-family: var(--font-body);
  color: var(--on-surface);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Google Material Symbols & Vector Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}
.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1;
}

.lucide-icon, .btn-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.kpi-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
}

/* Custom Stitch Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-bright);
}
::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--outline);
}

/* ================= 1. OFFICIAL STITCH GOVERNMENT TOPBAR ================= */
.gov-official-topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0px 2px 8px rgba(15, 23, 42, 0.04);
  color: var(--on-surface);
  gap: 14px;
}

.topbar-branding-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* State Emblem / Bhoosutra Brand Logo */
.state-emblem-wrap, .login-emblem-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bhoosutra-logo-img,
.ashok-stambh-img {
  width: auto;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
  display: block;
}

.bhoosutra-logo-img:hover {
  transform: scale(1.04);
}

.gov-title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  justify-content: center;
}

.gov-dept-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gov-authority-text {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  color: #1D4ED8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.gov-divider-slash {
  color: #CBD5E1;
  font-size: 10.5px;
}

.gov-dept-name {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gov-proto-badge {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 4px;
}

.gov-app-heading {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(220px, 36vw, 620px);
}

.gov-app-subtag {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 500;
}

/* Topbar Controls Right */
.topbar-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Demo Mode Topbar Widget */
.sih-demo-mode-topbar-widget {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
  border-radius: 7px;
  padding: 3px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.demo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseLiveDot 1.8s infinite;
  display: inline-block;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.demo-role-select {
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid #475569;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
  outline: none;
}

.btn-demo-exit {
  background: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-demo-exit:hover {
  background: rgba(220, 38, 38, 0.4);
  color: #FFFFFF;
}

/* Financial Year Selector */
.fy-selector-box {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  color: var(--on-surface);
}

.fy-label {
  color: var(--on-surface-variant);
  font-weight: 700;
}

.fy-dropdown {
  background: transparent;
  border: none;
  color: var(--on-surface);
  font-weight: 700;
  font-size: 11.5px;
  outline: none;
  cursor: pointer;
}

/* Search Bar */
.gov-search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: 9999px;
  padding: 6px 14px;
  width: 250px;
  gap: 8px;
  transition: all 0.2s ease;
}

.gov-search-bar:focus-within {
  background: #ffffff;
  border-color: var(--metric-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.gov-search-icon {
  width: 14px;
  height: 14px;
  stroke: var(--on-surface-variant);
}

.gov-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--on-surface);
  width: 100%;
  font-weight: 500;
}

.gov-search-bar input::placeholder {
  color: var(--on-surface-variant);
}

/* Notifications Button */
.gov-notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--on-surface);
  transition: all 0.15s ease;
}

.gov-notif-btn:hover {
  background: var(--surface-container-high);
}

.gov-bell-icon {
  width: 17px;
  height: 17px;
  stroke: var(--on-surface);
}

.notif-red-counter {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--error);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}

/* User Profile */
.gov-user-profile-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--outline-variant);
}

.gov-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-container-highest);
  color: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid var(--outline-variant);
}

.gov-user-text {
  display: flex;
  flex-direction: column;
}

.gov-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}

.gov-user-role-label {
  font-size: 10px;
  color: var(--on-surface-variant);
  font-weight: 600;
}

.gov-logout-btn {
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.gov-logout-btn:hover {
  color: var(--error);
}

.gov-logout-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

/* ================= 2. WORKSPACE LAYOUT: STITCH SIDENAV + MAIN ================= */
.app-workspace {
  display: flex;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--background);
  margin: 0;
  padding: 0;
}

/* Google Stitch Light Navigation Drawer (Surface Container Low: #eff4ff) */
.gov-dark-sidebar {
  width: 260px;
  background: var(--surface-container-low);
  border-right: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: none;
  position: relative;
  top: 0;
}

/* Top Profile Card in SideNav */
.sidebar-profile-header {
  padding: 20px 16px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--outline-variant);
  background: #ffffff;
}

.sph-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-container-highest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-container);
  overflow: hidden;
  flex-shrink: 0;
}

.sph-text-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sph-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sph-dept {
  font-size: 11px;
  color: var(--on-surface-variant);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sph-verified {
  font-size: 10.5px;
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

/* SideNav Navigation Links List */
.sidebar-menu-list {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* Stitch Pill Link */
.sidebar-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 16px;
  border-radius: 9999px; /* Stitch Pill Nav */
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: all 0.15s ease-in-out;
  margin: 0 4px;
}

.sidebar-menu-btn:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

.sidebar-menu-btn.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 108, 74, 0.12);
}

.sb-lucide-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  opacity: 0.95;
}

.sb-pill-badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  background: var(--secondary);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 9999px;
}

.sidebar-gov-trust-footer {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid var(--outline-variant);
}

.trust-badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface-variant);
}

.trust-shield-icon {
  width: 20px;
  height: 20px;
  stroke: var(--secondary);
}

.t-main {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--on-surface);
}

.t-sub {
  font-size: 10px;
  color: var(--on-surface-variant);
}

/* Main Content Surface */
.gov-main-viewport {
  flex: 1;
  height: 100%;
  max-height: 100%;
  padding: 20px 24px 60px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: #F8FAFC;
}

.view-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.vh-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.view-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.view-subtitle {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}

.view-breadcrumb {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.view-body-content, .view-body-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================= 3. STITCH CARDS & HERO SURFACES ================= */
.national-command-hero, .state-command-hero, .district-workspace-hero, .agency-workspace-hero, .field-workspace-hero, .citizen-portal-hero, .project-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.national-command-hero {
  border-left: 4px solid var(--primary-container);
}

.state-command-hero {
  border-left: 4px solid var(--metric-blue);
}

.district-workspace-hero {
  border-left: 4px solid var(--metric-orange);
}

.agency-workspace-hero {
  border-left: 4px solid var(--secondary);
}

.field-workspace-hero {
  border-left: 4px solid var(--metric-green);
}

.citizen-portal-hero {
  border-left: 4px solid var(--metric-blue);
  flex-direction: column;
  align-items: flex-start;
}

.cmd-pill, .state-pill, .district-pill, .agency-pill, .field-pill, .citizen-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: var(--surface-container-high);
  color: var(--on-surface);
  padding: 3px 8px;
  border-radius: 9999px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  max-width: 100%;
  box-sizing: border-box;
}

/* ================= 4. STITCH KPI METRIC CARDS ================= */
.gov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gov-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gov-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 16px rgba(15, 23, 42, 0.08);
}

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

.kpi-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bg-gov-blue { background: #EFF6FF; color: var(--metric-blue); }
.bg-gov-green { background: #ECFDF5; color: var(--secondary); }
.bg-gov-orange { background: #FFFBEB; color: var(--metric-orange); }
.bg-gov-purple { background: #F5F3FF; color: var(--metric-purple); }
.bg-gov-navy { background: var(--surface-container-high); color: var(--primary-container); }
.bg-accent-blue { background: #EFF6FF; color: var(--metric-blue); }

.kpi-type-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
  padding: 2px 8px;
  border-radius: 9999px;
}

.kpi-content-block {
  display: flex;
  flex-direction: column;
}

.kpi-title-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--on-surface-variant);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 2px 0;
}

.kpi-big-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-unit-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 600;
}

.kpi-view-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 6px;
}

.kpi-view-link:hover {
  text-decoration: underline;
}

.text-green { color: var(--secondary) !important; }
.text-orange { color: var(--metric-orange) !important; }
.text-purple { color: var(--metric-purple) !important; }
.text-blue { color: var(--metric-blue) !important; }
.text-navy { color: var(--primary-container) !important; }
.text-red { color: var(--error) !important; }

/* ================= 5. STITCH PANEL CARDS & DATA TABLES ================= */
.gov-panel-card, .glass-panel, .glass-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.panel-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.panel-title-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.panel-sub-label {
  font-size: 11.5px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.panel-badge-orange {
  font-size: 10.5px;
  font-weight: 800;
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 8px;
  border-radius: 9999px;
}

.panel-badge-blue {
  font-size: 10.5px;
  font-weight: 800;
  background: #EFF6FF;
  color: var(--metric-blue);
  padding: 2px 8px;
  border-radius: 9999px;
}

.gov-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

/* Enterprise Data Tables (Stitch Spec) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.gov-enterprise-table, .gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.gov-enterprise-table th, .gov-table th {
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--outline-variant);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gov-enterprise-table td, .gov-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--on-surface);
  vertical-align: middle;
}

.gov-enterprise-table tbody tr:hover, .gov-table tbody tr:hover {
  background: #F1F5F9;
}

/* Status Badges */
.gov-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pill-completed {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.pill-approved {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.pill-inprogress {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.pill-pending {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.pill-delayed {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.pill-draft {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.gov-stage-chip {
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-container-low);
  color: var(--on-surface);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-btn-group {
  display: flex;
  gap: 6px;
}

/* Progress Track */
.gov-progress-track {
  width: 100%;
  height: 6px;
  background: var(--surface-container-high);
  border-radius: 9999px;
  overflow: hidden;
}

.gov-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

/* ================= 6. BUTTONS (Stitch Design Spec) ================= */
.btn-gov-primary {
  background: var(--primary-container);
  color: #FFFFFF;
  border: 1px solid var(--primary-container);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease-in-out;
}

.btn-gov-primary:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 2px 8px rgba(19, 27, 46, 0.2);
}

.btn-gov-secondary {
  background: var(--surface-container-low);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease-in-out;
}

.btn-gov-secondary:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

.btn-gov-warning {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-gov-warning:hover {
  background: #FEF3C7;
}

.btn-gov-success {
  background: var(--secondary);
  color: #FFFFFF;
  border: 1px solid var(--secondary);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease-in-out;
}

.btn-gov-success:hover {
  background: #005137;
  border-color: #005137;
}

.btn-sm {
  padding: 5px 10px !important;
  font-size: 11.5px !important;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 10px !important;
}

/* ================= 7. 10-STAGE HORIZONTAL TIMELINE ================= */
.timeline-horizontal-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  position: relative;
  overflow-x: auto;
}

.th-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 80px;
}

.th-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
  margin-bottom: 6px;
}

.th-node.completed .th-circle {
  background: #43A047;
  color: #FFFFFF;
}

.th-node.current .th-circle {
  background: #165AA7;
  color: #FFFFFF;
  border: 2px solid #B9DDF2;
  box-shadow: 0 0 8px rgba(22, 90, 167, 0.4);
}

.th-node.pending .th-circle {
  background: #F5F8FC;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.th-name {
  font-size: 9.5px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.th-status {
  font-size: 8px;
  font-weight: 700;
  color: #64748B;
}

.th-connector {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #E2E8F0;
  z-index: 1;
}

.th-node.completed .th-connector {
  background: #43A047;
}

/* ================= 8. GIS LAND MAP VIEWPORT & LEGEND ================= */
.gis-map-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  height: calc(100vh - 180px);
}

.gis-sidebar-panel {
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}

.gis-filter-block {
  margin: 10px 0;
  padding: 10px;
  background: #F5F8FC;
  border-radius: 8px;
  border: 1px solid var(--gov-border);
}

.gis-legend-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
}

.legend-title {
  font-size: 10px;
  font-weight: 800;
  color: #062B5B;
  display: block;
  margin-bottom: 6px;
}

.leg-item {
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #1E293B;
}

.leg-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.gis-parcels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.gis-parcel-item {
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gis-parcel-item:hover {
  border-color: #165AA7;
  background: #FFFFFF;
}

.gp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.gp-owner {
  font-size: 12px;
  font-weight: 700;
  color: #062B5B;
}

.gp-meta {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

.gis-map-viewport {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--gov-border);
  box-shadow: var(--shadow-card);
  background: #F5F8FC;
}

.gis-popup-content {
  font-family: var(--font-body);
  padding: 2px;
}

.popup-tag {
  font-size: 9px;
  font-weight: 800;
  background: #062B5B;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 3px;
}

.popup-title {
  font-size: 12px;
  font-weight: 800;
  color: #062B5B;
  margin: 4px 0 2px 0;
}

.popup-owner {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 6px;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 10px;
  background: #F5F8FC;
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.popup-btn {
  width: 100%;
  text-align: center;
}

/* ================= 9. CITIZEN & FIELD COMPONENTS ================= */
.citizen-land-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 12.5px;
}

.cl-label {
  color: #64748B;
  font-size: 11px;
  display: block;
}

.citizen-comp-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-large-val {
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.clv-label {
  font-size: 11px;
  color: #64748B;
}

.clv-amount {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0;
}

.clv-sub {
  font-size: 11px;
  color: #165AA7;
  font-weight: 600;
}

.comp-item-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.cil-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #E2E8F0;
}

.highlight-row {
  background: rgba(67, 160, 71, 0.1);
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
}

.citizen-rr-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rr-benefit-item {
  display: flex;
  gap: 12px;
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 12px;
}

.rbi-icon {
  font-size: 20px;
  color: #165AA7;
}

.rr-benefit-item strong {
  font-size: 12.5px;
  color: #062B5B;
}

.rr-benefit-item p {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

.citizen-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.ct-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.ct-node.done { color: #43A047; }
.ct-node.active { color: #165AA7; }
.ct-node.pending { color: #64748B; }

/* Field Officer Schedule */
.field-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sched-card {
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 12px;
}

.sched-card.active-sched {
  background: #FFFFFF;
  border: 2px solid #F39C12;
}

.sched-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.sched-body {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.3;
}

.field-checklist-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F5F8FC;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--gov-border);
}

.file-upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
}

.live-status-dot-tag {
  font-size: 10px;
  font-weight: 800;
  color: #43A047;
  background: rgba(67, 160, 71, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ================= 10. MODALS & FORMS ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 30, 66, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
}

.modal-card-lg {
  max-width: 760px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gov-border);
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #062B5B;
}

.modal-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #64748B;
  cursor: pointer;
}

.parcel-brief-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #F5F8FC;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gov-border);
  margin-bottom: 12px;
  font-size: 11px;
}

.checklist-heading {
  font-size: 12px;
  font-weight: 700;
  color: #062B5B;
  margin-bottom: 8px;
}

.check-box-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 11.5px;
}

.check-box-item input {
  margin-top: 2px;
}

.modal-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.gov-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gov-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
}

.gov-input {
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #1E293B;
  background: #FFFFFF;
  outline: none;
}

.gov-input:focus {
  border-color: #165AA7;
  box-shadow: 0 0 0 3px rgba(22, 90, 167, 0.12);
}

.input-with-btn {
  display: flex;
  gap: 6px;
}

/* ================= 11. OFFICIAL GOVERNMENT FOOTER (#041E42) ================= */
.gov-official-footer {
  height: 38px;
  background: #041E42;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 11px;
  position: relative;
  z-index: 100;
}

.footer-content-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ft-bold {
  font-weight: 700;
  color: #FFFFFF;
}

.ft-divider {
  color: rgba(255, 255, 255, 0.4);
}

.ft-muted {
  color: #B9DDF2;
}

/* ================= 12. FLOATING HACKATHON DEMO BAR ================= */
.hackathon-demo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: #041E42;
  border-top: 2px solid #E6A23C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}

.demo-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-badge {
  background: #E6A23C;
  color: #041E42;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.demo-desc {
  color: #B9DDF2;
  font-size: 12px;
  font-weight: 600;
}

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

.demo-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
}

.demo-select option {
  background: #062B5B;
  color: #FFFFFF;
}

.btn-demo-action {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.btn-advance {
  background: #E6A23C;
  color: #041E42;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-map {
  background: #165AA7;
  color: #FFFFFF;
}

/* ================= 13. LOGIN PAGE WITH TRANSPARENT LAND BACKGROUND ================= */
.login-page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(4, 30, 66, 0.78) 0%, rgba(6, 43, 91, 0.72) 50%, rgba(10, 61, 117, 0.68) 100%), 
              url('assets/land_bg.jpg') center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-header-banner {
  background: rgba(6, 43, 91, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #E6A23C;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #FFFFFF;
}

.login-emblem-wrap {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-titles {
  text-align: left;
}

.login-gov-tag {
  font-size: 11px;
  font-weight: 800;
  color: #B9DDF2;
  letter-spacing: 0.8px;
}

.login-main-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 12px;
  color: #CBD5E1;
  margin-top: 2px;
}

.login-card-grid {
  max-width: 500px;
  width: 100%;
  margin: 36px auto;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

/* Frosted Glassmorphic Cards Over Land Background */
.glass-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(4, 30, 66, 0.35) !important;
}

.login-form-card {
  padding: 28px 30px;
}

.roles-grid-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(245, 248, 252, 0.85);
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-quick-item:hover {
  background: #FFFFFF;
  border-color: #165AA7;
  box-shadow: 0 4px 12px rgba(22, 90, 167, 0.15);
  transform: translateX(3px);
}

.rq-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rq-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rq-info strong {
  font-size: 12px;
  color: #062B5B;
}

.cred-preview {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

.cred-preview code {
  font-family: var(--font-mono);
  background: rgba(6, 43, 91, 0.08);
  color: #062B5B;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

.login-page-footer {
  background: rgba(4, 30, 66, 0.9);
  backdrop-filter: blur(8px);
  color: #CBD5E1;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================= 14. TOAST NOTIFICATIONS ================= */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast-item {
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-left: 4px solid #165AA7;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.toast-title {
  font-size: 12px;
  color: #062B5B;
  font-weight: 700;
}

.toast-close {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
}

.toast-body {
  font-size: 11px;
  color: #1E293B;
}

/* Approvals, Feed, Reports, Mini Items */
.approval-card-item {
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.report-box {
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.report-box h4 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #062B5B;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-box p {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 12px;
}

.notif-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--gov-border);
  margin-bottom: 8px;
}

.notif-item-row.unread {
  background: rgba(22, 90, 167, 0.06);
  border-left: 4px solid #165AA7;
}

.notif-item-row.read {
  background: #FFFFFF;
}

.notif-body {
  flex: 1;
}

.notif-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.notif-body p {
  font-size: 11px;
  color: #64748B;
  margin: 2px 0 4px 0;
}

.link-blue {
  color: #165AA7;
  font-weight: 600;
  font-size: 12px;
}

.link-blue:hover {
  text-decoration: underline;
}

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

.doc-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 8px 12px;
}

.doc-mini-info strong {
  font-size: 12px;
  color: #062B5B;
}

.doc-mini-info .text-muted {
  font-size: 10.5px;
  color: #64748B;
}

.status-donut-grid {
  display: flex;
  align-items: center;
  gap: 20px;
}

.donut-visual-box {
  position: relative;
  width: 100px;
  height: 100px;
}

.donut-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.dc-num {
  font-size: 16px;
  font-weight: 800;
  color: #062B5B;
}

.dc-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  display: block;
}

.donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.alert-box-item {
  display: flex;
  gap: 12px;
  background: #F5F8FC;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.alert-delayed {
  border-left: 4px solid #E74C3C;
}

.alert-info {
  border-left: 4px solid #165AA7;
}

.abi-body strong {
  font-size: 12px;
  color: #062B5B;
}

.abi-body p {
  font-size: 11px;
  color: #64748B;
  margin: 2px 0 6px 0;
}

/* ================= 15. MODAL DIALOGS & OVERLAYS ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 30, 66, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: #FFFFFF;
  border-radius: 8px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #CBD5E1;
  display: flex;
  flex-direction: column;
}

.modal-card.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #062B5B;
  color: #FFFFFF;
  border-bottom: 2px solid #E6A23C;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 20px;
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--gov-border);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.action-btn-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

/* Timeline Components */
.timeline-step-bar-wrap {
  width: 100%;
}

/* ================= 16. WELCOME & SYSTEM OVERVIEW SCREEN ================= */
.welcome-page-container {
  width: 100%;
  min-height: 100vh;
  background-color: var(--gov-bg-page);
  color: var(--gov-text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 1. Fixed Header */
.welcome-fixed-header {
  height: 72px;
  background: linear-gradient(90deg, #041E42 0%, #062B5B 50%, #0A3D75 100%);
  border-bottom: 2px solid #E6A23C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(4, 30, 66, 0.2);
}

.welcome-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-header-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.welcome-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.welcome-nav-link {
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 4px;
}

.welcome-nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.btn-welcome-login {
  background: #E6A23C;
  color: #041E42;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #F59E0B;
  box-shadow: 0 2px 8px rgba(230, 162, 60, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-welcome-login:hover {
  background: #F59E0B;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(230, 162, 60, 0.5);
}

/* 2. Hero Section */
.welcome-hero-section {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, #041E42 0%, #062B5B 60%, #0D47A1 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  overflow: hidden;
}

/* Subtle Animated GIS Cadastral Grid Background */
.animated-gis-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: moveCadastralGrid 40s linear infinite;
  opacity: 0.65;
  pointer-events: none;
}

@keyframes moveCadastralGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 920px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-national-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 162, 60, 0.18);
  border: 1px solid #E6A23C;
  color: #FCD34D;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 14.5px;
  line-height: 1.6;
  color: #E2E8F0;
  max-width: 760px;
  margin: 0 auto 28px;
}

.hero-actions-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-hero-primary {
  background: #E6A23C;
  color: #041E42;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(230, 162, 60, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-hero-primary:hover {
  background: #F59E0B;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 162, 60, 0.55);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #CBD5E1;
}

.trust-pill-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 30, 66, 0.45);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 3. Interactive Workflow Section */
.welcome-section-wrap {
  padding: 64px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge-chip {
  display: inline-block;
  background: rgba(22, 90, 167, 0.12);
  color: #165AA7;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 8px;
}

.section-title-large {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #062B5B;
  margin-bottom: 8px;
}

.section-desc-sub {
  font-size: 13.5px;
  color: #64748B;
  max-width: 700px;
  margin: 0 auto;
}

/* Connected Two-Line Flow Diagram (No Slider) */
.workflow-two-lines-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  max-width: 1100px;
  margin: 0 auto;
}

.workflow-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.workflow-node-card {
  flex: 1 1 0;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 100px;
}

.workflow-node-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #165AA7;
  background: #EFF6FF;
  box-shadow: 0 6px 18px rgba(22, 90, 167, 0.15);
}

.node-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #062B5B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: transform 0.2s ease;
}

.workflow-node-card:hover .node-icon-box {
  transform: rotate(6deg) scale(1.1);
  background: #165AA7;
}

.node-label-title {
  font-size: 12px;
  font-weight: 700;
  color: #062B5B;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.workflow-row-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.connector-line-down {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #165AA7;
  background: #EFF6FF;
  border: 1px dashed #93C5FD;
  padding: 6px 20px;
  border-radius: 20px;
}

.connector-arrow-down {
  font-size: 14px;
}

/* Connecting Animated Arrows with Pulse Indicator */
.flow-arrow-separator {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #94A3B8;
  font-size: 16px;
  font-weight: 700;
}

.flow-pulse-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43A047;
  box-shadow: 0 0 6px #43A047;
  animation: pulseMove 2.4s linear infinite;
}

@keyframes pulseMove {
  0% { transform: scale(0.6); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0.3; }
}

@media (max-width: 900px) {
  .workflow-line-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .workflow-node-card {
    flex: 0 0 130px;
  }
}

/* Fullscreen / Full Window Map Styles */
.is-fullscreen-map,
.gis-welcome-box:fullscreen,
.map-wrapper-box:fullscreen,
.gov-panel-card:fullscreen,
#gisMainPanelWrap.is-fullscreen-map,
#subdistGisPanelWrap.is-fullscreen-map,
#districtGisPanelWrap.is-fullscreen-map,
#stateGisPanelWrap.is-fullscreen-map,
#agencyGisPanelWrap.is-fullscreen-map,
#dedicatedGisPanelWrap.is-fullscreen-map,
#contractorMapWrapper.is-fullscreen-map,
#welcomeGisBox.is-fullscreen-map {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 9999999 !important;
  background: #041E42 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
}

.is-fullscreen-map .panel-header-clean,
.is-fullscreen-map .panel-header-wrap {
  color: #FFFFFF !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

.is-fullscreen-map .panel-title-text,
.is-fullscreen-map h3,
.is-fullscreen-map h4 {
  color: #FFFFFF !important;
}

.is-fullscreen-map .text-muted {
  color: #CBD5E1 !important;
}

.is-fullscreen-map .map-wrapper-box,
.is-fullscreen-map .gis-map-canvas,
.is-fullscreen-map .gis-welcome-map-canvas,
.is-fullscreen-map #welcomeMapContainer,
.is-fullscreen-map #gisMapContainer,
.is-fullscreen-map #agencyGISMapCanvas,
.is-fullscreen-map #stateCadastralMapContainer,
.is-fullscreen-map #districtCadastralMapContainer,
.is-fullscreen-map #subdistrictCadastralMapContainer,
.is-fullscreen-map #dedicatedGisMapContainer,
.is-fullscreen-map #contractorGisMap,
:fullscreen .map-wrapper-box,
:fullscreen #welcomeMapContainer,
:fullscreen #gisMapContainer,
:fullscreen #agencyGISMapCanvas,
:fullscreen #stateCadastralMapContainer,
:fullscreen #districtCadastralMapContainer,
:fullscreen #subdistrictCadastralMapContainer,
:fullscreen #dedicatedGisMapContainer,
:fullscreen #contractorGisMap {
  flex: 1 1 auto !important;
  height: calc(100vh - 70px) !important;
  min-height: calc(100vh - 70px) !important;
  width: 100% !important;
  border-radius: 6px !important;
  position: relative !important;
}

.is-fullscreen-map .leaflet-container {
  height: 100% !important;
  width: 100% !important;
  border-radius: 6px !important;
}

/* 4. Stakeholder Cards Grid */
.stakeholders-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .stakeholders-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stakeholder-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gov-border);
  border-radius: 10px;
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.stakeholder-card:hover {
  transform: translateY(-5px);
  border-color: #165AA7;
  box-shadow: 0 8px 24px rgba(22, 90, 167, 0.14);
}

.sh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sh-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #062B5B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.stakeholder-card:hover .sh-icon-circle {
  background: #062B5B;
  color: #FFFFFF;
  transform: scale(1.08);
}

.sh-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #062B5B;
  margin-bottom: 4px;
}

.sh-role-sub {
  font-size: 11.5px;
  color: #165AA7;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.sh-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 14px;
}

.sh-action-link {
  font-size: 12px;
  font-weight: 700;
  color: #165AA7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stakeholder-card:hover .sh-action-link {
  color: #062B5B;
}

/* 5. Metrics & Live Dashboard Overview */
.overview-kpis-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .overview-kpis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* 6. Interactive Charts */
.charts-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

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

.chart-card-panel {
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

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

.chart-panel-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #062B5B;
}

.bar-chart-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-row-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-label-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
}

.bar-track-bg {
  height: 12px;
  background: #F1F5F9;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill-dynamic {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 7. GIS Land Parcel Preview */
.gis-welcome-box {
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gis-welcome-toolbar {
  padding: 14px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--gov-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gis-welcome-map-canvas {
  height: 620px;
  min-height: 550px;
  width: 100%;
  position: relative;
}

/* 8. 10-Stage Timeline */
.timeline-10-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .timeline-10-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.timeline-stage-tile {
  background: #FFFFFF;
  border: 1.5px solid var(--gov-border);
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeline-stage-tile:hover {
  border-color: #165AA7;
  transform: translateY(-3px);
  background: #F8FAFC;
}

.t-num-tag {
  font-size: 10px;
  font-weight: 800;
  color: #165AA7;
  background: rgba(22, 90, 167, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.t-stage-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #062B5B;
  line-height: 1.3;
}

/* 9. Key Features 10-grid */
.features-grid-10 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .features-grid-10 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-interactive-card {
  background: #FFFFFF;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  cursor: pointer;
}

.feature-interactive-card:hover {
  transform: translateY(-4px);
  border-color: #165AA7;
  box-shadow: 0 6px 20px rgba(22, 90, 167, 0.12);
}

.feat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #165AA7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-interactive-card:hover .feat-icon-wrap {
  background: #165AA7;
  color: #FFFFFF;
}

.feat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #062B5B;
  margin-bottom: 4px;
}

.feat-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.45;
}

/* 10. Sliding Side Drawer */
.side-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 30, 66, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  animation: drawerFadeIn 0.2s ease-out;
}

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.side-drawer-panel {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: drawerSlideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 16px 20px;
  background: #062B5B;
  color: #FFFFFF;
  border-bottom: 2px solid #E6A23C;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gov-border);
  display: flex;
  justify-content: flex-end;
}

/* =========================================================================
   11. CONTRACTOR / PROJECT IMPLEMENTING AGENCY STYLES
   ========================================================================= */
.btn-tab {
  padding: 8px 16px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tab:hover {
  background: #E2E8F0;
  color: #062B5B;
}

.btn-tab.active {
  background: #062B5B;
  color: #FFFFFF;
  border-color: #062B5B;
}

.btn-gis-filter {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gis-filter:hover, .btn-gis-filter.active {
  background: #FFFFFF;
  color: #062B5B;
  border-color: #FFFFFF;
  font-weight: 700;
}

.timeline-step-node.completed .ts-icon-circle {
  background: #10B981 !important;
}

.timeline-step-node.in-progress .ts-icon-circle {
  background: #F59E0B !important;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media print {
  body * {
    visibility: hidden;
  }
  #printableReportDocument, #printableReportDocument * {
    visibility: visible;
  }
  #printableReportDocument {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-shadow: none;
    border: none;
  }
  .app-sidebar, .app-topbar, .modal-overlay, .btn-gov-primary, .btn-gov-secondary {
    display: none !important;
  }
}

/* =========================================================================
   12. HERO ALTERNATING BACKGROUND STYLES (UNZOOMED & CRISP)
   ========================================================================= */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: opacity;
  transform: none !important;
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg-layer.active {
  transform: none !important;
}

.hero-bg-thumb:hover {
  transform: translateY(-2px);
  border-color: #FFFFFF !important;
  opacity: 0.95 !important;
}

@media (max-width: 992px) {
  .welcome-hero-section > div > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================================
   13. GIS BASEMAP TOGGLE CONTROLS & LEAFLET STYLES
   ========================================================================= */
.gis-basemap-toggle-group {
  display: inline-flex;
  align-items: center;
  background: #E2E8F0;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gis-basemap-toggle-group.gis-toggle-dark {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-gis-mode {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gis-toggle-dark .btn-gis-mode {
  color: rgba(255, 255, 255, 0.85);
}

.btn-gis-mode:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #062B5B;
}

.gis-toggle-dark .btn-gis-mode:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.btn-gis-mode.active {
  background: #062B5B;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(6, 43, 91, 0.3);
}

.gis-toggle-dark .btn-gis-mode.active {
  background: #FFFFFF;
  color: #062B5B !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Enhanced Leaflet Layer Control */
.leaflet-control-layers {
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15) !important;
  border: 1px solid #CBD5E1 !important;
  font-family: var(--font-body, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
}

.leaflet-control-layers-base label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 5px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  color: #1E293B !important;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.leaflet-control-layers-base label:hover {
  background: #F1F5F9;
}

.leaflet-control-layers input[type="radio"] {
  accent-color: #062B5B;
  cursor: pointer;
  margin: 0;
}

/* Floating Scroll to Top Arrow Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #062B5B;
  color: #FFFFFF;
  border: 2px solid #F39C12;
  box-shadow: 0 6px 20px rgba(4, 30, 66, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.92;
}

.scroll-to-top-btn:hover {
  background: #165AA7;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(22, 90, 167, 0.55);
  opacity: 1;
  border-color: #FFFFFF;
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Google Sign-In Button */
.btn-google-signin:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px);
}

.btn-google-signin:active {
  transform: translateY(0);
  background: #F1F5F9 !important;
}

/* ==========================================================================
   DYNAMIC REUSABLE DASHBOARD STYLES (AGENCY & STATE DASHBOARDS)
   ========================================================================== */

/* 1. Master Cascading Filter Bar */
.gov-filter-panel {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  position: relative;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.filter-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-title-wrap h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #062B5B;
  font-weight: 700;
  margin: 0;
}

.filter-hierarchy-tag {
  font-size: 11px;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.filter-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: flex-end;
}

.filter-field-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-label .label-step {
  width: 16px;
  height: 16px;
  background: #165AA7;
  color: #FFFFFF;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.filter-select-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #062B5B;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select-input:focus {
  background: #FFFFFF;
  border-color: #165AA7;
  box-shadow: 0 0 0 3px rgba(22, 90, 167, 0.15);
}

.filter-select-input.highlight-active {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1E40AF;
}

.agency-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}

.agency-pill-btn {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agency-pill-btn:hover {
  background: #E2E8F0;
  color: #062B5B;
  border-color: #94A3B8;
}

.agency-pill-btn.active {
  background: #062B5B;
  color: #FFFFFF;
  border-color: #062B5B;
  box-shadow: 0 2px 6px rgba(6, 43, 91, 0.25);
}

.active-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #166534;
}

.filter-breadcrumbs-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.btn-reset-filters {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-reset-filters:hover {
  background: #FEE2E2;
}

/* 2. 12 Dynamic KPI Metrics Grid */
.gov-kpi-12-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi-12-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid #165AA7;
}

.kpi-12-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.kpi-12-card.border-blue { border-left-color: #2563EB; }
.kpi-12-card.border-green { border-left-color: #10B981; }
.kpi-12-card.border-orange { border-left-color: #F59E0B; }
.kpi-12-card.border-purple { border-left-color: #9333EA; }
.kpi-12-card.border-teal { border-left-color: #0D9488; }
.kpi-12-card.border-red { border-left-color: #EF4444; }
.kpi-12-card.border-navy { border-left-color: #062B5B; }
.kpi-12-card.border-amber { border-left-color: #D97706; }

.kpi-12-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kpi-12-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.kpi-12-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.kpi-12-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.kpi-12-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0 2px 0;
}

.kpi-12-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #062B5B;
  line-height: 1.1;
}

.kpi-12-unit {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.kpi-12-subtext {
  font-size: 11px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 3. GIS Map Component & Status Pins */
.gis-sync-container {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-top: 14px;
}

.gis-sync-header {
  background: #062B5B;
  color: #FFFFFF;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gis-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gis-title-left h3 {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

.gis-status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  padding: 8px 16px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 11.5px;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-proposed { background: #2563EB; }
.dot-under-acq { background: #F59E0B; }
.dot-comp-pending { background: #EA580C; }
.dot-possession-pending { background: #9333EA; }
.dot-acquired { background: #10B981; }
.dot-delayed { background: #EF4444; animation: pulseRed 1.8s infinite; }
.dot-completed { background: #059669; }

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.gis-map-canvas {
  width: 100%;
  height: 420px;
  background: #E2E8F0;
  position: relative;
  z-index: 1;
}

/* 4. Analytics Gauge & Progress Charts */
.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

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

.analytics-panel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.stage-breakdown-bar {
  display: flex;
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  margin: 12px 0 8px 0;
  background: #E2E8F0;
}

.stage-segment {
  height: 100%;
  transition: width 0.3s ease;
  position: relative;
}

.stage-legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
}

/* 5. Inspection Drawer */
.project-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 30, 66, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.project-drawer-content {
  width: 580px;
  max-width: 90vw;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer-header {
  background: #062B5B;
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   6. CENTRAL GOVERNMENT DASHBOARD SPECIFIC STYLES
   ========================================================================== */

/* Executive 10-Grid KPI Container */
.kpi-10-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 1300px) {
  .kpi-10-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .kpi-10-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.kpi-exec-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-exec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.kpi-exec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #165AA7;
}

.kpi-card-red::before { background: #EF4444; }
.kpi-card-green::before { background: #10B981; }
.kpi-card-amber::before { background: #F59E0B; }
.kpi-card-purple::before { background: #8B5CF6; }
.kpi-card-teal::before { background: #0D9488; }

.kpi-exec-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kpi-exec-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-exec-val {
  font-size: 22px;
  font-weight: 800;
  color: #062B5B;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.kpi-exec-bottom {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.trend-up {
  color: #10B981;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trend-down {
  color: #EF4444;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trend-neutral {
  color: #64748B;
  font-weight: 600;
}

/* 2-Column Dashboard Sections Grid */
.gov-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

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

/* AI Risk Cards & Indicators */
.ai-risk-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.ai-risk-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.risk-chip-critical {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #F87171;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.risk-chip-high {
  background: #FFF7ED;
  color: #9A3412;
  border: 1px solid #FB923C;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.risk-chip-medium {
  background: #FEFCE8;
  color: #854D0E;
  border: 1px solid #FACC15;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.risk-chip-low {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #4ADE80;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
}

/* State-wise Horizontal Bars */
.state-progress-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.state-progress-bar-row:hover {
  background: #F1F5F9;
}

.state-name-col {
  width: 130px;
  font-size: 12px;
  font-weight: 700;
  color: #062B5B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.state-bar-track {
  flex: 1;
  height: 12px;
  background: #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.state-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #165AA7 0%, #2563EB 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.state-bar-stats {
  width: 140px;
  text-align: right;
  font-size: 11px;
  color: #475569;
}

/* Critical Alerts Grid */
.alerts-grid-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-card-item {
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 4px solid;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.alert-card-item:hover {
  transform: translateX(3px);
}

.alert-red {
  background: #FEF2F2;
  border-left-color: #EF4444;
  color: #991B1B;
}

.alert-orange {
  background: #FFF7ED;
  border-left-color: #F97316;
  color: #9A3412;
}

.alert-yellow {
  background: #FEFCE8;
  border-left-color: #EAB308;
  color: #854D0E;
}

.alert-blue {
  background: #EFF6FF;
  border-left-color: #3B82F6;
  color: #1E40AF;
}

/* Captcha Component */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.captcha-canvas-wrap {
  position: relative;
  display: inline-block;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: 4px;
  overflow: hidden;
}

.btn-refresh-captcha {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #062B5B;
}

.btn-refresh-captcha:hover {
  background: #F8FAFC;
  transform: rotate(45deg);
}

/* MIS Reports Quick Generator */
.mis-gen-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Print Media Styles for Official Land Acquisition Reports */
@media print {
  body * {
    visibility: hidden !important;
  }
  #printableReportContent, #printableReportContent * {
    visibility: visible !important;
  }
  #printableReportContent {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10mm !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print, .modal-overlay, .gov-official-topbar, .gov-dark-sidebar, .gov-official-footer {
    display: none !important;
  }
}

.location-crumb-btn {
  transition: all 0.18s ease;
  user-select: none;
}
.location-crumb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  filter: brightness(0.95);
}

/* ==========================================================================
   GLOBAL DYNAMIC GIS SYNCHRONIZATION ENGINE STYLES
   ========================================================================== */
.gis-embedded-floating-toolbar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90%;
  pointer-events: auto;
}

.gis-quick-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--outline-variant);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  padding: 4px 6px 4px 14px;
  transition: all 0.2s ease;
  min-width: 320px;
  max-width: 460px;
}

.gis-quick-search-box:focus-within {
  border-color: var(--metric-blue);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.gqs-icon {
  font-size: 14px;
  margin-right: 8px;
  color: var(--on-surface-variant);
}

.gqs-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--on-surface);
  font-weight: 600;
  flex: 1;
  font-family: inherit;
}

.gqs-input::placeholder {
  color: var(--on-surface-variant);
  font-weight: 500;
}

.gqs-btn {
  background: var(--primary-container);
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gqs-btn:hover {
  background: #000000;
  transform: scale(1.03);
}

/* Floating Project Information Dossier Drawer (Stitch Flat-Plus) */
.gis-project-dossier-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
  font-family: var(--font-body);
}

.gis-project-dossier-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.gp-drawer-header {
  background: var(--primary-container);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--outline-variant);
}

.gp-drawer-badge-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gp-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.gp-drawer-close:hover {
  background: var(--error);
}

.gp-drawer-body {
  padding: 16px;
}

.gp-drawer-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--on-surface);
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.gp-drawer-sub {
  font-size: 11.5px;
  color: var(--on-surface-variant);
  margin: 0 0 12px 0;
}

.gp-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface-container-low);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}

.gp-stat-item {
  display: flex;
  flex-direction: column;
}

.gp-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.gp-stat-val {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--on-surface);
  margin-top: 1px;
}

.gis-basemap-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface-container-low);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--outline-variant);
}

.gis-basemap-toggle-group .btn-gis-mode {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-surface-variant);
  border: none;
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gis-basemap-toggle-group .btn-gis-mode.active {
  background: var(--secondary);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 108, 74, 0.2);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   Breakpoints: 
   - 1024px: Tablet & Mobile Off-Canvas Drawer
   - 768px: Mobile Bottom Bar, 2-Col Grids, Touch Sizing
   - 480px: Small Phones, 1-Col Grids, Compact Headers
   ========================================================================== */

/* Mobile Hamburger Toggle Button (Desktop: Hidden, Tablet/Mobile: Visible) */
.mobile-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--surface-container-low);
  border: 1.5px solid var(--outline-variant);
  border-radius: 8px;
  color: var(--primary-container);
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(11, 28, 48, 0.08);
}

.mobile-hamburger-btn:hover {
  background: var(--surface-container-high);
  border-color: var(--secondary);
  color: var(--secondary);
}

.mobile-hamburger-btn:active {
  background: var(--surface-container-highest);
  transform: scale(0.94);
}

.mobile-hamburger-btn .hamburger-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Off-Canvas Backdrop Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Bottom Navigation Bar (Desktop: Hidden) */
.mobile-bottom-nav {
  display: none;
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   TABLET & SMALL SCREEN BREAKPOINT (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mobile-hamburger-btn {
    display: inline-flex;
  }

  .sidebar-backdrop {
    display: block;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Off-Canvas Sidebar Drawer */
  .app-workspace {
    display: block;
  }

  .gov-dark-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh !important;
    width: 290px !important;
    max-width: 85vw;
    z-index: 10050 !important;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #FFFFFF !important;
  }

  .gov-dark-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .gov-dark-sidebar .mobile-sidebar-close-header {
    display: flex !important;
  }

  .gov-main-viewport {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
  }

  .view-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .vh-actions-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   MOBILE PHONES BREAKPOINT (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Sticky Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    border-top: 1px solid var(--outline-variant);
    z-index: 1000;
    box-shadow: 0 -3px 14px rgba(11, 28, 48, 0.08);
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 10.5px;
    font-weight: 600;
    flex: 1;
    padding: 6px 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
  }

  .mob-nav-item.active {
    color: var(--secondary);
    font-weight: 800;
  }

  .mob-nav-item .mob-nav-icon {
    width: 20px;
    height: 20px;
  }

  /* Workspace Fluid Flow on Mobile - Natural full screen flow without whitespace gaps */
  .app-workspace {
    height: auto !important;
    min-height: calc(100vh - 60px) !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .gov-main-viewport {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 16px 14px 76px 14px !important;
  }

  #viewBodyContent {
    padding-bottom: 0 !important;
  }

  /* Compact Topbar on Mobile */
  .gov-official-topbar {
    padding: 6px 12px !important;
    gap: 8px !important;
    height: 60px !important;
  }

  .topbar-branding-left {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .bhoosutra-logo-img,
  .ashok-stambh-img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
  }

  .gov-title-block {
    min-width: 0;
    overflow: hidden;
  }

  .gov-app-heading {
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 220px;
  }

  .gov-dept-line {
    font-size: 9.5px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .sih-demo-mode-topbar-widget {
    padding: 2px 6px !important;
    gap: 5px !important;
  }

  .demo-role-select {
    font-size: 11px !important;
    padding: 2px 4px !important;
    max-width: 120px !important;
  }

  .btn-demo-exit span {
    display: none !important;
  }

  .gov-user-text {
    display: none !important;
  }

  .gov-avatar-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
  }

  /* Mobile Grid Responsiveness */
  .grid-cols-4,
  .grid-cols-3,
  .kpi-grid,
  .national-kpi-strip,
  .stat-cards-grid,
  .analytics-grid,
  .drilldown-grid,
  .gov-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Mobile Tables - Horizontal Touch Scroll */
  .gov-table-wrap,
  .table-responsive,
  .gov-panel-card > div[style*="overflow"],
  .projects-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
  }

  .gov-table,
  .projects-table {
    min-width: 600px !important;
  }

  /* Responsive GIS Map Sizing */
  #dedicatedGisMapContainer,
  #gisMapContainer,
  #districtCadastralMapContainer,
  #subdistrictCadastralMapContainer,
  #agencyGISMapCanvas,
  #stateCadastralMapContainer,
  #contractorGisMap,
  #landownerGISMapCanvas,
  #landingGisMapCanvas,
  #welcomeMapContainer,
  .map-wrapper-box,
  .gis-welcome-map-canvas,
  .gis-map-canvas {
    height: 380px !important;
    min-height: 320px !important;
  }

  /* Location Search Bar Mobile */
  #gisMainLocationSearchInput {
    height: 42px !important;
    font-size: 12px !important;
  }

  .gov-card {
    padding: 12px 14px !important;
  }

  /* Mobile Modals */
  .gov-modal-dialog,
  .modal-content,
  .gov-modal-container,
  .modal-card {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 10px auto !important;
    max-height: 90vh !important;
    border-radius: 8px !important;
  }

  .modal-body {
    max-height: 65vh !important;
    overflow-y: auto !important;
    padding: 12px 14px !important;
  }

  /* Drawer & Detail Cards */
  .gp-drawer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   SMALL PHONES BREAKPOINT (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .gov-official-topbar {
    padding: 4px 8px !important;
    height: 56px !important;
    gap: 6px !important;
  }

  .bhoosutra-logo-img,
  .ashok-stambh-img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
  }

  .gov-app-heading {
    font-size: 11.5px !important;
    max-width: 140px !important;
  }

  .demo-role-select {
    max-width: 95px !important;
    font-size: 10px !important;
  }

  .demo-text-label {
    display: none !important;
  }

  .grid-cols-4,
  .grid-cols-3,
  .kpi-grid,
  .national-kpi-strip,
  .stat-cards-grid,
  .analytics-grid,
  .drilldown-grid,
  .gov-stats-row {
    grid-template-columns: 1fr !important;
  }

  #dedicatedGisMapContainer,
  #gisMapContainer,
  #districtCadastralMapContainer,
  #subdistrictCadastralMapContainer,
  #agencyGISMapCanvas,
  #stateCadastralMapContainer,
  #contractorGisMap,
  #landownerGISMapCanvas,
  #landingGisMapCanvas,
  #welcomeMapContainer,
  .map-wrapper-box,
  .gis-welcome-map-canvas,
  .gis-map-canvas {
    height: 330px !important;
    min-height: 280px !important;
  }

  .view-title {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   GIS MAP SYSTEM - HIGH-PRIORITY EXPRESSWAYS HIGHLIGHT STYLES
   ========================================================================== */
.btn-gis-corridor-pill {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.btn-gis-corridor-pill:hover {
  transform: translateY(-1.5px) scale(1.02);
  filter: brightness(1.1);
}

.btn-gis-corridor-pill:active {
  transform: translateY(0);
}

@keyframes pulse-orange-glow {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

@keyframes pulse-emerald-glow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gis-md-waypoint-pin > div {
  animation: pulse-orange-glow 2.5s infinite;
}

.gis-ng-waypoint-pin > div {
  animation: pulse-emerald-glow 2.5s infinite;
}

/* ==========================================================================
   GOVERNMENT TENDER MANAGEMENT & CONTRACTOR BIDDING SYSTEM (NLAMS TENDERS)
   Modern Govt-Tech Design System
   ========================================================================== */

.tender-dashboard-wrapper,
.tender-details-wrapper,
.contractors-directory-wrapper,
.pipeline-view-wrapper {
  padding: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.tender-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gov-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.375rem;
}

.gov-breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.gov-breadcrumbs .active {
  color: #0f172a;
  font-weight: 600;
}

.tender-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.tender-page-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.tender-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Tender Statistics Grid */
.tender-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tender-stat-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.125rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tender-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.tender-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.card-total .stat-icon { background: #eff6ff; color: #2563eb; }
.card-active .stat-icon { background: #ecfdf5; color: #059669; }
.card-eval .stat-icon { background: #fef3c7; color: #d97706; }
.card-awarded .stat-icon { background: #e0e7ff; color: #4338ca; }
.card-closed .stat-icon { background: #f1f5f9; color: #475569; }
.card-cancelled .stat-icon { background: #fee2e2; color: #dc2626; }
.card-value .stat-icon { background: #fef9c3; color: #ca8a04; }

.tender-stat-card .stat-info {
  display: flex;
  flex-direction: column;
}

.tender-stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.tender-stat-card .stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0.125rem 0;
}

.tender-stat-card .stat-sub {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.tender-stat-card.highlight-gold {
  border-color: #fde047;
  background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
}

/* Filter Panel */
.tender-filter-panel {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.filter-search-box i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.125rem;
}

.filter-search-box input {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.filter-select-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  background-color: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
}

/* Tender Table Styles */
.tender-table-container {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.badge-pill-counter {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.tender-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tender-data-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.tender-data-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.tender-data-table tbody tr.hover-row {
  cursor: pointer;
  transition: background-color 0.15s;
}

.tender-data-table tbody tr.hover-row:hover {
  background-color: #f8fafc;
}

.tender-id-cell strong {
  color: #1e40af;
  font-size: 0.9375rem;
}

.tender-code-sub {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 2px;
}

.tender-name-cell .tender-title-link {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  display: block;
  line-height: 1.35;
}

.tender-name-cell .tender-title-link:hover {
  color: #2563eb;
}

.tender-desc-preview {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.project-pill {
  font-size: 0.8125rem;
  color: #334155;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.dept-badge {
  background: #f1f5f9;
  color: #334155;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.loc-badge {
  color: #475569;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cost-text {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9375rem;
}

.bidders-count-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-count {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.l1-mini-chip {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.date-cell {
  font-size: 0.8125rem;
  color: #475569;
  white-space: nowrap;
}

.closing-soon-text {
  color: #d97706;
  font-weight: 600;
}

/* Status Badges */
.tender-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-active { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-closing { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-closed { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.badge-eval { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-awarded { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-cancelled { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.rank-l1 {
  background: linear-gradient(135deg, #fef08a 0%, #fef9c3 100%);
  color: #854d0e;
  border: 1px solid #facc15;
  box-shadow: 0 1px 2px rgba(250, 204, 21, 0.25);
}

.rank-l2 { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.rank-l3 { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.rank-disq { background: #fee2e2; color: #991b1b; }

/* Bid Status Pills */
.bid-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-selected { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.status-l1 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-qualified { background: #e0f2fe; color: #0369a1; }
.status-tech-qual { background: #f0fdf4; color: #15803d; }
.status-fin-qual { background: #eff6ff; color: #1d4ed8; }
.status-eval { background: #fef9c3; color: #854d0e; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-disq { background: #fef2f2; color: #991b1b; }
.status-submitted { background: #f1f5f9; color: #475569; }

/* Hierarchy Concept Card */
.tender-hierarchy-card {
  margin-top: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.hierarchy-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hierarchy-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  gap: 0.5rem;
}

.h-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  min-width: 135px;
  display: flex;
  flex-direction: column;
}

.h-step.active {
  background: #eff6ff;
  border-color: #3b82f6;
}

.h-num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2563eb;
}

.h-step strong {
  font-size: 0.8125rem;
  color: #0f172a;
}

.h-desc {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 2px;
}

.h-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 1.125rem;
}

/* ==========================================================================
   TENDER DETAILS VIEW STYLES
   ========================================================================== */
.tender-details-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tender-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.tender-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tender-id-tag {
  font-size: 0.8125rem;
  color: #2563eb;
  background: #eff6ff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.tender-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.tender-hero-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  max-width: 800px;
}

.tender-hero-cost {
  margin-top: 0.75rem;
}

.tender-hero-cost .label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.tender-hero-cost .cost {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.tender-hero-emd {
  font-size: 0.8125rem;
  color: #475569;
  margin-top: 0.25rem;
}

.tender-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item .m-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.meta-item .m-value {
  font-size: 0.9375rem;
  color: #0f172a;
}

.meta-item .m-sub {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Land Acquisition Connection Card */
.land-connection-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.04);
}

.connection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.conn-pill {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
}

.conn-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.conn-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.25rem 0 0 0;
}

.conn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.conn-pillar {
  background: #f8fafc;
  border-radius: 0.625rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}

.pillar-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.pillar-head i {
  font-size: 1.25rem;
}

.pillar-land .pillar-head { color: #059669; }
.pillar-tender .pillar-head { color: #2563eb; }
.pillar-contractor .pillar-head { color: #7c3aed; }
.pillar-construction .pillar-head { color: #ea580c; }

.pillar-head h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.pillar-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar-list li span {
  color: #64748b;
  font-size: 0.75rem;
}

.pillar-list li strong {
  color: #0f172a;
}

/* Tender Evaluation Timeline (8 Stages) */
.tender-timeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-header h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-current-status {
  font-size: 0.8125rem;
  color: #475569;
}

.tender-timeline-container {
  overflow-x: auto;
  padding: 0.5rem 0 1rem 0;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  min-width: 820px;
  position: relative;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  z-index: 2;
  transition: all 0.2s;
}

.step-completed .step-icon-bubble {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 0 0 4px #d1fae5;
}

.step-current .step-icon-bubble {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 5px #dbeafe;
  animation: pulse-step 2s infinite;
}

.step-future .step-icon-bubble {
  background: #f1f5f9;
  color: #94a3b8;
  border: 2px dashed #cbd5e1;
}

@keyframes pulse-step {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.step-content {
  margin-top: 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.step-date {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 2px;
}

.step-connector {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.step-completed .step-connector {
  background: #059669;
}

/* Bid Comparison Card & Visual Bar Chart */
.bid-comparison-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.badge-tender-estimate {
  background: #f1f5f9;
  color: #334155;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
}

.l1-summary-tag {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bid-chart-wrapper {
  margin-top: 1.5rem;
  position: relative;
  padding: 1rem 0;
}

.chart-benchmark-line {
  position: relative;
  margin-bottom: 1rem;
  border-bottom: 2px dashed #94a3b8;
  text-align: right;
}

.benchmark-label {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
  display: inline-block;
  background: #ffffff;
  padding: 0 0.5rem;
  transform: translateY(50%);
}

.bid-bars-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bid-bar-row {
  display: grid;
  grid-template-columns: 240px 1fr 180px 48px;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.bid-bar-row:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.bid-bar-row.is-l1-row {
  background: #fefce8;
  border-color: #facc15;
}

.bidder-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bidder-name-box strong {
  font-size: 0.875rem;
  color: #0f172a;
}

.bidder-type-badge {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
}

.bidder-ranks {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.bar-track {
  height: 28px;
  background: #e2e8f0;
  border-radius: 0.375rem;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  border-radius: 0.375rem;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-l1 {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
}

.bar-below {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
}

.bar-above {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 600;
}

.bar-value-text {
  font-size: 0.75rem;
  white-space: nowrap;
}

.variance-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.variance-saving {
  background: #ecfdf5;
  color: #059669;
}

.variance-higher {
  background: #fffbeb;
  color: #d97706;
}

.bid-comparison-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-l1 { background: #10b981; }
.dot-savings { background: #3b82f6; }
.dot-higher { background: #f59e0b; }
.dot-benchmark { background: #94a3b8; }

/* Contractors Section Card */
.contractors-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-contractor-count {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.section-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.25rem 0 0 0;
}

.contractor-table tbody tr.row-l1 {
  background-color: #fefce8;
}

.contractor-table tbody tr.row-selected {
  background-color: #f0fdf4;
}

.contractor-identity .contractor-name-link {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.9375rem;
}

.contractor-identity .contractor-name-link:hover {
  color: #2563eb;
}

.contractor-contact-sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.contractor-reg-cell code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #1e293b;
}

.reg-no-text {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 2px;
}

.score-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
}

.score-high { background: #dcfce7; color: #15803d; }
.score-mid { background: #fef9c3; color: #854d0e; }
.score-low { background: #fee2e2; color: #b91c1c; }

.btn-group-contractor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}

/* ==========================================================================
   MODAL & DRAWER STYLES
   ========================================================================== */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.modal-dialog-custom {
  background: #ffffff;
  border-radius: 0.875rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-lg-custom {
  max-width: 850px;
}

.modal-header-custom {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #f8fafc;
}

.modal-super-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.modal-title-custom {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.modal-body-custom {
  padding: 1.5rem;
  overflow-y: auto;
}

.scrollable-modal-body {
  max-height: calc(90vh - 140px);
}

.modal-footer-custom {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
}

.form-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 1.125rem;
  margin-bottom: 1.125rem;
}

.form-section-card.bg-highlight {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.875rem 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #f1f5f9;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.875rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.875rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.form-control {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  outline: none;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.readonly-input {
  background-color: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.doc-upload-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.doc-upload-box label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.file-hint {
  font-size: 0.6875rem;
  color: #64748b;
}

/* Contractor Details Drawer Banner */
.drawer-hero-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 1rem;
  gap: 0.5rem;
  text-align: center;
}

.banner-rank-label, .banner-bid-label, .banner-tech-label, .banner-status-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.banner-bid-val {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.banner-tech-val {
  font-size: 1.125rem;
  font-weight: 700;
  color: #059669;
}

.details-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  font-size: 0.8125rem;
}

.d-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.d-row.full-span {
  grid-column: span 2;
}

.d-row span {
  font-size: 0.6875rem;
  color: #64748b;
}

.d-row strong {
  color: #0f172a;
}

.docs-list-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.doc-icon {
  font-size: 1.5rem;
}

.doc-meta-sub {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
}

.doc-actions {
  display: flex;
  gap: 0.375rem;
}

/* Toast Notifications */
.tender-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100000;
  font-size: 0.875rem;
}

.toast-success { background: #065f46; }
.toast-info { background: #1e3a8a; }

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   TENDER & PROCUREMENT OFFICER ENTERPRISE UI STYLES
   National Land Acquisition & Management System (NLAMS)
   Clean, modern, light government-grade styling (Subtle green/blue/teal accents, NO orange)
   ========================================================================== */

.tender-officer-container {
  padding: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

/* Officer Header Banner */
.gov-officer-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.gov-officer-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gov-officer-avatar {
  width: 56px;
  height: 56px;
  background: #0f766e;
  color: #ffffff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.gov-portal-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.gov-officer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.gov-officer-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.gov-officer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-gov-primary {
  background: #0f766e;
  color: #ffffff;
  border: 1px solid #0f766e;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-gov-primary:hover {
  background: #115e59;
  border-color: #115e59;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.btn-gov-secondary {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-gov-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-gov-outline {
  background: transparent;
  color: #0f766e;
  border: 1px solid #0f766e;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}
.btn-gov-outline:hover {
  background: #f0fdf4;
}

.btn-gov-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-gov-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  border-radius: 0.375rem;
}

.btn-gov-icon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-gov-icon:hover {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

/* 6 Summary Cards Grid */
.gov-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gov-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gov-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.gov-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.icon-blue { background: #eff6ff; color: #1e40af; }
.icon-teal { background: #f0fdfa; color: #0f766e; }
.icon-purple { background: #faf5ff; color: #6b21a8; }
.icon-green { background: #f0fdf4; color: #166534; }
.icon-navy { background: #f1f5f9; color: #0f172a; }
.icon-red { background: #fef2f2; color: #991b1b; }

.gov-stat-content {
  display: flex;
  flex-direction: column;
}

.gov-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gov-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0.25rem 0 0.125rem 0;
  white-space: nowrap;
  word-break: normal;
}

.gov-stat-sub {
  font-size: 0.6875rem;
  color: #94a3b8;
}

/* Colors */
.text-teal { color: #0f766e !important; }
.text-navy { color: #0f172a !important; }
.text-purple { color: #6b21a8 !important; }
.text-green { color: #166534 !important; }
.text-red { color: #b91c1c !important; }

/* Status Badges */
.tender-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.badge-active { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.badge-eval { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.badge-awarded { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-closed { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-delayed { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-draft { background: #f8fafc; color: #64748b; border: 1px dashed #cbd5e1; }
.badge-default { background: #f1f5f9; color: #334155; }

.badge-gov-id {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: monospace;
}

.badge-gov-project {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.badge-gov-outline {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-gov-role {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.rank-l1 { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.rank-l2 { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.rank-l3 { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
.rank-disq { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Bid Status Pills */
.bid-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-selected { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.status-tech-qual { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.status-fin-qual { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.status-eval { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.status-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-disq { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-submitted { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Severity Badges */
.sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}
.sev-critical { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.sev-high { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.sev-medium { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.sev-low { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* Cards & Layout */
.gov-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.gov-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
}

.gov-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gov-card-sub {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.gov-card-body {
  padding: 1.5rem;
}

.gov-dashboard-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .gov-dashboard-row {
    grid-template-columns: 1fr;
  }
}

/* Charts & Bars */
.gov-activity-chart-wrapper {
  padding: 1rem 0;
}

.gov-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 180px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.gov-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  height: 100%;
  justify-content: flex-end;
}

.gov-bar {
  width: 36px;
  border-radius: 0.375rem 0.375rem 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  transition: all 0.3s ease;
}
.bar-val {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
}
.bar-published { background: #0f766e; }
.bar-eval { background: #6b21a8; }
.bar-awarded { background: #166534; }
.bar-closed { background: #64748b; }

.bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.5rem;
  text-align: center;
}

.gov-chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-published { background: #0f766e; }
.dot-eval { background: #6b21a8; }
.dot-awarded { background: #166534; }
.dot-closed { background: #64748b; }

/* Mini Alert & Notification List - Modern Rounded Banner Design (No Sharp Squares) */
.gov-alert-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
}

.gov-alert-mini-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f766e;
  transition: all 0.2s ease;
}

.gov-alert-mini-item:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.gov-alert-mini-item:has(.icon-critical),
.gov-alert-mini-item.alert-critical {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.gov-alert-mini-item:has(.icon-medium),
.gov-alert-mini-item.alert-medium {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.gov-alert-mini-item:has(.icon-info),
.gov-alert-mini-item.alert-info {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.mini-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50% !important; /* Fully circular, not a square box */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.icon-critical { background: #fee2e2; color: #991b1b; }
.icon-medium { background: #dbeafe; color: #1d4ed8; }
.icon-info { background: #dcfce7; color: #166534; }

.mini-alert-text {
  flex: 1;
}
.mini-alert-text strong {
  font-size: 0.8125rem;
  color: #0f172a;
  display: block;
}
.mini-alert-text p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* Tables */
.gov-enterprise-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.gov-enterprise-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.gov-enterprise-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.gov-enterprise-table tbody tr:hover {
  background: #f8fafc;
}

.gov-code-link {
  color: #0f766e;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.875rem;
}

.gov-bid-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  color: #334155;
}

.gov-score-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
}
.score-high { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.score-med { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.score-low { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 9-Step Timeline */
.gov-nine-step-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  padding: 1.25rem 0.5rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 100px;
  text-align: center;
}

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.timeline-step.completed .timeline-node {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.timeline-step.current .timeline-node {
  background: #ffffff;
  border-color: #0f766e;
  color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.timeline-step-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.timeline-step.completed .timeline-step-label,
.timeline-step.current .timeline-step-label {
  color: #0f172a;
  font-weight: 700;
}

.timeline-connector {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin-top: -1.25rem;
  min-width: 20px;
}

.timeline-connector.completed {
  background: #0f766e;
}

/* Project Connection Integration Grid */
.gov-project-connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.p-conn-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.p-conn-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.p-conn-info {
  display: flex;
  flex-direction: column;
}

.p-conn-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.p-conn-val {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.p-conn-sub {
  font-size: 0.6875rem;
  color: #64748b;
}

/* Recommended Contractor Card */
.gov-recommended-contractor-card {
  background: #ffffff;
  border: 2px solid #0f766e;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.gov-rec-header {
  background: #f0fdfa;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #99f6e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gov-rec-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f766e;
  margin: 0;
}

.gov-rec-sub {
  font-size: 0.8125rem;
  color: #475569;
}

.gov-rec-badge {
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gov-rec-body {
  padding: 1.5rem;
}

.gov-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.gov-rec-item {
  display: flex;
  flex-direction: column;
}
.gov-rec-item .label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}
.gov-rec-item .sub {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.125rem;
}

.gov-rec-officer-decision-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.decision-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  font-size: 0.8125rem;
  color: #334155;
}

.decision-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Modals & Dialogs */
.gov-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gov-modal-dialog {
  background: #ffffff;
  border-radius: 0.75rem;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-xl { max-width: 900px; }
.modal-lg { max-width: 760px; }
.modal-md { max-width: 580px; }

.gov-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #f8fafc;
}

.gov-modal-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gov-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.25rem 0 0 0;
}

.gov-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.gov-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.gov-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Wizard Stepper */
.gov-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.step-item.active {
  color: #0f766e;
}
.step-item.active .step-number {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.step-item.completed {
  color: #166534;
}
.step-item.completed .step-number {
  background: #166534;
  border-color: #166534;
  color: #ffffff;
}

.step-divider {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.75rem;
}

/* Forms */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group.full-width {
  grid-column: 1 / -1;
}

.gov-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.gov-input, .gov-select, .gov-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
.gov-input:focus, .gov-select:focus, .gov-textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.gov-filter-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
}
.filter-group.search-group {
  flex: 1;
  min-width: 240px;
}
.filter-group label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Tabs */
.gov-tabs-wrapper {
  border-bottom: 2px solid #e2e8f0;
}

.gov-tabs-nav {
  display: flex;
  gap: 0.5rem;
}

.gov-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.gov-tab-btn:hover {
  color: #0f766e;
}
.gov-tab-btn.active {
  color: #0f766e;
  border-bottom-color: #0f766e;
  background: #f0fdfa;
  border-radius: 0.375rem 0.375rem 0 0;
}

/* Details Grid */
.details-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.details-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
@media (max-width: 768px) {
  .details-grid-2, .details-grid-3 {
    grid-template-columns: 1fr;
  }
}

.d-row {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
}
.d-row.full-span {
  grid-column: 1 / -1;
}
.d-row span {
  font-size: 0.6875rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}
.d-row strong {
  color: #0f172a;
  margin-top: 0.125rem;
}

/* Full Progress Track in Work Progress */
.gov-full-progress-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.5rem 0 0.25rem 0;
}
.gov-full-progress-fill {
  height: 100%;
  background: #0f766e;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.gov-progress-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 600;
}

.gov-progress-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gov-progress-bar-wrap {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  min-width: 60px;
}
.gov-progress-bar-fill {
  height: 100%;
  background: #0f766e;
}
.gov-progress-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 32px;
}

/* Document rows */
.gov-docs-table-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.doc-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}
.doc-row-item .doc-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 1rem;
}

.doc-upload-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.gov-file-input {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.gov-attached-docs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.attached-doc-chip {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gov-disclaimer-banner {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f766e;
  font-size: 0.8125rem;
}

.gov-confirm-alert {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.gov-review-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Sidebar Expandable Submenu Group */
.sidebar-expandable-group {
  display: flex;
  flex-direction: column;
}

.sidebar-expandable-group .expandable-toggle {
  width: 100%;
  justify-content: flex-start;
  cursor: pointer;
  background: none;
  border: none;
}

.sidebar-chevron-indicator {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  color: var(--on-surface-variant);
}

.sidebar-expandable-group.open .sidebar-chevron-indicator {
  transform: rotate(180deg);
}

.sidebar-submenu-list {
  display: none;
  flex-direction: column;
  padding-left: 2rem;
  margin: 0.25rem 0 0.5rem 0;
  gap: 0.25rem;
}

.sidebar-expandable-group.open .sidebar-submenu-list {
  display: flex;
}

.sidebar-submenu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-submenu-btn:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

.sidebar-submenu-btn.active {
  background: #f0fdfa;
  color: #0f766e;
  font-weight: 700;
}

.submenu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.sidebar-submenu-btn.active .submenu-dot {
  background: #0f766e;
}

/* 6-Card Executive KPI Grid */
.gov-kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1400px) {
  .gov-kpi-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gov-kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gov-kpi-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* Land & RoW Synchronization Strip */
.gov-land-sync-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.land-sync-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.land-sync-item i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.land-sync-item .lbl {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.land-sync-item strong {
  font-size: 0.8125rem;
  color: #0f172a;
}

@media (max-width: 900px) {
  .gov-land-sync-strip {
    grid-template-columns: 1fr;
  }
}

/* DSC Hardware Token Box */
.gov-dsc-token-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 0.5rem;
  padding: 1.25rem;
}

/* Geotagged Site Photos Grid */
.site-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.site-photo-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.site-photo-placeholder {
  height: 140px;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8125rem;
}

.photo-meta {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

/* ==========================================================================
   ENTERPRISE MOBILE-FIRST RESPONSIVE SYSTEM (NLAMS 2026)
   Breakpoints:
   - Mobile: 320px - 767px
   - Tablet: 768px - 1023px
   - Desktop: 1024px and above
   ========================================================================== */

/* 1. Global Viewport & Container Containment */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none;
}

.app-workspace {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.gov-main-viewport {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 20px 24px;
}

.view-body-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 2. Hamburger Button & Mobile Navigation Elements */
.mobile-hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--outline-variant);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--on-surface);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-hamburger-btn:hover, .mobile-hamburger-btn:active {
  background: var(--surface-container-high);
}

.hamburger-icon {
  width: 22px;
  height: 22px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* 3. Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

/* 4. Universal Responsive Card & Grid Transformation */
.metric-cards-grid,
.gov-stats-grid,
.kpi-grid,
.stat-cards-container,
.grid-4-cols,
.grid-3-cols,
.grid-2-cols {
  display: grid;
  width: 100%;
  gap: 16px;
  box-sizing: border-box;
}

/* 5. Universal Responsive Table Container */
.gov-table-container,
.table-responsive,
.gov-table-wrap,
.data-table-wrap,
.statutory-table-container,
.tender-table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--outline-variant);
  margin-bottom: 16px;
}

.gov-table,
.statutory-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

/* 6. TABLET BREAKPOINT (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .gov-official-topbar {
    height: 64px;
    padding: 0 16px;
  }

  .mobile-hamburger-btn {
    display: inline-flex;
  }

  .gov-app-heading {
    font-size: 14px;
  }

  .gov-dark-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    background: #ffffff;
  }

  .gov-dark-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
  }

  .mobile-sidebar-close-header {
    display: flex !important;
  }

  .gov-main-viewport {
    padding: 16px 18px;
  }

  .metric-cards-grid,
  .gov-stats-grid,
  .kpi-grid,
  .stat-cards-container,
  .grid-4-cols,
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .grid-2-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 7. MOBILE BREAKPOINT (320px - 767px) */
@media (max-width: 767px) {
  /* Topbar Compactification */
  .gov-official-topbar {
    height: 56px;
    padding: 0 10px;
    gap: 8px;
  }

  .mobile-hamburger-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .topbar-branding-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .ashok-stambh-img {
    width: 28px;
    height: 28px;
  }

  .gov-title-block {
    min-width: 0;
    overflow: hidden;
  }

  .gov-dept-line {
    display: none;
  }

  .gov-app-heading {
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-controls-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .fy-selector-box,
  .gov-search-bar,
  .gov-user-text {
    display: none !important;
  }

  .gov-user-profile-wrap {
    padding-left: 0;
    border-left: none;
    gap: 4px;
  }

  .gov-avatar-circle {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  /* Slide-Out Navigation Drawer */
  .gov-dark-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    height: 100vh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    background: #ffffff;
  }

  .gov-dark-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
  }

  .mobile-sidebar-close-header {
    display: flex !important;
  }

  .sidebar-menu-btn {
    height: 44px;
    font-size: 13.5px;
    padding: 0 14px;
    margin: 2px 4px;
  }

  /* Main Viewport & Bottom Padding for Bottom Nav */
  .gov-main-viewport {
    padding: 12px 10px 75px 10px;
  }

  .view-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }

  .view-title {
    font-size: 17px !important;
  }

  .view-subtitle {
    font-size: 11px !important;
  }

  .vh-actions-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .vh-actions-wrap button,
  .vh-actions-wrap .btn-gov-primary,
  .vh-actions-wrap .btn-gov-secondary {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  /* ==========================================================================
     UNIVERSAL TAGS, BADGES, CHIPS & STATUS PILLS MOBILE OPTIMIZATION
     ========================================================================== */
  .cmd-pill,
  .state-pill,
  .district-pill,
  .agency-pill,
  .field-pill,
  .citizen-pill {
    font-size: 10px;
    font-weight: 800;
    background: var(--surface-container-high);
    color: var(--on-surface);
    padding: 3px 8px;
    border-radius: 9999px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    word-break: normal;
  }

  .gov-stage-chip,
  .gov-portal-tag,
  .tender-badge,
  .bid-status-pill,
  .rank-badge,
  .badge-gov-id,
  .badge-gov-project,
  .badge-pill-counter,
  .gov-bid-count,
  .badge-count,
  .l1-mini-chip,
  .sev-badge,
  .kpi-type-tag,
  .loc-badge,
  .dept-badge,
  .div-filter-pill,
  .sla-pill-tag,
  .gov-tag,
  .status-pill,
  .status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    padding: 3px 8px !important;
    border-radius: 9999px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    flex-shrink: 0;
  }

  .badge-gov-id,
  .badge-gov-project {
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 10.5px !important;
  }

  /* Division filter pills horizontal scroll strip */
  .div-filter-pill-container,
  div[style*="display: flex; gap: 6px; flex-wrap: wrap;"] {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    max-width: 100% !important;
  }

  .div-filter-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* ==========================================================================
     UNIVERSAL KPI METRICS, NUMBERS & CURRENCY MOBILE SCALING
     ========================================================================== */
  .kpi-number-wrap {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin: 4px 0 2px 0 !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }

  .kpi-big-num {
    font-family: var(--font-heading) !important;
    font-size: clamp(19px, 4.5vw, 24px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    word-break: normal !important;
  }

  .kpi-unit-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    opacity: 0.85;
  }

  .kpi-title-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.25 !important;
  }

  .gov-stat-number {
    font-size: clamp(1.2rem, 3.8vw, 1.6rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    margin: 2px 0 !important;
  }

  .gov-stat-label,
  .stat-label {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .gov-stat-sub,
  .stat-sub {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    color: #94a3b8;
  }

  /* ==========================================================================
     DASHBOARD HEROES & BANNERS ON MOBILE
     ========================================================================== */
  .national-command-hero,
  .gov-officer-banner,
  .tender-page-header {
    padding: 14px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .gov-officer-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .gov-officer-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 20px !important;
    border-radius: 8px !important;
  }

  .gov-portal-tag {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    flex-wrap: wrap !important;
    margin-bottom: 4px !important;
  }

  .gov-officer-title,
  .tender-page-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
  }

  .gov-officer-subtitle,
  .tender-page-subtitle {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 2px 0 0 0 !important;
  }

  .gov-officer-actions,
  .tender-header-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .gov-officer-actions button,
  .gov-officer-actions a,
  .tender-header-actions button,
  .tender-header-actions a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 40px !important;
  }

  /* ==========================================================================
     DASHBOARD STAT GRIDS & KPI CARDS (2-COLUMN FLUID LAYOUT)
     ========================================================================== */
  .gov-summary-grid,
  .tender-stats-grid,
  .gov-kpi-grid,
  .metric-cards-grid,
  .gov-stats-grid,
  .kpi-grid,
  .stat-cards-container,
  div[style*="grid-template-columns: repeat(auto-fit, minmax(130px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(270px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"],
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .gov-stat-card,
  .tender-stat-card,
  .gov-kpi-card,
  .stat-kpi-card,
  .metric-card {
    padding: 10px 8px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .gov-stat-icon-wrap,
  .tender-stat-card .stat-icon,
  .kpi-icon-box {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .gov-stat-content,
  .stat-info,
  .kpi-content-block {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  /* 2-Column Dashboard Rows to 1-Column */
  .gov-dashboard-row,
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .gov-card,
  .gov-panel-card,
  .glass-panel,
  .glass-card {
    padding: 14px 12px !important;
    border-radius: 8px !important;
  }

  .gov-card-header,
  .panel-header-clean {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .gov-card-title,
  .panel-title-text {
    font-size: 15px !important;
  }

  .gov-card-sub {
    font-size: 11px !important;
  }

  /* Tender Chart on Mobile */
  .gov-activity-chart-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 0 !important;
  }

  .gov-chart-bars {
    min-width: 260px !important;
    height: 130px !important;
  }

  .gov-bar-group {
    width: 48px !important;
  }

  .gov-bar {
    width: 28px !important;
  }

  .gov-chart-legend {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: 10px !important;
    font-size: 11px !important;
  }

  /* Filter Panels on Mobile */
  .gov-filter-panel,
  .tender-filter-panel {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
  }

  .filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .filter-group,
  .filter-search-box,
  .search-group,
  .filter-actions-btn {
    width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
  }

  .filter-actions-btn button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Fluid Tables with Horizontal Scroll */
  .table-responsive,
  .tender-table-container,
  div[style*="overflow-x: auto"] {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
  }

  .gov-enterprise-table,
  .tender-data-table,
  .gov-table,
  .statutory-table,
  .data-table {
    min-width: 580px !important;
    font-size: 12px !important;
  }

  .gov-enterprise-table th,
  .gov-enterprise-table td,
  .tender-data-table th,
  .tender-data-table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
  }

  /* Mini Alert List on Mobile - Fluid Rounded Horizontal Banner */
  .gov-alert-mini-item {
    padding: 10px 12px !important;
    gap: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    border-radius: 10px !important;
  }

  .gov-alert-mini-item a,
  .gov-alert-mini-item button {
    width: auto !important;
    white-space: nowrap !important;
    margin-left: auto !important;
  }

  /* Responsive Single-Column Forms */
  .form-row,
  .gov-form-grid,
  .form-grid-2,
  .form-grid-3,
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gov-input,
  .gov-select,
  .gov-textarea {
    min-height: 42px !important;
    font-size: 14px !important; /* Prevents auto-zoom on iOS */
    padding: 8px 12px !important;
  }

  /* Responsive Action Buttons */
  .btn-gov-primary,
  .btn-gov-secondary,
  .btn-gov-outline,
  .btn-gov-danger {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12.5px;
    touch-action: manipulation;
  }

  .form-actions-bar,
  .modal-footer-actions,
  .filter-actions-bar {
    flex-direction: column-reverse !important;
    gap: 8px !important;
    width: 100%;
  }

  .form-actions-bar button,
  .modal-footer-actions button,
  .filter-actions-bar button {
    width: 100% !important;
  }

  /* Responsive Modal Windows */
  .modal-overlay,
  .gov-modal-backdrop,
  .side-drawer-overlay,
  .project-drawer-overlay {
    padding: 10px !important;
    align-items: center !important;
  }

  .modal-card,
  .gov-modal,
  .project-drawer-card,
  .side-drawer-card,
  .wizard-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 12px !important;
    padding: 16px 14px !important;
    overflow-y: auto !important;
  }

  /* GIS / Map on Mobile */
  .gis-map-viewport,
  .leaflet-container,
  #gisMapCanvas,
  #subdistrictMapCanvas,
  #districtMapContainer {
    height: 50vh !important;
    min-height: 280px !important;
    width: 100% !important;
    border-radius: 8px !important;
  }

  .gis-floating-panel,
  .map-floating-card,
  .gis-info-drawer {
    position: static !important;
    width: 100% !important;
    margin-top: 10px !important;
    max-height: none !important;
  }

  /* Mobile Bottom Navigation Bar Display */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid var(--outline-variant);
    align-items: center;
    justify-content: space-around;
    z-index: 900;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.08);
    padding: 0 4px;
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    color: var(--on-surface-variant);
    font-size: 10px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s ease;
  }

  .mob-nav-item.active,
  .mob-nav-item:hover {
    color: var(--secondary);
    font-weight: 800;
  }

  .mob-nav-icon {
    width: 20px;
    height: 20px;
  }

  /* Official Footer on Mobile */
  .gov-official-footer {
    padding-bottom: 70px !important;
  }

  .footer-content-wrap {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 10.5px;
  }

  .ft-divider {
    display: none;
  }
}

/* 8. Extra Small Screens (320px - 480px) */
@media (max-width: 480px) {
  .gov-summary-grid,
  .tender-stats-grid,
  .gov-kpi-grid,
  div[style*="grid-template-columns: repeat(auto-fit, minmax(130px, 1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .gov-stat-card,
  .tender-stat-card,
  .gov-kpi-card {
    padding: 8px 6px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .gov-stat-icon-wrap,
  .tender-stat-card .stat-icon,
  .kpi-icon-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 14px !important;
  }

  .kpi-big-num {
    font-size: 18px !important;
  }

  .gov-stat-number {
    font-size: 1.25rem !important;
  }

  .gov-app-heading {
    font-size: 10.5px;
  }

  .view-title {
    font-size: 15px !important;
  }

  .stat-kpi-card,
  .metric-card {
    padding: 10px 8px !important;
  }

  .gov-table th,
  .gov-table td {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
}

.preview-map-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  border: 1px solid #CBD5E1;
}

.preview-infra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.preview-map-box:hover .preview-infra-img {
  transform: scale(1.03);
}

.preview-overlay-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  color: #FFFFFF;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.poi-tag {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #82F5C1;
  margin-bottom: 4px;
}

.poi-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
}

.poi-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.poi-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.poi-progress-fill {
  height: 100%;
  background: #10B981;
  border-radius: 3px;
}

.poi-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #E2E8F0;
}

.preview-notification-strip {
  margin-top: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.notif-text {
  flex: 1;
  font-weight: 600;
  color: #1E3A8A;
}

.notif-time {
  font-size: 10.5px;
  color: #64748B;
}

/* 3. SECTION COMMONS */
.nlams-section-wrap {
  padding: 70px 0;
  border-bottom: 1px solid #E2E8F0;
}

.section-header-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px auto;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.section-main-heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0F172A;
  margin: 0 0 10px 0;
}

.section-sub-heading {
  font-size: 15.5px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

.live-timestamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  color: #334155;
  margin-top: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.live-beacon {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseBeacon 1.8s infinite;
}

/* 4. HIGHLIGHT STATISTICS GRID (Section 4) */
.highlight-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-stat-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.highlight-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #94A3B8;
}

.hsc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.hsc-icon {
  width: 22px;
  height: 22px;
}

.hsc-status-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.green-dot { background: #10B981; }
.blue-dot { background: #2563EB; }
.yellow-dot { background: #F59E0B; }
.teal-dot { background: #0D9488; }

.hsc-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
  display: block;
  margin-bottom: 6px;
}

.hsc-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hsc-number {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}

.hsc-trend {
  font-size: 12px;
  font-weight: 700;
}

.hsc-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.hsc-progress-track {
  width: 100%;
  height: 5px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.hsc-progress-bar {
  height: 100%;
  border-radius: 3px;
}

/* 5. OVERVIEW STATS GRID (Section 5) */
.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overview-metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

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

.omc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
}

.omc-icon-badge {
  width: 32px;
  height: 32px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1D4ED8;
}

.omc-icon {
  width: 16px;
  height: 16px;
}

.omc-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0F172A;
  margin-bottom: 8px;
}

.omc-footer {
  font-size: 12.5px;
  font-weight: 600;
}

/* 6. PROJECTS & FILTERS (Section 6 & 7) */
.projects-filter-bar {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.filter-search-box {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0 14px;
}

.search-lens {
  color: #64748B;
  display: flex;
  align-items: center;
}

.filter-icon {
  width: 18px;
  height: 18px;
}

.filter-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 10px;
  font-size: 14px;
  color: #0F172A;
  outline: none;
}

.filter-dropdowns-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.filter-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
}

.filter-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1E293B;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  border-color: #1D4ED8;
}

.mobile-filter-btn-wrap {
  display: none;
}

.btn-mobile-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

/* Project Cards Grid */
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card-item:hover {
  transform: translateY(-3px);
  border-color: #94A3B8;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.pci-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pci-category-tag {
  font-size: 11px;
  font-weight: 700;
  color: #1E40AF;
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 4px;
}

.pci-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-green { background: #ECFDF5; color: #059669; }
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
.badge-yellow { background: #FFFBEB; color: #D97706; }
.badge-red { background: #FEF2F2; color: #DC2626; }
.badge-teal { background: #F0FDFA; color: #0D9488; }

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pci-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.pci-id-badge {
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 12px;
}

.pci-id-badge .id-val {
  font-weight: 600;
  color: #1E293B;
}

.pci-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 16px;
}

.loc-svg {
  width: 14px;
  height: 14px;
  color: #64748B;
}

.pci-progress-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  background: #F8FAFC;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

.pib-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
}

.pib-track {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.pib-fill {
  height: 100%;
  border-radius: 3px;
}

.pci-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.pci-time-ago {
  font-size: 11.5px;
  color: #64748B;
}

.btn-pci-view {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: #1D4ED8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-pci-view:hover {
  background: #EFF6FF;
}

.projects-bottom-cta {
  text-align: center;
  margin-top: 36px;
}

.btn-gov-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gov-outline:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #1D4ED8;
}

.btn-gov-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1D4ED8;
  border: 1px solid #1E40AF;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gov-primary:hover {
  background: #1E40AF;
}

/* 7. GIS MAP STYLES (Section 8) */
.gis-interactive-wrapper {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  position: relative;
}

.gis-interactive-wrapper.custom-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  height: 100vh !important;
}

.gis-map-toolbar {
  background: #FFFFFF;
  padding: 12px 18px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gis-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gis-portal-tag {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.gis-active-corridors-count {
  font-size: 12px;
  font-weight: 600;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 4px;
}

.gis-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gis-basemap-toggle-group {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 6px;
  padding: 3px;
  border: 1px solid #E2E8F0;
}

.btn-gis-toggle {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gis-toggle.active {
  background: #FFFFFF;
  color: #1D4ED8;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gis-quick-filters {
  display: flex;
  gap: 4px;
}

.gis-legend-pill {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.gis-legend-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.btn-gis-action {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Featured Corridor Shortcuts Bar */
.gis-corridor-shortcuts-bar {
  background: #F8FAFC;
  padding: 10px 18px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gcs-label {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  margin-right: 4px;
}

.gcs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.gcs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.gcs-btn.gcs-samruddhi:hover {
  border-color: #EA580C;
  color: #EA580C;
  background: #FFF7ED;
}

.gcs-btn.gcs-metro:hover {
  border-color: #0284C7;
  color: #0284C7;
  background: #F0F9FF;
}

.gcs-btn.gcs-atal:hover {
  border-color: #7C3AED;
  color: #7C3AED;
  background: #FAF5FF;
}

.gcs-btn.gcs-missing:hover {
  border-color: #059669;
  color: #059669;
  background: #F0FDF4;
}

.gcs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Corridor Popup Box */
.corridor-popup-box {
  min-width: 290px;
  padding: 2px;
  font-family: 'Inter', sans-serif;
}

.cpb-header {
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.cpb-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.cpb-body {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 10px;
}

.btn-cpb-focus {
  width: 100%;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-cpb-focus:hover {
  opacity: 0.9;
}

.legend-divider {
  color: #CBD5E1;
  font-size: 13px;
}

.gis-map-canvas {
  width: 100%;
  height: 540px;
  background: #F1F5F9;
  z-index: 1;
}

.gis-map-legend-bar {
  background: #F8FAFC;
  padding: 10px 18px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Custom Map Pin Styles */
.map-pin-pulse-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.map-pin-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid #FFFFFF;
}

.pin-symbol {
  font-size: 14px;
}

.map-pin-pointer {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid;
  margin-top: -2px;
}

/* Map Leaflet Popup Card */
.gis-map-popup-card {
  padding: 4px;
}

.gmp-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.gmp-type {
  font-weight: 700;
  color: #1D4ED8;
}

.gmp-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.gmp-id {
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 10px;
}

.gmp-progress-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.gmp-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 2px;
}

.gmp-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
}

.gmp-fill {
  height: 100%;
}

.btn-gmp-view {
  width: 100%;
  background: #1D4ED8;
  color: #FFFFFF;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

/* Mobile Bottom Sheet for GIS */
.gis-selected-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #CBD5E1;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.15);
  border-radius: 16px 16px 0 0;
  padding: 12px 20px 20px 20px;
  z-index: 1000;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gis-selected-bottom-sheet.visible {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0 auto 12px auto;
}

.sheet-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.sheet-type-badge {
  font-size: 11px;
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 4px 0 2px 0;
}

.sheet-location {
  font-size: 12px;
  color: #64748B;
}

.sheet-close-btn {
  background: #F1F5F9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.sheet-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ss-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.ss-lbl {
  font-size: 10.5px;
  color: #64748B;
  display: block;
}

.ss-val {
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

.btn-sheet-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1D4ED8;
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

/* 8. LIFECYCLE & PROGRESS TIMELINE (Section 9 & 14) */
.lifecycle-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.lifecycle-stage-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lifecycle-stage-card:hover {
  border-color: #1D4ED8;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.08);
  transform: translateY(-2px);
}

.lsc-number-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #1D4ED8;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.lsc-name {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.lsc-authority {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
}

.lsc-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 4px;
}

.lsc-progress-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lsc-progress-fill {
  height: 100%;
  background: #10B981;
}

.lsc-mandate-text {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
}

/* How NLAMS Works Connected Box */
.how-nlams-works-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.hnw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.hnw-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.hnw-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: 4px;
}

.hnw-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.hnw-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 10px;
  min-width: 95px;
  flex: 1;
}

.hnw-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.hnw-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.3;
}

.hnw-arrow {
  color: #94A3B8;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.hnw-footer-note {
  margin-top: 16px;
  padding-top: 14px;
  margin: 0 0 10px 0;
}

.lsc-sla-chip {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* 9. TRANSPARENCY & CONNECTED FLOW */
.transparency-flow-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tfc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tfc-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.tfc-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.tfc-sub {
  font-size: 13px;
  color: #64748B;
}

.tfc-overall-status {
  text-align: right;
}

.tos-label {
  font-size: 11.5px;
  color: #64748B;
  display: block;
}

.tos-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.transparency-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tm-pillar-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tm-pillar-card.bg-highlight-light {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.tm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tm-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.tm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 14px;
}

.tm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
}

.tm-row strong {
  color: #0F172A;
}

.tm-progress-track {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.tm-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.tm-progress-note {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.btn-tm-inspect {
  width: 100%;
  background: #1D4ED8;
  color: #FFFFFF;
  border: none;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 6px;
}

.btn-tm-inspect:hover {
  background: #1E40AF;
}

.connected-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cfr-step-item {
  flex: 1;
  min-width: 130px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.cfr-step-num {
  font-size: 10px;
  font-weight: 800;
  color: #1D4ED8;
  display: block;
  margin-bottom: 2px;
}

.cfr-step-label {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.cfr-step-role {
  font-size: 11px;
  color: #64748B;
}

.cfr-arrow {
  color: #94A3B8;
  font-size: 16px;
  font-weight: 700;
}

/* 10. COMPLETED PROJECTS SECTION (Section 10) */
.completed-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.completed-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.cpi-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.cpi-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.cpi-meta {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 12px;
}

.cpi-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #F8FAFC;
  padding: 10px;
  border-radius: 6px;
  font-size: 11.5px;
}

.cps-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cps-lbl {
  font-size: 10.5px;
  color: #64748B;
}

.cpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.cpi-comp-tag {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-cpi-view {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #1D4ED8;
  cursor: pointer;
}

.completed-action-row {
  margin-top: 30px;
}

.btn-gov-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gov-outline:hover {
  background: #EFF6FF;
  border-color: #1D4ED8;
}

/* 11. PUBLIC REPORTS & DOWNLOADS (Section 11) */
.public-reports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.report-download-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rdc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rdc-format-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #DC2626;
  background: #FEF2F2;
  padding: 2px 6px;
  border-radius: 4px;
}

.rdc-date {
  font-size: 11px;
  color: #94A3B8;
}

.rdc-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.rdc-desc {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.rdc-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.rdc-size {
  font-size: 11.5px;
  color: #94A3B8;
}

.btn-report-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-report-download:hover {
  background: #1D4ED8;
  color: #FFFFFF;
}

.privacy-statement-callout {
  margin-top: 24px;
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #0F766E;
  line-height: 1.5;
}

/* 12. STAKEHOLDER ROLE CARDS */
.stakeholder-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stakeholder-role-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* 16. MODALS & DIALOGS */
.nlams-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.nlams-modal-dialog {
  background: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  border: 1px solid #CBD5E1;
}

.modal-dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-chip-tag {
  font-size: 11px;
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.modal-dialog-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.modal-id-line {
  font-size: 12px;
  color: #64748B;
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.modal-dialog-body {
  padding: 24px;
}

.modal-summary-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}

.msb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msb-lbl {
  font-size: 11px;
  color: #64748B;
}

.msb-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.modal-section-block {
  margin-bottom: 20px;
}

.msb-heading {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.msb-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.modal-stats-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.msm-col {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
}

.msm-col h5 {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #1E3A8A;
}

.msm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
}

.msm-list div {
  display: flex;
  justify-content: space-between;
}

.modal-privacy-callout {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  line-height: 1.5;
}

.modal-dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nlams-bottom-sheet-dialog {
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUpSheet 0.25s ease-out;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.sheet-close {
  background: #F1F5F9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.sheet-filter-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.m-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.sheet-footer-actions {
  display: flex;
  gap: 10px;
}

.sheet-footer-actions button {
  flex: 1;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .highlight-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .transparency-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .public-reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nlams-nav-menu {
    display: none;
  }

  .btn-mobile-hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 32px;
  }

  .tagline-highlight {
    font-size: 15px;
  }

  .filter-dropdowns-row {
    display: none;
  }

  .mobile-filter-btn-wrap {
    display: block;
  }

  .projects-cards-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .transparency-matrix-grid {
    grid-template-columns: 1fr;
  }

  .tfc-overall-status {
    text-align: left;
    width: 100%;
  }

  .completed-projects-grid {
    grid-template-columns: 1fr;
  }

  .public-reports-grid {
    grid-template-columns: 1fr;
  }

  .stakeholder-roles-grid {
    grid-template-columns: 1fr;
  }

  .modal-summary-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-stats-matrix {
    grid-template-columns: 1fr;
  }

  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .nlams-container {
    padding: 0 16px;
  }

  .brand-full-name {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .highlight-stats-grid {
    grid-template-columns: 1fr;
  }

  .overview-stats-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-timeline-grid {
    grid-template-columns: 1fr;
  }

  .security-pillars-grid {
    grid-template-columns: 1fr;
  }

  .gis-map-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SIH 2026 EVALUATION DEMO MODE & ROLE PREVIEW STYLES
   ========================================================================== */
.demo-mode-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  padding: 24px 22px;
  box-shadow: 0px 6px 20px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.demo-mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284C7, #2563EB, #0F2C59);
}

.demo-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 16px 0;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.demo-role-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.demo-role-card:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  transform: translateY(-1px);
}

.demo-role-card.active {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 0 0 1px #2563EB, 0 2px 8px rgba(37, 99, 235, 0.12);
}

.demo-role-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0F2C59;
  flex-shrink: 0;
  transition: all 0.2s;
}

.demo-role-card.active .demo-role-icon {
  background: #2563EB;
  color: #FFFFFF;
}

.demo-role-info {
  flex: 1;
  min-width: 0;
}

.demo-role-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-role-dept {
  font-size: 11px;
  color: #64748B;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-role-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-role-card.active .demo-role-badge {
  background: #DBEAFE;
  color: #1E40AF;
}

.btn-demo-continue {
  width: 100%;
  height: 44px;
  background: #062B5B;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(6, 43, 91, 0.25);
}

.btn-demo-continue:hover {
  background: #0A3D7C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.35);
}

.btn-demo-continue:active {
  transform: translateY(0);
}

/* In-Dashboard Demo Mode Topbar & Widget */
.sih-demo-mode-topbar-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.demo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  display: inline-block;
  box-shadow: 0 0 6px #38BDF8;
  animation: demoPulse 1.8s infinite;
}

@keyframes demoPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.demo-role-select {
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid #475569;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.demo-role-select:focus {
  border-color: #38BDF8;
}

.btn-demo-exit {
  background: rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-demo-exit:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

.demo-mode-evaluation-banner {
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  color: #1E40AF;
  padding: 4px 16px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ==========================================================================
   GLOBAL ZERO-HORIZONTAL-SCROLL SHIELD FOR ALL DASHBOARDS
   Prevents accidental viewport horizontal overflow while preserving clean layout
   ========================================================================== */
html, body, #app {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.app-workspace {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.gov-main-viewport {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.view-body-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Container & Card Containment */
.gov-card,
.gov-panel-card,
.dashboard-card,
.stat-card,
.matrix-card,
.national-command-hero,
.view-header-bar,
.kpi-row,
.filter-row,
.summary-bar {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Tables internal scrolling containment (prevents entire page from widening) */
.gov-table-container,
.table-responsive,
.data-table-wrap,
.matrix-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
}

.gov-enterprise-table,
.gov-data-table {
  max-width: 100%;
  box-sizing: border-box;
}

/* Grid layout safety */
.dashboard-grid,
.gov-grid,
.gov-grid-2,
.gov-grid-3,
.gov-grid-4,
.kpi-grid,
.metrics-grid {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure Leaflet container fills 100% of height and width */
.map-wrapper-box > div,
.gis-welcome-box .leaflet-container,
.gov-panel-card .leaflet-container,
.leaflet-container {
  height: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
  display: block !important;
}

/* Big Map Screen on Dashboards (Expansive & Ultra-Clear Nationwide View) */
#agencyGisPanelWrap .map-wrapper-box,
#stateGisPanelWrap .map-wrapper-box,
#distGisPanelWrap .map-wrapper-box,
#subdistGisPanelWrap .map-wrapper-box,
#landownerGisPanelWrap .map-wrapper-box,
#landownerDashGisPanelWrap .map-wrapper-box,
#agencyGISMapCanvas,
#stateCadastralMapContainer,
#districtCadastralMapContainer,
#subdistrictCadastralMapContainer,
#landownerGISMapCanvas,
#landownerDashGISMapCanvas,
#dedicatedGisMapContainer,
#contractorGisMap,
#landingGisMapCanvas,
.map-wrapper-box {
  height: 850px;
  min-height: 800px;
  width: 100% !important;
  position: relative !important;
  display: block !important;
  background: #0F172A;
}

#dedicatedGisPanelWrap .map-wrapper-box,
#dedicatedGisMapContainer {
  height: calc(100vh - 125px) !important;
  min-height: 880px !important;
}

@media (min-width: 992px) {
  #agencyGisPanelWrap .map-wrapper-box,
  #stateGisPanelWrap .map-wrapper-box,
  #distGisPanelWrap .map-wrapper-box,
  #subdistGisPanelWrap .map-wrapper-box,
  #landownerGisPanelWrap .map-wrapper-box,
  #landownerDashGisPanelWrap .map-wrapper-box,
  #contractorGisMap,
  #landingGisMapCanvas {
    height: 850px !important;
    min-height: 820px !important;
  }
}

@media (max-width: 991px) and (min-width: 576px) {
  #agencyGisPanelWrap .map-wrapper-box,
  #stateGisPanelWrap .map-wrapper-box,
  #distGisPanelWrap .map-wrapper-box,
  #subdistGisPanelWrap .map-wrapper-box,
  #landownerGisPanelWrap .map-wrapper-box,
  #landownerDashGisPanelWrap .map-wrapper-box,
  #dedicatedGisMapContainer,
  #contractorGisMap,
  #landingGisMapCanvas,
  .map-wrapper-box {
    height: 650px !important;
    min-height: 600px !important;
  }
}

/* High-Visibility GIS Dashboard Search Bar */
#agencyMapSearchInput,
#stateMapSearchInput,
#gisMainLocationSearchInput {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 2.5px solid #38BDF8 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

#agencyMapSearchInput::placeholder,
#stateMapSearchInput::placeholder,
#gisMainLocationSearchInput::placeholder {
  color: #64748B !important;
  font-weight: 500 !important;
}

#agencySearchSuggestionsDropdown {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 2px solid #0284C7 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
}

/* ================= Mobile & Small Device Workspace Optimization ================= */
@media (max-width: 575px) {
  #agencyGisPanelWrap .map-wrapper-box,
  #stateGisPanelWrap .map-wrapper-box,
  #distGisPanelWrap .map-wrapper-box,
  #subdistGisPanelWrap .map-wrapper-box,
  #landownerGisPanelWrap .map-wrapper-box,
  #landownerDashGisPanelWrap .map-wrapper-box,
  #dedicatedGisMapContainer,
  #contractorGisMap,
  #landingGisMapCanvas,
  .map-wrapper-box {
    height: 420px !important;
    min-height: 380px !important;
  }

  .gov-official-topbar {
    height: 60px !important;
    padding: 0 12px !important;
  }

  .bhoosutra-logo-img {
    height: 34px !important;
    max-height: 34px !important;
  }

  .gov-app-heading {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .gov-dept-line {
    display: none !important;
  }

  .sih-demo-mode-topbar-widget {
    padding: 2px 4px !important;
    gap: 3px !important;
  }

  .demo-role-select {
    max-width: 105px !important;
    font-size: 10px !important;
  }

  .gov-user-text {
    display: none !important;
  }

  .gov-avatar-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }

  .gov-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gov-panel-card {
    padding: 14px 12px !important;
    border-radius: 8px !important;
  }

  .gov-enterprise-table {
    display: table !important;
    min-width: 580px !important;
  }
}


