/* =========================
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Sora:wght@400;500;600;700&display=swap");

/* =========================
   BASE / RESET
========================= */
:root {
  --listing-image-width: 220px;
  --listing-image-height: 160px;
  --color-ink: #0f172a;
  --color-muted: #475569;
  --color-accent: #2563eb;
  --color-accent-strong: #1e40af;
  --color-accent-soft: #e0e7ff;
  --color-sand: #f7f5f0;
  --color-surface: #ffffff;
  --color-border: #e4e0d7;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lift: 0 18px 40px rgba(15, 23, 42, 0.16);
}

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Sora", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-ink);
  background: var(--color-sand);
  background-image:
    radial-gradient(900px 450px at 10% -10%, #e6f3f1 0%, transparent 60%),
    radial-gradient(800px 420px at 92% 0%, #f7ede2 0%, transparent 55%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

div {
  font-family: inherit;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  font-size: 16px;
  font-family: inherit;
  color: var(--color-ink);
  padding: 10px 12px;
}
  

/* =========================
   NAV BUTTONS
========================= */

.nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;

  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: bold;

  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.nav a:hover {
  background-color: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.45);
}

.nav a:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.5);
}
  
  

  



.citylinks > div {
  flex: 1;
  text-align: center;
}

#results .listing-card .listing-content {
  width: 75%;
  display: inline-block;
  margin: 0 auto;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

#results .listing-card .listing-text {
  flex: 1;
}


@media (max-width: 768px) {
/* City links grid (submit page) */
.citylinks {
    flex-direction: column;
    align-items: center;
    
  }
  .citylinks > div {
    width: 100%;
    max-width: 400px;
  }
}



.content-btn {
  display: inline-block;
  background-color: var(--color-accent);   /* burgundy / wine */
  color: #ffffff;

  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;

  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transition: 
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover (mouse over) */
.content-btn:hover {
  background-color: var(--color-accent-strong);   /* darker wine */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.45);
}

/* Click (mouse down) */
.content-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.5);
}


/* Page headings (city pages) */
#houston, #dallas {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
}

html {
    scroll-behavior: smooth;
}

  nav a:link { 
    text-decoration: none; 
  } 
 nav  a:visited { 
    text-decoration: none; 
  } 
  nav a:hover { 
    text-decoration: none; 
    opacity: .75;
  } 
  nav a:active { 
    text-decoration: none; 
  }
 
  
  


/* Main Content Section */
  .maincontent {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 20px;
  }

/* Home page: search + help columns */
  .home-page-top-content {
  display: flex;
  gap: 24px;
  width: 100%;
  align-items: stretch;
  flex-direction: row;
}

.services-page .services-page-content {
  width: 100%;
}

.services-page .home-page-search-for-services.services-full {
  width: 100%;
  flex: 1;
}

 .home-page-search-for-services {
    
    flex: 2;
    min-width: 0;
    text-align: center;
    border: 5px solid var(--color-accent);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    order: 1;
    padding: 5px 30px; /* ⬅ top/bottom | left/right */
  }

  .home-page-search-for-services iframe {
  width: 100%;
  max-width: 100%;
  height: 600px;
  display: block;
}

  .home-page-important-phone-numbers {
    min-width: 0;
    flex: 1;
    align-content: flex-start;
    align-items: center;
    text-align: center;
    border: 5px solid var(--color-accent);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    order: 2;
    
  }
/* =========================
   NATIONAL RESOURCES PAGE list of phone numbers top right of home page ======================== */
  .national-resources {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.resource-disclaimer {
  background: #f8f1f3;
  border-left: 4px solid var(--color-accent);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.resource-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-list li {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.resource-list a {
  color: var(--color-accent);
  font-weight: bold;
  text-decoration: none;
}

.resource-list a:hover {
  text-decoration: underline;
}

.icon {
  font-size: 1.4rem;
  margin-right: 8px;
}

.resource-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
}
/* =========================
   HOME PAGE LIST OF STATES AND CITIES ======================== */

  .home-page-list-of-states-cities {
    display: flex;
    

  }
  
  .list-states-cities {
  align-content: center;
    width: 100%;
    font-size: 25px;
    text-align: center;
    border: 5px solid var(--color-accent);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    padding: 20px 30px; /* ⬅ top/bottom | left/right */
    
  
}


.state-row {
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 8px;
  line-height: 1.6;
}

.state-row a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.state-row a:hover {
  text-decoration: underline;
}

  
  
  .citylinks {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  
}

.city-links-content {
  border: 5px solid var(--color-accent);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
  
/* Food bank listings (city pages) */
.food-bank-list {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: column;

    padding: 20px;
  margin: 20px auto;
  max-width: 900px;

 
  }



.food-bank-item {
  display: flex;
  gap: 20px;
  align-items: center;

  padding: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.food-bank-image {
  width: var(--listing-image-width);
  height: var(--listing-image-height);
  object-fit: cover;
  border-radius: 10px;
}

.food-bank-details {
    flex: 1;
  }

  @media (max-width: 768px) {
  .food-bank-item {
    flex-direction: column;
    text-align: center;
  }

  .food-bank-image img {
    width: 100%;
    max-width: 300px;
  }
}

.food-bank-details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.food-bank-details-list li {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 8px;
  font-size: 18px;
}

.food-bank-details-list i {
  color: var(--color-accent);
  min-width: 20px;
}

/* Primary button */
.btn-primary {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--color-accent);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.5);
}

.btn-large {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  background-color: #f0e4e6;
  color: #4d2a32;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #d8c0c5;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #e6d3d7;
}

.btn-secondary.saved {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-secondary.saved:hover {
  background-color: var(--color-accent-strong);
}

.btn-danger {
  display: inline-block;
  padding: 10px 18px;
  background-color: #9b1c31;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #7a1626;
  font-weight: 600;
}

.btn-danger:hover {
  background-color: #6f1221;
}

.btn-small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* Experimental "future" buttons (UNUSED by default; keep for later experiments) */
.btn-future {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  isolation: isolate; /* keep pseudo layers behind text */
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    filter 0.16s ease;
}

.btn-future:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.btn-future:active {
  transform: translateY(0);
}

/* 1) Glass */
.btn-future-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  border-color: rgba(226, 232, 240, 0.85);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
}

.btn-future-glass:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  border-color: rgba(37, 99, 235, 0.32);
}

/* 2) Orbit (outlined + animated conic ring) */
.btn-future-orbit {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.btn-future-orbit::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 180deg,
    rgba(37, 99, 235, 0) 0deg,
    rgba(37, 99, 235, 0.55) 70deg,
    rgba(20, 184, 166, 0.55) 140deg,
    rgba(245, 158, 11, 0.55) 210deg,
    rgba(37, 99, 235, 0.55) 280deg,
    rgba(37, 99, 235, 0) 360deg
  );
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -2;
  pointer-events: none;
}

.btn-future-orbit::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  z-index: -1;
  pointer-events: none;
}

.btn-future-orbit:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.38);
}

.btn-future-orbit:hover::before {
  opacity: 1;
  animation: btn-orbit-spin 1.6s linear infinite;
}

@keyframes btn-orbit-spin {
  to { transform: rotate(360deg); }
}

/* 3) Pulse (soft neon gradient + subtle shimmer) */
.btn-future-pulse {
  color: #0b1220;
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.16));
  box-shadow:
    0 12px 26px rgba(37, 99, 235, 0.18),
    0 12px 26px rgba(20, 184, 166, 0.12);
  overflow: hidden;
}

.btn-future-pulse::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 55%);
  transform: translateX(-30%);
  opacity: 0.65;
  z-index: -1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.btn-future-pulse:hover {
  transform: translateY(-1px);
  filter: saturate(115%);
}

.btn-future-pulse:hover::before {
  transform: translateX(18%);
  opacity: 0.85;
}

/* 4) Hybrid (Orbit ring + Pulse palette) */
.btn-future-hybrid {
  color: #0b1220;
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.14));
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.16),
    0 12px 28px rgba(20, 184, 166, 0.1);
  overflow: hidden;
}

.btn-future-hybrid::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 180deg,
    rgba(37, 99, 235, 0) 0deg,
    rgba(37, 99, 235, 0.55) 70deg,
    rgba(20, 184, 166, 0.55) 150deg,
    rgba(37, 99, 235, 0.55) 260deg,
    rgba(37, 99, 235, 0) 360deg
  );
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -2;
  pointer-events: none;
}

.btn-future-hybrid::after {
  content: "";
  position: absolute;
  inset: 1px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(20, 184, 166, 0.16));
  border-radius: 11px;
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
  transform: translateX(-18%);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.btn-future-hybrid:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.36);
  filter: saturate(115%);
}

.btn-future-hybrid:hover::before {
  opacity: 1;
  animation: btn-orbit-spin 1.6s linear infinite;
}

.btn-future-hybrid:hover::after {
  transform: translateX(10%);
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .btn-future-orbit:hover::before { animation: none; }
  .btn-future-pulse::before { transition: none; }
  .btn-future-hybrid:hover::before { animation: none; }
  .btn-future-hybrid::after { transition: none; }
}


  hr {
    margin-top: 20px;
  }

 

  /* =========================
   NAVIGATION (DESKTOP)
========================= */

