/* ═══════════════════════════════════════════════════════════════════════════
   TASHIYA TRAVELS — TRAVEL ERP PLATFORM DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── UTILITY: enforce [hidden] over any display override ──────────────────── */
[hidden] { display: none !important; }

/* ── SKIP LINK ─────────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000000;
  transform: translateY(-140%); border-radius: 10px;
  background: var(--navy); color: var(--white);
  font-weight: 900; padding: 10px 14px;
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* ── PLATFORM BODY ──────────────────────────────────────────────────────────── */
.platform-body {
  min-height: 100vh;
  background: #f5f7fc;
}
.platform-body.modal-open { overflow: hidden; }

/* ── AUTH ───────────────────────────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%);
}
.auth-shell {
  display: grid; min-height: 100vh; place-items: center; padding: 32px 16px;
}
.auth-panel {
  width: min(100%, 520px);
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 24px 70px rgba(18,12,49,0.12);
  padding: 32px;
}
.auth-panel .brand { margin-bottom: 28px; }
.auth-note, .auth-links { color: var(--muted); margin-top: 16px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 900; }
.auth-links a { color: var(--royal); }

/* ── TOPBAR ─────────────────────────────────────────────────────────────────── */
.platform-topbar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(220,230,245,0.9);
  background: rgba(255,255,255,0.95);
  padding: 10px 20px;
  backdrop-filter: blur(20px);
  min-height: 62px;
}
.platform-brand-wrap,
.platform-top-actions,
.page-head-actions { display: flex; align-items: center; gap: 10px; }

.topbar-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.topbar-search input {
  width: 100%; height: 36px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #f5f7fc; color: var(--navy);
  font: inherit; font-size: 0.875rem;
  padding: 0 12px;
  transition: border-color 160ms, background 160ms;
}
.topbar-search input:focus { outline: none; border-color: var(--royal); background: var(--white); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 120;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); box-shadow: 0 20px 50px rgba(18,12,49,0.14);
  overflow: hidden;
}
.search-results[hidden] { display: none; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--navy);
  cursor: pointer; font: inherit; font-size: 0.875rem;
  padding: 10px 14px; text-align: left; width: 100%;
}
.search-result-item:hover { background: var(--sky); }
.search-result-type { color: var(--muted); font-size: 0.75rem; }

/* ── USER CHIP ──────────────────────────────────────────────────────────────── */
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-initials, .user-card-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: var(--white); font-size: 0.75rem; font-weight: 900;
  flex-shrink: 0;
}
.user-card-avatar { width: 42px; height: 42px; font-size: 0.9rem; }
.user-chip-info { display: none; }
.user-chip-info strong,
.user-chip-info small { display: block; }
.user-chip-info strong { font-size: 0.875rem; }
.user-chip-info small { color: var(--muted); font-size: 0.75rem; }

/* ── NOTIFICATION BELL ──────────────────────────────────────────────────────── */
.notif-bell {
  position: relative;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy);
}
.notif-count {
  position: absolute; top: -5px; right: -5px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  border: 2px solid var(--white); border-radius: 999px;
  background: #e53e3e; color: var(--white);
  font-size: 0.65rem; font-weight: 900;
  padding: 0 4px;
}

/* ── BUTTONS EXTENDED ───────────────────────────────────────────────────────── */
.btn-sm { padding: 6px 13px; font-size: 0.83rem; border-radius: 9px; }
.btn-ghost {
  border-color: transparent; background: transparent; color: var(--muted);
  font-weight: 700;
}
.btn-ghost:hover { color: var(--navy); background: var(--sky); }
/* Icon + text alignment: add gap so SVG/emoji icons and text labels stay
   vertically centred with consistent spacing inside all admin buttons. */
.btn { gap: 6px; justify-content: center; }
.btn svg { flex-shrink: 0; }
/* Link-style action buttons (tables, cards) */
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── SIDEBAR ────────────────────────────────────────────────────────────────── */
.platform-sidebar-toggle { display: none; }
.platform-sidebar-toggle span {
  display: block; width: 18px; height: 2px; margin: 2px 0;
  background: currentColor; border-radius: 2px;
}
.icon-button {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy);
  cursor: pointer; font: inherit; font-weight: 950;
}

.platform-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 20px;
  width: min(100% - 28px, 1500px);
  margin: 20px auto 80px;
}

.platform-sidebar {
  position: sticky; top: 82px; align-self: start;
  max-height: calc(100vh - 102px); overflow: auto;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(37,23,94,0.06);
  padding: 14px 12px;
  scrollbar-width: thin;
}

.platform-user-card {
  display: flex; align-items: center; gap: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, #2e1f6e 100%);
  color: var(--white); padding: 14px; margin-bottom: 14px;
}
.portal-user-card { background: linear-gradient(135deg, #0d5c6b 0%, #145f6e 100%); }
.platform-user-card strong,
.platform-user-card span { display: block; }
.platform-user-card strong { font-size: 0.92rem; }
.platform-user-card span { color: rgba(255,255,255,0.72); font-size: 0.78rem; margin-top: 2px; }

/* ── NAV SECTIONS ───────────────────────────────────────────────────────────── */
.platform-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { margin-bottom: 6px; }
.nav-section-label {
  display: block; padding: 6px 10px 4px;
  color: var(--muted); font-size: 0.68rem; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  min-height: 38px; border-radius: 10px;
  color: #3a3d52; font-size: 0.875rem; font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
  transition: background 120ms, color 120ms;
  position: relative;
}
.nav-item:hover { background: #eff3ff; color: var(--royal); }
.nav-item.active { background: #eef2ff; color: var(--royal); font-weight: 800; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--royal);
}
.nav-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  opacity: 0.65;
}
.nav-item.active .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--royal); color: var(--white);
  font-size: 0.68rem; font-weight: 900;
}

.sidebar-portal-link {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); font-size: 0.8rem; font-weight: 700;
  margin-top: 12px; padding: 10px 12px;
  text-decoration: none;
  transition: background 120ms, color 120ms;
}
.sidebar-portal-link:hover { background: var(--sky); color: var(--navy); }

