/* ======================================
   CONTAINER
====================================== */

.customer-dashboard-container {
  padding: 18px 16px 12px;
}

/* ======================================
   HEADER
====================================== */

.customer-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  margin-bottom: 22px;
}

.customer-dashboard-welcome {
  font-size: 14px;
  font-weight: 600;

  color: #6b7280;
}

.customer-dashboard-name {
  margin-top: 4px;

  font-size: 28px;
  font-weight: 800;

  color: #111827;
}

.customer-dashboard-subtitle {
  margin-top: 6px;

  font-size: 14px;

  color: #6b7280;
}

/* ======================================
   BELL
====================================== */

.customer-dashboard-bell {
  position: relative;

  width: 46px;
  height: 46px;

  border-radius: 16px;

  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.customer-dashboard-bell i {
  font-size: 20px;

  color: #2563eb;
}

.customer-dashboard-badge {
  position: absolute;

  top: -4px;
  right: -4px;

  min-width: 20px;
  height: 20px;

  padding: 0 6px;

  border-radius: 999px;

  background: #ef4444;

  color: #fff;

  font-size: 11px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================================
   OVERVIEW CARD
====================================== */

.customer-dashboard-overview-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.customer-dashboard-overview-item {
  text-align: center;
}

.customer-dashboard-overview-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin: 0 auto 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-dashboard-purple {
  background: #f3e8ff;
}

.customer-dashboard-purple i {
  color: #9333ea;
}

.customer-dashboard-overview-icon i {
  font-size: 18px;

  color: #2563eb;
}

.customer-dashboard-overview-label {
  font-size: 12px;
  font-weight: 700;

  color: #6b7280;
}

.customer-dashboard-overview-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

.customer-dashboard-overview-sub {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: #9ca3af;
}

/* ======================================
   COLORS
====================================== */

.customer-dashboard-green {
  color: #16a34a;
}

.customer-dashboard-yellow {
  color: #f59e0b;
}

.customer-dashboard-red {
  color: #ef4444;
}

/* ======================================
   CARD
====================================== */

.customer-dashboard-card {
  background: #ffffff;

  border-radius: 24px;

  padding: 18px;

  margin-bottom: 18px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ======================================
   CARD HEADER
====================================== */

.customer-dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.customer-dashboard-card-title {
  font-size: 18px;
  font-weight: 800;

  color: #111827;
}

.customer-dashboard-link {
  font-size: 13px;
  font-weight: 700;

  color: #2563eb;

  cursor: pointer;
}

/* ======================================
   READINGS
====================================== */

.customer-dashboard-readings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.customer-dashboard-reading-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 12px;
  min-height: 120px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;
}

.customer-dashboard-reading-name {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.customer-dashboard-reading-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;

  word-break: break-word;
  overflow-wrap: break-word;
}

.customer-dashboard-reading-range {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

.customer-dashboard-reading-good {
  color: #16a34a;
}

.customer-dashboard-reading-warning {
  color: #f59e0b;
}

.customer-dashboard-reading-danger {
  color: #ef4444;
}

/* ======================================
   POOL IMAGE
====================================== */

.customer-dashboard-pool-image {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
}

.customer-dashboard-pool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customer-dashboard-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #cbd5e1;
}

/* ======================================
   POOL DETAILS
====================================== */

.customer-dashboard-pool-details {
  display: flex;
  flex-direction: column;

  gap: 14px;

  margin-bottom: 20px;
}

.customer-dashboard-pool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-dashboard-pool-row span {
  font-size: 14px;

  color: #6b7280;
}

.customer-dashboard-pool-row strong {
  font-size: 15px;
  font-weight: 700;

  color: #111827;
}

/* ======================================
   BUTTON
====================================== */

.customer-dashboard-primary-btn {
  width: 100%;
  height: 52px;

  border: none;

  border-radius: 16px;

  background: #2563eb;

  color: #fff;

  font-size: 15px;
  font-weight: 700;
}

/* ======================================
   VISITS
====================================== */

.customer-dashboard-visits {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.customer-dashboard-visit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #f9fafb;

  border-radius: 18px;

  padding: 14px 16px;
}

.customer-dashboard-visit-date {
  font-size: 14px;
  font-weight: 700;

  color: #111827;
}

.customer-dashboard-visit-tech {
  margin-top: 4px;

  font-size: 13px;

  color: #6b7280;
}

.customer-dashboard-visit-status {
  font-size: 13px;
  font-weight: 700;

  color: #16a34a;
}

.customer-dashboard-visit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.customer-dashboard-visit-status.scheduled {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.customer-dashboard-visit-status.progress {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.customer-dashboard-visit-status.completed {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.customer-dashboard-visit-status.cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
/* ======================================
   NOTIFICATIONS
====================================== */

.customer-dashboard-notifications {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.customer-dashboard-notification-item {
  display: flex;
  gap: 14px;

  background: #f9fafb;

  border-radius: 18px;

  padding: 14px;
}

.customer-dashboard-notification-icon {
  width: 42px;
  height: 42px;

  border-radius: 14px;

  background: #eff6ff;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.customer-dashboard-notification-icon i {
  font-size: 18px;

  color: #2563eb;
}

.customer-dashboard-notification-title {
  font-size: 14px;
  font-weight: 700;

  color: #111827;
}

.customer-dashboard-notification-text {
  margin-top: 4px;

  font-size: 13px;
  line-height: 1.5;

  color: #6b7280;
}

/* ======================================
   ACTIONS
====================================== */

.customer-dashboard-actions-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
}

.customer-dashboard-action {
  background: #f9fafb;

  border-radius: 20px;

  padding: 20px 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;
}

.customer-dashboard-action i {
  font-size: 26px;

  color: #2563eb;
}

.customer-dashboard-action span {
  font-size: 13px;
  font-weight: 700;

  color: #111827;

  text-align: center;
}

/* ======================================
   EMPTY
====================================== */

.customer-dashboard-empty {
  text-align: center;

  padding: 24px 12px;

  font-size: 14px;
  font-weight: 600;

  color: #9ca3af;
}

.customer-dashboard-pool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ======================================
   MOBILE
====================================== */

@media (max-width: 480px) {
  .customer-dashboard-overview-card {
    flex-direction: column;
  }

  .customer-dashboard-readings-grid {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .customer-dashboard-reading-value {
    font-size: 16px;
  }

  .customer-dashboard-reading-card {
    padding: 12px 10px;
  }
}

/* ======================================
   CONTAINER
====================================== */

.customer-visits-container {
  padding: 18px 16px 120px;
  background: #f5f7fb;
  min-height: 100vh;
}

/* ======================================
   HEADER
====================================== */

.customer-visits-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.customer-visits-back {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #111827;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.customer-visits-header-center {
  flex: 1;
}

.customer-visits-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.customer-visits-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* ======================================
   STATS
====================================== */

.customer-visits-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.customer-visits-stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.customer-visits-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.customer-visits-stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* ======================================
   FILTERS
====================================== */

.customer-visits-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 22px;
  padding-bottom: 2px;
}

.customer-visits-filter {
  border: none;
  background: #e2e8f0;
  color: #334155;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customer-visits-filter.active {
  background: #2563eb;
  color: #ffffff;
}

/* ======================================
   LIST
====================================== */

.customer-visits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ======================================
   CARD
====================================== */

.customer-visits-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.customer-visits-card:active {
  transform: scale(0.98);
}

/* ======================================
   CARD TOP
====================================== */

.customer-visits-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-visits-date {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

/* ======================================
   STATUS
====================================== */

.customer-visits-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.customer-visits-status.scheduled {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.customer-visits-status.progress {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.customer-visits-status.completed {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.customer-visits-status.cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

/* ======================================
   SERVICE
====================================== */

.customer-visits-service {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}

/* ======================================
   ROWS
====================================== */

.customer-visits-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
}

.customer-visits-row i {
  color: #94a3b8;
  font-size: 15px;
  margin-top: 1px;
}

/* ======================================
   FOOTER
====================================== */

.customer-visits-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-visits-photos {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.customer-visits-view {
  display: flex;
  align-items: center;
  gap: 5px;

  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
}

/* ======================================
   EMPTY
====================================== */

.customer-visits-empty {
  background: #ffffff;
  border-radius: 22px;
  padding: 50px 20px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.customer-visits-empty i {
  font-size: 52px;
  color: #cbd5e1;
}

.customer-visits-empty-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.customer-visits-empty-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #64748b;
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 480px) {
  .customer-visits-title {
    font-size: 22px;
  }

  .customer-visits-service {
    font-size: 17px;
  }

  .customer-visits-card {
    padding: 16px;
  }
}

/* ======================================
   CUSTOMER VISIT DETAIL
====================================== */

.customer-visit-detail-page {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ======================================
   HEADER
====================================== */

.customer-visit-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.customer-visit-detail-back {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.customer-visit-detail-header-content {
  flex: 1;
}

.customer-visit-detail-date {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-top: 8px;
}

.customer-visit-detail-service {
  font-size: 15px;
  color: #6b7280;
  margin-top: 4px;
}

/* ======================================
   STATUS
====================================== */

.customer-visit-detail-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.customer-visit-detail-status.scheduled {
  background: #3b82f6;
}

.customer-visit-detail-status.completed {
  background: #10b981;
}

.customer-visit-detail-status.progress {
  background: #f59e0b;
}

.customer-visit-detail-status.cancelled {
  background: #ef4444;
}

/* ======================================
   CARD
====================================== */

.customer-visit-detail-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.customer-visit-detail-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

/* ======================================
   SUMMARY
====================================== */

.customer-visit-detail-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customer-visit-detail-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.customer-visit-detail-summary-item i {
  font-size: 18px;
  color: #2563eb;
  margin-top: 2px;
}

.customer-visit-detail-label {
  font-size: 12px;
  color: #6b7280;
}

.customer-visit-detail-value {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  margin-top: 2px;
}

/* ======================================
   READINGS
====================================== */

.customer-visit-detail-readings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.customer-visit-detail-reading-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.customer-visit-detail-reading-name {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.customer-visit-detail-reading-value {
  font-size: 22px;
  font-weight: 700;
}

.customer-visit-detail-reading-value.good {
  color: #10b981;
}

.customer-visit-detail-reading-value.warning {
  color: #f59e0b;
}

.customer-visit-detail-reading-value.danger {
  color: #ef4444;
}

.customer-visit-detail-reading-range {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

/* ======================================
   DOSAGES
====================================== */

.customer-visit-detail-dosages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-visit-detail-dosage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.customer-visit-detail-dosage-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.customer-visit-detail-dosage-value {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
}

/* ======================================
   NOTES
====================================== */

.customer-visit-detail-notes {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
}

/* ======================================
   PHOTOS
====================================== */

.customer-visit-detail-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.customer-visit-detail-photo-item {
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 1 / 1;
}

.customer-visit-detail-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ======================================
   EMPTY
====================================== */

.customer-visit-detail-empty {
  text-align: center;
  padding: 30px 16px;
  font-size: 14px;
  color: #9ca3af;
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 640px) {
  .customer-visit-detail-readings {
    grid-template-columns: 1fr;
  }

  .customer-visit-detail-photos {
    grid-template-columns: 1fr 1fr;
  }

  .customer-visit-detail-reading-value {
    font-size: 20px;
  }
}

.customer-dashboard-notification-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customer-dashboard-notification-item:active {
  transform: scale(0.98);
}

.customer-dashboard-notification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-dashboard-notification-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.customer-dashboard-notification-message {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

.customer-dashboard-notification-date {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.customer-dashboard-notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

/* ======================================
QUICK ACTIONS
====================================== */

.customer-dashboard-actions-scroll {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 6px;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;
}

.customer-dashboard-actions-scroll::-webkit-scrollbar {
  display: none;
}

.customer-dashboard-action {
  min-width: 84px;
  max-width: 84px;

  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 14px 8px;

  border-radius: 18px;

  background: #f8fafc;

  cursor: pointer;

  transition: all 0.2s ease;

  scroll-snap-align: start;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.customer-dashboard-action:active {
  transform: scale(0.96);
}

.customer-dashboard-action-icon {
  width: 48px;
  height: 48px;

  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
}

.customer-dashboard-action-icon i {
  color: #ffffff;
}

.customer-dashboard-action-label {
  font-size: 12px;
  font-weight: 600;

  text-align: center;
  color: #1f2937;

  line-height: 15px;

  min-height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================================
ACTION COLORS
====================================== */

.customer-dashboard-action-blue .customer-dashboard-action-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.customer-dashboard-action-green .customer-dashboard-action-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.customer-dashboard-action-purple .customer-dashboard-action-icon {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.customer-dashboard-action-orange .customer-dashboard-action-icon {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.customer-dashboard-action-pink .customer-dashboard-action-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.customer-dashboard-action-dark .customer-dashboard-action-icon {
  background: linear-gradient(135deg, #475569, #334155);
}