.header {
  background-color: beige;
  width: 100%;

}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  font-size: 36px;
  font-weight: bold;
  color: var(--color-accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-breadcrumbs {
  font-size: 18px;
  font-weight: 600;
  color: #8a6f5a;
}

.logo-breadcrumbs.has-breadcrumbs {
  display: inline-flex;
}

.nav {
  display: flex;
  gap: 25px;
  font-size: 25px; 
  color: burlywood;
}

/* Hide hamburger on desktop */
.menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-accent);
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 768px) {
  .logo {
    font-size: 24px;
  }

  .logo-breadcrumbs {
    font-size: 14px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    border-top: 2px solid var(--color-accent);
    padding: 10px 0;
    background-color: beige;
  }

  .nav a {
    padding: 12px 0;
    text-align: center;
    font-size: 22px;
    border-bottom: 1px solid var(--color-accent);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

/* =========================
   ADD NEW LISTING FORM
========================= */

.add-listing-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.location-hero {
  margin: 10px 0 24px;
  padding: 18px 22px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e6d5c3;
  box-shadow: 0 6px 16px rgba(31, 42, 68, 0.08);
}

.location-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--color-accent);
}

.location-hero p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
}

.add-listing-section h1 {
  text-align: center;
  color: var(--color-accent);
}

.add-listing-section p {
  text-align: center;
  margin-bottom: 25px;
}

.add-listing-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.add-listing-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: var(--color-accent);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  margin-bottom: 10px;
}

.checkbox-group label {
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-listing-form input:not([type="checkbox"]):not([type="radio"]),
.add-listing-form select,
.add-listing-form textarea {
  margin-top: 6px;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid var(--color-accent);
}

.add-listing-form textarea {
  resize: vertical;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .add-listing-section {
    margin: 20px;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .home-page-top-content {
    flex-direction: column;
  }

  .home-page-search-for-services iframe {
    height: 400px;
  }
}

/* =========================
   ADD LISTING CTA BUTTON LOCATED ON HOME PAGE
========================= */

.add-listing-cta {
  text-align: center;
  margin: 50px 0;
}


/* ADMIN DASHBOARD */

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.user-search-bar {
  justify-content: space-between;
}

.user-search-input {
  max-width: 260px;
  width: 100%;
}

.user-search-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.admin-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-card input {
  width: 100%;
  max-width: 520px;
}

.admin-actions-search {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-search-block {
  flex: 0 0 320px;
}

.admin-search-block input {
  width: 100%;
  max-width: 360px;
}

.admin-actions-block {
  flex: 1 1 520px;
}

@media (max-width: 900px) {
  .admin-actions-search {
    flex-direction: column;
  }
  .admin-search-block,
  .admin-actions-block {
    flex: 1 1 100%;
  }
}

@media (min-width: 901px) {
  .admin-actions-search {
    position: sticky;
    top: 16px;
    z-index: 10;
  }
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-logout {
  margin-left: auto;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-actions .btn-primary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.admin-header-actions .btn-primary:hover {
  color: var(--color-accent);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.admin-header-actions .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.admin-menu-button {
  cursor: pointer;
}

.admin-menu-modal-content {
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

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

.admin-menu-body {
  margin-top: 8px;
}

.admin-menu-dropdown {
  position: relative;
}

.admin-menu-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #e6d8db;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: 1500;
}

.user-actions-dropdown .admin-menu-dropdown-content {
  top: auto;
  bottom: calc(100% + 6px);
  max-height: 240px;
  overflow-y: auto;
}

.admin-menu-dropdown:hover .admin-menu-dropdown-content,
.admin-menu-dropdown:focus-within .admin-menu-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-menu-dropdown-content button {
  background: #f7f1f2;
  border: 1px solid #e6d8db;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.admin-menu-dropdown-content a {
  display: block;
  background: #f7f1f2;
  border: 1px solid #e6d8db;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.admin-menu-dropdown-content button:hover {
  background: var(--color-accent);
  color: #fff;
}

.admin-menu-dropdown-content a:hover {
  background: var(--color-accent);
  color: #fff;
}

.import-open .shelter-topbar {
  display: none;
}

.admin-form-open .shelter-topbar {
  display: none !important;
}

.user-create {
  background: #fff;
  border: 1px solid #e6d8db;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.user-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.user-form input:not([type="checkbox"]):not([type="radio"]),
.user-form select,
#user-search {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-profile-fields {
  display: grid;
  gap: 6px;
}

.user-profile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.user-profile-fields input,
.user-profile-fields select {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-active {
  background: #e3f5ea;
  color: #1f7a3b;
}

.status-disabled {
  background: #f7e1e1;
  color: #8a1f2b;
}

.user-disabled {
  opacity: 0.7;
}

.import-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 12px 0 16px;
  background: #fff7f2;
  border: 1px solid #e6c9bd;
  border-radius: 10px;
}

.import-banner.hidden {
  display: none;
}


.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 140px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.summary-card.attention {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25), 0 8px 18px rgba(220, 38, 38, 0.2);
  transform: translateY(-1px);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  animation: summary-giggle 0.35s ease-in-out;
}

@keyframes summary-giggle {
  0% { transform: translateY(-2px) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
  75% { transform: translateY(-2px) rotate(-0.5deg); }
  100% { transform: translateY(-2px) rotate(0deg); }
}

.summary-label {
  font-weight: 700;
  color: var(--color-accent);
}

.summary-count {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-top: 4px;
}

.admin-tabs .tab {
  padding: 10px 18px;
  border: none;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.admin-tabs .tab.active {
  background-color: var(--color-accent-strong);
  color: #ffffff;
}

/* Admin top buttons styled like primary buttons */
.admin-tabs button {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-tabs button:hover {
  background-color: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.45);
}

.admin-tabs button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.5);
}

#admin-search {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  min-width: 220px;
}

#admin-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
}

.admin-card {
  border: 1px solid var(--color-border);
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--color-surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--color-border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--color-accent-soft);
  font-weight: 700;
}

.admin-table tr {
  height: 64px;
}

.unit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.unit-search-row {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 16px;
}

.unit-search-input {
  width: min(420px, 100%);
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.unit-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.add-listing-form .form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.add-listing-form .form-row label {
  flex: 1 1 180px;
  min-width: 160px;
}

.hours-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-rows {
  display: grid;
  gap: 12px;
}

.hours-row {
  align-items: center;
  gap: 12px;
}

.hours-time-group {
  flex-wrap: wrap;
  gap: 10px;
}

.hours-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.hours-row .underline-input {
  min-width: 120px;
}

@media (max-width: 720px) {
  .hours-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hours-row span {
    min-width: auto;
  }
}

.shelter-dashboard-index .unit-actions .btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.shelter-dashboard-index .unit-actions .btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index .unit-actions .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.unit-table-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 6px;
  overflow-x: auto;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.unit-table-card .admin-table {
  min-width: 820px;
  background: transparent;
  border: none;
}

.unit-table-card .admin-table th,
.unit-table-card .admin-table td {
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 8px 10px;
}

.unit-table-card .admin-table tr {
  height: 44px;
}

.unit-table-card select {
  padding: 6px 8px;
  min-height: 32px;
}

.unit-table-card .admin-table th {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-ink);
  font-weight: 700;
}

.unit-table-card .admin-table tr:hover td {
  background: rgba(37, 99, 235, 0.06);
}

.unit-table-card select {
  width: 100%;
}

.admin-listings-table-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 6px;
  overflow-x: auto;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.admin-listings-table-card .admin-table {
  min-width: 980px;
  background: transparent;
  border: none;
}

.admin-listings-table-card .admin-table th,
.admin-listings-table-card .admin-table td {
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 8px 10px;
}

.admin-listings-table-card .admin-table th {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-ink);
  font-weight: 700;
}

.admin-listings-table-card .admin-table tr:hover td {
  background: rgba(37, 99, 235, 0.06);
}

.issue-reason-input {
  width: 100%;
  min-width: 180px;
  padding: 6px 8px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #d7e0f0;
  font-family: inherit;
}

.issue-reason-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.admin-listings-table-card .ai-cell {
  text-align: center;
  width: 50px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e6f7ee;
  color: #1a7f37;
  font-weight: 700;
  font-size: 12px;
}

.ai-status {
  color: #1a7f37;
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: auto;
}

.ai-status.hidden {
  display: none;
}

.admin-listings-table-card .admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.admin-listings-table-card .admin-actions button {
  padding: 8px 12px;
  border-radius: 999px;
}

.case-header {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.case-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.case-header-title h2 {
  margin: 0;
}

.case-search-input {
  width: min(260px, 60vw);
}

.case-header-title .btn-small {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 0.85rem;
  line-height: 1.1;
}

.case-header-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.case-header + .saved-resources-list,
.case-header + #cases-list,
.case-header + .saved-resource-line {
  margin-top: 14px;
}

.case-header-actions .btn-small {
  padding: 8px 14px;
  font-size: 0.95rem;
}

.unit-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 640px;
  width: min(92vw, 640px);
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  z-index: 1200;
  overflow: auto;
}

.unit-form-modal label {
  display: block;
}

.unit-form-modal .profile-actions {
  justify-content: flex-end;
}

.provider-form-modal {
  max-width: 760px;
  width: min(94vw, 760px);
}

.provider-form-modal {
  position: fixed;
}

.provider-form-modal .provider-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
}

.provider-form-modal.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.provider-form-modal .provider-form-header {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  text-align: center;
}

.provider-form-modal .provider-form-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.provider-form-modal .provider-search-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.provider-form-modal .provider-search-label {
  font-weight: 600;
}

.provider-form-modal .provider-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 100%);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
}

.provider-form-modal .provider-search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  outline: none;
  font: inherit;
  min-width: 0;
}

.provider-form-modal .provider-search-pill input::placeholder {
  color: #94a3b8;
}

.provider-form-modal .provider-search-pill .btn-primary {
  border-radius: 999px;
}

.provider-unlink-modal {
  max-width: 420px;
  width: min(92vw, 420px);
  text-align: center;
}

.provider-unlink-modal .profile-actions {
  justify-content: center;
  gap: 12px;
}

.provider-unlink-modal .provider-form-header {
  margin-bottom: 8px;
}

