/* Marketplace finances: single-purpose closed-week accounting dashboard. */
.finance-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.finance-kpi{border:1px solid var(--line,#e0e3eb);background:var(--surface,#fff);border-radius:16px;padding:18px 16px;min-width:0;display:grid;gap:9px;align-content:start;box-shadow:var(--shadow)}
.finance-kpi>span{font-size:13px;color:var(--ink,#272b34);line-height:1.35}
.finance-kpi strong{font-variant-numeric:tabular-nums;font-weight:720;letter-spacing:-.035em;font-size:clamp(19px,2vw,29px);line-height:1.15;overflow-wrap:anywhere}
.finance-kpi small{color:var(--muted,#747886);font-size:11px;line-height:1.4}
.finance-kpi.profit strong{color:#159c61}
.finance-summary-notice{display:flex;align-items:center;gap:10px;border:1px solid #f0dbb3;background:#fffaf0;color:#865c22;border-radius:12px;padding:12px 15px;font-size:12px;line-height:1.45;margin-bottom:16px}
.finance-week-panel,.finance-payout-panel,.finance-expenses-panel{margin-bottom:18px;min-width:0;padding:21px 19px}
.finance-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:19px}
.finance-section-title h2{font-size:19px;line-height:1.24;margin:0 0 6px}
.finance-section-title p{font-size:12px;color:var(--muted,#777);margin:0;line-height:1.5}
.finance-chip{white-space:nowrap;border-radius:20px;padding:6px 10px;background:#edf2ff;font-size:11px;font-weight:650;color:#45549b}
.finance-week-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:10px;border:1px solid var(--line,#e5e7ec);scrollbar-width:thin;touch-action:pan-x pan-y}
.finance-week-table{display:table!important;border-collapse:separate!important;border-spacing:0!important;min-width:max-content!important;width:max-content!important;table-layout:fixed!important;margin:0!important;font-variant-numeric:tabular-nums}
.finance-week-table tr{display:table-row!important}
.finance-week-table thead{display:table-header-group!important}
.finance-week-table tbody{display:table-row-group!important}
.finance-week-table th,.finance-week-table td{display:table-cell!important;position:static;white-space:nowrap!important;text-align:right!important;width:180px!important;min-width:180px!important;max-width:180px!important;vertical-align:middle!important;padding:15px 14px!important;border:0!important;border-bottom:1px solid var(--line,#edf0f3)!important;line-height:1.4;box-sizing:border-box}
.finance-week-table thead th{background:#f7f8fc!important;color:#555d72;font-size:12px;font-weight:600}
.finance-week-table thead th>b,.finance-week-table thead th>small{display:block!important}
.finance-week-table thead th>small{font-size:10px;margin-top:6px;color:#888fa1;white-space:normal}
.finance-week-table td{background:#fff!important;color:#313643;font-size:13px}
.finance-week-table td strong{font-weight:590}
.finance-week-table td small{display:block;font-weight:400;font-size:10px;color:#888fa1;white-space:normal}
.finance-week-table th:first-child{position:sticky!important;left:0!important;z-index:3!important;width:235px!important;min-width:235px!important;max-width:235px!important;text-align:left!important;white-space:normal!important;background:#fff!important;box-shadow:3px 0 8px #161b2b0c}
.finance-week-table thead th:first-child{z-index:5!important;background:#f7f8fc!important}
.finance-week-table .finance-future{background:#fbfaf8!important;color:#866838}
.finance-week-table .finance-empty-week{white-space:normal!important;background:#fdfaf5!important;text-align:center!important;color:#94754c;font-size:11px}
.finance-week-table .finance-total-col{background:#f4f7ff!important;font-weight:680}
.finance-week-table .finance-profit-row th,.finance-week-table .finance-profit-row td{color:#159c61;font-weight:670}
.finance-week-table .finance-profit-row td strong{color:#159c61}
.finance-week-table .finance-paid-row th,.finance-week-table .finance-paid-row td{border-top:2px solid #dde3f2!important}
.finance-footnote,.finance-footer-note{font-size:11px;line-height:1.6;color:var(--muted,#717687);margin:14px 0 0}
.finance-footer-note{margin-bottom:50px}
.finance-payout-track{height:16px;background:linear-gradient(90deg,#f0a63b,#808cca);border-radius:20px;overflow:hidden}
.finance-payout-track i{display:block;height:100%;background:#16a476;border-radius:20px 0 0 20px}
.finance-payout-primary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}
.finance-payout-primary>div{display:grid;gap:7px}
.finance-payout-primary>div span{font-size:12px;color:var(--muted)}
.finance-payout-primary strong{font-size:clamp(15px,2vw,23px);font-weight:690;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.finance-payout-primary>div:first-child strong{color:#14976d}
.finance-payout-more{margin-top:16px}
.finance-payout-more summary{cursor:pointer;color:#465cb5;font-weight:620;padding:12px 2px;min-height:44px}
.finance-payout-list{display:grid;gap:0;margin-top:7px;border-top:1px solid var(--line)}
.finance-payout-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line)}
.finance-payout-row span{display:grid;gap:5px;text-align:right}
.finance-payout-row span:first-child{text-align:left}
.finance-payout-row strong{font-size:14px}
.finance-payout-row small{font-size:11px;color:var(--muted)}
.finance-expenses-list{display:grid}
.finance-expense-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}
.finance-expense-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.finance-expense-total{font-weight:730;font-size:16px;border-bottom:0}
.finance-pending{font-size:12px;color:var(--muted);line-height:1.6}
@media(max-width:1060px){.finance-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
 .finance-overview{gap:9px}
 .finance-kpi{padding:13px 11px;border-radius:12px;gap:6px;min-height:112px}
 .finance-kpi strong{font-size:clamp(17px,4.9vw,22px)}
 .finance-kpi>span{font-size:11px}
 .finance-kpi small{font-size:10px;line-height:1.35}
 .finance-week-panel,.finance-payout-panel,.finance-expenses-panel{padding:16px 10px;border-radius:14px}
 .finance-section-title{padding:0 3px}
 .finance-section-title h2{font-size:16px}
 .finance-section-title p{font-size:11px}
 .finance-week-table th,.finance-week-table td{width:154px!important;min-width:154px!important;max-width:154px!important;padding:12px 8px!important;font-size:11px}
 .finance-week-table th:first-child{width:135px!important;min-width:135px!important;max-width:135px!important;padding-left:9px!important;padding-right:8px!important;font-size:11px}
 .finance-week-table thead th{font-size:10px}
 .finance-week-table thead th:first-child{font-size:11px}
 .finance-payout-primary{grid-template-columns:1fr 1fr;gap:15px}
 .finance-payout-primary>div:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:9px}
 .finance-payout-primary strong{font-size:17px}
 .finance-payout-row{gap:8px}
 .finance-expense-row{font-size:12px}
 .finance-summary-notice{align-items:flex-start}
}


/* Payout timeline, matched periods, and mobile-first dense tables. */
.finance-payout-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
.finance-next-payment{display:flex;align-items:center;flex-wrap:wrap;gap:6px 17px;padding:14px 0;margin-top:12px;border-top:1px solid var(--line)}
.finance-next-payment span{font-size:12px;color:var(--muted)}
.finance-next-payment strong{font-size:18px;font-variant-numeric:tabular-nums}
.finance-next-payment small,.finance-carry-note{font-size:11px;color:var(--muted);line-height:1.5}
.finance-payout-more summary{list-style:revert}
.finance-payout-more summary span{font-weight:400;color:var(--muted);margin-left:10px}
.finance-payout-row-label,.finance-payout-row-amount{display:flex;flex-direction:column;gap:5px}
.finance-payout-row-label small,.finance-payout-row-amount small{font-size:11px;color:var(--muted);line-height:1.4}
.finance-payout-row-amount{text-align:right}
.finance-payout-row-amount strong{white-space:nowrap}
.finance-week-scroll{isolation:isolate;max-width:100%;contain:layout paint}
.finance-week-table thead th.finance-total-col{background:#eff4ff!important}
.finance-week-table tbody td.finance-total-col{background:#f4f7ff!important}
.finance-week-table tr.finance-pending-row th,.finance-week-table tr.finance-pending-row td{border-bottom:2px solid var(--line)!important}
.finance-week-table th:first-child{position:sticky!important;left:0!important;z-index:4!important}
.finance-week-table thead th:first-child{z-index:8!important}
@media(max-width:680px){
 .finance-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
 .finance-payout-primary{grid-template-columns:1fr 1fr}
 .finance-payout-primary>div:last-child{grid-column:1/-1}
 .finance-week-scroll{margin:0;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}
 .finance-week-table{min-width:max-content!important;width:max-content!important}
 .finance-week-table th:first-child{width:145px!important;min-width:145px!important;max-width:145px!important}
 .finance-payout-row{gap:10px}
 .finance-payout-row-amount strong{font-size:13px}
}

/* 2026-10-20 compact financial workspace: desktop 3-up tiles,
   slim calendar columns, retained sticky first column & phone scrolling. */
.finance-overview{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-bottom:13px;
}
.finance-kpi{
  min-height:98px;
  padding:12px 15px;
  border-radius:13px;
  gap:5px;
  box-shadow:0 1px 4px #1b244009;
}
.finance-kpi>span{font-size:12px;line-height:1.26}
.finance-kpi strong{
  font-size:clamp(17px,1.4vw,23px);
  font-weight:710;
  line-height:1.1;
  letter-spacing:-.025em;
}
.finance-kpi small{font-size:10px;line-height:1.25}
.finance-summary-notice{
  margin-bottom:10px;
  padding:8px 12px;
  font-size:11px;
}
.finance-week-panel,.finance-payout-panel,.finance-expenses-panel{
  padding:15px 14px;
  margin-bottom:13px;
  border-radius:14px;
}
.finance-section-title{margin-bottom:12px;gap:9px}
.finance-section-title h2{font-size:16px;line-height:1.2;margin:0 0 3px}
.finance-section-title p{font-size:11px;line-height:1.32}
.finance-chip{font-size:10px;padding:4px 8px}
.finance-week-scroll{border-radius:9px}
.finance-week-table th,.finance-week-table td{
  width:146px!important;
  min-width:146px!important;
  max-width:146px!important;
  padding:9px 8px!important;
  line-height:1.26!important;
}
.finance-week-table th:first-child{
  width:178px!important;
  min-width:178px!important;
  max-width:178px!important;
  padding-left:11px!important;
  padding-right:9px!important;
  font-size:10.5px!important;
  line-height:1.3!important;
}
.finance-week-table thead th{font-size:10.5px;letter-spacing:0;line-height:1.25}
.finance-week-table td{font-size:11.5px}
.finance-week-table td strong{font-weight:630;letter-spacing:-.01em;font-size:11.5px}
.finance-week-table thead th>small{font-size:9px;margin-top:3px}
.finance-week-table td small{display:none!important}
/* Weekly cash dates and reporting rules are explained once below the
   table, not repeated in tiny three-line notes for every single cell. */
.finance-week-table .finance-empty-week{
  font-size:10px;
  line-height:1.25!important;
}
.finance-week-table .finance-empty-week small{
  display:block!important;
  font-size:9px!important;
  line-height:1.25!important;
}
.finance-footnote,.finance-footer-note{font-size:10.5px;line-height:1.45;margin-top:9px}
.finance-payout-track{height:11px}
.finance-payout-primary{gap:11px;margin-top:12px}
.finance-payout-primary>div{gap:4px}
.finance-payout-primary>div span{font-size:11px}
.finance-payout-primary strong{font-size:clamp(14px,1.45vw,19px)}
.finance-payout-more{margin-top:9px}
.finance-payout-more summary{padding:8px 2px;font-size:12px}
.finance-payout-row{padding:9px 0}
.finance-expense-row{padding:9px 0;font-size:12px}
.finance-expense-total{font-size:14px}
@media(max-width:1080px){
 .finance-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
 .finance-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .finance-kpi{min-height:91px;padding:10px 11px;border-radius:11px;gap:4px}
 .finance-kpi strong{font-size:clamp(15px,4.2vw,20px)}
 .finance-kpi>span{font-size:11px}
 .finance-kpi small{font-size:9px}
 .finance-week-panel,.finance-payout-panel,.finance-expenses-panel{padding:12px 9px}
 .finance-week-table th,.finance-week-table td{
   width:125px!important;
   min-width:125px!important;
   max-width:125px!important;
   padding:8px 6px!important;
 }
 .finance-week-table th:first-child{
   width:133px!important;
   min-width:133px!important;
   max-width:133px!important;
   padding-left:8px!important;
   padding-right:5px!important;
   font-size:9.5px!important;
 }
 .finance-week-table thead th{font-size:10px}
 .finance-week-table td,.finance-week-table td strong{font-size:10.5px}
 .finance-section-title h2{font-size:15px}
 .finance-payout-primary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .finance-payout-primary>div:last-child{grid-column:1/-1}
}
@media(max-width:340px){
 .finance-overview{grid-template-columns:1fr 1fr}
 .finance-kpi{padding:9px 7px}
 .finance-kpi strong{font-size:15px}
}

/* Compact estimated payout dates under Ozon pending amounts only.
   Override the dashboard's intentional hiding of other micro-notes. */
.finance-week-table td .finance-week-eta{
 display:block!important;
 margin-top:3px;
 color:#8a90a0!important;
 font-size:9px!important;
 font-weight:400!important;
 line-height:1.25!important;
 white-space:normal!important;
 overflow-wrap:anywhere;
 text-align:right;
}
.finance-week-table td.finance-total-col .finance-week-eta{font-size:9px!important}
@media(max-width:650px){
 .finance-week-table td .finance-week-eta{font-size:8.5px!important;line-height:1.2!important}
}

/* Separate the profitability (earned) and cash-flow (bank) accounting bases. */
.finance-week-table tr.finance-cash-group>th,
.finance-week-table tr.finance-cash-group>td{
 background:#edf2f8!important;
 border-top:2px solid #cad5e6;
 border-bottom:1px solid #d7e0ec;
 padding-top:10px;padding-bottom:10px;
}
.finance-week-table tr.finance-cash-group>th{
 position:sticky;left:0;z-index:3;
 color:#3c4d65;font-weight:800;font-size:10px;
 text-transform:uppercase;line-height:1.45;
}
.finance-week-table tr.finance-cash-group>th small{display:block;font-size:9px;line-height:1.45;font-weight:500;text-transform:none;color:#67758a;margin-top:3px}
.finance-week-table tr.finance-reconcile-row th,
.finance-week-table tr.finance-reconcile-row td{background:#fbfbfc;color:#606a7b}
.finance-week-table tr.finance-reconcile-row th{font-size:10px}
.finance-week-table tr.finance-pre-tax-row th,
.finance-week-table tr.finance-pre-tax-row td{background:#f9fafc}
.finance-week-table tr.finance-pre-tax-row th{font-weight:700}

.finance-week-table tr.finance-reconcile-row td strong{font-size:11px}
/* Full-width section headings with all weekly accounting rows visible. */
.finance-week-table tr.finance-cash-group>th,
.finance-week-table tr.finance-audit-group>th{
  position:static!important;
  z-index:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  text-align:left!important;
  box-shadow:none!important;
  padding:0!important;
  border-bottom:1px solid #dce3ed!important;
  background:#f3f6fa!important;
}
.finance-week-table tr.finance-audit-group>th{background:#f8f9fb!important}
.finance-week-table tr.finance-cash-group>th .finance-table-toggle,
.finance-week-table tr.finance-audit-group>th .finance-table-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  min-height:52px;
  padding:11px 15px;
  border:0;
  background:transparent;
  cursor:default;
  color:#34455d;
  text-align:left;
  font:inherit;
}
.finance-week-table .finance-table-toggle:focus-visible{
  outline:2px solid #1778da;
  outline-offset:-3px;
  border-radius:8px;
}
.finance-week-table .finance-table-toggle-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-width:0;
}
.finance-week-table .finance-table-toggle-copy>b{
  font-size:12px;
  font-weight:720;
  line-height:1.4;
  letter-spacing:0;
  text-transform:none;
  white-space:normal;
}
.finance-week-table .finance-table-toggle-copy>small{
  display:block!important;
  color:#69778c;
  font-size:10.5px;
  font-weight:450;
  line-height:1.5;
  text-transform:none;
  white-space:normal;
}
.finance-week-table .finance-table-toggle-state{
  flex:none;
  font-weight:640;
  font-size:11px;
  color:#1768b7;
  white-space:nowrap;
}
.finance-week-table .finance-detail-row th{
  color:#526174;
  font-size:11px!important;
  background:#fbfcfe!important;
}
.finance-week-table .finance-detail-row td{background:#fbfcfe!important}
.finance-week-table .finance-detail-row.finance-reconcile-row td strong{font-weight:550}
.finance-method-details{
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid var(--line,#e4e9f0);
  color:#657183;
  font-size:11px;
  line-height:1.65;
}
.finance-method-details summary{
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  color:#2367ad;
  font-weight:650;
}
.finance-method-details p{margin:0 0 6px}
.finance-period-note{
  margin:4px 0 15px;
  font-size:12px;
  line-height:1.55;
  color:#647187;
}
@media(max-width:680px){
  .finance-week-table tr.finance-cash-group>th .finance-table-toggle,
  .finance-week-table tr.finance-audit-group>th .finance-table-toggle{padding:10px 9px;gap:10px}
  .finance-week-table .finance-table-toggle-copy>b{font-size:11px}
  .finance-week-table .finance-table-toggle-copy>small{font-size:10px}
}

/* Mobile pinned section headers and verifiable WB reconciliation. */
.finance-week-table tr[hidden]{display:none!important}
.finance-reconcile-toggle{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:2px 0;border:0;background:transparent;color:#245d99;font:inherit;font-weight:700;line-height:1.35;text-align:left;cursor:pointer}
.finance-reconcile-toggle small{display:block!important;font-size:10px!important;color:#2373ba!important}
.finance-reconcile-toggle:focus-visible{outline:2px solid #236cda;outline-offset:2px;border-radius:4px}
.finance-reconcile-toggle.is-open{color:#165096}
.finance-reconcile-explain>td{background:#f4f8ff!important;text-align:left!important;white-space:normal!important;padding:0!important}
.finance-reconcile-explain-inner{box-sizing:border-box;max-width:min(760px,calc(100vw - 45px));padding:18px;line-height:1.55;font-size:12px;color:#334258}
.finance-reconcile-explain-inner h3{font-size:14px;margin:0 0 9px}
.finance-reconcile-week{padding:13px 0;border-top:1px solid #dce5f0}
.finance-reconcile-week h4{font-size:12px;margin:0 0 5px}
.finance-reconcile-week p{margin:6px 0}
.finance-reconcile-week summary{min-height:36px;display:flex;align-items:center;color:#2367a7;font-weight:650;cursor:pointer}
.finance-reconcile-week ul{list-style:disc;padding-left:20px;white-space:normal}
.finance-reconcile-week li{padding:3px 0;overflow-wrap:anywhere}
.finance-payout-week-coverage{padding:10px 0;color:#46536b;font-size:12px;line-height:1.45}
.finance-payout-week-grid{display:grid;gap:5px}
.finance-payout-week{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px 10px;border-radius:8px;background:#f4f7fc}
.finance-payout-week b{color:#263b57}
.finance-payout-week small{grid-column:1/-1;color:#66748c}
@media(max-width:680px){
 .finance-week-table tr.finance-cash-group>th .finance-table-toggle,.finance-week-table tr.finance-audit-group>th .finance-table-toggle{position:sticky!important;left:0!important;width:var(--finance-visible-width,300px)!important;min-width:var(--finance-visible-width,300px)!important;max-width:var(--finance-visible-width,300px)!important;box-sizing:border-box;background:inherit!important;z-index:4}
 .finance-week-table tr.finance-cash-group>th,.finance-week-table tr.finance-audit-group>th{overflow:visible!important}
 .finance-payout-week{grid-template-columns:1fr;gap:3px}
 .finance-payout-week small{grid-column:1}
}

.finance-cash-group-title{margin:22px 0 12px}
.finance-cash-group-title h2{font-size:17px;margin:0 0 5px}
.finance-cash-group-title p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}
.finance-payout-market{display:inline-flex;align-items:center;border-radius:6px;font-size:11px;line-height:1.3;font-weight:700;letter-spacing:.01em;padding:3px 6px;vertical-align:middle;margin-right:5px}
.finance-payout-market.wb{background:#f8dffc;color:#9929b4}
.finance-payout-market.ozon{background:#e6f0ff;color:#145bc1}
.finance-payout-row-label>b{display:flex;align-items:center;flex-wrap:wrap;gap:3px;line-height:1.5}
