/* ============================================================
   E-Care Health Services – Shukhee/Meditaj Pixel-Perfect UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-teal: #18B8A3;
  --brand-teal-light: #E6F7F5;
  --brand-purple: #8B2C7A;
  --admin-green: #0E9F6E;
  --admin-green-light: #DEF7EC;
  --bg-main: #FFFFFF;
  --bg-page: #F8FAFC;
  --border-light: #E2E8F0;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Core Reset & Base Styles ---- */
.ecare-container, .ecare-admin-wrap {
  box-sizing: border-box;
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-page);
  padding: 24px;
}
.ecare-container *, .ecare-admin-wrap * {
  box-sizing: border-box;
}

.ecare-ambulance-page {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
  background-color: var(--bg-page) !important;
  padding: 40px calc((100vw - 1200px) / 2) !important;
}

@media (max-width: 1240px) {
  .ecare-ambulance-page {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 24px !important;
  }
}

.ecare-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}
.ecare-section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px 0;
}

/* ================================================================
   1. CAREGIVER GRID & FILTERING ([ecare_caregiver_booking])
   ================================================================ */

/* Caregiver Type tabs */
.ecare-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ecare-type-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.ecare-type-tab:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}
.ecare-type-tab.active {
  background-color: var(--brand-teal-light);
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(24, 184, 163, 0.15);
}
/* Dynamic tab active styling treatments matching mockup */
.ecare-type-tab[data-type="Nurse"].active {
  background-color: #FEF3C7;
  border-color: #F59E0B;
  color: #D97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.ecare-type-tab[data-type="Nurse"].active .ecare-tab-icon {
  background: #FFFBEB;
  color: #D97706;
}
.ecare-type-tab[data-type="Senior Care"].active {
  background-color: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.ecare-type-tab[data-type="Senior Care"].active .ecare-tab-icon {
  background: #F0F9FF;
  color: #0369A1;
}
.ecare-type-tab[data-type="Nanny"].active {
  background-color: #FCE7F3;
  border-color: #DB2777;
  color: #BE185D;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.15);
}
.ecare-type-tab[data-type="Nanny"].active .ecare-tab-icon {
  background: #FDF2F8;
  color: #BE185D;
}
.ecare-type-tab[data-type="Physiotherapist"].active {
  background-color: #E6F7F5;
  border-color: #18B8A3;
  color: #0F8A7A;
  box-shadow: 0 4px 12px rgba(24, 184, 163, 0.15);
}
.ecare-type-tab[data-type="Physiotherapist"].active .ecare-tab-icon {
  background: #F0FDFA;
  color: #0F8A7A;
}

.ecare-type-tab .ecare-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  overflow: hidden;
}
.ecare-type-tab.active .ecare-tab-icon {
  background: var(--bg-main);
  color: var(--brand-teal);
}
.ecare-type-tab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .ecare-type-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .ecare-type-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ecare-type-tab {
    padding: 8px 12px;
    font-size: 12px;
    gap: 8px;
  }
  .ecare-type-tab .ecare-tab-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}
@media (max-width: 380px) {
  .ecare-type-tabs {
    grid-template-columns: 1fr;
  }
}

/* Package Selection Cards */
.ecare-package-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) {
  .ecare-package-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .ecare-package-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ecare-package-tabs { grid-template-columns: 1fr; }
}
.ecare-package-tab {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.ecare-package-tab:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
}
.ecare-package-tab.active {
  background-color: var(--brand-teal-light);
  border: 2px solid var(--brand-teal);
  box-shadow: 0 4px 12px rgba(24, 184, 163, 0.12);
}
.ecare-package-tab .ecare-pkg-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.ecare-package-tab .ecare-pkg-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-teal);
  margin-top: auto;
}

/* Active filter badges / available count */
.ecare-active-filters-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.ecare-results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.ecare-filter-badge-row {
  display: flex;
  gap: 8px;
}
.ecare-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(24, 184, 163, 0.15);
}

/* Caregiver Grid */
.ecare-cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.ecare-cg-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}
.ecare-cg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ecare-cg-card-header {
  padding: 14px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}
.ecare-cg-card-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 80px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecare-cg-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 0;
}
.ecare-cg-card-info {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}
.ecare-cg-card-info h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ecare-cg-card-bio {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ecare-cg-card-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  border: none;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}
.ecare-cg-card-btn:hover {
  background: var(--brand-teal);
  color: var(--bg-main);
}


