:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24332e;background:#f6f7f9;font-synthesis:none;font-size:14px;--green:#176449;--muted:#82908a;--border:#e9edea;--soft:#f6f8f7}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #61ac91;outline-offset:3px}input,select{min-width:0}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;cursor:pointer;vertical-align:middle}input[type=checkbox]:disabled{cursor:not-allowed;opacity:.4}input[type=checkbox]:focus-visible{outline-offset:2px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.muted{color:var(--muted)}.text-red{color:#c66053!important}.text-button{display:inline-flex;align-items:center;gap:8px;color:#65756d;font-weight:500;padding:6px 0;white-space:nowrap}.text-button:hover{color:var(--green)}.text-button .icon{width:17px;height:17px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-100px;left:20px;z-index:20;padding:14px;background:white}.skip:focus{top:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;border-radius:8px;font-weight:600;line-height:20px;white-space:nowrap;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.button.primary{background:var(--green);color:white;box-shadow:0 2px 3px #164c3610}.button.primary:hover{background:#105038}.button.secondary{background:#fff;border:1px solid #dfe5e1}.button.secondary:hover{background:#f6f8f7}.icon-button{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;border-radius:6px;color:#84928c}.icon-button:hover{background:#edf4ef;color:var(--green)}
.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#fff;border-right:1px solid var(--border);padding:34px 20px 0;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 10px 42px;font-size:23px;font-weight:720;letter-spacing:-.8px}.brand-icon{display:flex;align-items:center;justify-content:center;width:39px;height:42px;border-radius:11px;background:var(--green);color:#fff}.brand-icon .icon{width:26px;height:26px;stroke-width:1.6}.brand-sub{display:block;font-size:7.8px;letter-spacing:1.35px;color:#8d9791;font-weight:600;margin-top:5px}.workspace-label{font-size:9px;font-weight:650;letter-spacing:1.25px;color:#9ba59f;margin:0 12px 13px;display:flex;justify-content:space-between}.workspace-label span{font-size:10px;letter-spacing:0}nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 12px;width:100%;text-align:left;color:#69776f;font-size:12px;border-radius:7px;font-weight:500}.nav-item .icon{width:18px;height:18px}.nav-item.active{background:#eaf3ed;color:var(--green);font-weight:650}.nav-item:hover{background:#f0f5f1}.nav-count{margin-left:auto;font-size:10px;line-height:19px;padding:0 6px;border-radius:4px;background:#d6e7dc;color:var(--green)}.sidebar-accounts{border-top:1px solid var(--border);margin-top:28px;padding-top:26px}.account-link{display:flex;align-items:center;gap:10px;padding:11px 13px;width:100%;font-size:12px;text-align:left}.account-link .muted{margin-left:auto;font-size:11px}.account-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0;background:#4c9875}.account-dot.blue{background:#6c9dcc}.account-dot.purple{background:#a18acb}.sidebar-bottom{margin-top:auto;padding-top:45px}.local-card{background:#f5f8f5;border:1px solid #e9efe9;border-radius:8px;display:flex;gap:9px;padding:13px 11px;margin-bottom:20px}.local-card>.icon{color:#7c9986;width:17px;height:17px}.local-card strong{font-size:11px;font-weight:600}.local-card p{font-size:10px;line-height:1.7;color:#8a968f;margin:5px 0 0}.profile{margin-top:15px;padding:20px 1px;border-top:1px solid var(--border);display:flex;align-items:center;gap:10px}.avatar{border-radius:50%;background:#eeeae2;color:#8e816b;width:33px;height:33px;display:grid;place-items:center;font-size:12px}.profile strong{display:block;font-size:11px;font-weight:600}.profile small{display:block;color:#98a099;font-size:9px;margin-top:4px}.online-dot{width:6px;height:6px;border-radius:50%;background:#7da68a;margin-left:auto}
.workspace{margin-left:236px}.topbar{height:76px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 43px;background:#ffffffb0;gap:20px}.breadcrumb{font-size:11px;color:#95a098}.breadcrumb>span{margin:0 11px;color:#bcc4bf}.breadcrumb strong{font-weight:500;color:#66756d}.topbar-right{display:flex;align-items:center;gap:22px}.demo-pill{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:500;border:1px solid #e2e9df;padding:6px 9px;border-radius:5px;color:#6c826c;background:#f6f8f2;white-space:nowrap}.demo-pill>span{width:5px;height:5px;border-radius:50%;background:#91a47c}.top-date{color:#93a096;font-size:11px}main{max-width:1550px;margin:auto;padding:38px 43px 27px;outline:none}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:29px}.eyebrow{font-size:8.5px;letter-spacing:1.5px;font-weight:600;color:#7e9185;margin-bottom:10px}h1{font-size:29px;letter-spacing:-1.05px;font-weight:650;line-height:1.2;margin:0}h2{font-size:14px;font-weight:600;margin:0;letter-spacing:-.15px}h3{margin:0}.heading p{font-size:12px;color:#89958f;margin:10px 0 0;line-height:1.6}.heading .button{font-size:11px;padding:10px 15px;margin-top:12px}.heading .button .icon{width:17px;height:17px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:20px}.stat{background:#fff;border:1px solid #e6ebe7;border-radius:10px;display:block;text-align:left;padding:19px 22px 20px;box-shadow:0 2px 3px #23382a02}.stat:hover{border-color:#b8d1c3}.stat-label{font-size:11px;color:#7f8d85;display:flex;align-items:center;justify-content:space-between}.stat-icon{width:29px;height:29px;background:#f4f6f4;border-radius:7px;display:grid;place-items:center;color:#82938a}.stat-icon .icon{width:16px;height:16px}.stat-icon.red{background:#fcf0ed;color:#cf867a}.stat-icon.green{background:#edf7ef;color:#70a382}.stat>strong{display:block;font-size:29px;font-weight:620;letter-spacing:-.7px;margin-top:5px;margin-bottom:12px}.stat>span{display:block;font-size:10px;color:#8e9a92}.stat .muted{color:#a0aaa4}.review-notice{border:1px solid #efe4c8;background:#fcfaf3;display:flex;align-items:center;gap:12px;border-radius:8px;padding:13px 16px;margin-bottom:28px}.notice-icon{display:grid;place-items:center;background:#f4ecd5;color:#ac9056;border-radius:6px;width:31px;height:31px}.notice-icon .icon{width:17px;height:17px}.review-notice strong{display:block;font-size:10.5px;font-weight:600;color:#8a764b}.review-notice div>span{display:block;font-size:10px;color:#ad9d7c;margin-top:5px}.review-notice button{margin-left:auto;display:flex;align-items:center;gap:10px;color:#8d7a52;font-size:10px;font-weight:550;white-space:nowrap}.review-notice button .icon{width:16px;height:16px}
.panel{background:#fff;border:1px solid #e6ebe7;border-radius:10px;overflow:hidden;box-shadow:0 2px 3px #23382a02}.panel-title{display:flex;justify-content:space-between;align-items:center;padding:22px 22px 0}.panel-title>div{display:flex;align-items:center;gap:9px}.panel-title .text-button{font-size:10px}.count-bubble{font-size:9px;background:#f1f4f2;border:1px solid #e9eeea;color:#92a095;padding:3px 6px;border-radius:5px}.tabs{display:flex;gap:25px;padding:0 22px;border-bottom:1px solid var(--border);margin-top:15px}.tab{padding:14px 0 13px;color:#87938c;border-bottom:2px solid transparent;font-size:11px;display:flex;align-items:center;gap:7px;white-space:nowrap}.tab.selected{color:var(--green);font-weight:600;border-bottom-color:var(--green)}.tab>span{font-size:9px;background:#f2f4f2;color:#9ba69e;padding:2px 5px;border-radius:4px}.tab.selected>span{background:#e9f2ec;color:#6a9177}.table-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 22px}.search{display:flex;align-items:center;gap:8px;border:1px solid #e7ece8;border-radius:6px;padding:9px 11px;max-width:340px;flex:1;color:#9aa79e;background:#fdfefd}.search .icon{width:15px;height:15px}.search input{border:0;outline:0;width:100%;background:none;color:#374a3f;font-size:10px}.search input::placeholder{color:#a2aca5}.search:focus-within{border-color:#88b49c;box-shadow:0 0 0 2px #d7eadd}.search button{padding:0;color:#9aa79e}.filter-selects{display:flex;gap:9px}.select-wrap{border:1px solid #e7ece8;border-radius:6px;display:flex;align-items:center;gap:6px;padding:8px 9px;color:#87988b}.select-wrap .icon{width:14px;height:14px}.select-wrap select{border:0;background:none;font-size:10px;color:#76867a;max-width:145px;cursor:pointer;outline-offset:4px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:9px;font-weight:500;color:#98a59c;background:#fafcfb;padding:11px 13px;border-top:1px solid #eef1ee;border-bottom:1px solid #eef1ee}td{padding:13px;border-bottom:1px solid #f0f2f0;font-size:11px;color:#526459}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}tr.row-selected{background:#f4f9f5}tr.row-selected:hover{background:#edf5ef}.checkbox-cell{width:43px;padding-left:22px;padding-right:0}.checkbox-cell input{margin:0;width:13px;height:13px}.supplier-cell{display:flex;gap:11px;align-items:center;text-align:left;padding:0;width:100%;min-width:200px}.supplier-avatar{width:33px;height:33px;flex-shrink:0;display:grid;place-items:center;border:1px solid #eaeeeb;border-radius:8px;background:#f2f4f1;font-size:11px;color:#586a5a;font-weight:700}.supplier-1{background:#f8f0ee;color:#bb5b51}.supplier-2{background:#edf3fa;color:#5982b3}.supplier-3{background:#f2eff7;color:#8f7aaa}.supplier-4{background:#f7f4e8;color:#a38d4c}.supplier-5{background:#f1f5ed;color:#729459}.supplier-cell strong{font-size:11px;font-weight:600;display:block;line-height:1.5;color:#3e5045}.supplier-cell small{display:block;font-size:9px;font-weight:400;color:#97a299;margin-top:3px;max-width:220px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.account-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid #e9eee9;border-radius:5px;padding:5px 7px;font-size:9px;background:#fdfefd;color:#7f8d82}.account-tag .account-dot{width:5px;height:5px}.due-date{font-size:10px;color:#6f8175}.due-note{display:block;font-size:8px;color:#a1aea4;margin-top:5px}.align-right{text-align:right}.amount{font-size:11px;font-weight:600;color:#344a3b;letter-spacing:-.15px}.badge{display:inline-flex;align-items:center;gap:4px;font-size:8px;font-weight:500;padding:5px 7px;border-radius:5px;white-space:nowrap;line-height:1.2}.badge .icon{width:11px;height:11px;stroke-width:1.8}.badge.green{color:#639373;background:#edf6ef}.badge.amber{color:#b69856;background:#faf4e6}.badge.gray{color:#98a398;background:#f1f4f1}.badge.blue{color:#5f85a5;background:#edf3f8}.row-end{padding-right:17px;padding-left:0;width:31px}.row-end .icon{width:14px;height:14px}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--border);padding:15px 22px;color:#a0aaa3;font-size:9px}.table-footer>span:last-child{display:flex;gap:15px;align-items:center}.table-footer .text-button{font-size:9px}.selection-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 22px;background:#edf5ee;border-top:1px solid #dce9df}.selection-bar>div{display:flex;gap:10px;align-items:center}.selection-bar strong{font-size:12px}.selection-bar small{display:block;font-size:9px;color:#87988b;margin-top:5px}.selection-check{background:#d9eadd;border-radius:5px;padding:6px;color:#3b865a}.selection-check .icon{width:17px;height:17px}.selection-bar .button{font-size:11px;padding:9px 12px}.selection-bar .button .icon{width:15px;height:15px}
.account-overview{margin-top:29px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-heading h2{font-size:13px}.section-heading .text-button{font-size:10px}.account-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.account-card{background:white;border:1px solid #e6ebe7;border-radius:9px;text-align:left;padding:18px 20px;transition:border-color .2s}.account-card:hover{border-color:#bed2c4}.account-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.account-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#edf5ee;color:#7b9c80}.account-icon .icon{width:17px;height:17px}.account-icon.blue{background:#edf3f9;color:#82a2c0}.account-icon.purple{background:#f3f0f8;color:#a190bc}.fio-label{display:flex;align-items:center;gap:6px;font-size:8px;color:#a3aea6}.fio-label .account-dot{width:5px;height:5px}.account-card h3{font-size:12px;font-weight:600;margin-top:15px}.account-description{display:block;color:#a2aca4;font-size:9px;margin-top:5px}.account-total{border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px;padding-top:14px}.account-total strong{font-size:17px;font-weight:600;letter-spacing:-.4px}.account-total>span{font-size:8px;display:flex;gap:8px;align-items:center;color:#a2aca4}.account-total .icon{width:13px;height:13px}.page-footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a7b1aa;max-width:1550px;padding:4px 43px 25px;margin:auto}.page-footer>span:first-child{display:flex;align-items:center;gap:6px}.page-footer .icon{width:12px;height:12px}.footer-version{margin-left:9px;color:#bac1bb}
.info-box{display:flex;align-items:center;gap:10px;background:#edf4ef;border:1px solid #dde9df;color:#698472;font-size:12px;border-radius:8px;padding:17px 20px;line-height:1.7;margin-bottom:24px}.info-box .icon{width:19px;height:19px}.info-box.compact{font-size:11px;padding:12px 14px;margin:15px 0}.info-box.warning{background:#fdf8eb;color:#9c8049;border-color:#eee1c0}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 24px;text-align:center;white-space:normal}.empty>.icon{width:36px;height:36px;color:#9cb0a1;margin-bottom:18px}.empty h3,.empty h2{font-size:17px;font-weight:550}.empty p{color:#94a097;line-height:1.8;font-size:12px;max-width:430px}.empty .button{margin-top:10px;font-size:12px}.empty.large{padding:90px 30px}.batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.batch-card{padding:23px}.batch-title{display:flex;align-items:center;gap:12px}.batch-title small{font-size:10px;color:#9ba79e;display:block;margin-top:5px}.batch-title .badge{margin-left:auto}.batch-total{font-size:28px;font-weight:600;margin:25px 0}.batch-items{border-top:1px solid var(--border)}.batch-items button{display:flex;width:100%;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding:14px 0;font-size:11px}.batch-items button:hover{color:var(--green)}.batch-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px}.batch-actions .button,.batch-actions .text-button{font-size:10px}.expanded .account-card{padding:27px}.expanded .account-card h2{margin-top:20px;font-size:19px}.expanded .account-card p{font-size:11px;color:#95a198}.account-number{font-size:13px;margin:25px 0 15px;color:#6b7d6f;letter-spacing:.8px}.expanded .account-total{margin-bottom:20px}.expanded+.info-box{margin-top:25px}.settings-panel{padding:25px;max-width:900px}.settings-panel>h2{margin-bottom:10px;display:flex;align-items:center;gap:10px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:23px 0;border-bottom:1px solid var(--border)}.setting-row:last-child{border-bottom:0;padding-bottom:0}.setting-row strong{font-size:12px}.setting-row p{max-width:560px;font-size:11px;color:#8d9b91;line-height:1.9;margin:7px 0 0}.setting-row .button{font-size:11px}.fatal{padding:70px;max-width:700px;margin:auto}.fatal p{line-height:1.8;color:#829286}
dialog{border:1px solid #e4ebe5;border-radius:14px;box-shadow:0 25px 100px #12291d2a;width:min(580px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:27px;color:#344a3b;background:#fff}dialog::backdrop{background:#14271e66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:23px}.dialog-heading h2{font-size:23px;letter-spacing:-.7px;margin-top:7px}.dialog-heading p{font-size:11px;color:#97a49b;line-height:1.7;margin:8px 0 0}.dialog-heading .eyebrow{font-size:8px}.document-preview{display:flex;align-items:center;gap:12px;padding:15px;background:#f7f9f7;border:1px solid #e8eee8;border-radius:7px}.document-preview>.icon{color:#739380;width:25px;height:25px}.document-preview>div{min-width:0;flex:1}.document-preview strong{display:block;font-size:11px;overflow-wrap:anywhere}.document-preview small{display:block;font-size:9px;line-height:1.7;color:#9ba79e;margin-top:4px}fieldset{margin:0;padding:0;border:0;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:22px 0}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:10px;font-weight:550;color:#7d9082}.form-grid label.wide{grid-column:1/-1}.form-grid input,.form-grid select{width:100%;border:1px solid #dfe8e1;border-radius:6px;padding:10px;background:#fefefe;color:#405d49;font-size:12px;min-height:39px}.form-grid input::placeholder{color:#bac4bc}.form-grid label small{color:#a8b2aa;font-size:9px;font-weight:400;line-height:1.7}.form-error{font-size:11px;color:#c26457;line-height:1.7;margin-bottom:10px}.confirm-check{display:flex;align-items:flex-start;gap:9px;border-top:1px solid var(--border);padding-top:17px;font-size:11px;color:#607c69;line-height:1.6}.confirm-check input{margin:2px 0 0;flex-shrink:0}.confirm-check small{display:block;font-size:9px;color:#a0afa3;margin-top:4px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid var(--border);margin-top:23px;padding-top:20px}.dialog-actions .button{font-size:11px;padding:10px 13px}.dialog-actions .text-button{margin-right:auto;font-size:10px}.danger{color:#ba796d}.batch-review>div{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--border)}.batch-review>div>strong{margin-left:auto;font-size:16px}.batch-review small{display:block;font-size:10px;color:#91a096;margin-top:5px}.batch-review strong{font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;background:#234b37;color:#fff;padding:14px 20px;border-radius:9px;font-size:12px;line-height:1.7;max-width:min(90vw,600px);box-shadow:0 6px 30px #14271e33;z-index:30}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){main{padding-top:45px}.stat{padding:24px}.supplier-cell{min-width:240px}td{padding-top:17px;padding-bottom:17px}.heading{margin-bottom:35px}.heading h1{font-size:34px}}
@media(max-width:1200px){.sidebar{width:210px;padding-left:15px;padding-right:15px}.workspace{margin-left:210px}main{padding:30px 25px 25px}.topbar{padding:0 25px}.page-footer{padding-left:25px;padding-right:25px}.table-controls{padding:15px}.table-footer,.panel-title{padding-left:15px;padding-right:15px}.tabs{padding:0 15px}.stat{padding:17px}.stat>strong{font-size:24px}.account-card{padding:16px}.account-total{align-items:flex-start;flex-direction:column;gap:8px}.account-total strong{font-size:17px}.supplier-cell{min-width:185px}.supplier-cell small{max-width:165px}.checkbox-cell{padding-left:15px;width:34px}td,th{padding-left:10px;padding-right:10px}.account-cards{gap:13px}.expanded .account-card{padding:20px}.expanded .account-card .button{font-size:10px}}
@media(max-width:960px){.sidebar{width:76px;padding:27px 12px 0}.brand{padding:0 6px 35px}.brand>span:last-child,.workspace-label,.nav-item>span,.sidebar-accounts,.local-card,.profile>div,.profile>.online-dot{display:none}.brand-icon{width:38px;height:40px;flex-shrink:0}.nav-item{justify-content:center;padding:15px}.nav-item .icon{width:21px;height:21px}.sidebar-bottom{padding-top:25px}.profile{justify-content:center}.workspace{margin-left:76px}.top-date{display:none}.topbar{height:66px}.stats{gap:12px}.stat>strong{font-size:25px}.stat>span{font-size:9px}.stat .muted{display:none}.review-notice div>span{max-width:340px;line-height:1.7}.selection-bar>div small{display:none}.batch-grid{grid-template-columns:1fr}.account-total>span{font-size:9px}.footer-version{display:none}}
@media(max-width:680px){.sidebar{position:fixed;inset:auto 0 0;width:auto;height:68px;padding:0 8px calc(env(safe-area-inset-bottom,0px));border-right:0;border-top:1px solid #e5eae6;flex-direction:row;align-items:center;justify-content:space-around;height:calc(64px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -3px 20px #1e472507}.brand,.sidebar-bottom .profile{display:none}.sidebar nav{display:flex;flex:3;gap:3px}.nav-item{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:9px 5px;border-radius:8px}.nav-item>span:not(.nav-count){display:block;font-size:8px;white-space:nowrap}.nav-item .nav-count{display:none}.nav-item .icon{width:18px;height:18px}.sidebar-bottom{margin:0;padding:0;flex:1}.sidebar-bottom .nav-item{width:100%;min-width:60px}.workspace{margin-left:0;padding-bottom:75px}.topbar{height:55px;padding:0 18px}.breadcrumb{font-size:9px}.breadcrumb>span{margin:0 7px}.demo-pill{font-size:8px;padding:5px 7px}.topbar-right{gap:8px}main{padding:28px 16px 22px}.heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:22px}.heading .eyebrow{font-size:7.5px;letter-spacing:1.1px}.heading h1{font-size:28px}.heading p{font-size:11px;margin-top:8px}.heading>.button{margin-top:0;font-size:11px;width:100%;padding:11px 15px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.stat:first-child{grid-column:1/-1;position:relative;padding:18px 20px}.stat:first-child .stat-label{font-size:12px}.stat:first-child .stat-icon{position:absolute;right:20px;top:22px;width:40px;height:40px}.stat:first-child>strong{font-size:32px;margin-top:8px;margin-bottom:10px}.stat{padding:14px}.stat-label{font-size:9px}.stat-icon{width:24px;height:24px}.stat>strong{font-size:21px;margin-top:6px;margin-bottom:10px}.stat>span{font-size:8px}.review-notice{position:relative;padding:13px 12px;align-items:flex-start;gap:10px;margin-bottom:22px}.notice-icon{width:27px;height:27px;flex-shrink:0}.review-notice strong{font-size:10px}.review-notice div>span{font-size:9px;line-height:1.8;padding-right:2px}.review-notice button{font-size:9px;position:absolute;right:13px;bottom:12px}.review-notice div{padding-bottom:24px}.panel-title{padding:18px 13px 0}.panel-title h2{font-size:13px}.panel-title>.text-button{font-size:0;gap:0;padding:6px}.panel-title .text-button .icon{width:18px;height:18px}.tabs{gap:20px;padding:0 13px;overflow-x:auto;margin-top:9px}.tab{font-size:10px;gap:5px;padding:12px 0}.tab>span{font-size:8px}.table-controls{flex-direction:column;align-items:stretch;gap:10px;padding:13px}.search{max-width:none;padding:11px}.search input{font-size:11px}.filter-selects{justify-content:space-between}.select-wrap{flex:1;padding:8px}.select-wrap select{width:100%;font-size:10px;max-width:none}.table-scroll{overflow:visible}.invoices-panel table{display:block;white-space:normal}.invoices-panel thead{display:none}.invoices-panel tbody{display:block}.invoices-panel tbody tr{display:grid;grid-template-columns:25px minmax(0,1fr) auto;position:relative;padding:15px 13px 14px;border-top:1px solid #edf1ed;row-gap:11px;column-gap:7px}.invoices-panel td{border:0;padding:0}.invoices-panel td.checkbox-cell{padding:8px 0 0;width:25px;grid-column:1;grid-row:1/3}.invoices-panel td:nth-child(2){grid-column:2;grid-row:1}.supplier-cell{min-width:0;gap:8px}.supplier-avatar{width:29px;height:30px;font-size:10px;border-radius:7px}.supplier-cell>span:last-child{min-width:0}.supplier-cell strong{font-size:11px}.supplier-cell small{font-size:8px;max-width:170px;line-height:1.6}.supplier-cell>span:last-child{max-width:calc(100% - 37px)}.invoices-panel td:nth-child(3){grid-column:2;grid-row:2;margin-left:37px;align-self:center}.account-tag{font-size:8px;padding:3px 5px}.invoices-panel td:nth-child(4){grid-column:2;grid-row:3;margin-left:37px;display:flex;align-items:center;gap:7px}.due-date{font-size:9px}.due-note{font-size:8px;margin:0}.invoices-panel td:nth-child(5){grid-column:3;grid-row:1;align-self:start;margin-top:5px;font-size:12px}.invoices-panel td:nth-child(6){grid-column:3;grid-row:2;text-align:right;align-self:center}.badge{font-size:8px;padding:4px 6px}.row-end{display:none}.table-footer{padding:12px 13px;font-size:8px;align-items:flex-start;line-height:1.7}.table-footer>span:last-child{max-width:155px;text-align:right;gap:5px;flex-wrap:wrap;justify-content:flex-end}.table-footer .text-button{font-size:8px}.selection-bar{display:grid;grid-template-columns:1fr auto;padding:13px;gap:12px}.selection-bar>div strong{font-size:10px}.selection-bar>strong{font-size:13px}.selection-bar .button{grid-column:1/-1}.selection-check{padding:4px}.selection-check .icon{width:14px;height:14px}.account-overview{margin-top:24px}.section-heading h2{font-size:12px}.section-heading .text-button{font-size:9px}.account-cards{grid-template-columns:1fr;gap:10px}.account-card{position:relative;padding:15px 17px}.account-card h3{margin-top:12px}.account-card>div:first-child{display:flex}.account-total{position:absolute;right:17px;bottom:16px;border:0;margin:0;padding:0;align-items:flex-end;gap:7px}.account-total strong{font-size:19px}.account-description{font-size:9px}.account-icon{width:29px;height:29px}.page-footer{padding:0 17px 24px;font-size:8px}.page-footer>span:last-child{display:none}.expanded .account-card{padding:22px}.expanded .account-total{position:static;align-items:flex-start;margin-top:20px}.expanded .account-card .button{font-size:11px}.expanded .account-card h2{margin-top:15px}.batch-card{padding:18px}.batch-title h2{font-size:13px}.batch-total{font-size:25px}.info-box{font-size:11px;align-items:flex-start;padding:14px}.settings-panel{padding:20px}.setting-row{align-items:flex-start;flex-wrap:wrap;gap:13px}.setting-row p{font-size:11px}.setting-row strong{font-size:12px}.setting-row .badge{font-size:9px}.setting-row .button{font-size:11px}.setting-row:first-of-type .badge{display:none}dialog{padding:21px;max-height:calc(100dvh - 24px)}.dialog-heading h2{font-size:22px}.form-grid{gap:14px}.form-grid input,.form-grid select{font-size:16px}.form-grid label{font-size:11px}.form-grid label small{font-size:9px}.dialog-actions{flex-wrap:wrap}.dialog-actions .text-button{flex-basis:100%;margin-bottom:8px}.dialog-actions .button{flex:1}.fatal{padding:35px}.fatal h1{font-size:25px}#toast{bottom:calc(85px + env(safe-area-inset-bottom,0px));width:calc(100% - 32px);font-size:11px}}
.account-settings{margin-bottom:24px}.account-settings .section-heading{gap:15px}.account-settings .button{font-size:11px;padding:9px 12px}.settings-description{font-size:12px;color:#76877b;line-height:1.8;margin:10px 0 18px}.managed-account{display:flex;align-items:center;gap:13px;padding:18px 0;border-top:1px solid var(--border)}.managed-account-info{min-width:0;flex:1}.managed-account-info>strong{display:block;font-size:13px;overflow-wrap:anywhere}.managed-account-info>small{display:block;color:#829287;font-size:11px;line-height:1.8;margin-top:4px;overflow-wrap:anywhere}.managed-account-info .badge{margin-top:7px}.managed-account-actions{display:flex;gap:16px}.managed-account-actions .text-button{font-size:11px}.managed-account.archived{background:#fafbf9}.sidebar-accounts{max-height:30vh;overflow-y:auto}.account-card h2,.account-card h3,.account-description,.fio-label{overflow-wrap:anywhere}.account-link{overflow-wrap:anywhere}.account-link .muted{flex-shrink:0}.account-card h3,.account-card h2{line-height:1.5}
@media(min-width:681px){.account-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}}
@media(max-width:680px){.account-settings .section-heading{align-items:flex-start;flex-direction:column;gap:12px}.managed-account{align-items:flex-start;flex-wrap:wrap}.managed-account-info{flex-basis:calc(100% - 45px)}.managed-account-actions{padding-left:42px;width:100%;gap:22px}.managed-account-actions .text-button{padding:8px 0;font-size:12px}.account-card h3,.account-description{max-width:50%}}
dialog.invoice-dialog{width:min(1110px,calc(100% - 36px));padding:28px}.invoice-content{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,1fr);gap:28px;align-items:start}.document-pane{min-width:0}.invoice-form-pane{min-width:0;border-left:1px solid var(--border);padding-left:28px}.invoice-form-pane>h3{font-size:16px;font-weight:600}.invoice-form-pane>.settings-description{font-size:11px;margin-bottom:15px}.document-status{font-size:11px;line-height:1.8;color:#829287;padding:12px 2px}.document-stage{background:#edf1ef;border-radius:8px;overflow:hidden}.document-canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff}.document-image{display:block;max-width:100%;max-height:630px;object-fit:contain;margin:auto}.document-toolbar{display:flex;align-items:center;justify-content:center;gap:15px;padding:10px;background:#f4f7f5;border-bottom:1px solid #e2e9e3}.document-toolbar .button{font-size:12px;padding:4px 12px;min-height:32px}.document-toolbar>span{font-size:11px;color:#6f8376}.extraction-report{font-size:11px;line-height:1.8;overflow-wrap:anywhere}.extraction-report>h3{font-size:13px;margin-top:20px}.extraction-report>p{color:#7c9082}.extraction-found{margin:12px 0;padding-left:19px;color:#527560}.extraction-found li{margin-bottom:6px}.extraction-report .extraction-warning,.document-status.extraction-warning{padding:10px 12px;background:#fbf5e8;border:1px solid #f0e4c7;border-radius:6px;color:#9b8048}.source-text{margin-top:15px;border:1px solid #e5ece7;border-radius:7px;padding:10px 12px}.source-text summary{cursor:pointer;color:#6a8572}.source-text pre{font-size:10px;font-family:ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;line-height:1.8;color:#63796b}.form-grid .suggested-value{border-color:#b5d0bd;background:#f6faf7}.form-grid label .suggestion-hint{color:#548367}.invoice-dialog .form-grid{margin-top:16px}.invoice-dialog .form-grid input,.invoice-dialog .form-grid select{font-size:13px}.document-preview strong{line-height:1.7}.invoice-dialog #file-duplicate:not(:empty){border:1px solid #e9c7bd;background:#fdf2ed;border-radius:7px;padding:12px}.invoice-dialog .dialog-actions{position:sticky;bottom:-28px;background:#fff;padding-bottom:12px}
@media(max-width:850px){dialog.invoice-dialog{width:min(620px,calc(100% - 24px));padding:20px}.invoice-content{grid-template-columns:1fr;gap:25px}.invoice-form-pane{border-left:0;border-top:1px solid var(--border);padding-left:0;padding-top:22px}.document-canvas{max-height:420px;width:auto;max-width:100%}.document-image{max-height:350px}.invoice-dialog .dialog-actions{bottom:-20px}.invoice-dialog .form-grid input,.invoice-dialog .form-grid select{font-size:16px}}
.execution-note{display:block;color:#54816a;font-size:9px;margin-top:6px;line-height:1.6}.execution-field{border:1px solid #dfeae2;border-radius:8px;background:#f7faf7;padding:12px}.schedule-warning{color:#a47532;font-size:11px;line-height:1.8}.schedule-warning:empty{display:none}.batch-items .scheduled-payment{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid var(--border);font-size:12px}.scheduled-payment>span{min-width:0}.scheduled-payment>span>strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.scheduled-payment>span>small{display:block;color:#728679;font-size:10px;font-weight:400;margin-top:6px;line-height:1.7}.scheduled-payment>strong{white-space:nowrap;font-weight:600}.batch-review-group+.batch-review-group{margin-top:22px}.batch-review-title{display:flex;align-items:center;gap:12px;padding:14px 0}.batch-review-title>strong{margin-left:auto}.batch-review-group .batch-items{margin-left:0}.batch-review-group .scheduled-payment{font-size:11px}.batch-review-title>span>strong{font-size:13px}
@media(max-width:680px){.invoices-panel td:nth-child(4){flex-wrap:wrap}.execution-note{flex-basis:100%;font-size:9px;margin-top:0}.execution-field{padding:11px}.scheduled-payment>span>small{font-size:10px}.batch-review-title{gap:9px}.batch-review-title>strong{font-size:14px}}
[hidden]{display:none!important}.ocr-controls:not(:empty){border:1px solid #dce9e0;background:#f5f9f6;border-radius:8px;padding:14px;margin:0 0 16px}.ocr-controls .settings-description{font-size:11px;margin:0 0 13px}.ocr-controls .button{font-size:11px;padding:9px 12px}.ocr-controls .text-button{font-size:11px;margin-left:13px}.ocr-status{font-size:11px;color:#67816f;line-height:1.8;margin-top:10px}.ocr-progress{width:100%;height:7px;margin-top:15px;accent-color:var(--green)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Fio export review */
.batch-actions { flex-wrap: wrap; }
.export-date { display: grid; gap: 8px; margin: 20px 0; font-weight: 600; }
.export-date small { font-weight: 400; color: var(--muted, #64736c); line-height: 1.6; }
.export-date input { max-width: 240px; padding: 11px 12px; border: 1px solid #d8e1db; border-radius: 8px; font: inherit; color: inherit; background: #fff; }
.export-total { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin: 20px 0; }
.export-total > strong { font-size: 26px; }
.export-total > span { color: var(--muted, #64736c); font-size: 13px; }
.export-group { border-top: 1px solid #e5eae7; padding: 14px 0; }
.export-group h3 { font-size: 14px; margin: 0 0 12px; }
.export-payment { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
.export-payment span { min-width: 0; }
.export-payment small { display: block; margin-top: 5px; color: var(--muted, #64736c); overflow-wrap: anywhere; }
.export-payment > strong { white-space: nowrap; }

/* Drafts stay available in narrow layouts without widening the page. */
.tabs { overflow-x: auto; }
.invoice-dialog .dialog-actions { flex-wrap: wrap; gap: 10px; }
@media(max-width:600px) { .invoice-dialog .dialog-actions > button { flex: 1 1 auto; } }

.restore-summary { margin: 20px 0; white-space: normal; }
.restore-summary caption { text-align: left; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.restore-summary th, .restore-summary td { padding: 12px 8px; font-size: 12px; overflow-wrap: anywhere; }
.restore-summary th:not(:first-child), .restore-summary td:not(:first-child) { text-align: right; }
@media(max-width:600px) { .restore-summary th, .restore-summary td { font-size: 11px; padding: 10px 5px; } }

/* Local activity timeline */
.history-panel { margin-top: 22px; }
.history-toolbar { display: flex; gap: 16px; padding: 22px; border-bottom: 1px solid var(--border); align-items: center; }
.history-scope { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 22px; background: #f5f8f6; font-size: 12px; overflow-wrap: anywhere; }
.activity-list { list-style: none; margin: 0; padding: 10px 26px; }
.activity-item { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-marker { width: 8px; height: 8px; background: #91b09c; border: 3px solid #edf4ef; border-radius: 50%; margin-top: 5px; box-sizing: content-box; }
.activity-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.activity-heading h3 { font-size: 13px; margin: 0; }
.activity-heading time { font-size: 11px; color: #7c8e82; white-space: nowrap; }
.activity-names { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; color: #67806e; margin: 8px 0; }
.activity-note { font-size: 11px; line-height: 1.8; color: #7b8c80; margin: 8px 0; }
.activity-details { font-size: 12px; margin-top: 12px; }
.activity-details summary, .invoice-history > summary { cursor: pointer; color: #557963; line-height: 1.8; }
.activity-changes { margin: 14px 0; }
.activity-changes > div { padding: 9px 0; border-bottom: 1px solid #eef2ef; }
.activity-changes dt { font-size: 10px; color: #87958c; margin-bottom: 6px; }
.activity-changes dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.activity-changes dd > span:first-child { color: #91a096; }
.activity-source { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.activity-payments > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 12px; border-bottom: 1px solid #edf1ee; }
.activity-payments > div > span { min-width: 0; overflow-wrap: anywhere; }
.activity-payments small { display: block; margin-top: 4px; color: #7b8c80; line-height: 1.7; }
.activity-payments > div > strong { white-space: nowrap; }
.activity-file { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.8; }
.activity-hash { font-size: 10px; color: #7b8c80; margin: 14px 0; }
.activity-hash code { display: block; margin-top: 8px; color: #5e7365; font-size: 10px; overflow-wrap: anywhere; line-height: 1.8; }
.history-footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 11px; color: #8b998f; }
.history-empty { padding: 30px 24px; font-size: 13px; color: #667e6e; line-height: 1.8; }
.history-empty small { display: block; margin-top: 8px; color: #92a197; font-size: 11px; }
.invoice-history { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 16px; }
.invoice-history > summary { font-weight: 600; font-size: 13px; }
.invoice-history .activity-list { padding: 0; }
.batch-export-note { font-size: 11px; line-height: 1.8; margin: 14px 0; color: #6f8778; }
.batch-export-note small { display: block; color: #97a298; }
@media(max-width:680px) { .history-toolbar { flex-wrap: wrap; padding: 16px; gap: 10px; } .history-toolbar .search { min-width: 100%; } .history-toolbar .select-wrap { max-width: none; } .activity-list { padding: 0 16px; } .activity-item { gap: 12px; padding: 18px 0; } .activity-heading { gap: 5px; } .activity-heading h3 { font-size: 12px; } .history-footer { padding: 16px; flex-wrap: wrap; } .history-scope { padding: 12px 16px; } }

.import-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 20px; padding: 14px; background: var(--green-light, #edf5f0); border-radius: 10px; }
.import-progress span, .import-progress small { color: var(--muted, #65766e); font-size: 12px; }
.import-progress small { flex-basis: 100%; }
.import-progress button { margin-left: auto; }
.import-skipped { padding-left: 20px; max-height: 45vh; overflow: auto; }
.import-skipped li { padding: 8px 0; overflow-wrap: anywhere; }
.import-skipped span { display: block; margin-top: 4px; font-size: 13px; }
@media (max-width: 680px) { .import-progress button { margin-left: 0; } }

.storage-settings { margin-bottom: 24px; }

.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 440px); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 10px; color: #176449; font-size: 24px; margin-bottom: 28px; }
.auth-brand .icon { width: 28px; height: 32px; }
.auth-card h1 { font-size: 25px; letter-spacing: -.6px; margin-bottom: 12px; }
.auth-card > p { line-height: 1.7; color: #708277; font-size: 13px; }
.auth-card .form-grid input { font-size: 16px; }
.auth-submit { width: 100%; justify-content: center; }
.auth-card .auth-note { margin-top: 22px; font-size: 11px; }
@media (max-width: 500px) { .auth-shell { padding: 16px; } .auth-card { padding: 24px; } }

.manual-payment-dialog .invoice-content{grid-template-columns:minmax(0,1fr)}
.manual-payment-dialog .document-pane{display:none}
.manual-payment-dialog .invoice-form-pane{border-left:0;padding-left:0}
.heading{flex-wrap:wrap;gap:12px}

.heading-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.heading .heading-actions .button{margin-top:0}
@media(max-width:650px){.heading-actions{width:100%;margin-left:0;flex-wrap:wrap}.heading-actions .button{flex:1 1 180px}}

.paid-items{display:grid;gap:10px;margin-top:16px}.paid-item{padding:14px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.paid-item p{width:100%;margin:0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}

.archive-table th:first-child,.archive-table td:first-child{display:none}
