/* ═══════════════════════════════════════════════════════
   RATO Review Portal — Clean Enterprise Redesign 2026
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Brand */
  --rato-navy: #1e1852;
  --rato-navy-soft: #2d2477;
  --rato-red: #e5203a;
  --rato-red-soft: #f04358;

  /* Neutrals */
  --gray-50: #fafbfc;
  --gray-100: #f4f5f7;
  --gray-200: #e8eaef;
  --gray-300: #d1d5dc;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0a0e17;

  /* Surfaces */
  --bg: #f7f8fa;
  --bg-2: #f0f2f5;
  --surface: #ffffff;
  --surface-alt: var(--gray-50);
  --surface-strong: #ffffff;
  --line: var(--gray-200);
  --line-strong: var(--gray-300);

  /* Ink */
  --ink-950: var(--gray-950);
  --ink-900: var(--gray-900);
  --ink-700: var(--gray-700);
  --ink-600: var(--gray-600);
  --ink-500: var(--gray-500);

  /* Semantic */
  --confirmed: #059669;
  --confirmed-bg: #ecfdf5;
  --rejected: #dc2626;
  --rejected-bg: #fef2f2;
  --unsure: #d97706;
  --unsure-bg: #fffbeb;
  --pending: #6366f1;
  --pending-bg: #eef2ff;
  --other-bg: var(--gray-100);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.03);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.app-body,
.login-body {
  position: relative;
}

/* Subtle background blobs — kept but refined */
.app-bg,
.login-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

.app-bg-top,
.login-bg-top {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: var(--rato-red);
}

.app-bg-bottom,
.login-bg-bottom {
  width: 700px;
  height: 700px;
  left: -250px;
  bottom: -300px;
  background: var(--rato-navy);
}


/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar,
.container,
.footer,
.login-shell {
  position: relative;
  z-index: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 60px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  width: auto;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-950);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--ink-500);
  line-height: 1.3;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-profile-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-profile-select {
  min-width: 240px;
  width: auto;
  max-width: 320px;
  min-height: 36px;
  padding-right: 34px;
  font-size: 0.8rem;
}

.nav-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(244, 246, 251, 0.94);
  border: 1px solid var(--line);
}

.nav-view-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-600);
  font-size: 0.77rem;
  font-weight: 700;
  transition: all 160ms ease;
}

.nav-view-pill.active {
  color: var(--rato-navy);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--line);
}

.nav-user-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-user-copy strong {
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
}

.nav-user-email-role {
  font-size: 0.6875rem;
  color: var(--ink-500);
  line-height: 1.3;
}

.nav-role,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-role.manager {
  color: var(--rato-navy);
  background: rgba(30, 24, 82, 0.08);
}

.nav-role.sales {
  color: var(--rato-red);
  background: rgba(229, 32, 58, 0.08);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-600);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 150ms var(--ease);
}

.nav-link:hover {
  color: var(--rato-navy);
  border-color: var(--line-strong);
  background: var(--gray-50);
}


/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  flex: 1;
}

.footer {
  margin-top: auto;
  padding: 0 24px 20px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-500);
  font-size: 0.75rem;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}


/* ═══════════════════════════════════════
   TYPOGRAPHY & PAGES
   ═══════════════════════════════════════ */
.dashboard,
.project-detail,
.item-detail,
.import-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard > h2,
.project-detail > h2,
.item-detail h2,
.import-page > h2 {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-950);
}

.subtitle,
.project-desc,
.result-count,
.empty-state,
.dev-warning,
.item-desc,
.item-customer,
.item-project {
  color: var(--ink-600);
}

.subtitle {
  font-size: 0.9375rem;
  max-width: 72ch;
  line-height: 1.6;
}


/* ═══════════════════════════════════════
   SALES PANEL
   ═══════════════════════════════════════ */
.sales-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sales-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sales-panel-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-950);
  margin: 0;
}
.sales-panel-updated {
  font-size: 0.75rem;
  color: var(--ink-400);
}

/* Period tiles */
.sales-period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.sales-period-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  text-align: center;
}
.sales-period-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
}
.sales-period-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rato-navy);
  line-height: 1.1;
}
.sales-period-sub {
  font-size: 0.6875rem;
  color: var(--ink-400);
}
.sales-period-range {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-500);
  margin-top: 4px;
  font-family: monospace;
  letter-spacing: 0.02em;
}
.sales-change {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
}
.change-up {
  color: #059669;
  background: #ecfdf5;
}
.change-down {
  color: #dc2626;
  background: #fef2f2;
}

/* Body: ranking + top customers side by side */
/* ── Closed Month / Quarter Sections ── */
.sales-closed-section {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.sales-closed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sales-closed-header h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  margin: 0;
}
.sales-closed-badge {
  background: #16a34a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sales-closed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.sales-closed-stat {
  text-align: center;
}
.sales-closed-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-950);
}
.sales-closed-label {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.sales-quarter-table {
  font-size: 0.85rem;
}
.sales-quarter-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sales-quarter-table td {
  vertical-align: top;
  line-height: 1.4;
}
.sales-quarter-table .row-total td {
  border-top: 2px solid var(--rato-navy);
  padding-top: 8px;
}
.text-muted {
  color: var(--gray-500, #6b7280);
}

.sales-panel-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.sales-panel-body h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin: 0 0 12px;
}

/* Salesperson ranking */
.sales-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sales-ranking-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.sales-rank-code {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rato-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-rank-bar-wrap {
  height: 20px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}
.sales-rank-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rato-navy), var(--rato-navy-soft));
  border-radius: 4px;
  min-width: 4px;
  transition: width 600ms ease;
}
.sales-rank-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-800);
  min-width: 60px;
  text-align: right;
}