.client-form-modal {
  max-width: 1600px;
  width: min(99vw, 1600px);
  z-index: 1200;
}

.client-form-modal.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-form-modal {
  position: fixed;
}

#case-form-modal .pac-container,
.pac-container {
  z-index: 2000 !important;
}

#case-form-modal {
  z-index: 1700;
}

#client-form {
  z-index: 1400;
}

.client-form-modal .client-form-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.case-form-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.case-form-actions .client-form-close {
  position: static;
}

.case-form-actions .icon-button {
  min-width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.print-options-modal {
  max-width: 420px;
  width: min(92vw, 420px);
  z-index: 2100;
}

.print-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.print-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.provider-form-modal .provider-results {
  display: grid;
  gap: 14px;
  justify-content: center;
  grid-template-columns: 1fr;
  width: 100%;
}

.provider-form-modal .provider-results .saved-resource {
  width: min(560px, 100%);
  margin: 0 auto;
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}

.provider-form-modal .provider-search-item .provider-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-form-modal .provider-search-item .provider-result-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.provider-form-modal .provider-search-item .provider-result-address {
  color: #64748b;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-form-modal .provider-search-item .listing-add-btn {
  flex-shrink: 0;
}

.provider-linked-item .provider-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-linked-item .provider-result-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.provider-linked-item .provider-result-address {
  color: #64748b;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#linked-listings .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 680px) {
  .provider-form-modal .provider-search-item .provider-result-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .provider-form-modal .provider-search-item .provider-result-info {
    flex-wrap: wrap;
  }

  .provider-form-modal .provider-search-item .provider-result-address {
    white-space: normal;
  }

  .provider-linked-item .provider-result-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .provider-linked-item .provider-result-info {
    flex-wrap: wrap;
  }

  .provider-linked-item .provider-result-address {
    white-space: normal;
  }
}

.provider-form-modal #listing-search-empty {
  text-align: center;
}

.unit-form-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1100;
}

.admin-listings-card {
  overflow-x: auto;
}

.admin-listings-card #admin-listings,
.admin-listings-card #claim-requests-panel,
.admin-listings-card #removal-requests-panel {
  width: 100%;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.admin-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.admin-actions button:nth-child(1) {
  background: #2e7d32;
  color: white;
}

.admin-actions button:nth-child(2) {
  background: #f9a825;
  color: white;
}

.admin-actions button:nth-child(3) {
  background: #c62828;
  color: white;
}

.hidden {
  display: none !important;
}

/* Add Listing Form Styles */
#listing-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#listing-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.field-link {
  margin-top: -6px;
  margin-bottom: 10px;
}

.field-link a {
  color: var(--color-accent);
  font-weight: bold;
  text-decoration: none;
}

.field-link a:hover {
  text-decoration: underline;
}

#listing-form input,
#listing-form textarea,
#listing-form select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-row {
  display: flex;
  gap: 10px;
}

#listing-form button {
  margin-top: 10px;
  padding: 10px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* form panel */
.form-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1300;
}

.form-panel.open {
  transform: translateX(0);
}

.form-actions-top {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* Map preview side panel */
.map-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1100;
}

.map-modal.open {
  transform: translateX(0);
}

.map-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#map-canvas {
  width: 100%;
  height: 100%;
  border: 0;
  flex: 1;
}

/* Import panel */
.import-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.import-panel.open {
  transform: translateX(0);
}

.import-panel-content {
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 0;
}

.import-sidebar {
  width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.import-resizer {
  width: 6px;
  cursor: col-resize;
  background: #f0e6e9;
  border-left: 1px solid #e1c3cb;
  border-right: 1px solid #e1c3cb;
}

.import-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.import-controls {
  display: grid;
  gap: 10px;
}

.import-controls input,
.import-controls select {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.import-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.import-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 160px);
  padding-right: 4px;
}

@media (max-width: 900px) {
  .import-panel-content {
    flex-direction: column;
  }

  .import-sidebar {
    width: 100%;
  }

  .import-resizer {
    display: none;
  }
}

.import-count {
  font-weight: 600;
  color: var(--color-accent);
}

.import-count-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.import-map-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.import-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-accent);
}

.import-result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
}

.import-meta {
  margin-top: 6px;
  font-size: 0.9rem;
}

.import-photo-actions {
  margin-top: 6px;
}

.import-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.import-photo-thumb {
  width: 54px;
  height: 54px;
  border: 2px solid transparent;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
}

.import-photo-thumb.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.import-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.import-viewer.hidden {
  display: none;
}

.import-viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.import-viewer-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 10px;
}

.import-viewer-content .close-modal {
  position: absolute;
  top: -12px;
  right: -12px;
}

.import-attribution {
  font-size: 0.85rem;
  color: #555;
}

.auth-page {
  min-height: 100vh;
  background: var(--color-sand);
  background-image:
    radial-gradient(900px 450px at 10% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(800px 420px at 92% 0%, rgba(148, 163, 184, 0.18) 0%, transparent 55%);
  display: block;
}

.auth-main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 40px;
}

.auth-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: min(960px, 90vw);
  align-items: start;
}

.auth-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.auth-divider {
  height: 1px;
  background: var(--color-border);
  margin: 14px 0;
  width: 100%;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.auth-page .btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1e3a8a;
}

.auth-google {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.auth-google #google-signin {
  min-height: 40px;
}

.auth-google .auth-google-fallback {
  width: 100%;
}

.auth-captcha {
  margin: 6px 0 12px;
}

.auth-card label {
  display: block;
  margin-bottom: 10px;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.auth-checkbox input[type="checkbox"] {
  margin-top: 4px;
}

.auth-checkbox a {
  color: #1f5bd1;
  font-weight: 600;
  text-decoration: none;
}

.auth-checkbox a:hover {
  text-decoration: underline;
}

.auth-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-row .auth-field {
  flex: 1 1 180px;
  min-width: 140px;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-card select,
.auth-card textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 4px;
  border: none;
  border-bottom: 2px solid var(--color-border);
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.2;
  box-sizing: border-box;
  min-height: 40px;
  border-radius: 0;
  font-family: inherit;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-bottom-color: #2563eb;
  box-shadow: 0 8px 0 -6px rgba(37, 99, 235, 0.35);
}

.role-help-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.role-select {
  flex: 0 0 220px;
  max-width: 220px;
}

.role-help-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.role-help-link:hover {
  color: var(--color-accent-strong);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  width: min(92vw, 640px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.modal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-card-body h4 {
  margin: 12px 0 4px;
  color: var(--color-ink);
}

.modal-card-body p {
  margin: 0;
  color: var(--color-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.alerts-layout {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.alerts-folders,
.alerts-list,
.alerts-preview {
  background: #f8fafc;
  border: 1px solid #e5eaf5;
  border-radius: 16px;
  padding: 16px;
  min-height: 320px;
}

.alerts-folders h4 {
  margin: 0 0 12px;
  color: #1f2a44;
}

.alerts-folder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #1f2a44;
  font-weight: 600;
  cursor: pointer;
}

.alerts-folder.active {
  background: #e8f0ff;
  border-color: #bfd4ff;
  color: #1f5bd1;
}

.alerts-badge {
  background: #1f5bd1;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.alerts-list-header,
.alerts-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #1f2a44;
}

.alerts-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.alerts-toolbar input,
.alerts-toolbar select {
  border: 1px solid #d7e0f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
}

.alerts-toolbar input:focus,
.alerts-toolbar select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.alerts-preview-actions {
  display: flex;
  gap: 8px;
}

.alerts-list-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}

.alert-row {
  text-align: left;
  border: 1px solid #e2e8f5;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.alert-row.unread {
  border-color: #bfd4ff;
  box-shadow: 0 8px 18px rgba(31, 91, 209, 0.12);
}

.alert-row.active {
  outline: 2px solid #1f5bd1;
}

.alert-row-title {
  font-weight: 700;
  color: #1f2a44;
}

.alert-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.alert-row-snippet {
  margin-top: 6px;
  font-size: 13px;
  color: #4b556b;
}

.alert-preview-title {
  font-weight: 700;
  color: #1f2a44;
  margin-bottom: 4px;
}

.alert-preview-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}

.alert-preview-body {
  color: #2f3b55;
  font-size: 14px;
  line-height: 1.5;
  max-height: 520px;
  overflow-y: auto;
}

.alert-preview-link-row {
  margin-top: 12px;
}

.alert-preview-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.alert-preview-link:hover {
  color: var(--color-accent-strong);
}

@media (max-width: 980px) {
  .alerts-layout {
    grid-template-columns: 1fr;
  }
}

.contact-page {
  background: #f3f6fb;
}

.contact-wrap {
  max-width: 1100px;
  margin: 36px auto 64px;
  padding: 0 20px;
}

.contact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.contact-hero h1 {
  margin: 0 0 8px;
  color: #122141;
}

.contact-hero p {
  color: #475569;
  margin: 0;
}

.contact-hero-card {
  background: #ffffff;
  border: 1px solid #e6ecf6;
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 260px;
  box-shadow: var(--shadow-soft);
}

.contact-hero-card h3 {
  margin: 0 0 8px;
  color: #1f2a44;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e6ecf6;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.contact-info-card ul {
  margin: 12px 0 18px 20px;
  color: #334155;
}

.contact-info-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5eaf5;
  color: #475569;
  font-size: 0.9rem;
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #1f2a44;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7e0f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  margin-top: 6px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contact-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .contact-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .role-select {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.auth-card h1,
.auth-card h2 {
  margin-top: 0;
}

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #6e5b5f;
  margin: 4px 0 8px;
  cursor: pointer;
}

.password-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  position: relative;
  top: 0;
}

.password-toggle span {
  line-height: 1;
}

.auth-sub {
  margin-top: -6px;
  color: #6e5b5f;
}

.auth-error {
  color: #b11b2d;
  margin-top: 8px;
}

.auth-success {
  color: #1f7a3b;
  margin-top: 8px;
}

.auth-help {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 4px 0 10px;
  line-height: 1.4;
}

.auth-help-live {
  display: grid;
  gap: 6px;
}

.auth-help-live .rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
}

