:root {
  --primary: #D97A91;
  --primary-dark: #C4617A;
  --primary-light: #FDF0F3;
  --rose: #D97A91;
  --rose-light: #FDF0F3;
  --gold: #D4AF37;
  --gold-light: #FDF8E8;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #FBF7F0;
  --sidebar-from: #1D1D1F;
  --sidebar-to: #2D2D2F;
  --sidebar-text: #CBD5E1;
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --card-bg: #FFFFFF;
  --text: #1D1D1F;
  --text-muted: #6B6B6B;
  --border: #EDE7DB;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.screen { min-height: 100vh; }
.hidden { display: none !important; }

/* ── Login ──────────────────────────────────────────────────────────────────── */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #FBF7F0 0%, #FDF0F3 40%, #F5E1E8 70%, #FBF7F0 100%);
  min-height: 100vh;
}
.login-box {
  background: white;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-box .logo { margin-bottom: 20px; display: flex; justify-content: center; }
.login-box h1 {
  font-size: 26px; font-weight: 800; margin-bottom: 8px; color: var(--text);
  letter-spacing: -0.5px;
}
.login-box p.tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
#login-form input {
  width: 100%; padding: 13px 16px; margin-bottom: 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
#login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
#login-form button {
  width: 100%; padding: 13px;
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius); font-size: 15px;
  font-weight: 700; cursor: pointer; margin-top: 8px;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
#login-form button:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}
#login-form button:active { transform: scale(0.99); }
.error { color: var(--danger); font-size: 13px; margin-top: 12px; font-weight: 500; }

/* ── Admin layout ───────────────────────────────────────────────────────────── */
#admin-screen { display: flex; }

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--sidebar-from) 0%, var(--sidebar-to) 100%);
  color: var(--sidebar-text);
  display: flex; flex-direction: column; position: fixed; height: 100vh;
}
.sidebar-header {
  padding: 20px 20px 18px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.sidebar nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; margin: 2px 10px;
  border-radius: var(--radius);
  color: var(--sidebar-text); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.sidebar nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
}
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-footer button {
  width: 100%; padding: 9px 12px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); cursor: pointer; margin-top: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  transition: background 0.15s;
}
.sidebar-footer button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar-footer span { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 500; }

.main-content { flex: 1; margin-left: 260px; padding: 28px; }

/* ── Page header ─────────────────────────────────────────────────────────────── */
.page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.page-header h2 {
  font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.4px;
}
.filters { display: flex; gap: 10px; align-items: center; }
.filters select, .filters input[type="search"] {
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: white; font-size: 13px; cursor: pointer; font-family: inherit;
  color: var(--text); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filters select:focus, .filters input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ── Dashboard stat cards ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg); padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
