@font-face { font-family: Mulish; src: url('/mulish-latin.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Mulish; src: url('/mulish-cyrillic.woff2') format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root { color-scheme: light; --blue: #01278b; --ink: #17243e; --muted: #465572; --border: #dce1ea; --paper: #f8f8f5; --white: #fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 Mulish, sans-serif; }
::selection { color: white; background: var(--blue); }
main { max-width: 1240px; margin: 0 auto; padding: 32px; }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 750; }
button, input, select { font: inherit; color: inherit; }
button, select, input { min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }
button { padding: 10px 18px; cursor: pointer; font-weight: 750; }
button:hover { background: #eef2fc; border-color: #9aaad1; }
button:disabled { opacity: .65; cursor: wait; }
button.primary { background: var(--blue); color: white; border-color: var(--blue); }
button.primary:hover { background: #001e6d; }
:focus-visible { outline: 3px solid #5379d5; outline-offset: 3px; }
input { width: 100%; padding: 10px 12px; caret-color: var(--blue); }
select { padding: 10px 34px 10px 12px; min-width: 100px; }
label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 6px; }
.wordmark { color: var(--blue); font-size: 25px; font-weight: 900; letter-spacing: -.03em; display: inline-block; }
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.page-header > div { display: flex; gap: 22px; align-items: center; }
.page-header .wordmark { border-right: 1px solid var(--border); padding-right: 22px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
#refresh, #lock { margin-left: auto; }
.status { min-height: 24px; color: var(--muted); font-size: 13px; margin: 10px 0 20px; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric { border: 1px solid var(--border); border-radius: 12px; background: white; padding: 24px; }
.metric h2 { font-size: 14px; color: var(--muted); font-weight: 700; }
.amount { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 10px; overflow-wrap: anywhere; }
.net { background: var(--blue); border-color: var(--blue); color: white; }
.net h2 { color: #e0e8ff; }
.small { color: var(--muted); font-size: 13px; }
.definition { margin: 12px 0 26px; }
.undated { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: -12px 0 22px; }
.panel { background: white; border: 1px solid var(--border); border-radius: 12px; margin-top: 22px; overflow: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding: 22px 24px 12px; }
.chart { padding: 4px 20px 16px; }
.chart svg { width: 100%; height: 230px; display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 12px Mulish, sans-serif; font-variant-numeric: tabular-nums; }
.chart .grid { stroke: #e5e9f0; stroke-width: 1; }
.chart .bar { fill: var(--blue); }
.empty { color: var(--muted); padding: 12px 24px 24px; }
.table-scroll { overflow-x: auto; scrollbar-color: #a6b4d3 #edf0f5; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; min-width: 700px; text-align: left; font-size: 14px; }
th { background: #f5f7fb; color: var(--muted); font-size: 12px; font-weight: 800; }
th, td { padding: 14px 24px; border-bottom: 1px solid #edf0f5; }
tr:last-child td { border-bottom: 0; }
td { vertical-align: top; }
td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.payment-name { min-width: 200px; max-width: 360px; overflow-wrap: anywhere; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 750; }
.refund-label { display: block; width: fit-content; margin-top: 4px; border-radius: 4px; padding: 1px 7px; background: #fff1e8; color: #8a3d11; font-size: 11px; font-weight: 800; }
.refund-amount { color: #8a3d11; }
.notice { padding: 14px 16px; margin: 14px 0; background: #fff6e4; color: #6e4c0a; border: 1px solid #e8d4a4; border-radius: 8px; font-size: 14px; }
.error { color: #9c2431; }
.error.notice { background: #fff2f3; border-color: #edc9cd; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--muted); margin-top: 20px; }
.unlock-panel { max-width: 420px; margin: clamp(24px, 10vh, 100px) auto; padding: 30px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.unlock-panel h1 { margin: 18px 0 10px; font-size: 25px; }
.unlock-panel > p { color: var(--muted); }
.unlock-panel form { margin: 24px 0 20px; }
.unlock-panel button { width: 100%; margin-top: 16px; }
.unlock-panel .error { margin-top: 10px; font-size: 14px; }
@media (max-width: 700px) {
  main { padding: 20px 16px; }
  .summary { grid-template-columns: 1fr; gap: 10px; }
  .metric { padding: 18px 20px; }
  .amount { font-size: 30px; margin-top: 6px; }
  .section-header { padding: 20px 18px 12px; }
  .chart { padding: 4px 10px 14px; }
  .page-header > div { gap: 14px; }
  .page-header .wordmark { padding-right: 14px; font-size: 21px; }
  h1 { font-size: 24px; }
  .unlock-panel { padding: 24px; }
  th, td { padding: 12px 18px; }
}
