.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: width 0.3s ease;
}

.sidebar-narrow {
  width: 70px;
}

.main-content {
  flex: 1;
  margin-left: 250px;
  height: 100vh;
  overflow-y: auto;
  background-color: #f8f9fa;
  transition: margin-left 0.3s ease;
}

.main-content-narrow {
  margin-left: 70px;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #34495e;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  min-height: 80px;
}

.sidebar-header-content {
  flex: 1;
  min-width: 0;
}

.sidebar-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #ecf0f1;
  transition: opacity 0.3s ease;
}

.sidebar-header p {
  margin: 0;
  color: #bdc3c7;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.sidebar-logo {
  margin-left: -30px;
  max-width: 180px;
  height: 110px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: left center;
     object-position: left center;
  transition: opacity 0.3s ease;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: #ecf0f1;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.sidebar-toggle-btn:hover {
  background-color: #34495e;
}

/* Narrow sidebar styles */
.sidebar-narrow .sidebar-header-content {
  display: none;
}

.sidebar-narrow .sidebar-header {
  padding: 1rem 0.5rem;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.sidebar-narrow .sidebar-toggle-btn {
  margin-top: 0;
}

.sidebar-narrow .nav-link {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-narrow .nav-link::after {
  content: attr(title);
  position: absolute;
  left: 80px;
  background-color: #2c3e50;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1001;
  border: 1px solid #34495e;
}

.sidebar-narrow .nav-link:hover::after {
  opacity: 1;
}

.sidebar-narrow .sidebar-footer {
  padding: 1rem 0.5rem;
}

.sidebar-narrow .user-info {
  display: none;
}

.sidebar-narrow .logout-btn {
  padding: 0.4rem;
  font-size: 1.1rem;
  background-color: #34495e;
  color: #ecf0f1;
  border: 1px solid #4a5f7a;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  min-height: 32px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.2s ease;
}

.sidebar-narrow .logout-btn:hover {
  background-color: #4a5f7a;
  color: white;
  border-color: #5a6f8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-menu {
  flex: 1;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #ecf0f1;
  text-decoration: none;
  transition: background-color 0.2s;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background-color: #34495e;
  color: #ecf0f1;
}

.nav-link.active {
  background-color: #3498db;
  border-left-color: #2980b9;
  color: white;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid #34495e;
}

.user-info {
  margin-bottom: 1rem;
}

.user-info p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
}

.user-role {
  color: #bdc3c7;
  text-transform: capitalize;
}

.logout-btn {
  width: 100%;
  background-color: #6c757d;
  border: none;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Header */
.mobile-header {
  display: none;
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 60px;
  box-sizing: border-box;
}

.mobile-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.mobile-header-logo {
  height: 30px;
  width: auto;
  max-width: 120px;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: left center;
     object-position: left center;
  margin-left: -5px;
}

/* Hamburger Button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn:hover span {
  background-color: #ecf0f1;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .mobile-header {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .sidebar-open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    margin-top: 60px;
    height: calc(100vh - 60px);
  }

  .main-content-narrow {
    margin-left: 0;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #34495e;
  }

  .sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #34495e;
  }

  .user-info {
    margin-bottom: 1rem;
  }

  .logout-btn {
    width: 100%;
  }

  /* Hide toggle button on mobile */
  .sidebar-toggle-btn {
    display: none;
  }

  /* Reset narrow sidebar styles on mobile */
  .sidebar-narrow {
    width: 100%;
  }

  .sidebar-narrow .sidebar-header {
    padding: 1.5rem;
    justify-content: flex-start;
  }

  .sidebar-narrow .sidebar-header-content h2,
  .sidebar-narrow .sidebar-header-content p {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-narrow .nav-link {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: inherit;
  }

  .sidebar-narrow .nav-link::after {
    display: none;
  }

  .sidebar-narrow .sidebar-footer {
    padding: 1.5rem;
  }

  .sidebar-narrow .user-info {
    display: block;
    margin-bottom: 1rem;
  }

  .sidebar-narrow .logout-btn {
    padding: 0.75rem 1rem;
    font-size: inherit;
  }
}
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #7f8c8d;
  font-size: 1rem;
  margin: 0;
}

.login-logo {
  height: 80px;
  width: auto;
  max-width: 300px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 1rem;
}

.login-form {
  margin-bottom: 1.5rem;
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}

.login-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #ecf0f1;
}