/* ── PAGE HEADER ────────────────────────────────────────────────────────────── */
.platform-content { min-width: 0; }
.platform-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 20px;
}
.platform-page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 4px 0 0; }
.eyebrow { display: block; color: var(--royal); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── LOADING & ALERT ────────────────────────────────────────────────────────── */
.module-loading {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--muted);
  font-weight: 700; padding: 16px 18px;
}
.module-loading[hidden], .platform-alert[hidden], .modal-backdrop[hidden] { display: none; }
.module-loading span {
  width: 17px; height: 17px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--royal);
  animation: platformSpin 700ms linear infinite;
}
.platform-alert {
  border-radius: 12px; background: #e6fbf0; color: #0a6a34;
  font-weight: 800; margin-bottom: 16px; padding: 12px 16px;
}
.platform-alert[data-tone="error"] { background: #fff1f1; color: #9d1515; }
.platform-alert[data-tone="warning"] { background: #fffbeb; color: #854d0e; }

/* ── KPI GRID ───────────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.kpi-grid.kpi-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-grid.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-card {
  border: 1px solid rgba(220,230,245,0.9); border-radius: 16px;
  background: var(--white); padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(37,23,94,0.05);
  transition: box-shadow 160ms;
}
.kpi-card:hover { box-shadow: 0 6px 24px rgba(37,23,94,0.10); }
.kpi-card-label { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-card-value { color: var(--navy); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 900; line-height: 1.1; margin: 8px 0 6px; }
.kpi-card-sub { color: var(--royal); font-size: 0.78rem; font-weight: 700; }
.kpi-card-sub.negative { color: #e53e3e; }
.kpi-card-sub.positive { color: #16a34a; }
.kpi-card.kpi-alert { border-color: #fed7d7; background: #fff5f5; }
.kpi-card.kpi-alert .kpi-card-value { color: #e53e3e; }
.kpi-card.kpi-success { border-color: #bbf7d0; }
.kpi-card.kpi-success .kpi-card-value { color: #15803d; }

/* ── DASHBOARD GRID ─────────────────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.dash-panel {
  border: 1px solid rgba(220,230,245,0.9); border-radius: 18px;
  background: var(--white); padding: 20px;
  box-shadow: 0 2px 12px rgba(37,23,94,0.04);
  min-width: 0;
}
.dash-panel.wide { grid-column: 1 / -1; }
.panel-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.panel-title h2, .panel-title h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.panel-title .panel-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--sky); color: var(--royal);
  font-size: 0.75rem; font-weight: 900;
}

/* ── URGENT ACTIONS BAR ─────────────────────────────────────────────────────── */
.urgent-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px;
}
.urgent-item {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 10px; border: 1px solid;
  font-size: 0.8rem; font-weight: 800;
  padding: 7px 12px; cursor: pointer;
  text-decoration: none; transition: opacity 140ms;
}
.urgent-item:hover { opacity: 0.85; }
.urgent-item.overdue { border-color: #fca5a5; background: #fff5f5; color: #9d1515; }
.urgent-item.departure { border-color: #fbbf24; background: #fffbeb; color: #78350f; }
.urgent-item.ticket { border-color: #6ee7b7; background: #f0fdf4; color: #065f46; }
.urgent-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: urgentPulse 1.8s ease-in-out infinite;
}

/* ── URGENCY BADGES ─────────────────────────────────────────────────────────── */
.urgency-today { background: #fff5f5; color: #9d1515; border-color: #fca5a5; }
.urgency-tomorrow { background: #fffbeb; color: #78350f; border-color: #fbbf24; }
.urgency-3d { background: #fff7ed; color: #7c2d12; border-color: #fdba74; }
.urgency-week { background: #f0fdf4; color: #065f46; border-color: #86efac; }

.days-badge {
  display: inline-flex; align-items: center;
  border: 1px solid; border-radius: 8px;
  font-size: 0.72rem; font-weight: 900; padding: 3px 7px;
  white-space: nowrap;
}

/* ── STATUS BADGES ──────────────────────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center;
  border-radius: 8px; font-size: 0.72rem; font-weight: 800;
  padding: 4px 9px; white-space: nowrap;
  background: #f1f5f9; color: #475569;
}
.status.new, .status.draft { background: #eff6ff; color: #1d4ed8; }
.status.contacted, .status.interested, .status.pending { background: #fff7ed; color: #c2410c; }
.status.quoted, .status.sent { background: #faf5ff; color: #7e22ce; }
.status.negotiating, .status.partial { background: #fffbeb; color: #b45309; }
.status.confirmed, .status.accepted, .status.available, .status.paid { background: #f0fdf4; color: #15803d; }
.status.ticketed { background: #ecfeff; color: #155e75; }
.status.completed, .status.published { background: #f5f3ff; color: #5b21b6; }
.status.cancelled, .status.rejected, .status.overdue, .status.lost { background: #fff1f2; color: #9f1239; }
.status.maintenance { background: #fefce8; color: #713f12; }
.status.booked { background: #fef3c7; color: #78350f; }
.status.processing { background: #eff6ff; color: #1e40af; }
.status.approved { background: #f0fdf4; color: #166534; }

/* ── PRIORITY BADGES ────────────────────────────────────────────────────────── */
.priority-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.priority-urgent .priority-dot { background: #ef4444; }
.priority-high .priority-dot { background: #f97316; }
.priority-normal .priority-dot { background: #3b82f6; }
.priority-low .priority-dot { background: #94a3b8; }

/* ── KANBAN ─────────────────────────────────────────────────────────────────── */
.kanban-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.kanban-filter-bar input {
  flex: 1; min-width: 180px;
  height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy);
  font: inherit; font-size: 0.875rem; padding: 0 12px;
}
.kanban-filter-bar input:focus { outline: none; border-color: var(--royal); }
.filter-select {
  height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy);
  font: inherit; font-size: 0.83rem; padding: 0 10px;
  cursor: pointer;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(8, minmax(210px, 260px));
  gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: thin;
}
.kanban.compact {
  grid-template-columns: repeat(8, minmax(180px, 220px));
}

.kanban-column {
  border: 1px solid var(--line); border-radius: 16px;
  background: #f8fafb; padding: 12px;
  min-height: 200px; transition: background 140ms;
}
.kanban-column.drop-target { background: #eef2ff; border-color: var(--royal); }
.kanban-column header {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-weight: 900; margin-bottom: 10px;
  font-size: 0.82rem; color: #374151;
}
.kanban-column header .col-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); color: var(--royal); font-size: 0.72rem;
  border: 1px solid var(--line);
}
.kanban-col-lost header { color: #9f1239; }

.kanban-cards { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kanban-card {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; padding: 11px 12px;
  box-shadow: 0 1px 4px rgba(18,12,49,0.04);
  transition: box-shadow 140ms, transform 140ms;
  user-select: none;
}
.kanban-card:hover { box-shadow: 0 4px 14px rgba(18,12,49,0.10); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.45; transform: scale(0.97); }
.kanban-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.kanban-card strong { display: block; font-size: 0.83rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.kanban-card .card-client { color: var(--muted); font-size: 0.78rem; margin: 3px 0; }
.kanban-card .card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.card-age { font-size: 0.68rem; color: var(--muted); background: #f1f5f9; border-radius: 6px; padding: 2px 6px; }
.card-type-tag {
  font-size: 0.68rem; font-weight: 800; border-radius: 6px; padding: 2px 7px;
  background: var(--sky); color: var(--royal);
}
.card-notes { font-size: 0.7rem; color: var(--muted); }
.card-value { font-size: 0.78rem; font-weight: 800; color: var(--navy); margin-top: 5px; }
.empty-column { padding: 16px 8px; text-align: center; color: var(--muted); font-size: 0.8rem; }

.pipeline-kanban-board {
  grid-template-columns: repeat(9, minmax(224px, 260px));
  align-items: start;
  gap: 12px;
  padding: 2px 2px 14px;
}
.pipeline-kanban-board .kanban-column {
  min-height: 360px;
  padding: 12px;
}
.pipeline-kanban-board .kanban-card {
  position: relative;
  border-left: 0;
  padding: 13px 13px 12px 15px;
  overflow: hidden;
}
.pipeline-kanban-board .kanban-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--priority-color, #94a3b8);
}
.pipeline-kanban-board .priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  margin-top: 4px;
}
.pipeline-kanban-board .card-meta {
  row-gap: 5px;
}
.pipeline-kanban-board .card-follow-up {
  color: #0891b2;
}
.pipeline-kanban-board .card-value {
  border-top: 1px solid #eef2f7;
  margin-top: 9px;
  padding-top: 9px;
  font-size: 0.86rem;
}
.pipeline-kanban-board .card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #eef2f7;
  margin-top: 10px;
  padding-top: 10px;
}
.kanban-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--royal);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 9px;
  text-decoration: none;
}
.kanban-action:hover { background: var(--sky); }
.kanban-action-danger { color: #dc2626; border-color: #fecaca; }
.kanban-action-danger:hover { background: #fff1f2; }
.kanban-action-success { color: #15803d; border-color: #bbf7d0; }
.kanban-action-success:hover { background: #f0fdf4; }
.kanban-action-info { color: #0369a1; border-color: #bae6fd; }
.kanban-action-info:hover { background: #f0f9ff; }

/* ── ACTIVITY FEED ──────────────────────────────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.activity-item:last-child { border-bottom: 0; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  background: var(--royal);
}
.activity-body { min-width: 0; flex: 1; }
.activity-body strong { display: block; font-size: 0.83rem; font-weight: 700; }
.activity-body time { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

/* ── MINI CHARTS ────────────────────────────────────────────────────────────── */
.mini-bar-chart { width: 100%; overflow: visible; }
.mini-bar-chart .bar-primary { fill: var(--royal); opacity: 0.85; }
.mini-bar-chart .bar-secondary { fill: #c7d2fe; }
.mini-bar-chart .chart-label { font-size: 9px; fill: var(--muted); font-family: Inter, sans-serif; }
.mini-bar-chart .bar-value-label { font-size: 8px; fill: var(--navy); font-family: Inter, sans-serif; font-weight: 700; }

.chart-container { margin-top: 14px; }
.chart-title { font-size: 0.8rem; font-weight: 800; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Horizontal bar chart */
.hbar-chart { display: flex; flex-direction: column; gap: 8px; }
.hbar-item { display: flex; align-items: center; gap: 10px; }
.hbar-label { width: 90px; font-size: 0.78rem; font-weight: 700; color: var(--navy); flex-shrink: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.hbar-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--royal); transition: width 600ms ease; }
.hbar-val { width: 44px; font-size: 0.75rem; font-weight: 800; color: var(--muted); text-align: right; flex-shrink: 0; }

/* Pipeline funnel */
.funnel-list { display: flex; flex-direction: column; gap: 6px; }
.funnel-item { display: flex; align-items: center; gap: 10px; }
.funnel-stage { width: 88px; font-size: 0.78rem; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.funnel-bar { flex: 1; height: 26px; border-radius: 8px; background: var(--sky); display: flex; align-items: center; padding: 0 10px; transition: width 400ms ease; }
.funnel-bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--royal), #6366f1); transition: width 600ms ease; display: flex; align-items: center; padding: 0 8px; }
.funnel-count { font-size: 0.75rem; font-weight: 900; color: var(--white); }

/* Donut / source chart */
.source-list { display: flex; flex-direction: column; gap: 10px; }
.source-item { display: flex; align-items: center; gap: 10px; }
.source-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.source-name { flex: 1; font-size: 0.83rem; font-weight: 700; }
.source-count { font-size: 0.83rem; font-weight: 800; color: var(--navy); }
.source-pct { font-size: 0.75rem; color: var(--muted); width: 36px; text-align: right; }

/* ── TABLES ─────────────────────────────────────────────────────────────────── */
.responsive-table { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.responsive-table table { width: 100%; min-width: 640px; border-collapse: collapse; }
.responsive-table th {
  background: #f8fafb; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 14px; text-align: left; white-space: nowrap;
}
.responsive-table td { border-bottom: 1px solid #f1f5f9; padding: 11px 14px; font-size: 0.875rem; }
.responsive-table tr:last-child td { border-bottom: 0; }
.responsive-table tbody tr:hover { background: #f8fafb; }
.link-button { border: 0; background: transparent; color: var(--royal); cursor: pointer; font: inherit; font-weight: 800; font-size: 0.83rem; padding: 0; }

/* ── MINI LIST ──────────────────────────────────────────────────────────────── */
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-list-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--white); padding: 10px 12px;
  cursor: pointer; transition: background 120ms;
}
.mini-list-item:hover { background: var(--sky); }
.mini-list-item .ml-main { flex: 1; min-width: 0; }
.mini-list-item strong { display: block; font-size: 0.83rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list-item span { display: block; color: var(--muted); font-size: 0.75rem; }
.empty-inline { color: var(--muted); font-size: 0.84rem; padding: 12px 0; text-align: center; line-height: 1.5; }
.empty-inline strong { color: var(--navy); font-weight: 700; }

/* ── FLIGHT / BOOKING CARDS ─────────────────────────────────────────────────── */
.booking-list { display: flex; flex-direction: column; gap: 12px; }
.booking-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px;
  cursor: pointer; transition: box-shadow 140ms;
}
.booking-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.08); }
.booking-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.booking-ref { font-size: 0.75rem; font-weight: 900; color: var(--royal); letter-spacing: 0.04em; }
.booking-card h3 { font-size: 0.95rem; font-weight: 800; margin: 4px 0 0; font-family: Inter, sans-serif; }
.booking-card p { color: var(--muted); font-size: 0.83rem; margin: 4px 0 0; }

.route-display {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafb; border-radius: 10px; padding: 10px 14px;
  margin: 10px 0;
}
.route-city { font-weight: 900; font-size: 1rem; }
.route-arrow { color: var(--muted); font-size: 0.9rem; }
.route-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.route-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.route-meta-item strong { color: var(--navy); font-weight: 800; }
.pnr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 8px; border: 1px solid #86efac;
  background: #f0fdf4; color: #15803d;
  font-size: 0.75rem; font-weight: 900; padding: 4px 9px;
}
.pnr-missing {
  border-color: #fca5a5; background: #fff5f5; color: #9d1515;
}

.status-timeline {
  display: flex; gap: 6px; margin: 12px 0 0; overflow-x: auto; padding-bottom: 4px;
}
.status-timeline-step {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; min-width: 52px;
}
.step-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 900; color: var(--muted);
  transition: all 160ms;
}
.step-dot.done { border-color: var(--royal); background: var(--royal); color: var(--white); }
.step-dot.active { border-color: var(--royal); background: var(--white); color: var(--royal); }
.step-label { font-size: 0.65rem; font-weight: 700; color: var(--muted); text-align: center; }
.step-label.done { color: var(--royal); }

/* ── VISA CARDS ─────────────────────────────────────────────────────────────── */
.visa-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.visa-stage-card {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); padding: 14px 16px;
  text-align: center;
}
.visa-stage-card .stage-count { font-size: 1.8rem; font-weight: 900; color: var(--navy); }
.visa-stage-card .stage-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.visa-stage-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid; border-radius: 20px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 700; background: var(--white);
  cursor: default;
}
.visa-filter.active { background: var(--royal); color: var(--white) !important; border-color: var(--royal) !important; }

.visa-case-card {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); padding: 14px 16px;
  cursor: pointer; transition: box-shadow 120ms;
}
.visa-case-card:hover { box-shadow: 0 4px 14px rgba(18,12,49,0.08); }
.visa-case-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.visa-case-ref { font-size: 0.72rem; font-weight: 900; color: var(--royal); }
.visa-destination { font-size: 0.9rem; font-weight: 800; color: var(--navy); margin: 3px 0; }
.visa-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.visa-meta-item { font-size: 0.78rem; color: var(--muted); }
.visa-meta-item strong { color: var(--navy); }
.visa-appointment-alert {
  display: flex; align-items: center; gap: 6px;
  background: #fffbeb; border: 1px solid #fbbf24; border-radius: 8px;
  color: #78350f; font-size: 0.78rem; font-weight: 800; padding: 6px 10px; margin-top: 8px;
}

/* ── FLEET CARDS ────────────────────────────────────────────────────────────── */
.fleet-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.fleet-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); overflow: hidden;
  transition: box-shadow 140ms;
}
.fleet-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.08); }
.fleet-card img {
  width: 100%; height: 130px; object-fit: contain;
  background: #f8fafb; padding: 10px;
}
.fleet-card-body { padding: 12px 14px; }
.fleet-card strong { display: block; font-size: 0.9rem; font-weight: 800; }
.fleet-card .fleet-cat { color: var(--muted); font-size: 0.8rem; margin: 3px 0 8px; }
.fleet-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 10px 14px; }
.fleet-price { font-size: 0.85rem; font-weight: 900; color: var(--navy); }
.fleet-price small { font-weight: 600; color: var(--muted); }

.fleet-stats-bar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fleet-stat {
  flex: 1; min-width: 100px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); padding: 14px 16px; text-align: center;
}
.fleet-stat .stat-val { font-size: 1.8rem; font-weight: 900; color: var(--navy); }
.fleet-stat .stat-label { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.fleet-stat.available-stat .stat-val { color: #15803d; }
.fleet-stat.active-stat .stat-val { color: var(--royal); }
.fleet-stat.maintenance-stat .stat-val { color: #b45309; }

/* ── FLEET TABS ─────────────────────────────────────────────────────────────── */
.tab-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: none; border-bottom: 2px solid transparent;
  background: none; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 600;
  color: var(--muted);
  transition: color 140ms, border-color 140ms;
  white-space: nowrap;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  font-weight: 800; color: var(--primary, var(--royal));
  border-bottom-color: var(--primary, var(--royal));
}

/* ── TOUR OPERATIONS ────────────────────────────────────────────────────────── */
.departure-list { display: flex; flex-direction: column; gap: 10px; }
.departure-card {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  transition: box-shadow 120ms;
}
.departure-card:hover { box-shadow: 0 4px 14px rgba(18,12,49,0.08); }
.departure-date-col { text-align: center; flex-shrink: 0; min-width: 52px; }
.dep-day { font-size: 1.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.dep-month { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.departure-info { flex: 1; min-width: 0; }
.departure-title { font-size: 0.92rem; font-weight: 800; color: var(--navy); }
.departure-sub { color: var(--muted); font-size: 0.8rem; margin: 3px 0; }
.departure-fulfillment { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.fulfillment-badge {
  font-size: 0.7rem; font-weight: 800; border-radius: 7px; padding: 3px 8px;
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
}
.fulfillment-badge.missing {
  background: #fff5f5; color: #9d1515; border-color: #fca5a5;
}

/* ── PACKAGE CARDS ──────────────────────────────────────────────────────────── */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.package-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); overflow: hidden; cursor: pointer;
  transition: box-shadow 140ms;
}
.package-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.10); }
.package-card img { width: 100%; height: 140px; object-fit: cover; background: #f8fafb; }
.package-card-body { padding: 14px; }
.package-destination { color: var(--royal); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.package-title { font-size: 0.95rem; font-weight: 800; color: var(--navy); margin: 4px 0; }
.package-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.package-duration { font-size: 0.8rem; color: var(--muted); }
.package-price { font-size: 0.95rem; font-weight: 900; color: var(--navy); }

/* ── FINANCE / QUOTES / INVOICES ────────────────────────────────────────────── */
.finance-tabs-bar {
  display: flex; gap: 6px; margin-bottom: 16px;
  border-bottom: 2px solid var(--line); padding-bottom: 0;
}
.finance-tab {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 800;
  color: var(--muted); padding: 8px 14px 10px;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 140ms, border-color 140ms;
}
.finance-tab.active { color: var(--royal); border-bottom-color: var(--royal); }
.finance-tab:hover:not(.active) { color: var(--navy); }

.invoice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.invoice-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px; cursor: pointer;
  transition: box-shadow 140ms;
}
.invoice-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.08); }
.invoice-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.invoice-number { font-size: 0.82rem; font-weight: 900; color: var(--royal); }
.invoice-customer { font-size: 0.83rem; color: var(--muted); margin: 4px 0 10px; }
.invoice-amount { font-size: 1.3rem; font-weight: 900; color: var(--navy); }
.invoice-balance { font-size: 0.8rem; color: #dc2626; font-weight: 700; margin-top: 3px; }
.invoice-due { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.invoice-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.quote-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px;
  cursor: pointer; transition: box-shadow 140px;
}
.quote-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.08); }

/* Builder */
.builder-form { display: flex; flex-direction: column; gap: 14px; }
.service-rows { display: flex; flex-direction: column; gap: 8px; }
.service-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 80px 130px 44px;
  gap: 8px; align-items: center;
}
.builder-total {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 14px; background: var(--sky); padding: 14px 16px; margin: 4px 0;
}
.builder-total span { color: var(--muted); font-size: 0.83rem; font-weight: 800; }
.builder-total strong { color: var(--navy); font-size: 1.4rem; font-weight: 900; }