/* Top customers */
.sales-customer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sales-customer-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8125rem;
}
.sales-customer-list li:last-child { border-bottom: none; }
.sales-customer-name {
  color: var(--ink-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.sales-customer-value {
  font-weight: 700;
  color: var(--rato-navy);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sales-period-grid { grid-template-columns: 1fr; }
  .sales-closed-grid { grid-template-columns: repeat(2, 1fr); }
  .sales-panel-body { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card,
.stat-card,
.detail-main,
.response-form-card,
.responses-history,
.login-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Remove the old glassmorphism overlay */
.card::before,
.stat-card::before,
.detail-main::before,
.response-form-card::before,
.responses-history::before,
.login-card::before {
  display: none;
}

.card,
.detail-main,
.response-form-card,
.responses-history {
  padding: 24px;
}


/* ═══════════════════════════════════════
   STATS GRID (Dashboard project cards)
   ═══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.stat-card:hover,
.item-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.stat-card-active {
  border-color: var(--rato-navy-soft);
  box-shadow: 0 0 0 2px rgba(36, 28, 103, 0.08), var(--shadow-md);
}

.gps-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gps-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.gps-metrics-grid .stat {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.gps-list-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.gps-vehicles-list,
.gps-weekend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.gps-vehicles-list li,
.gps-weekend-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 0.875rem;
}

.gps-vehicle-meta {
  color: var(--ink-500);
  font-size: 0.75rem;
}

.stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-header h3,
.section-title,
.response-form-card h3,
.responses-history h3,
.detail-section h4,
.import-page h2 {
  color: var(--ink-950);
}

.stat-header h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.stat-header h3 a,
.data-table a,
.breadcrumb a,
.item-card {
  color: inherit;
  text-decoration: none;
}

.stat-header h3 a:hover,
.data-table a:hover,
.breadcrumb a:hover {
  color: var(--rato-navy-soft);
}

.stat-numbers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.stat-numbers-crm-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  text-align: center;
  min-width: 0;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-value.pending { color: var(--pending); }
.stat-value.confirmed { color: var(--confirmed); }
.stat-value.rejected { color: var(--rejected); }
.stat-value.unsure { color: var(--unsure); }

.stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-500);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rato-navy) 0%, var(--rato-red) 100%);
  transition: width 600ms var(--ease);
}

.progress-text {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-500);
}


/* ═══════════════════════════════════════
   TAGS & BADGES
   ═══════════════════════════════════════ */
.tag-konwersja_ofert {
  background: rgba(30, 24, 82, 0.08);
  color: var(--rato-navy);
}

.tag-zaniedbania {
  background: rgba(229, 32, 58, 0.08);
  color: var(--rato-red);
}

.tag-crm {
  background: var(--confirmed-bg);
  color: var(--confirmed);
}

.tag-sales {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-gps {
  background: #e3f2fd;
  color: #1565c0;
}
.tag-gps-weekend {
  background: #fff3e0;
  color: #e65100;
}
.tag-gps-holiday {
  background: #fce4ec;
  color: #c62828;
}

.stat-card-gps .stat-header h3 a {
  color: #1565c0;
}
.progress-fill-gps {
  background: linear-gradient(90deg, #ef5350, #e53935) !important;
}
/* ── GPS Detail Page ── */
.gps-detail-page { max-width: 1100px; }
.gps-detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.gps-detail-header h2 { margin: 0; font-size: 1.5rem; color: var(--ink-900); }
.gps-detail-period { color: var(--ink-500); font-size: 0.9rem; margin: 4px 0 0; }
.gps-detail-updated {
  font-size: 0.8rem; color: var(--ink-500); background: var(--gray-100);
  padding: 4px 10px; border-radius: var(--radius-md); white-space: nowrap;
}

/* Summary Cards Row */
.gps-summary-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
}
.gps-summary-card {
  background: var(--surface); border-radius: var(--radius-lg, 12px);
  padding: 20px; display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--line); transition: box-shadow 0.15s;
}
.gps-summary-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.gps-summary-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.gps-summary-data { display: flex; flex-direction: column; }
.gps-summary-value { font-size: 1.5rem; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.gps-summary-label { font-size: 0.8rem; color: var(--ink-500); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.gps-summary-sub { font-size: 0.78rem; color: var(--ink-500); margin-top: 4px; }
.gps-summary-total { border-left: 3px solid var(--rato-navy); }
.gps-summary-work { border-left: 3px solid #2196f3; }
.gps-summary-work .gps-summary-value { color: #1565c0; }
.gps-summary-private { border-left: 3px solid #e53935; }
.gps-summary-private .gps-summary-value { color: #e53935; }
.gps-summary-ok { border-left: 3px solid #059669; }
.gps-summary-ok .gps-summary-value { color: #059669; }
.gps-summary-alert { border-left: 3px solid #e53935; background: #fef2f2; }
.gps-summary-alert .gps-summary-value { color: #e53935; }

/* Sections */
.gps-detail-section {
  background: var(--surface); border-radius: var(--radius-lg, 12px);
  padding: 24px; margin-bottom: 24px; border: 1px solid var(--line);
}
.gps-detail-section h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--ink-900); }
.gps-detail-section-desc { color: var(--ink-500); font-size: 0.85rem; margin: 0 0 16px; }

/* Drivers Table (custom grid layout) */
.gps-drivers-table { margin-top: 16px; }
.gps-drivers-header, .gps-drivers-row {
  display: grid;
  grid-template-columns: 160px 100px 80px 80px 80px 60px 1fr;
  gap: 8px; align-items: center; padding: 10px 12px;
}
.gps-drivers-header {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-500); font-weight: 600;
  border-bottom: 2px solid var(--line); padding-bottom: 8px;
}
.gps-drivers-row {
  border-bottom: 1px solid var(--gray-100); font-size: 0.88rem;
  transition: background 0.1s;
}
.gps-drivers-row:hover { background: var(--gray-50); }
.gps-drivers-row:last-child { border-bottom: none; }
.gps-drivers-row-warn { background: #fef2f2; }
.gps-drivers-row-warn:hover { background: #fee2e2; }
.gps-driver-name { font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gps-driver-reg { color: var(--ink-500); font-size: 0.82rem; font-family: monospace; }
.gps-col-right { text-align: right; }
.gps-col-bar { min-width: 120px; }
.gps-val-private { color: #e53935; font-weight: 500; }
.gps-pct-warn { color: #e53935; font-weight: 600; }

/* Stacked Bar */
.gps-stacked-bar {
  display: flex; height: 16px; border-radius: 8px; overflow: hidden;
  background: var(--gray-100);
}
.gps-bar-work {
  background: linear-gradient(90deg, #42a5f5, #1e88e5);
  border-radius: 8px 0 0 8px; min-width: 0;
}
.gps-bar-priv {
  background: linear-gradient(90deg, #ef5350, #e53935);
  min-width: 0;
}
.gps-bar-priv:last-child { border-radius: 0 8px 8px 0; }

/* Legend */
.gps-legend {
  display: flex; gap: 20px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.gps-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-500); }
.gps-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gps-legend-work { background: #1e88e5; }
.gps-legend-priv { background: #e53935; }

/* Weekend Table */
.gps-weekend-table th.col-right,
.gps-weekend-table td.col-right { text-align: right; }
.gps-weekend-table .text-muted { color: var(--ink-500); font-size: 0.85rem; }

.gps-empty-weekend {
  text-align: center; padding: 32px; color: var(--ink-500); font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .gps-summary-cards { grid-template-columns: repeat(2, 1fr); }
  .gps-drivers-header, .gps-drivers-row {
    grid-template-columns: 120px 80px 65px 65px 65px 50px 1fr;
    font-size: 0.82rem;
  }
}
@media (max-width: 600px) {
  .gps-summary-cards { grid-template-columns: 1fr; }
  .gps-drivers-header, .gps-drivers-row {
    grid-template-columns: 1fr 70px 55px;
  }
  .gps-drivers-header span:nth-child(2),
  .gps-drivers-header span:nth-child(3),
  .gps-drivers-header span:nth-child(6),
  .gps-drivers-header span:nth-child(7),
  .gps-drivers-row span:nth-child(2),
  .gps-drivers-row span:nth-child(3),
  .gps-drivers-row span:nth-child(6),
  .gps-drivers-row .gps-col-bar { display: none; }
}

/* Legacy GPS (keep for tile) */
.gps-bar-private { background: linear-gradient(90deg, #ef5350, #e53935) !important; }
.gps-has-private { background: #fff8f7; }
.gps-pct { font-size: 0.8rem; color: var(--ink-500); min-width: 3rem; text-align: right; }

.tag-other {
  background: var(--gray-100);
  color: var(--ink-600);
}

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.badge-pending { background: var(--pending-bg); color: var(--pending); }
.badge-confirmed { background: var(--confirmed-bg); color: var(--confirmed); }
.badge-rejected { background: var(--rejected-bg); color: var(--rejected); }
.badge-unsure { background: var(--unsure-bg); color: var(--unsure); }
.badge-other { background: var(--gray-100); color: var(--ink-500); }

.th-sort {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.th-sort:hover { color: var(--primary); }
.th-sort.active { color: var(--primary); }


/* ═══════════════════════════════════════
   DATA TABLES
   ═══════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.data-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
  color: var(--ink-900);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table tbody tr.row-link {
  cursor: pointer;
}

.data-table tbody tr.row-link td {
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.data-table.compact { font-size: 0.8125rem; }
.data-table.compact th,
.data-table.compact td { padding: 8px 12px; }

/* Offers table – prevent horizontal scrolling */
.offers-table { table-layout: fixed; width: 100%; }
.offers-table th,
.offers-table td { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; }
.offers-table .col-code { width: 3.5em; }
.offers-table .col-sales { width: 9em; }
.offers-table .col-offer { width: 7em; }
.offers-table .col-date { width: 6em; }
.offers-table .col-customer { width: auto; }
.offers-table .col-num { width: 3.5em; text-align: right; }
.offers-table .col-value { width: 6em; text-align: right; }
.offers-table .col-status { width: 7em; }
.offers-table .col-wf { width: 6.5em; }
.offers-table .col-reason { width: 7em; }
.offers-table .col-comp { width: 6.5em; }
.offers-table .col-return { width: 4em; }
.cell-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.cell-nowrap { white-space: nowrap; }

/* Offers toolbar – search, filter, sort */
.offers-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.offers-search {
  flex: 1 1 180px;
  min-width: 140px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  background: var(--surface);
  color: var(--ink-900);
  outline: none;
  transition: border-color 150ms var(--ease);
}
.offers-search:focus { border-color: var(--rato-navy-soft); }
.offers-search::placeholder { color: var(--ink-400); }
.offers-filter {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
}
.offers-sort-btn {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}
.offers-sort-btn:hover {
  background: var(--gray-50);
  border-color: var(--rato-navy-soft);
}

.row-pending td:first-child { box-shadow: inset 3px 0 0 var(--pending); }
.row-confirmed td:first-child { box-shadow: inset 3px 0 0 var(--confirmed); }
.row-rejected td:first-child { box-shadow: inset 3px 0 0 var(--rejected); }
.row-unsure td:first-child { box-shadow: inset 3px 0 0 var(--unsure); }

.row-fully-realized {
  opacity: 0.6;
}

.row-fully-realized td {
  color: var(--ink-400);
}

.cell-muted {
  text-align: center;
  color: var(--ink-300) !important;
}

.suggestion-cell {
  max-width: 360px;
  color: var(--ink-600);
}


/* ═══════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════ */
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dashboard-sales {
  gap: 22px;
}

.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  padding: 24px;
}

.sales-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sales-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.sales-kpi strong {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sales-kpi span {
  color: var(--ink-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sales-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sales-project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sales-project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.sales-project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sales-project-card h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.sales-project-card p,
.sales-project-link,
.sales-project-metrics {
  color: var(--ink-600);
}

.sales-project-link {
  font-size: 0.82rem;
  font-weight: 700;
}

.sales-project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   ITEM CARDS (sales queue)
   ═══════════════════════════════════════ */
.items-list {
  display: grid;
  gap: 12px;
}

.item-card {
  display: block;
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.item-card::after {
  display: none;
}

.item-pending { border-left: 3px solid var(--pending); }
.item-answered { border-left: 3px solid var(--confirmed); }

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

.item-project {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.item-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.item-customer {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.item-desc {
  font-size: 0.8125rem;
  max-width: 72ch;
  color: var(--ink-600);
}


/* ═══════════════════════════════════════
   BREADCRUMB & PROJECT META
   ═══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-500);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


/* ═══════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════ */
.filters {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════
   ITEM DETAIL LAYOUT
   ═══════════════════════════════════════ */
.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.detail-section + .detail-section {
  margin-top: 20px;
}

.detail-section h4,
.responses-history h3,
.response-form-card h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  color: var(--ink-500);
  font-weight: 500;
  font-size: 0.8125rem;
}

.detail-value {
  color: var(--ink-900);
  font-size: 0.875rem;
}

.metadata-grid {
  display: grid;
  gap: 2px;
}

.suggestion-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--line);
  color: var(--ink-900);
  font-size: 0.875rem;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ═══════════════════════════════════════
   EXPANDABLE TABLE CELLS
   ═══════════════════════════════════════ */
.crm-cell-expandable {
  cursor: pointer;
  display: block;
  max-width: 280px;
  line-height: 1.4;
  color: var(--ink-900);
}

.crm-cell-expandable .crm-cell-full {
  display: none;
}

.crm-cell-expandable .crm-cell-truncated {
  color: var(--ink-700);
}

.crm-cell-expandable .crm-cell-truncated::after {
  content: ' ▸';
  font-size: 0.7em;
  color: var(--ink-400, var(--gray-400));
}

.crm-cell-expandable.expanded .crm-cell-truncated {
  display: none;
}

.crm-cell-expandable.expanded .crm-cell-full {
  display: block;
  white-space: normal;
  color: var(--ink-900);
}


/* ═══════════════════════════════════════
   EXPANDABLE TABLE ROWS (offers detail)
   ═══════════════════════════════════════ */
.row-clickable {
  cursor: pointer;
  transition: background 120ms var(--ease);
}

.row-clickable:hover {
  background: var(--gray-50) !important;
}

.row-clickable td:first-child::before {
  content: '▸ ';
  font-size: 0.7em;
  color: var(--gray-400);
}

.detail-row-expand {
  display: none;
}

.detail-row-expand.open {
  display: table-row;
}

.detail-row-expand td {
  padding: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--gray-50);
}

.detail-expand-content {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.detail-expand-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.8125rem;
}

.detail-expand-label {
  color: var(--ink-500);
  font-weight: 500;
  min-width: 100px;
  flex-shrink: 0;
}

.detail-expand-value {
  color: var(--ink-900);
}

@media (max-width: 760px) {
  .detail-expand-content {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════
   MANAGER COMMENT PANEL
   ═══════════════════════════════════════ */
tr[data-row-id] {
  cursor: pointer;
}

tr[data-row-id]:hover {
  background: var(--gray-50) !important;
}

tr.has-comment {
  background: rgba(30, 24, 82, 0.03) !important;
}

tr.has-comment td:first-child::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rato-navy);
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Row with reply highlight ── */
tr.has-reply {
  background: rgba(30, 24, 82, 0.04) !important;
}

/* ── Inline comment badge row ── */
.comment-badge-row td {
  padding: 0 16px 6px !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(30, 24, 82, 0.02) !important;
}

.comment-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 24, 82, 0.05);
  border-left: 3px solid var(--rato-navy);
  font-size: 0.8rem;
  color: var(--ink-700);
  line-height: 1.4;
}

.comment-badge-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rato-navy);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.comment-badge-text {
  padding-top: 3px;
  white-space: pre-wrap;
  word-break: break-word;
}

tr.row-active {
  background: rgba(30, 24, 82, 0.06) !important;
}

.mgr-comment-panel td {
  padding: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--gray-50) !important;
}

.comment-panel-inner {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Other managers' comments list ── */
.comment-others-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-others-list:empty {
  display: none;
}

.comment-other-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 24, 82, 0.03);
  border-left: 3px solid var(--gray-300);
}

.comment-other-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-500);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-other-content {
  flex: 1;
  font-size: 0.8rem;
  color: var(--ink-700);
}

.comment-other-content strong {
  color: var(--ink-900);
}

.comment-other-time {
  color: var(--ink-400);
  font-size: 0.7rem;
}

.comment-other-text {
  margin-top: 2px;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-other-reply {
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.06);
  border-left: 2px solid var(--confirmed);
  border-radius: 0 4px 4px 0;
  color: var(--ink-600);
}

.comment-other-reply-label {
  font-weight: 600;
  color: var(--confirmed);
}

.comment-my-reply {
  margin: 8px 0;
}

.comment-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-panel-header strong {
  font-size: 0.8125rem;
  color: var(--rato-navy);
}

.comment-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ink-500);
  padding: 0 4px;
  line-height: 1;
}

.comment-close:hover {
  color: var(--ink-900);
}

.comment-textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-900);
  resize: vertical;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--rato-navy-soft);
  box-shadow: 0 0 0 3px rgba(30, 24, 82, 0.1);
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-status {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.comment-delete {
  color: var(--rejected) !important;
  border-color: rgba(220, 38, 38, 0.15) !important;
}

/* ── Sales reply in comment panel ── */
.sales-reply-section {
  margin-top: 4px;
  padding: 10px 12px;
  background: rgba(30, 24, 82, 0.04);
  border-left: 3px solid var(--rato-navy-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sales-reply-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rato-navy);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.sales-reply-header svg {
  flex-shrink: 0;
}

.sales-reply-body {
  font-size: 0.8125rem;
  color: var(--ink-900);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.sales-reply-meta {
  font-size: 0.6875rem;
  color: var(--ink-500);
  margin-top: 4px;
}

/* ── Reply indicator on inline badge ── */
.comment-badge-reply {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 5px 8px 5px 10px;
  background: rgba(30, 24, 82, 0.06);
  border-left: 2px solid var(--rato-navy-soft);
  font-size: 0.75rem;
  color: var(--ink-800);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 0 4px 4px 0;
}

.comment-badge-reply::before {
  content: '↳ ';
  color: var(--rato-navy-soft);
  font-weight: 600;
}


/* ═══════════════════════════════════════
   NOTIFICATION BELL
   ═══════════════════════════════════════ */
.notif-bell {
  position: relative;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 120ms var(--ease);
  display: flex;
  align-items: center;
}

.notif-bell:hover {
  background: rgba(255,255,255,0.15);
}

.notif-bell-icon {
  color: rgba(255,255,255,0.85);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rato-red);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--rato-navy);
}

.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  color: var(--ink-900);
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--rato-navy);
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.notif-mark-all:hover {
  background: rgba(30, 24, 82, 0.06);
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 120ms;
}

.notif-item:hover {
  background: var(--gray-50);
}

.notif-item.unread {
  background: rgba(30, 24, 82, 0.04);
  border-left: 3px solid var(--rato-navy);
}

.notif-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.notif-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rato-navy);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.notif-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-800);
}

.notif-time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--ink-400);
  white-space: nowrap;
}

.notif-item-body {
  font-size: 0.8rem;
  color: var(--ink-700);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-item-project {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--ink-400);
}

.notif-loading, .notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-400);
}

@media (max-width: 560px) {
  .notif-dropdown {
    width: calc(100vw - 24px);
    right: -12px;
  }
}


/* ═══════════════════════════════════════
   CRM CARD COMMENT STAT
   ═══════════════════════════════════════ */
.stat-comments-unread .stat-value {
  color: var(--rato-red);
}

.stat-comment-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.stat-comment-link:hover {
  opacity: 0.8;
}

/* ═══════════════════════════════════════
   MY COMMENTS PAGE
   ═══════════════════════════════════════ */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow 200ms;
}

.comment-card:hover {
  box-shadow: var(--shadow-sm);
}

.comment-card.has-reply {
  border-left: 3px solid var(--confirmed);
}

.comment-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-card-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rato-navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-card-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-900);
}

.comment-card-time {
  font-size: 0.75rem;
  color: var(--ink-400);
}

.comment-card-project {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(30, 24, 82, 0.06);
  color: var(--rato-navy);
  font-weight: 500;
}

.comment-card-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.ctx-chip {
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--gray-100);
  font-size: 0.75rem;
  color: var(--ink-600);
  font-weight: 500;
}

.ctx-client {
  background: rgba(30, 24, 82, 0.05);
  color: var(--rato-navy);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctx-entry {
  background: rgba(16, 185, 129, 0.08);
  color: var(--confirmed);
}

.comment-card-uwagi {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: 0.8rem;
  color: var(--ink-600);
  line-height: 1.4;
  margin-bottom: 8px;
  border-left: 2px solid var(--gray-200);
}

.comment-card-body {
  font-size: 0.875rem;
  color: var(--ink-800);
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(30, 24, 82, 0.03);
  border-left: 3px solid var(--rato-navy);
  margin-bottom: 8px;
}

.comment-card-reply {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--confirmed);
  font-size: 0.8125rem;
  color: var(--ink-700);
  line-height: 1.4;
}

.comment-card-reply-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--confirmed);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-card-reply-content {
  flex: 1;
}

.comment-card-reply-time {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--ink-400);
}

.comment-permalink {
  text-decoration: none;
  font-size: 0.75rem;
  opacity: 0.4;
  transition: opacity 0.15s;
  margin-left: 4px;
}

.comment-card:hover .comment-permalink {
  opacity: 0.8;
}

.comment-card-awaiting {
  font-size: 0.75rem;
  color: var(--ink-400);
  font-style: italic;
  padding: 4px 0;
}

.comment-reply-form {
  margin: 0;
}

.comment-reply-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-reply-input {
  flex: 1;
  font-size: 0.8125rem;
  padding: 6px 10px;
}

@media (max-width: 560px) {
  .comment-card-project { margin-left: 0; }
  .comment-reply-row { flex-direction: column; align-items: stretch; }
}


/* ═══════════════════════════════════════
   DECISION BUTTONS (response form)
   ═══════════════════════════════════════ */
.decision-buttons {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.decision-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.decision-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  cursor: pointer;
  transition: all 150ms var(--ease);
}

.decision-label:hover {
  transform: none;
  border-color: var(--line-strong);
  background: var(--gray-50);
}

.decision-option input:checked + .decision-label.confirmed {
  border-color: var(--confirmed);
  background: var(--confirmed-bg);
  color: var(--confirmed);
}

.decision-option input:checked + .decision-label.rejected {
  border-color: var(--rejected);
  background: var(--rejected-bg);
  color: var(--rejected);
}

.decision-option input:checked + .decision-label.unsure {
  border-color: var(--unsure);
  background: var(--unsure-bg);
  color: var(--unsure);
}


/* ═══════════════════════════════════════
   RESPONSES HISTORY
   ═══════════════════════════════════════ */
.responses-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.response-entry {
  padding: 14px 0 0;
  border-top: 1px solid var(--gray-100);
}

.response-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

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

.response-reason,
.response-comment {
  font-size: 0.875rem;
  color: var(--ink-700);
  margin-top: 4px;
}

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

.offer-analytics-form {
  display: grid;
  gap: 4px;
}

.response-time {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-500);
}


/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink-900);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rato-navy-soft);
  box-shadow: 0 0 0 3px rgba(30, 24, 82, 0.1);
}