.login-footer p {
  color: #95a5a6;
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 480px) {
  .login-container {
    padding: 0.5rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 2rem;
  }
}
/* Production Schedule Gantt Chart Styles */
.gantt-container {
  width: 100%;
  overflow-x: auto;
}

.gantt .grid-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.gantt .grid-row {
  border-bottom: 1px solid #eee;
}

.gantt .grid-row:hover {
  background-color: #f9f9f9;
}

.gantt .bar {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gantt .bar:hover {
  opacity: 0.8;
}

.gantt .bar-progress {
  background-color: rgba(255, 255, 255, 0.3);
}

.gantt .bar-label {
  font-size: 12px;
  font-weight: 500;
  fill: white;
  text-anchor: start;
}

.gantt .today-highlight {
  fill: rgba(255, 193, 7, 0.3);
  stroke: #ffc107;
  stroke-width: 2;
}

/* Custom task colors */
.gantt-task-completed {
  fill: #4caf50 !important;
}

.gantt-task-in-progress {
  fill: #2196f3 !important;
}

.gantt-task-pending {
  fill: #ff9800 !important;
}

.gantt-task-urgent {
  fill: #f44336 !important;
}

.gantt-task-high {
  fill: #ff5722 !important;
}

/* Popup styles */
.details-container {
  padding: 10px;
  min-width: 200px;
}

.gantt .bar.gantt-anchor-hidden,
.gantt .bar-wrapper.gantt-anchor-hidden {
  display: none !important;
}

.details-container h5 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.details-container p {
  margin: 5px 0;
  font-size: 12px;
  color: #666;
}

.details-container strong {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gantt-container {
    font-size: 12px;
  }

  .gantt .bar-label {
    font-size: 10px;
  }
}

/* Schedule statistics cards */
.schedule-stats-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.schedule-stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Legend styles */
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.legend-color {
  width: 20px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* View mode controls */
.view-mode-controls {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gantt chart container */
.gantt-chart-container {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 600px; /* Increased from 400px to accommodate taller hour blocks */
}

.gantt-chart-container .gantt {
  width: 100%;
}

/* Empty state */
.gantt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
  text-align: center;
}

.gantt-empty-state svg {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Loading state */
.gantt-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* Error state */
.gantt-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #f44336;
  text-align: center;
  background-color: #ffebee;
  border-radius: 4px;
  margin: 20px 0;
}
/* Sales Reports Page Component Styles */
/* Based on existing design system with Bloom's brand colors */

/* Design Tokens */
:root {
  /* Brand Colors */
  --primary-50: #f0fdfd;
  --primary-100: #e6fafb;
  --primary-200: #ccfbf1;
  --primary-300: #b9f1f2;
  --primary-400: #7fdde0;
  --primary-500: #4fc3c8;
  --primary-600: #37aab0;
  --primary-700: #1b8a90;
  --primary-800: #116b71;
  --primary-900: #145263;

  --accent-50: #fef7f0;
  --accent-100: #fdeee0;
  --accent-200: #fbe6d2;
  --accent-500: #ef793f;
  --accent-600: #d86c39;
  --accent-700: #b3572f;

  --ink-900: #2a2a2a;
  --ink-600: #5a5a5a;

  --background-primary: #faf7f2;
  --background-secondary: #ffffff;
  --background-tertiary: #f8f5f0;

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(42, 42, 42, 0.08);
  --shadow-hover: 0 4px 16px rgba(42, 42, 42, 0.12);
  --shadow-button: 0 2px 4px rgba(239, 121, 63, 0.2);
  --shadow-button-hover: 0 4px 8px rgba(239, 121, 63, 0.3);
  --shadow-primary: 0 2px 4px rgba(79, 195, 200, 0.2);
  --shadow-primary-hover: 0 4px 8px rgba(79, 195, 200, 0.3);
}

/* Base Layout */
.sales-reports-page {
  min-height: 100vh;
  background-color: var(--background-primary);
}

.sales-reports-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.sales-reports-header {
  margin-bottom: 2rem;
}

.sales-reports-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}

.sales-reports-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-600);
}

