@font-face{font-family:Noto;src:url(/fonts/NotoSansSC-Regular.ttf) format("truetype");font-display:swap;font-weight:400}@font-face{font-family:Noto;src:url(/fonts/NotoSansSC-Bold.ttf) format("truetype");font-display:swap;font-weight:700}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Noto,PingFang SC,sans-serif;color:#172236;background:#f5f7fa;font-synthesis:none;text-rendering:optimizeLegibility;font-size:14px;--nav: #172236;--blue: #3168de;--muted: #69788e;--line: #e4e9f1}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #9ab9fa;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:none;border-color:#7ca3ee;box-shadow:0 0 0 3px #3168de12}h1,h2,p{margin-top:0}h1{font-size:22px;letter-spacing:-.4px;font-weight:650;line-height:1.4;margin-bottom:0}h2{font-size:15px;font-weight:600;margin-bottom:14px}p{line-height:1.65}.muted,.caption{color:var(--muted)}.caption{font-size:12px;line-height:1.7;margin-bottom:0}.numeric{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.app{min-height:100vh}.sidebar{position:fixed;width:208px;inset:0 auto 0 0;background:var(--nav);color:#b6c2d3;display:flex;flex-direction:column;padding:22px 12px;z-index:10}.brand{display:flex;gap:10px;align-items:center;color:#fff;padding:0 8px;font-size:25px;line-height:1.1;font-weight:650;letter-spacing:-.7px}.brand-mark{width:34px;height:36px;border-radius:8px;display:grid;place-items:center;background:var(--blue);font-size:29px}.brand small{display:block;letter-spacing:1.6px;font-size:9px;font-weight:500;color:#91a1b9;margin-top:5px}.sidebar nav{display:flex;flex-direction:column;gap:5px;margin-top:28px}.sidebar nav a{display:flex;align-items:center;gap:12px;border-radius:7px;height:40px;padding:0 12px;font-size:13px;font-weight:500}.sidebar nav a:hover{background:#ffffff09}.sidebar nav a.active{color:#fff;background:#283c5d}.sidebar nav a.active svg{color:#b8cffb}.owner-box{display:flex;gap:8px;align-items:center;border-top:1px solid #ffffff21;padding-top:16px;margin:auto 6px 0}.avatar{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#314158;color:#fff;font-size:11px;font-weight:600}.owner-box strong{display:block;font-size:12px;font-weight:500;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-box>div{min-width:0}.workspace-company{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accounts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}.accounts-toolbar .search{max-width:340px;flex:1}.company-accounts .error-box{margin:0 16px 12px}.account-action{text-align:right}.account-self{margin-left:8px}.company-accounts .button{white-space:nowrap}.owner-box .icon-button{margin-left:auto;color:#94a3b8}.workspace{margin-left:208px;min-width:0}.topbar{height:48px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:var(--muted);font-size:11px;letter-spacing:.6px}.topbar>div{display:flex;gap:20px;align-items:center}.topbar i{font-style:normal;margin:0 10px;color:#bac4d2}.language-button{background:none;border:0;display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}.page{padding:18px 24px 36px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;margin-bottom:14px;min-height:36px;flex-wrap:wrap}.page-heading p{margin:0;color:var(--muted);font-size:13px}.heading-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}.button{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:0 14px;color:#172236;background:#fff;font-weight:500;white-space:nowrap;transition:background .15s;font-size:13px}.button:hover:not(:disabled){background:#f4f7fb;border-color:#cad4e3}.button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.button.primary:hover:not(:disabled){background:#265bcb}.button.danger{color:#b53939;background:#fff8f8;border-color:#f1d9d9}.text-button{border:0;background:transparent;color:var(--blue);padding:0;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500}.text-link{color:var(--blue);display:inline-flex;align-items:center;gap:8px;font-weight:500}.icon-button{border:0;background:transparent;color:var(--muted);padding:5px;line-height:0;border-radius:4px}.icon-button:hover{background:#69788e12}.card{border:1px solid var(--line);border-radius:8px;background:#fff}.list-card{overflow:hidden}.list-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px}.search{height:36px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:0 10px;max-width:360px;width:38%;color:#8799b4}.search input{border:0;width:100%;height:100%;padding:0;box-shadow:none}.search input:focus{box-shadow:none}.search:focus-within{border-color:#7ca3ee}.list-toolbar>select{width:140px}.list-count{font-size:12px;color:var(--muted);margin-left:auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%}th{font-size:11px;font-weight:500;color:var(--muted);text-align:left;background:#fafbfc}th,td{padding:9px 16px}.documents-table th{height:36px}.documents-table td{height:56px;font-size:13px;border-bottom:1px solid var(--line)}.documents-table td:nth-child(2){width:38%;min-width:180px}.documents-table td:nth-child(3){white-space:nowrap;color:var(--muted)}.documents-table td strong{display:block;font-size:13px;font-weight:500;margin-bottom:3px}.documents-table td small{display:block;font-size:12px;color:var(--muted);max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.documents-table td:first-child{white-space:nowrap}.documents-table td:last-child{padding-left:2px;padding-right:16px}.badge{display:inline-flex;justify-content:center;align-items:center;padding:4px 8px;min-width:56px;font-size:11px;font-weight:500;border-radius:5px;white-space:nowrap}.badge.draft{background:#f1f3f6;color:#69788e}.badge.issued{background:#eaf5ef;color:#18765c}.badge.superseded{background:#fff5de;color:#94600b}.badge.void{background:#fceeee;color:#b53939}.pagination{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.pagination>div{display:flex;gap:10px;align-items:center}.pagination .button{width:29px;height:29px;padding:0;border:0}.empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#8a98ac}.empty h2{font-size:16px;color:#172236;margin:12px 0 0}.empty p{font-size:13px;margin-bottom:0}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}.editor-main{min-width:0;display:flex;flex-direction:column;gap:14px}.form-card{padding:16px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.card-heading h2{margin:0}.field{display:flex;flex-direction:column;gap:5px;color:#172236;margin-bottom:12px;min-width:0}.field:last-child{margin-bottom:0}.field>span{color:var(--muted);font-size:12px;font-weight:500}.field b{color:var(--blue);font-weight:500}input,textarea,select{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;color:#172236;background:#fff;padding:7px 10px;line-height:1.55;font-size:13px}input,select{height:36px}input::placeholder,textarea::placeholder{color:#9aa6b8;font-size:12px}textarea{resize:vertical;min-height:58px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.two-columns .field{margin-bottom:12px}.items-card{overflow:hidden}.items-table{min-width:730px;table-layout:fixed}.items-table .grip-col{width:32px}.items-table .item-code-col{width:106px}.items-table .line-number-col{width:36px}.items-table .line-number{text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.items-table td.line-number{padding-top:17px;color:var(--muted);font-size:12px}.items-table .qty-col{width:62px}.items-table .unit-col{width:72px}.items-table .price-col{width:88px}.items-table .amount-col{width:92px}.items-table .action-col{width:36px}.items-table th{padding:10px 5px;font-size:11px}.items-table th:first-child,.items-table th:last-child{padding:0}.items-table td{padding:7px 4px;vertical-align:top;border-bottom:1px solid var(--line)}.items-table td:first-child,.items-table td:last-child{padding-left:2px;padding-right:2px}.items-table input,.items-table select{height:36px;font-size:12px;padding:7px 6px}.items-table input[type=number]{appearance:textfield;-moz-appearance:textfield}.items-table input[type=number]::-webkit-inner-spin-button,.items-table input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.items-table .item-description{display:block;font-size:12px;line-height:20px;padding:7px 8px;min-height:36px;height:36px;resize:none;white-space:nowrap;overflow:hidden}.items-table .item-description.expanded{white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto}.items-table td.numeric{padding-top:17px;padding-right:7px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.items-table .icon-button{width:28px;height:36px;padding:0;flex-shrink:0}.drag-handle{cursor:grab;color:#8a98ab;touch-action:none}.drag-handle:active,.drag-handle[aria-pressed=true]{cursor:grabbing;color:var(--blue);background:#eaf1ff}.drag-handle{user-select:none;-webkit-user-select:none}.line-drag-preview{position:fixed;z-index:100;pointer-events:none;display:flex;align-items:center;gap:8px;width:300px;padding:10px 12px;border:1px solid #9ab9fa;background:#fff;color:#172236;box-shadow:0 6px 22px #17223625;border-radius:6px;font-size:12px}.line-drag-preview>svg{flex-shrink:0;color:var(--blue)}.line-drag-preview>span:first-of-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.items-table .moving-row{opacity:.4}.items-table .drop-before>td,.items-footer.drop-before{box-shadow:inset 0 2px 0 var(--blue)}.items-table .ungrouped-drop td{padding:9px 12px;text-align:center;color:var(--muted);background:#f8faff;font-size:12px;border:1px dashed #b9cceb}.items-table .ungrouped-drop.active td{color:var(--blue);background:#eaf1ff;border-color:var(--blue)}.items-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;min-height:48px;padding:8px 16px}.add-item{margin:0;padding:4px 0}.items-footer .caption{margin:0}.editor-summary{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px}.summary h2{margin-bottom:6px}.summary>small{font-size:12px;color:var(--muted)}.summary-line{display:flex;justify-content:space-between;padding-top:12px;margin:12px 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.summary-line strong{color:#172236;font-weight:500}.summary-total{border-top:1px solid var(--line);margin-top:12px;padding:12px 0;display:flex;gap:8px;align-items:baseline;justify-content:space-between}.summary-total strong{font-size:20px;letter-spacing:-.3px;font-weight:650}.summary>.button{width:100%}.summary .caption{margin-top:12px}.editor-summary textarea{font-size:13px}.error-box{display:flex;align-items:center;gap:10px;border:1px solid #eed2d2;color:#a63b3b;background:#fff6f6;padding:10px 12px;border-radius:7px;line-height:1.7;font-size:13px;margin-bottom:14px}.error-box svg{flex-shrink:0}.error-box .button{margin-left:auto}.toast{position:fixed;bottom:30px;left:calc(50% + 100px);transform:translate(-50%);z-index:100;background:#172236;color:#fff;border-radius:8px;padding:13px 22px;box-shadow:0 8px 30px #17223626;font-size:13px}.setup-banner{border:1px solid #d9e6ff;background:#eef4ff;color:var(--blue);padding:10px 14px;border-radius:8px;width:100%;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:13px}.modal{border:1px solid var(--line);border-radius:10px;background:#fff;color:#172236;padding:20px;width:min(520px,calc(100vw - 32px));max-height:90vh;overflow:auto;box-shadow:0 16px 80px #17223626}.modal::backdrop{background:#17223666;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-head h2{margin:0;font-size:18px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.modal.wide{width:min(1000px,92vw)}.modal.wide iframe{width:100%;height:70vh;border:1px solid var(--line);border-radius:6px}.checkbox{display:inline-flex;gap:9px;align-items:center;color:var(--muted);font-size:12px;line-height:1.5}.checkbox input{width:15px;height:15px;accent-color:var(--blue)}.customer-row{display:flex;align-items:center;gap:16px;margin:0 16px;padding:12px 0;border-top:1px solid var(--line);min-height:64px}.customer-avatar{display:grid;place-items:center;width:34px;height:34px;background:#eef4ff;color:var(--blue);border-radius:7px;font-weight:600;font-size:15px;flex-shrink:0}.customer-row>span:nth-child(2){width:30%;min-width:180px}.customer-row strong{display:block;font-weight:500;font-size:13px}.customer-row small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.customer-address{color:var(--muted);font-size:13px;flex:1;white-space:pre-line}.customer-row>.text-link{font-size:12px;white-space:nowrap}.profile-card{padding:16px}.profile-card dl{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:0 0 16px}.profile-card dt{font-size:12px;color:var(--muted);margin-bottom:4px}.profile-card dd{margin:0;white-space:pre-line;line-height:1.6}.related{padding:16px;margin-top:16px}.related>a{display:flex;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.related>a strong{margin-left:auto;font-weight:500}.settings-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto}.settings-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:8px 2px 10px;font-weight:500;white-space:nowrap;font-size:13px}.settings-tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}.settings-card{max-width:1144px}.numbering-examples{padding:12px;margin-bottom:12px;background:#f6f8fb;border:1px solid var(--line);border-radius:8px}.numbering-examples h3{margin:0 0 8px;font-size:13px}.numbering-examples dl{margin:0;font-size:13px}.numbering-examples dl>div{display:flex;justify-content:space-between;gap:16px;margin:6px 0}.numbering-examples dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mini-references{display:flex;flex-direction:column;align-items:flex-start;font-size:7px;line-height:1.5;padding:5px 0;flex-shrink:0}.logo-upload{display:flex;align-items:center;gap:16px;margin:0 0 16px}.logo-box{width:64px;height:64px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#f8fafc;overflow:hidden;color:var(--muted);font-size:12px}.logo-box img{max-width:100%;max-height:100%;object-fit:contain}.logo-upload small{display:block;color:var(--muted);font-size:12px;margin:5px 0}.visually-hidden{position:absolute;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%)}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,326px));gap:16px;margin:16px 0}.template-option{padding:14px;background:#fff;border:1px solid var(--line);border-radius:9px;text-align:left}.template-option.selected{border-color:var(--blue);box-shadow:0 0 0 2px #3168de13}.template-option>span{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-weight:500;font-size:13px}.template-option>span svg{color:var(--blue)}.mini-paper{min-height:286px;padding:18px 16px;background:#fff;color:#000;border:1px solid var(--line)}.mini-company-header{display:flex;align-items:flex-start;gap:8px;padding-bottom:9px;border-bottom:1px solid #000;color:#000}.mini-company-header img{width:40px;height:40px;object-fit:contain;object-position:center top;filter:grayscale(1);flex-shrink:0}.mini-company-header>div{min-width:0}.mini-company-header strong{font-size:10px;line-height:1.4;display:block}.mini-company-header small{font-size:7px}.mini-company-header span{display:block;font-size:7px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}.mini-document-info{display:flex;justify-content:space-between;align-items:stretch;gap:8px;color:#000;font-size:7px}.mini-document-title{display:block;margin:6px 0 4px;font-size:12px;text-align:center;color:#000}.mini-recipient{position:relative;flex:1;min-width:0;padding:5px 6px;display:flex;flex-direction:column;gap:2px;font-size:7px;line-height:1.5}.mini-recipient-corner{position:absolute;width:7px;height:7px;border-color:#000;border-style:solid;border-width:0}.mini-recipient-corner.top-left{top:0;left:0;border-top-width:1px;border-left-width:1px}.mini-recipient-corner.top-right{top:0;right:0;border-top-width:1px;border-right-width:1px}.mini-recipient-corner.bottom-left{bottom:0;left:0;border-bottom-width:1px;border-left-width:1px}.mini-recipient-corner.bottom-right{bottom:0;right:0;border-bottom-width:1px;border-right-width:1px}.mini-table{display:grid;grid-template-columns:7% 18% 1fr auto;color:#000;font-size:7px;font-weight:700;margin-top:8px;padding:6px 0;border-top:1px solid #000;border-bottom:1px solid #000}.mini-group{display:block;font-size:7px;text-decoration:underline;padding:5px 0 2px 25%}.mini-item{display:grid;grid-template-columns:7% 18% 1fr;align-items:center;font-size:7px}.mini-paper i{display:block;height:15px;border-bottom:1px solid #ccc}.mini-paper.compact i{height:13px}.mini-closing-summary{display:flex;gap:12px;margin-top:14px;align-items:flex-start;font-size:7px;line-height:1.5}.mini-closing-summary>span{flex:1;min-width:0}.mini-total{width:42%;flex-shrink:0;color:#000;font-size:7px;padding-top:5px;text-align:right;font-weight:700;border-top:1px solid #000}.mini-signatures{display:flex;gap:20px;margin-top:30px;font-size:7px;line-height:1.5}.mini-signatures>div{flex:1;min-width:0;border-top:1px solid #000;padding-top:4px}.mini-signatures b{display:block;min-height:21px}.mini-signatures span{display:block;margin-top:5px}.account-security{margin-top:16px;max-width:1144px}.account-security form{display:flex;align-items:end;gap:16px}.account-security .field{margin:0;max-width:420px;flex:1}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}.pdf-paper{min-height:650px;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.pdf-paper iframe{width:100%;height:calc(100vh - 170px);min-height:650px;border:0;display:block}.detail-grid aside{display:flex;flex-direction:column;gap:14px}.detail-grid .badge{width:max-content}.detail-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}.project-reference{font-size:12px;font-weight:600;color:var(--blue);overflow-wrap:anywhere}.project-picker{position:relative}.project-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#172236;text-align:left}.project-picker-trigger[aria-expanded=true]{border-color:#7ca3ee;box-shadow:0 0 0 3px #3168de12}.project-picker-trigger>svg{flex-shrink:0;color:var(--muted)}.project-picker-text{flex:1;min-width:0}.project-picker-text strong{display:block;font-size:13px;font-weight:600}.project-picker-text small{display:block;margin-top:2px;color:var(--muted);font-size:12px;line-height:1.5}.project-picker-trigger small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.project-picker-menu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d6deeb;border-radius:10px;box-shadow:0 12px 32px #17223626}.project-picker-menu.above{top:auto;bottom:calc(100% + 6px)}.project-picker-search{position:relative;padding:10px;flex-shrink:0}.project-picker-search>svg{position:absolute;top:20px;left:20px;color:var(--muted);pointer-events:none}.project-picker-search input{padding-left:37px;padding-right:38px}.project-picker-clear{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:4px;background:transparent;color:var(--muted)}.project-picker-clear:hover{background:#edf3fd}.project-picker-options{display:flex;flex-direction:column;min-height:0}.project-picker-results{min-height:0;overflow-y:auto;overscroll-behavior:contain}.project-picker-option{display:flex;align-items:center;gap:10px;flex-shrink:0;width:100%;padding:8px 12px;border:0;border-bottom:1px solid #f0f3f7;border-radius:0;text-align:left;color:#172236;background:#fff}.project-picker-option .project-picker-text small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}.project-picker-option:hover,.project-picker-option.active{background:#edf3fd}.project-picker-option[aria-selected=true]>svg{color:var(--blue)}.project-picker-option>svg{flex-shrink:0}.project-picker-new{color:var(--blue);border-block:1px solid var(--line);background:#f8faff}.project-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:8px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.5}.project-picker-footer button{flex-shrink:0;font-size:12px}.project-address{white-space:pre-line;overflow-wrap:anywhere}.project-document-list{margin-top:12px}.project-document-list>a{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line)}.project-document-list>a[aria-current=page] strong{color:var(--blue)}.project-document-list strong,.project-document-list small{display:block;font-size:12px;margin-top:3px}.project-document-list small{margin-top:5px;font-size:11px;color:var(--muted)}.project-add-links{display:flex;flex-direction:column;gap:8px;margin-top:12px}.project-add-links .text-link{margin-top:0;font-size:12px}.detail-grid .text-link{margin-top:10px;font-size:12px}.history-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.history-row strong{font-weight:500}.history-row small{width:100%;color:var(--muted)}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login-form{display:flex;align-items:center;justify-content:center;width:100%;max-width:400px}.login-form .card{width:100%;padding:28px}.login-form h1{font-size:20px;margin-bottom:20px}.login-form .button{width:100%;margin-top:10px}.login-language{display:flex;margin:16px auto 0;color:var(--muted);font-size:12px}.loading-page,.setup-message{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:32px;text-align:center}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1300px){.page{padding:18px 20px 32px}.editor-grid{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.documents-table th,.documents-table td{padding-left:16px;padding-right:16px}.detail-grid{grid-template-columns:minmax(0,1fr) 250px}}@media(max-width:1100px){.editor-grid{grid-template-columns:minmax(0,1fr)}.editor-summary{position:static;display:grid;grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.detail-grid aside{display:grid;grid-template-columns:1fr 1fr}.customer-address{display:none}}@media(max-width:760px){.sidebar{width:72px;padding:20px 9px}.sidebar .brand{padding:0;justify-content:center}.sidebar .brand>span:last-child,.sidebar nav span,.owner-box{display:none}.sidebar nav{margin-top:24px}.sidebar nav a{justify-content:center;padding:0}.workspace{margin-left:72px}.page{padding:16px}.topbar{padding:0 16px}.topbar>span{font-size:9px}.topbar>div{gap:12px}.page-heading{gap:10px;margin-bottom:12px}h1{font-size:20px}.heading-actions{flex-wrap:wrap;width:100%}.list-toolbar{flex-wrap:wrap;padding:12px}.search{width:100%;max-width:none}.list-count{margin-left:auto}.editor-summary,.two-columns,.template-grid,.profile-card dl{grid-template-columns:1fr}.detail-grid aside{grid-template-columns:1fr}.customer-row{gap:13px;margin:0 16px}.customer-row>span:nth-child(2){min-width:0;flex:1}.customer-row>.text-link{font-size:0;gap:0}.related>a{flex-wrap:wrap;gap:12px}.login-form .card{padding:24px}.toast{left:50%;max-width:90vw;white-space:nowrap}.account-security form{align-items:stretch;flex-direction:column}.account-security .field{width:100%}.settings-tabs{gap:16px}.pdf-paper iframe{min-height:650px}}.items-heading{padding:12px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between}.items-heading h2{margin:0;display:flex;align-items:center;gap:8px}.items-heading .caption{margin:5px 0 0;max-width:400px;font-size:11px}.items-heading>.button{white-space:nowrap;min-height:36px;padding:7px 10px;font-size:12px}.item-count{display:inline-flex;justify-content:center;min-width:22px;border-radius:4px;background:#e7edf5;padding:2px 5px;color:#617189;font-size:10px;font-weight:500}.line-items-fields{border:0;margin:0;padding:0;min-width:0}.items-table .section-row td{padding:5px 6px 5px 2px;background:#f1f5fa;border-top:1px solid #dce5f0;border-bottom:1px solid #dce5f0}.section-heading{display:flex;gap:4px;align-items:center;min-width:0}.items-table .section-heading input{font-weight:600;background:transparent;border-color:transparent;min-width:110px;flex:1;width:auto;padding-left:8px}.items-table .section-heading input:hover{border-color:var(--line)}.items-table .section-heading input:focus{border-color:var(--blue);background:#fff}.section-actions{display:flex;gap:2px;align-items:center;flex-shrink:0;margin-left:8px}.section-actions>.text-button{padding:8px;white-space:nowrap;font-size:11px}.document-editor{gap:16px;grid-template-columns:minmax(0,1fr) 250px}.document-editor .editor-main,.document-editor .editor-summary{gap:14px}.document-editor .form-card{padding:16px}.document-editor .card-heading{margin-bottom:12px}.document-editor .field{gap:5px;margin-bottom:12px}.document-editor .field:last-child{margin-bottom:0}.customer-project-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.document-editor .customer-project-fields .field{margin-bottom:0}.customer-project-fields select{height:44px}.customer-project-fields .project-picker-trigger{min-height:44px;padding:6px 10px}.customer-project-fields .project-picker-text small{margin-top:1px;font-size:10px}.customer-project-fields .project-picker-menu{min-width:310px;left:auto;right:0}.document-editor .form-card>.caption{margin:10px 0 0;font-size:11px}.document-editor .summary-line{margin:12px 0;padding-top:12px}.document-editor .summary-total{margin-top:12px;padding:12px 0}.document-editor .summary-total strong{font-size:20px}.document-editor .summary .caption{margin-top:14px}@media(max-width:1100px){.document-editor{grid-template-columns:1fr}}@media(max-width:760px){.customer-project-fields{grid-template-columns:1fr}.customer-project-fields .project-picker-menu{min-width:0;left:0}.items-heading{padding:14px;gap:10px}.items-heading .caption{max-width:200px}.items-footer .caption{display:none}}.catalog-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.catalog-form-grid+.catalog-form-grid{margin-top:12px}.catalog-table{table-layout:fixed;min-width:840px}.catalog-table th,.catalog-table td{padding:10px 16px;border-bottom:1px solid var(--line);font-size:13px}.catalog-table th{font-size:11px}.catalog-table th:first-child{width:140px}.catalog-table th:nth-child(3){width:70px}.catalog-table th:nth-child(4),.catalog-table th:nth-child(5){width:140px}.catalog-table th:nth-child(6){width:98px}.catalog-table th:last-child{width:90px}.catalog-code{font-weight:600;overflow-wrap:anywhere}.catalog-description span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}.catalog-actions{display:flex;gap:8px;justify-content:flex-end}.catalog-search{width:100%;margin:4px 0 12px;max-width:none}.catalog-results{max-height:430px;overflow-y:auto}.catalog-option{display:grid;grid-template-columns:110px minmax(0,1fr) 116px;gap:12px;width:100%;padding:10px 12px;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;color:#172236;cursor:pointer;font:inherit;font-size:13px;align-items:start}.catalog-option:hover,.catalog-option:focus-visible{background:#f2f6ff}.catalog-option strong{overflow-wrap:anywhere}.catalog-option-description{white-space:pre-line;overflow-wrap:anywhere}.catalog-option-price{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.catalog-option small,.catalog-history small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.catalog-loading{padding:30px 0;color:var(--muted)}.catalog-history{max-height:60vh;overflow-y:auto}.catalog-history article{border-top:1px solid var(--line);padding:12px 0}.catalog-history-title{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:8px}.catalog-history-title strong{color:#172236}.catalog-history-data{display:flex;gap:24px;justify-content:space-between;font-size:13px}.catalog-history-data>div:first-child{min-width:0;overflow-wrap:anywhere}.catalog-history-data p{white-space:pre-wrap;margin:6px 0 0}.catalog-history-data .numeric{flex-shrink:0}.items-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.items-heading{flex-wrap:wrap}.item-suggestions{position:fixed;z-index:60;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d7dfeb;border-radius:8px;background:#fff;box-shadow:0 8px 24px #17223624;color:var(--ink);font-size:12px}.item-suggestions-heading,.item-suggestions-footer{flex:none;padding:8px 12px;color:var(--muted);font-size:11px;background:#f8fafc}.item-suggestions-heading{display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.item-suggestions-list{position:relative;overflow-y:auto;overscroll-behavior:contain;min-height:0}.item-suggestion{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #edf0f5;background:#fff;text-align:left;cursor:pointer}.item-suggestion:last-child{border-bottom:0}.item-suggestion.active{background:#edf3ff;box-shadow:inset 3px 0 var(--blue)}.item-suggestion-copy{display:grid;gap:3px;min-width:0}.item-suggestion-copy strong{font-size:11px;color:var(--muted);font-weight:500}.item-suggestion-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.5}.item-suggestion-price{flex-shrink:0;text-align:right;font-variant-numeric:tabular-nums}.item-suggestion-price small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.item-suggestions-empty,.item-suggestions-more{margin:0;padding:12px;color:var(--muted);line-height:1.6}.item-suggestions-more{flex:none;padding:6px 12px;font-size:11px}.item-suggestions-footer{border-top:1px solid var(--line)}@media(max-width:600px){.catalog-option{grid-template-columns:80px minmax(0,1fr);gap:8px}.catalog-option-price{grid-column:2;text-align:left}.catalog-form-grid{grid-template-columns:1fr;gap:0}}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;min-height:44px;margin:-6px 0 14px;padding:6px 0;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:25;background:#f5f7fa}.editor-toolbar-title{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap}.editor-toolbar h1{margin:0;font-size:20px;line-height:1.4;letter-spacing:-.4px}.editor-toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.editor-toolbar .button{height:36px;padding:0 13px;font-size:12px;white-space:nowrap}.draft-save-state{display:inline-flex;align-items:center;gap:5px;padding-left:14px;border-left:1px solid #d7dfeb;white-space:nowrap;color:var(--muted);font-size:11px}.draft-save-state.saving{color:var(--blue)}.draft-save-state.failed{color:#b42318}.draft-actions{position:relative}.editor-toolbar .editor-more{width:36px;padding:0;background:transparent;border-color:transparent;color:var(--muted)}.editor-toolbar .editor-more:hover:not(:disabled),.editor-toolbar .editor-more[aria-expanded=true]{background:#e9eef5;color:#172236}.draft-actions-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:170px;padding:5px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 24px #1722361a}.draft-actions-menu button{display:flex;align-items:center;gap:8px;width:100%;border:0;border-radius:4px;background:#fff;color:#b42318;padding:10px;text-align:left;white-space:nowrap;font-size:12px}.draft-actions-menu button:hover,.draft-actions-menu button:focus-visible{background:#fff1f0}@media(max-width:760px){.editor-toolbar,.editor-toolbar-title{gap:10px}.editor-toolbar h1{font-size:18px}.draft-save-state{padding-left:10px}}.items-table input[readonly]{background:#f8fafc;color:#69788e}.heading-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}.page-heading>div:first-child{min-width:0}.page-heading h1{overflow-wrap:anywhere}.document-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}.customer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.customer-form-grid .field,.catalog-form-grid .field{margin-bottom:0}.customer-form-grid .field:first-child,.customer-form-grid .field:last-child{grid-column:1 / -1}.login-form .brand{color:var(--nav);padding:0;margin-bottom:24px}.login-form .brand-mark{color:#fff}@media(max-width:480px){.customer-form-grid,.catalog-form-grid{grid-template-columns:1fr;gap:12px}}.voucher-editor{display:grid;gap:14px}.voucher-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}.voucher-fields .field{margin:0}.voucher-project-trigger{min-height:36px;height:36px;font-size:13px}.voucher-project-options{max-height:260px;overflow-y:auto}.voucher-project-empty{display:block;padding:12px;color:var(--muted);font-size:12px}.voucher-items{table-layout:fixed;min-width:880px}.voucher-items .pv-no{width:40px}.voucher-items .pv-reference{width:156px}.voucher-items .pv-date{width:144px}.voucher-items .pv-amount{width:126px}.voucher-items .pv-attachments{width:80px}.voucher-items .pv-action{width:36px}.voucher-items th,.voucher-items td{padding:7px 5px;vertical-align:top}.voucher-items th{font-size:11px;padding-block:10px}.voucher-items td{border-top:1px solid var(--line);font-size:12px}.voucher-items td:first-child{padding:16px 8px 7px 16px;color:var(--muted)}.voucher-items input{font-size:12px;padding-inline:7px}.voucher-items input[type=date]{padding-inline:5px}.voucher-items textarea{font-size:12px;line-height:20px;padding:7px 8px;height:36px;min-height:36px;resize:none}.voucher-items .icon-button{min-height:36px}.receipt-upload{display:flex;align-items:center;justify-content:center;gap:3px;height:36px;color:var(--blue);cursor:pointer;border-radius:5px;font-size:12px}.receipt-upload:hover{background:#edf3fd}.receipt-upload:focus-within{outline:2px solid #9ab9fa}.receipt-upload.disabled{opacity:.5;cursor:default}.receipt-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.receipt-chip{display:inline-flex;align-items:center;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:5px;background:#f8fafc;font-size:11px}.receipt-chip>button,.receipt-chip>span{display:flex;align-items:center;gap:5px;min-width:0;border:0;background:transparent;color:var(--blue);padding:5px 7px;font-size:11px}.receipt-chip>button:first-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.receipt-chip svg{flex-shrink:0}.receipt-chip small{white-space:nowrap;color:var(--muted);font-size:10px}.receipt-chip.incomplete{background:#fff9eb;border-color:#eedeb6}.voucher-items .voucher-receipt-row td{border-top:0;padding-top:0;padding-bottom:9px}.voucher-total{display:flex;align-items:baseline;gap:20px;font-size:13px}.voucher-total strong{font-size:16px;font-variant-numeric:tabular-nums}.receipt-preview{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}.voucher-detail-fields{margin:14px 0;font-size:13px}.voucher-detail-fields dt{color:var(--muted);font-size:11px;margin-top:10px}.voucher-detail-fields dd{margin:4px 0 0;overflow-wrap:anywhere}.voucher-receipt-group{margin-top:12px}.voucher-receipt-group>strong{display:block;font-size:12px;font-weight:500;line-height:1.5;margin-bottom:6px;overflow-wrap:anywhere}.voucher-receipt-group .receipt-chip{width:100%}.voucher-receipt-group .receipt-chip>button{width:100%}.voucher-toolbar .editor-toolbar-actions{flex-wrap:wrap}@media(max-width:900px){.voucher-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.voucher-fields{grid-template-columns:minmax(0,1fr)}.voucher-toolbar .editor-toolbar-actions{margin-left:0}}.voucher-attachments-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.voucher-attachments-heading h2{margin-bottom:0}.voucher-attachments .receipt-list:not(:empty){margin-top:12px}.voucher-attachments>.caption{display:block;margin-top:8px}.badge.paid{background:#e6f4ed;color:#227454}.badge.pending-payment{background:#fff4db;color:#805b11}.payment-panel-heading,.payment-proof-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.payment-panel-heading{margin-bottom:12px}.payment-panel-heading h2{margin:0}.payment-proof-heading{font-size:12px;margin-top:8px}.payment-proof-heading .receipt-upload{height:30px}.payment-proof-entry{display:flex;align-items:center;gap:6px;min-width:0}.payment-correction{margin-top:12px;font-size:12px}.payment-history{border-top:1px solid var(--line);padding-top:10px;margin-top:12px;font-size:12px}.payment-history summary{cursor:pointer;color:var(--muted)}.payment-history-entry{display:flex;flex-direction:column;gap:5px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);overflow-wrap:anywhere}.voucher-payment-panel .voucher-detail-fields{margin-top:0}.account-action .button+.button{margin-left:6px}.mobile-menu-trigger,.mobile-navigation{display:none}@media(max-width:760px){.desktop-navigation{display:none}.workspace{margin-left:0}.mobile-menu-trigger{display:grid;place-items:center;position:absolute;top:5px;left:8px;width:44px;height:44px;z-index:11}.mobile-navigation[open]{display:block;position:fixed;inset:0 auto 0 0;margin:0;padding:0;border:0;width:min(288px,85vw);height:100dvh;max-width:none;max-height:none;background:var(--nav);color:#b6c2d3}.mobile-navigation::backdrop{background:#17223688}.mobile-navigation .sidebar{position:relative;width:100%;min-height:100%;padding:24px 14px max(24px,env(safe-area-inset-bottom))}.mobile-navigation .brand{justify-content:flex-start;padding:0 8px}.mobile-navigation .brand>span:last-child,.mobile-navigation nav span{display:block}.mobile-navigation .owner-box{display:flex;margin-top:32px}.mobile-navigation nav{margin-top:30px}.mobile-navigation nav a{justify-content:flex-start;padding:0 12px;height:46px}.mobile-menu-close{position:absolute;top:20px;right:12px;width:40px;height:40px;color:#fff}.topbar{height:54px;padding:0 12px 0 58px;gap:12px}.topbar .workspace-company{min-width:0;flex:1;font-size:11px;letter-spacing:0}.topbar>div{flex-shrink:0;gap:0}.topbar>div>svg{display:none}.language-button{min-height:44px;padding:0;gap:5px;white-space:nowrap}.page{padding:14px 12px 28px}.page-heading>div,.editor-grid>*,.detail-grid>*{min-width:0}.page-heading h1{overflow-wrap:anywhere}.heading-actions{gap:6px}.button{min-height:40px;padding-inline:12px}input,select,textarea{font-size:16px}input,select,.search{height:40px}.search>svg{flex-shrink:0}.list-toolbar{gap:10px}.list-toolbar>select{flex:1;min-width:120px}.form-card{padding:14px}.card-heading,.items-heading,.items-heading-actions{flex-wrap:wrap}.editor-toolbar{flex-wrap:wrap;position:relative;top:auto}.editor-toolbar-actions{width:100%;flex-wrap:wrap;justify-content:flex-end}.customer-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px 12px;margin-inline:12px}.customer-row>span:nth-child(2){width:auto;overflow-wrap:anywhere}.customer-address{grid-column:2 / 4;overflow-wrap:anywhere}.customer-row>.text-link{grid-column:3;grid-row:1}.profile-card dd{overflow-wrap:anywhere}.accounts-toolbar{flex-wrap:wrap}.accounts-toolbar .search{flex-basis:100%;max-width:none}.toast{white-space:normal;width:max-content}.modal{padding:16px;max-height:90dvh}.modal-actions{flex-wrap:wrap}.pdf-paper,.pdf-paper iframe{min-height:420px}.mobile-records,.mobile-records tbody{display:block;min-width:0;width:100%}.mobile-records thead{display:none}.mobile-records tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:14px 12px;border-top:1px solid var(--line);position:relative}.mobile-records td,.mobile-records td:nth-child(2),.mobile-records td:last-child{display:block;width:auto;min-width:0;height:auto;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere}.mobile-records td:before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;font-weight:400;margin-bottom:3px}.mobile-records td:first-child{grid-column:1 / -1;padding-right:76px}.mobile-records td:first-child:before,.mobile-records td:nth-child(2):before{display:none}.mobile-records td:nth-child(2){grid-column:1 / -1}.mobile-records td small{white-space:normal;max-width:none;overflow-wrap:anywhere}.mobile-records td:last-child{position:absolute;top:10px;right:10px}.mobile-records td:last-child:before{display:none}.mobile-records td:last-child a,.mobile-records td:last-child .icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:40px}.mobile-records .catalog-description span{display:block}.items-table,.items-table tbody{display:block;min-width:0;width:100%}.items-table thead,.items-table colgroup{display:none}.items-table tr:not(.section-row):not(.ungrouped-drop){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border-bottom:1px solid var(--line)}.items-table tr:not(.section-row):not(.ungrouped-drop)>td{padding:0;border:0;min-width:0}.items-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.items-table tr:not(.section-row) td:nth-child(1){grid-column:1;grid-row:1}.items-table tr:not(.section-row) td:nth-child(2){grid-column:2;grid-row:1;align-self:center;text-align:left}.items-table tr:not(.section-row) td:nth-child(9){grid-column:4;grid-row:1;justify-self:end}.items-table tr:not(.section-row) td:nth-child(3),.items-table tr:not(.section-row) td:nth-child(4){grid-column:1 / -1}.items-table tr:not(.section-row) td:nth-child(7),.items-table tr:not(.section-row) td:nth-child(8){grid-column:span 2}.items-table tr:not(.section-row) td:nth-child(5),.items-table tr:not(.section-row) td:nth-child(6){grid-column:span 2}.items-table tr:not(.section-row) td.numeric{align-self:end;min-height:60px;text-align:right;padding-top:0;font-size:14px}.items-table input,.items-table select,.items-table .item-description{font-size:16px;min-height:40px}.items-table .section-row,.items-table .section-row td{display:block;width:100%}.section-heading{flex-wrap:wrap;padding:4px}.items-table .section-heading input{min-width:0}.section-actions{width:100%;justify-content:flex-end;margin-left:0}.items-footer{flex-wrap:wrap}}@media(max-width:760px){.voucher-editor{grid-template-columns:minmax(0,1fr)}.voucher-editor>*{min-width:0}.voucher-toolbar .editor-toolbar-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px}.voucher-toolbar .editor-toolbar-actions>.primary{grid-column:1 / 3;grid-row:2}.voucher-toolbar .editor-toolbar-actions>.draft-actions{grid-column:3;grid-row:2}.voucher-attachments-heading,.payment-panel-heading,.payment-proof-heading{flex-wrap:wrap}.voucher-items,.voucher-items tbody{display:block;min-width:0;width:100%}.voucher-items colgroup,.voucher-items thead{display:none}.voucher-items tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-top:1px solid var(--line)}.voucher-items td,.voucher-items td:first-child{display:block;min-width:0;padding:0;border:0;text-align:left}.voucher-items td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.voucher-items td:first-child:before{display:inline;margin-right:6px}.voucher-items td:nth-child(2){grid-column:1 / -1}.voucher-items td:nth-child(7){grid-column:2;grid-row:1;justify-self:end}.voucher-items input,.voucher-items textarea{font-size:16px;min-height:40px}.voucher-items .receipt-upload{justify-content:flex-start}.voucher-items .voucher-receipt-row{display:block;padding-top:0;border-top:0}.voucher-items .voucher-receipt-row td:first-child{display:none}}.compact-list-toolbar{flex-wrap:wrap;gap:10px}.compact-list-toolbar>.search{flex:1 1 0;min-width:0;width:auto;max-width:360px}.filter-toggle{display:none;flex-shrink:0}.filter-toggle.active{color:var(--blue);border-color:#b8cdf7;background:#f1f6ff}.filter-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.list-filter-panel{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}.list-filter-panel>.field{width:140px;margin:0}.list-filter-panel>.field>span{display:none}.list-filter-panel>.text-button{min-height:36px}@media(max-width:760px){.compact-list-toolbar>.search{max-width:none}.compact-list-toolbar .filter-toggle{display:inline-flex;height:40px;padding-inline:12px}.list-filter-panel{display:none;width:100%;padding-top:10px;border-top:1px solid var(--line);align-items:end}.list-filter-panel[data-open=true]{display:flex}.list-filter-panel>.field>span{display:block}.list-filter-panel>.field{flex:1 1 120px;width:auto}}.topbar{min-height:64px;height:auto;padding-block:12px}.topbar>.page-header-slot{display:none}.topbar>.page-header-slot:not(:empty){display:flex;flex:1;min-width:0}.topbar .header-page-title{display:block;font-size:20px;font-weight:600;color:#172236;letter-spacing:0;line-height:36px}.page-header-slot:not(:empty)+.header-page-title{display:none}.topbar .header-page-heading{width:100%;min-width:0;margin:0;gap:8px;letter-spacing:0;color:#172236}.header-page-heading>div{min-width:0}.header-page-heading>.button{flex-shrink:0}.language-settings{margin-bottom:14px}.language-settings .field{max-width:280px}@media(max-width:760px){.topbar{min-height:58px;padding-block:8px}.topbar .header-page-title{font-size:17px;line-height:42px}.topbar .header-page-heading{flex-wrap:nowrap}.header-page-heading h1{font-size:17px;line-height:1.3;letter-spacing:-.3px}.header-page-heading>.button{padding-inline:10px;font-size:12px}.mobile-menu-trigger{top:7px}}.ocr-field-input{display:flex;align-items:flex-start;gap:2px;min-width:0}.ocr-field-input>input,.ocr-field-input>textarea{flex:1;min-width:0}.ocr-field-button{flex:0 0 28px;height:36px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:4px;cursor:pointer}.ocr-field-button:hover:not(:disabled){color:#2963dc;background:#edf3ff}.ocr-field-button:disabled{opacity:.35;cursor:default}.ocr-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px}.ocr-document,.ocr-result{min-width:0}.ocr-controls{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.ocr-controls select{min-width:0;width:100%}.ocr-page-controls,.ocr-modes{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ocr-page-controls select{width:auto;margin-left:auto}.ocr-page-controls .button,.ocr-modes .button{padding:6px 9px}.ocr-modes [aria-pressed=true]{background:#edf3ff;border-color:#8babec;color:#2456bc}.ocr-viewport{height:min(58vh,580px);overflow:auto;background:#e9edf2;border:1px solid var(--line);border-radius:6px;overscroll-behavior:contain}.ocr-image{position:relative;-webkit-user-select:none;user-select:none}.ocr-image.selecting{touch-action:none;cursor:crosshair}.ocr-image img{display:block;width:100%;max-width:none;pointer-events:none}.ocr-selection{position:absolute;border:2px solid #2963dc;background:#2963dc20;pointer-events:none}.ocr-image.selecting .ocr-selection{pointer-events:auto;cursor:move}.ocr-resize-handle{position:absolute;width:28px;height:28px;padding:0;border:0;background:transparent;transform:translate(-50%,-50%);touch-action:none}.ocr-resize-handle:after{content:"";position:absolute;inset:9px;background:#fff;border:2px solid #2963dc;border-radius:2px}.ocr-resize-handle:disabled{visibility:hidden}.ocr-resize-handle:focus-visible{outline:2px solid #2963dc;border-radius:4px}.handle-nw{left:0;top:0;cursor:nwse-resize}.handle-n{left:50%;top:0;cursor:ns-resize}.handle-ne{left:100%;top:0;cursor:nesw-resize}.handle-e{left:100%;top:50%;cursor:ew-resize}.handle-se{left:100%;top:100%;cursor:nwse-resize}.handle-s{left:50%;top:100%;cursor:ns-resize}.handle-sw{left:0;top:100%;cursor:nesw-resize}.handle-w{left:0;top:50%;cursor:ew-resize}.ocr-loading{padding:32px;display:flex;align-items:center;justify-content:center;gap:8px}.ocr-result{display:flex;flex-direction:column;gap:12px}.ocr-result .caption,.ocr-result .modal-actions,.ocr-result .field{margin:0}.ocr-value{display:flex;flex-direction:column;gap:4px;background:#f4f6f9;padding:10px;white-space:pre-wrap;overflow-wrap:anywhere}.ocr-warning{color:#8c540c;font-size:12px;margin:0}.ocr-undo{position:sticky;bottom:12px;margin:12px auto;width:fit-content;max-width:100%;display:flex;align-items:center;gap:12px;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 3px 16px #17223615;z-index:5}@media(max-width:760px){.modal.wide:has(.ocr-layout){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:12px}.modal:has(.ocr-layout) .modal-head h2{font-size:15px}.ocr-layout{grid-template-columns:minmax(0,1fr);gap:12px}.ocr-viewport{height:42dvh}.ocr-result{gap:8px}.ocr-field-button{flex-basis:36px;height:40px}.ocr-result .modal-actions{position:sticky;bottom:-12px;background:#fff;padding:10px 0}}@media(max-width:760px){.page,.page-header-slot,.header-page-heading,.form-card,.editor-summary,.detail-grid aside,.settings-card,.profile-card,.field,.heading-title,.document-meta{min-width:0}.page-heading{flex-wrap:wrap;align-items:flex-start}.page-heading>div{flex:1 1 180px}.topbar .header-page-heading{align-items:center}.header-page-heading>div{flex-basis:0}.page-heading h1,.heading-title h1{overflow-wrap:anywhere}.heading-title{flex-wrap:wrap;gap:8px}.page-heading>.button,.heading-actions>.button{min-height:40px}.document-meta{flex-wrap:wrap;overflow-wrap:anywhere}.button svg,.icon-button svg,.text-button svg{flex-shrink:0}.modal-head{align-items:flex-start;gap:8px}.modal-head h2{overflow-wrap:anywhere;line-height:1.4}.modal-head>.icon-button{flex-shrink:0;min-width:36px;min-height:36px}.modal-actions>.button{flex:1 1 100px;white-space:normal}.modal input,.modal select,.modal textarea,.form-card input,.form-card select,.form-card textarea{min-width:0;max-width:100%}input[type=date]{display:block;min-inline-size:0;width:100%}input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}.two-columns{grid-template-columns:minmax(0,1fr)}.editor-toolbar{gap:10px;padding-bottom:12px}.editor-toolbar-title{width:100%;gap:6px 10px}.editor-toolbar-title h1{font-size:17px;overflow-wrap:anywhere}.draft-save-state{margin-left:auto}.editor-toolbar-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) 40px;width:100%;margin-left:0;gap:8px}.editor-toolbar .button{height:auto;min-height:40px;padding:8px;white-space:normal;line-height:1.3}.editor-toolbar .editor-more{width:40px;height:40px}.voucher-toolbar .editor-toolbar-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.voucher-toolbar .editor-toolbar-actions>.primary{grid-column:1 / -1;grid-row:2;margin-right:48px}.voucher-toolbar .editor-toolbar-actions>.draft-actions{grid-column:2;grid-row:2;justify-self:end}.items-heading{padding:12px;align-items:center}.items-heading-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.items-heading-actions>.button{padding-inline:8px;white-space:normal}.items-table tr:not(.section-row) td.numeric{align-self:stretch;min-height:0;text-align:right;font-size:16px}.items-table .line-total-value{min-height:40px;display:flex;align-items:center;justify-content:flex-end;overflow-wrap:anywhere}.section-heading{gap:6px}.section-actions{padding-top:2px;gap:6px}.items-footer{gap:12px;padding:12px;align-items:center}.voucher-total{gap:12px;margin-left:auto}.voucher-total strong{font-size:14px;overflow-wrap:anywhere}.voucher-items td:nth-child(3),.voucher-items td:nth-child(4){grid-column:1 / -1}.voucher-items td:nth-child(5),.voucher-items td:nth-child(6){align-self:start}.voucher-items .ocr-field-input{align-items:center;gap:6px}.voucher-items input,.voucher-items textarea{width:100%;height:40px;padding:9px 8px;line-height:20px}.voucher-items .pv-description{white-space:nowrap;overflow:hidden}.voucher-items .pv-description:focus{white-space:pre-wrap;overflow-y:auto}.ocr-field-button{height:40px;border:1px solid var(--line);background:#f8fafc;flex-basis:36px}.voucher-items .receipt-upload{height:40px}.receipt-chip{max-width:100%}.receipt-chip>button:first-child{flex:1}.receipt-chip>button:first-child>span{max-width:none;min-width:0}.receipt-chip>button:last-child:not(:first-child){flex-shrink:0}.receipt-chip.incomplete>span{overflow-wrap:anywhere}.payment-proof-entry{flex-wrap:wrap;max-width:100%}.payment-proof-entry .receipt-chip{flex:1 1 180px}.voucher-attachments-heading{align-items:flex-start;gap:8px}.voucher-attachments-heading .receipt-upload{height:auto;min-height:36px;margin-left:auto}.voucher-attachments-heading h2{line-height:1.5}.settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;overflow:visible;padding-bottom:8px}.settings-tabs button{min-height:40px;white-space:normal;padding:8px;line-height:1.3;border-radius:5px;border:1px solid transparent;text-align:left}.settings-tabs button.active{background:#edf3ff;border-color:#b8cdf7}.accounts-toolbar{flex-wrap:nowrap;padding:12px;gap:8px}.accounts-toolbar .search{flex:1 1 0;min-width:0;width:auto}.accounts-toolbar>.button{flex-shrink:0}.account-records,.account-records tbody{display:block;width:100%;min-width:0}.account-records thead{display:none}.account-records tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 12px;border-top:1px solid var(--line)}.account-records td{display:block;min-width:0;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere}.account-records td:first-child,.account-records .account-action,.account-records .empty-cell{grid-column:1 / -1}.account-records td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.account-records td:first-child:before,.account-records td.account-action:before{display:none}.account-records .account-action{display:flex;flex-wrap:wrap;gap:8px}.account-action .button+.button{margin-left:0}.account-records .account-action .button{flex:1 1 100px;white-space:normal}.account-self{display:inline-block}.customer-row .customer-address{display:block;margin:0}.profile-card dl{gap:4px}.profile-card dd{margin-bottom:12px}.related>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}.related>a>.text-link{min-width:0;grid-column:1 / -1;overflow-wrap:anywhere}.related>a>strong{margin-left:0;text-align:right}.ocr-result .modal-actions{padding-bottom:max(10px,env(safe-area-inset-bottom))}}@media(max-width:760px){.related>a>strong{grid-column:2;grid-row:2}.related>a>.badge{grid-column:1;justify-self:start}.related>a>.text-link{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.voucher-attachments-heading{align-items:center}.heading-actions>.button{flex:1 1 140px;white-space:normal}}.phone-pdf{min-width:0}.phone-pdf-toolbar{display:flex;align-items:center;gap:6px;padding:8px;border-bottom:1px solid var(--line)}.phone-pdf-toolbar .button{min-width:32px;padding:4px 8px}.phone-pdf-toolbar span{font-size:12px;white-space:nowrap}.phone-pdf-toolbar select{margin-left:auto;width:auto;min-width:0;max-width:140px;font-size:14px}.phone-pdf-toolbar a{display:inline-flex;flex-shrink:0;justify-content:center;align-items:center;min-width:36px;min-height:40px}.phone-pdf-viewport{overflow:auto;max-height:65dvh;background:#e9edf2;overscroll-behavior:contain}.phone-pdf-viewport img{display:block;max-width:none;height:auto}.phone-pdf-loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:8px}@media(max-width:760px){.pdf-paper{min-height:0}.modal.wide:has(.phone-pdf){width:calc(100vw - 24px)}}.save-file-name{overflow-wrap:anywhere;font-weight:600;margin-bottom:12px}