.form-hint { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ink-400); }
.conditional-fields { transition: opacity 150ms var(--ease); }

.nav-profile-switch .nav-profile-select {
  width: min(320px, 100%);
}

.workspace-switch-form .workspace-profile-select {
  width: 100%;
}


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 150ms var(--ease);
  box-shadow: var(--shadow-xs);
}

.btn:hover {
  transform: none;
  border-color: var(--line-strong);
  background: var(--gray-50);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  border: none;
  background: var(--rato-navy);
  color: #fff;
  box-shadow: 0 1px 3px rgba(30, 24, 82, 0.3);
}

.btn-primary:hover {
  background: var(--rato-navy-soft);
  box-shadow: 0 2px 6px rgba(30, 24, 82, 0.35);
  filter: none;
}

.btn-secondary {
  background: var(--gray-50);
}

.btn-dev {
  width: 100%;
  background: var(--rejected-bg);
  border-color: rgba(220, 38, 38, 0.15);
  color: var(--rejected);
}

.btn-microsoft {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-900);
  margin-bottom: 16px;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.btn-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}


/* ═══════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.alert-error {
  border-color: rgba(220, 38, 38, 0.15);
  background: var(--rejected-bg);
  color: var(--rejected);
}


/* ═══════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: 100%;
  max-width: 460px;
}

.login-container {
  width: 100%;
}

.login-card {
  padding: 32px;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.login-header-minimal {
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: rgba(30, 24, 82, 0.08);
  color: var(--rato-navy);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-header h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-950);
}

.login-header .subtitle {
  margin-bottom: 0;
  max-width: 52ch;
}

.login-points {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.login-point {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.login-point strong {
  font-size: 0.8125rem;
  color: var(--ink-900);
}

.login-point span {
  font-size: 0.8125rem;
  color: var(--ink-600);
}

.dev-login {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dev-login h3 {
  font-size: 0.8125rem;
  margin-bottom: 4px;
}


/* ═══════════════════════════════════════
   IMPORT PAGE
   ═══════════════════════════════════════ */
