/* ==========================================================================
   Countivoo Bespoke Financial Cockpit & Dashboard Design System
   Identity: Ink, Warm Sand & Deep Emerald-Teal
   ========================================================================== */

:root {
  --cv-dash-teal: #0f766e;
  --cv-dash-teal-dark: #0d5f59;
  --cv-dash-teal-light: #14b8a6;
  --cv-dash-teal-soft: rgba(15, 118, 110, 0.08);
  --cv-dash-ink: #1c1917;
  --cv-dash-muted: #78716c;
  --cv-dash-surface: #ffffff;
  --cv-dash-canvas: #f6f4ef;
  --cv-dash-border: rgba(28, 25, 23, 0.08);
  --cv-dash-border-subtle: rgba(28, 25, 23, 0.05);
  --cv-dash-radius: 12px;
  --cv-dash-radius-sm: 8px;
  --cv-dash-shadow-sm: 0 1px 3px rgba(20, 32, 28, 0.04), 0 1px 2px rgba(20, 32, 28, 0.02);
  --cv-dash-shadow-md: 0 4px 16px rgba(20, 32, 28, 0.06), 0 1px 4px rgba(20, 32, 28, 0.03);
}

.dash-wrap {
  padding-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   1. Executive Header & Filter Cockpit Bar
   -------------------------------------------------------------------------- */
.cv-cockpit-bar {
  background: var(--cv-dash-surface);
  border-radius: var(--cv-dash-radius);
  border: 1px solid var(--cv-dash-border);
  box-shadow: var(--cv-dash-shadow-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-cockpit-headline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--cv-dash-teal);
}

.cv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: cvPulse 2s infinite ease-in-out;
}

@keyframes cvPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cv-cockpit-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--cv-dash-ink);
  letter-spacing: -0.02em;
}

.cv-cockpit-subtitle {
  font-size: 0.78rem;
  color: var(--cv-dash-muted);
  margin: 0;
}

.cv-filter-presets {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cv-dash-canvas);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--cv-dash-border-subtle);
}

.cv-preset-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cv-dash-muted);
  border-radius: 7px;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.cv-preset-btn:hover {
  color: var(--cv-dash-ink);
  background: rgba(255, 255, 255, 0.7);
}

