/* Main Layout Architecture */
.app-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-page);
  width: 100%;
}

/* Full-Height Sticky Sidebar Navigation (Compact Sleek Theme) */
.sidebar {
  width: 235px;
  min-width: 235px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #063c22 0%, #0a4d2c 50%, #06331d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 12px;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 2px 0 16px rgba(6, 60, 34, 0.15);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
}

.brand-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  padding: 3px;
}

.brand-wheat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.brand-accent {
  color: #4ade80;
  font-weight: 800;
}

.brand-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-item.active {
  background: #ffffff;
  color: #064e3b;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.nav-item.active .nav-icon {
  stroke: #064e3b;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

/* Sidebar Promotional Card */
.sidebar-promo-card {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(12, 90, 54, 0.9) 0%, rgba(6, 46, 27, 0.98) 100%),
              url('../assets/images/hero-field.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.promo-farmer-img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: block;
}

.promo-text {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.promo-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-logo-mini {
  width: 20px;
  height: 20px;
}

.promo-subtext {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.15;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: var(--bg-page);
}

/* Top Navbar (Spanning all the way to right side) */
.top-navbar {
  height: 58px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 480px;
}

.navbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 100%;
  transition: all 0.2s ease;
}

.navbar-search:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 90, 54, 0.12);
}

.navbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.86rem;
  color: var(--text-main);
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-btn-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.navbar-btn-create:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(12, 90, 54, 0.2);
  transform: translateY(-1px);
}

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-default);
  transition: all 0.15s ease;
}

.notif-btn:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
}

.profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.profile-widget:hover {
  background: #f1f5f9;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-border);
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Full-Width Dashboard Content Grid */
.dashboard-content {
  padding: 28px 36px 56px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

/* Hero Panoramic Banner (Full-Width) */
.hero-banner {
  background: linear-gradient(90deg, rgba(6, 46, 27, 0.95) 0%, rgba(12, 90, 54, 0.88) 40%, rgba(12, 90, 54, 0.35) 75%, transparent 100%),
              url('../assets/images/hero-field.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  width: 100%;
}

.hero-text-group {
  max-width: 100%;
  z-index: 2;
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-location-change {
  color: #86efac;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline;
}

.hero-slogan-badge {
  text-align: right;
  z-index: 2;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fef08a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.25;
  padding-right: 15px;
}

/* Stat Cards Grid (4 Cards Spanning Full Width) */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper.green {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon-wrapper.blue {
  background: #dbeafe;
  color: #2563eb;
}

.stat-icon-wrapper.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.stat-icon-wrapper.orange {
  background: #ffedd5;
  color: #ea580c;
}

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

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.stat-arrow-icon {
  width: 15px;
  height: 15px;
  color: var(--text-light);
  transition: transform 0.15s;
}

.stat-card:hover .stat-arrow-icon {
  transform: translateX(3px);
  color: var(--primary);
}

/* Listings Table (Full Width) */
.listings-table-container {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-default);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #fbfdfc;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.crop-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crop-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.crop-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.price-main {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.92rem;
}

.price-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Bottom Grid (Mandi + Forecast) */
.market-forecast-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  width: 100%;
}

/* Mandi Prices List */
.mandi-list {
  display: flex;
  flex-direction: column;
}

.mandi-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

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

.mandi-crop-name {
  font-weight: 700;
  color: var(--text-main);
}

.mandi-price {
  font-weight: 700;
  color: var(--text-main);
}

.mandi-trend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
}

.trend-up {
  color: #16a34a;
}

.trend-down {
  color: #dc2626;
}

.sparkline-svg {
  width: 75px;
  height: 26px;
  overflow: visible;
}

/* Price Forecast Card */
.forecast-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forecast-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

.forecast-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.forecast-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.forecast-crop-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.forecast-duration {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.forecast-percentage {
  font-size: 1.35rem;
  font-weight: 800;
  color: #16a34a;
  text-align: right;
  line-height: 1.1;
}

.forecast-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.forecast-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: #f0fdf4;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 1200px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-forecast-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-default);
  }
  .top-navbar {
    padding: 0 16px;
  }
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-content {
    padding: 16px;
  }
}

/* Tabs & Pill Navigation */
.gov-tabs-container {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gov-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gov-tab-btn:hover {
  color: #0c5a36;
  background: #f1f5f9;
}

.gov-tab-btn.active {
  color: #0c5a36;
  background: #ffffff;
  border-bottom: 3px solid #0c5a36;
  font-weight: 800;
}

/* Filter Bar */
.gov-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gov-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
  flex: 1;
  min-width: 260px;
}

.gov-search-box input {
  border: none;
  outline: none;
  font-size: 0.86rem;
  width: 100%;
  font-family: inherit;
}

/* Badges & Indicators */
.badge-gov-clear {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-gov-pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-gov-hold {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-gov-audit {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Action Buttons */
.btn-gov-approve {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.btn-gov-approve:hover {
  background: #047857;
}

.btn-gov-reject {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gov-reject:hover {
  background: #fecaca;
}

.btn-gov-inspect {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gov-inspect:hover {
  background: #e2e8f0;
}

.btn-gov-remove {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-gov-remove:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #7f1d1d;
}

.btn-gov-suspend {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-gov-suspend:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box-lg, .modal-box, .modal-card, .modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #e2e8f0;
}

/* Split Case Comparison Card */
.case-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 680px) {
  .case-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Executive Governance Overview Hero & Glass Cards */
.gov-hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #042f2e 100%);
  border-radius: 18px;
  padding: 24px 28px;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.gov-hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.gov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.gov-kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.gov-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
}

.kpi-gov-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4.5px solid #16a34a;
}

.kpi-gov-blue {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 4.5px solid #0284c7;
}

.kpi-gov-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-left: 4.5px solid #9333ea;
}

.kpi-gov-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fef08a;
  border-left: 4.5px solid #ca8a04;
}

.gov-regional-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.gov-regional-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.gov-regional-card:hover {
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
}

.badge-gov-clear {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gov-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fef08a;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gov-hold {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

@media (max-width: 580px) {
  .gov-kpi-grid, .gov-regional-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   TODAY'S OVERVIEW 5-CARD GRID & MARKETPLACE CONTROL CENTER THEMES
   ========================================================================= */
.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

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

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

.overview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.card-kpi-farmers {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #bbf7d0;
  border-left: 5px solid #16a34a;
}

.card-kpi-buyers {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  border-left: 5px solid #0284c7;
}

.card-kpi-deals {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1.5px solid #e9d5ff;
  border-left: 5px solid #9333ea;
}

.card-kpi-deliveries {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-left: 5px solid #d97706;
}

.card-kpi-pending {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1.5px solid #fecdd3;
  border-left: 5px solid #e11d48;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: pulseAlert 2s infinite ease-in-out;
}

@keyframes pulseAlert {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

/* Sections View Switcher */
.gov-section {
  display: none;
}

.gov-section.active {
  display: block;
  animation: fadeInSec 0.22s ease-out;
}

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

/* Filter buttons bar */
.filter-pills-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-pill.active {
  background: #064e3b;
  color: #ffffff;
  border-color: #064e3b;
}

/* Emergency Sell Cards */
.emergency-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.emergency-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #fca5a5;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================================
   GIS APMC MAP & VIEW TOGGLE CONTROLS
   ========================================================================= */
.view-toggle-btn {
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.view-toggle-btn.active {
  background: #064e3b;
  color: #ffffff;
  border-color: #064e3b;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.2);
}

.map-layer-pill {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  transition: all 0.15s ease;
}

.map-layer-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.map-layer-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Custom Leaflet Map Pin Markers */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.custom-map-pin:hover {
  transform: scale(1.15);
}

.pin-mandi {
  background: #059669;
}

.pin-mandi.pin-alert {
  background: #e11d48;
  animation: pulse-pin 1.5s infinite;
}

.pin-cold {
  background: #0284c7;
}

.pin-fleet {
  background: #d97706;
}

@keyframes pulse-pin {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* =========================================================================
   PUBLIC CRISIS ADVISORY & VOICE BROADCASTER
   ========================================================================= */
.lang-selector-pill {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  transition: all 0.15s ease;
}

.lang-selector-pill:hover {
  background: #e2e8f0;
}

.lang-selector-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* =========================================================================
   AI ANTI-HOARDING ANOMALY CARDS
   ========================================================================= */
.anomaly-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #fed7aa;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.anomaly-card.critical {
  border-color: #fca5a5;
  background: #fffafa;
}

.badge-cartel-alert {
  background: #fee2e2;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-msp-breach {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* =========================================================================
   CLEAN & SIMPLIFIED EXECUTIVE COCKPIT STYLES (STRIPE/LINEAR GRADE)
   ========================================================================= */

/* 1. Sleek Minimalist Executive Status Bar */
.executive-status-bar {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  margin-bottom: 20px;
  position: relative;
}

.executive-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.executive-avatar-badge {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.executive-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.status-live-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.executive-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.executive-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.executive-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.executive-role-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 9px;
  border-radius: 999px;
}

.executive-subtext {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulseDot 1.8s infinite;
}

.dot-sep {
  color: #cbd5e1;
}

.status-sub-highlight {
  font-weight: 700;
  color: #047857;
}

.executive-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-family: inherit;
  user-select: none;
}

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

.btn-pill-alert {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.08);
}
.btn-pill-alert:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.16);
}

.btn-pill-advisory {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}
.btn-pill-advisory:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16);
}

.btn-pill-audit {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.btn-pill-audit:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* 2. Streamlined Executive 4-Card KPI Overview Grid */
.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

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

.executive-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.executive-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

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

.kpi-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid #f1f5f9;
}

.kpi-icon-badge.icon-alert {
  background: #fff1f2;
  border-color: #fecdd3;
}

.kpi-tag-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.tag-green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.tag-purple {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.tag-amber {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.tag-rose {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.kpi-card-body {
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.kpi-value.val-alert {
  color: #e11d48;
}

.kpi-caption {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.kpi-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.kpi-footer-note {
  color: #475569;
  font-weight: 600;
}

.kpi-footer-link {
  font-weight: 800;
  color: #059669;
  transition: transform 0.15s ease;
}

.kpi-card:hover .kpi-footer-link {
  transform: translateX(2px);
}

.kpi-footer-link.link-alert {
  color: #e11d48;
}

/* 3. Cockpit 2-Column Split Layout */
.cockpit-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .cockpit-grid {
    grid-template-columns: 1fr;
  }
}

.cockpit-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.panel-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0 0;
  line-height: 1.4;
}

.badge-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef08a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.btn-panel-action {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-panel-action:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  transform: translateY(-1px);
}

.count-bubble {
  background: #e11d48;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

/* Priority Action Queue Micro-Cards */
.action-queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.action-queue-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-queue-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.action-queue-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.action-queue-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.avatar-escrow {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.avatar-dispute {
  background: #fffbeb;
  border: 1px solid #fef08a;
}

.avatar-kyc {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.avatar-emergency {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

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

.action-queue-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.queue-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.queue-urgency {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 4px;
}

.action-queue-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.action-queue-meta {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.proof-verified {
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.action-queue-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.action-queue-amount {
  font-size: 0.92rem;
  font-weight: 900;
  color: #0f172a;
}

.action-queue-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-action-approve {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action-approve:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-action-inspect {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-action-inspect:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Panel Footers */
.panel-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.panel-footer-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #059669;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.panel-footer-btn:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

/* 4. Live Operational Pulse 3-Tab Widget */
.pulse-tabs-bar {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 16px;
}

.pulse-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pulse-tab-btn:hover {
  color: #0f172a;
}

.pulse-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.pulse-tab-pane {
  display: none;
  animation: tabFadeIn 0.2s ease-out;
}

.pulse-tab-pane.active {
  display: block;
}

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

/* Tab 1: Mandi Watch List */
.mandi-watch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.mandi-watch-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.15s ease;
}

.mandi-watch-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.mandi-watch-card.alert-card {
  border-left: 4px solid #e11d48;
}

.mandi-watch-card.warning-card {
  border-left: 4px solid #f59e0b;
}

.mandi-watch-card.clear-card {
  border-left: 4px solid #10b981;
}

.watch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.watch-mandi-name {
  font-size: 0.86rem;
  color: #0f172a;
  font-weight: 800;
}

.watch-crop-tag {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}

.watch-crop-tag span {
  color: #334155;
  font-weight: 700;
}

.watch-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.stat-pill.modal-rate strong {
  color: #0f172a;
}

.btn-gis-modal-trigger {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-gis-modal-trigger:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 95, 70, 0.12);
}

/* Tab 2: Reefer Fleets List */
.fleet-telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.fleet-row-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.15s ease;
}

.fleet-row-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

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

.fleet-truck-id {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0284c7;
}

.fleet-temp-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 6px;
}

.fleet-route-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
}

.fleet-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: #64748b;
  margin-top: 4px;
}

/* Tab 3: Cold Storage List */
.storage-telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.storage-row-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.15s ease;
}

.storage-row-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

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

.storage-hub-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
}

.storage-hub-district {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}

.storage-meter-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: #334155;
  margin-bottom: 5px;
}

.storage-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.storage-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.storage-telemetry-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.71rem;
  color: #64748b;
}

.pulse-tab-footer-link {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pulse-tab-footer-link:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}