.import-form {
  max-width: 720px;
}

.import-help {
  color: var(--ink-600);
}

.import-help summary {
  cursor: pointer;
  font-weight: 600;
}

.import-success {
  text-align: center;
}

.import-success .card {
  display: inline-block;
  min-width: min(100%, 420px);
  text-align: left;
  margin-top: 16px;
}


/* ═══════════════════════════════════════
   EMPTY & ERROR STATES
   ═══════════════════════════════════════ */
.empty-state {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  color: var(--ink-500);
  font-size: 0.875rem;
}

.error-card {
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
}

.error-card h1 {
  margin-bottom: 8px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}


/* ═══════════════════════════════════════
   RESPONSIVE — Core
   ═══════════════════════════════════════ */
@media (max-width: 1080px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stat-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .navbar { padding: 0; }
  .nav-container { padding: 0 16px; height: 52px; }
  .container { padding: 20px 16px 32px; }
  .footer { padding: 0 16px 16px; }
  .nav-user-email-role { display: none; }
  .footer-inner { flex-direction: column; }

  .project-meta,
  .item-header,
  .response-header,
  .item-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .login-card { padding: 24px; }
  .login-header h1 { max-width: none; }
}

@media (max-width: 560px) {
  .nav-user { display: none; }

  .stats-grid,
  .items-list {
    grid-template-columns: 1fr;
  }

  .stat-numbers {
    grid-template-columns: 1fr 1fr;
  }

  .filter-form,
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-sm,
  .nav-link {
    width: 100%;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-end;
  }
}