/* ── DOCUMENTS ──────────────────────────────────────────────────────────────── */
.document-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.document-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px;
  transition: box-shadow 140ms;
}
.document-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.08); }
.file-type-badge {
  display: inline-flex; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: 0.68rem; font-weight: 900; padding: 4px 9px; margin-bottom: 10px;
}
.file-type-badge.pdf { background: #dc2626; }
.file-type-badge.jpg, .file-type-badge.jpeg, .file-type-badge.png { background: #0891b2; }
.document-card h3 { font-size: 0.88rem; font-weight: 800; margin: 4px 0; font-family: Inter, sans-serif; }
.document-card p { color: var(--muted); font-size: 0.8rem; margin: 3px 0 0; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── CUSTOMER PROFILES ──────────────────────────────────────────────────────── */
.customer-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px; cursor: pointer;
  transition: box-shadow 140ms;
}
.customer-card:hover { box-shadow: 0 6px 20px rgba(18,12,49,0.08); }
.customer-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.customer-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--royal), var(--navy));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem;
}
.customer-name { font-weight: 800; font-size: 0.92rem; }
.customer-code { font-size: 0.72rem; color: var(--royal); font-weight: 900; margin-top: 1px; }
.customer-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.customer-meta-item { font-size: 0.78rem; color: var(--muted); }
.passport-expiry-alert {
  display: flex; align-items: center; gap: 5px;
  background: #fffbeb; border: 1px solid #fbbf24; border-radius: 8px;
  color: #78350f; font-size: 0.72rem; font-weight: 800; padding: 4px 8px; margin-top: 8px;
}

