:root{--navy:#111e34;--green:#247e6c;--green-dark:#1d6758;--ink:#1c293b;--muted:#748092;--line:#e7ebef;--bg:#f5f7f9;--red:#bd4c4b;--amber:#a87822;--radius:14px;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #78bdad;outline-offset:3px}input,select,textarea{width:100%;border:1px solid #dce2e8;border-radius:8px;background:#fff;color:var(--ink);padding:11px 12px;min-height:44px;transition:border-color .15s}input:focus,select:focus,textarea:focus{outline:2px solid #d8eee7;border-color:var(--green)}input::placeholder,textarea::placeholder{color:#9aa3af}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:32px;font-weight:650;letter-spacing:-1px;line-height:1.2;margin-bottom:10px}h2{font-size:19px;letter-spacing:-.45px;line-height:1.3;margin-bottom:10px}h3{font-size:14px;margin-bottom:8px}p{margin-bottom:14px}.muted{color:var(--muted);font-weight:400}.eyebrow{color:var(--green);font-size:10px;font-weight:750;letter-spacing:1.9px;margin-bottom:10px}.button{border:1px solid transparent;border-radius:8px;padding:11px 18px;min-height:44px;display:inline-flex;gap:10px;align-items:center;justify-content:center;font-weight:600;font-size:13px;white-space:nowrap}.primary{background:var(--green);color:#fff;box-shadow:0 3px 6px #247e6c0d}.primary:hover{background:var(--green-dark)}.secondary{background:#fff;border-color:#dce2e8;color:var(--ink)}.secondary:hover{background:#f8fafb}.full{width:100%}.text-button{border:0;background:transparent;color:var(--muted);font-size:12px;padding:8px}.text-button:hover{color:var(--green)}.text-button.danger:hover{color:var(--red)}.brand{display:flex;align-items:center;gap:12px;font-weight:750;letter-spacing:1.8px;font-size:18px}.brand-mark{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--green);color:#fff;font-size:24px;font-weight:700;letter-spacing:0}.brand small{display:block;font-size:8px;font-weight:500;letter-spacing:1.9px;margin-top:2px;opacity:.5}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:var(--navy);color:#fff;padding:32px 22px;display:flex;flex-direction:column;z-index:5}.sidebar .brand{margin-bottom:53px}.nav-caption{font-size:8px;letter-spacing:1.5px;color:#8794a6;margin:0 12px 17px}.sidebar nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:13px;color:#aab5c7;background:transparent;border:0;border-radius:8px;padding:12px 14px;text-align:left;font-size:13px;width:100%;font-weight:500}.nav-item>span:first-child{font-size:19px;width:20px;text-align:center}.nav-item.active{color:#fff;background:#ffffff0d;box-shadow:inset 3px 0 #5db7a0}.nav-item:hover{color:#fff;background:#ffffff08}.nav-count{margin-left:auto;font-size:10px;background:#ffffff12;padding:2px 7px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid #ffffff12;color:#8593a7;font-size:12px}.private-label{color:#c4d0dc;font-size:12px;margin-bottom:9px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#58b999;margin-right:7px}.sidebar-bottom p{font-size:11px;line-height:1.8;margin-bottom:24px}.sidebar-bottom small{font-size:9px;color:#6b7d96}.main-shell{margin-left:236px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px}.breadcrumb{font-size:11px;color:#8a95a4}.breadcrumb span{padding:0 12px;color:#cbd0d8}.breadcrumb strong{color:#4e5e70;font-weight:500}.account{display:flex;gap:10px;align-items:center;font-size:11px;color:#637186}.avatar{display:grid;place-items:center;width:29px;height:29px;background:#eaf2ef;color:var(--green);border-radius:50%;font-size:11px;font-weight:700}.account form{border-left:1px solid var(--line);margin-left:5px;padding-left:7px}.content{padding:37px 38px 24px;max-width:1700px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}.page-heading .muted{font-size:12px;margin:0}.page-heading .eyebrow{font-size:9px}.page-heading h1{font-size:29px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{padding:20px 20px 19px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-height:130px;position:relative}.stat-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7a8797;margin-bottom:12px}.stat-icon{font-size:15px;color:#a4adbb}.stat-value{font-size:25px;font-weight:650;letter-spacing:-1px;line-height:1.25}.stat-value small{font-size:11px;letter-spacing:0;font-weight:500;margin-left:4px}.stat-extra{font-size:11px;color:#7a8797;margin-top:4px}.stat-caption{font-size:10px;color:#99a2af;margin-top:8px}.stat.overdue{background:#fdf9f8;border-color:#f1e2df}.stat.overdue .stat-value,.stat.overdue .stat-icon{color:var(--red)}.stat.today .stat-value{color:var(--amber)}.stat.paid .stat-value{color:var(--green)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 3px 7px #162f4802}.panel-toolbar{padding:0 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;min-height:62px;gap:14px}.tabs{display:flex;align-items:stretch;gap:22px;min-height:62px}.tab{position:relative;border:0;padding:0 2px;background:transparent;color:#8791a1;font-weight:500;font-size:12px;white-space:nowrap}.tab.active{color:var(--green);font-weight:650}.tab.active:after{position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--green);content:''}.tab span{font-size:9px;padding:3px 6px;background:#e9f2ee;border-radius:5px;margin-left:4px}.filterbar{display:flex;padding:20px 22px;gap:12px;border-bottom:1px solid var(--line)}.search-wrap{position:relative;flex:1}.search-wrap>span{position:absolute;left:13px;top:5px;font-size:26px;font-weight:400;color:#9ba5b3}.search-wrap input{padding-left:39px;font-size:11px;background:#fbfcfd;min-width:170px}.filterbar select{width:auto;max-width:175px;font-size:11px;background:#fff;min-height:39px}.filterbar input{min-height:39px}.table-wrap{overflow-x:auto;min-height:240px}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}th{font-size:9px;letter-spacing:.6px;text-transform:uppercase;font-weight:600;color:#95a0ae;background:#fcfdfe;padding:14px 18px;border-bottom:1px solid var(--line)}td{padding:18px;border-bottom:1px solid #eef1f4;vertical-align:middle}th:first-child,td:first-child{padding-left:22px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfd}.supplier-cell{display:flex;align-items:center;gap:10px}.supplier-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#eef3f5;color:#738391;font-size:10px;flex-shrink:0;font-weight:650}.supplier-name{font-weight:600;max-width:190px;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.invoice-number{color:#8592a2;font-size:10px;margin-top:2px}.amount-cell{font-weight:600}.amount-cell small{color:#8c98a7;font-size:9px;font-weight:400}.paid-line{color:#8d99a8;font-size:9px;margin-top:4px}.due-cell.overdue{color:var(--red)}.due-cell.today{color:var(--amber)}.due-small{font-size:9px;opacity:.7;margin-top:3px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;padding:4px 8px;border-radius:5px;font-weight:500;background:#f0f3f7;color:#74849a;white-space:nowrap}.badge:before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%}.badge.overdue{color:var(--red);background:#fcf0ee}.badge.today{color:var(--amber);background:#fff7e8}.badge.paid{color:var(--green);background:#ecf5f0}.badge.partial{color:#527ba4;background:#edf3fa}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}.row-actions button{background:transparent;border:1px solid #e5eaf0;color:#7a8b9b;border-radius:6px;width:27px;height:27px;padding:0;display:grid;place-items:center;font-size:13px}.row-actions button:hover{color:var(--green);border-color:#bcd9ce}.row-actions .archive:hover{color:var(--red);border-color:#e9c8c4}.table-footer{padding:14px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#9aa4b1}.table-footer>div{display:flex;align-items:center;gap:6px}.table-footer .text-button{font-size:10px}.subtle-note{font-size:10px;color:#96a1af;margin-top:16px}.subtle-note:before{content:'ⓘ';margin-right:6px}.app-footer{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#a1aab5;padding:18px 38px;border-top:1px solid var(--line)}.empty-state{padding:48px 25px;text-align:center;white-space:normal}.empty-icon{font-size:29px;display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:#f1f6f4;color:#7ca793;margin:0 auto 17px}.empty-state h2{font-size:16px}.empty-state p{color:var(--muted);font-size:12px;max-width:380px;margin:0 auto 20px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px;align-items:start}.settings-panel{padding:26px}.settings-panel>.muted{font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span-2{grid-column:1/-1}.section-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:24px}.section-heading h2{font-size:16px;margin-bottom:4px}.section-heading p{font-size:11px;margin:0}.section-number{width:31px;height:31px;border:1px solid #e0e9e4;background:#f5f9f6;border-radius:8px;color:var(--green);display:grid;place-items:center;font-size:11px;flex-shrink:0}.form-divider{height:1px;background:var(--line);margin:5px 0}.field-help{color:#8a95a4;font-size:10px;font-weight:400;line-height:1.65;margin:0}.checkbox-label{flex-direction:row;align-items:center;gap:9px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.info-box{background:#f7f9fb;border:1px solid #edf0f3;border-radius:10px;padding:18px;margin-top:24px}.info-box p{font-size:11px;color:#8491a1;line-height:1.7;margin-bottom:10px}.info-box p:last-child{margin-bottom:0}.status-line{border-bottom:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:4px;font-size:11px}.status-line span{color:var(--muted);font-size:10px}.status-line strong{font-weight:500}.status-line:last-child{border-bottom:0;padding-bottom:22px}.notice{padding:12px 14px;border:1px solid #e6eaf0;border-radius:8px;font-size:12px;margin-bottom:16px;overflow-wrap:anywhere}.notice.error{background:#fdf2f0;color:#a44842;border-color:#f0d9d4}.notice.warning{background:#fffaed;color:#9d7325;border-color:#f4e4c2}.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.feature-icon{font-size:23px;color:var(--green);background:#edf5f0;width:46px;height:46px;display:grid;place-items:center;border-radius:12px;margin-bottom:20px}.upload-area{border:1px dashed #c5d9ce;background:#f8fbf9;border-radius:10px;padding:18px;color:var(--green);font-size:12px;margin:23px 0 10px}.upload-area input{font-size:10px;padding:6px;background:transparent;border:0;color:#7b8b80;min-height:30px}.settings-panel>.button{margin:18px 0}.audit-row{display:flex;gap:25px;padding:12px 0;border-top:1px solid var(--line);font-size:11px}.audit-row time{color:#9ba6b3;font-size:10px;min-width:115px}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.trash-row h3{font-size:12px;margin:0 0 5px}.trash-row p{font-size:11px;color:var(--muted);margin:0}dialog{padding:0;border:1px solid var(--line);border-radius:17px;width:min(600px,calc(100% - 30px));max-height:90vh;color:var(--ink);box-shadow:0 25px 100px #10263b33}dialog::backdrop{background:#15243c88;backdrop-filter:blur(3px)}.dialog-head{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.dialog-head .eyebrow{font-size:8px;margin:0 0 5px}.dialog-head h2{margin:0;font-size:21px}.close-button{border:0;background:transparent;font-size:26px;color:#8e9aa8;width:32px;height:32px}.dialog-body{padding:22px 25px;max-height:65vh;overflow:auto}.dialog-body label{font-size:11px;gap:6px}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:12px;min-height:41px}.dialog-body .form-grid{gap:15px}.required{color:var(--green);display:contents}.optional{display:contents;color:#9aa4af;font-weight:400;font-size:10px}.dialog-footer{padding:18px 25px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end;background:#fcfdfe}.toast{position:fixed;right:30px;bottom:25px;z-index:50;max-width:440px;background:var(--navy);color:white;padding:15px 20px;border-radius:10px;box-shadow:0 7px 30px #111e3433;font-size:12px}.auth-body{background:#f5f7f9;min-height:100vh;display:grid;place-items:center;padding:35px}.auth-shell{display:grid;grid-template-columns:1.04fr 1fr;background:#fff;border:1px solid #e4e9ee;border-radius:22px;overflow:hidden;max-width:1000px;width:100%;min-height:610px;box-shadow:0 20px 80px #10263b08}.auth-story{background:var(--navy);padding:42px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;width:340px;height:340px;border:1px solid #ffffff06;border-radius:50%;right:-190px;top:200px;box-shadow:0 0 0 60px #ffffff02,0 0 0 120px #ffffff01;pointer-events:none}.auth-story h1{font-size:37px;line-height:1.2;font-weight:500;letter-spacing:-1.5px;margin-bottom:20px}.auth-story>div:nth-child(2){margin:55px 0 40px;position:relative;z-index:1}.auth-story .eyebrow{color:#68b79f;font-size:8px}.auth-story p:not(.eyebrow){font-size:12px;color:#9dacc1;max-width:310px;line-height:1.85}.auth-story>small{font-size:9px;color:#6d809a}.story-lines{display:grid;gap:14px;margin-top:30px;font-size:10px;color:#5b8e85}.story-lines b{font-weight:400;color:#b3c1d1;margin-left:13px}.auth-card{padding:60px 48px;display:flex;flex-direction:column;justify-content:center}.auth-card .eyebrow{font-size:8px}.auth-card h2{font-size:28px;letter-spacing:-1px}.auth-card>.muted{font-size:12px;margin-bottom:28px;line-height:1.75}.form-stack{display:grid;gap:18px}.auth-card label{font-size:11px}.auth-card input{font-size:12px;min-height:45px}.auth-card .button{margin-top:7px;justify-content:space-between}.auth-foot{font-size:9px;line-height:1.7;color:#a1abb8;margin:22px 0 0}.auth-card .field-help{margin-top:-10px;font-size:9px}[hidden]{display:none!important}
@media(min-width:1600px){.content{padding-top:45px}.stat{min-height:145px}.stat-value{font-size:29px}td{padding-top:23px;padding-bottom:23px}}
@media(max-width:1200px){.sidebar{width:205px;padding:28px 16px}.sidebar .brand{font-size:16px;gap:9px}.brand-mark{width:33px;height:33px;font-size:21px}.main-shell{margin-left:205px}.content{padding:30px 25px 20px}.topbar{padding:0 25px}.stats{gap:12px}.stat{padding:16px 15px}.stat-value{font-size:22px}.panel-toolbar{padding:0 16px}.filterbar{padding:16px}.tabs{gap:18px}th,td{padding-left:12px;padding-right:12px}.supplier-name{max-width:150px}.settings-grid{grid-template-columns:1fr}.settings-panel{padding:23px}.account-name{max-width:110px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:900px){.sidebar{position:static;width:100%;padding:18px 24px;flex-direction:row;align-items:center;justify-content:space-between;gap:20px}.sidebar .brand{margin:0;flex-shrink:0}.sidebar nav{display:flex;gap:4px}.nav-item{width:auto;padding:9px;font-size:11px;gap:6px}.nav-item>span:first-child{font-size:15px;width:16px}.nav-caption,.sidebar-bottom,.nav-count{display:none}.nav-item.active{box-shadow:inset 0 -2px #5db7a0}.main-shell{margin-left:0}.topbar{height:61px}.content{padding:28px 24px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.page-heading h1{font-size:27px}.auth-story{padding:35px}.auth-story h1{font-size:32px}.auth-card{padding:40px 32px}.auth-shell{min-height:580px}.auth-story .brand{font-size:16px}}
@media(max-width:680px){.sidebar{padding:17px 18px;display:block}.sidebar .brand{font-size:16px;margin-bottom:18px}.sidebar nav{justify-content:space-between;gap:3px}.nav-item{padding:9px 7px;gap:5px;font-size:10px}.nav-item>span:first-child{display:none}.topbar{padding:0 18px;height:52px}.breadcrumb{font-size:9px}.breadcrumb span{padding:0 7px}.account{gap:5px}.account-name{display:none}.avatar{width:24px;height:24px;font-size:9px}.account .text-button{font-size:10px}.content{padding:24px 16px}.page-heading{margin-bottom:22px;gap:12px;align-items:flex-start;flex-direction:column}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:8px;margin-bottom:8px}.page-heading .muted{font-size:11px}.page-heading>.button{width:100%;margin-top:5px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.stat{padding:15px 14px;min-height:114px}.stat-label{font-size:10px;margin-bottom:11px}.stat-value{font-size:23px}.stat-caption,.stat-extra{font-size:9px}.stat-value small{font-size:9px}.panel-toolbar{min-height:56px;padding:0 14px;gap:7px}.tabs{gap:16px;min-height:56px}.tab{font-size:11px}.panel-toolbar>.text-button{font-size:0}.panel-toolbar>.text-button:before{content:'↻';font-size:20px}.filterbar{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.search-wrap{grid-column:1/-1}.filterbar select{max-width:100%;width:100%;font-size:10px}.search-wrap input{font-size:11px}.table-wrap{min-height:120px;overflow:visible}.invoice-table{display:block;white-space:normal}.invoice-table thead{display:none}.invoice-table tbody{display:block}.invoice-table tr{display:grid;grid-template-columns:1fr auto;padding:17px 14px;gap:12px;border-bottom:1px solid var(--line)}.invoice-table tr:last-child{border-bottom:0}.invoice-table td{display:block;padding:0!important;border:0}.invoice-table .cell-supplier{grid-column:1;grid-row:1}.invoice-table .cell-amount{grid-column:2;grid-row:1;text-align:right}.invoice-table .cell-due{grid-column:1;grid-row:2;font-size:10px;padding-left:42px!important}.invoice-table .cell-status{grid-column:2;grid-row:2;text-align:right}.invoice-table .cell-actions{grid-column:1/-1;grid-row:3;display:flex;justify-content:flex-end;margin-top:-1px}.supplier-name{max-width:180px;font-size:11px}.supplier-avatar{width:30px;height:30px;font-size:9px}.supplier-cell{gap:11px}.invoice-number{font-size:9px}.amount-cell{font-size:12px}.paid-line,.due-small{font-size:8px}.row-actions{gap:8px}.row-actions button{width:32px;height:30px}.table-footer{padding:10px 14px;font-size:9px}.table-footer .text-button{font-size:9px;padding:6px 3px}.table-footer>div{gap:4px}.table-footer>span{max-width:130px}.empty-state{padding:35px 20px}.empty-state h2{font-size:15px}.empty-state p{font-size:11px}.app-footer{padding:16px;font-size:8px}.subtle-note{font-size:9px}.backup-grid{grid-template-columns:1fr;gap:15px}.settings-panel{padding:20px}.settings-panel h2{font-size:17px}.settings-panel>.muted{font-size:11px}.form-grid{gap:14px}.form-grid label{font-size:11px}.form-grid input,.form-grid select{font-size:12px;min-height:43px}.settings-panel .form-grid>label:not(.checkbox-label){grid-column:1/-1}.button-row .button{width:100%}.settings-grid{gap:15px}.feature-icon{width:40px;height:40px;font-size:20px}.audit-row{flex-direction:column;gap:4px;font-size:10px}.trash-row{align-items:flex-start;flex-direction:column;gap:8px}.trash-row .button{min-height:35px;padding:7px 12px;font-size:11px}.toast{right:16px;left:16px;bottom:16px;font-size:11px}.auth-body{padding:0;background:#fff;align-items:start}.auth-shell{border:0;border-radius:0;box-shadow:none;display:block;min-height:100vh}.auth-story{padding:25px 25px 28px}.auth-story .brand{font-size:15px}.auth-story>div:nth-child(2){margin:27px 0 0}.auth-story h1{font-size:29px;margin-bottom:12px}.auth-story h1 br{display:none}.auth-story p:not(.eyebrow){font-size:11px;max-width:100%;margin-bottom:0}.story-lines,.auth-story>small{display:none}.auth-card{padding:32px 25px}.auth-card h2{font-size:26px}.auth-card>.muted{font-size:11px;margin-bottom:22px}.auth-card label{font-size:11px}.auth-foot{font-size:10px}dialog{max-height:94vh;width:calc(100% - 20px);border-radius:13px}.dialog-head{padding:18px}.dialog-head h2{font-size:19px}.dialog-body{padding:18px;max-height:65vh}.dialog-footer{padding:14px 18px}.dialog-footer .button{font-size:11px;padding:11px 14px}.form-grid .span-2{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