/* ═══════════════════════════════════════
   MISC UTILITY CLASSES
   ═══════════════════════════════════════ */
.mini-sep {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 4px 0;
}

.suggestions-section {
  margin-top: 8px;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--ink-700);
}

.summary-chip.confirmed {
  background: var(--confirmed-bg);
  color: var(--confirmed);
}

.summary-chip.rejected {
  background: var(--rejected-bg);
  color: var(--rejected);
}


/* ═══════════════════════════════════════
   CRM REPORT — Mini cards on list
   ═══════════════════════════════════════ */
.crm-card-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
  color: var(--ink-700);
  font-size: 0.8125rem;
}

.crm-card-mini span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--gray-100);
  font-size: 0.75rem;
}


/* ═══════════════════════════════════════
   CRM REPORT — Project detail
   ═══════════════════════════════════════ */
.project-detail-crm {
  display: grid;
  gap: 20px;
}

.crm-project,
.crm-section {
  display: grid;
  gap: 16px;
}

.crm-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--rato-navy);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
}

.crm-hero h3,
.crm-section-head h3,
.crm-person-card h4,
.crm-day-head h5 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

.crm-hero-copy {
  display: grid;
  gap: 12px;
}

.crm-hero-copy p,
.crm-section-head p,
.crm-person-card p,
.crm-day-head p {
  color: inherit;
  opacity: 0.8;
  font-size: 0.875rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crm-hero .section-kicker {
  width: fit-content;
}

.crm-hero-stats,
.crm-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.crm-metric-grid-person {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.crm-metric-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.crm-section .crm-metric-card,
.crm-person-section .crm-metric-card {
  background: var(--gray-50);
  border: 1px solid var(--line);
}

.crm-metric-card.accent {
  background: rgba(229, 32, 58, 0.06);
  border-color: rgba(229, 32, 58, 0.12);
}

.crm-metric-label {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.7;
}

.crm-metric-value {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
}

.crm-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
}

.crm-jump-nav a,
.crm-back-link,
.crm-person-card-link {
  text-decoration: none;
}

.crm-jump-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  background: var(--gray-50);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 120ms var(--ease);
}

