/* KVS 0.1. Visi sąsajos stiliai vienoje vietoje. Nenaudojami išoriniai šriftai. */
:root{color-scheme:dark;--bg:#101720;--surface:#17212c;--surface-2:#1c2835;--surface-3:#202d3c;--input:#141e29;--border:#2b394a;--border-light:#36465a;--text:#eaf0f8;--muted:#92a3b8;--subtle:#708198;--blue:#438aff;--blue-bright:#2e78f3;--blue-tint:#1e3554;--green:#51c99a;--amber:#e6b363;--red:#f07883;--sidebar-width:236px;--radius:10px;--shadow:0 12px 38px #050a1020}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button{color:inherit}button svg,a svg{flex-shrink:0}input,textarea,select{min-width:0}input[type=checkbox]{accent-color:var(--blue);width:16px;height:16px;cursor:pointer;margin:0}input[type=date]::-webkit-calendar-picker-indicator{opacity:.6;cursor:pointer}textarea{resize:vertical;min-height:100px}strong{font-weight:600}::selection{background:#315782;color:#fff}[hidden]{display:none!important}:focus-visible{outline:2px solid #72a7ff;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.skip-link{position:fixed;top:-60px;left:16px;z-index:200;padding:12px 18px;background:var(--blue);color:#fff;border-radius:6px}.skip-link:focus{top:12px}.app-shell{min-height:100vh}.sidebar{width:var(--sidebar-width);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;background:linear-gradient(180deg,#18222e,#141d28);border-right:1px solid var(--border);z-index:40}.brand{display:flex;align-items:center;gap:11px;height:85px;padding:0 22px;border-bottom:1px solid #2b394a80;margin-bottom:22px}.brand-icon{color:var(--blue);display:flex}.brand-icon .icon{width:38px;height:38px;stroke-width:1.8}.brand-name{font-size:28px;font-weight:750;line-height:1.1;letter-spacing:1px}.brand-name>span{display:block;font-size:10px;font-weight:400;color:var(--muted);letter-spacing:.1px;margin-top:7px;white-space:nowrap}.sidebar-caption{padding:0 23px;margin:7px 0 12px;color:var(--subtle);font-size:10px;font-weight:650;letter-spacing:1.2px}.side-navigation{padding:0 12px;display:grid;gap:5px}.side-navigation a{min-height:45px;display:flex;gap:12px;align-items:center;padding:11px 12px;border:1px solid transparent;border-radius:7px;color:#aebed2;font-size:12px;transition:background .15s,color .15s}.side-navigation a .icon{width:19px;height:19px;color:#8196b0}.side-navigation a:hover{background:#223246;color:#fff}.side-navigation a.active{background:linear-gradient(90deg,#203b60,#1d3049);color:#d4e5ff;border-color:#2b4d77;box-shadow:inset 3px 0 var(--blue)}.side-navigation a.active .icon{color:#6ba3ff}.side-navigation a.active span{font-weight:550}.sidebar-divider{height:1px;background:var(--border);margin:26px 22px 19px}.nav-count{margin-left:auto;min-width:23px;padding:0 6px;text-align:center;background:#2c3c51;border-radius:5px;color:#b9cde7;font-size:11px}.side-navigation .small-dot{margin-left:auto}.sidebar-bottom{margin-top:auto;padding:24px 17px 18px}.local-card{display:flex;align-items:flex-start;gap:10px;border:1px solid #2c4055;border-radius:8px;padding:13px 10px;background:#1c2b3c66}.local-card>.icon{color:#81a3c9;width:18px;height:18px;margin-top:2px}.local-card strong{font-size:11px;color:#c4d3e6}.local-card p{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.7}.version{display:flex;justify-content:space-between;color:var(--subtle);font-size:10px;padding:16px 2px 0}.version b{font-weight:400;color:#a5b5c8}.workspace{margin-left:var(--sidebar-width);min-width:0}.topbar{height:72px;background:#151e29;border-bottom:1px solid var(--border);padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:15px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:20px;min-width:0}.breadcrumb{color:var(--subtle);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.breadcrumb>span{margin:0 11px;color:#485e77}.breadcrumb>strong{color:#b9c8d9;font-weight:450}.today{font-size:12px;color:var(--subtle);white-space:nowrap}.api-indicator{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;padding:6px 10px;border:1px solid #584630;background:#30291e70;border-radius:5px;color:#dcbb87}.small-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--amber);flex-shrink:0}.api-indicator:hover{background:#463823}.workspace-profile{display:flex;align-items:center;gap:10px;padding-left:22px;border-left:1px solid var(--border);font-size:12px;color:#d3dce7;white-space:nowrap}.workspace-profile small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.avatar{height:34px;width:34px;border:1px solid #405774;background:#2a3e56;display:grid;place-items:center;color:#bcd4f5;font-size:12px;font-weight:600;border-radius:50%}.mobile-menu{display:none!important}main{max-width:1860px;margin:auto;padding:0 28px 0;outline:none}.module-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:26px 0 22px}.module-tabs{display:flex;gap:10px}.module-tab{min-height:44px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid var(--border);background:linear-gradient(180deg,#1c2734,#18222e);border-radius:7px;padding:10px 21px;color:#adbed2;font-size:13px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}.module-tab>.icon{width:21px;height:21px}.module-tab:hover{border-color:#486286;color:#fff}.module-tab.active{color:white;border-color:#4d92ff;background:linear-gradient(115deg,#3f8bff,#286bdc);box-shadow:0 5px 14px #1c63ca25}.module-bar-note{color:var(--subtle);font-size:11px;white-space:nowrap}.document-card{margin:0;background:linear-gradient(130deg,#19232f,#17212c 65%);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.document-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 25px;border-bottom:1px solid var(--border)}.heading-group{display:flex;align-items:center;gap:14px;min-width:0}.document-symbol{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:8px;color:#8cb7f8;border:1px solid #345073;background:#253d5b80}.document-symbol .icon{width:24px;height:24px}h1{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.3px}.document-heading p{font-size:12px;color:var(--muted);margin-top:4px}.badge{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#a9bad0;border:1px solid #344559;background:#22304480;border-radius:20px;padding:5px 11px;white-space:nowrap}.dot{width:6px;height:6px;border-radius:50%;background:#8ea2bd}.badge.is-saved{color:#a3d8c0;border-color:#35634f;background:#183b2e66}.badge.is-saved .dot{background:var(--green)}.badge.warning{color:#e2bd87;background:#342b2266;border-color:#594531}.badge.warning .dot{background:var(--amber)}.fields-section{padding:19px 25px 23px}.section-eyebrow{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.65px;text-transform:uppercase;font-weight:600;color:#a3b5ce;margin-bottom:18px}.section-eyebrow .muted{text-transform:none;letter-spacing:0;font-size:10px;font-weight:400;color:var(--subtle)}.fields-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:17px 20px}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-6{grid-column:span 6}.field{min-width:0}label{display:block;color:#cbd7e7;font-size:12px;font-weight:500;margin-bottom:6px}.input-wrap{position:relative}.field input,.notes-field textarea,.search-wrap input,.archive-toolbar select{display:block;width:100%;height:39px;padding:9px 11px;border:1px solid #354557;border-radius:5px;background:#141e2999;color:var(--text);font-size:12px;transition:border-color .15s,box-shadow .15s}.field input:hover,.notes-field textarea:hover{border-color:#49617d}.field input:focus,.notes-field textarea:focus,.line-table input:focus,.line-table select:focus,.search-wrap input:focus,.archive-toolbar select:focus{outline:none;border-color:#548ce0;box-shadow:0 0 0 2px #4589ed1c}.field input::placeholder,.notes-field textarea::placeholder,.search-wrap input::placeholder,.line-table input::placeholder{color:#798ba2;opacity:1}.field input[readonly]{color:#91a8c4;background:#1d2b3b80;cursor:default}.locked-input>.icon{position:absolute;right:10px;top:11px;width:16px;height:16px;color:#6c87aa}.locked-input:has(.icon) input{padding-right:32px}.field-hint{display:block;color:var(--subtle);font-size:10px;line-height:1.4;margin-top:5px}.field-tag{display:inline-block;margin-left:7px;color:#b1c7e7;border:1px solid #395171;border-radius:3px;padding:0 4px;font-size:9px;line-height:14px;vertical-align:1px}.integration-notice{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #2e4562;background:#1a2d4480;padding:14px 25px}.integration-notice>.icon{width:19px;height:19px;color:#87b3f4;margin-top:2px}.integration-notice>div{flex:1}.integration-notice strong{font-size:12px;color:#c0d8fa}.integration-notice p{font-size:11px;color:#96b0d1;margin-top:3px;line-height:1.65;max-width:930px}.integration-notice .text-button{margin-top:3px;white-space:nowrap}.lines-section{padding:0 25px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.section-heading h2{font-size:14px;font-weight:600;letter-spacing:-.1px}.section-heading p{font-size:10px;color:var(--subtle);margin-top:4px}.line-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.button{min-height:39px;padding:9px 14px;display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:5px;border:1px solid transparent;background:transparent;font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s}.button>.icon{width:17px;height:17px}.button-primary{color:#fff;border-color:#4c91ff;background:linear-gradient(110deg,#3a85f7,#296cd9);box-shadow:0 3px 8px #071f4038}.button-primary:hover{background:linear-gradient(110deg,#5698fb,#3e81ec)}.button-outline{color:#8bb8fc;border-color:#3c5d88;background:#1b355240}.button-outline:hover{border-color:#6b9cdf;background:#254365}.button-quiet{color:#a1b2c8}.button-quiet:hover{color:#e5eefb;background:#253346}.button-future{border-color:#385447;background:#203e32;color:#87a999}.button-future:disabled{opacity:.6}.button:disabled:not(.button-future){opacity:.36}.compact{min-height:32px;padding:6px 10px;font-size:11px}.compact>.icon{width:15px;height:15px}.text-button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#79abfa;font-size:11px;font-weight:500;padding:3px 0;cursor:pointer}.text-button:hover{color:#bed7ff}.text-button>.icon{width:15px;height:15px}.table-scroll{position:relative;overflow-x:auto;border:1px solid var(--border);border-radius:6px 6px 0 0;scrollbar-color:#425976 #17212c;scrollbar-width:thin}.line-table{border-collapse:collapse;width:100%;table-layout:fixed}.table-vaztarastis{min-width:780px}.table-aktas{min-width:880px}.table-saskaitos{min-width:1010px}.line-table th{text-align:left;font-size:10px;color:#b5c7de;background:#202d3d;padding:11px 8px;border-bottom:1px solid #354457;font-weight:550;white-space:nowrap}.line-table th+th{border-left:1px solid #30405377}.line-table td{padding:8px;border-bottom:1px solid #2b394a77;background:#17222f;vertical-align:middle}.line-table tbody tr:last-child td{border-bottom:0}.line-table tr.selected td{background:#20384f}.line-table th:nth-child(2){width:29%}.line-table th:nth-child(3){width:11%}.line-table th:nth-child(4){width:12%}.table-vaztarastis th:nth-child(5){width:19%}.table-aktas th:nth-child(5){width:13%}.table-aktas th:nth-child(6){width:13%}.table-saskaitos th:nth-child(2){width:24%}.table-saskaitos th:nth-child(3){width:9%}.table-saskaitos th:nth-child(4){width:10%}.table-saskaitos th:nth-child(5){width:11%}.table-saskaitos th:nth-child(6){width:10%}.table-saskaitos th:nth-child(7){width:11%}.table-saskaitos th:nth-child(8){width:9%}.table-saskaitos th:nth-child(9){width:11%}.line-table .checkbox-cell{width:35px;padding-right:6px;padding-left:11px}.line-table .action-cell{width:37px;padding:4px}.line-table input:not([type=checkbox]),.line-table select{height:34px;width:100%;border:1px solid #344659;background:#131e2a;border-radius:4px;padding:6px 8px;color:#d8e5f5;font-size:11px}.line-table select{padding-right:2px}.line-table [data-key=quantity],.line-table [data-key=price],.line-table [data-key=discount],.line-table [data-key=vat],.line-table [data-key=weight]{text-align:right;font-variant-numeric:tabular-nums}.line-table [aria-invalid=true]{border-color:var(--red)!important;background:#38212b!important}.line-table .calculated{min-height:34px;padding:8px 7px;border:1px solid #2d3c4e;border-radius:4px;background:#1d2b3c;color:#a6bbd4;text-align:right;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;display:block;overflow:hidden;text-overflow:ellipsis}.icon-button{height:32px;width:32px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border:1px solid transparent;border-radius:5px;background:transparent;flex-shrink:0}.icon-button:hover{background:#2b3b51;color:#fff}.icon-button>.icon{width:17px;height:17px}.icon-button.danger{color:#df7f88}.icon-button.danger:hover{background:#522c37;color:#ffb2ba}.table-bottom{display:flex;align-items:center;justify-content:space-between;background:#1e2b3b;border:1px solid var(--border);border-top:0;border-radius:0 0 6px 6px;padding:8px 12px}.table-bottom>span{font-size:10px;color:var(--subtle)}.validation-summary{color:#efadb3;padding:10px 0 0;font-size:11px}.document-bottom{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.85fr);gap:25px;align-items:start;padding:20px 25px}.notes-field textarea{height:90px;min-height:75px;font-size:12px}.save-meta{color:var(--subtle);font-size:10px;margin-top:6px;min-height:15px}.totals-panel{background:#202d3c99;border:1px solid #2e4055;border-radius:7px;padding:12px 17px;margin-top:23px}.total-line{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;padding:5px 0;color:#a6b9d1}.total-line strong{text-align:right;color:#d6e2f3;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.total-line.grand-total{border-top:1px solid #3a4b60;margin-top:8px;padding-top:12px;color:#dce8f9;font-size:12px;font-weight:600}.grand-total strong{font-size:17px;color:#f0f5fd;font-weight:650}.grand-total>span{display:flex;align-items:center;gap:8px}.grand-total .icon{width:17px;height:17px;color:#9bb6d9}.totals-note{font-size:10px;color:var(--subtle);margin-top:8px;line-height:1.5}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--border);padding:15px 25px;background:#141f2b40}.footer-note{font-size:10px;color:var(--subtle);display:flex;align-items:center;gap:7px;min-width:0}.footer-note .icon{width:14px;height:14px}.footer-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.workspace-footer{font-size:10px;color:#708299;padding:19px 0 20px;display:flex;justify-content:space-between;gap:15px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:600;color:#80a2cd;margin-bottom:9px}.page-heading h1{font-size:28px;letter-spacing:-.65px}.page-heading p{font-size:12px;color:var(--muted);margin-top:8px}.home-view{padding-top:5px}.module-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin-bottom:27px}.module-card{display:block;border:1px solid var(--border);background:linear-gradient(135deg,#1c2939,#17212c);border-radius:10px;padding:24px;transition:border-color .15s,transform .15s;box-shadow:var(--shadow)}.module-card:hover{border-color:#4c76ac;transform:translateY(-2px)}.module-card-icon{width:46px;height:46px;border:1px solid #3a5b83;border-radius:9px;display:grid;place-items:center;color:#90baff;background:#28456766;margin-bottom:24px}.module-card-icon>.icon{width:25px;height:25px}.module-card-icon.aktas{background:#214b4166;border-color:#306754;color:#7cd6af}.module-card-icon.saskaitos{background:#3b345166;border-color:#5a4e74;color:#b0a1d6}.module-card h2{font-size:19px;font-weight:550;letter-spacing:-.3px}.module-card>p{font-size:12px;min-height:36px;margin-top:10px;color:#96a9c2}.card-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #34465b99;margin-top:24px;padding-top:16px;color:#9bb8e1;font-size:11px}.card-bottom .icon{width:18px;height:18px}.home-bottom-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:22px}.panel{border:1px solid var(--border);border-radius:9px;background:#17222f;box-shadow:var(--shadow);padding:23px}.panel>h2{font-size:16px;font-weight:550}.recent-panel{min-height:300px}.empty-state{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty-state .empty-icon{width:54px;height:54px;background:#24364e80;border:1px solid #304965;border-radius:50%;display:grid;place-items:center;color:#708eaf;margin-bottom:16px}.empty-state .empty-icon .icon{width:25px;height:25px}.empty-state h3{font-size:14px;font-weight:500;color:#bbcbdf}.empty-state p{font-size:11px;color:var(--subtle);margin-top:6px;max-width:350px;line-height:1.8}.workflow-note{position:relative;background:linear-gradient(130deg,#20354f,#182331);overflow:hidden}.mini-label{font-size:9px;letter-spacing:1.1px;color:#8badda}.workflow-note h2{font-size:22px;line-height:1.4;margin-top:22px;font-weight:550;letter-spacing:-.4px}.workflow-note p{font-size:12px;color:#9fb5d2;line-height:1.9;margin-top:16px;max-width:370px}.workflow-note .text-button{margin-top:22px}.workflow-icon{position:absolute;right:20px;top:24px;color:#6a93c966}.workflow-icon .icon{width:40px;height:40px}.archive-panel{padding:0;overflow:hidden}.archive-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 23px;border-bottom:1px solid var(--border)}.search-wrap{position:relative;max-width:480px;width:100%}.search-wrap>.icon{position:absolute;left:12px;top:11px;width:17px;height:17px;color:#708cab}.search-wrap input{padding-left:38px}.archive-toolbar select{max-width:220px}.archive-scroll{position:relative;overflow:auto;scrollbar-width:thin;scrollbar-color:#425976 #17212c}.archive-table{width:100%;min-width:730px;border-collapse:collapse;text-align:left}.archive-table th{padding:12px 22px;font-size:10px;font-weight:500;color:#89a0bc;background:#1b2939;border-bottom:1px solid var(--border)}.archive-table td{padding:15px 22px;border-bottom:1px solid #2b394a80;font-size:12px;color:#b9cce3}.archive-table tr:last-child td{border-bottom:0}.archive-table .doc-cell{display:flex;align-items:center;gap:11px;color:#d0ddf0}.doc-cell>.icon{color:#759ac9;width:18px;height:18px}.doc-cell small,.archive-table .date-cell small{display:block;color:var(--subtle);font-size:10px;margin-top:3px}.archive-table .table-actions{display:flex;gap:9px;justify-content:flex-end}.archive-table .client-cell{max-width:280px;overflow-wrap:anywhere}.archive-table .date-cell{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.archive-summary{padding:11px 23px;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.page-footnote{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:var(--subtle);margin-top:18px;line-height:1.7}.page-footnote>.icon{width:16px;height:16px;margin-top:2px}.recent-item{display:flex;align-items:center;gap:13px;padding:16px 0;border-top:1px solid #2e405588;width:100%;background:none;color:inherit;text-align:left;border-bottom:0;border-left:0;border-right:0}.recent-item:hover{background:#24385055}.recent-item .document-symbol{width:35px;height:35px;border-radius:6px}.recent-item .document-symbol .icon{width:19px;height:19px}.recent-item>.recent-main{flex:1;min-width:0}.recent-item strong{font-size:12px;color:#c8d8ef;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.recent-item small{font-size:10px;color:var(--subtle);display:block;margin-top:3px}.recent-item>time{font-size:10px;color:#92a8c5;white-space:nowrap}.integration-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.flow-step{padding:23px;background:linear-gradient(135deg,#1e2d40,#17222e);border:1px solid var(--border);border-radius:8px;position:relative}.flow-step>span{position:absolute;top:19px;right:17px;font-size:22px;font-weight:650;color:#405772}.flow-step>.icon{width:26px;height:26px;color:#86b0ed;margin-bottom:25px}.flow-step h2{font-size:14px;font-weight:550}.flow-step p{font-size:12px;color:#94a9c5;line-height:1.9;margin-top:10px}.integration-details{display:grid;grid-template-columns:1fr 1fr;gap:22px}.checklist{margin-top:21px}.checklist p{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#a9bdd6;margin-bottom:16px}.checklist .icon{color:#7ebc9f;width:17px;height:17px}.body-copy{font-size:12px;color:#a1b6d0;margin-top:17px;line-height:1.9}.security-note{display:flex;align-items:center;gap:10px;border:1px solid #354a62;background:#20334966;border-radius:5px;padding:12px;margin-top:20px;font-size:11px;color:#99b4d6}.security-note .icon{width:17px;height:17px}.storage-banner,.error-banner{padding:14px 18px;margin-top:20px;border:1px solid #8e5350;border-radius:6px;background:#482824;color:#ffc5bb;font-size:12px}.confirm-dialog{border:1px solid #425977;border-radius:12px;background:#1b2939;color:var(--text);padding:25px;width:460px;max-width:calc(100vw - 30px);box-shadow:0 20px 120px #0008}.confirm-dialog::backdrop{background:#070e18c9;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.confirm-dialog h2{font-size:20px;letter-spacing:-.4px}.confirm-dialog p{font-size:12px;color:#a8bbd4;line-height:1.9;margin-top:12px;white-space:pre-line}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:26px}.toast-container{position:fixed;right:25px;top:84px;max-width:450px;width:calc(100vw - 40px);z-index:150;display:grid;gap:10px;pointer-events:none}.toast{display:flex;align-items:flex-start;gap:10px;padding:14px 14px 14px 16px;border:1px solid #42775d;border-radius:8px;background:#193b2e;color:#d8f2e4;font-size:12px;box-shadow:0 7px 45px #0005;pointer-events:none;animation:toast-in .18s ease-out}.toast .icon{color:#8fceab;width:18px;height:18px;margin-top:1px}.toast>span{flex:1}.toast.error{border-color:#86545d;background:#432a34;color:#f5d8df}.toast.error .icon{color:#ffb5c3}.toast .icon-button{pointer-events:auto;width:23px;height:23px;margin-top:-2px}.toast .icon-button .icon{width:14px;height:14px;color:inherit}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1700px){:root{--sidebar-width:250px}.side-navigation a{font-size:13px}.brand{padding-left:27px}.document-heading{padding:25px 30px}.fields-section{padding:23px 30px 26px}.lines-section{padding:0 30px}.fields-grid{gap:20px 26px}.field input{height:42px;font-size:13px}.document-bottom{padding:22px 30px}.form-footer{padding:18px 30px}.section-heading p{font-size:11px}.line-table th,.line-table input:not([type=checkbox]),.line-table select,.line-table .calculated{font-size:12px}.line-table input:not([type=checkbox]),.line-table select{height:37px}.table-saskaitos{min-width:1070px}}
@media(max-width:1250px){:root{--sidebar-width:216px}.brand{padding-left:17px}.brand-name{font-size:26px}.brand-name>span{font-size:9px}.brand-icon .icon{width:33px;height:33px}.topbar{padding:0 22px}.topbar-right{gap:14px}.today{display:none}main{padding:0 22px}.module-bar-note{display:none}.module-tab{padding:10px 16px}.fields-section{padding:18px 21px 22px}.fields-grid{gap:17px}.document-heading{padding:20px 21px}.document-heading h1{font-size:20px}.lines-section{padding:0 21px}.section-heading{align-items:flex-start}.line-actions{gap:3px}.line-actions .delete-selected span{display:none}.document-bottom{padding:19px 21px;gap:18px;grid-template-columns:1fr 1fr}.form-footer{padding:15px 21px;flex-wrap:wrap;gap:10px}.footer-note{width:100%}.footer-actions{margin-left:auto}.integration-notice{padding:14px 21px}.page-heading h1{font-size:25px}.module-card{padding:20px}.module-card h2{font-size:17px}.module-card p{min-height:55px}.module-cards{gap:14px}.home-bottom-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);gap:15px}.integration-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-details{gap:15px}.integration-details .panel{padding:20px}.recent-item>time{display:none}}
@media(max-width:1000px){:root{--sidebar-width:195px}.sidebar-caption{padding:0 19px;font-size:9px}.side-navigation{padding:0 9px}.side-navigation a{padding:11px 9px;gap:9px;font-size:11px}.brand{padding-left:13px;gap:8px}.brand-name>span{font-size:8px}.sidebar-bottom{padding:20px 12px 16px}.version{font-size:9px}.topbar{padding:0 18px}.workspace-profile{padding-left:13px}.workspace-profile>span:last-child{display:none}main{padding:0 18px}.module-tab{padding:10px 13px;font-size:12px;gap:8px}.module-tab>.icon{width:18px;height:18px}.fields-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.span-4,.span-3{grid-column:span 3}.span-6{grid-column:span 6}.section-eyebrow .muted{display:none}.document-heading .document-symbol{display:none}.document-bottom{grid-template-columns:minmax(0,1fr) minmax(230px,.9fr)}.footer-actions{width:100%;justify-content:flex-end;gap:5px}.footer-actions .button{font-size:11px;padding:9px 11px}.module-cards{grid-template-columns:1fr}.module-card{display:grid;grid-template-columns:45px 1fr 24px;column-gap:16px;align-items:center;padding:20px}.module-card .module-card-icon{grid-column:1;grid-row:1/3;margin:0;width:44px;height:44px}.module-card h2{grid-column:2;grid-row:1;font-size:18px}.module-card>p{grid-column:2;grid-row:2;min-height:0;margin-top:5px;font-size:11px}.module-card .card-bottom{grid-column:3;grid-row:1/3;margin:0;padding:0;border:0}.card-bottom>span{display:none}.home-bottom-grid{grid-template-columns:1fr}.recent-panel{min-height:230px}.workflow-note h2 br{display:none}.workflow-note>p{max-width:none}.page-heading{align-items:flex-start}.page-heading>.badge{display:none}.integration-details{grid-template-columns:1fr}.page-heading h1{font-size:23px}.page-heading>.button{font-size:11px;padding:8px 10px}.integration-notice>.text-button{display:none}.section-heading p{max-width:360px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:236px;box-shadow:20px 0 60px #0006}.sidebar.open{transform:translateX(0)}.sidebar .brand{padding-left:22px}.sidebar .brand-name>span{font-size:10px}.side-navigation a{font-size:12px;padding:11px 13px}.sidebar-caption{font-size:10px;padding-left:23px}.sidebar-bottom{padding:24px 17px 18px}.workspace{margin-left:0}.mobile-menu{display:inline-flex!important}.mobile-backdrop{position:fixed;inset:0;background:#050b14b3;z-index:35}.topbar{height:62px;padding:0 16px;gap:7px}.topbar-left{gap:9px}.topbar-right{gap:10px}.breadcrumb{font-size:11px}.breadcrumb>span{margin:0 7px}.workspace-profile{padding-left:10px}.avatar{width:30px;height:30px;font-size:10px}.api-indicator{font-size:10px;padding:5px 8px}.module-bar{padding:18px 0}.module-tabs{width:100%;gap:7px}.module-tab{flex:1;padding:10px 8px;font-size:11px;min-height:41px;gap:7px}.module-tab .icon{width:17px;height:17px}main{padding:0 16px}.document-heading{padding:18px}.document-heading h1{font-size:19px}.document-heading p{font-size:11px;max-width:350px}.fields-section{padding:18px}.fields-grid{gap:15px}.lines-section{padding:0 18px}.document-bottom{padding:18px;gap:18px}.section-heading h2{font-size:13px}.line-actions .delete-selected{display:inline-flex}.section-heading p{max-width:300px}.form-footer{padding:14px 18px}.footer-actions .button{min-height:40px}.footer-actions .button-quiet{margin-right:auto}.integration-notice{padding:14px 18px}.badge{font-size:10px;padding:4px 9px}.page-heading{margin-bottom:21px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px}.page-heading .eyebrow{font-size:9px}.home-view{padding-top:8px}.panel{padding:20px}.archive-panel{padding:0}.archive-toolbar{padding:17px;gap:10px}.archive-toolbar select{max-width:170px;font-size:11px}.archive-toolbar input{font-size:11px}.archive-table td,.archive-table th{padding-left:16px;padding-right:16px}.workspace-footer{font-size:9px}.integration-flow{gap:12px}.flow-step{padding:20px}.flow-step h2{font-size:13px}.flow-step p{font-size:11px}.footer-note{font-size:10px}.module-card{padding:20px}.local-card p{font-size:11px}.version{font-size:10px}}
@media(max-width:500px){main{padding:0 11px}.topbar{padding:0 10px}.breadcrumb{max-width:185px}.breadcrumb>strong{display:none}.breadcrumb>span{display:none}.workspace-profile{display:none}.module-tabs{gap:5px}.module-tab{padding:9px 7px;font-size:10px;line-height:1.4;min-height:44px;white-space:normal;text-align:center}.module-tab:nth-child(2){flex:1.35}.module-tab .icon{width:16px;height:16px}.document-heading{padding:17px 15px;align-items:flex-start}.document-heading h1{font-size:18px;line-height:1.4}.document-heading p{font-size:10px;max-width:250px;margin-top:6px}.document-heading>.badge{font-size:9px;padding:4px 7px;gap:5px;margin-top:3px}.draft-status>.dot{width:5px;height:5px}.fields-section{padding:16px 15px 20px}.fields-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.span-3,.span-4,.span-6{grid-column:span 2}.field:has([data-field=date]),.field:has([data-field=due_date]),.field:has([data-field=start_date]),.field:has([data-field=end_date]){grid-column:span 1}.field input{height:42px;font-size:13px}.field label,.notes-field label{font-size:12px}.field-hint{font-size:10px;line-height:1.6}.lines-section{padding:0 15px}.section-heading{gap:9px;flex-wrap:wrap}.section-heading>div:first-child{flex:1;min-width:180px}.section-heading p{max-width:none;font-size:10px}.line-actions{margin-left:auto}.line-actions .button{font-size:10px;min-height:31px;padding:6px 8px}.line-actions .icon{width:13px;height:13px}.document-bottom{grid-template-columns:1fr;padding:18px 15px;gap:4px}.notes-field textarea{height:84px}.totals-panel{margin-top:10px}.total-line{font-size:12px}.form-footer{padding:14px 15px}.footer-actions{flex-wrap:wrap;gap:8px}.footer-actions .button-quiet{order:3;width:100%;min-height:34px;margin:0}.footer-actions .button-primary{flex:1}.footer-actions .button-future{padding:9px;flex:.8}.footer-actions .button{font-size:11px}.footer-actions .icon{width:15px;height:15px}.footer-note{line-height:1.6}.integration-notice{padding:12px 15px;gap:10px}.integration-notice strong{font-size:11px}.integration-notice p{font-size:10px}.integration-notice>.icon{width:17px;height:17px}.workspace-footer{display:block;text-align:center;line-height:2}.workspace-footer>span{display:block}.page-heading{flex-wrap:wrap;gap:15px;margin-bottom:18px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px;line-height:1.8}.module-card h2{font-size:16px}.module-card{grid-template-columns:40px 1fr 18px;column-gap:12px;padding:18px 15px}.module-card .module-card-icon{height:40px;width:40px}.module-card .module-card-icon .icon{width:22px;height:22px}.module-card>p{font-size:11px;line-height:1.7}.module-cards{gap:11px;margin-bottom:19px}.panel{padding:18px}.recent-panel .section-heading{align-items:center}.recent-panel .section-heading>div:first-child{min-width:140px}.recent-panel .text-button{font-size:10px}.workflow-note h2{font-size:21px}.archive-panel{padding:0}.archive-toolbar{flex-wrap:wrap;padding:15px}.archive-toolbar select{max-width:none;height:39px}.archive-toolbar input{height:41px}.integration-flow{grid-template-columns:1fr;gap:12px}.flow-step{padding:20px}.flow-step>.icon{margin-bottom:15px}.flow-step h2{font-size:15px}.flow-step p{font-size:12px}.integration-details .panel{padding:20px}.toast-container{top:74px;right:14px;width:calc(100vw - 28px)}.toast{font-size:11px}.page-footnote{font-size:10px;line-height:1.8}.empty-state{padding:22px 10px;min-height:200px}.recent-item>time{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