/* ================================================================
   2. SINGLE CAREGIVER DETAILS & BOOKING FORM
   ================================================================ */
.ecare-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg-main);
}
@media (max-width: 900px) {
  .ecare-detail-grid { grid-template-columns: 1fr; }
}

/* Left Column Profile Card */
.ecare-detail-sidebar {
  background-color: var(--bg-page);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ecare-detail-sidebar .ecare-profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-main);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.ecare-detail-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-dark);
}
.ecare-detail-sidebar .ecare-provider-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-teal);
  background: var(--brand-teal-light);
  border: 1px solid rgba(24, 184, 163, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.ecare-sidebar-block {
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
}
.ecare-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ecare-sidebar-block p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

/* Right Column Booking Form */
.ecare-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Family Members Box */
.ecare-family-card {
  border: 1.5px solid var(--brand-teal);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-main);
  position: relative;
  box-shadow: 0 4px 12px rgba(24, 184, 163, 0.05);
}
.ecare-family-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-dark);
}
.ecare-family-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ecare-family-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecare-family-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ecare-family-icon {
  font-size: 16px;
  color: var(--text-muted);
}
.ecare-family-name {
  font-weight: 600;
  font-size: 14px;
}
.ecare-family-badge {
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.ecare-family-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.ecare-family-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ecare-change-family-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--brand-teal);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ecare-change-family-link:hover {
  text-decoration: underline;
}

/* Interactive selector modal or list for family members */
.ecare-family-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.ecare-family-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.ecare-family-option-row:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
}
.ecare-family-option-row.selected {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
  font-weight: 600;
}

/* 2-Column Grid Input Form */
.ecare-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .ecare-info-grid { grid-template-columns: 1fr; }
}
.ecare-form-field {
  display: flex;
  flex-direction: column;
}
.ecare-form-field.full-width {
  grid-column: 1 / -1;
}
.ecare-form-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.ecare-form-field label span {
  color: #EF4444;
}
.ecare-form-field input,
.ecare-form-field select,
.ecare-form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-primary);
  background: var(--bg-main);
  transition: all 0.2s;
  width: 100%;
}
.ecare-form-field input:focus,
.ecare-form-field select:focus,
.ecare-form-field textarea:focus {
  border-color: var(--brand-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 184, 163, 0.1);
}
.ecare-form-field textarea {
  min-height: 80px;
  resize: vertical;
}

/* Documents Upload Box */
.ecare-profile-upload {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
  max-width: 100%;
  text-align: left;
  cursor: pointer;
}
.ecare-profile-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ecare-profile-upload-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}
.ecare-profile-upload-hint {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.3;
}
.ecare-profile-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-main);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ecare-profile-upload-btn:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
}
.ecare-profile-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ecare-upload-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ecare-doc-upload {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background-color: var(--bg-page);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ecare-doc-upload:hover {
  border-color: var(--brand-teal);
  background-color: var(--brand-teal-light);
}
.ecare-doc-upload-icon {
  width: 44px;
  height: 44px;
  color: var(--admin-green);
  margin: 0 auto 10px;
  display: block;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 159, 110, 0.10), rgba(14, 159, 110, 0.04));
  border: 1px solid rgba(14, 159, 110, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecare-doc-upload-icon .ecare-upload-icon {
  width: 22px;
  height: 22px;
}
.ecare-doc-upload p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.ecare-doc-upload .file-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Submit Button: Full-width Pill Colored Purple */
.ecare-submit-booking-btn {
  display: block;
  width: 100%;
  padding: 14px 28px;
  background: var(--brand-purple);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(139, 44, 122, 0.2);
}
.ecare-submit-booking-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(139, 44, 122, 0.25);
}

/* ================================================================
   3. DIAGNOSTIC & LAB TEST CATALOG ([ecare_lab_tests])
   ================================================================ */

/* Location Sticky Bar */
.ecare-location-sticky-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  align-items: flex-end;
}
.ecare-location-select-wrap {
  flex: 1;
  min-width: 180px;
}
.ecare-location-select-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* Select2 Custom Styles for E-Care Shukhee Theme */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 8px !important;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 12px center !important;
    background-size: 20px 20px !important;
    font-size: 13.5px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
    line-height: normal !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 36px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Hide Select2 default arrow container and triangle completely across all themes to prevent double arrows */
