.budget-workspace{color:var(--ink,#203c62);line-height:1.65;min-width:0}
.budget-workspace *{box-sizing:border-box}
.budget-workspace [hidden]{display:none!important}
.budget-workspace .page-head{margin-bottom:18px}
.budget-context{border:1px solid #cedff5;border-radius:14px;padding:18px 22px;background:linear-gradient(110deg,#f0f6ff,#effaf7);margin-bottom:20px}
.budget-context strong{font-size:16px;color:#234e79}
.budget-context p{margin:6px 0 0;color:#536e86;overflow-wrap:anywhere}
.budget-nav{display:flex;gap:6px;flex-wrap:wrap;padding:6px;background:#eaf0f7;border-radius:12px;margin:0 0 24px}
.budget-nav button{flex:1 1 140px;border:0;border-radius:8px;padding:12px 14px;color:#4b627c;background:transparent;font:inherit;font-weight:600;min-height:44px;cursor:pointer}
.budget-nav button[aria-selected=true]{background:#fff;color:#214fa8;box-shadow:0 2px 8px #173e6d12}
.budget-workspace :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:3px solid #188b9c;outline-offset:3px}
.budget-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}
.budget-metrics article{padding:18px 20px;border:1px solid #dce5ef;border-radius:12px;background:#fff;min-width:0}
.budget-metrics article:first-child{border-top:3px solid #3769cd}
.budget-metrics article:nth-child(2){border-top:3px solid #20a18c}
.budget-metrics p{margin:0 0 10px;color:#566e85;font-size:14px}
.budget-metrics strong{display:block;font-size:clamp(20px,2.1vw,30px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.budget-metrics small{color:#698096}
.budget-section-head{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.budget-section-head h2{margin:0;font-size:21px}
.budget-section-head p,.budget-footnote{font-size:13px;color:#64788d}
.budget-badge{display:inline-block;padding:3px 8px;border-radius:6px;background:#edf2f8;color:#506981;font-size:12px;margin:2px 4px 2px 0;white-space:normal}
.budget-badge.risk{background:#fff0ed;color:#a53524}
.budget-pending{color:#8b6016;font-size:13px}
.budget-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:16px 0}
.budget-filters label{display:grid;gap:5px;font-size:13px;color:#53697d;flex:1 1 190px;max-width:320px}
.budget-filters input,.budget-filters select{width:100%;min-width:0;padding:10px 12px;border:1px solid #cbd8e5;border-radius:8px;background:#fff;color:inherit;font:inherit;min-height:42px}
.budget-filters [role=status]{font-size:13px;color:#687e91;margin:0 0 10px}
.budget-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #dce5ef;border-radius:12px;background:#fff}
.budget-table{border-collapse:collapse;width:100%;min-width:1060px;font-size:13px;font-variant-numeric:tabular-nums}
.budget-table caption{text-align:left;padding:12px 16px;color:#687c90;font-size:12px;background:#f8fafd}
.budget-table th,.budget-table td{text-align:right;vertical-align:top;padding:14px 12px;border-bottom:1px solid #e7edf4}
.budget-table thead th{background:#f1f5fa;color:#556e85;font-weight:600;white-space:normal;min-width:92px}
.budget-table th:first-child{text-align:left;min-width:164px}
.budget-table td:last-child{text-align:left;min-width:170px}
.budget-table small{display:block;font-size:11px;color:#70869a;max-width:210px;margin-top:4px}
.budget-table .budget-risk-row{background:#fffaf8}
.budget-table tr:last-child>*{border-bottom:0}
.budget-unit{border:0;padding:0;background:transparent;color:#235da7;text-align:left;cursor:pointer;font:inherit;font-weight:600;overflow-wrap:anywhere;max-width:240px}
.budget-table progress{display:block;width:100%;min-width:85px;height:7px;margin-top:7px;accent-color:#398bba;border-radius:5px}
.budget-risk-row progress{accent-color:#cf6749}
.budget-table progress::-webkit-progress-bar{background:#e5edf4;border-radius:5px}
.budget-table progress::-webkit-progress-value{background:#398bba;border-radius:5px}
.budget-risk-row progress::-webkit-progress-value{background:#cf6749}
.budget-empty{padding:18px;border:1px dashed #ccd8e4;border-radius:10px;background:#f7f9fc;color:#61778c;margin:16px 0}
.budget-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.budget-source-grid .info-card{margin:0}
.budget-unit-detail{margin:18px 0;padding:20px;border:1px solid #cddded;border-radius:12px;background:#f7faff}
.budget-unit-detail h3{margin-top:0}
.budget-issues{padding:0;list-style:none}
.budget-issues li{padding:10px 14px;border-left:3px solid #d89557;background:#fff8ee;margin:8px 0;overflow-wrap:anywhere}
.budget-run{margin-top:26px!important}
.budget-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0}
.budget-toolbar label{display:grid;gap:6px;max-width:100%;min-width:0}
.budget-toolbar :is(input,select){font:inherit;padding:9px;border:1px solid #cbd9e8;border-radius:7px;max-width:100%;min-width:0}
.budget-real-erp .budget-table-scroll{max-height:480px;overflow:auto}
.budget-real-erp .budget-table thead{position:sticky;top:0;background:#edf3f9;z-index:1}
.budget-unit-button{border:0;background:transparent;color:#275ab0;text-decoration:underline;text-align:left;font:inherit;cursor:pointer;padding:4px 0;white-space:normal}
.budget-report summary{padding:12px 0;color:#315d8b;cursor:pointer;font-weight:600}
@media(max-width:700px){.budget-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.budget-metrics article{padding:14px 12px}.budget-source-grid{grid-template-columns:1fr}.budget-context{padding:14px}.budget-nav button{flex-basis:120px;padding:10px 7px;font-size:13px}.budget-table-scroll{border-radius:8px}.budget-filters label{max-width:none}.budget-metrics strong{font-size:21px}}