.auth-help-live .rule::before {
  content: "•";
  font-size: 1rem;
  color: var(--color-muted);
}

.auth-help-live .rule.ok {
  color: #1f7a3b;
}

.auth-help-live .rule.ok::before {
  content: "✓";
  color: #1f7a3b;
}

.auth-help-live .rule.bad {
  color: #b11b2d;
}

.auth-help-live .rule.bad::before {
  content: "✕";
  color: #b11b2d;
}

.services-page .services-page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.services-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.services-hero h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}

.services-lead {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.services-section {
  margin-top: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.services-section-header h2 {
  margin-top: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.services-note {
  margin-top: 16px;
  color: var(--color-muted);
}

.services-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.services-split {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.services-card-highlight {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
}

.services-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.services-checklist li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}

.services-checklist li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #2563eb;
}

.services-cta-bottom {
  text-align: center;
}

.services-cta-bottom .services-cta {
  justify-content: center;
}

.services-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.services-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.services-tab:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
}

.services-tab.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.services-tab-panel {
  display: none;
}

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

.pricing-grid .pricing-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-strong);
  margin: 6px 0 12px;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--color-sand);
  background-image:
    radial-gradient(900px 450px at 10% -10%, #e6f3f1 0%, transparent 60%),
    radial-gradient(800px 420px at 92% 0%, #f7ede2 0%, transparent 55%);
  padding: 40px 20px;
}

.dashboard-wrap {
  max-width: 100%;
  width: 100%;
  margin: 28px 0 40px;
  background: transparent;
  padding: 0 20px 20px;
  border-radius: 0;
  border: none;
}

/* =========================
   SHELTER DASHBOARD LAYOUT
========================= */
.shelter-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  /* Glass */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

.shelter-dashboard-index,
.member-dashboard-page,
.provider-dashboard-theme,
.home-dashboard-theme,
.admin-dashboard-page {
  --color-ink: #0f172a;
  --color-muted: #475569;
  --color-accent: #2563eb;
  --color-accent-strong: #1d4ed8;
  --color-accent-soft: #dbeafe;
  --color-sand: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shelter-sidebar-top: 88px;
}

.shelter-dashboard-index.dashboard-page,
.member-dashboard-page.dashboard-page,
.provider-dashboard-theme.dashboard-page,
.home-dashboard-theme,
.admin-dashboard-page.dashboard-page {
  background: var(--color-sand);
  background-image:
    radial-gradient(900px 450px at 10% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(800px 420px at 92% 0%, rgba(148, 163, 184, 0.18) 0%, transparent 55%);
}

.shelter-dashboard-index .profile-row,
.provider-dashboard-theme .profile-row {
  background: #f8fafc;
  border-color: var(--color-border);
}

.provider-dashboard-theme .btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.provider-dashboard-theme .btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.provider-dashboard-theme .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.provider-dashboard-theme .btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.provider-dashboard-theme .admin-header-actions .btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

.provider-dashboard-theme .admin-header-actions .btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.provider-dashboard-theme .saved-resource {
  border-color: var(--color-border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.provider-dashboard-theme .saved-resource-header strong {
  color: var(--color-ink);
}

.shelter-dashboard-index .shelter-sidebar-checklist li {
  background: #f1f5f9;
  border-color: var(--color-border);
  color: var(--color-ink);
}

.shelter-dashboard-index .summary-card {
  background: #ffffff;
  border-color: var(--color-border);
}

.shelter-dashboard-index .summary-label {
  color: var(--color-accent);
}

.shelter-dashboard-index button[id^="refresh-"].btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index button[id^="refresh-"].btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index button[id^="refresh-"].btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #auto-noshow-btn.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #auto-noshow-btn.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #auto-noshow-btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #queue-scan-btn.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #queue-scan-btn.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #queue-scan-btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #queue-psh-id {
  min-width: 0;
  width: 100%;
}

.shelter-dashboard-index #queue-search-form .queue-psh-row {
  grid-column: span 1;
  width: 100%;
}

.shelter-dashboard-index #queue-search-form .queue-psh-row .input-inline {
  flex-wrap: wrap;
  align-items: stretch;
}

.shelter-dashboard-index #queue-search-form .queue-psh-row .input-inline input {
  flex: 1 1 160px;
  min-width: 0;
}

.shelter-dashboard-index #assign-btn.btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shelter-dashboard-page .admin-header-actions .btn-primary {
  background-color: var(--color-accent);
  border: none;
  color: white;
}

.shelter-dashboard-page .admin-header-actions .btn-primary:hover {
  background-color: var(--color-accent-strong);
  color: white;
}

.shelter-dashboard-page .admin-header-actions .btn-primary:active {
  background-color: var(--color-accent-strong);
}

/* Case management / caseworker: secondary buttons should not be pink/red. */
.shelter-dashboard-page .btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-page .btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-page .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-page .btn-secondary.saved {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.shelter-dashboard-page .btn-secondary.saved:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
}

.shelter-dashboard-index #assign-fullscreen-btn.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #assign-fullscreen-btn.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #assign-fullscreen-btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index .profile-action-btn.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index .profile-action-btn.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index .profile-action-btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}
.shelter-dashboard-index .queue-action-btn.btn-secondary,
.shelter-dashboard-index .stay-action-btn.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index .queue-action-btn.btn-secondary:hover,
.shelter-dashboard-index .stay-action-btn.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index .queue-action-btn.btn-secondary:active,
.shelter-dashboard-index .stay-action-btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-fullscreen-active {
  overflow: hidden;
}

.shelter-dashboard-index .profile-card.shelter-fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 3200;
  width: auto;
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
}

.shelter-dashboard-index .profile-card.shelter-fullscreen .shelter-assign-grid {
  min-height: calc(100vh - 220px);
  flex: 1;
  align-content: stretch;
  min-height: 0;
}

.shelter-dashboard-index .profile-card.shelter-fullscreen .profile-card-header {
  flex: 0 0 auto;
}

.shelter-dashboard-index .profile-card.shelter-fullscreen .shelter-panel {
  flex: 1;
  min-height: 0;
}

.shelter-dashboard-index .profile-card.shelter-fullscreen .shelter-list {
  flex: 1;
  max-height: none;
  height: 100%;
}

@media (max-width: 900px) {
  .shelter-dashboard-index .profile-card.shelter-fullscreen {
    inset: 12px;
    max-height: calc(100vh - 24px);
  }
}

.shelter-dashboard-index #queue-search-btn.btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shelter-dashboard-index #queue-search-results .saved-resource {
  background: #ffffff;
  border-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}

.shelter-dashboard-index #queue-search-results .saved-resource-header strong {
  color: var(--color-ink);
}

.shelter-dashboard-index #queue-search-results .saved-resource-line {
  color: var(--color-muted);
}

.shelter-dashboard-index #note-submit.btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shelter-dashboard-index #toggle-unit-form.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #toggle-unit-form.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #toggle-unit-form.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #toggle-staff-form.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #toggle-staff-form.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #toggle-staff-form.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #staff-form .btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 10px 18px;
  line-height: 1;
  min-width: 140px;
  text-align: center;
}

.shelter-dashboard-index #staff-cancel.btn-secondary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  border: none;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
  padding: 10px 18px;
  line-height: 1;
  min-width: 140px;
  text-align: center;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shelter-dashboard-index #staff-cancel.btn-secondary:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.shelter-dashboard-index #staff-cancel.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.shelter-dashboard-index #refresh-audit.btn-secondary,
.shelter-dashboard-index #refresh-report.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #refresh-audit.btn-secondary:hover,
.shelter-dashboard-index #refresh-report.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #refresh-audit.btn-secondary:active,
.shelter-dashboard-index #refresh-report.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #download-report.btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shelter-dashboard-index #toggle-shelter-create.btn-secondary,
.shelter-dashboard-index #refresh-shelter.btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5f5;
  color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-dashboard-index #toggle-shelter-create.btn-secondary:hover,
.shelter-dashboard-index #refresh-shelter.btn-secondary:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.shelter-dashboard-index #toggle-shelter-create.btn-secondary:active,
.shelter-dashboard-index #refresh-shelter.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.shelter-dashboard-index #save-shelter-settings.btn-primary,
.shelter-dashboard-index #shelter-create-form .btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shelter-dashboard-index #cancel-shelter-create.btn-secondary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  border: none;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shelter-dashboard-index #cancel-shelter-create.btn-secondary:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.shelter-dashboard-index #cancel-shelter-create.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.shelter-topbar-inner {
  max-width: none;
  margin: 0;
  padding: 14px 20px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shelter-topbar-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.shelter-topbar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shelter-topbar-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.shelter-topbar-item span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.shelter-topbar-item strong {
  font-size: 0.9rem;
  color: var(--color-ink);
  font-weight: 600;
}