.crm-jump-nav a:hover,
.crm-person-card-link:hover .crm-person-card {
  border-color: var(--line-strong);
  transform: none;
}

.crm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.crm-section-head.compact {
  margin-bottom: 6px;
}

.crm-back-link {
  color: var(--rato-navy);
  font-weight: 600;
  font-size: 0.875rem;
}

.crm-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crm-person-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: all 150ms var(--ease);
}

.crm-person-card:hover {
  box-shadow: var(--shadow-sm);
}

.crm-person-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.crm-person-card-head p {
  color: var(--ink-600);
  font-size: 0.8125rem;
}

.crm-person-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-700);
  font-size: 0.8125rem;
}

.crm-person-section {
  padding-top: 8px;
}

.crm-subsection-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.crm-subsection-grid-secondary {
  grid-template-columns: 1fr 1fr;
}

.crm-highlight-block {
  overflow: hidden;
}

.crm-day-grid {
  display: grid;
  gap: 12px;
}

.crm-day-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}

.crm-day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.crm-route-line {
  display: grid;
  gap: 8px;
}

.crm-route-stop {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}

.crm-stop-index {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rato-navy);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: none;
}

.crm-stop-body {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.crm-stop-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.crm-stop-client {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.875rem;
}

.crm-stop-meta,
.crm-stop-gps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-600);
  font-size: 0.8125rem;
}

.crm-stop-note {
  color: var(--ink-600);
  font-size: 0.8125rem;
}

.crm-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  font-size: 0.6875rem;
  font-weight: 600;
}

.crm-pill-success {
  color: var(--confirmed);
  background: var(--confirmed-bg);
}

.crm-pill-warning {
  color: var(--unsure);
  background: var(--unsure-bg);
}

.crm-pill-danger {
  color: var(--rejected);
  background: var(--rejected-bg);
}

.crm-pill-neutral {
  color: var(--rato-navy);
  background: rgba(30, 24, 82, 0.06);
}

.crm-gps-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.crm-gps-sub {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.68rem;
  white-space: nowrap;
}

.gps-ok {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.gps-near {
  color: #0369a1;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.gps-doubt {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.gps-no {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.gps-muted {
  color: var(--ink-500);
  background: var(--gray-50);
  border: 1px solid var(--line);
}

.crm-list-wrapper {
  overflow-x: hidden;
}

.crm-list-table {
  table-layout: fixed;
  width: 100%;
}

.crm-list-table th,
.crm-list-table td {
  padding: 11px 10px;
}

.crm-list-table th {
  white-space: nowrap;
}

.crm-list-table .crm-col-marker { width: 2.2rem; }
.crm-list-table .crm-col-date { width: 6rem; }
.crm-list-table .crm-col-salesperson { width: 10rem; }
.crm-list-table .crm-col-client { width: 24%; }
.crm-list-table .crm-col-contact { width: 16%; }
.crm-list-table .crm-col-goal { width: 14%; }
.crm-list-table .crm-col-state { width: 8.5rem; }
.crm-list-table .crm-col-gps { width: 7rem; }
.crm-list-table .crm-col-note { width: 18%; }

.crm-list-marker {
  padding-left: 6px !important;
  padding-right: 4px !important;
  text-align: center;
  white-space: nowrap;
}

.crm-list-date {
  white-space: nowrap;
}

.crm-list-main,
.crm-list-client,
.crm-list-contact,
.crm-list-note {
  color: var(--ink-900);
  line-height: 1.35;
}

.crm-list-main,
.crm-list-contact {
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-list-main,
.crm-list-contact,
.crm-list-date {
  white-space: nowrap;
}

.crm-list-client,
.crm-list-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.crm-list-client {
  font-weight: 650;
  -webkit-line-clamp: 2;
}

.crm-list-note {
  -webkit-line-clamp: 2;
}

.crm-list-sub {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .crm-list-table .crm-col-note {
    width: 0;
  }

  .crm-list-table th:last-child,
  .crm-list-table td:last-child {
    display: none;
  }
}

@media (max-width: 920px) {
  .crm-list-wrapper {
    overflow-x: auto;
  }

  .crm-list-table {
    min-width: 860px;
  }
}

.crm-cell-note {
  color: var(--ink-900);
  white-space: normal;
}

.crm-cell-client {
  display: block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-cell-expandable.crm-cell-client {
  max-width: 180px;
}

.crm-cell-expandable.crm-cell-client.expanded {
  max-width: none;
  white-space: normal;
  overflow: visible;
}

.crm-activity-table td,
.crm-absences-all-table td,
.crm-summary-table td,
.crm-offers-all-table td {
  vertical-align: top;
}

.sticky-first th:first-child,
.sticky-first td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
}

.sticky-first thead th:first-child {
  z-index: 3;
}

@media (max-width: 1180px) {
  .crm-hero,
  .crm-subsection-grid,
  .crm-subsection-grid-secondary,
  .crm-people-grid {
    grid-template-columns: 1fr;
  }

  .crm-hero-stats,
  .crm-metric-grid,
  .crm-metric-grid-person {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .crm-hero,
  .crm-jump-nav,
  .crm-day-card,
  .crm-stop-body,
  .crm-person-card {
    padding: 14px;
  }

  .crm-hero-stats,
  .crm-metric-grid,
  .crm-metric-grid-person,
  .crm-people-grid {
    grid-template-columns: 1fr;
  }

  .crm-day-head,
  .crm-section-head,
  .crm-person-card-head,
  .crm-stop-top {
    flex-direction: column;
  }
}


/* ═══════════════════════════════════════
   CRM — Readable report override
   ═══════════════════════════════════════ */
.crm-project-readable {
  gap: 16px;
}

.crm-intro {
  display: grid;
  gap: 10px;
  background: var(--surface);
}

.crm-kicker-dark {
  width: fit-content;
  background: rgba(30, 24, 82, 0.08);
  color: var(--rato-navy);
}

.crm-project-readable .crm-section,
.crm-project-readable .crm-person-section {
  gap: 10px;
}

.crm-project-readable .crm-section-head h3,
.crm-project-readable .crm-person-section h3 {
  font-size: 1.25rem;
}

.crm-project-readable .crm-section-head p,
.crm-project-readable .crm-person-section p {
  color: var(--ink-600);
  opacity: 1;
}

.crm-project-readable .crm-jump-nav {
  padding: 12px 14px;
  background: var(--surface);
}

.crm-project-readable .crm-jump-nav a {
  background: var(--gray-50);
}

.crm-project-readable .detail-section {
  background: var(--surface);
}

.crm-anchor-link {
  color: var(--rato-navy);
  text-decoration: none;
}

.crm-anchor-link:hover {
  text-decoration: underline;
}

.crm-aux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.crm-metrics-table td,
.crm-salespeople-table td,
.crm-day-summary-table td {
  white-space: nowrap;
}

.crm-route-text-cell {
  min-width: 360px;
  white-space: normal !important;
}

.crm-project-readable .sticky-first th:first-child,
.crm-project-readable .sticky-first td:first-child {
  background: var(--surface);
}

.crm-project-readable .crm-pill {
  font-size: 0.6875rem;
}

@media (max-width: 1100px) {
  .crm-aux-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .crm-metrics-table td,
  .crm-salespeople-table td,
  .crm-day-summary-table td {
    white-space: normal;
  }

  .crm-route-text-cell {
    min-width: 0;
  }
}


/* ═══════════════════════════════════════
   CRM — Excel workbook override
   ═══════════════════════════════════════ */
.crm-excel {
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-detail-crm,
.project-detail-crm > *,
.crm-excel > *,
.crm-excel .crm-sheet,
.crm-excel .crm-section,
.crm-excel .detail-section,
.crm-excel .crm-workbook-nav {
  min-width: 0;
  max-width: 100%;
}

.crm-excel .detail-section,
.crm-excel .crm-sheet,
.crm-excel .crm-workbook-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.crm-workbook-nav {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 60px;
  z-index: 8;
  overflow: hidden;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.crm-workbook-title-row {
  display: grid;
  gap: 2px;
}

.crm-workbook-title-row strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-950);
}

.crm-workbook-title-row span {
  font-size: 0.8125rem;
  color: var(--ink-600);
}

.crm-workbook-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  width: 100%;
}

.crm-workbook-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--gray-50);
  color: var(--ink-900);
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 120ms var(--ease);
}

