/* Overview Dashboard Styles */

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.kpi-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: hsl(var(--foreground-secondary));
  margin: 0;
}

.kpi-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.kpi-value-section {
  margin-bottom: 1rem;
}

.kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1;
  margin: 0;
}

.kpi-delta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.kpi-delta-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.kpi-delta-value {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.kpi-trend-up {
  color: hsl(var(--success));
}

.kpi-trend-down {
  color: hsl(var(--destructive));
}

.kpi-trend-neutral {
  color: hsl(var(--foreground-muted));
}

.kpi-sparkline {
  height: 40px;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
  border-radius: var(--radius);
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0.25rem;
  overflow: hidden;
}

.sparkline-bar {
  flex: 1;
  background: hsl(var(--primary) / 0.6);
  border-radius: 1px;
  margin: 0 1px;
  min-height: 2px;
  transition: all var(--transition-fast);
}

.sparkline-bar:hover {
  background: hsl(var(--primary));
}

/* Revenue Trend Widget */
.revenue-trend-widget {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  grid-column: span 2;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.timeframe-selector {
  display: flex;
  background: hsl(var(--surface-secondary));
  border-radius: var(--radius);
  padding: 0.25rem;
}

.timeframe-btn {
  padding: 0.375rem 0.75rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground-secondary));
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeframe-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.timeframe-btn:hover:not(.active) {
  background: hsl(var(--surface-tertiary));
}

.chart-container {
  height: 300px;
  background: hsl(var(--surface-secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chart-placeholder {
  text-align: center;
  color: hsl(var(--foreground-muted));
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: hsl(var(--primary));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#chartGradient);
  opacity: 0.3;
}

.chart-grid {
  stroke: hsl(var(--border));
  stroke-width: 1;
  opacity: 0.5;
}

.chart-tooltip {
  position: absolute;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 10;
}

/* Top Products Widget */
.top-products-widget {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Compact Top Products v2 (dashboard small card) */
.products-widget.products-v2 {
  background: linear-gradient(140deg, #0c1217, #141d25 55%, #1b2730);
  border: 1px solid #1f2b33;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.products-widget.products-v2 .tp-header {
  padding: .85rem 1rem .75rem 1rem;
  border-bottom: 1px solid #1f2b33;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.products-widget.products-v2 h3 {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.products-widget.products-v2 .tp-live-badge {
  background: #1e3a8a;
  color: #93c5fd;
  font-size: .55rem;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .5px;
  font-weight: 600;
}

.products-widget.products-v2 .tp-sub {
  margin: .2rem 0 0;
  font-size: .6rem;
  font-weight: 500;
  color: #90a4b8;
  letter-spacing: .3px;
}

.products-widget.products-v2 .tp-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
}

.products-widget.products-v2 .tp-range,
.products-widget.products-v2 .tp-sort {
  display: flex;
  background: #101820;
  border: 1px solid #1f2b33;
  border-radius: 8px;
  overflow: hidden;
}

.products-widget.products-v2 .tp-range button,
.products-widget.products-v2 .tp-sort button {
  all: unset;
  cursor: pointer;
  padding: .32rem .55rem;
  font-size: .55rem;
  color: #8fa6bb;
  font-weight: 500;
  letter-spacing: .4px;
}

.products-widget.products-v2 .tp-range button.active,
.products-widget.products-v2 .tp-sort button.active {
  background: #1e3a8a;
  color: #fff;
}

.products-widget.products-v2 .tp-range button:not(.active):hover,
.products-widget.products-v2 .tp-sort button:not(.active):hover {
  background: #182530;
  color: #c9d6e3;
}

.products-widget.products-v2 .tp-view-all {
  all: unset;
  cursor: pointer;
  font-size: .6rem;
  color: #3b82f6;
  font-weight: 600;
  padding: .2rem .1rem;
}

.products-widget.products-v2 .tp-view-all:hover {
  text-decoration: underline;
}

.products-widget.products-v2 .tp-meta-bar {
  display: flex;
  gap: 1rem;
  padding: .55rem 1rem .5rem;
  background: #10171e;
  border-bottom: 1px solid #1f2b33;
  font-size: .55rem;
}

.products-widget.products-v2 .tp-meta-item span {
  display: block;
  opacity: .55;
  font-weight: 500;
}

.products-widget.products-v2 .tp-meta-item strong {
  display: block;
  font-size: .65rem;
  color: #e2e8f0;
  margin-top: 2px;
  font-weight: 600;
}

.products-widget.products-v2 .tp-list {
  flex: 1;
  padding: .6rem .75rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.products-widget.products-v2 .tp-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  font-size: .65rem;
  color: #cbd5e1;
  padding: .4rem .25rem;
}

.products-widget.products-v2 .tp-mini-row {
  display: grid;
  grid-template-columns: 22px 1fr .9fr .7fr 70px 78px;
  gap: .4rem;
  align-items: center;
  background: #121d26;
  border: 1px solid #1d2a34;
  padding: .45rem .5rem;
  border-radius: 8px;
  font-size: .55rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.products-widget.products-v2 .tp-mini-row:hover {
  background: #18232c;
  border-color: #243543;
}

.products-widget.products-v2 .tp-mini-row .rk {
  font-weight: 600;
  color: #60a5fa;
  text-align: center;
}

.products-widget.products-v2 .tp-mini-row .rev {
  font-weight: 600;
  color: #10b981;
}

.products-widget.products-v2 .tp-mini-row .qty {
  font-weight: 600;
  color: #f59e0b;
}

.products-widget.products-v2 .tp-mini-row .bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.products-widget.products-v2 .tp-mini-row .bar {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.products-widget.products-v2 .tp-mini-row .bar.qty {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.products-widget.products-v2 .tp-mini-row .shares {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
}

.products-widget.products-v2 .tp-mini-row .shares .share {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  background: #1e293b;
  color: #e2e8f0;
  text-align: center;
}

.products-widget.products-v2 .tp-mini-row .shares .share.qty {
  background: #392f08;
  color: #fcd34d;
}

@media (max-width:1020px) {
  .products-widget.products-v2 .tp-mini-row {
    grid-template-columns: 22px 1fr .9fr .7fr 60px 68px;
  }
}

@media (max-width:880px) {
  .products-widget.products-v2 .tp-meta-bar {
    flex-wrap: wrap;
  }
}

/* end compact v2 */

/* Notification container priority layering */
#notification-container.notification-container {
  z-index: 3000 !important;
  position: fixed;
  top: 12px;
  right: 12px;
  pointer-events: none;
}

html[dir="rtl"] #notification-container.notification-container,
html[lang="ar"] #notification-container.notification-container,
html.rtl #notification-container.notification-container {
  right: auto !important;
  left: 12px !important;
}

#notification-container.notification-container .notification {
  pointer-events: auto;
}

/* === Redesigned Top Products (v2) === */
.top-products-widget.redesigned {
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: visible;
  background: linear-gradient(145deg, #0f1824, #0e1a28 55%, #102033);
  border: 1px solid #1f2c3a;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.top-products-widget.redesigned .widget-header.redesigned {
  margin-bottom: .65rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #1f2c3a;
}

.top-products-widget.redesigned .tp-badge {
  background: #1e3a8a;
  color: #93c5fd;
  font-size: .55rem;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
}

.top-products-widget.redesigned .tp-meta-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 0 0 .65rem;
  font-size: .6rem;
}

.top-products-widget.redesigned .tp-meta span {
  display: block;
  opacity: .55;
  font-weight: 500;
  letter-spacing: .3px;
}

.top-products-widget.redesigned .tp-meta strong {
  font-weight: 600;
  font-size: .75rem;
  color: #e2e8f0;
}

.top-products-widget.redesigned .tp-grid {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .62rem;
}

.top-products-widget.redesigned .tp-grid-head {
  display: grid;
  grid-template-columns: 30px 1.2fr .8fr .9fr .7fr .9fr .9fr;
  gap: .6rem;
  padding: .4rem .55rem;
  background: #172332;
  border: 1px solid #223241;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #cbd5e1;
}

.top-products-widget.redesigned .tp-row {
  display: grid;
  grid-template-columns: 30px 1.2fr .8fr .9fr .7fr .9fr .9fr;
  gap: .6rem;
  align-items: center;
  padding: .5rem .55rem;
  border: 1px solid #1c2835;
  border-radius: 8px;
  background: #13202e;
  cursor: pointer;
  position: relative;
}

.top-products-widget.redesigned .tp-row:hover {
  background: #19293a;
  border-color: #274058;
}

.top-products-widget.redesigned .tp-rank {
  font-weight: 600;
  color: #60a5fa;
  text-align: center;
}

.top-products-widget.redesigned .tp-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-products-widget.redesigned .tp-name-text {
  font-weight: 600;
  font-size: .7rem;
  color: #f1f5f9;
}

.top-products-widget.redesigned .tp-sku {
  font-family: ui-monospace, monospace;
  font-size: .55rem;
  opacity: .6;
}

.top-products-widget.redesigned .tp-revenue {
  font-weight: 600;
  color: #10b981;
  font-size: .7rem;
}

.top-products-widget.redesigned .tp-qty {
  font-weight: 600;
  color: #eab308;
  font-size: .65rem;
}

.top-products-widget.redesigned .tp-share {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.top-products-widget.redesigned .tp-bar-wrap {
  flex: 1;
  height: 5px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.top-products-widget.redesigned .tp-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 4px;
}

.top-products-widget.redesigned .tp-bar-fill.tp-bar-qty {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.top-products-widget.redesigned .tp-share-val {
  font-weight: 600;
  font-size: .55rem;
  min-width: 34px;
  text-align: right;
  opacity: .85;
}

.top-products-widget.redesigned .tp-bars-sm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 96px;
}

.top-products-widget.redesigned .tp-bar {
  height: 4px;
  border-radius: 3px;
  display: block;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.top-products-widget.redesigned .tp-bar.tp-bar-qty {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.top-products-widget.redesigned .tp-legend {
  display: flex;
  gap: 1.2rem;
  margin-top: .75rem;
  font-size: .55rem;
  opacity: .75;
}

.top-products-widget.redesigned .tp-legend .lg-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.top-products-widget.redesigned .tp-legend .lg-box.rev {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.top-products-widget.redesigned .tp-legend .lg-box.qty {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.top-products-widget.redesigned .tp-col-hide-sm {
  display: none;
}

@media (min-width:880px) {
  .top-products-widget.redesigned .tp-col-hide-sm {
    display: block;
  }

  .top-products-widget.redesigned .tp-grid-head,
  .top-products-widget.redesigned .tp-row {
    grid-template-columns: 30px 1.2fr .9fr .9fr .7fr .9fr .9fr;
  }
}

.top-products-widget.redesigned .tp-fallback {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .6rem;
  margin-top: .3rem;
}

.top-products-widget.redesigned .tp-fallback .tp-row-fallback {
  display: grid;
  grid-template-columns: 26px 1fr .8fr .5fr;
  gap: .4rem;
  padding: .35rem .4rem;
  background: #13202e;
  border: 1px solid #1c2835;
  border-radius: 6px;
}

.top-products-widget.redesigned .tp-fallback .tp-row-fallback .rank {
  color: #60a5fa;
  font-weight: 600;
}

/* end redesigned top products */

.product-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--surface-secondary));
  border-radius: var(--radius);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.product-item:hover {
  background: hsl(var(--surface-tertiary));
}

.product-rank {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: hsl(var(--primary));
  min-width: 2rem;
  text-align: center;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}

.product-sku {
  font-size: var(--font-size-sm);
  color: hsl(var(--foreground-secondary));
  font-family: 'Courier New', monospace;
}

.product-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.product-revenue {
  text-align: right;
}

.revenue-amount {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: hsl(var(--success));
}

.revenue-percentage {
  font-size: var(--font-size-sm);
  color: hsl(var(--foreground-secondary));
}

.product-progress {
  width: 80px;
  height: 6px;
  background: hsl(var(--surface-tertiary));
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 3px;
  transition: width var(--transition-slow);
}

/* Alerts Widget */
.alerts-widget {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  grid-column: span 3;
}

.alerts-banner {
  background: linear-gradient(135deg, hsl(var(--destructive) / 0.1), hsl(var(--warning) / 0.1));
  border: 1px solid hsl(var(--destructive) / 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--destructive));
  animation: pulse-soft 2s infinite;
}

.banner-text {
  flex: 1;
}

.banner-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}

.banner-description {
  font-size: var(--font-size-sm);
  color: hsl(var(--foreground-secondary));
  margin: 0;
}

.alert-actions {
  display: flex;
  gap: 0.5rem;
}

.alert-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: hsl(var(--surface-secondary));
  border-radius: var(--radius);
  transition: background-color var(--transition-fast);
}

.alert-item:hover {
  background: hsl(var(--surface-tertiary));
}

.alert-severity {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.severity-critical {
  background: hsl(var(--destructive));
}

.severity-warning {
  background: hsl(var(--warning));
}

.severity-info {
  background: hsl(var(--accent));
}

.alert-content {
  flex: 1;
}

.alert-message {
  font-size: var(--font-size-sm);
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}

.alert-time {
  font-size: var(--font-size-xs);
  color: hsl(var(--foreground-muted));
}

.alert-item-actions {
  display: flex;
  gap: 0.25rem;
}

.alert-action-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground-secondary));
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alert-action-btn:hover {
  background: hsl(var(--surface-tertiary));
  color: hsl(var(--foreground));
}

/* Cash Runway Widget */
.cash-runway-widget {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  grid-column: span 2;
}

.runway-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.runway-stat {
  text-align: center;
  padding: 1rem;
  background: hsl(var(--surface-secondary));
  border-radius: var(--radius);
}

.runway-stat-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.runway-stat-label {
  font-size: var(--font-size-sm);
  color: hsl(var(--foreground-secondary));
}

.runway-chart {
  height: 200px;
  background: hsl(var(--surface-secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
}

.runway-line {
  stroke: hsl(var(--accent));
  stroke-width: 3;
  fill: none;
}

.runway-area {
  fill: hsl(var(--accent) / 0.2);
}

.runway-outflow {
  stroke: hsl(var(--destructive));
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  fill: none;
}

.scenario-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.scenario-btn {
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-secondary));
  color: hsl(var(--foreground-secondary));
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scenario-btn:hover {
  background: hsl(var(--surface-tertiary));
  border-color: hsl(var(--border-hover));
}

.scenario-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* Dashboard Grid Layout */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.grid-span-1 {
  grid-column: span 1;
}

.grid-span-2 {
  grid-column: span 2;
}

.grid-span-3 {
  grid-column: span 3;
}

.grid-span-4 {
  grid-column: span 4;
}

.grid-span-5 {
  grid-column: span 5;
}

.grid-span-6 {
  grid-column: span 6;
}

.grid-span-7 {
  grid-column: span 7;
}

.grid-span-8 {
  grid-column: span 8;
}

.grid-span-9 {
  grid-column: span 9;
}

.grid-span-10 {
  grid-column: span 10;
}

.grid-span-11 {
  grid-column: span 11;
}

.grid-span-12 {
  grid-column: span 12;
}

/* Animations */
@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .overview-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .revenue-trend-widget {
    grid-column: span 5;
  }

  .cash-runway-widget {
    grid-column: span 3;
  }

  .alerts-widget {
    grid-column: span 8;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .revenue-trend-widget,
  .cash-runway-widget,
  .alerts-widget {
    grid-column: span 1;
  }

  .runway-summary {
    grid-template-columns: 1fr;
  }

  .product-metrics {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .chart-controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeframe-selector {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    padding: 1rem;
  }

  .kpi-value {
    font-size: var(--font-size-2xl);
  }

  .product-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-rank {
    text-align: left;
  }

  .banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .alert-actions {
    width: 100%;
    justify-content: space-between;
  }
}