.shelter-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shelter-sidebar {
  position: sticky;
  top: var(--shelter-sidebar-top, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: fit-content;
}

.shelter-main {
  min-width: 0;
}

.shelter-sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.shelter-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.shelter-sidebar-toggle {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--color-ink);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.shelter-sidebar-toggle:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--color-accent);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.shelter-sidebar-toggle:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.shelter-sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shelter-sidebar-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.shelter-sidebar-note {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.shelter-sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.shelter-sidebar-actions .btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shelter-sidebar-links {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.shelter-sidebar-links a {
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.shelter-sidebar-links a:hover {
  border-color: rgba(37, 99, 235, 0.5);
  color: var(--color-accent);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.shelter-sidebar-checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.shelter-sidebar-checklist li {
  background: #f9f8f4;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #4b3a3e;
}

.shelter-sidebar-collapsed .shelter-layout {
  grid-template-columns: 90px minmax(0, 1fr);
}

.shelter-sidebar-collapsed .shelter-sidebar {
  gap: 12px;
}

.shelter-sidebar-collapsed .shelter-sidebar-card {
  padding: 12px 8px;
}

.shelter-sidebar-collapsed .shelter-sidebar-card:not(:first-child) {
  display: none;
}

.shelter-sidebar-collapsed .shelter-sidebar-brand {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.shelter-sidebar-collapsed .shelter-sidebar-brand div,
.shelter-sidebar-collapsed .shelter-sidebar-note,
.shelter-sidebar-collapsed .shelter-sidebar-actions {
  display: none;
}

.shelter-sidebar-collapsed .shelter-sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.shelter-sidebar-collapsed .shelter-sidebar-toggle {
  width: 100%;
  font-size: 0.7rem;
}

.shelter-header-title {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1100px) {
  .shelter-topbar-inner {
    padding: 12px 16px 12px 12px;
  }

  .shelter-topbar-title {
    font-size: 1.15rem;
  }

  .shelter-layout {
    grid-template-columns: 1fr;
  }

  .shelter-sidebar-collapsed .shelter-layout {
    grid-template-columns: 1fr;
  }

  .shelter-sidebar {
    position: sticky;
    top: var(--shelter-sidebar-top, 24px);
  }

  .shelter-sidebar-actions {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .shelter-sidebar-links {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 900px) {
  .shelter-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .shelter-topbar-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .shelter-topbar-item {
    align-items: flex-start;
  }

  .shelter-dashboard-index .admin-table {
    min-width: 0;
    width: 100%;
  }

  .shelter-dashboard-index .profile-card {
    overflow-x: auto;
  }
}

@media (max-width: 700px) {
  .shelter-sidebar-actions {
    grid-template-columns: 1fr;
  }

  .shelter-sidebar-links {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.profile-card-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.id-preview-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  display: grid;
  gap: 12px;
}

.id-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.id-preview-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.id-preview-title {
  display: grid;
  gap: 2px;
  color: var(--color-ink);
}

.id-preview-title span {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.id-preview-body {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
}

.id-preview-photo {
  width: 90px;
  height: 110px;
  border-radius: 12px;
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  background: #fff;
  overflow: hidden;
}

.id-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.id-preview-info {
  display: grid;
  gap: 6px;
  color: var(--color-ink);
  font-size: 0.9rem;
}

.id-preview-footer {
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
}

.id-preview-barcode {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1f2937;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  font-weight: 600;
  z-index: 4000;
}

.toast.hidden {
  display: none;
}

@media print {
  body.print-preview-only * {
    visibility: hidden;
  }
  body.print-preview-only .id-preview-card,
  body.print-preview-only .id-preview-card * {
    visibility: visible;
  }
  body.print-preview-only .id-preview-card {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    box-shadow: none;
  }
}

/* =========================
   SHELTER OPERATIONS
========================= */
.shelter-select-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shelter-select-row select {
  min-width: 240px;
}

.shelter-metrics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.shelter-metric-lines {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.shelter-assign-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shelter-panel {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

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

.shelter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 4px;
}

.shelter-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.shelter-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.shelter-item.active {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.shelter-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shelter-item-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.shelter-item-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.intake-appointment button[data-checkin] {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.intake-appointment button[data-checkin]:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}

.shelter-capacity-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

@media (max-width: 900px) {
  .shelter-assign-grid {
    grid-template-columns: 1fr;
  }
  .shelter-panel {
    min-height: 280px;
  }
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-section {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  background: var(--color-surface);
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.visibility-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.visibility-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 10px;
  line-height: 1.2;
  text-align: left;
  width: 100%;
}

.visibility-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  position: relative;
  top: 0;
}

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.profile-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: #ffffff;
  text-align: center;
  padding: 8px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  margin-top: 8px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-ink);
  line-height: 1.2;
  white-space: nowrap;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-ink);
  line-height: 1.2;
  white-space: nowrap;
}

.checkbox-grid input[type="checkbox"],
.checkbox-line input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  position: relative;
  top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.client-record-content {
  display: grid;
  gap: 16px;
}

.client-record-section {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
}

.client-record-section h3 {
  margin: 0 0 10px;
}

.client-record-appointments {
  display: grid;
  gap: 12px;
}

.client-record-appointment {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
}

.client-record-appointment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.client-record-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.client-record-row span {
  font-size: 0.95rem;
}

.pill-select {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
  box-sizing: border-box;
  appearance: none;
  min-height: 40px;
}

.pill-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.pill-input {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
  box-sizing: border-box;
  min-height: 40px;
}

.pill-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.underline-input {
  width: 100%;
  max-width: 100%;
  padding: 8px 4px;
  border: none;
  border-bottom: 2px solid var(--color-border);
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.2;
  box-sizing: border-box;
  min-height: 40px;
  border-radius: 0;
  font-family: inherit;
}

.underline-input:focus {
  outline: none;
  border-bottom-color: #2563eb;
  box-shadow: 0 8px 0 -6px rgba(37, 99, 235, 0.35);
}

.case-form-section .underline-input:focus {
  box-shadow: none;
}

.case-form-section label.saved-resource-line {
  font-size: 1.1rem;
  font-weight: 700;
}

.availability-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.availability-field span {
  min-width: 160px;
  color: var(--color-ink);
}

.availability-select {
  min-width: 220px;
}

.availability-select.available {
  border-bottom-color: #16a34a;
  color: #166534;
}

.availability-select.with-client {
  border-bottom-color: #2563eb;
  color: #1d4ed8;
}

.availability-select.not-available {
  border-bottom-color: #dc2626;
  color: #991b1b;
}

.availability-topbar {
  min-width: 200px;
}

.availability-topbar .availability-select {
  min-width: 180px;
}

.schedule-grid {
  display: grid;
  gap: 12px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-row span {
  min-width: 120px;
  font-weight: 600;
  color: var(--color-ink);
}

.schedule-row .underline-input {
  min-width: 0;
}

.schedule-time-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.schedule-time {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.schedule-time span {
  font-weight: 600;
  color: var(--color-ink);
  min-width: 40px;
}

.schedule-time .underline-input {
  min-width: 120px;
}

.schedule-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.schedule-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-toolbar-title {
  font-weight: 700;
  color: var(--color-ink);
}

.schedule-calendar {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.schedule-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.schedule-day {
  min-height: 80px;
  padding: 10px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-ink);
  background: #ffffff;
}

.schedule-day:nth-child(7n) {
  border-right: none;
}

.schedule-day.muted {
  color: #94a3b8;
  background: #f8fafc;
}

.schedule-day-item {
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.schedule-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.schedule-chip.alt {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
}

.schedule-view-hidden {
  display: none;
}

.schedule-view-btn.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.schedule-week {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.schedule-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--color-border);
}

.schedule-week-day {
  min-height: 120px;
  padding: 12px;
  border-right: 1px solid var(--color-border);
}

.schedule-week-day:nth-child(7n) {
  border-right: none;
}

.calendar-wrap {
  min-height: 520px;
}

.fc .fc-timegrid-event,
.fc .fc-daygrid-event {
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: #dbeafe;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.fc .fc-event .appointment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #1e3a8a;
}

.appointment-card-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
}

.appointment-client {
  font-size: 0.78rem;
  font-weight: 700;
}

.appointment-time {
  font-weight: 600;
}

.appointment-meta {
  color: #1e40af;
  font-weight: 600;
}

.appointment-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.18);
  color: #0f172a;
  font-size: 0.6rem;
  font-weight: 700;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.appointment-location {
  font-size: 0.66rem;
  color: #1e3a8a;
}

.appointment-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  text-transform: capitalize;
  background: rgba(37, 99, 235, 0.15);
  color: #1e3a8a;
}

.status-scheduled {
  background: rgba(37, 99, 235, 0.15);
  color: #1e3a8a;
}

.status-confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.status-checked_in,
.status-checked-in {
  background: rgba(14, 116, 144, 0.15);
  color: #0e7490;
}

.status-in_progress,
.status-in-progress {
  background: rgba(79, 70, 229, 0.15);
  color: #4338ca;
}

.status-completed {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.status-no_show,
.status-no-show {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.status-cancelled {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.status-rescheduled {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.searchable-select {
  display: grid;
  gap: 6px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-ink);
}

.checkbox-inline input {
  margin: 0;
}

.queue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-section-header {
  margin: 8px 0 6px;
  font-weight: 700;
  color: var(--color-ink);
}

.queue-status-note {
  font-size: 0.75rem;
  color: #475569;
}

.suggested-times-header,
.quick-reschedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.suggested-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-reschedule-panel {
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--color-border);
}

.appointment-modal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1040px;
  width: min(96vw, 1040px);
  max-height: 90vh;
  padding: 28px;
  overflow-x: hidden;
}

.appointment-modal .client-form-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.appointment-modal .appointment-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.appointment-modal .case-number-line {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.appointment-modal .case-form-section {
  padding: 18px 0;
  width: 100%;
}

.appointment-modal .case-form-row {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.appointment-modal .case-form-row + .case-form-row {
  margin-top: 8px;
}

.appointment-modal .case-form-row > .btn-secondary,
.appointment-modal .case-form-row > .btn-primary {
  align-self: start;
  justify-self: start;
  margin-top: 4px;
}

.appointment-modal .inline-label {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.appointment-modal .inline-label span {
  min-width: 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.appointment-modal .saved-resource-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.appointment-modal .profile-actions {
  margin-top: 8px;
  gap: 12px;
}
.appointment-modal .profile-actions {
  justify-content: flex-end;
}

.appointment-modal .suggested-times-header,
.appointment-modal .quick-reschedule-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.appointment-modal .btn-secondary,
.appointment-modal .btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.appointment-modal .btn-secondary:hover,
.appointment-modal .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}

#walkin-modal #cancel-walkin-btn.btn-secondary {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
  font-weight: bold;
}

#walkin-modal #cancel-walkin-btn.btn-secondary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}

#walkin-modal .profile-actions .btn-small {
  border-radius: 999px;
}

#walkin-modal {
  display: flex;
  flex-direction: column;
}

#walkin-modal .case-form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#walkin-modal .profile-actions {
  margin-top: auto;
}

#walkin-modal .walkin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#walkin-modal .walkin-header-row .case-number-line {
  margin: 0;
}

.availability-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.availability-chip.available {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.availability-chip.with-client {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.availability-chip.not-available {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

@media (max-width: 700px) {
  .schedule-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .schedule-row span {
    min-width: 0;
  }
  .schedule-time-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

.case-select-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 260px) minmax(200px, 260px) minmax(200px, 260px);
  gap: 16px;
  align-items: end;
  justify-content: start;
  width: fit-content;
}

.case-select-row label {
  margin: 0;
}

.case-select-row label:first-child .underline-input {
  max-width: 420px;
}

@media (max-width: 900px) {
  .case-select-row {
    grid-template-columns: 1fr;
  }
  .case-select-row label:first-child .underline-input {
    max-width: 100%;
  }
}

.case-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
}

.case-form-row label {
  margin: 0;
}

.case-form-row .inline-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-form-row .inline-label span {
  min-width: 140px;
  font-weight: 600;
  color: var(--color-ink);
}

.case-contact-row {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

@media (max-width: 700px) {
  .case-form-row {
    grid-template-columns: 1fr;
  }
  .case-form-row .inline-label {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-form-row .inline-label span {
    min-width: 0;
  }
}

.address-form-section .inline-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-form-section .inline-label-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(160px, 260px);
  gap: 16px;
  align-items: end;
}

.address-form-section .inline-label-small span {
  min-width: 120px;
}

.address-form-section .inline-label span {
  min-width: 100px;
  font-weight: 600;
  color: var(--color-ink);
}

.case-select-row .inline-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-select-row .inline-label span {
  min-width: 120px;
  font-weight: 600;
  color: var(--color-ink);
}

.address-form-section .inline-label .underline-input {
  flex: 1;
}

@media (max-width: 700px) {
  .address-form-section .inline-label {
    flex-direction: column;
    align-items: flex-start;
  }
  .address-form-section .inline-label span {
    min-width: 0;
  }
  .address-form-section .inline-label-row {
    grid-template-columns: 1fr;
  }
}

.case-family-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1.2fr) minmax(260px, 1.1fr) minmax(220px, 1fr) minmax(300px, 1.3fr) auto;
  gap: 12px;
  align-items: center;
}

.case-family-row label {
  margin: 0;
}

.case-family-row .inline-label {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.case-family-row .inline-label span {
  min-width: 90px;
  font-weight: 600;
  color: var(--color-ink);
}

.case-family-row .inline-label .underline-input {
  flex: 1;
  min-width: 0;
}

.icon-button {
  padding: 6px 10px;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--color-accent);
  box-shadow: none;
  cursor: pointer;
}

.icon-button.is-small {
  min-width: 48px;
  height: 48px;
  font-size: 1.6rem;
  padding: 8px 10px;
}

.icon-button:hover {
  color: var(--color-accent-strong);
  transform: translateY(-1px) rotate(-6deg);
}

.icon-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.icon-button {
  transition: transform 0.15s ease, color 0.15s ease;
}

.icon-button svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.case-form-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.case-form-section:first-of-type {
  padding-top: 0;
}

.case-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.case-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.case-tab:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
}

.case-tab.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.case-form-section[data-tab] {
  display: none;
}

.case-form-section[data-tab].is-active {
  display: block;
}

.case-referrals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.referral-form-card {
  margin-top: 12px;
}

.referral-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.case-subheading {
  margin: 14px 0 8px;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.client-record-section[data-tab] {
  display: none;
}

.client-record-section[data-tab].is-active {
  display: block;
}

.case-print-watermark {
  display: none;
}

@media print {
  .case-print-watermark {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
  }

  .case-print-watermark img {
    width: 65vw;
    max-width: 720px;
    opacity: 0.1;
    filter: grayscale(10%);
  }

  body.print-case .case-print-watermark {
    display: flex;
  }

  body.print-case #case-form-modal {
    box-shadow: none;
  }
}

.case-number-line {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 10px;
}

.case-number-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
  /* Keep content clear of the top-right absolute action buttons */
  padding-right: 180px;
}

.case-number-row .case-number-line {
  margin: 0;
}

.case-number-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
  gap: 12px;
}

@media (max-width: 700px) {
  .case-number-row {
    padding-right: 0;
  }
}

.case-number-selects .inline-label {
  min-width: 220px;
}

.case-number-selects .case-scan-helper {
  /* Keep helper on its own row, but sized to its content (no full-width stretching). */
  grid-column: 1 / -1;
  justify-self: start;
  width: fit-content;
  max-width: min(520px, 100%);
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
}

.case-family-row .pill-input,
.case-family-row .pill-select {
  width: 100%;
}

.family-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.family-member-row span {
  font-size: 0.95rem;
  white-space: nowrap;
}

.family-member-row button {
  margin-left: 0;
}

.family-member-row button:first-of-type {
  margin-left: auto;
}

.case-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.case-card-row span {
  font-size: 0.95rem;
}

.case-card-row button {
  margin-left: 0;
}

.case-card-row button:first-of-type {
  margin-left: auto;
}

.client-record-section .case-card-row {
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
}

@media (max-width: 900px) {
  .case-family-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.profile-edit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.referral-contact-modal .referral-contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  justify-items: stretch;
}

.referral-contact-modal .referral-contact-form > * {
  grid-column: 1 / -1;
}

.referral-contact-modal {
  max-width: 520px;
  width: min(90vw, 520px);
  text-align: left;
}

.referral-contact-modal .profile-card-header {
  align-items: flex-start;
}

.referral-contact-modal .referral-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.referral-contact-modal .referral-contact-form .profile-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.referral-contact-modal .referral-contact-form .profile-section-header h3 {
  margin: 0;
}

.referral-contact-modal .profile-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.referral-contact-modal .profile-card-header h2 {
  width: 100%;
  text-align: center;
  margin: 0;
}

.appointment-modal.profile-edit-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: 1fr;
}

.appointment-modal.profile-edit-form > * {
  width: 100%;
}

.appointment-modal.profile-edit-form .case-form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointment-modal.profile-edit-form .case-form-row.details-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.appointment-modal.profile-edit-form .case-form-row.assignment-row {
  gap: 10px;
}

.appointment-modal.profile-edit-form .case-form-row.details-row .inline-label {
  flex: 1 1 220px;
}

.appointment-modal.profile-edit-form .case-form-row.time-row .inline-label {
  flex: 1 1 180px;
}

@media (max-width: 900px) {
  .appointment-modal.profile-edit-form .case-form-row.details-row {
    flex-direction: column;
  }
}

.appointment-modal.profile-edit-form .inline-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.appointment-modal.profile-edit-form .inline-label span {
  min-width: 0;
}

.caseworker-profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.caseworker-profile-form label {
  width: 100%;
}

.caseworker-profile-form .visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  width: auto;
  align-self: flex-start;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.caseworker-profile-form .visibility-toggle input {
  margin: 0;
  flex: 0 0 auto;
}

.caseworker-profile-form .profile-photo-row {
  flex-direction: column;
  align-items: flex-start;
}

.caseworker-profile-form .checkbox-grid {
  grid-template-columns: 1fr;
}

.profile-edit-form label {
  display: block;
}

.profile-edit-form input,
.profile-edit-form select {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
  line-height: 1.2;
}

.profile-edit-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
  min-height: 110px;
  resize: vertical;
}

.input-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-inline input {
  flex: 1;
}

.client-form-section {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.client-form-row h3 {
  margin-bottom: 4px;
}

.client-search-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
}

.client-search-inline label {
  margin: 0;
}

.client-search-inline input {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  padding-left: 12px;
}

.client-search-inline input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.client-search-inline .btn-primary {
  height: 38px;
}

@media (max-width: 900px) {
  .client-search-inline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

#client-form input,
#client-form select {
  padding: 6px 8px;
  font-size: 0.9rem;
}

#client-form .btn-small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

#client-list-search {
  width: 180px;
  max-width: 45vw;
  padding: 8px 4px;
  font-size: 0.95rem;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--color-border);
  background: transparent;
}