.select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand-teal) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-dropdown {
    border: 1.5px solid var(--brand-teal) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-lg) !important;
    font-size: 13.5px !important;
    font-family: 'Inter', sans-serif !important;
    overflow: hidden !important;
}

.select2-container--open .select2-dropdown--below {
    margin-top: -3px !important;
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.select2-container--open .select2-dropdown--above {
    margin-bottom: -3px !important;
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-search--dropdown {
    padding: 8px 12px 6px 12px !important;
    background-color: #ffffff !important;
    display: block !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border-light) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    outline: none !important;
    font-size: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand-teal) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--brand-teal) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    text-align: center !important;
}

.select2-hidden-accessible {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Search input for tests */
.ecare-test-search-wrap {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ecare-test-search-input-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.ecare-test-search-input-box input {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
}
.ecare-catalog-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ecare-test-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.ecare-cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Test List Grid */
.ecare-lab-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .ecare-lab-test-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ecare-lab-test-grid { grid-template-columns: 1fr; }
}

.ecare-lab-test-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.ecare-lab-test-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ecare-lab-test-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.ecare-lab-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ecare-lab-test-card .ecare-pill {
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 600;
}
.ecare-lab-test-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.ecare-lab-test-price {
  display: flex;
  flex-direction: column;
}
.ecare-lab-test-price .price-lbl {
  font-size: 11px;
  color: var(--text-muted);
}
.ecare-lab-test-price .price-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-teal);
}
.ecare-add-to-cart-plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #FFFFFF;
  border: none;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ecare-add-to-cart-plus-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(24, 184, 163, 0.3);
}

/* Empty/Select Location View */
.ecare-empty-lab-view {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-main);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
}
.ecare-empty-lab-view img, .ecare-empty-lab-view svg {
  max-width: 140px;
  margin-bottom: 16px;
}
.ecare-empty-lab-view p {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ================================================================
   4. AMBULANCE REQUEST FORM ([ecare_ambulance_request])
   ================================================================ */
.ecare-ambulance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .ecare-ambulance-layout { grid-template-columns: 1fr; }
}

.ecare-amb-form-col,
.ecare-amb-sidebar {
  min-width: 0;
}

.ecare-amb-form-card {
  background: #FFFFFF;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* Ambulance Type Cards */
.ecare-amb-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .ecare-amb-type-grid { grid-template-columns: 1fr; }
}

.ecare-amb-type-card {
  background: var(--bg-main);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.ecare-amb-type-card:hover {
  border-color: var(--admin-green);
  transform: translateY(-2px);
}
.ecare-amb-type-card.active {
  border: 2.5px solid var(--admin-green);
  background: #F0FDF4; /* Light green tint */
}
.ecare-amb-type-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.ecare-amb-type-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.ecare-amb-type-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Input Fields with Left Icons */
.ecare-field-icon-wrap {
  position: relative;
  margin-bottom: 16px;
  width: 100%;
  min-width: 0;
}
.ecare-field-icon-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.ecare-field-icon-wrap-textarea .field-icon {
  top: 16px;
  transform: none;
}
.ecare-field-icon-wrap input,
.ecare-field-icon-wrap select,
.ecare-field-icon-wrap textarea {
  padding-left: 44px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.ecare-field-icon-wrap input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}
.ecare-field-icon-wrap textarea {
  min-height: 118px;
  resize: vertical;
  padding-top: 14px;
}

/* Sidebar Columns */
.ecare-amb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Why Choose Us features list */
.ecare-amb-features-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.ecare-feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
}
.ecare-feat-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.ecare-feat-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Summary Card Sticky */
.ecare-summary-sticky-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 24px;
  min-width: 0;
}
.ecare-summary-sticky-card h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 18px 0;
  color: var(--text-dark);
}
.ecare-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  gap: 16px;
}
.ecare-summary-row .label {
  color: var(--text-muted);
  min-width: 0;
}
.ecare-summary-row .value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ecare-summary-status {
  color: #D97706;
  font-weight: 700;
}
.ecare-summary-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}
.ecare-summary-terms input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}
.ecare-summary-terms label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
  min-width: 0;
}
.ecare-summary-warning {
  background: #FEF3C7;
  border-left: 4px solid #D97706;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #92400E;
  margin: 16px 0;
  line-height: 1.4;
}
.ecare-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-teal);
  gap: 16px;
}
.ecare-confirm-amb-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand-teal);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 20px;
}
.ecare-confirm-amb-btn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(24, 184, 163, 0.25);
}