.cv-preset-btn.active {
  background: #ffffff;
  color: var(--cv-dash-teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cv-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cv-filter-select,
.cv-filter-date {
  height: 34px;
  font-size: 0.8rem;
  border: 1px solid var(--cv-dash-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cv-dash-ink);
  font-weight: 500;
  box-shadow: none;
  transition: border-color 0.15s;
}

.cv-filter-select:focus,
.cv-filter-date:focus {
  border-color: var(--cv-dash-teal);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
  outline: none;
}

.cv-filter-btn-refresh {
  height: 34px;
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--cv-dash-teal);
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.cv-filter-btn-refresh:hover:not(:disabled) {
  background: var(--cv-dash-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Bespoke 4-Pillar Financial Intelligence Cards
   -------------------------------------------------------------------------- */
.cv-pillar-card {
  background: var(--cv-dash-surface);
  border-radius: var(--cv-dash-radius);
  border: 1px solid var(--cv-dash-border);
  box-shadow: var(--cv-dash-shadow-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.cv-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cv-dash-shadow-md);
  border-color: rgba(15, 118, 110, 0.25);
}

/* Distinct Card Accent Tones */
.cv-pillar-card.tone-revenue {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
}
.cv-pillar-card.tone-procure {
  background: linear-gradient(180deg, #ffffff 0%, #fffbf8 100%);
}
.cv-pillar-card.tone-cashflow {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}
.cv-pillar-card.tone-capital {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.cv-pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cv-pillar-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cv-dash-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cv-pillar-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.cv-icon-emerald { background: rgba(15, 118, 110, 0.1); color: var(--cv-dash-teal); }
.cv-icon-amber { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.cv-icon-blue { background: rgba(2, 132, 199, 0.1); color: #0284c7; }
.cv-icon-purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.cv-icon-rose { background: rgba(225, 29, 72, 0.1); color: #e11d48; }

.cv-pillar-main {
  margin-bottom: 0.85rem;
}

.cv-pillar-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cv-dash-ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.cv-pillar-submeta {
  font-size: 0.78rem;
  color: var(--cv-dash-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cv-pillar-submeta .cv-pill-sub {
  background: var(--cv-dash-canvas);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.74rem;
}

/* Pillar Micro-Inset Panel */
.cv-pillar-inset {
  background: rgba(246, 244, 239, 0.65);
  border: 1px solid var(--cv-dash-border-subtle);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.85rem;
}

.cv-inset-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-inset-item {
  display: flex;
  flex-direction: column;
}

.cv-inset-label {
  font-size: 0.7rem;
  color: var(--cv-dash-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv-inset-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cv-dash-ink);
}

.cv-margin-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cv-margin-pill.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.cv-margin-pill.caution {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.cv-progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(28, 25, 23, 0.08);
  border-radius: 99px;
  margin-top: 0.45rem;
  overflow: hidden;
}

.cv-progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0f766e, #10b981);
}

.cv-pillar-footer {
  border-top: 1px solid var(--cv-dash-border-subtle);
  padding-top: 0.75rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cv-dash-teal);
}

.cv-pillar-card:hover .cv-pillar-footer {
  color: var(--cv-dash-teal-dark);
}

.cv-pillar-footer i {
  transition: transform 0.2s ease;
}

.cv-pillar-card:hover .cv-pillar-footer i {
  transform: translateX(3px);
}

/* Overdue Alert Banner in Pillar 4 */
.cv-alert-pill {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cv-alert-pill.alert-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.cv-alert-pill.alert-safe {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* Project Profit Strip (if project close is enabled) */
.cv-project-strip {
  background: linear-gradient(135deg, #14201c 0%, #1e332c 100%);
  color: #ffffff;
  border-radius: var(--cv-dash-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--cv-dash-shadow-sm);
}

.cv-project-strip-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cv-project-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cv-project-strip-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.cv-project-strip-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Quick Reports Categorized Launch Dock
   -------------------------------------------------------------------------- */
.cv-reports-dock {
  background: var(--cv-dash-surface);
  border-radius: var(--cv-dash-radius);
  border: 1px solid var(--cv-dash-border);
  box-shadow: var(--cv-dash-shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.cv-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cv-dock-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cv-dash-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.cv-dock-categories {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cv-dash-canvas);
  padding: 0.2rem;
  border-radius: 8px;
}

.cv-dock-cat-btn {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  color: var(--cv-dash-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.cv-dock-cat-btn.active {
  background: #ffffff;
  color: var(--cv-dash-teal);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cv-report-micro-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--cv-dash-canvas);
  border: 1px solid var(--cv-dash-border-subtle);
  text-decoration: none !important;
  color: var(--cv-dash-ink) !important;
  transition: all 0.18s ease;
  height: 100%;
}

.cv-report-micro-card:hover {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
  box-shadow: var(--cv-dash-shadow-sm);
  color: var(--cv-dash-teal) !important;
}

.cv-report-micro-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cv-report-micro-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   4. Visual Analytics & Action Launchpad
   -------------------------------------------------------------------------- */
.cv-panel {
  background: var(--cv-dash-surface);
  border-radius: var(--cv-dash-radius);
  border: 1px solid var(--cv-dash-border);
  box-shadow: var(--cv-dash-shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cv-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cv-dash-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #faf9f6;
}

.cv-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cv-dash-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.cv-panel-body {
  padding: 1.25rem;
  flex-grow: 1;
}

/* Quick Action 4-Tile Grid */
.cv-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.cv-action-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--cv-dash-border-subtle);
  background: var(--cv-dash-canvas);
  text-decoration: none !important;
  color: var(--cv-dash-ink) !important;
  transition: all 0.18s ease;
}

.cv-action-tile:hover {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--cv-dash-shadow-sm);
  color: var(--cv-dash-teal) !important;
}

.cv-action-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cv-action-tile-text {
  display: flex;
  flex-direction: column;
}

.cv-action-tile-title {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

.cv-action-tile-sub {
  font-size: 0.7rem;
  color: var(--cv-dash-muted);
}

/* Watchlist Item */
.cv-watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--cv-dash-border-subtle);
  background: #ffffff;
  margin-bottom: 0.5rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.15s ease;
}

.cv-watchlist-item:hover {
  background: rgba(15, 118, 110, 0.04);
  border-color: rgba(15, 118, 110, 0.2);
}

.cv-watchlist-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cv-watchlist-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.cv-watchlist-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cv-dash-ink);
}

.cv-watchlist-sub {
  font-size: 0.72rem;
  color: var(--cv-dash-muted);
}

.cv-watchlist-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cv-dash-ink);
  text-align: right;
}

/* --------------------------------------------------------------------------
   5. Operational Trio (Products, Stock & Sales)
   -------------------------------------------------------------------------- */
.cv-product-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cv-dash-border-subtle);
}

.cv-product-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cv-rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cv-dash-canvas);
  color: var(--cv-dash-muted);
  flex-shrink: 0;
}

.cv-rank-1 { background: #fef3c7; color: #b45309; }
.cv-rank-2 { background: #f1f5f9; color: #475569; }
.cv-rank-3 { background: #fed7aa; color: #c2410c; }

.cv-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--cv-dash-border-subtle);
  flex-shrink: 0;
}

.cv-product-info {
  flex-grow: 1;
  min-width: 0;
}

.cv-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cv-dash-ink);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-product-meta {
  font-size: 0.75rem;
  color: var(--cv-dash-muted);
}

/* Stock Progress in Low Stock Card */
.cv-stock-meter {
  width: 70px;
  height: 5px;
  background: rgba(28, 25, 23, 0.08);
  border-radius: 99px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.cv-stock-meter-fill {
  height: 100%;
  border-radius: 99px;
}

.cv-stock-meter-fill.danger { background: #ef4444; }
.cv-stock-meter-fill.warning { background: #f59e0b; }
.cv-stock-meter-fill.success { background: #10b981; }

/* Timeline stream in Recent Sales */
.cv-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cv-dash-border-subtle);
}

.cv-timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cv-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cv-dash-teal);
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* --------------------------------------------------------------------------
   6. Modern Segmented Transaction Desk
   -------------------------------------------------------------------------- */
.cv-tab-nav {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem 0;
  background: #faf9f6;
  border-bottom: 1px solid var(--cv-dash-border-subtle);
  overflow-x: auto;
}

.cv-tab-btn {
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cv-dash-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cv-tab-btn:hover {
  color: var(--cv-dash-ink);
}

.cv-tab-btn.active {
  color: var(--cv-dash-teal);
  border-bottom-color: var(--cv-dash-teal);
  background: #ffffff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.cv-tab-count {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  background: var(--cv-dash-canvas);
  color: var(--cv-dash-muted);
}

.cv-tab-btn.active .cv-tab-count {
  background: rgba(15, 118, 110, 0.1);
  color: var(--cv-dash-teal);
}

.cv-table {
  width: 100%;
  margin-bottom: 0;
}

.cv-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cv-dash-muted);
  padding: 0.75rem 1rem;
  background: #faf9f6;
  border-bottom: 1px solid var(--cv-dash-border-subtle);
}

.cv-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--cv-dash-border-subtle);
  font-size: 0.83rem;
}

.cv-party-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--cv-dash-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.cv-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 650;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

.cv-status-chip.paid {
  background: #ecfdf5;
  color: #065f46;
}

.cv-status-chip.partial {
  background: #fffbeb;
  color: #92400e;
}

.cv-status-chip.pending {
  background: #eff6ff;
  color: #1e40af;
}

.cv-status-chip.danger {
  background: #fef2f2;
  color: #991b1b;
}

.cv-status-chip .cv-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Legend in Chart Header */
.cv-chart-legend-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cv-dash-muted);
}

.cv-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cv-legend-dot-sales {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cv-dash-teal);
}

.cv-legend-dot-purchase {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #b45309;
}

#salesPurchaseChart {
  width: 100% !important;
  height: 320px !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .cv-cockpit-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cv-filter-presets {
    overflow-x: auto;
  }
  .cv-filter-controls {
    width: 100%;
  }
  .cv-action-grid {
    grid-template-columns: 1fr;
  }
  #salesPurchaseChart {
    height: 250px !important;
  }
}

@media (max-width: 575.98px) {
  .cv-pillar-value {
    font-size: 1.4rem;
  }
  .cv-cockpit-bar {
    padding: 0.85rem;
  }
  .cv-dock-categories {
    overflow-x: auto;
    width: 100%;
  }
}
