*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f6fb;
  color: #111827;
}

.dashboard-body {
  background: #f5f6fb;
  color: #111827;
  display: block;
}

.app {
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  color: #374151;
}

input {
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 0.9rem;
}

input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
}

button {
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #22c55e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.4);
}

button:hover {
  background: #16a34a;
}

button:active {
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.error {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #dc2626;
}

.welcome {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.welcome h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.welcome p {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Admin layout (sidebar + main) */

.admin-shell {
  display: flex;
  min-height: 100vh;
  max-width: 600px;
  margin: 0;
  padding: 1rem 1.25rem;
  gap: 1rem;
}

/* Clients, Policies, Personal Policies, Quote Requests, and Messages pages get more width */
.admin-shell[data-active-view="clients"],
.admin-shell[data-active-view="policies"],
.admin-shell[data-active-view="personal-policies"],
.admin-shell[data-active-view="quote-requests"],
.admin-shell[data-active-view="messages"] {
  max-width: 900px;
}

/* Add Client page gets a bit more width for the form */
.admin-shell[data-active-view="add-client"] {
  max-width: 1040px;
}

.sidebar {
  width: 240px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #4f46e5;
}

.sidebar-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0.75rem 0 0.4rem;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
}

.sidebar-link.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #9ca3af;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.main-title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
}

.main-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-input {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.85rem;
  min-width: 220px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 0.85rem;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
}

.stat-sub {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.secondary-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-size: 0.85rem;
}

.secondary-btn:hover {
  background: #f3f4f6;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab-button {
  padding: 0.45rem 0.95rem;
  border-radius: 999px 999px 0 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.85rem;
}

.tab-button.active {
  color: #111827;
  background: #ffffff;
  border-bottom: 2px solid #4f46e5;
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.main-view {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.main-view.active {
  display: flex;
}

.panel-header {
  margin-bottom: 0.75rem;
}

.panel-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.hint {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.table-container {
  margin-top: 0.75rem;
}

.table-scroll {
  max-height: 420px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding-bottom: 0.5rem; /* keep last row clear of scrollbar */
}

/* Slim, subtle scrollbars for admin tables (WebKit browsers) */
.table-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7); /* slate-400 */
  border-radius: 999px;
}
.table-scroll:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.9);
}

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

.data-table thead {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 1;
}

.data-table th,
.data-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

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

.data-table tr:nth-child(even) td {
  background-color: #f9fafb;
}

