.dashboard-stats {
  margin-bottom: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 992px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.chart-container {
  height: 260px;
  position: relative;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding: 0 0.5rem;
  gap: 4px;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 48px;
}

.chart-bar {
  width: 100%;
  background: var(--color-primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
  opacity: 0.85;
}

.chart-bar-wrapper:hover .chart-bar {
  opacity: 1;
}

.chart-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.customer-profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.customer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.date-field-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.date-field-wrap input {
  flex: 1;
  min-width: 0;
}

.invoice-editor {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .invoice-editor { grid-template-columns: 1fr; }
}

.invoice-summary {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 2px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: var(--color-primary);
}

.invoice-items-table input {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.invoice-items-table .qty-input { width: 70px; }
.invoice-items-table .price-input { width: 110px; }

.add-item-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.settings-logo-preview {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--bg-hover);
}

.settings-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.report-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.report-filters .form-group {
  margin-bottom: 0;
  min-width: 160px;
}

.stock-movement-form {
  background: var(--bg-hover);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.selection-bar .card-body {
  padding: 0.85rem 1rem;
}

.selection-bar strong {
  color: var(--color-primary);
}

table.data-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.profile-tabs-content {
  min-height: 200px;
}