/* Accent top border variants — set via inline style or specific classes */
.stat-card:nth-child(1) { border-top-color: #F59E0B; }
.stat-card:nth-child(2) { border-top-color: var(--primary); }
.stat-card:nth-child(3) { border-top-color: var(--success); }
.stat-card:nth-child(4) { border-top-color: #0EA5E9; }
.stat-card:nth-child(5) { border-top-color: #8B5CF6; }
.stat-card:nth-child(6) { border-top-color: var(--success); }

.stat-value {
  display: block; font-size: 34px; font-weight: 900; color: var(--text);
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 6px;
}
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.table-container {
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: #F8FAFC; font-weight: 700; font-size: 11.5px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
td { font-size: 13.5px; color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFC; transition: background 0.1s; }

/* ── Provider avatar in table ─────────────────────────────────────────────────────── */
.provider-avatar-cell {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
  display: block;
}
.provider-avatar-initials {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #D97A91, #E9A0B1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0;
}

/* ── Document thumbnail in table ─────────────────────────────────────────────── */
.doc-thumb {
  width: 48px; height: 48px; border-radius: 6px;
  object-fit: cover; border: 1px solid var(--border);
  cursor: zoom-in; display: block;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.doc-thumb:hover { opacity: 0.88; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-approved  { background: #D1FAE5; color: #065F46; }
.badge-rejected  { background: #FEE2E2; color: #991B1B; }
.badge-requested { background: #DBEAFE; color: #1E40AF; }
.badge-accepted  { background: #D1FAE5; color: #065F46; }
.badge-started   { background: #E0E7FF; color: #3730A3; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }
.badge-on_my_way  { background: #E0F2FE; color: #0369A1; }

.req-badge {
  display: inline-block; padding: 2px 7px; border-radius: 20px; font-size: 10px;
  font-weight: 700; background: #FEF3C7; color: #92400E; margin-left: 4px;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border: none; border-radius: var(--radius);
  font-size: 12.5px; font-weight: 700; cursor: pointer; margin-right: 4px;
  transition: opacity 0.15s, transform 0.1s; white-space: nowrap;
  font-family: inherit; letter-spacing: 0.1px;
}
.btn:hover   { opacity: 0.88; transform: translateY(-1px); }
.btn:active  { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-approve { background: var(--success); color: white; box-shadow: 0 1px 4px rgba(16,185,129,0.25); }
.btn-reject  { background: var(--danger);  color: white; box-shadow: 0 1px 4px rgba(239,68,68,0.25); }
.btn-view    { background: var(--primary); color: white; box-shadow: 0 1px 4px rgba(183,110,121,0.25); }
.btn-cancel  { background: #F1F5F9; color: #475569; border: 1px solid var(--border); box-shadow: none; }
.btn-primary { background: var(--primary); color: white; padding: 9px 18px; border-radius: var(--radius); border: none; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 1px 4px rgba(183,110,121,0.25); }
.btn-primary:hover { opacity: 0.88; }

/* Button loading spinner */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.55s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── Loading / Error ────────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; }
.error-text { color: var(--danger) !important; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-anim 1.4s infinite;
  border-radius: 6px;
}
@keyframes skeleton-anim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Modals (shared) ────────────────────────────────────────────────────────── */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15,23,42,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-content {
  background: white; padding: 28px; border-radius: var(--radius-xl);
  max-width: 540px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-content.modal-large { max-width: 820px; }
.modal-close { float: right; font-size: 22px; cursor: pointer; color: var(--text-muted); line-height: 1; background: none; border: none; }
.modal h3 { margin-bottom: 16px; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.modal-actions { margin-top: 20px; display: flex; gap: 12px; }
.modal-actions button { flex: 1; padding: 11px; border: none; border-radius: var(--radius); font-size: 14px; cursor: pointer; font-weight: 700; font-family: inherit; }
#reject-reason-container { margin-top: 16px; }
#reject-reason-container textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  min-height: 80px; margin-bottom: 12px; font-family: inherit; font-size: 14px; resize: vertical;
  outline: none; transition: border-color 0.15s;
}
#reject-reason-container textarea:focus { border-color: var(--primary); }

/* ── Provider Detail modal — full-panel layout ───────────────────────────────────── */
.modal-fullscreen {
  max-width: 1140px;
  width: 96%;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
}

/* Top bar: name + actions */
.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  gap: 12px;
  flex-shrink: 0;
  min-height: 64px;
}
.modal-bar .modal-close {
  float: none; color: rgba(255,255,255,0.45); font-size: 20px; margin-left: 4px;
  flex-shrink: 0; transition: color 0.15s;
}
.modal-bar .modal-close:hover { color: rgba(255,255,255,0.9); }
.modal-bar-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* Inline Provider reject reason bar */
.provider-reject-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: #FFF1F2; border-bottom: 1px solid #FCA5A5;
  flex-shrink: 0;
}
.provider-reject-bar input {
  flex: 1; padding: 8px 12px; border: 1.5px solid #FCA5A5; border-radius: var(--radius);
  font-size: 14px; min-width: 0; font-family: inherit; outline: none;
}

/* Two-panel body */
.provider-review-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.provider-review-info {
  overflow-y: auto;
  padding: 18px;
  border-right: 1px solid var(--border);
  background: #fff;
}

.provider-review-docs {
  overflow-y: auto;
  padding: 18px;
  background: #F8FAFC;
}

/* Info panel sections */
.info-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.info-section:last-child { border-bottom: none; margin-bottom: 0; }
.info-section-title {
  font-size: 10px; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
}
.info-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 13px; margin-bottom: 6px; gap: 8px;
}
.info-row span { color: #6b7280; flex-shrink: 0; }
.info-row strong { text-align: right; color: #111827; word-break: break-all; }

.check-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 10px; border-radius: var(--radius); margin-bottom: 4px;
}
.check-yes { background: #ecfdf5; color: #065f46; font-weight: 600; }
.check-no  { background: #f8fafc; color: #94a3b8; }
.check-icon { font-size: 14px; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.tag-blue  { background: #dbeafe; color: #1d4ed8; }
.tag-amber { background: #fef3c7; color: #92400e; }

/* Docs panel: summary bar */
.docs-summary {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #374151; margin-bottom: 14px;
  padding: 10px 14px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 500;
}
.docs-required { font-weight: 700; font-size: 12px; }
.req-done    { color: #059669; }
.req-missing { color: #d97706; }

/* Document review cards */
.doc-review-card {
  background: #fff; border-radius: var(--radius-lg); border: 1.5px solid #e2e8f0;
  margin-bottom: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.doc-review-card:last-child { margin-bottom: 0; }
.doc-review-card.doc-approved { border-color: #6ee7b7; box-shadow: 0 2px 8px rgba(5,150,105,0.08); }
.doc-review-card.doc-rejected { border-color: #fca5a5; box-shadow: 0 2px 8px rgba(239,68,68,0.08); }

.doc-review-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.doc-review-type {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13.5px; color: #111827;
}

.doc-review-image-wrap {
  background: #0f172a; display: flex; align-items: center; justify-content: center; min-height: 60px;
}
.doc-review-image {
  width: 100%; max-height: 300px; object-fit: contain;
  cursor: zoom-in; display: block; transition: opacity 0.15s;
}
.doc-review-image:hover { opacity: 0.88; }

.doc-no-file { padding: 12px 16px; font-size: 13px; color: #94a3b8; }

.doc-review-actions {
  padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

.doc-reject-form {
  padding: 0 14px 10px; display: none; gap: 8px; align-items: center;
}
.doc-reject-form.shown { display: flex; }
.doc-reject-form input {
  flex: 1; padding: 7px 10px; border: 1.5px solid #e2e8f0; border-radius: var(--radius);
  font-size: 13px; min-width: 0; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.doc-reject-form input:focus { border-color: var(--primary); }

.doc-status-banner { padding: 8px 16px; font-size: 13px; font-weight: 600; }
.doc-status-approved { background: #ecfdf5; color: #065f46; }
.doc-status-rejected { background: #fef2f2; color: #991b1b; }

.doc-history-note { padding: 6px 16px 10px; font-size: 11.5px; color: var(--text-muted); border-top: 1px dashed var(--border); }

/* ── Provider detail section (for standalone doc modal) ──────────────────────────── */
.provider-detail-section { margin-bottom: 18px; }
.provider-detail-section h4 { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.provider-detail-section p  { font-size: 15px; color: var(--text); }

/* ── Provider info grid (for booking modal) ──────────────────────────────────────── */
.provider-info-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
}

/* ── Lightbox ────────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.96);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox-inner {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 14px; max-width: 96vw;
}
.lightbox-inner img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 0 80px rgba(0,0,0,0.6);
  display: block;
}
.lightbox-label {
  color: rgba(255,255,255,0.7); font-size: 13.5px; font-weight: 600;
}
.lightbox-close {
  padding: 9px 22px; background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ── Toasts ──────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  padding: 12px 20px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  color: #fff; max-width: 340px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s;
  font-family: inherit;
}
.toast-show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--primary); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .provider-review-layout { grid-template-columns: 1fr; }
  .provider-review-info { border-right: none; border-bottom: 1px solid var(--border); max-height: 280px; }
}

@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar-header span:not(.logo),
  .sidebar nav a .nav-text,
  .sidebar-footer span { display: none; }
  .sidebar nav a { text-align: center; padding: 14px 0; }
  .sidebar nav a .nav-icon { font-size: 22px; }
  .main-content { margin-left: 64px; padding: 16px; }
  .provider-info-grid { grid-template-columns: 1fr 1fr; }
  .modal-fullscreen { width: 100%; max-height: 100vh; border-radius: 0; }
  .modal-bar { border-radius: 0; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Live activity feed ─────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.feed-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #F8FAFC; }
.feed-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.feed-dot-requested { background: #3B82F6; }
.feed-dot-accepted  { background: #10B981; }
.feed-dot-started   { background: #8B5CF6; }
.feed-dot-completed { background: #6B7280; }
.feed-dot-cancelled { background: #EF4444; }
.feed-content { flex: 1; }
.feed-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feed-meta  { font-size: 12px; color: var(--text-muted); }
.feed-time  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-top: 3px; }
.feed-empty { text-align: center; padding: 48px; color: var(--text-muted); }

/* ── Customer modal ─────────────────────────────────────────────────────────── */
.customer-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.customer-info-row:last-child { border-bottom: none; }
.booking-history-item { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.booking-history-item:hover { background: #f8fafc; }

/* ── Provider history in modal ────────────────────────────────────────────────────── */
.provider-history-item { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.provider-history-item:last-child { border-bottom: none; }
.provider-history-item:hover { background: #f8fafc; }

/* ── Provider modal tab bar ───────────────────────────────────────────────────────── */
.provider-tab {
  padding: 11px 22px; border: none; background: transparent; font-size: 13px;
  font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s; white-space: nowrap;
  font-family: inherit;
}
.provider-tab:hover { color: #374151; }
.provider-tab-active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Data tables with .data-table class ─────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #F8FAFC; font-weight: 700; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { font-size: 13.5px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFC; }

/* ── Skin Labels ─────────────────────────────────────────────────────────── */
.labels-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.labels-hint { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin: 2px 0 8px; }
.labels-counts { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.labels-progress { width: 140px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.labels-progress i { display: block; height: 100%; background: var(--success); }
.labels-filter { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); font-size: 13px; color: var(--text); }
.labels-scope { margin-left: auto; display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.labels-scope button { border: 0; background: var(--card-bg); padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--text-muted); }
.labels-scope button.active { background: var(--text); color: #fff; }
.labels-layout { display: grid; grid-template-columns: 116px 1fr; gap: 14px; }
.labels-queue { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 2px; }
.label-thumb { position: relative; aspect-ratio: 4 / 5; flex-shrink: 0; border: 2px solid transparent; border-radius: 10px; padding: 0; background: var(--card-bg); cursor: pointer; overflow: hidden; box-shadow: var(--shadow-sm); }
.label-thumb.active { border-color: var(--primary); }
.label-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: #e9e4dc; }
.label-thumb-meta { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 3px; flex-wrap: wrap; }
.label-thumb-meta b, .label-thumb-meta em { font: 600 10px/1.6 inherit; font-style: normal; padding: 0 5px; border-radius: 4px; background: rgba(17,17,17,0.72); color: #fff; }
.label-thumb-meta .src-scan { background: var(--primary); }
.labels-editor { background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 12px; min-width: 0; }
.labels-empty { padding: 64px 24px; text-align: center; color: var(--text-muted); }
.labels-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.label-tools { display: flex; gap: 6px; }
.label-tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.label-tool i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.label-tool.active { border-color: var(--text); background: var(--text); color: #fff; }
.label-tool.active kbd { color: #ddd; border-color: #555; background: transparent; }
kbd { font: 600 10px/1.4 ui-monospace, monospace; color: var(--text-muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: #fff; }
.label-slider { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.label-slider input { width: 72px; }
.label-iconbar { display: flex; gap: 4px; margin-left: auto; }
.label-iconbar .btn { min-width: 34px; padding: 6px 8px; }
.label-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.labels-body { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.labels-stage { position: relative; overflow: hidden; background: #0d0d0f; border-radius: 10px; height: calc(100vh - 230px); min-height: 480px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: crosshair; user-select: none; }
.labels-canvas { position: relative; height: 100%; transform-origin: center center; }
.labels-canvas img { height: 100%; display: block; pointer-events: none; }
.labels-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.labels-zoom-chip { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,0.55); padding: 2px 8px; border-radius: 999px; }
.labels-side { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 230px); overflow-y: auto; }
.labels-side section { padding: 8px 0; border-bottom: 1px solid var(--border); }
.labels-side h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.labels-meta { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 6px; word-break: break-word; }
.labels-meta a { color: var(--primary-dark); }
.label-suggest { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.label-markrow { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.label-markrow i { width: 10px; height: 10px; border-radius: 50%; }
.label-markrow button { border: 0; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; }
.label-markrow button:disabled { opacity: 0.35; cursor: default; }
.label-grade { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px; font-size: 13px; border-radius: 6px; }
.label-grade span { display: inline-flex; gap: 6px; align-items: center; }
.label-grade.picked { background: var(--primary-light); }
.label-grade div { display: flex; gap: 4px; }
.label-grade button { width: 28px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 12px; }
.label-grade button.on { background: var(--text); border-color: var(--text); color: #fff; }
.label-skip { display: flex; flex-direction: column; gap: 6px; }
.label-skip select { padding: 6px; border-radius: 6px; border: 1px solid var(--border); }
.labels-actions { display: flex; gap: 8px; padding-top: 10px; position: sticky; bottom: 0; background: var(--card-bg); }
.labels-actions .btn { flex: 1; }
.labels-help { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.labels-help.hidden { display: none; }
.labels-help-card { background: #fff; border-radius: 16px; padding: 24px; max-width: 560px; box-shadow: var(--shadow-md); }
.labels-help-card h3 { margin-top: 0; }
.labels-help-card td { padding: 5px 8px; font-size: 13px; vertical-align: top; }
.labels-help-card td:first-child { white-space: nowrap; }
@media (max-width: 1100px) {
  .labels-body { grid-template-columns: 1fr; }
  .labels-stage { height: 60vh; }
  .labels-side { max-height: none; }
}