#client-list-search:focus {
  outline: none;
  border-bottom-color: #2563eb;
  box-shadow: 0 8px 0 -6px rgba(37, 99, 235, 0.35);
}

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

.client-list-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-list-search-row input {
  min-width: 220px;
}

.scan-status {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.scan-status.is-waiting {
  color: #2563eb;
  font-weight: 600;
}

.scan-status.is-error {
  color: #b91c1c;
}

.listing-edit-form {
  grid-template-columns: 1fr;
}

.listing-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-edit-form .checkbox-group {
  grid-column: 1 / -1;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.barcode-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.barcode-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.barcode-avatar {
  width: 240px;
  height: 240px;
  border-radius: 18px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.barcode-panel.fullscreen .barcode-avatar {
  width: min(70vw, 360px);
  height: min(70vw, 360px);
}

.barcode-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barcode-initials {
  font-weight: 700;
  color: var(--color-accent-strong);
  font-size: 1.1rem;
}

.barcode-info {
  text-align: center;
}

.barcode-name {
  font-weight: 700;
  font-size: 1.35rem;
}

.barcode-dob {
  color: var(--color-muted);
}

.barcode-panel.fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  padding: 20px;
  margin-top: 0;
  justify-content: center;
}

.barcode-close {
  align-self: flex-end;
}

#psh-barcode {
  width: 360px;
  max-width: 100%;
  height: auto;
}

.barcode-panel.fullscreen #psh-barcode {
  width: min(90vw, 900px);
}