.crm-workbook-tab:hover,
.crm-anchor-link:hover {
  background: var(--gray-100);
  border-color: var(--line-strong);
}

.crm-sheet {
  padding: 16px;
}

.crm-sheet-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 6px;
}

.crm-sheet-summary {
  font-size: 0.8125rem;
  color: var(--ink-600);
  margin-bottom: 12px;
}

.crm-sheet-band {
  margin: 12px 0 8px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: var(--rato-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.crm-excel .table-wrapper {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.crm-excel .data-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  max-width: none;
  table-layout: auto;
  font-size: 0.8125rem;
}

.crm-excel .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--gray-50);
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}

.crm-excel .data-table th,
.crm-excel .data-table td {
  padding: 8px 10px;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.crm-excel .data-table th:last-child,
.crm-excel .data-table td:last-child {
  border-right: none;
}

.crm-excel .data-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.crm-excel .data-table tbody tr:hover {
  background: rgba(30, 24, 82, 0.03);
}

.crm-excel .sticky-first th:first-child,
.crm-excel .sticky-first td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
}

.crm-excel .sticky-first thead th:first-child {
  z-index: 3;
  background: var(--gray-50);
}

.crm-excel .crm-pill {
  min-height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  font-size: 0.6875rem;
}

.crm-excel .crm-cell-note {
  line-height: 1.4;
}


/* ═══════════════════════════════════════
   CRM — Summary table fit
   ═══════════════════════════════════════ */