/* Card Components */
.card {
  background-color: var(--background-secondary);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(79, 195, 200, 0.1);
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(79, 195, 200, 0.2);
}

.card-body {
  padding: 1rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 195, 200, 0.25);
}

.btn-primary {
  background-color: var(--primary-500);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-hover);
}

.btn-accent {
  background-color: var(--accent-500);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-accent:hover:not(:disabled) {
  background-color: var(--accent-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

/* Form Components */
.form-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-900);
}

.input,
.select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: white;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(79, 195, 200, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input {
  padding-left: 2.5rem;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

@media (min-width: 640px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* KPI Color Variants */
.kpi-teal .kpi-icon {
  background-color: var(--primary-500);
}

.kpi-orange .kpi-icon {
  background-color: var(--accent-500);
}

.kpi-green .kpi-icon {
  background-color: #10b981;
}

.kpi-purple .kpi-icon {
  background-color: #8b5cf6;
}

.kpi {
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid;
  transition: all 0.2s ease-in-out;
  background: white;
}

.kpi:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.kpi-teal {
  border-color: rgba(79, 195, 200, 0.3);
}

.kpi-orange {
  border-color: rgba(239, 121, 63, 0.3);
}

.kpi-green {
  border-color: rgba(34, 197, 94, 0.3);
}

.kpi-purple {
  border-color: rgba(168, 85, 247, 0.3);
}

.kpi-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-text {
  flex: 1;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--ink-600);
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-900);
}

.kpi-subtitle {
  font-size: 0.625rem;
  margin-top: 0.125rem;
  color: var(--ink-600);
}

.kpi-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

/* Table Components */
.table-card {
  background-color: var(--background-secondary);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(79, 195, 200, 0.1);
  overflow: hidden;
}

.table-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(79, 195, 200, 0.2);
}

.table-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.table-subtitle {
  font-size: 0.875rem;
  color: var(--ink-600);
  margin-top: 0.25rem;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-wrap {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table thead {
  background-color: var(--background-tertiary);
}

.table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-600);
  border-bottom: 1px solid rgba(79, 195, 200, 0.2);
}

.table th.text-right {
  text-align: right;
}

.table tbody tr {
  background-color: white;
  border-bottom: 1px solid rgba(79, 195, 200, 0.2);
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

.table tbody tr:hover {
  background-color: rgba(79, 195, 200, 0.05);
}

.table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-900);
}

.table td.td-right {
  text-align: right;
}

.table td.text-right {
  text-align: right;
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-red {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Chevron Component */
.chevron {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #f3f4f6;
  color: #9ca3af;
  transition: all 0.2s ease-in-out;
}

.table tbody tr:hover .chevron {
  background-color: rgba(79, 195, 200, 0.1);
  color: var(--primary-700);
}

.chevron svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s ease-in-out;
}

.chevron.expanded svg {
  transform: rotate(90deg);
}

/* Monthly Breakdown */
.monthly-breakdown {
  background-color: var(--background-tertiary);
}

.monthly-breakdown-card {
  margin-left: 3rem;
  background-color: var(--background-secondary);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(79, 195, 200, 0.1);
  overflow: hidden;
}

.monthly-breakdown-header {
  padding: 1.5rem;
  background-color: var(--background-tertiary);
  border-bottom: 1px solid rgba(79, 195, 200, 0.2);
}

.monthly-breakdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.monthly-breakdown-title svg {
  width: 1rem;
  height: 1rem;
  color: var(--ink-600);
}

/* Transaction Details */
.transaction-details {
  background-color: var(--background-tertiary);
}

.transaction-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0;
}

.transaction-details-card h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transaction-details-card h5 svg {
  width: 20px;
  height: 20px;
  color: var(--ink-600);
}

/* Enhanced chevron for month rows */
.table tbody tr.cursor-pointer:hover .chevron {
  background-color: rgba(79, 195, 200, 0.15);
  color: var(--primary-700);
  transform: scale(1.05);
}