.data-table tr:nth-child(odd) td {
  background-color: #ffffff;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.search-row input[type='text'],
.search-row input[type='number'] {
  max-width: 260px;
}

.inline-label {
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Add Client form */
.add-client-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #374151;
  gap: 0.3rem;
}
.add-client-form label .required { color: #dc2626; }
.add-client-form input[type="text"],
.add-client-form input[type="number"],
.add-client-form input[type="date"],
.add-client-form select {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.9rem;
}
.add-client-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}
.add-client-form .form-full { grid-column: 1 / -1; }
.add-client-form .form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.add-client-form .btn-primary {
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.add-client-form .btn-primary:hover { background: #4338ca; }
.add-client-form .form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.add-client-form .form-message.success { color: #059669; }
.add-client-form .form-message.error { color: #dc2626; }
@media (max-width: 640px) {
  .add-client-form .form-grid { grid-template-columns: 1fr; }
}

/* Passed / overdue dates: red text with red line through (strikethrough) */
.expiry-overdue {
  color: #b91c1c;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: #b91c1c;
  text-decoration-thickness: 2px;
  background-color: #fef2f2;
}

/* Upcoming within a month (≤30 days): red blinking */
@keyframes expiry-blink-red {
  0%, 100% { opacity: 1; color: #b91c1c; background-color: #fef2f2; }
  50% { opacity: 0.75; color: #dc2626; background-color: #fecaca; }
}
.expiry-upcoming-red {
  color: #b91c1c;
  font-weight: 600;
  background-color: #fef2f2;
  border-left: 3px solid #b91c1c;
  padding-left: 0.35rem;
  animation: expiry-blink-red 1.2s ease-in-out infinite;
}

/* More than 1 month, less than 2 months (31–60 days): orange */
.expiry-upcoming-orange {
  color: #c2410c;
  font-weight: 600;
  background-color: #fff7ed;
  border-left: 3px solid #ea580c;
  padding-left: 0.35rem;
}

@media (max-width: 480px) {
  .card {
    padding: 1.75rem 1.5rem;
  }
}

/* ========== Admin dashboard UI ==========
 * MENU pages are scoped so changes don't affect others:
 * - Dashboard: .page-dashboard and #view-dashboard
 * - Policies:  .page-policies and #view-policies
 * - Clients:   .page-clients and #view-clients
 * - Add Client: .page-add-client and #view-add-client
 * - Renewals:  .page-renewals and #view-renewals
 * - Quote Requests: .page-quote-requests and #view-quote-requests
 * Use these selectors for page-specific overrides only.
 */
.admin-sidebar { width: 200px; background: #fff; border-radius: 10px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); padding: 1rem 0.875rem; }
.admin-sidebar .sidebar-logo { color: #0f172a; font-weight: 700; font-size: 1rem; }
.admin-sidebar .sidebar-link.active { background: #dcfce7; color: #16a34a; }
.admin-sidebar .sidebar-link { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
.admin-main { padding: 1rem; }
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 45%;
}
.admin-header .main-title { font-size: 1.375rem; font-weight: 700; color: #0f172a; }
.admin-header .main-subtitle { color: #4b5563; font-size: 0.8125rem; }
.admin-search { padding: 0.4rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; min-width: 180px; font-size: 0.8125rem; }
.admin-search:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
.admin-btn-primary { padding: 0.4rem 0.75rem; background: #22c55e; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.8125rem; }
.admin-btn-primary:hover { background: #16a34a; }
.admin-btn-secondary { padding: 0.4rem 0.75rem; background: #f3f4f6; color: #374151; border: none; border-radius: 6px; cursor: pointer; font-size: 0.8125rem; }
.admin-btn-secondary:hover { background: #e5e7eb; }

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 45%;
}

/* Extra spacing for dashboard table below alerts */
.page-dashboard .admin-panel {
  margin-top: 1.25rem;
}

/* Dashboard policy tabs */
.admin-dashboard-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
}
.admin-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.admin-tab:hover {
  color: #374151;
  background: #f3f4f6;
}
.admin-tab.active {
  color: #16a34a;
  background: #dcfce7;
}
.admin-tab-pane {
  display: block;
}
.admin-tab-pane[hidden] {
  display: none;
}

/* Success notification (e.g. Deleted successfully / Saved successfully) */
.admin-notification {
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
}
.admin-notification.success {
  background: #dcfce7;
  color: #166534;
}
.admin-notification[hidden] {
  display: none !important;
}

/* Policies / Clients / Renewals / Quote Requests / Messages:
   let tables grow with page (use page scroll, not inner scroll) */
#view-policies .admin-panel-table-wrap .table-scroll,
#view-clients .admin-panel-table-wrap .table-scroll,
#view-renewals .admin-panel-table-wrap .table-scroll,
#view-quote-requests .admin-panel-table-wrap .table-scroll,
#view-messages .admin-panel-table-wrap .table-scroll {
  max-height: none;
}

/* Stats cards */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .admin-stats { grid-template-columns: 1fr; } }
.admin-stat-card {
  background: #fff; border-radius: 10px; padding: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.admin-stat-content { flex: 1; min-width: 0; }
.admin-stat-label { font-size: 0.75rem; color: #4b5563; margin: 0 0 0.15rem; }
.admin-stat-value { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
.admin-stat-icon { width: 2.25rem; height: 2.25rem; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-stat-icon svg { width: 1.125rem; height: 1.125rem; }
.admin-stat-icon-blue { background: #dbeafe; color: #2563eb; }
.admin-stat-icon-red { background: #fee2e2; color: #dc2626; }
.admin-stat-icon-orange { background: #ffedd5; color: #ea580c; }
.admin-stat-sub { font-size: 0.75rem; color: #6b7280; margin: 0.35rem 0 0; width: 100%; }

/* Alerts */
.admin-alert { display: flex; gap: 0.5rem; padding: 1rem; border-radius: 10px; margin-bottom: 0.75rem; }
.admin-alert-red { background: #fef2f2; border: 1px solid #fecaca; }
.admin-alert-orange { background: #fff7ed; border: 1px solid #fed7aa; }
.admin-alert-icon { flex-shrink: 0; font-size: 1.125rem; }
.admin-alert-body { flex: 1; min-width: 0; }
.admin-alert-title { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.35rem; }
.admin-alert-red .admin-alert-title { color: #991b1b; }
.admin-alert-orange .admin-alert-title { color: #9a3412; }
.admin-alert-text { margin: 0 0 0.35rem; font-size: 0.8125rem; }
.admin-alert-red .admin-alert-text { color: #b91c1c; }
.admin-alert-orange .admin-alert-text { color: #c2410c; }
.admin-alert-link { font-weight: 500; font-size: 0.8125rem; }
.admin-alert-red .admin-alert-link { color: #dc2626; }
.admin-alert-orange .admin-alert-link { color: #ea580c; }

/* Extra space above urgent alert on dashboard */
#dashboard-urgent-alert {
  margin-top: 1rem;
}

/* Panel */
.admin-panel { background: #fff; border-radius: 10px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); overflow: hidden; }
.admin-panel-header { padding: 1rem 1.25rem 0.5rem; border-bottom: 1px solid #e5e7eb; }
.admin-panel-header h2 { font-size: 1.0625rem; font-weight: 600; color: #0f172a; margin: 0 0 0.2rem; }
.admin-panel-header .hint { margin: 0; font-size: 0.75rem; color: #6b7280; }
.admin-panel-table-wrap { overflow-x: auto; }
.admin-panel-table-wrap .table-container { margin: 0; }
.admin-panel-table-wrap .table-scroll { max-height: 360px; overflow: auto; border: none; border-radius: 0; }
.admin-panel-footer { padding: 0.75rem 1.25rem; background: #f9fafb; border-top: 1px solid #e5e7eb; }
.admin-panel-link { color: #16a34a; font-weight: 500; text-decoration: none; font-size: 0.8125rem; }
.admin-panel-link:hover { color: #15803d; }
.admin-panel-actions { padding: 0.5rem 1.25rem; border-bottom: 1px solid #e5e7eb; }

/* Table (admin) */
.admin-panel .data-table thead { background: #f9fafb; }
.admin-panel .data-table th { padding: 0.5rem 0.75rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: #4b5563; font-weight: 600; }
.admin-panel .data-table td { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
.admin-panel .data-table tbody tr:hover td { background: #f9fafb; }
.admin-panel .data-table tbody tr:nth-child(even) td { background: #fff; }
.admin-panel .data-table tbody tr:nth-child(even):hover td { background: #f9fafb; }

.admin-link-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  margin-right: 0.5rem;
}
.admin-link-btn:hover {
  text-decoration: underline;
}

/* Filter bar (Clients) */
.admin-filter-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #fff; padding: 0.75rem 1.25rem; border-radius: 10px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.admin-filter-label { font-size: 0.8125rem; color: #4b5563; }
.admin-filter-input { flex: 1; min-width: 160px; padding: 0.4rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.8125rem; }
.admin-filter-input:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
.admin-results-hint { margin: 0.35rem 0 0; font-size: 0.75rem; color: #6b7280; }

/* Add Client page */
.admin-page-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.admin-page-head-icon { width: 2.5rem; height: 2.5rem; background: #dcfce7; color: #16a34a; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.admin-page-title { font-size: 1.375rem; font-weight: 700; color: #0f172a; margin: 0 0 0.2rem; }
.admin-page-sub { margin: 0; font-size: 0.8125rem; color: #4b5563; }
.admin-form { background: #fff; border-radius: 10px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); overflow: hidden; }
.admin-form-section { padding: 1.25rem 1.5rem; }
.admin-form-section-title { font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0 0 0.75rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1rem; }
.admin-form-grid .form-full { grid-column: 1 / -1; }
.admin-form-label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8125rem; font-weight: 500; color: #374151; }
.admin-form-label .required { color: #dc2626; }
.admin-input { padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.8125rem; background: #fff; }
.admin-input:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
.admin-form-actions { padding: 1rem 1.5rem; background: #f9fafb; border-top: 1px solid #e5e7eb; display: flex; gap: 0.75rem; }
.admin-form-actions .admin-btn-primary { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.admin-form-message { margin: 0.75rem 1.5rem 0; font-size: 0.8125rem; }
.admin-form-message.success { color: #059669; }
.admin-form-message.error { color: #dc2626; }
@media (max-width: 640px) { .admin-form-grid { grid-template-columns: 1fr; } }

/* Renewals summary cards */
.admin-renewals-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .admin-renewals-summary { grid-template-columns: 1fr; } }
.admin-summary-card { padding: 1rem; border-radius: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.admin-summary-red { background: #fef2f2; border: 1px solid #fecaca; }
.admin-summary-orange { background: #fff7ed; border: 1px solid #fed7aa; }
.admin-summary-green { background: #f0fdf4; border: 1px solid #bbf7d0; }
.admin-summary-label { font-size: 0.75rem; margin: 0 0 0.2rem; }
.admin-summary-red .admin-summary-label { color: #dc2626; }
.admin-summary-orange .admin-summary-label { color: #ea580c; }
.admin-summary-green .admin-summary-label { color: #16a34a; }
.admin-summary-value { font-size: 1.5rem; font-weight: 700; margin: 0; }
.admin-summary-red .admin-summary-value { color: #b91c1c; }
.admin-summary-orange .admin-summary-value { color: #c2410c; }
.admin-summary-green .admin-summary-value { color: #15803d; }
.admin-summary-icon { font-size: 1.25rem; }

/* Clients page only: larger search filter */
#view-clients .admin-filter-bar {
  padding: 1rem 1.5rem;
  min-width: 320px;
}
#view-clients .admin-filter-input {
  min-width: 300px;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
}
#view-clients .admin-filter-bar .admin-btn-primary {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Add Client page only: use more width so form isn't cramped */
.admin-shell[data-active-view="add-client"] .admin-content {
  max-width: 95%;
}
.admin-shell[data-active-view="clients"] .admin-content {
  max-width: 95%;
}
.admin-shell[data-active-view="policies"] .admin-content,
.admin-shell[data-active-view="personal-policies"] .admin-content {
  max-width: 95%;
}
.admin-shell[data-active-view="quote-requests"] .admin-content,
.admin-shell[data-active-view="messages"] .admin-content {
  max-width: 95%;
}
.admin-shell[data-active-view="add-client"] .admin-form-section {
  padding: 1.5rem 2rem;
}
.admin-shell[data-active-view="add-client"] .admin-form-grid {
  gap: 1rem 1.5rem;
}
.admin-shell[data-active-view="add-client"] .admin-input {
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
}