.crm-summary-fit {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

.crm-summary-fit col.c-name { width: 7rem; }
.crm-summary-fit col.c-money { width: 4.2rem; }
.crm-summary-fit col.c-small { width: 2.45rem; }
.crm-summary-fit col.c-mid { width: 2.95rem; }

.crm-summary-fit th,
.crm-summary-fit td {
  padding: 4px 5px !important;
}

.crm-summary-fit thead th {
  font-size: 0.5625rem !important;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.crm-summary-fit tbody td {
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.crm-summary-fit tbody td:first-child {
  text-align: left;
  white-space: normal;
  line-height: 1.1;
}

@media (max-width: 700px) {
  .crm-summary-fit col.c-name { width: 4rem; }
  .crm-summary-fit col.c-money { width: 2.85rem; }
  .crm-summary-fit col.c-small { width: 1.65rem; }
  .crm-summary-fit col.c-mid { width: 2rem; }

  .crm-summary-fit th,
  .crm-summary-fit td {
    padding: 2px 3px !important;
  }

  .crm-summary-fit thead th {
    font-size: 0.5rem !important;
  }

  .crm-summary-fit tbody td {
    font-size: 0.625rem;
  }
}

@media (max-width: 900px) {
  .crm-workbook-nav {
    top: 52px;
  }

  .crm-workbook-tabs {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

@media (max-width: 980px) {
  .sales-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-hero-stats {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-container,
  .nav-right {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-profile-switch,
  .nav-view-switch {
    width: 100%;
  }

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

  .nav-profile-select,
  .nav-view-pill {
    width: 100%;
    max-width: none;
    flex: 1;
  }

  .sales-hero-stats,
  .stat-numbers-crm-overview {
    grid-template-columns: 1fr;
  }
}

/* ── Urlopy Tile ── */
.stat-card-urlopy {
  border-left: 3px solid #f59e0b;
}
.urlopy-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.urlopy-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.urlopy-dates {
  color: var(--ink-500);
  font-size: 0.75rem;
}
.urlopy-more {
  color: var(--ink-400);
  font-size: 0.75rem;
  font-style: italic;
}
.empty-state-mini {
  color: var(--ink-400);
  font-size: 0.8rem;
  margin: 8px 0;
}

/* ── Alert Filter Bar ── */
.filter-bar {
  margin-bottom: 16px;
}
.filter-search {
  max-width: 360px;
  font-size: 0.875rem;
}

/* ── Alert Context Card ── */
.alert-context-card {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  margin-bottom: 12px;
}
.alert-context-card h3 {
  color: var(--primary);
}
.alert-context-grid .detail-row {
  padding: 4px 0;
  font-size: 0.85rem;
}
.alert-context-grid .detail-label {
  color: var(--ink-500);
  min-width: 100px;
}
.alert-context-grid .detail-value {
  font-weight: 500;
}

/* ── Weekly Planning Module ────────────────────────────────── */

/* Tile on dashboard */
.stat-card-weekly-plan .weekly-plan-mini {
  margin-top: 8px;
}
.weekly-plan-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-100);
}
.weekly-plan-mini-row:last-child { border-bottom: none; }
.wp-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-entries { color: var(--ink-500); font-size: 0.8rem; }
.weekly-plan-actions { margin-top: 12px; text-align: center; }
.review-comment-inline {
  margin-top: 10px;
  padding: 10px 12px;
  background: #ecfccb;
  border: 1px solid #bef264;
  border-left: 3px solid #65a30d;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #365314;
}
.review-comment-inline strong { display: block; margin-bottom: 4px; }
.review-comment-text { font-weight: 400; white-space: pre-wrap; }
.review-comment-top {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: #fef9c3;
  border: 1px solid #facc15;
  border-left: 4px solid #ca8a04;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #422006;
}
.review-comment-top strong { display: block; margin-bottom: 6px; font-size: 0.95rem; }
.review-comment-top .review-comment-text { font-weight: 400; font-size: 0.9rem; }
.missing-plans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Week navigation */
.week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}
.week-label {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  text-align: center;
}

/* Plan header */
.plan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.plan-header h2 { margin: 0; }
.plan-header .week-nav { margin: 0; flex: 1; }

/* Plan grid — vertical stack, one day per row for readability */
.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 1200px;
}

.plan-day {
  background: var(--surface-white);
  border: 1px solid var(--border-200);
  border-left: 5px solid var(--primary-500);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Color-code each day with different accent */
.plan-day[data-day="1"] { border-left-color: #3b82f6; }
.plan-day[data-day="2"] { border-left-color: #10b981; }
.plan-day[data-day="3"] { border-left-color: #f59e0b; }
.plan-day[data-day="4"] { border-left-color: #8b5cf6; }
.plan-day[data-day="5"] { border-left-color: #ef4444; }

.plan-day-header {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-100);
}
.plan-day-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-900, #0f172a);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plan-day-date {
  font-size: 0.9rem;
  color: var(--ink-500);
  font-weight: 500;
}

.plan-day-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Plan entry — form mode — horizontal row layout */
.plan-entry {
  background: var(--surface-50, #f8fafc);
  border: 1px solid var(--border-100, #e2e8f0);
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.plan-entry:hover { border-color: var(--primary-300, #93c5fd); background: #fff; }
.plan-entry:focus-within { border-color: var(--primary-500, #3b82f6); background: #fff; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08); }

.plan-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.entry-type-select {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-200);
  background: var(--surface-white);
  font-weight: 500;
  cursor: pointer;
}
.btn-remove-entry {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-400);
  font-size: 1.4rem;
  padding: 2px 8px;
  line-height: 1;
  border-radius: 4px;
}
.btn-remove-entry:hover { color: #dc2626; background: #fef2f2; }

/* Form fields — horizontal row for visit fields (client | contacts | notes | city) */
.plan-entry-fields { display: flex; flex-direction: column; gap: 6px; }
.visit-fields {
  display: grid;
  grid-template-columns: 1.8fr 1.4fr 1.6fr 1fr;
  gap: 8px;
  align-items: start;
}
.visit-fields > input[type="text"] { min-width: 0; }
.visit-fields > input[type="hidden"] { display: none; }
.visit-fields .visit-notes {
  border-style: dashed;
  background: #fafafa;
  color: var(--ink-700, #334155);
}
@media (max-width: 900px) {
  .visit-fields { grid-template-columns: 1fr; }
}
.other-fields { display: block; }
.other-fields > input { width: 100%; }
.leave-fields {
  display: block;
  padding: 8px 10px;
  color: var(--ink-500, #64748b);
  font-style: italic;
  font-size: 0.85rem;
}

.form-input {
  padding: 6px 8px;
  border: 1px solid var(--border-200);
  border-radius: 4px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.form-select-sm {
  font-size: 0.8rem;
  padding: 2px 6px;
}

/* Add entry button */
.btn-add-entry {
  margin-top: 8px;
  align-self: center;
  background: none;
  border: 1px dashed var(--border-300);
  color: var(--primary-600);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.btn-add-entry:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
}

/* Plan entry — readonly mode */
.plan-entry-readonly {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-50, #f8fafc);
  border: 1px solid var(--border-100, #e2e8f0);
  border-radius: 8px;
}
.plan-entry-readonly.office { background: #fef3c7; border-color: #fde68a; }
.plan-entry-readonly.leave { background: #dbeafe; border-color: #bfdbfe; }
.plan-entry-readonly.other { background: #f3f4f6; border-color: #e5e7eb; }
.plan-entry-type {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.plan-entry-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.6fr 1fr;
  gap: 12px;
  font-size: 0.9rem;
  align-items: center;
}
.plan-entry-content > strong { font-size: 0.95rem; color: var(--ink-900, #0f172a); }
.plan-contacts { color: var(--ink-600, #475569); font-size: 0.85rem; }
.plan-notes { color: var(--ink-600, #475569); font-size: 0.83rem; font-style: italic; }
.plan-city { color: var(--ink-500); font-size: 0.85rem; font-weight: 500; }
@media (max-width: 768px) {
  .plan-entry-content { grid-template-columns: 1fr; gap: 4px; }
}
.plan-entry-badges { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }

/* Verification badges */
.verification-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
}
.vb-ok {
  background: var(--success-50, #f0fdf4);
  color: var(--success-700, #15803d);
  border: 1px solid var(--success-200, #bbf7d0);
}
.vb-fail {
  background: var(--error-50, #fef2f2);
  color: var(--error-700, #b91c1c);
  border: 1px solid var(--error-200, #fecaca);
}

/* Plan actions */
.plan-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px 0;
}
.btn-secondary {
  background: var(--surface-white);
  border: 1px solid var(--border-300);
  color: var(--ink-700);
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-secondary:hover { background: var(--surface-50); }

/* Review section */
.review-section {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface-50);
  border-radius: 8px;
  border: 1px solid var(--border-200);
}
.review-section h3 { margin: 0 0 12px; }
.review-section textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--border-200);
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.review-comment-box {
  margin-top: 16px;
  padding: 12px;
  background: var(--primary-50);
  border-radius: 6px;
  border-left: 3px solid var(--primary-500);
  font-size: 0.9rem;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
  backdrop-filter: none;
}
.ac-item { background: #ffffff; }
.ac-item:hover, .ac-item:focus { background: #eff6ff; }
.ac-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-100);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--primary-50); }
.ac-item strong { flex: 1; }
.ac-city { color: var(--ink-500); font-size: 0.8rem; }
.ac-code { color: var(--ink-400); font-size: 0.75rem; }

/* Notification toast */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.notification-show { transform: translateX(0); }
.notification-success { background: #10b981; color: white; }
.notification-error { background: #ef4444; color: white; }

/* Weekly plans table */
.weekly-plans-table td { vertical-align: middle; }
.text-danger { color: var(--error-600, #dc2626); font-weight: 600; }
.text-success { color: var(--success-600, #16a34a); font-weight: 600; }

/* Helper classes */
.empty-state-mini { color: var(--ink-400); font-size: 0.8rem; font-style: italic; margin: 4px 0; }
