:root {
  --primary-color: #6366f1;
  --primary-light: #e0e7ff;
  --primary-dark: #4338ca;
  --secondary-color: #10b981;
  --secondary-light: #d1fae5;
  --accent-color: #f59e0b;
  --accent-light: #fef3c7;
  --danger-color: #ef4444;
  --danger-light: #fee2e2;
  --sidebar-bg: #ffffff;
  --sidebar-active: #f3f4f6;
  --header-height: 64px;
}

body {
  background: #f9fafb;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2937;
  line-height: 1.5;
}

.sidebar {
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  z-index: 1040;
}

.sidebar .nav-link {
  color: #4b5563;
  border-radius: 0.375rem;
  margin: 0.125rem 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.925rem;
}

.sidebar .nav-link.active, 
.sidebar .nav-link:hover {
  background: var(--sidebar-active);
  color: var(--primary-color);
  font-weight: 500;
}

.sidebar .nav-link.active {
  position: relative;
}

.sidebar .nav-link.active:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  border-radius: 3px 0 0 3px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.25rem 0 1.75rem 1rem;
  display: flex;
  align-items: center;
}

.logo-icon {
  background: var(--primary-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background: white;
  transition: none;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card .icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.stat-card .icon-wrapper.primary {
  background: var(--primary-light);
  color: var(--primary-color);
}

.stat-card .icon-wrapper.success {
  background: var(--secondary-light);
  color: var(--secondary-color);
}

.stat-card .icon-wrapper.warning {
  background: var(--accent-light);
  color: var(--accent-color);
}

.stat-card .icon-wrapper.info {
  background: #e3f2fd;
  color: #1976d2;
}

.stat-card .icon-wrapper.secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.age-range-card {
  transition: all 0.3s ease;
  background: #fff;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.age-range-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #dee2e6 !important;
  text-decoration: none;
  color: inherit;
}

.age-range-card .progress {
  background-color: #f8f9fa;
}

.age-range-card .progress-bar {
  transition: width 0.6s ease;
}

.age-range-card-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  text-decoration: none;
  padding: 0.75rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  min-height: 120px;
  max-width: 120px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.age-range-card-circle .display-6 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.age-range-card-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  text-decoration: none;
}

.age-range-card-square {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  text-decoration: none;
  padding: 0.75rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  min-height: 120px;
  max-width: 120px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.age-range-card-square .display-6 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.age-range-card-square:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  text-decoration: none;
}

.age-range-primary {
  background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}

.age-range-success {
  background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
}

.age-range-warning {
  background: linear-gradient(135deg, #fd7e14 0%, #dc6502 100%);
}

.age-range-info {
  background: linear-gradient(135deg, #0aa2c0 0%, #087990 100%);
}

.age-range-secondary {
  background: linear-gradient(135deg, #5c636a 0%, #495057 100%);
}

.gender-male {
  background: linear-gradient(135deg, #0d6efd 0%, #084298 100%);
}

.gender-female {
  background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
}

.gender-other {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

@media (max-width: 768px) {
  .age-range-card-circle {
    min-height: 100px;
    max-width: 100px;
    padding: 0.5rem;
  }
  
  .age-range-card-circle .display-6 {
    font-size: 1.1rem !important;
    line-height: 1.1;
  }
  
  .age-range-card-circle small {
    font-size: 0.7rem !important;
  }
  
  .age-range-card-square {
    min-height: 100px;
    max-width: 100px;
    padding: 0.5rem;
  }
  
  .age-range-card-square .display-6 {
    font-size: 1.1rem !important;
    line-height: 1.1;
  }
  
  .age-range-card-square small {
    font-size: 0.7rem !important;
  }
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.825rem;
  background: var(--primary-color);
  color: white;
  flex-shrink: 0;
}

img.avatar,
img.avatar-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.trend-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

.navbar-main {
  height: var(--header-height);
  background: white;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .navbar-main {
    padding: 0.5rem 0.75rem;
    min-height: auto;
    height: auto;
  }
  
  .navbar-main .container-fluid {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .navbar-main .container-fluid > button {
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }
  
  .navbar-main .container-fluid .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.5rem !important;
    width: 100%;
  }
  
  .navbar-main .container-fluid .ward-switcher-mobile-container {
    width: 100%;
  }
  
  .navbar-main .container-fluid .ward-switcher-select {
    width: 100%;
    min-width: auto;
  }
  
  .navbar-main .container-fluid .ms-auto {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .navbar-main .container-fluid {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .navbar-main .container-fluid .d-flex.gap-2 {
    flex-direction: row;
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .navbar-main .container-fluid .ward-switcher-mobile-container {
    width: auto;
  }
  
  .navbar-main .container-fluid .ward-switcher-select {
    width: auto;
    min-width: 150px;
  }
}

@media (max-width: 576px) {
  .navbar-main {
    padding: 0.5rem 0.5rem;
    min-height: 56px;
  }
}

.product-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.order-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-processing {
  background: #e0e7ff;
  color: #4f46e5;
}

.status-shipped {
  background: #d1fae5;
  color: #059669;
}

.status-delivered {
  background: #dcfce7;
  color: #16a34a;
}

.status-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.goal-progress {
  height: 5px;
  border-radius: 3px;
  background: #e5e7eb;
  overflow: hidden;
}

.goal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
}

.search-box {
  position: relative;
  max-width: 280px;
}

.search-box .form-control {
  padding-left: 2.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.875rem;
}

.search-box .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h5, h6 {
  font-weight: 500;
}

.card-title {
  font-size: 0.875rem;
  color: #6b7280;
}

.display-6 {
  font-size: 1.5rem;
  font-weight: 600;
}

.table {
  font-size: 0.875rem;
}

.table th {
  font-weight: 500;
  color: #6b7280;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1039;
  display: none;
}

.progress-thin {
  height: 6px;
}

.bg-pink {
  background-color: #ec4899;
}

@media (max-width: 991.98px) {
  .sidebar {
      position: fixed;
      left: -260px;
      top: 0;
      width: 240px;
      height: 100%;
  }
  
  .sidebar.show {
      left: 0;
  }
  
  .sidebar-backdrop.show {
      display: block;
  }
}

@media (min-width: 992px) {
  .sidebar-backdrop {
      display: none !important;
  }
}

.chart-container {
  height: 250px;
  position: relative;
}

.order-filter-form {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control-sm {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.form-select-sm {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.filter-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.reset-btn {
  background: white;
  border-color: #e5e7eb;
  color: #6b7280;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.reset-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #4b5563;
}

.date-range-input {
  position: relative;
}

.date-range-input .form-control {
  padding-left: 2.5rem;
}

.date-range-input .date-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Avatar dropdown button without border */
.dropdown-user {
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.dropdown-user:focus {
  outline: none;
  box-shadow: none;
}

.dropdown-user:hover .avatar {
  opacity: 0.9;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Customer form styles */
.customer-form {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

/* Voter cards (moved from inline styles) */
.voter-card{border:2px solid #f3f3f3;border-radius:15px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.voter-card.death{border:2px solid #f60606;border-radius:15px}
.voter-card .card-body{position:relative}
.voter-card .avatar-circle{width:64px;height:64px;border-radius:50%;object-fit:cover;border:1px solid #e5e7eb}
.voter-card .content{padding-right:40px}
.avatar-col{width:84px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.avatar-col .avatar-circle{margin:0 auto}
.is-death{border:2px solid #dc3545 !important}

/* Death indicator - red dot on left side of voter card */
.voter-card .death-dot{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:14px;height:14px;background:#dc3545;border-radius:50%;box-shadow:0 0 0 2px #fff}

/* Filter card tweaks */
.app-filter .seg-title{font-size:.8rem;color:#6c757d}
@media (max-width: 576px){
  .app-filter{position:sticky;top:0;border-radius:16px}
  .app-filter .form-label{display:none}
  .app-filter .form-control,.app-filter .form-select{border-radius:12px}
}

/* Print page styles (moved from inline) */
.print-photo{width:48px;height:60px;object-fit:cover;border:1px solid #ddd}
.print-cell{border:1px solid #e5e7eb;padding:.5rem}
.print-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
@media (max-width: 992px){.print-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 576px){.print-grid{grid-template-columns:1fr}}

/* Mobile typography to match app-like sizing */
@media (max-width: 576px){
  body{font-size:14px;line-height:1.5}
  h1{font-size:1.25rem}
  h5{font-size:1rem}
  h6,.card-title{font-size:.85rem}
  .display-6{font-size:1.25rem}
  .table{font-size:.8rem}
  .btn-sm{font-size:.75rem;padding:.2rem .45rem}
  .form-label{font-size:.8rem}
  .form-control,.form-select{font-size:.875rem}
  .voter-card .avatar-circle{width:56px;height:56px}
  .avatar-col{width:72px;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .avatar-col .avatar-circle{margin:0 auto}
  .voter-card .content{padding-right:32px}
  
  /* Additional mobile improvements */
  .stat-card .card-body {
    padding: 1rem 0.75rem;
  }
  
  .stat-card .icon-wrapper {
    width: 36px;
    height: 36px;
    margin-bottom: 0.5rem;
  }
  
  .stat-card .icon-wrapper i {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 1rem 0.75rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Slide-over filter panel */
.filter-toggle{border:1px solid #e5e7eb}
.filter-panel{position:fixed;top:0;right:-360px;width:320px;max-width:85vw;height:100vh;background:#fff;border-left:1px solid #e5e7eb;box-shadow:-2px 0 6px rgba(0,0,0,.06);z-index:1090;transition:right .25s ease}
.filter-panel.show{right:0}
.filter-panel .header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid #e5e7eb}
.filter-panel .body{padding:1rem;overflow:auto;height:calc(100vh - 56px)}
.filter-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:1085;display:none}
.filter-backdrop.show{display:block}

/* Generic list card for index pages */
.list-card{border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.06);padding:.75rem 1rem;background:#fff}
.list-card .title{font-weight:600}
.list-card .subtitle{color:#6b7280;font-size:.85rem}
.list-card .actions{display:flex;gap:.375rem}
@media (max-width:576px){
  .list-card{padding:.6rem .8rem;border-radius:10px}
  .list-card .subtitle{font-size:.8rem}
}

.form-label {
  font-weight: 500;
  color: #4b5563;
  font-size: 0.875rem;
}

.form-control, .form-select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.submit-btn {
  background: var(--primary-color);
  border: none;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.filter-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.reset-btn {
  background: white;
  border-color: #e5e7eb;
  color: #6b7280;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.reset-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #4b5563;
}

.date-range-input {
  position: relative;
}

.date-range-input .form-control {
  padding-left: 2.5rem;
}

.date-range-input .date-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
}



/* Header Ward Switcher Styling */
.ward-switcher-container {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ward-switcher-container:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.ward-switcher-container .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.ward-switcher-container .form-select {
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: white;
  transition: all 0.2s ease;
}

.ward-switcher-container .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
  outline: none;
}

.ward-switcher-container .form-select:hover {
  border-color: #9ca3af;
}

/* Responsive design for ward switcher */
@media (max-width: 768px) {
  .ward-switcher-container {
    padding: 0.75rem 1rem;
    margin: 0 0.5rem;
  }
  
  .ward-switcher-container .form-label {
    font-size: 0.8rem;
  }
  
  .ward-switcher-container .form-select {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    min-width: 200px;
  }
}

@media (max-width: 576px) {
  .ward-switcher-container {
    padding: 0.6rem 0.8rem;
    margin: 0 0.25rem;
  }
  
  .ward-switcher-container .form-label {
    font-size: 0.75rem;
  }
  
  .ward-switcher-container .form-select {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    min-width: 180px;
  }
}

.search-section {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.search-field-group,
.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-field-group label,
.search-input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  padding-top: 1.25rem;
}

.search-actions .btn {
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.search-actions .btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.search-actions .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.search-actions .btn-outline-secondary {
  color: #64748b;
  border-color: #cbd5e1;
}

.search-actions .btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #475569;
}

/* Mobile ward switcher improvements */
.ward-switcher-mobile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.ward-switcher-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ward-switcher-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

@media (max-width: 767px) {
  .ward-switcher-content {
    gap: 0;
  }
}

.ward-switcher-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  text-align: center;
}

.ward-switcher-select {
  min-width: 200px;
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  background: white;
  transition: all 0.2s ease;
  text-align: center;
}

.ward-switcher-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
  outline: none;
}

.ward-switcher-select:hover {
  border-color: #9ca3af;
}

@media (min-width: 768px) {
  .ward-switcher-content {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }
  
  .ward-switcher-label {
    font-size: 1rem;
    white-space: nowrap;
  }
  
  .ward-switcher-select {
    min-width: 250px;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  .ward-switcher-mobile-container {
    padding: 0 0.5rem;
  }
  
  .ward-switcher-select {
    min-width: 180px;
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  
  .ward-switcher-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .ward-switcher-mobile-container {
    padding: 0;
    width: 100%;
  }
  
  .ward-switcher-select {
    width: 100%;
    min-width: auto;
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
  }
  
  .ward-switcher-label {
    font-size: 0.75rem;
  }
  
  .ward-switcher-content {
    width: 100%;
  }
}

/* Legacy support for old classes */
.ward-select-mobile {
  min-width: 200px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .ward-switcher-container-box {
    width: 100%;
    max-width: 100%;
  }
  
  .ward-switcher-container-box .form-select {
    min-width: 180px;
    max-width: 100%;
    font-size: 0.9rem;
  }
  
  .ward-switcher-section,
  .search-section {
    padding: 0.5rem 0.75rem;
  }
  
  .search-field-group,
  .search-input-group {
    min-width: 120px;
  }
  
  .search-actions {
    padding-top: 1rem;
  }
  
  .search-actions .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .ward-switcher-container-box .form-select {
    min-width: 160px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  
  .ward-switcher-container-box .form-label {
    font-size: 0.8rem;
  }
}
