/* Self-hosted Montserrat; SIL Open Font License in fonts/montserrat-v31. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/montserrat-v31/cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/montserrat-v31/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/montserrat-v31/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.agent-payout-table-scroll {
  --payout-grid: color-mix(in srgb, var(--text) 28%, var(--card));
  --payout-group-grid: color-mix(in srgb, var(--text) 42%, var(--card));
  border-color: var(--payout-grid);
  border-radius: 2px;
}

.agent-payout-table {
  /* Separate borders keep the sticky header's grid visible while scrolling. */
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.agent-payout-table th,
.agent-payout-table td {
  border: 0;
  border-right: 1px solid var(--payout-grid);
  border-bottom: 1px solid var(--payout-grid);
  padding: 2px 5px;
}

.agent-payout-table th {
  padding-block: 4px;
  color: var(--text);
  font-weight: 600;
}

.agent-payout-table tr.is-deal-start td {
  border-top: 1px solid var(--payout-group-grid);
}

.agent-payout-table tbody tr:first-child td { border-top: 0; }
.agent-payout-table-client,
.agent-payout-table-tsr div { font-weight: 400; }
.agent-payout-table-money.is-remaining { font-weight: 600; }

.agent-payout-table .agent-payout-percent,
.agent-payout-table .agent-payout-status { font-size: inherit; }
.agent-payout-table .agent-payout-table-percent { grid-template-columns: auto minmax(0, 1fr); }
.agent-payout-table .agent-payout-table-percent input {
  height: 24px;
  min-height: 24px;
  padding: 2px 4px;
  border-radius: 3px;
  font: inherit;
}

.agent-payout-table .agent-payout-table-tsr > span,
.agent-payout-table .agent-payout-table-check-meta,
.agent-payout-table .agent-payout-table-basis-paid,
.agent-payout-table .agent-payout-standard,
.agent-payout-table .agent-payout-percent-sync,
.agent-payout-table .agent-payout-bases.is-compact a,
.agent-payout-table .agent-payout-basis-control a > small { font-size: 10px; }
.agent-payout-table .agent-payout-standard.is-compact { margin-top: 2px; }

.agent-payouts-section.report-fullscreen:has(.agent-payout-list.is-table) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agent-payouts-section.report-fullscreen > * { flex-shrink: 0; }
.agent-payouts-section.report-fullscreen > .report-expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}
.agent-payouts-section.report-fullscreen .agent-payout-list.is-table {
  flex: 1 1 0;
  min-height: 0;
}
.agent-payouts-section.report-fullscreen .agent-payout-table-scroll {
  height: 100%;
  max-height: none;
}
.agent-payouts-section.report-fullscreen .agent-payout-table {
  /* Override the inline minimum only; saved pixel widths remain untouched. */
  min-width: 100% !important;
}
.agent-payouts-section.report-fullscreen:has(.agent-payout-list.is-table) > .agent-payout-selection {
  position: static;
  margin: 8px auto 0;
}

@media (max-width: 700px) {
  .agent-payouts-section.report-fullscreen .agent-payout-head-actions { flex-wrap: wrap; }
}
