/* Dashboard Layout */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sales Graph Widget */
.chart-container {
  height: 320px;
  width: 100%;
  position: relative;
}

/* Low Stock Widget & Top Products Widget */
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* List Items */
.list-item-dense {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.list-item-dense:last-child {
  border-bottom: none;
}

.list-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
}

.list-item-info {
  display: flex;
  flex-direction: column;
}

.list-item-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.list-item-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.list-item-right {
  text-align: right;
}

.list-item-value {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Alerts specifically styling */
.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--border-radius-md);
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.alert-row-danger {
  background-color: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger-hover);
}

.alert-row-warning {
  background-color: var(--warning-light);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning-hover);
}

.alert-msg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-msg svg {
  width: 16px;
  height: 16px;
}

/* Custom SVG chart overlays and lines */
.chart-tooltip {
  position: absolute;
  background-color: rgba(17, 24, 39, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  pointer-events: none;
  font-family: var(--font-mono);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  display: none;
  z-index: 10;
}

.chart-axis-line {
  stroke: var(--border-color);
  stroke-width: 1px;
}

.chart-grid-line {
  stroke: var(--border-color);
  stroke-dasharray: 2, 2;
  stroke-width: 1px;
}

.chart-series-line {
  fill: none;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  opacity: 0.15;
}

.chart-label {
  fill: var(--text-secondary);
  font-size: 10px;
  font-family: var(--font-body);
}

.chart-point {
  stroke-width: 2px;
  cursor: pointer;
  transition: r var(--transition-fast);
}

.chart-point:hover {
  r: 6;
}

@media (max-width: 768px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .chart-container {
    height: 200px;
  }
  
  .panel-body {
    padding: 12px;
  }
  
  .panel-header {
    padding: 12px;
  }
}
