/* =========================================
   payout_report.css
   Page-specific styles (scoped to #main.wrapper.style1)
   ========================================= */

body {
  margin: 0;
  background: #fff;
  color: #121212;
  padding: 20px;
}

/* Keep the inner page area white like the rest of the site */
#main.wrapper.style1 {
  background: #fff;
}

#main.wrapper.style1 .wrap {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Card + section title
   ========================= */

#main.wrapper.style1 .report-card {
  background: #fff;
  border: 1px solid #d5dde7; /* stronger contrast */
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  padding: 14px;
  margin-bottom: 18px;
}

#main.wrapper.style1 .report-section-title {
  margin: 4px 0 12px;
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563; /* darker than #666f77 */
}

/* =========================
   Summary layout
   ========================= */

#main.wrapper.style1 .report-summary .summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#main.wrapper.style1 .report-summary .summary-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Pills */
#main.wrapper.style1 .pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d5dde7;
  background: #eef3f8;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0b1320;
}

/* Day chips */
#main.wrapper.style1 .summary-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

#main.wrapper.style1 .day-chip {
  border: 1px solid #d5dde7;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f7f9fc;
}

#main.wrapper.style1 .day-label {
  font-size: 0.82em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
  margin-bottom: 4px;
}

#main.wrapper.style1 .day-value {
  font-size: 1.05em;
  font-weight: 800;
  color: #0b1320;
}

/* Download button */
#main.wrapper.style1 a.button.report-download {
  background: #56606a;
  color: #fff !important;
  border: 0;
}
#main.wrapper.style1 a.button.report-download:hover {
  background: #4b545d;
}

/* =========================
   Scroll wrapper
   ========================= */

#main.wrapper.style1 .table-wrapper.report-scroll {
  overflow: auto;
  max-height: 62vh;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d5dde7;
  border-radius: 12px;
  background: #fff;
}

/* =========================
   Table
   ========================= */

#main.wrapper.style1 table.report-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d5dde7;
}

/* Header unified bar */
#main.wrapper.style1 table.report-table thead th {
  background: #e8eff7; /* darker than white -> more contrast */
  color: #0b1320;
  font-weight: 800;
  font-size: 0.86em;
  padding: 12px 14px;
  border-bottom: 1px solid #cfd8e3;
  border-radius: 0 !important;
}

/* Only outer header corners */
#main.wrapper.style1 table.report-table thead th:first-child {
  border-top-left-radius: 12px !important;
}
#main.wrapper.style1 table.report-table thead th:last-child {
  border-top-right-radius: 12px !important;
}

/* Cells */
#main.wrapper.style1 table.report-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6edf5;
  white-space: nowrap;
}

/* Stronger zebra striping */
#main.wrapper.style1 table.report-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}
#main.wrapper.style1 table.report-table tbody tr:nth-child(even) td {
  background: #f2f6fb;
}

/* Hover */
#main.wrapper.style1 table.report-table tbody tr:hover td {
  background: #eaf3ff;
}

/* Optional subtle vertical separators */
#main.wrapper.style1 table.report-table th + th,
#main.wrapper.style1 table.report-table td + td {
  border-left: 1px solid #eef2f6;
}

/* Alignment helpers */
#main.wrapper.style1 table.report-table .left {
  text-align: left;
}
#main.wrapper.style1 table.report-table .num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Sticky header */
#main.wrapper.style1 table.report-table.sticky thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* Weekly Total emphasis (optional: add class to that column) */
#main.wrapper.style1 table.report-table td.weekly-total,
#main.wrapper.style1 table.report-table th.weekly-total {
  font-weight: 900;
  color: #0b1320;
}

/* =========================
   Focus ring cleanup (page-specific)
   ========================= */

#main.wrapper.style1 a.button:focus {
  outline: none;
}
#main.wrapper.style1 a.button:focus-visible {
  outline: 2px solid rgba(98, 157, 209, 0.9);
  outline-offset: 2px;
}

#main.wrapper.style1 .table-wrapper.report-scroll:focus {
  outline: none;
}
#main.wrapper.style1 .table-wrapper.report-scroll:focus-visible {
  outline: 2px solid rgba(98, 157, 209, 0.9);
  outline-offset: 2px;
}