/* ================================================================
   5. CUSTOM ADMIN DASHBOARDS (Meditaj / Shukhee style)
   ================================================================ */

/* Top Metrics Cards (4 Columns) */
.ecare-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 992px) {
  .ecare-admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ecare-admin-kpi-grid { grid-template-columns: 1fr; }
}

.ecare-admin-kpi-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.ecare-admin-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  flex-shrink: 0;
}
.ecare-admin-kpi-icon.teal { background-color: var(--brand-teal); }
.ecare-admin-kpi-icon.yellow { background-color: #F59E0B; }
.ecare-admin-kpi-icon.green { background-color: var(--admin-green); }
.ecare-admin-kpi-icon.red { background-color: #EF4444; }

.ecare-admin-kpi-details {
  display: flex;
  flex-direction: column;
}
.ecare-admin-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.ecare-admin-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

/* Action Header */
.ecare-admin-action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--bg-main);
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.ecare-admin-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ecare-admin-title-area h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}
.ecare-admin-badge-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-page);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}
.ecare-admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ecare-admin-search-box {
  position: relative;
}
.ecare-admin-search-box input {
  padding: 8px 12px 8px 32px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 200px;
  background: var(--bg-page);
}
.ecare-admin-search-box::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}
.ecare-admin-btn-outline {
  padding: 8px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.ecare-admin-btn-outline:hover {
  background: var(--bg-page);
  border-color: #CBD5E1;
}
.ecare-admin-btn-green {
  padding: 8px 18px;
  background-color: var(--admin-green);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.ecare-admin-btn-green:hover {
  opacity: 0.9;
}

/* Borderless Modern Data Table */
.ecare-admin-table-container {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.ecare-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ecare-admin-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--border-light);
  background-color: var(--bg-main);
}
.ecare-admin-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.ecare-admin-table tr:last-child td {
  border-bottom: none;
}
.ecare-admin-table tr:hover td {
  background-color: #FAFBFC;
}

/* Table Specific Components */
.ecare-admin-provider-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ecare-admin-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--brand-teal-light);
  color: var(--brand-teal);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.ecare-admin-table a.provider-name-link {
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}
.ecare-admin-table a.provider-name-link:hover {
  color: var(--brand-teal);
}

/* Status Pill Badges */
.ecare-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ecare-status-pill.active,
.ecare-status-pill.approved,
.ecare-status-pill.completed {
  background-color: var(--admin-green-light);
  color: #15803d;
}
.ecare-status-pill.pending {
  background-color: #FEF9C3;
  color: #a16207;
}
.ecare-status-pill.cancelled,
.ecare-status-pill.rejected {
  background-color: #FEE2E2;
  color: #b91c1c;
}
.ecare-status-pill.emergency {
  background-color: #FFE4E6;
  color: #e11d48;
}
.ecare-status-pill.dispatched,
.ecare-status-pill.assigned {
  background-color: #E0F2FE;
  color: #0369a1;
}
.ecare-status-pill.inactive {
  background-color: #F1F5F9;
  color: #475569;
}

/* ================================================================
   6. GLOBAL MODALS & GENERAL LAYOUTS
   ================================================================ */
.ecare-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.ecare-modal-container {
  background: var(--bg-main);
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ecare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
}
.ecare-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}
.ecare-modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.ecare-modal-close-btn:hover {
  color: var(--text-dark);
}
.ecare-modal-body {
  padding: 28px;
}

/* Registration banners */
.ecare-registration-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  gap: 16px;
}
.ecare-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.ecare-banner-icon {
  width: 48px;
  height: 48px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #2563EB;
  border: 1px solid #DBEAFE;
  flex-shrink: 0;
}
.ecare-banner-title {
  font-weight: 800;
  font-size: 15px;
  color: #1E3A8A;
  margin-bottom: 4px;
}
.ecare-banner-desc {
  font-size: 12px;
  color: #1E40AF;
  margin: 0;
}
.ecare-banner-enroll-link {
  font-weight: 700;
  font-size: 13px;
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid #2563EB;
  padding: 8px 16px;
  border-radius: 6px;
  background: #FFFFFF;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ecare-banner-enroll-link:hover {
  background: #2563EB;
  color: #FFFFFF;
}
@media (max-width: 600px) {
  .ecare-registration-banner-card { padding: 16px; }
  .ecare-banner-enroll-link { width: 100%; justify-content: center; }
}

