.bal-page{color:#172b4d;padding:8px 0 30px}.bal-heading,.bal-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.bal-heading h1{margin:5px 0;font-size:26px}.bal-heading h1 span{font-size:12px;background:#e9f1ff;padding:5px;border-radius:8px;color:#2563eb}.bal-heading p,.bal-heading small,.bal-panel small,.bal-note{color:#72809a}.bal-counter{background:#e5f6ea;color:#16763e;border-radius:24px;padding:9px 15px;font-weight:700}.bal-steps{display:flex;gap:9px;margin:15px 0;flex-wrap:wrap}.bal-steps span{background:#fff;border:1px solid #e1e8f3;padding:10px 14px;border-radius:12px;font-weight:650;font-size:12px}.bal-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:15px}.bal-left,.bal-main{display:flex;flex-direction:column;gap:13px;min-width:0}.bal-panel{background:#fff;border:1px solid #e2e9f3;border-radius:14px;padding:16px;box-shadow:0 3px 12px #102d5010;min-width:0}.bal-panel h3{font-size:15px;margin:0 0 12px}.bal-panel h4{margin:12px 0 5px;background:#e7f5ea;border-radius:6px;padding:7px;font-size:12px}.bal-date,.bal-add,.bal-tabs,.bal-actions{display:flex;gap:7px;flex-wrap:wrap}.bal-date input{min-width:0;max-width:100%;flex:1}.bal-page input,.bal-page select,.bal-page textarea{border:1px solid #d7e1ef;border-radius:8px;padding:9px;background:white;color:#1b2a44;font:inherit}.bal-page button{border:1px solid #d3dfef;background:#fff;color:#244168;border-radius:8px;padding:8px 11px;cursor:pointer;font-weight:600}.bal-page button:hover{background:#eaf2ff}.bal-page button:disabled{opacity:.4;cursor:not-allowed}.bal-page .bal-primary,.bal-page .bal-tabs .active{background:#1667ed;color:white;border-color:#1667ed}.bal-page .bal-success{background:#13944e;color:#fff;border-color:#13944e}.bal-add input{flex:1;min-width:100px}.bal-bank-list{max-height:235px;overflow:auto;margin:10px 0}.bal-bank-list>div{display:flex;align-items:center;border-bottom:1px solid #eef1f7;padding:4px;gap:4px}.bal-bank-list span{flex:1;font-size:12px;overflow-wrap:anywhere}.bal-bank-list button{padding:3px 7px}.bal-platform{display:flex;justify-content:space-between;align-items:center;width:100%;margin:3px 0;font-size:12px}.bal-platform.selected{background:#e9f1ff;border-color:#88b3fa}.bal-platform span{color:#7c8b9e;font-size:10px}.bal-platform span.ok{color:#159447}.bal-platform span.pending{color:#b47700}.bal-input-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:16px}.bal-input-grid label{display:block;font-size:12px;font-weight:700;margin:7px 0}.bal-input-grid textarea{width:100%;height:240px;resize:vertical;font-size:12px;box-sizing:border-box}.bal-review{height:240px;overflow:auto;border:1px solid #e0e7f2;border-radius:9px}.bal-review table{width:100%;border-collapse:collapse;font-size:12px}.bal-review th,.bal-review td{padding:5px;border-bottom:1px solid #e8edf4;text-align:left}.bal-review input{width:120px;max-width:100%;box-sizing:border-box}.bal-review select{width:140px;max-width:100%}.bal-actions{margin-top:10px}.bal-report{overflow:auto;background:white;padding:8px 0}.bal-sheet-title{text-align:center;background:#94c47d;font-weight:800;font-size:16px;padding:7px;white-space:nowrap;color:#111}.bal-sheet-title em{color:red;font-style:normal}.bal-sheet{width:100%;border-collapse:collapse;font-family:'Times New Roman',serif;font-size:12px;color:#000;white-space:nowrap}.bal-sheet th,.bal-sheet td{border:1px solid #333;padding:4px 6px;text-align:right}.bal-sheet thead th{background:#48b8c2;text-align:center;font-size:13px}.bal-sheet thead th:first-child,.bal-sheet tbody th:nth-child(2){background:#d9e8d1}.bal-sheet tbody th:last-child{font-weight:800}.bal-fee{background:#d9e8d1}.bal-fee input{width:42px;padding:2px;border:0;background:transparent;color:red;text-align:center;font-size:11px}.bal-total th{background:#95c47e!important;font-weight:900;font-size:14px}.bal-total th:last-child{color:red}.bal-spacer{height:20px}@media(max-width:1050px){.bal-layout{grid-template-columns:1fr}.bal-input-grid{grid-template-columns:1fr}}@media print{body *{visibility:hidden!important}#balPrintable,#balPrintable *{visibility:visible!important}#balPrintable{position:absolute;left:0;top:0;width:100%;overflow:visible!important}.bal-sheet{font-size:9px}.bal-sheet th,.bal-sheet td{padding:3px} @page{size:landscape;margin:8mm}}

/* V232 premium visual redesign — scoped exclusively to Balance Report */
.bal-page{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#14264a;padding:0 0 32px;max-width:none}
.bal-heading{background:linear-gradient(110deg,#fff,#f8fbff);border:1px solid #dce6f5;border-radius:13px;padding:14px 20px;margin-bottom:9px;box-shadow:0 3px 12px #122b5710}
.bal-heading h1{font-size:25px;letter-spacing:-.65px;margin:2px 0}.bal-heading h1:before{content:'◈';color:#1468f4;margin-right:12px}.bal-heading h1 span{font-size:10px;vertical-align:middle}.bal-heading p{font-size:11px;margin:0}.bal-heading small{font-size:11px;color:#587091;font-weight:650}
.bal-counter{font-size:12px;background:#e7f8ec;padding:8px 12px}.bal-steps{display:flex;gap:7px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e0e8f5;border-radius:12px;padding:10px;margin:0 0 9px;flex-wrap:nowrap}
.bal-steps span{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;border-radius:28px;border:1px solid #cfdaeb;padding:8px 10px;font-size:12px;white-space:nowrap;box-shadow:none}.bal-steps i{font-style:normal;border:1px solid #b5c8e5;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;font-weight:800;color:#31517e}.bal-steps .bal-current{background:linear-gradient(110deg,#2587ff,#0762ed);color:#fff;border-color:#1977f5}.bal-steps .bal-current i{background:#fff;color:#136cf0;border:0}.bal-steps .bal-done i{background:#09964b;color:#fff;border:0}.bal-steps .bal-done b{color:#09964b}
.bal-layout{grid-template-columns:320px minmax(0,1fr);gap:10px}.bal-left,.bal-main{gap:9px}.bal-panel{border-radius:11px;padding:13px 15px;border-color:#dce5f4;box-shadow:0 2px 9px #19355c0d}.bal-panel h3{font-size:13px;color:#15294c;margin-bottom:10px}.bal-panel h3:before{content:'▣';color:#086cf1;margin-right:7px}.bal-panel h4{background:#e4f6e8;color:#164c29;padding:7px 10px;font-size:12px}.bal-panel h4:nth-of-type(2){margin-top:12px}.bal-page button{border-radius:7px;font-size:12px;padding:7px 11px;transition:background .15s,border-color .15s}.bal-page button:focus-visible,.bal-page input:focus-visible,.bal-page textarea:focus-visible{outline:2px solid #4b96ff;outline-offset:1px}.bal-page .bal-primary{background:linear-gradient(120deg,#2588ff,#0963ee);border-color:#166bf0;color:#fff}.bal-page .bal-success{background:linear-gradient(120deg,#18ae60,#07833c);border-color:#0b944b;color:#fff}.bal-page input,.bal-page select,.bal-page textarea{font-size:12px;padding:8px}.bal-date input{font-weight:650}.bal-tabs{display:flex;flex-direction:column;gap:5px}.bal-tabs button{width:100%;display:flex;justify-content:space-between;text-align:left;background:#fff;color:#1b2b48;border:1px solid #d7e1f0}.bal-tabs .active{background:#eaf3ff!important;color:#1157c2!important;border-color:#9cc4ff!important}.bal-tabs button small{font-size:10px;color:#69809c;margin-left:auto;margin-right:12px}.bal-add{margin-top:10px}.bal-bank-list{max-height:170px}.bal-bank-list>div{padding:3px 0}.bal-bank-list button{font-size:11px;padding:3px 7px}.bal-platform{padding:5px 8px!important;margin:1px 0!important;border:0!important;border-bottom:1px solid #edf1f8!important;border-radius:0!important}.bal-platform b{font-size:12px}.bal-platform span.ok{color:#0c9443}.bal-platform span.ok:before{content:'✓ ';font-weight:900}.bal-platform span.pending:before{content:'◷ '}.bal-platform.selected{background:#edf5ff!important;border-radius:6px!important}.bal-input-header{padding:2px 0 10px;border-bottom:1px solid #e3eaf5;margin-bottom:10px;justify-content:flex-start}.bal-input-header h3{margin:0 5px 0 0}.bal-input-header select{width:min(250px,45%);font-weight:700}.bal-state{font-size:11px;color:#137e45;background:#e8f7ed;border-radius:30px;padding:6px 12px;margin-right:auto}.bal-input-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px}.bal-input-grid label{font-size:12px;margin:4px 0 9px;color:#122647}.bal-input-grid textarea,.bal-review{height:166px}.bal-input-grid textarea{line-height:1.55}.bal-review th{background:#f0f5fc;font-weight:800}.bal-review th,.bal-review td{padding:6px}.bal-actions{gap:6px}.bal-note{font-size:11px}.bal-report{padding:5px 0}.bal-sheet-title{font-size:14px;padding:5px}.bal-sheet{font-size:11px}.bal-sheet th,.bal-sheet td{padding:3px 4px}.bal-sheet thead th{font-size:12px}.bal-sheet tbody th{font-size:11px}.bal-spacer{height:16px}
@media(max-width:1200px){.bal-layout{grid-template-columns:270px minmax(0,1fr)}.bal-input-grid{gap:10px}.bal-steps span{font-size:10px;padding:7px 5px}}
@media(max-width:900px){.bal-layout{grid-template-columns:1fr}.bal-input-grid{grid-template-columns:1fr}.bal-steps{flex-wrap:wrap}.bal-steps span{flex:1 1 40%}.bal-bank-list{max-height:140px}}
@media print{.bal-page{padding:0}.bal-sheet-title{font-size:13px}}
/* V233: structural reconstruction of the approved compact dashboard */
.bal-page{padding:0 0 20px!important;max-width:100%;font-family:Inter,system-ui,'Segoe UI',sans-serif}
.bal-heading{min-height:55px;padding:10px 18px;margin-bottom:0;border-radius:10px 10px 0 0;box-shadow:none}
.bal-heading h1{font-size:23px}.bal-heading h1:before{content:'◆';color:#0873f9}.bal-heading p{font-size:11px}
.bal-steps{border-radius:0 0 10px 10px;margin:0 0 8px;padding:8px 14px;gap:8px}
.bal-steps span{min-height:28px;font-size:12px;border-radius:26px;padding:6px 10px}
.bal-layout{grid-template-columns:315px minmax(0,1fr);gap:9px;align-items:start}
.bal-left,.bal-main{gap:7px}
.bal-panel{padding:11px 13px;border-radius:9px;box-shadow:0 2px 8px #153b7410}
.bal-panel h3{margin-bottom:7px;font-size:13px}
.bal-date{flex-wrap:nowrap}.bal-date input{width:50%;font-size:11px;padding:6px}
.bal-tabs{gap:5px}.bal-tabs button{padding:7px 10px;border-radius:7px}.bal-tabs button:after{content:'›';font-size:16px}
.bal-bank-modal[hidden]{display:none!important}
.bal-bank-modal{position:fixed;z-index:10000;top:50%;left:50%;transform:translate(-50%,-50%);width:min(490px,calc(100vw - 32px));max-height:80vh;overflow:auto;background:white;border:1px solid #cbdcf4;border-radius:16px;padding:20px;box-shadow:0 0 0 9999px #071d4670,0 22px 70px #0c244b50}
.bal-bank-modal-head{display:flex;align-items:center;justify-content:space-between}.bal-bank-modal-head strong{font-size:17px}.bal-bank-list{max-height:48vh}.bal-bank-list>div{padding:6px}
.bal-platform{padding:3px 8px!important;min-height:22px;margin:0!important}.bal-platform b{font-size:11px}.bal-platform span{font-size:10px}
.bal-panel h4{margin:7px 0 2px!important;padding:5px 9px!important}
.bal-input-header{padding:0 0 7px;margin-bottom:8px;gap:10px}.bal-input-header select{width:230px}.bal-state{margin-right:auto}
.bal-input-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:15px}.bal-input-grid textarea,.bal-review{height:124px!important}.bal-input-grid textarea{line-height:1.35}.bal-actions{margin-top:6px}
.bal-report{max-height:470px;overflow:auto!important}.bal-sheet{font-size:10px}.bal-sheet th,.bal-sheet td{padding:2px 4px}.bal-sheet-title{font-size:13px;padding:4px}.bal-spacer{height:14px}
@media(min-width:1250px){.bal-page{width:100%}.bal-layout{grid-template-columns:315px minmax(0,1fr)}}
@media(max-width:950px){.bal-layout{grid-template-columns:1fr}.bal-input-grid{grid-template-columns:1fr}.bal-report{max-height:600px}}
@media print{.bal-report{max-height:none!important;overflow:visible!important}.bal-bank-modal{display:none!important}}