#psh-barcode-value {
  font-weight: 600;
  color: #6e5b5f;
}

.member-dashboard-page .barcode-panel.fullscreen {
  background: var(--color-sand);
  background-image:
    radial-gradient(900px 450px at 10% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(800px 420px at 92% 0%, rgba(148, 163, 184, 0.18) 0%, transparent 55%);
}

.member-dashboard-page #psh-barcode-value {
  color: var(--color-muted);
}

.barcode-open {
  overflow: hidden;
}

.profile-photo-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barcode-fallback {
  padding: 10px 14px;
  border: 1px dashed var(--color-accent);
  border-radius: 8px;
  color: var(--color-accent);
  font-weight: 600;
}

.barcode-reader {
  width: 100%;
  max-width: 560px;
  min-height: 260px;
  border: 2px dashed var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b1b2a;
  background: #fff7f8;
  margin: 12px 0;
  text-align: center;
  padding: 16px;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .barcode-panel {
    width: 100%;
  }

  #psh-barcode {
    width: 96vw;
    max-width: 96vw;
  }

  #psh-barcode-value {
    font-size: 1.1rem;
  }
}

.saved-resources-list {
  display: grid;
  gap: 12px;
}

.saved-resource {
  /* Neutral base card styling. Case-management / caseworker pages also apply their own scoped overrides. */
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px;
  background: var(--color-surface);
}

.saved-resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.saved-resource-line {
  margin-top: 6px;
  color: var(--color-muted);
}

.member-dashboard-page .saved-resources-list {
  gap: 16px;
}

.member-dashboard-page .saved-resource {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.member-dashboard-page .saved-resource-line {
  color: var(--color-muted);
}

/* Case management / caseworker: lists should use the same neutral card colors everywhere. */
.shelter-dashboard-page .saved-resources-list .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* Case record: referral form card sits outside `.saved-resources-list`, so it needs the same neutral styling. */
.shelter-dashboard-page .referral-form-card.saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.shelter-dashboard-page .case-form-section[data-tab="referrals"] .referral-form-card {
  margin-bottom: 14px;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.admin-modal.hidden {
  display: none;
}

.admin-modal-content {
  width: 100vw;
  height: 100vh;
  background: #f7f1f2;
  overflow-y: auto;
  padding: 20px 24px 40px;
}

.client-record-modal {
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1600;
}

.client-record-modal .admin-modal-content {
  width: min(1300px, 98vw);
  height: min(90vh, 900px);
  border-radius: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 24px 28px 32px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-modal-body {
  display: grid;
  gap: 16px;
}

.listing-image-preview {
  margin-top: 12px;
}

.listing-image-preview img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--color-accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.profile-row {
  background: #f7f1f2;
  border: 1px solid #e6d8db;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-row span {
  font-size: 0.75rem;
  color: #6e5b5f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-row strong {
  font-size: 1rem;
  color: #1d1d1d;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .form-panel {
    width: 100%;
  }
  .map-modal {
    width: 100%;
  }
  .import-panel {
    width: 100%;
  }
}


/* ==============================
   SERVICES SECTION
   ============================== */

.services-offered {
  width: 100%;
  padding: 60px 0;
 /* background: #ffffff;*/
}

.services-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* keeps grid inside page */
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services-offered h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

/* Individual service cards */
.services-list li {
  background: #f7f7f7;
  border-radius: 14px;
  padding: 18px 22px;
  line-height: 1.6;
  color: #444;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.services-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* Title inside card */
.services-list li strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

/* ==============================
   RESPONSIVE TWEAKS
   ============================== */

@media (max-width: 768px) {
  .services-offered {
    padding: 40px 15px;
  }

  .services-offered h2 {
    font-size: 1.6rem;
  }
}


/* ==============================
   HOME PAGE – MAP + SEARCH (MATCH SITE STYLE)
   ============================== */

#services-search {
  margin-top: 10px;
}

/* Search bar container */
#services-search .search-area {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 160px auto;
  gap: 12px;
  margin-bottom: 14px;
}

/* Inputs & select */
#services-search input,
#services-search select {
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid var(--color-accent);
  background: #ffffff;
}

/* Focus state */
#services-search input:focus,
#services-search select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Search button */
#services-search button {
  padding: 12px 22px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  background-color: var(--color-accent);
  color: #ffffff;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#services-search button:hover {
  background-color: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.45);
}

#services-search button:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.5);
}

/* Map container */
#map {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  border: 4px solid var(--color-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Results list */
#results {
  margin-top: 18px;
}

/* Individual listing cards */
#results .listing-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  text-align: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#results .listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Card title */
#results .listing-card strong {
  font-size: 18px;
  color: var(--color-accent);
}

/* Card links */
#results .listing-card a {
  color: var(--color-accent);
  font-weight: bold;
  text-decoration: none;
}

.photo-preview {
  margin-top: 6px;
}

.photo-preview img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  display: block;
}

#results .listing-card a:hover {
  text-decoration: underline;
}

/* Ensure "Get Directions" button matches site button styling */
#results .listing-card a.btn-primary {
  color: #ffffff;
  text-decoration: none;
}

#results .listing-card a.btn-primary:hover {
  text-decoration: none;
}

#results .listing-card .icon {
  color: var(--color-accent);
  margin-right: 6px;
}

#results .listing-card .listing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
}

#results .listing-card .listing-meta {
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #5a5a5a;
}

#results .listing-card .listing-hours {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#results .listing-card .listing-eligibility {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #374151;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

#results .listing-card .listing-assistance-note {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

#results .listing-card .listing-updated {
  color: #5a5a5a;
}

#results .listing-card .listing-managed {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#results .listing-card .listing-claim-link {
  border: none;
  background: none;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
  font-size: 0.85rem;
}

#results .listing-card .listing-flag-link {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: #eef2ff;
  color: #1e40af;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#results .listing-card .listing-flag-link:hover {
  background: #e0e7ff;
  color: var(--color-accent-strong);
}

.listing-report-sub {
  margin: 0 0 12px;
  color: #4b556b;
}

.listing-report-summary {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5eaf5;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #1f2a44;
}

.listing-report-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #1f2a44;
}

.listing-report-form input,
.listing-report-form select,
.listing-report-form textarea {
  width: 100%;
  border: 1px solid #d7e0f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  margin-top: 6px;
  font-family: inherit;
}

.listing-report-form input:focus,
.listing-report-form select:focus,
.listing-report-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.listing-report-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.listing-report-close-icon {
  border: none;
  background: transparent;
  color: var(--color-accent);
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.listing-report-close-icon:hover {
  color: var(--color-accent-strong);
  background-color: rgba(37, 99, 235, 0.12);
  transform: scale(1.05);
}

#results .listing-card .listing-photo {
  width: var(--listing-image-width);
  max-width: var(--listing-image-width);
  height: var(--listing-image-height);
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0;
  flex: 0 0 var(--listing-image-width);
}

#results .listing-card.highlight {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 6px 14px rgba(0, 0, 0, 0.3);
}

#results .listing-card .btn-small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.results-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 18px 0 6px;
}

.results-pagination .page-btn {
  border: 1px solid var(--color-accent);
  background: #ffffff;
  color: var(--color-accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.results-pagination .page-btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: #ffffff;
}

.results-pagination .page-btn.active {
  background: var(--color-accent);
  color: #ffffff;
}

.results-pagination .page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-pagination .page-ellipsis {
  color: #6b7280;
  font-weight: 600;
  padding: 0 4px;
}

.map-infowindow {
  min-width: 160px;
}

/* ==============================
   MOBILE RESPONSIVE
   ============================== */

@media (max-width: 900px) {
  #services-search .search-area {
    grid-template-columns: 1fr;
  }

  #map {
    height: 400px;
  }

  #results .listing-card .listing-content {
    width: 90%;
    flex-direction: column;
    align-items: center;
  }

  #results .listing-card .listing-text {
    width: 100%;
  }

  #results .listing-card .listing-meta {
    align-items: center;
    text-align: center;
  }
}

/* =========================
   MODERN HOME REFRESH
========================= */
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: 0.2px;
}

.header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 18px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.4px;
}

.nav {
  gap: 12px;
  font-size: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.nav a:hover {
  color: var(--color-accent);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

#nav-login-link,
#nav-dashboard-link {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

#nav-login-link:hover,
#nav-dashboard-link:hover {
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.maincontent {
  width: min(1200px, 100%);
  margin: 28px auto 40px;
  padding: 0 20px;
  gap: 28px;
}

.home-page-top-content {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.home-page-search-for-services,
.home-page-important-phone-numbers,
.list-states-cities {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.home-page-search-for-services {
  padding: 22px 24px 26px;
  text-align: left;
}

.home-page-important-phone-numbers {
  padding: 10px 0;
  text-align: left;
  align-self: start;
  height: fit-content;
}

#services-search .search-area {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 140px auto;
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 14px;
}

.service-filters .filter-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin-right: 4px;
}

#services-search .service-filters .filter-pill {
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-ink);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

#services-search .service-filters .filter-pill:hover {
  border-color: rgba(37, 99, 235, 0.5);
  color: var(--color-accent);
  transform: translateY(-1px);
}

