/* Reports page header — matches app/modules/Reports/Reports.tsx page title h4 + tabs row */
.reports-header-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* h4 = theme.typography.h4 in ui-utils page_context: 25/40, weight 400, color #000.
   Production renders the Reports page title with <Typography variant='h4'>.
   Source: app/modules/Reports/Reports.tsx line ~144. */
.reports-page-title {
  margin: 0;
  font-size: 25px; line-height: 40px;
  font-weight: 400;
  letter-spacing: 0;
  color: #000;
}

/* FxToggleButtons from app/node_modules/@fixefy/fixefy-ui-components/dist/
   FxToggleButtons/FxToggleButtons.js:
   - Group height 40, bg white.
   - Each button minWidth/maxWidth 161, no extra borderRadius.
   - Inactive: default MuiToggleButton (transparent bg + border greyscale).
   - Active (Mui-selected/disabled): bg #F1FBFE (in_progress.light), border 1px
     solid #568793 (primary-500).
   - Label Typography: lineHeight 24, fontSize 12, fontWeight 500, color #000,
     text-transform NONE (label string is uppercased in parent JSX). */
.report-toggle-bar {
  display: flex; gap: 0; margin-bottom: 16px;
  height: 36px;
  background: #F0F2F5;
  width: fit-content;
  border-radius: 999px;
  padding: 2px;
}
.report-toggle {
  font-family: 'Open Sans';
  font-size: 12px; line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  min-width: 120px;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  color: #8B9092;
  cursor: pointer;
  border-radius: 999px;
  transition: all .15s ease;
}
.report-toggle:hover { color: #172326; }
.report-toggle.active {
  background: #ffffff;
  color: var(--fx-primary-500);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15,30,38,.12);
}

/* Accordion row from ReportTablePreview.tsx:167-211:
   1px border greyscale.light (#e2e2e2), bg background.default (white).
   Inner alignItems center, margin 0; left vertical rule at left:48 (after icon).
   Borders collapse so consecutive rows share a single seam. */
.report-card {
  background: white;
  border: 1px solid #e2e2e2;
  margin-bottom: -1px;
  border-radius: 0;
}
.report-card:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.report-card:last-child  { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; margin-bottom: 0; }

/* Enriched one-time report row: glyph + name/desc + meta + actions */
.report-row-inner {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  min-height: 76px;
}
.report-card-glyph {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E2EEF1 0%, #C6DDE2 100%);
  color: #2F4F57;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.report-card-glyph .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 22px !important; line-height: 22px !important;
}
.report-card-text { min-width: 0; }
.report-row-title {
  font: 600 14px/20px "Open Sans";
  color: #172326;
  margin: 0;
}
.report-card-desc {
  font: 400 12px/18px "Open Sans";
  color: #4F6063;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-card-meta {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/16px "Open Sans";
  color: #4F6063;
}
.report-card-meta > span {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.report-card-rows {
  background: rgba(86, 135, 147, 0.1);
  color: #2F4F57;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
}
.report-card-owner { color: #8B9092; }
.report-card-lastrun .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 14px !important; line-height: 14px !important;
  color: #8B9092;
}
.report-card-actions {
  display: flex; align-items: center; gap: 8px;
}
.report-icon-btn {
  width: 36px; height: 36px;
  border: 0; background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: #4F6063;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.report-icon-btn .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 20px !important; line-height: 20px !important;
}
.report-icon-btn:hover { background: rgba(86,135,147,.1); color: #2F4F57; }
.report-preview-link {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 4px;
  padding: 6px 10px 6px 12px;
  border-radius: 6px;
  font: 600 12px/16px "Open Sans";
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #568793;
  text-decoration: none;
  transition: background-color .15s ease;
}
.report-preview-link:hover { background: rgba(86,135,147,.1); color: #2F4F57; }
.report-preview-link .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 16px !important; line-height: 16px !important;
}

.report-card-body {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.report-card-body.open { max-height: 500px; }

/* ─── Scheduled report cards — production-quality ─── */
#reports-body { display: flex; flex-direction: column; gap: 14px; }
.scheduled-card {
  background: #ffffff;
  border: 1px solid #E0E5EB;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.scheduled-card:hover {
  box-shadow: 0 6px 16px rgba(15, 30, 38, 0.06);
  transform: translateY(-1px);
}
.scheduled-card-head {
  display: flex; align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
}
.scheduled-card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFF2D9 0%, #FFE0A6 100%);
  color: #B8761F;
  display: flex; align-items: center; justify-content: center;
}
.scheduled-card-icon .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 22px !important; line-height: 22px !important;
}
.scheduled-card-titles { flex: 1; min-width: 0; }
.scheduled-card-name { font: 600 14px/20px "Open Sans"; color: #172326; }
.scheduled-card-freq {
  display: flex; align-items: center; gap: 8px;
  font: 500 12px/16px "Open Sans";
  color: #8B9092;
  margin-top: 4px;
}
.freq-pill {
  background: rgba(86, 135, 147, 0.1);
  color: #2F4F57;
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
}
.freq-sep { color: #C8CDD0; }
.scheduled-card-status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/16px "Open Sans";
  color: #27AE60;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #27AE60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.18);
}
.scheduled-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 20px 16px;
  border-top: 1px solid #F0F2F5;
}
.scheduled-card-row { display: flex; flex-direction: column; gap: 4px; }
.row-label {
  font: 600 11px/14px "Open Sans";
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8B9092;
}
.row-value {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/18px "Open Sans";
  color: #172326;
}
.row-value .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 16px !important; line-height: 16px !important;
  color: #8B9092;
}
.sched-avatars { display: inline-flex; align-items: center; gap: 4px; }
.sched-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #568793 0%, #87ACB6 100%);
  color: #fff;
  font: 700 11px/24px "Open Sans";
  text-align: center;
  border: 2px solid #fff;
  margin-left: -6px;
}
.sched-avatar:first-child { margin-left: 0; }
.sched-avatar-more {
  background: #E0E5EB; color: #4F6063;
}
.recipients-text {
  margin-left: 8px;
  font: 500 13px/18px "Open Sans";
  color: #4F6063;
}
.scheduled-card-foot {
  display: flex; gap: 8px;
  padding: 0 20px 14px;
}
.scheduled-card-foot .fx-btn {
  display: inline-flex; align-items: center; gap: 4px;
}
.scheduled-card-foot .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 16px !important; line-height: 16px !important;
}

/* ── Fixenator natural language report generator ─────────────────────── */
.report-nl-bar {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(86,135,147,.25);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(86,135,147,.06) 0%, rgba(86,135,147,.02) 100%);
}
.report-nl-inner {
  display: flex; align-items: center; gap: 10px;
}
.report-nl-star {
  font-size: 16px;
  flex-shrink: 0;
}
.report-nl-input {
  flex: 1;
  border: none;
  background: transparent;
  font: 400 13px/18px "Open Sans";
  color: #172326;
  outline: none;
}
.report-nl-input::placeholder { color: #9BABB0; }
.report-nl-input:disabled { opacity: 0.5; }
.report-nl-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(86,135,147,.4);
  background: rgba(86,135,147,.12);
  color: #568793;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}
.report-nl-btn:hover { background: rgba(86,135,147,.25); border-color: #568793; }
.report-nl-btn .icon { font-size: 16px !important; }
