.auth-page .auth-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:100dvh;width:100%;padding:0}
.auth-page .auth-intro{display:flex;flex-direction:column;justify-content:space-between;gap:48px;padding:48px 64px;background:#e5eeeb;border-right:1px solid #cbdcd5}
.auth-page .brand-lockup{display:flex;align-items:center;gap:12px}
.auth-page .brand-name{font-size:22px;font-weight:700;letter-spacing:0}
.auth-page .intro-middle{max-width:500px;width:100%;margin:auto}
.auth-page h1{font-size:42px;line-height:1.15;font-weight:650;letter-spacing:0;margin:0 0 20px}
.auth-page .intro-lead{max-width:420px;color:#52665f;font-size:16px;line-height:1.7;margin:0 0 36px}
.auth-page .ledger-card{border:1px solid #cbdcd5;border-radius:8px;background:#f9fcfa;overflow:hidden;font-size:13px;box-shadow:0 12px 30px #23473908}
.auth-page .ledger-head,.auth-page .ledger-foot{display:flex;justify-content:space-between;gap:16px;padding:18px 20px;background:#f0f5f2;font-weight:600}
.auth-page .ledger-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;padding:16px 20px;border-top:1px solid #e2eae5;align-items:center}
.auth-page .ledger-date{color:#718079;font-size:12px}
.auth-page .ledger-label{overflow-wrap:anywhere}
.auth-page .ledger-amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.auth-page .ledger-amount.in{color:#087f78}
.auth-page .ledger-amount.out{color:#a84a56}
.auth-page .ledger-foot{border-top:1px solid #cbdcd5}
.auth-page .intro-footer{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:#52665f;font-size:11px}
.auth-page .status-dot{width:6px;height:6px;border-radius:50%;background:#087f78}
.auth-page .footer-rule{height:12px;width:1px;background:#a9bdb5;margin:0 6px}
.auth-page .auth-panel{display:flex;align-items:center;justify-content:center;padding:48px;background:#fafcfb;min-width:0}
.auth-page .auth-panel-inner{width:100%;max-width:380px;min-width:0}
.auth-page .mobile-brand{display:none}
.auth-page .panel-heading{margin-bottom:28px}
.auth-page .eyebrow{font-size:11px;font-weight:700;color:#087f78;letter-spacing:0;margin:0 0 12px}
.auth-page h2{font-size:27px;font-weight:650;line-height:1.25;letter-spacing:0;margin:0 0 12px}
.auth-page #authSubtitle{color:#65766e;font-size:14px;line-height:1.6;margin:0}
.auth-page .auth-form{display:grid;gap:22px}
.auth-page .field-group{display:grid;gap:8px;min-width:0}
.auth-page .field-group label{font-size:13px;font-weight:600}
.auth-page .field-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-page .field-label-row>span{font-size:11px;color:#718079}
.auth-page .field-control{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 12px;border:1px solid #ccd8d1;border-radius:6px;background:#fff;min-width:0}
.auth-page .field-control:focus-within{border-color:#087f78;box-shadow:0 0 0 3px #087f7815}
.auth-page .field-control>svg{width:18px;height:18px;flex:none;color:#718079}
.auth-page .field-control input{width:100%;min-width:0;border:0;outline:0;background:transparent;padding:12px 0;font-size:14px;color:#17212b}
.auth-page .icon-button{display:grid;place-items:center;width:32px;height:36px;flex:none;background:transparent;color:#65766e;border-radius:4px;padding:0}
.auth-page .icon-button svg{width:18px;height:18px}
.auth-page button:focus-visible{outline:2px solid #087f78;outline-offset:3px}
.auth-page .primary-action{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 16px;border-radius:6px;background:#087f78;color:white;font-size:14px;font-weight:600;letter-spacing:0}
.auth-page .primary-action:hover{background:#05645f}
.auth-page .primary-action svg{width:18px;height:18px}
.auth-page .primary-action:disabled{opacity:.6;cursor:wait}
.auth-page .auth-message{padding:12px 14px;margin-bottom:22px;border:1px solid #e3ce9b;border-radius:6px;background:#fffaed;color:#785c25;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.auth-page .caps-hint{display:none;align-items:center;gap:6px;color:#946b24;font-size:12px;margin:0}
.auth-page .caps-hint[data-visible="true"]{display:flex}
.auth-page .caps-hint svg{width:15px;height:15px}
.auth-page .strength-bar{display:flex;gap:4px;margin-top:4px}
.auth-page .strength-bar span{height:4px;flex:1;background:#dce4df;border-radius:2px}
.auth-page .strength-bar .f1{background:#c95261}
.auth-page .strength-bar .f2{background:#b6852f}
.auth-page .strength-bar .f3,.auth-page .strength-bar .f4{background:#087f78}
.auth-page .auth-message.is-success{background:#edf8f2;border-color:#bbdcca;color:#246445}
.auth-page .strength-text{font-size:12px;color:#65766e;margin:6px 0 0}
.auth-page .setup-note{display:flex;gap:10px;margin-top:24px;color:#65766e;font-size:12px;line-height:1.6}
.auth-page .setup-note svg{width:20px;height:20px;flex:none}
.auth-page .auth-legal{font-size:11px;line-height:1.7;color:#718079;margin:28px 0 0}
.auth-page [hidden]{display:none!important}
@media(max-width:1050px){.auth-page .auth-intro{padding:36px}.auth-page .auth-panel{padding:36px}.auth-page h1{font-size:34px}}
@media(max-width:760px){.auth-page .auth-layout{grid-template-columns:minmax(0,1fr)}.auth-page .auth-intro{display:none}.auth-page .auth-panel{padding:36px 24px;min-height:100dvh}.auth-page .mobile-brand{display:flex;margin-bottom:44px}.auth-page h2{font-size:25px}}
.invoice-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line,#e2e8e6)}
.invoice-filters label{display:grid;gap:6px;font-size:12px;flex:1 1 130px;min-width:0}
.invoice-filters input,.invoice-filters select{width:100%;min-width:0;height:38px;border:1px solid var(--line,#dce5e2);border-radius:6px;padding:0 9px;background:#fff;color:inherit;font:inherit}
.invoice-results{padding:14px 0 8px;font-size:12px;color:#52665f}
.invoice-customer strong{display:block;overflow-wrap:anywhere;max-width:320px}
.invoice-customer small{display:block;margin-top:5px;color:#64766f;font-size:11px}
#view-invoices table th{position:sticky;top:0;background:#f5f8f7;z-index:1}
#view-invoices table td{vertical-align:middle}
@media(max-width:600px){.invoice-filters label{flex-basis:calc(50% - 12px)}.invoice-filters{gap:10px}.invoice-customer strong{max-width:180px}#pdfModal iframe{min-height:0;height:60vh}}
:root{--ink:#17212b;--muted:#71808d;--paper:#f5f7f8;--line:#dce4e8;--white:#fff;--teal:#087f78;--teal-dark:#05645f;--mint:#dff4ed;--amber:#f2b84b;--rose:#c95261;--shadow:0 18px 45px #243b4a10;}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}body{background:radial-gradient(circle at 90% -10%,#d9eee9 0,transparent 32%),var(--paper)}.app-shell{display:flex;min-height:100vh}.sidebar{width:258px;max-height:100vh;position:sticky;top:0;overflow-y:auto;background:#102a33;color:#d8e6e6;padding:28px 18px 18px;display:flex;flex-direction:column;gap:22px;flex:none}.brand{display:flex;align-items:center;gap:11px;padding:0 10px}.brand-mark{width:37px;height:37px;border-radius:11px;background:var(--teal);display:grid;place-items:center;color:white}.brand-mark svg{width:20px}.brand strong{display:block;color:#fff;font:700 20px Inter,"Segoe UI",sans-serif}.brand small,.workspace small{display:block;color:#8da7aa;font-size:11px;margin-top:3px}.workspace{display:flex;align-items:center;gap:10px;background:#183b43;border:1px solid #28525a;padding:10px;border-radius:12px}.workspace b{font-size:12px;color:#f1fbfa}.workspace>svg{width:15px;margin-left:auto;color:#7e9b9f}.avatar{width:31px;height:31px;border-radius:10px;background:#b3e5d6;color:#105f5a;display:grid;place-items:center;font-size:11px;font-weight:700}.avatar.small{width:27px;height:27px;border-radius:50%;font-size:10px}.nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;color:#9bb2b4;background:transparent;text-align:left;padding:9px 12px;border-radius:10px;font-size:12px;transition:.2s}.nav-item svg{width:16px}.nav-item:hover{background:#183b43;color:#effafa}.nav-item.active{background:#278f87;color:white;box-shadow:0 8px 18px #08191d40}.nav-item em{font-style:normal;font-size:11px;margin-left:auto;background:#2c5359;padding:2px 6px;border-radius:9px}.nav-item.active em{background:#ffffff2e}.sidebar-foot{margin-top:auto;padding:12px 4px 0;border-top:1px solid #27474d;display:flex;align-items:center;gap:7px;color:#8ea9ab;font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:#60d6a9;box-shadow:0 0 0 4px #60d6a91a}.sidebar-foot button{margin-left:auto;color:#8ea9ab;background:transparent}.sidebar-foot svg{width:16px}.main{min-width:0;flex:1;padding:0 44px 50px}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:38px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.11em;color:var(--teal);font-weight:700}.topbar h1{font:600 24px Inter,"Segoe UI",sans-serif;margin:6px 0 0}.top-actions{display:flex;align-items:center;gap:18px}.sync-state{color:var(--teal);font-size:11px;display:flex;gap:6px;align-items:center}.sync-state svg{width:15px}.user-chip{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.icon-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#fff;color:var(--muted);border:1px solid var(--line)}.icon-btn:hover{color:var(--teal);border-color:#94cfc4}.icon-btn svg{width:16px}.mobile-only{display:none}.view{display:none;max-width:1250px;margin:auto}.view.active{display:block}.view-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px}.view-head h2{font:600 31px Inter,"Segoe UI",sans-serif;margin:7px 0 7px;letter-spacing:-.03em}.view-head p{color:var(--muted);font-size:13px;margin:0;max-width:650px}.button-row{display:flex;gap:8px}.button{border-radius:9px;padding:11px 16px;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.button svg{width:16px}.button.primary{background:var(--teal);color:#fff;box-shadow:0 8px 16px #087f7830}.button.primary:hover{background:var(--teal-dark)}.button.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.button.ghost:hover{border-color:#91c7bf}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px 20px;box-shadow:var(--shadow)}.metric.accent{background:var(--teal);color:white;border-color:var(--teal)}.metric>span,.metric>small{display:block;font-size:11px;color:var(--muted)}.metric.accent>span,.metric.accent>small{color:#c4ece3}.metric strong{display:block;font:600 26px Inter,"Segoe UI",sans-serif;margin:11px 0 9px}.metric small{display:flex;align-items:center;gap:5px}.metric small svg{width:13px}.split-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.panel,.table-panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between}.panel h3{font:600 17px Inter,"Segoe UI",sans-serif;margin:6px 0 0}.quick-actions{margin-top:19px;display:grid;gap:8px}.quick-actions button{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);background:#fbfcfc;border-radius:9px;text-align:left;color:var(--ink)}.quick-actions button>svg:first-child{color:var(--teal);width:19px}.quick-actions button>svg:last-child{margin-left:auto;width:15px;color:#9aa8ad}.quick-actions span{display:grid;gap:3px}.quick-actions b{font-size:12px}.quick-actions small{font-size:11px;color:var(--muted)}.badge{display:inline-block;border-radius:20px;padding:4px 8px;background:#eef2f3;color:#63727a;font-size:10px;font-weight:700}.badge.success{background:var(--mint);color:#187663}.health-row{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid #eef1f2;font-size:12px}.health-row:last-child{border-bottom:0}.health-row span:nth-child(2){display:grid;gap:3px;flex:1}.health-row small{color:var(--muted);font-size:10px}.health-row strong{font-size:11px;color:var(--teal)}.health-icon,.setting-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:var(--mint);color:var(--teal)}.health-icon.blue,.setting-icon.blue{background:#e8eefb;color:#506cab}.health-icon svg,.setting-icon svg{width:17px}.toolbar{display:flex;gap:10px;margin-bottom:17px}.search{height:40px;max-width:360px;flex:1;display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:9px;padding:0 12px;color:#9aa8ad}.search svg{width:16px}.search input{border:0;outline:0;width:100%;font-size:12px;color:var(--ink)}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.customer-card,.account-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;box-shadow:var(--shadow)}.customer-card-head,.account-top{display:flex;justify-content:space-between;align-items:center}.customer-avatar{width:38px;height:38px;border-radius:10px;background:#e2f3ef;color:var(--teal);display:grid;place-items:center;font:600 13px Inter,"Segoe UI",sans-serif}.customer-card h3,.account-card h3{font:600 16px Inter,"Segoe UI",sans-serif;margin:17px 0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identifier{color:var(--muted);font-size:11px;margin:0}.customer-meta{color:#6f7c82;font-size:11px;margin:16px 0;min-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-actions{border-top:1px solid #eef1f2;padding-top:12px;display:flex;justify-content:space-between;align-items:center}.text-button{background:transparent;color:var(--teal);font-size:11px;font-weight:700;padding:0}.icon-btn.small{width:27px;height:27px}.scope-switch{display:flex;gap:4px;background:#e7edef;border-radius:9px;padding:4px;width:max-content;margin-bottom:18px}.scope-switch button{padding:8px 14px;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;font-weight:700}.scope-switch button.active{background:white;color:var(--teal);box-shadow:0 2px 5px #19333a12}.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.account-icon{width:34px;height:34px;border-radius:9px;background:#eef6f4;color:var(--teal);display:grid;place-items:center;font-weight:700}.account-card strong{display:block;font:600 23px Inter,"Segoe UI",sans-serif;margin:12px 0 4px}.account-card small{color:var(--muted);font-size:11px}.table-panel{padding:0;overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#849197;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:700;padding:15px 18px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 18px;border-bottom:1px solid #eef1f2;white-space:nowrap}tbody tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.amount{text-align:right}.positive{color:#15916f}.negative{color:#c95261}.movement{font-size:10px;font-weight:700}.movement.income{color:#15916f}.movement.expense{color:#c95261}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.setting-card{display:flex;align-items:center;gap:13px}.setting-card div{flex:1}.setting-card h3{font:600 15px Inter,"Segoe UI",sans-serif;margin:0 0 4px}.setting-card p{font-size:11px;color:var(--muted);margin:0}.compact-list{display:grid;gap:8px;margin-top:16px}.compact-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e9eef0;border-radius:10px;background:#fbfcfc}.compact-row>span:first-child{min-width:0;display:grid;gap:3px;flex:1}.compact-row b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-row small{color:var(--muted);font-size:10px}.compact-row strong{font-size:12px;white-space:nowrap}.stack-form{display:grid;gap:12px;margin:18px 0}.stack-form label{display:grid;gap:6px;color:#52636a;font-size:11px;font-weight:700}.stack-form input,.stack-form select,.stack-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 11px;background:#fbfcfc;resize:vertical}.stack-form .button{justify-content:center}.empty,.error{padding:45px;text-align:center;color:var(--muted);font-size:12px}.error{color:var(--rose)}.empty-state{text-align:center;background:#fff;border:1px dashed #cbd9dc;border-radius:13px;padding:75px 25px;color:var(--muted)}.empty-state h3{color:var(--ink);font:600 18px Inter,"Segoe UI",sans-serif;margin:16px 0 7px}.empty-state p{font-size:12px;margin:0 0 18px}.empty-illustration{width:52px;height:52px;border-radius:15px;background:var(--mint);color:var(--teal);display:inline-grid;place-items:center;font-size:26px}.notice{position:fixed;right:26px;top:22px;z-index:20;background:#173a40;color:white;border-radius:8px;padding:12px 17px;font-size:12px;opacity:0;transform:translateY(-10px);pointer-events:none;transition:.25s}.notice.visible{opacity:1;transform:none}.notice.error{background:#8d3343}.notice.info{background:#31587d}.modal{display:none;position:fixed;inset:0;z-index:30;align-items:center;justify-content:center;padding:18px}.modal.open{display:flex}.modal-backdrop{position:absolute;inset:0;background:#102a33a8;backdrop-filter:blur(4px)}.modal-card{position:relative;width:min(560px,100%);background:#fff;border-radius:15px;box-shadow:0 25px 80px #102a3350;padding:25px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.modal-head h2{font:600 23px Inter,"Segoe UI",sans-serif;margin:6px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{display:grid;gap:6px;color:#52636a;font-size:11px;font-weight:700}.form-grid label.full{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid var(--line);border-radius:8px;outline:0;padding:10px 11px;color:var(--ink);font-size:12px;background:#fbfcfc;resize:vertical}.modal-card.modal-lg{width:min(940px,100%);max-height:92vh;display:flex;flex-direction:column}
.invoice-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:20px;flex-wrap:wrap}
body:has(#view-invoices.active) main{min-width:0}
@media(max-width:650px){body:has(#view-invoices.active) .app-shell{display:block;min-width:0}body:has(#view-invoices.active) .sidebar{width:100%;max-height:none;position:static;padding:12px;gap:10px}body:has(#view-invoices.active) .sidebar .workspace,body:has(#view-invoices.active) .sidebar-foot{display:none}body:has(#view-invoices.active) .nav{display:flex;overflow-x:auto}body:has(#view-invoices.active) .nav-item{flex-shrink:0}body:has(#view-invoices.active) main{width:100%;padding:16px;min-width:0}body:has(#view-invoices.active) main>header{flex-wrap:wrap;gap:12px}#view-invoices{min-width:0}#view-invoices .table-panel{max-width:100%;overflow-x:auto}}
.invoice-tabs button{padding:14px 0;background:transparent;color:var(--muted);border-bottom:3px solid transparent;font-weight:600;letter-spacing:0}
.invoice-tabs button.active{color:var(--teal-dark);border-color:var(--teal)}
.invoice-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.invoice-toolbar .search{flex:1;min-width:180px}
.invoice-sync{margin:12px 0 20px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line);padding-bottom:12px}
.invoice-sync summary{cursor:pointer;padding:8px 0}
#nilveraPaging>div{padding:6px 0;overflow-wrap:anywhere}
#view-invoices .table-panel{box-shadow:none;border-radius:6px}
#view-invoices td{vertical-align:middle}
#view-invoices td:nth-child(3){min-width:160px;max-width:320px;white-space:normal;overflow-wrap:anywhere}
#view-invoices .button{white-space:nowrap}
@media(max-width:650px){.invoice-toolbar .search{flex-basis:100%}.invoice-tabs{gap:16px}.invoice-tabs button{font-size:13px}#view-invoices .view-head{gap:12px;flex-wrap:wrap}}
.modal-card.modal-lg .modal-head{flex:none;margin-bottom:14px}
#modal[data-type="customer"] .modal-card{max-height:calc(100dvh - 36px);overflow-y:auto;min-width:0}
#modal[data-type="customer"] .form-grid>*{min-width:0}
#modal[data-type="contract"] .modal-card{max-height:calc(100dvh - 36px);overflow-y:auto;min-width:0}
#modal[data-type="contract"] .form-grid>*{min-width:0}
@media(max-width:600px){#modal[data-type="contract"] .form-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#modal[data-type="customer"] .form-grid{grid-template-columns:minmax(0,1fr)}#modal[data-type="customer"] .lookup-row{min-width:0}#modal[data-type="customer"] .lookup-row input{min-width:0;width:100%}}
#pdfIframe{width:100%;flex:1;min-height:550px;border:0;border-radius:10px;background:#f8fafc}
.pdf-modal-actions{display:flex;align-items:center;gap:8px}
.taxpayer-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700}
.taxpayer-badge.einvoice{background:var(--mint);color:#187663}
.taxpayer-badge.earsiv{background:#e8f0fe;color:#3b66a6}
.taxpayer-badge.unknown{background:#fef3c7;color:#92400e}
.invoice-lines-wrap{grid-column:1/-1;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:14px;background:#fafbfc}
.invoice-lines-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.invoice-lines-head h4{margin:0;font:600 13px 'Space Grotesk';color:var(--ink)}
.line-row{display:grid;grid-template-columns:2.5fr 1fr 1.2fr 1fr auto;gap:8px;align-items:center;margin-bottom:8px}
.invoice-summary-bar{display:flex;justify-content:flex-end;gap:18px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}
.invoice-summary-bar span{color:var(--muted)}
.invoice-summary-bar strong{font:600 14px 'Space Grotesk';color:var(--ink)}
.payment-allocation-row{display:grid;grid-template-columns:2fr 1fr 120px;gap:8px;align-items:center;margin-bottom:8px;font-size:12px}
.payment-allocation-row input{width:100%}
.muted{color:var(--muted)}
.lookup-row{display:flex;gap:8px;align-items:center}
.lookup-status{font-size:11px;margin-top:4px}
.connection-settings{border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:24px;max-width:760px}
.connection-settings h3{font-size:18px;letter-spacing:0}
#customerDetail{min-width:0;border-top:1px solid var(--line);padding-top:20px}
#customerDetail[hidden],#customersGrid[hidden],#movementFxLabel[hidden]{display:none}
#metricBalance{font-size:24px;overflow-wrap:anywhere;letter-spacing:0}
#view-finance .button-row{flex-wrap:wrap}
#modal[data-type="account"] .modal-card,#modal[data-type="movement"] .modal-card{max-height:calc(100dvh - 32px);overflow-y:auto}
#modal[data-type="account"] .form-grid>*,#modal[data-type="movement"] .form-grid>*{min-width:0}
@media(max-width:600px){#modal[data-type="account"] .form-grid,#modal[data-type="movement"] .form-grid{grid-template-columns:minmax(0,1fr)}}
#customerDetail h3{font-size:20px;letter-spacing:0;overflow-wrap:anywhere}
.customer-balances{display:flex;flex-wrap:wrap;gap:24px;padding:16px 0;border-bottom:1px solid var(--line)}
.customer-balances span,.customer-balances strong{display:block;overflow-wrap:anywhere}
.customer-balances span{font-size:12px;color:var(--muted);margin-bottom:6px}
.customer-balances strong{font-size:20px;letter-spacing:0}
#customerStatementContent{min-width:0;font-size:13px}
#customerStatementContent td small{max-width:280px;white-space:normal;overflow-wrap:anywhere}
.connection-settings fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:16px}
.connection-settings label{display:grid;gap:7px;font-size:13px}
.connection-settings input,.connection-settings select{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--white)}
.connection-settings .button-row{display:flex;flex-wrap:wrap;gap:8px}
.connection-settings button{min-height:40px;white-space:normal;letter-spacing:0}
.connection-settings button:disabled{opacity:.55;cursor:not-allowed}
#bimasrafConnectionStatus,#nilveraStatus{font-size:13px;overflow-wrap:anywhere;min-height:38px}
#nilveraPaging{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;font-size:13px;overflow-wrap:anywhere;width:100%}
#nilveraPaging>div{min-width:0;max-width:100%}
.invoice-scan-source{display:grid;gap:7px}
.invoice-scan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text)}
.invoice-scan-head strong{font-size:12px;font-weight:650}
.invoice-scan-head span{font-variant-numeric:tabular-nums;font-weight:700;color:var(--primary)}
.invoice-scan-track{height:7px;overflow:hidden;background:var(--line);border-radius:4px}
.invoice-scan-track>span{display:block;height:100%;background:var(--primary);border-radius:inherit;transition:width .25s ease}
.invoice-scan-track.is-indeterminate>span{width:40%!important;animation:invoiceScanIndeterminate 1.1s ease-in-out infinite}
.invoice-scan-source small{color:var(--muted);line-height:1.4}
@keyframes invoiceScanIndeterminate{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
@media(max-width:760px){#nilveraPaging{grid-template-columns:1fr}}
.tax-disclaimer{display:flex;align-items:flex-start;gap:11px;margin-bottom:18px;padding:14px 16px;border:1px solid #ead7a7;border-radius:10px;background:#fff9e9;color:#725a22;font-size:12px;line-height:1.55}.tax-disclaimer svg{width:18px;flex:none;margin-top:1px}.tax-disclaimer strong{display:block;color:#5e4817}.tax-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.tax-toolbar label{display:grid;gap:6px;min-width:190px;color:var(--muted);font-size:11px;font-weight:700}.tax-toolbar select{height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);padding:0 11px}.tax-status{margin-left:auto;min-height:40px;display:flex;align-items:center;color:var(--muted);font-size:12px}.tax-warnings{display:grid;gap:8px;margin-bottom:16px}.tax-warnings[hidden]{display:none}.tax-warnings>div{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;border-radius:9px;background:#fff4e5;color:#815b20;font-size:12px}.tax-warnings svg{width:16px;flex:none}.tax-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.tax-table-head{margin:28px 0 12px}.tax-table-head h3{margin:5px 0 0;font-size:18px}.tax-metrics .empty{grid-column:1/-1}.tax-metrics .metric strong{font-size:22px}#view-tax td:nth-child(n+4),#view-tax th:nth-child(n+4){text-align:right}#view-tax .table-panel{overflow:hidden}@media(max-width:760px){#view-tax .view-head{align-items:flex-start;gap:16px;flex-direction:column}.tax-toolbar{align-items:stretch}.tax-toolbar label{min-width:0;flex:1 1 100%}.tax-status{margin-left:0}.tax-metrics{grid-template-columns:1fr 1fr}}@media(max-width:480px){.tax-metrics{grid-template-columns:1fr}}
.planning-note{display:flex;align-items:flex-start;gap:11px;margin-bottom:16px;padding:14px 16px;border:1px solid #bcded8;border-radius:10px;background:#f1faf8;color:#345f5b;font-size:12px;line-height:1.5}.planning-note svg{width:18px;flex:none}.planning-note div{display:grid;gap:3px}.planning-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px}.planning-toolbar .scope-switch{margin-bottom:16px}.planning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.planning-grid .panel:last-child{grid-column:1/-1}.form-help{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.form-grid .form-help.full{grid-column:1/-1}@media(max-width:800px){.planning-grid{grid-template-columns:1fr}.planning-grid .panel:last-child{grid-column:auto}.planning-toolbar{align-items:flex-start;flex-direction:column}.planning-metrics{grid-template-columns:1fr 1fr}}@media(max-width:520px){.planning-metrics{grid-template-columns:1fr}}
.panel-help{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.button.compact-action{padding:6px 9px;font-size:10px;white-space:nowrap}.button.compact-action svg{width:14px}.planning-grid .compact-row>.badge{white-space:nowrap}@media(max-width:640px){.planning-grid .compact-row{align-items:flex-start;flex-wrap:wrap}.planning-grid .compact-row>span:first-child{flex-basis:calc(100% - 110px)}}
.expense-source-panel{margin-bottom:22px}.expense-section-head{margin:26px 0 12px}.expense-section-head h3{margin:5px 0 0;font-size:18px}#view-expenses .table-panel{margin-bottom:22px}#view-expenses .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){#view-expenses .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){#view-expenses .metric-grid{grid-template-columns:1fr}}