/* Photo upload preview (admin backend) */
.ecare-photo-upload-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ecare-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border-light);
  display: none;
}
.ecare-photo-preview.visible {
  display: block;
}
.ecare-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--bg-page);
  border: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.ecare-photo-placeholder:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
}

/* Flex layout helper for forms */
.ecare-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.ecare-form-row.single {
  grid-template-columns: 1fr;
}
.ecare-form-row > .ecare-form-field {
  min-width: 0;
}
@media (max-width: 640px) {
  .ecare-form-row { grid-template-columns: 1fr; }
}

/* Registration form header responsive */
.ecare-form-registration > div:first-child {
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 500px) {
  .ecare-form-registration > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }
  .ecare-form-registration > div:first-child button {
    align-self: flex-start;
  }
  .ecare-profile-upload {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .ecare-profile-upload-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Active filters info responsive */
@media (max-width: 500px) {
  .ecare-active-filters-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Location sticky bar responsive */
@media (max-width: 768px) {
  .ecare-location-sticky-bar {
    flex-direction: column;
    gap: 10px;
  }
  .ecare-location-select-wrap {
    width: 100%;
    min-width: 0;
  }
}

/* Ambulance layout responsive */
@media (max-width: 768px) {
  .ecare-ambulance-layout {
    grid-template-columns: 1fr;
  }
  .ecare-amb-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecare-amb-features-box {
    flex-direction: column;
  }
  .ecare-feat-item + .ecare-feat-item {
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }
  .ecare-summary-sticky-card {
    position: static;
    top: auto;
  }
}
@media (max-width: 480px) {
  .ecare-amb-type-grid {
    grid-template-columns: 1fr;
  }
  .ecare-amb-form-card,
  .ecare-summary-sticky-card {
    padding: 18px;
    border-radius: 14px;
  }
  .ecare-summary-row,
  .ecare-summary-total-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ecare-summary-row .value,
  .ecare-summary-total-row {
    text-align: left;
  }
  .ecare-field-icon-wrap {
    margin-bottom: 12px;
  }
  .ecare-field-icon-wrap .field-icon {
    left: 12px;
  }
  .ecare-field-icon-wrap input,
  .ecare-field-icon-wrap select,
  .ecare-field-icon-wrap textarea {
    padding-left: 38px;
    font-size: 14px;
  }
  .ecare-doc-upload {
    padding: 20px 16px;
  }
  .ecare-doc-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* Admin controls responsive */
@media (max-width: 768px) {
  .ecare-admin-action-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ecare-admin-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .ecare-search-input {
    flex: 1;
    min-width: 150px;
  }
}

/* Caregiver grid responsive fix */
@media (max-width: 480px) {
  .ecare-cg-grid { grid-template-columns: 1fr; }
  .ecare-cg-card-header { padding: 14px 14px 8px; }
  .ecare-cg-card-body { padding: 8px 14px 14px; }
}

/* Modal responsive */
@media (max-width: 768px) {
  .ecare-modal-backdrop { padding: 20px 12px; }
  .ecare-modal-body { padding: 20px 16px; }
  .ecare-modal-header { padding: 16px 18px; }
  .ecare-detail-grid { grid-template-columns: 1fr; }
  .ecare-detail-sidebar { text-align: left; align-items: flex-start; }
}

/* File selector box wrapper */
.ecare-file-box {
  margin-bottom: 16px;
}
.ecare-file-box label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Document Preview Box Styles */
.ecare-doc-preview-wrap {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.ecare-doc-preview-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ecare-doc-preview-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ecare-doc-preview-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ecare-doc-preview-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecare-doc-preview-size {
  font-size: 11px;
  color: var(--text-muted);
}

.ecare-doc-preview-cancel-btn {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  transition: background 0.2s, transform 0.2s !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.ecare-doc-preview-cancel-btn:hover {
  background: #fca5a5 !important;
  transform: scale(1.05);
}
