/* TRANSACTIONS & REPORTS */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th,
.data-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}
.data-table td {
  font-weight: 600;
  font-size: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 5px;
}
/* =========================================
   REPORTS CATEGORY NAVIGATION
========================================= */

.reports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.reports-tab {
  border: 1px solid #e2e8f0;
  background: var(--surface);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.reports-tab:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
}

.reports-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.staff-tab {
  border: 1px solid #e2e8f0;
  background: var(--surface);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.staff-tab:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
}

.staff-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* =========================================
   REPORT PANELS
========================================= */

.reports-panel {
  display: none;
}

.reports-panel.active {
  display: block;
}

/* =========================================
   SECTION HEADERS
========================================= */

.reports-section-header {
  margin-bottom: 22px;
}

.reports-section-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.reports-section-header p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.report-subtitle {
  margin: 25px 0 14px;
  font-size: 16px;
  font-weight: 800;
}

/* =========================================
   REPORT DETAILS
========================================= */

.report-card-detail {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================
   WIDE REPORT CARD
========================================= */

.report-wide-card {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.report-sales-by-hour {
  margin-top: 15px;
  font-size: 13px;
}

/* =========================================
   ANALYSIS CARDS
========================================= */

.report-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.report-analysis-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.report-analysis-card h4 {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 800;
}

.report-empty {
  color: var(--text-muted);
  font-size: 13px;
}

/* =========================================
   COMING SOON
========================================= */

.reports-coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.reports-coming-soon {
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 22px;
}

.reports-coming-soon strong {
  display: block;
  font-size: 15px;
}

.reports-coming-soon span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.history-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.history-filter-group label {
  font-size: 13px;
  font-weight: 700;
}

.history-filter-group select,
.history-filter-group input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;

  border: 1px solid #cbd5e1;
  border-radius: 8px;

  background: var(--surface);

  font-size: 14px;

  box-sizing: border-box;
}

.history-date-range {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;

  margin-top: 8px;
}

.history-filter-actions {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 20px;
}

.history-current-period {
  font-size: 18px;

  font-weight: 800;

  color: var(--text-main);
}

/* =========================================
   HISTORY RESPONSIVE
========================================= */

@media (max-width: 650px) {
  .history-date-range {
    grid-template-columns: 1fr;
  }

  .history-filter-actions {
    flex-direction: column;
  }

  .history-filter-actions button {
    width: 100%;
  }
}

/* =========================================
   HISTORY RESULTS
========================================= */

.history-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 16px;

  margin-bottom: 20px;
}

.history-results-count {
  display: block;

  margin-top: 4px;

  font-size: 12px;

  color: var(--text-muted);
}

.history-category-filter {
  min-width: 190px;

  min-height: 40px;

  padding: 0 12px;

  border: 1px solid #cbd5e1;

  border-radius: 8px;

  background: var(--surface);

  font-size: 13px;
}

.history-results-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

/* =========================================
   HISTORY RECORD
========================================= */

.history-record {
  display: flex;

  justify-content: space-between;

  gap: 18px;

  padding: 16px;

  border: 1px solid #e2e8f0;

  border-radius: 10px;

  background: var(--surface);
}

.history-record-left {
  display: flex;

  gap: 12px;

  min-width: 0;
}

.history-record-icon {
  width: 38px;

  height: 38px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 8px;

  background: #f1f5f9;

  font-size: 18px;
}

.history-record-content {
  min-width: 0;
}

.history-record-title {
  font-size: 14px;

  font-weight: 800;

  color: var(--text-main);
}

.history-record-description {
  margin-top: 4px;

  font-size: 13px;

  color: var(--text-muted);

  line-height: 1.5;
}

.history-record-right {
  text-align: right;

  flex-shrink: 0;
}

.history-record-amount {
  font-size: 14px;

  font-weight: 800;
}

.history-record-date {
  margin-top: 5px;

  font-size: 11px;

  color: var(--text-muted);
}

.history-record-meta {
  margin-top: 6px;

  font-size: 11px;

  color: var(--text-muted);
}

/* =========================================
   HISTORY EMPTY
========================================= */

.history-empty {
  padding: 35px 15px;

  text-align: center;

  color: var(--text-muted);

  font-size: 13px;
}

/* =========================================
   HISTORY RESPONSIVE
========================================= */

@media (max-width: 650px) {
  .history-results-header {
    flex-direction: column;

    align-items: stretch;
  }

  .history-category-filter {
    width: 100%;
  }

  .history-record {
    flex-direction: column;

    gap: 10px;
  }

  .history-record-right {
    text-align: left;
  }

  .history-date-range {
    grid-template-columns: 1fr;
  }

  .history-filter-actions {
    flex-direction: column;
  }

  .history-filter-actions button {
    width: 100%;
  }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .report-analysis-grid {
    grid-template-columns: 1fr;
  }

  .reports-coming-soon-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .reports-tabs {
    flex-direction: column;
  }

  .reports-tab {
    width: 100%;
    text-align: left;
  }

  .staff-tab {
    width: 100%;
    text-align: left;
  }
}