/* ── NOTIFICATIONS ──────────────────────────────────────────────────────────── */
.notification-stack { display: flex; flex-direction: column; gap: 8px; }
.notification-item {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); padding: 13px 14px; cursor: pointer;
  transition: background 120ms;
}
.notification-item:hover { background: var(--sky); }
.notification-item.unread { border-left: 3px solid var(--royal); }
.notif-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky); color: var(--royal);
  display: flex; align-items: center; justify-content: center;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 800; font-size: 0.875rem; color: var(--navy); }
.notif-text { font-size: 0.8rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.notif-time { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* ── STAFF / SETTINGS ───────────────────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.staff-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px;
}
.staff-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.staff-role-badge {
  display: inline-flex; border-radius: 8px; padding: 3px 9px;
  font-size: 0.72rem; font-weight: 900; text-transform: capitalize;
  background: var(--sky); color: var(--royal);
}
.role-super_admin { background: #fef3c7; color: #78350f; }
.role-accounts_officer { background: #f0fdf4; color: #15803d; }
.role-ticketing_officer { background: #eff6ff; color: #1d4ed8; }
.role-visa_officer { background: #faf5ff; color: #6b21a8; }

.settings-section { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.settings-section-title {
  background: #f8fafb; border-bottom: 1px solid var(--line);
  color: var(--navy); font-weight: 800; font-size: 0.875rem; padding: 12px 16px;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #f1f5f9; padding: 13px 16px;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row label { font-size: 0.875rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.settings-row small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.settings-row input[type="checkbox"] { width: 40px; min-height: 22px; cursor: pointer; }

.portal-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}
.tail-settings-card {
  min-width: 0;
  border: 1px solid rgba(220,230,245,0.95);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(37,23,94,0.05);
  padding: 20px;
}
.tail-settings-card-wide { grid-row: span 2; }
.tail-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eef2f7;
  margin: -2px -2px 18px;
  padding: 2px 2px 16px;
}
.tail-settings-head h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}
.tail-settings-head .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.tail-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tail-form-grid .field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tail-form-grid .field.full { grid-column: 1 / -1; }
.tail-form-grid label {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
}
.tail-form-grid input,
.tail-form-grid textarea,
.tail-form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9e2f2;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 13px;
  outline: none;
  transition: border-color 140ms, box-shadow 140ms, background 140ms;
}
.tail-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}
.tail-form-grid input:focus,
.tail-form-grid textarea:focus,
.tail-form-grid select:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(70, 87, 255, 0.12);
}
.tail-form-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #eef2f7;
  margin-top: 18px;
  padding-top: 16px;
}
.tail-form-actions .btn {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.875rem;
  font-weight: 800;
}

