/* Approved ST FINANCE visual system. Loaded last on purpose. */
@font-face{font-family:"Onest";src:url("fonts/onest-cyrillic-variable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0400-052F,U+2DE0-2DFF,U+A640-A69F}
@font-face{font-family:"Onest";src:url("fonts/onest-latin-variable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root{--bg:#f6f8fb;--ink:#101a32;--muted:#67738a;--line:#e0e6ef;--blue:#245eea;--green:#0aa36c;--amber:#dc7900;--red:#e04343}
body,input,select,textarea,button{font-family:"Onest",Inter,"SF Pro Text","Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif}
.ui-icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.topbar{height:62px;padding:0 3%;gap:24px;background:#07152f;box-shadow:0 2px 12px #07152f26}
.brand{display:flex;align-items:center;font-family:"Onest",Inter,sans-serif;font-weight:750;letter-spacing:-.025em}
.brand span{width:34px;height:34px;border-radius:8px;margin-right:10px}
.topbar nav{align-items:center;gap:5px}
.topbar nav a,.logout button{display:inline-flex;align-items:center;gap:7px;padding:9px 10px;white-space:nowrap}
.topbar nav svg,.manual-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.topbar nav a.active{background:#245eea;box-shadow:0 4px 12px rgba(36,94,234,.32)}
main{width:100%;max-width:none;padding:28px 3%}
.dashboard-title{align-items:center;margin-bottom:14px}
.dashboard-title h1{margin:0;font-size:29px;font-weight:750;letter-spacing:-.035em}.live-status{font-size:13px;gap:10px}.health-dot{width:9px;height:9px}
.dashboard-card{border-color:#dfe6ef;border-radius:14px;box-shadow:0 5px 20px rgba(28,45,76,.045)}
.dashboard-top{grid-template-columns:minmax(0,1.35fr) minmax(430px,1fr);gap:14px;margin-bottom:14px}
.attention-summary,.balance-card{padding:14px 16px}
.dashboard-card h2,.section-heading h2{font-size:17px;font-weight:750;letter-spacing:-.015em}.section-heading small{font-size:12px}
.attention-summary-grid{gap:10px;margin-top:11px}
.attention-item{grid-template-columns:42px minmax(0,1fr);gap:10px;min-height:124px;padding:13px;background:#fff!important;border-radius:11px}
.attention-item:after{display:none}.round-icon{width:42px;height:42px;border-radius:11px}.round-icon svg{width:22px;height:22px}
.attention-item small{font-size:12px}.attention-item strong{font-size:23px}.attention-item p,.attention-item b{font-size:12px;line-height:1.35}
.balance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px}
.balance-item{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 8px;align-items:center;gap:10px;min-height:82px;padding:9px 11px;border:1px solid #e0e7f1;border-radius:10px;color:var(--ink);background:#fff;text-decoration:none;transition:.16s ease}
.balance-item:hover{border-color:#c8d5e7;box-shadow:0 6px 16px rgba(28,45,76,.07);transform:translateY(-1px)}
.balance-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;color:var(--blue);background:#edf3ff}
.balance-item.green .balance-icon{color:var(--green);background:#eaf8f2}.balance-icon svg{width:23px;height:23px}
.balance-item small,.balance-item strong,.balance-copy em{display:block}.balance-item small{color:#647188;font-size:12px;font-weight:650}.balance-item strong{margin:2px 0 3px;font-size:20px;font-weight:800;line-height:1.08;white-space:nowrap}.balance-copy em{color:#7b879c;font-size:9px;font-style:normal;line-height:1.3;white-space:nowrap}
.balance-state{width:7px;height:7px;border-radius:50%;background:var(--green)}.balance-state.pending{background:#aab4c3}.balance-state.stale{background:var(--amber)}
.error-overview{padding:14px 16px;margin-bottom:14px}.error-groups{gap:10px;margin-top:11px}
.error-group{gap:10px;min-height:103px;padding:12px;background:#fff!important;border-radius:11px}
.error-icon{flex-basis:38px;width:38px;height:38px;border-radius:10px}.error-icon svg{width:19px;height:19px}
.error-group h3{font-size:14px}.error-group p{font-size:12px}.error-group p b{font-size:14px}.group-action{font-size:12px}
.dashboard-workspace{gap:14px;grid-template-columns:minmax(0,3.25fr) minmax(290px,.95fr)}
.automation-log,.source-status{padding:14px 15px}.automation-feed{margin-top:8px}.automation-feed:before{display:none}
.automation-row{grid-template-columns:68px 34px minmax(230px,1.8fr) minmax(120px,.65fr) 150px minmax(175px,.9fr);gap:11px;min-height:60px;padding:7px 7px;border-radius:8px}.feed-marker{width:32px;height:32px;border:0;box-shadow:0 0 0 1px #d6e0ed}.feed-marker svg{width:16px;height:16px}.automation-row>time{font-size:13px}.automation-row>time small{font-size:10px}.feed-main b,.feed-amount{font-size:14px}.feed-main small{font-size:11px}.automation-result{font-size:11px}.automation-meta{font-size:10px}.link-chain{gap:5px}.link-chain span{width:27px;height:27px;border-radius:8px}.link-chain span svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.link-chain i{font-size:13px}.source-status h2{font-size:17px}.cash-shift-card{margin:9px 0 4px;padding:13px 11px;background:#fff!important}.source-row{padding:12px 7px}.source-check{flex-basis:38px;width:38px;height:38px}.source-check svg{width:19px;height:19px}.next-sync{font-size:11px}
.manual-action{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px}
.global-month{grid-template-columns:auto 132px auto;padding:4px 5px 4px 9px;background:#0d1c38;border-color:#43516a}.global-month input{width:132px;padding:5px 6px}.global-month button{padding:7px 10px}
@media(max-width:1260px){.dashboard-top{grid-template-columns:1fr}.balance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:940px){.balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Money table: keep long counterparties and purposes inside their columns. */
.money-table{width:100%;min-width:1240px}.money-table th:nth-child(1){width:15%}.money-table th:nth-child(2){width:17%}.money-table th:nth-child(3){width:22%}.money-table th:nth-child(4){width:12%}.money-table th:nth-child(5){width:11%}.money-table th:nth-child(6){width:12%}.money-table th:nth-child(7){width:11%}.money-table td{min-width:0;overflow:hidden}.money-table td:nth-child(2)>b,.money-purpose{max-width:100%;overflow-wrap:anywhere;word-break:break-word;hyphens:auto}.money-table td:nth-child(2)>b{line-height:1.28}.money-step b{width:30px;height:30px}.money-step b svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.payment-link-action{display:block;margin-top:6px;color:var(--blue);font-size:11px;font-weight:750;text-decoration:none}.payment-link-action:hover{text-decoration:underline}
.match-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.match-page-head h1{margin:0;font-size:29px;letter-spacing:-.035em}.match-page-head p{margin:5px 0 0;color:var(--muted)}
.match-payment-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:18px;align-items:center;padding:15px 17px;margin-bottom:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.match-payment-card small,.match-payment-card span{display:block;color:var(--muted);font-size:11px}.match-payment-card strong{display:block;margin:3px 0;font-size:14px}.match-payment-card>b{font-size:20px;white-space:nowrap}
.match-panel{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.match-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.match-panel h2{margin:0;font-size:17px}.match-panel header p{margin:4px 0 0;color:var(--muted);font-size:12px}.match-panel>header>span{color:var(--green);font-size:12px;font-weight:750}
.match-search{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:9px;margin-bottom:13px}.match-search input{min-width:0;padding:10px 12px;border:1px solid #cfd8e6;border-radius:8px;font:inherit}.match-search .button{display:grid;place-items:center;margin:0;text-decoration:none}
.match-candidates{display:grid;gap:9px}.match-candidate{display:grid;grid-template-columns:20px minmax(220px,1.25fr) minmax(210px,1fr) minmax(135px,.5fr);gap:14px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:11px;cursor:pointer;transition:.15s ease}.match-candidate:has(input:checked){border-color:var(--blue);background:#edf3ff}.match-candidate input{width:18px;height:18px;accent-color:var(--blue)}.match-request b,.match-request strong,.match-request small,.match-confidence b,.match-confidence small,.match-sum b,.match-sum small{display:block}.match-request b{font-size:14px}.match-request strong{margin:2px 0;font-size:13px}.match-request small,.match-confidence small,.match-sum small{color:var(--muted);font-size:11px}.match-confidence b{margin-bottom:3px;color:var(--green);font-size:12px}.match-sum{text-align:right}.match-sum b{font-size:14px}.match-empty{padding:30px;text-align:center;color:var(--muted)}.form-errors{margin:8px 0;color:var(--red)}
.match-choice-form footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}.match-choice-form footer>span{color:var(--muted);font-size:11px}.match-choice-form footer>div{display:flex;align-items:center;gap:12px;white-space:nowrap}
@media(max-width:800px){.match-payment-card{grid-template-columns:1fr}.match-candidate{grid-template-columns:20px 1fr}.match-confidence,.match-sum{grid-column:2;text-align:left}.match-choice-form footer{align-items:stretch;flex-direction:column}.match-search{grid-template-columns:1fr 1fr}.match-search input{grid-column:1/-1}}
@media(max-width:720px){.balance-grid{grid-template-columns:1fr}.dashboard-title h1{font-size:26px}}