.table tbody tr.cursor-pointer:hover {
  background-color: rgba(79, 195, 200, 0.08);
}

/* Transaction table styling */
.transaction-details-card .table {
  margin-top: 12px;
}

.transaction-details-card .table th {
  background-color: #f1f5f9;
  font-size: 0.75rem;
  padding: 8px 12px;
}

.transaction-details-card .table td {
  padding: 8px 12px;
  font-size: 0.8rem;
}

.transaction-details-card .table tbody tr:hover {
  background-color: rgba(79, 195, 200, 0.05);
}

/* Loading States */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-ink-600 {
  color: var(--ink-600);
}

.text-ink-900 {
  color: var(--ink-900);
}

.border-primary-200 {
  border-color: rgba(79, 195, 200, 0.2);
}

.loading-spinner-primary {
  border-color: #4fc3c8;
}

/* Responsive Design */
@media (max-width: 640px) {
  .sales-reports-container {
    padding: 1rem 0.5rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
.App {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.app-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

.main-content {
  flex: 1;
  padding: 2rem;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #666;
  font-size: 1rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.error {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Table Container */
.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  color: #111827;
}

.modal-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header button:hover {
  color: #374151;
}

.modal form {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

/* Enhanced Form Styles */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #fed7aa;
  color: #d97706;
}

/* Button Enhancements */
.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

/* Inventory Summary Widget Styles */
.inventory-summary-widget {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
}

.inventory-summary-widget h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.summary-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-card.clickable {
  cursor: pointer;
}

.summary-card.clickable:hover {
  background: #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.summary-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.summary-icon {
  font-size: 1.2rem;
}

.summary-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.summary-subtitle {
  font-size: 0.75rem;
  color: #888;
}

.alert-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  color: white;
  min-width: 20px;
  text-align: center;
}

.alert-badge.critical {
  background-color: #dc3545;
}

.alert-badge.warning {
  background-color: #fd7e14;
}

/* Card-specific styling */
.shelf-life-card {
  border-left: 4px solid #fd7e14;
}

.low-stock-card {
  border-left: 4px solid #dc3545;
}

.healthy-card {
  border-left: 4px solid #28a745;
}

/* Dashboard layout for quarter-page widgets */
.dashboard-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-widget {
  min-height: 300px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dashboard-widgets {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .summary-card {
    padding: 0.75rem;
    min-height: 80px;
  }

  .summary-value {
    font-size: 1.25rem;
  }
}

/* Loading spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Reports Page Styles */
.page-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.tabs-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  overflow-x: auto;
}

.tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  background-color: #e9ecef;
  color: #333;
}

.tab.active {
  background-color: white;
  color: #007bff;
  border-bottom-color: #007bff;
}

.tab-content {
  padding: 2rem;
  min-height: 500px;
}

.reports-section h2 {
  color: #333;
  margin-bottom: 0.5rem;
}

.reports-section p {
  color: #666;
  margin-bottom: 2rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.daily-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.card-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.card-content {
  color: #666;
}

.card-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.card-content li {
  margin-bottom: 0.25rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.report-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.report-buttons .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #666;
  font-size: 0.875rem;
}

.report-summary {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.report-summary h4 {
  margin: 0 0 1rem 0;
  color: #333;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-weight: 500;
  color: #666;
  font-size: 0.875rem;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #007bff;
}

.table-container {
  overflow-x: auto;
  max-height: 600px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  padding: 0.75rem;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: top;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  color: #333;
  animation: spin 1s linear infinite;
}

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert h4 {
  margin: 0 0 0.5rem 0;
  color: inherit;
}

.alert p {
  margin: 0 0 0.5rem 0;
}

.alert ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Reports responsive adjustments */
@media (max-width: 768px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .daily-reports-grid {
    grid-template-columns: 1fr;
  }

  .report-buttons {
    flex-direction: column;
  }

  .report-buttons .btn {
    width: 100%;
  }

  .tab-content {
    padding: 1rem;
  }

  .table {
    font-size: 0.75rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }
}
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

#root {
  width: 100%;
  min-height: 100vh;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  color: white;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
    color: #213547;
  }
}
