/* ==========================================================================
   Sale / Profit Report (Invoice page) — styles
   Load AFTER css/style.css; reuses the same CSS variables (--navy-*, --amber, etc.)
   ========================================================================== */

.report-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-bottom:16px;
}
.report-company-tabs{
  display:flex; gap:6px; background:var(--card); border:1px solid var(--line);
  padding:4px; border-radius:11px; flex-wrap:wrap;
}
.report-tab{
  padding:8px 16px; font-size:12.5px; font-weight:700; border-radius:8px;
  color:var(--muted); border:0; background:transparent; transition:background .12s ease, color .12s ease;
}
.report-tab.active{ background:var(--navy-800); color:#fff; }
.report-tab.active.\37 up, .report-tab.active[data-c="7up"]{ background:var(--c-7up); }
.report-tab.active[data-c="fresh"]{ background:var(--c-fresh); }
.report-tab.active[data-c="olympic"]{ background:var(--c-olympic); }
.report-actions{ display:flex; gap:8px; }

.report-chip-row{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-bottom:8px; }
.date-chip{
  flex-shrink:0; padding:8px 15px; border-radius:20px; border:1px solid var(--line-strong);
  background:var(--card); font-size:12.5px; font-weight:600; color:var(--ink);
  transition:background .12s ease, color .12s ease, border-color .12s ease;
}
.date-chip.active{ background:var(--navy-800); color:#fff; border-color:var(--navy-800); }

.report-range-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.report-range-label{ font-size:12.5px; color:var(--muted); font-weight:600; }

.report-overview-scroll{ overflow-x:auto; margin-bottom:16px; }
.report-overview{
  display:flex; align-items:stretch; gap:0; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-md); box-shadow:var(--shadow-card); padding:16px 18px; width:max-content; min-width:100%;
}
.report-box{ min-width:118px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:0 10px; }
.report-box-wide{ min-width:130px; }
.report-box-label{ font-size:10px; font-weight:700; letter-spacing:.3px; color:var(--muted); text-align:center; }
.report-box-value{ font-family:var(--font-display); font-weight:800; font-size:14px; color:var(--navy-900); white-space:nowrap; }
.report-box-divider{ width:1px; align-self:stretch; background:var(--line); flex-shrink:0; }

.report-table-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow-card); overflow:hidden; margin-bottom:16px;
}
.report-table-scroll{ overflow-x:auto; }
.report-table{ width:100%; border-collapse:collapse; min-width:980px; }
.report-table th{
  text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.3px;
  color:var(--muted-soft); font-weight:700; padding:12px 14px; background:var(--paper); border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.report-table td{ padding:11px 14px; font-size:12.5px; border-bottom:1px solid var(--line); vertical-align:middle; white-space:nowrap; }
.report-table tbody tr:last-child td{ border-bottom:0; }
.report-table tbody tr:hover{ background:var(--paper); }

.report-exp-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow-card); padding:16px 18px 6px;
}
.report-exp-total{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 2px; margin-top:6px; border-top:1px solid var(--line);
  font-size:13px; font-weight:700; color:var(--navy-900);
}
.report-exp-total span:last-child{ color:#8E44AD; }

@media (max-width:760px){
  .report-head{ flex-direction:column; align-items:stretch; }
  .report-actions{ justify-content:flex-end; }
}