/* ── ANALYTICS ──────────────────────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.analytics-card { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 20px; }

/* ── TRAVELER PROFILES ──────────────────────────────────────────────────────── */
.traveler-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.traveler-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); padding: 16px;
}
.traveler-card strong { display: block; font-size: 0.92rem; font-weight: 800; }
.traveler-card .traveler-rel { color: var(--royal); font-size: 0.75rem; font-weight: 800; margin: 3px 0; }
.traveler-card .traveler-passport { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
.passport-expiry-ok { color: #15803d; font-weight: 700; }
.passport-expiry-warn { color: #b45309; font-weight: 700; }
.passport-expiry-expired { color: #dc2626; font-weight: 700; }

/* ── PORTAL DASHBOARD ───────────────────────────────────────────────────────── */
.portal-timeline {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); overflow: hidden; margin-bottom: 16px;
}
.portal-timeline-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
  cursor: pointer; transition: background 120ms;
}
.portal-timeline-item:last-child { border-bottom: 0; }
.portal-timeline-item:hover { background: #f8fafb; }
.ptl-date { text-align: center; flex-shrink: 0; min-width: 46px; }
.ptl-day { font-size: 1.5rem; font-weight: 900; color: var(--navy); line-height: 1; }
.ptl-month { font-size: 0.7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.ptl-info { flex: 1; min-width: 0; }
.ptl-title { font-weight: 800; font-size: 0.9rem; }
.ptl-sub { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

/* ── MODAL ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(18,12,49,0.44); padding: 20px;
}
.platform-modal {
  width: min(100%, 780px); max-height: min(88vh, 840px);
  overflow: auto; border-radius: 20px; background: var(--white);
  box-shadow: 0 32px 96px rgba(18,12,49,0.28);
}
.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); background: var(--white);
  padding: 18px 22px;
}
.modal-head h2 { font-size: 1.45rem; margin: 0; }
.close-button { font-size: 1.4rem; }
.modal-body { padding: 20px 22px; }

/* ── DETAIL LIST ────────────────────────────────────────────────────────────── */
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; }
.detail-list div { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; }
.detail-list dt { color: var(--muted); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.detail-list dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 0.875rem; }

/* ── UPLOAD ZONE ────────────────────────────────────────────────────────────── */
.upload-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 2px dashed rgba(36,89,245,0.3); border-radius: 16px;
  background: var(--sky); color: var(--navy); margin-bottom: 14px;
  padding: 28px; text-align: center; cursor: pointer;
  transition: border-color 160ms, background 160ms;
}
.upload-dropzone.is-dragging { border-color: var(--royal); background: #eef2ff; }
.upload-dropzone input { width: auto; min-height: auto; }
.upload-progress {
  height: 6px; overflow: hidden; border-radius: 999px;
  background: var(--line); margin: -6px 0 14px;
}
.upload-progress span {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: var(--royal); transition: width 240ms ease;
}
.ajax-form.is-loading { opacity: 0.75; pointer-events: none; }

/* ── COUNTRY SEARCH ─────────────────────────────────────────────────────────── */
.searchable-country { position: relative; }
.country-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 100;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); box-shadow: 0 16px 40px rgba(18,12,49,0.12);
  overflow: hidden; max-height: 220px; overflow-y: auto;
}
.country-results:not(.open) { display: none; }
.country-results button {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.875rem; padding: 9px 12px; width: 100%; text-align: left;
}
.country-results button:hover { background: var(--sky); }

/* ── PROGRESS BAR ───────────────────────────────────────────────────────────── */
.progress-bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--royal); transition: width 500ms ease; }
.progress-fill.success { background: #22c55e; }
.progress-fill.warning { background: #f59e0b; }
.progress-fill.danger { background: #ef4444; }

/* ── MOBILE BAR ─────────────────────────────────────────────────────────────── */
.mobile-action-bar { display: none; }

/* ── EMPTY STATE ────────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px;
  border: 1px dashed var(--line); border-radius: 18px;
  color: var(--muted);
}
.empty-state svg { opacity: 0.3; margin-bottom: 14px; }
.empty-state h2 { font-size: 1.1rem; color: var(--navy); margin: 0 0 6px; }
.empty-state p { font-size: 0.875rem; margin: 0; line-height: 1.6; max-width: 400px; }
.empty-state p strong { color: var(--navy); font-weight: 700; }

/* ── MUTED ──────────────────────────────────────────────────────────────────── */
.muted-copy, .empty-inline { color: var(--muted); }

/* ── TAG ────────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; border-radius: 8px;
  background: var(--sky); color: var(--royal);
  font-size: 0.72rem; font-weight: 900; padding: 4px 9px;
}

/* ── ACCORDION ──────────────────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.accordion-item > button {
  width: 100%; border: 0; background: #f8fafb; color: var(--navy);
  cursor: pointer; font: inherit; font-weight: 800; font-size: 0.875rem;
  padding: 13px 16px; text-align: left;
}
.accordion-item > div { padding: 16px; }

/* ── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes platformSpin { to { transform: rotate(360deg); } }
@keyframes urgentPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.module-region > * { animation: fadeIn 220ms ease; }

/* ─── RESPONSIVE — TABLET ───────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .platform-sidebar-toggle { display: inline-grid; }
  .platform-shell { grid-template-columns: 1fr; }
  .platform-sidebar {
    position: fixed; inset: 62px auto 0 0; z-index: 90;
    width: min(88vw, 310px); max-height: none; border-radius: 0 18px 18px 0;
    transform: translateX(-108%); transition: transform 200ms ease;
  }
  .platform-sidebar.open { transform: translateX(0); box-shadow: 10px 0 40px rgba(18,12,49,0.18); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-settings-grid { grid-template-columns: 1fr; }
  .tail-settings-card-wide { grid-row: auto; }
  .user-chip-info { display: block; }
}

/* ─── OVERVIEW ENHANCEMENTS ─────────────────────────────────────────────────── */

/* KPI card icon slot */
.kpi-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
}
.kpi-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-icon.ci-blue   { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.kpi-icon.ci-green  { background: linear-gradient(135deg,#22c55e,#15803d); }
.kpi-icon.ci-purple { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.kpi-icon.ci-amber  { background: linear-gradient(135deg,#f59e0b,#b45309); }
.kpi-icon.ci-red    { background: linear-gradient(135deg,#ef4444,#b91c1c); }
.kpi-icon.ci-teal   { background: linear-gradient(135deg,#0d9488,#0f766e); }
.kpi-icon.ci-indigo { background: linear-gradient(135deg,#4f46e5,#3730a3); }
.kpi-icon.ci-sky    { background: linear-gradient(135deg,#0284c7,#075985); }

/* Pipeline stage summary cells */
.pipeline-summary-grid {
  display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 6px;
}
.pipeline-stage-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12px 4px 10px;
  border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: 0 0 12px 12px;
  background: var(--white); transition: box-shadow 140ms, transform 140ms;
  min-height: 68px;
}
.pipeline-stage-cell:hover {
  box-shadow: 0 4px 14px rgba(18,12,49,0.08);
  transform: translateY(-2px);
}
.pipeline-stage-count {
  font-size: 1.45rem; font-weight: 900; line-height: 1;
}
.pipeline-stage-label {
  font-size: 0.63rem; color: var(--muted); font-weight: 700;
  margin-top: 5px; line-height: 1.25; text-align: center;
}

/* Document remove button */
.doc-remove-btn {
  color: #dc2626;
  border: 1px solid #fca5a5;
  background: transparent;
}
.doc-remove-btn:hover { background: #fff5f5; border-color: #dc2626; }
.doc-remove-btn:disabled { opacity: 0.5; pointer-events: none; }

/* Notification icon color variants */
.notif-icon.ni-urgent  { background: #fff5f5; color: #dc2626; }
.notif-icon.ni-invoice { background: #f0fdf4; color: #15803d; }
.notif-icon.ni-visa    { background: #faf5ff; color: #7e22ce; }
.notif-icon.ni-booking { background: #eff6ff; color: #1d4ed8; }
.notif-icon.ni-default { background: var(--sky); color: var(--royal); }

@media (max-width: 1100px) {
  .pipeline-summary-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

/* ─── RESPONSIVE — MOBILE ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .platform-topbar { padding: 8px 12px; flex-wrap: wrap; min-height: auto; }
  .topbar-search { display: none; }
  .platform-brand-wrap { flex: 1; }
  .platform-top-actions { gap: 6px; }
  .platform-shell { width: min(100% - 20px, var(--max)); margin-top: 14px; margin-bottom: 90px; }
  .platform-page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .kpi-grid, .dashboard-grid, .dashboard-grid-3, .analytics-grid,
  .document-grid, .invoice-grid, .fleet-grid, .traveler-grid { grid-template-columns: 1fr; }
  .tail-settings-card { padding: 16px; border-radius: 14px; }
  .tail-settings-head { margin-bottom: 16px; }
  .tail-form-grid { grid-template-columns: 1fr; gap: 13px; }
  .tail-form-actions { justify-content: stretch; }
  .tail-form-actions .btn { width: 100%; }
  .pipeline-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .kanban { grid-template-columns: repeat(8, minmax(190px, 220px)); }
  .service-row { grid-template-columns: 1fr 100px 44px; }
  .detail-list { grid-template-columns: 1fr; }
  .mobile-action-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 85;
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px;
    border: 1px solid var(--line); border-radius: 18px;
    background: rgba(255,255,255,0.96); box-shadow: 0 14px 40px rgba(18,12,49,0.16);
    padding: 6px; backdrop-filter: blur(16px);
  }
  .mobile-action-bar a, .mobile-action-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 52px; border: 0; border-radius: 13px;
    background: var(--sky); color: var(--navy); cursor: pointer;
    font: inherit; font-size: 0.7rem; font-weight: 800; text-align: center;
    text-decoration: none;
  }
  .responsive-table table, .responsive-table thead,
  .responsive-table tbody, .responsive-table th,
  .responsive-table td, .responsive-table tr { display: block; min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tr { border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin-bottom: 10px; padding: 8px; }
  .responsive-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 7px 6px; font-size: 0.83rem; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-weight: 800; font-size: 0.78rem; flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DOCUMENT BUILDER — Invoice / Estimate full-page editor
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container */
.doc-builder {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 48px;
  font-size: 0.88rem;
}

/* Top action bar */
.doc-builder-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: #f5f7fc;
  z-index: 20;
}
.doc-builder-heading {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.doc-builder-actions { display: flex; gap: 8px; align-items: center; }
.doc-back-btn { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.doc-back-btn:hover { color: var(--navy); }

/* Each section card */
.doc-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 12px;
  overflow: hidden;
}

/* Collapsible section toggle */
.doc-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.doc-collapse-toggle:hover { background: var(--surface); }
.doc-chevron { flex-shrink: 0; transition: transform 180ms ease; }
.doc-collapsible[data-open="0"] .doc-chevron { transform: rotate(-90deg); }
.doc-section-body { padding: 0 18px 16px; }

/* Business panel: 3 columns */
.doc-business-panel {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: flex-start;
  padding-top: 4px;
}
.doc-logo-col { display: flex; flex-direction: column; align-items: flex-start; }
.doc-logo-box {
  width: 90px;
  height: 60px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}
.doc-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.doc-remove-logo { color: var(--royal); }

/* Editable doc title + summary */
.doc-title-col { display: flex; flex-direction: column; gap: 8px; }
.doc-doc-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  background: transparent;
  text-align: right;
  transition: border-color 120ms;
  align-self: flex-end;
  min-width: 140px;
}
.doc-doc-title:focus { border-color: var(--royal); outline: none; background: var(--surface); }
.doc-summary-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.83rem;
  resize: vertical;
  background: var(--surface);
  color: var(--muted);
}
.doc-summary-input:focus { outline: none; border-color: var(--royal); }

/* Business info (right column) */
.doc-biz-col { text-align: right; line-height: 1.7; }
.doc-biz-name { display: block; font-size: 0.9rem; font-weight: 800; color: var(--navy); }
.doc-biz-line { font-size: 0.8rem; color: #444; }

/* Meta section: customer + fields side-by-side */
.doc-meta-section { padding: 18px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }

/* Customer picker */
.doc-customer-col { position: relative; }
.doc-customer-picker {
  width: 100%;
  min-height: 120px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  background: var(--surface);
  transition: border-color 140ms, background 140ms;
  padding: 16px;
}
.doc-customer-picker:hover { border-color: var(--royal); background: #f0f4ff; color: var(--royal); }
.doc-add-cust-lbl { font-size: 0.83rem; font-weight: 600; }

.doc-customer-selected {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.doc-customer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.doc-customer-name { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.doc-customer-email { font-size: 0.78rem; color: var(--muted); }
.doc-customer-clear {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--muted); line-height: 1;
}
.doc-customer-clear:hover { color: var(--navy); }

.doc-customer-search-wrap { position: relative; display: block; }
.doc-customer-search-input {
  width: 100%; border: 1.5px solid var(--royal); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 0.85rem;
  background: var(--white); outline: none;
  box-sizing: border-box;
}
.doc-customer-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 50; max-height: 220px; overflow-y: auto;
}
.doc-cust-result {
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.doc-cust-result:last-child { border-bottom: none; }
.doc-cust-result:hover { background: var(--surface); }
.doc-cust-result strong { display: block; font-size: 0.88rem; }
.doc-cust-result span  { color: var(--muted); font-size: 0.78rem; }
.doc-cust-none { color: var(--muted); cursor: default; }
.doc-cust-none:hover { background: none; }

/* Field rows (right side of meta section) */
.doc-fields-col { display: flex; flex-direction: column; gap: 2px; }
.doc-field-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 8px;
}
.doc-field-row:hover { background: var(--surface); }
.doc-field-label { font-size: 0.83rem; color: #555; font-weight: 500; }
.doc-field-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  background: var(--white);
  transition: border-color 120ms;
  width: 100%;
  box-sizing: border-box;
}
.doc-field-input:focus { outline: none; border-color: var(--royal); }
.doc-field-hint { font-size: 0.75rem; color: var(--muted); grid-column: 2; margin-top: -4px; padding-left: 2px; }

/* Items section */
.doc-items-section { padding: 16px 18px; }
.doc-items-toolbar { margin-bottom: 10px; }

.doc-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.doc-items-table thead tr {
  background: var(--surface);
  border-radius: 8px;
}
.doc-items-table th {
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.doc-items-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.doc-items-table tbody tr:last-child td { border-bottom: none; }
.doc-items-table .col-desc  { width: auto; }
.doc-items-table .col-qty   { width: 90px; text-align: center; }
.doc-items-table .col-price { width: 110px; text-align: right; }
.doc-items-table .col-amount { width: 110px; text-align: right; font-weight: 700; color: var(--navy); }
.doc-items-table .col-del   { width: 36px; text-align: center; }
.doc-items-table th.col-qty, .doc-items-table th.col-price, .doc-items-table th.col-amount { text-align: right; }

.doc-item-desc, .doc-item-qty, .doc-item-price {
  width: 100%; border: 1px solid transparent; border-radius: 6px;
  padding: 5px 8px; font: inherit; font-size: 0.85rem;
  background: transparent; box-sizing: border-box;
  transition: border-color 120ms, background 120ms;
}
.doc-item-desc:focus, .doc-item-qty:focus, .doc-item-price:focus {
  outline: none; border-color: var(--royal); background: var(--white);
}
.doc-item-desc { text-align: left; }
.doc-item-qty, .doc-item-price { text-align: right; }
.doc-del-item {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; line-height: 1;
  padding: 4px 6px; border-radius: 6px;
}
.doc-del-item:hover { background: #fee2e2; color: #dc2626; }

.doc-add-item-btn {
  margin-top: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--royal);
  gap: 5px;
}
.doc-add-item-btn:hover { color: var(--navy); }

/* Totals */
.doc-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.doc-total-row {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: flex-end;
  font-size: 0.88rem;
  min-width: 320px;
}
.doc-total-row > span:first-child, .doc-total-row > strong:first-child { color: #444; flex: 1; text-align: right; }
.doc-total-row > span:last-child,  .doc-total-row > strong:last-child  { min-width: 110px; text-align: right; font-weight: 700; }
.doc-total-main { font-size: 0.95rem; font-weight: 700; }
.doc-amount-due-row { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; font-size: 1rem; }
.doc-amount-due-row strong { font-size: 1rem; }

.doc-total-currency-wrap { display: flex; align-items: center; gap: 8px; }
.doc-currency-select {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 8px; font: inherit; font-size: 0.8rem;
  background: var(--white); cursor: pointer; max-width: 180px;
}
.doc-currency-select:focus { outline: none; border-color: var(--royal); }

.doc-discount-row { align-items: center; }
.doc-discount-wrap { display: flex; gap: 6px; align-items: center; }
.doc-discount-input {
  width: 80px; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 8px; font: inherit; font-size: 0.85rem; text-align: right;
}
.doc-discount-input:focus { outline: none; border-color: var(--royal); }
.doc-discount-type {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 6px; font: inherit; font-size: 0.82rem;
  background: var(--white); cursor: pointer;
}
.doc-add-discount-btn {
  font-size: 0.82rem; color: var(--royal); font-weight: 600; gap: 4px;
  align-self: flex-end;
}
.doc-add-discount-btn:hover { color: var(--navy); }

/* Notes / Terms */
.doc-notes-section { padding: 16px 18px; }
.doc-notes-label { display: block; font-size: 0.8rem; font-weight: 700; color: #555; margin-bottom: 6px; }
.doc-notes-textarea, .doc-footer-textarea {
  width: 100%; border: 1px solid transparent; border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 0.85rem;
  resize: vertical; color: #555;
  background: transparent; box-sizing: border-box;
  transition: border-color 120ms, background 120ms;
}
.doc-notes-textarea::placeholder, .doc-footer-textarea::placeholder { color: var(--muted); font-style: italic; }
.doc-notes-textarea:hover, .doc-footer-textarea:hover { border-color: var(--line); background: var(--surface); }
.doc-notes-textarea:focus, .doc-footer-textarea:focus { outline: none; border-color: var(--royal); background: var(--white); }
.doc-footer-textarea { color: #777; font-size: 0.82rem; }

/* Responsive */
@media (max-width: 640px) {
  .doc-business-panel { grid-template-columns: 1fr; }
  .doc-biz-col { text-align: left; }
  .doc-doc-title { text-align: left; }
  .doc-meta-section { grid-template-columns: 1fr; }
  .doc-field-row { grid-template-columns: 1fr; }
  .doc-total-row { min-width: auto; gap: 16px; }
}