#services-search .service-filters .filter-pill.active {
  background: var(--color-accent);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15);
}

#services-search .service-filters .filter-pill.active:hover {
  color: #ffffff;
}

#services-search input,
#services-search select {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
}

#services-search input:focus,
#services-search select:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.6);
}

#services-search button {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

#services-search button:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
}

#map {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  height: 520px;
  box-shadow: var(--shadow-soft);
}

#results .listing-card {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-align: left;
}

#results .listing-card strong {
  color: var(--color-ink);
}

#results .listing-card a {
  color: var(--color-accent);
}

#results .listing-card .icon {
  color: var(--color-accent);
}

#results .listing-card .listing-actions {
  justify-content: flex-start;
}

#results .listing-card .listing-claim-link {
  color: var(--color-accent);
}

.resource-list a {
  color: var(--color-accent);
}

.resource-disclaimer {
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
}

.resource-list li {
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.resource-note {
  color: var(--color-muted);
}

.list-states-cities {
  padding: 24px 28px;
  font-size: 18px;
}

.list-states-cities a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.list-states-cities a:hover {
  text-decoration: underline;
}

.state-row {
  background: #f9f8f4;
  border: 1px solid var(--color-border);
}

.add-listing-cta {
  max-width: 1200px;
  margin: 24px auto 60px;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(140deg, #ffffff, #f3f1ec);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

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

.home-page-search-for-services {
  animation: rise 0.6s ease both;
}

.home-page-important-phone-numbers {
  animation: rise 0.6s ease both;
  animation-delay: 0.05s;
}

.home-page-list-of-states-cities {
  animation: rise 0.6s ease both;
  animation-delay: 0.1s;
}

.add-listing-cta {
  animation: rise 0.6s ease both;
  animation-delay: 0.15s;
}

@media (max-width: 1100px) {
  .home-page-top-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-container {
    padding: 14px 16px;
  }

  .nav {
    justify-content: center;
  }

  #services-search .search-area {
    grid-template-columns: 1fr;
  }

  .service-filters .filter-label {
    width: 100%;
    margin-bottom: 4px;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 20px;
  }

  .nav {
    background: transparent;
    border-top: 1px solid var(--color-border);
  }

  .nav a {
    width: 100%;
    justify-content: center;
  }
}

.user-role-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.user-role-select-group label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.user-roles-multi {
  min-width: 170px;
}

/* Client list (case management / caseworker) */
#client-cards.saved-resources-list,
#cases-list.saved-resources-list,
#client-cases-list.saved-resources-list,
#referrals-list.saved-resources-list,
#case-referrals-list.saved-resources-list,
#print-id-list.saved-resources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#client-cards .saved-resource.client-card,
#cases-list .saved-resource.client-card,
#client-cases-list .saved-resource.client-card,
#referrals-list .saved-resource.client-card,
#case-referrals-list .saved-resource.client-card,
#print-id-list .saved-resource.client-card {
  padding: 14px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

#client-cards .saved-resource.client-card:focus-visible,
#cases-list .saved-resource.client-card:focus-visible,
#client-cases-list .saved-resource.client-card:focus-visible,
#referrals-list .saved-resource.client-card:focus-visible,
#case-referrals-list .saved-resource.client-card:focus-visible,
#print-id-list .saved-resource.client-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

#client-cards .saved-resource.client-card:hover,
#cases-list .saved-resource.client-card:hover,
#client-cases-list .saved-resource.client-card:hover,
#referrals-list .saved-resource.client-card:hover,
#case-referrals-list .saved-resource.client-card:hover,
#print-id-list .saved-resource.client-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(37, 99, 235, 0.28);
}

#client-cards .client-card-row,
#cases-list .client-card-row,
#client-cases-list .client-card-row,
#referrals-list .client-card-row,
#case-referrals-list .client-card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

#client-cards .client-main,
#cases-list .client-main,
#client-cases-list .client-main,
#referrals-list .client-main,
#case-referrals-list .client-main,
#print-id-list .client-main {
  min-width: 0;
}

#client-cards .client-name,
#cases-list .client-name,
#client-cases-list .client-name,
#referrals-list .client-name,
#case-referrals-list .client-name,
#print-id-list .client-name {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}

#client-cards .client-inline,
#cases-list .client-inline,
#client-cases-list .client-inline,
#referrals-list .client-inline,
#case-referrals-list .client-inline,
#print-id-list .client-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

#client-cards .client-sep,
#cases-list .client-sep,
#client-cases-list .client-sep,
#referrals-list .client-sep,
#case-referrals-list .client-sep,
#print-id-list .client-sep {
  color: rgba(71, 85, 105, 0.7);
  flex: 0 0 auto;
}

#client-cards .client-field,
#cases-list .client-field,
#client-cases-list .client-field,
#referrals-list .client-field,
#case-referrals-list .client-field,
#print-id-list .client-field {
  color: var(--color-muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

#client-cards .client-field strong,
#cases-list .client-field strong,
#client-cases-list .client-field strong,
#referrals-list .client-field strong,
#case-referrals-list .client-field strong,
#print-id-list .client-field strong {
  color: var(--color-ink);
  font-weight: 700;
}

#client-cards .client-field.is-email,
#cases-list .client-field.is-email,
#client-cases-list .client-field.is-email,
#referrals-list .client-field.is-email,
#case-referrals-list .client-field.is-email,
#print-id-list .client-field.is-email {
  max-width: 320px;
}

#client-cards .client-inline > *,
#cases-list .client-inline > *,
#client-cases-list .client-inline > *,
#referrals-list .client-inline > *,
#case-referrals-list .client-inline > *,
#print-id-list .client-inline > * {
  flex: 0 0 auto;
}

#client-cards .client-inline .client-name,
#cases-list .client-inline .client-name,
#client-cases-list .client-inline .client-name,
#referrals-list .client-inline .client-name,
#case-referrals-list .client-inline .client-name,
#print-id-list .client-inline .client-name {
  flex: 0 1 auto;
}

@media (max-width: 700px) {
  #client-cards .client-card-row,
  #cases-list .client-card-row,
  #client-cases-list .client-card-row,
  #referrals-list .client-card-row,
  #case-referrals-list .client-card-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

#client-cards .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#cases-list .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#print-id-list .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#client-cases-list .saved-resource,
#client-appointments-list .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#client-search-results .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#referrals-list .saved-resource,
#case-referrals-list .saved-resource {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#client-appointments-list .client-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#print-id-list .client-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#print-id-list .client-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

#print-id-list .client-main {
  flex: 1;
  min-width: 0;
}

#print-id-list .inline-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

#print-id-list .inline-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

#print-id-list .inline-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  color: var(--color-text);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

#print-id-list .inline-toggle input[type="checkbox"]:focus + span {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

#print-id-list .inline-toggle input[type="checkbox"]:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

#print-id-list .inline-toggle:hover span {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  #print-id-list .client-card-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #print-id-list .client-card-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.site-footer {
  margin-top: 32px;
  padding: 18px 24px;
  background: #f5f7fb;
  border-top: 1px solid #e3e8f5;
  color: #4b556b;
  font-size: 14px;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer-brand {
  font-weight: 600;
  color: #1f2a44;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.site-footer-links a {
  color: #1f5bd1;
  text-decoration: none;
  font-weight: 600;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-meta {
  color: #6b7280;
  font-size: 13px;
}

.legal-page-body {
  background: #f3f6fb;
}

.legal-page {
  max-width: 980px;
  margin: 36px auto 64px;
  padding: 32px 36px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e6ecf6;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.legal-hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  color: #122141;
}

.legal-sub {
  margin: 0 0 20px;
  color: #4b556b;
}

.legal-effective {
  margin: 4px 0 14px;
  font-weight: 600;
  color: #475569;
}

.legal-section {
  margin-top: 24px;
}

.legal-section h2 {
  margin-bottom: 10px;
  color: #13244a;
}

.legal-section h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #1f2f52;
  font-size: 17px;
}

.legal-section ul {
  margin: 8px 0 16px 18px;
  color: #2f3b55;
}

.legal-section p {
  color: #2f3b55;
}

.legal-callout {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e5eaf5;
  border-left: 4px solid #1f5bd1;
  border-radius: 12px;
}

/* Listing detail page */
.listing-detail-page .listing-detail-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.listing-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: #f7f9ff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(24, 57, 120, 0.08);
  margin-bottom: 28px;
}

.listing-detail-hero-text h1 {
  margin: 8px 0 12px;
  font-size: 32px;
}

.listing-detail-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #2b5bd7;
  margin: 0;
  font-size: 12px;
}

.listing-detail-summary {
  color: #384454;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.listing-detail-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-detail-hero-actions .btn-primary,
.listing-detail-hero-actions .btn-outline {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 190px;
  text-align: center;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #2b5bd7;
  color: #2b5bd7;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.listing-detail-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(20, 30, 60, 0.08);
}

.listing-detail-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

.listing-detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #2b3440;
  font-size: 15px;
}

.listing-detail-row i {
  color: #2b5bd7;
  margin-top: 3px;
}

.listing-detail-full {
  grid-column: 1 / -1;
}

.listing-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-detail-tag {
  background: rgba(43, 91, 215, 0.1);
  color: #2b5bd7;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.listing-detail-description {
  color: #2f3844;
  line-height: 1.7;
  margin: 0;
}

.listing-detail-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.listing-detail-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-detail-footer-note {
  color: #6a7482;
}

@media (max-width: 900px) {
  .listing-detail-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-detail-hero-actions {
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
  }

  .listing-detail-grid {
    grid-template-columns: 1fr;
  }
}

