:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#242532;background:#f5f5f8;font-synthesis:none;--ink:#262535;--muted:#8b8a99;--border:#e9e7f0;--purple:#6a42b4;--accent:#7955c5;--pale:#f5f0fc;--pink:#efcdec}*{box-sizing:border-box}body{margin:0;min-width:340px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex:0 0 248px;background:#242235;color:#f7f5fc;display:flex;flex-direction:column;padding:30px 17px 22px;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:13px;padding:0 10px}.brand-symbol{display:flex;align-items:center;justify-content:center;gap:1px;width:39px;height:39px;border-radius:11px;background:linear-gradient(145deg,#916ee3,#5f3ca1);box-shadow:0 6px 20px #1a1233;font-size:13px;font-weight:800;letter-spacing:-1px}.brand b{display:block;font-size:15px;letter-spacing:.07em}.brand small{display:block;margin-top:3px;font-size:10px;color:#b5a9d0;letter-spacing:.17em}.nav-caption{font-size:10px;font-weight:700;letter-spacing:.14em;color:#8f88a3;margin:55px 13px 15px}.side-nav{display:grid;gap:6px}.nav-item{display:flex;gap:12px;align-items:center;text-align:left;background:transparent;border:0;border-radius:10px;padding:13px 13px;color:#c6c1d2;font-size:12px;font-weight:650;min-height:45px;width:100%}.nav-item:hover,.nav-item.active{background:#3e3558;color:white}.nav-item.active{box-shadow:inset 3px 0 #b59df9}.nav-icon{font-size:20px;color:#b8aad7;width:23px;text-align:center}.nav-indicator{margin-left:auto;background:#bba1ff;border-radius:5px;width:5px;height:5px}.nav-count{margin-left:auto;background:#4b455b;border-radius:7px;padding:3px 8px;font-size:11px}.sidebar-bottom{margin-top:auto;padding:14px 10px 0;border-top:1px solid #423e50;color:#9a95aa;font-size:11px;line-height:1.6}.sidebar-bottom p{margin:13px 0 30px}.sidebar-bottom code{color:#d4b8fd}.storage-indicator{display:flex;gap:8px;align-items:center;font-size:11px;color:#cbc5d8}.status-dot,.live-tag span{display:inline-block;background:#51c99c;width:8px;height:8px;border-radius:50%}.edition{font-size:10px;letter-spacing:.05em}.main-panel{min-width:0;flex:1}.topbar{height:68px;border-bottom:1px solid #ebe9f0;background:white;display:flex;justify-content:space-between;align-items:center;padding:0 39px}.breadcrumbs{color:#a2a0ad;font-size:12px}.breadcrumbs span{padding:0 12px;color:#c9c6d1}.breadcrumbs strong{color:#555267;font-weight:600}.top-right{display:flex;align-items:center;gap:20px;color:#8d899b;font-size:12px}.top-avatar{width:32px;height:32px;border-radius:50%;background:#eee7fa;color:#5c369c;display:grid;place-items:center;font-size:10px;font-weight:800}.page-content{max-width:1730px;margin:0 auto;padding:36px 40px 60px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:750;color:#7752ba;letter-spacing:.16em;display:flex;align-items:center;gap:10px}.eyebrow-line{width:18px;height:1px;background:#c6b4e6}.page-heading h1{font-size:30px;letter-spacing:-.045em;font-weight:740;line-height:1.1;margin:10px 0 10px}.page-heading p{font-size:13px;color:#8d8b99;margin:0}.heading-actions{display:flex;gap:9px;flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;border:1px solid transparent;padding:10px 16px;font-size:12px;font-weight:720;white-space:nowrap;transition:.16s;background:white;min-height:40px}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(130deg,#7955c5,#6541b1);color:white;box-shadow:0 4px 12px #6541b129}.btn-subtle,.btn-outline{background:white;color:#514b65;border:1px solid #e5e1ec}.btn-danger{background:#c94357;color:#fff}.btn-excel{background:#22805d;color:white}.btn-small{font-size:11px;min-height:35px;padding:9px 12px}.btn-icon{font-size:17px;line-height:0}.editor-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(480px,1.04fr);gap:21px;align-items:start}.form-column{display:grid;gap:20px}.panel{background:white;border:1px solid #eae7ef;border-radius:13px;box-shadow:0 2px 9px #27223904;overflow:hidden}.form-panel{padding:23px 24px 24px}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.panel-head>div{display:flex;align-items:center;gap:11px}.panel-head h2{margin:0;font-size:14px;letter-spacing:-.015em;font-weight:730}.section-number{background:#f0eafd;border-radius:7px;display:inline-grid;place-items:center;width:29px;height:29px;color:#7652b9;font-size:11px;font-weight:750}.panel-helper{font-size:10px;color:#a5a0ae}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.field>span{font-size:11px;font-weight:670;color:#514d61}.field em{color:#a84dd1;font-style:normal}.field input,.field textarea,.sort-wrap select{width:100%;border:1px solid #e2e0e9;background:#fcfbfd;border-radius:8px;outline:0;padding:11px 12px;min-height:42px;color:#383347;font-size:12px;transition:.15s}.field input:focus,.field textarea:focus,.entry-edit input:focus,.history-tools input:focus{border-color:#8f70d5;box-shadow:0 0 0 3px #9c7af221;background:#fff}.field input::placeholder,.field textarea::placeholder{color:#b7b3c0}.field textarea{resize:vertical;min-height:76px;line-height:1.55}.field-grid{display:grid;gap:12px}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.amount-area{border-top:1px solid #f0edf4;margin-top:7px;padding-top:17px}.amount-field{display:flex;align-items:center;overflow:hidden;border:1px solid #e2e0e9;border-radius:8px;background:#fcfbfd}.amount-field:focus-within{border-color:#8f70d5;box-shadow:0 0 0 3px #9c7af221}.amount-field .euro-symbol{display:flex;align-items:center;justify-content:center;width:43px;align-self:stretch;background:#f2ecfb;color:#7553b2;font-weight:780;font-size:17px}.amount-field input{border:0;box-shadow:none!important;background:transparent!important;font-weight:710;font-size:18px;padding:10px 14px}.amount-area .field{margin-bottom:5px}.amount-help,.fineprint{color:#a7a3b0;font-size:10px;line-height:1.6}.words-card{display:flex;flex-direction:column;gap:8px;background:#f8f4ff;border:1px solid #eae0fa;padding:15px 16px;border-radius:9px;margin-top:15px;min-height:80px}.words-card span{font-size:9px;color:#9e8bb9;letter-spacing:.09em;font-weight:800}.words-card strong{font-size:12px;line-height:1.55;color:#5d4386;overflow-wrap:anywhere}.entries-scroll{overflow:auto;border:1px solid #e8e5ed;border-radius:8px}.entry-edit{width:100%;min-width:660px;border-collapse:collapse}.entry-edit th{background:#f7f5fa;color:#7a728a;font-size:10px;font-weight:700;text-align:left;padding:12px 7px;border-bottom:1px solid #e8e5ed}.entry-edit td{padding:5px;border-bottom:1px solid #f0edf4}.entry-edit tr:last-child td{border-bottom:0}.entry-edit input{width:100%;min-width:45px;border:1px solid transparent;background:transparent;border-radius:5px;padding:8px 5px;font-size:11px;outline:0}.accounting-footer{margin-top:18px}.accounting-footer .field{margin-bottom:7px}.preview-panel .panel-head{padding:21px 23px;margin:0;border-bottom:1px solid #f1eff4}.live-tag{display:flex;align-items:center;gap:7px;color:#269370;background:#ebf9f4;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:750;letter-spacing:.06em}.live-tag span{width:6px;height:6px}.preview-stage{padding:29px 22px;background:repeating-linear-gradient(135deg,#f9f8fb,#f9f8fb 12px,#f6f5f9 12px,#f6f5f9 24px);overflow:auto}.document-paper{background:white;max-width:660px;min-width:420px;margin:auto;border:1px solid #d5d2db;box-shadow:0 9px 23px #1b162418;padding:18px 19px 27px;font-family:Arial,"Segoe UI",sans-serif;color:#0b0b0b}.document-meta-top{height:18px;border:1px solid #242424;border-bottom:0}.document-meta-top.second{height:18px;border-bottom:1px solid #242424}.voucher{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10px}.voucher td,.voucher th{border:1px solid #292929;vertical-align:middle;font-weight:normal;padding:3px 3px;overflow-wrap:anywhere}.voucher i{font-style:italic;font-weight:normal}.voucher .title-row{height:43px;text-align:center}.voucher .title-row .voucher-title{font-size:12px;font-weight:780;line-height:1.15}.title-value{font-size:11px;margin-top:5px}.voucher .person-row td{height:39px;vertical-align:top}.voucher .person-row i{display:block;text-decoration:underline;text-underline-offset:1px}.print-value{display:block;margin-top:5px;font-size:10px;font-weight:500}.voucher .spacer-row{height:24px}.voucher .purpose-row{min-height:37px}.purpose-row td{padding:6px 4px}.purpose-row i{display:inline-block;margin-right:23px}.purpose-value{font-style:italic;text-transform:uppercase;line-height:1.4}.voucher .amount-row{height:57px}.voucher .pink-cell{background:#edc9e9}.amount-row td:first-child{font-style:italic;white-space:normal}.amount-row strong{font-weight:normal;font-style:normal;margin-left:11px;white-space:nowrap}.voucher .words-value{font-size:9px;line-height:1.35;font-style:italic}.words-value i{display:block}.words-value span{overflow-wrap:anywhere}.voucher .signature-row{height:43px;text-align:center}.signature-row i{display:block;font-size:9px}.signature-row span{display:block;font-size:8px;min-height:12px;margin-top:4px;overflow-wrap:anywhere}.ledger-head,.ledger-subhead{text-align:center}.voucher .ledger-head{height:27px}.voucher .ledger-subhead{height:25px}.voucher .ledger-entry{height:23px;font-size:8px;text-align:center}.ledger-total{height:24px}.ledger-total .total-label{text-align:right;font-style:italic;font-weight:700;padding-right:9px}.ledger-total .pink-cell{text-align:right;font-weight:650}.article-side{text-align:center;vertical-align:top!important;position:relative;font-size:9px}.article-side i{display:block}.article-side b{display:block;font-size:9px;margin:7px 0;font-weight:500;min-height:9px}.article-side .accountant-side{margin-top:40px}.preview-toolbar{padding:17px 19px;display:flex;align-items:center;gap:10px;justify-content:space-between}.preview-hint{font-size:10px;color:#a7a2b0}.hint-icon{font-size:14px;vertical-align:middle;margin-right:3px}.preview-buttons{display:flex;gap:7px}.below-preview{font-size:11px;color:#9892a4;padding:18px 6px;line-height:1.6;display:flex;gap:10px}.below-preview span{font-size:17px;color:#8768c7}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:21px}.stat-card{padding:21px 23px;background:white;border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;gap:8px}.stat-card span{font-size:10px;letter-spacing:.1em;color:#9993a7;font-weight:750}.stat-card strong{font-size:26px;letter-spacing:-.035em}.stat-card small{font-size:11px;color:#9b98a5}.history-tools{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border)}.searchbox{width:min(490px,100%);border:1px solid #e5e1ea;border-radius:8px;display:flex;align-items:center;gap:8px;padding-left:13px;color:#a29aae}.searchbox span{font-size:22px}.searchbox input{width:100%;min-width:0;padding:11px 12px 11px 0;border:0;background:none;outline:0;font-size:12px}.sort-wrap{font-size:11px;color:#9a95a7;display:flex;align-items:center;gap:9px}.sort-wrap select{width:auto;min-height:40px;background:white}.history-table-wrap{overflow:auto}.history-table{width:100%;border-collapse:collapse;min-width:760px}.history-table th{text-align:left;padding:15px 18px;background:#faf9fc;font-size:10px;color:#8b8598;letter-spacing:.055em}.history-table td{padding:16px 18px;border-top:1px solid #f1eff5;font-size:12px;vertical-align:middle}.history-table .muted{color:#9893a2}.history-table .purpose-short{color:#7b7587;max-width:330px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-table .number-cell{text-align:right;white-space:nowrap;font-weight:700}.history-table .actions-cell{text-align:right;white-space:nowrap}.row-buttons{display:flex;align-items:center;justify-content:flex-end;gap:5px}.row-buttons button{border:1px solid #e9e5f0;background:#fff;color:#6d558d;font-weight:650;padding:7px 9px;border-radius:7px;font-size:10px}.row-buttons button:hover{background:#f2ecfc}.row-buttons .delete-action{color:#bc596a}.history-bottom{padding:16px 20px;color:#aaa4b3;font-size:11px;border-top:1px solid var(--border)}.empty-history{text-align:center;padding:60px 20px!important;color:#9d98a6;font-size:13px!important}.toast{position:fixed;bottom:24px;right:24px;background:#2f2a3c;color:white;border-radius:10px;box-shadow:0 12px 40px #1b102d40;padding:13px 19px;z-index:50;font-size:12px;max-width:420px}.toast.error{background:#a72c48}.confirm-dialog{border:0;border-radius:14px;padding:26px;max-width:410px;box-shadow:0 25px 70px #1e163840}.confirm-dialog::backdrop{background:#1813227a}.confirm-dialog h3{font-size:19px;margin:0 0 9px}.confirm-dialog p{font-size:13px;line-height:1.7;color:#77717f}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:23px}#orderForm .field:last-child{margin-bottom:0}@media(max-width:1360px){.sidebar{width:224px;flex-basis:224px}.page-content{padding:32px 25px}.editor-grid{grid-template-columns:minmax(400px,1fr) minmax(455px,1.03fr);gap:16px}.form-panel{padding:20px}.document-paper{padding:13px}.preview-stage{padding:20px 10px}}@media(max-width:1120px){.editor-grid{grid-template-columns:1fr}.preview-column{max-width:840px}.document-paper{min-width:420px}.sidebar{width:209px;flex-basis:209px}.page-heading h1{font-size:26px}}@media(max-width:740px){.app-shell{display:block}.sidebar{position:static;min-height:0;height:auto;width:100%;padding:12px 15px;display:block}.brand{display:inline-flex}.brand-symbol{width:30px;height:30px;font-size:10px}.brand b{font-size:12px}.brand small{font-size:9px}.sidebar .nav-caption,.sidebar-bottom{display:none}.side-nav{display:inline-flex;vertical-align:top;margin:2px 0 0 12px;gap:2px}.nav-item{min-height:34px;padding:7px 8px;font-size:0;width:auto}.nav-icon{font-size:20px}.nav-count,.nav-indicator{display:none}.topbar{height:47px;padding:0 16px}.breadcrumbs{font-size:10px}.breadcrumbs span{padding:0 3px}.top-clock{display:none}.page-content{padding:23px 13px}.page-heading{display:block}.page-heading h1{font-size:25px}.heading-actions{margin-top:19px;justify-content:flex-start}.editor-grid{display:block}.form-column{margin-bottom:16px}.panel-head{gap:6px}.panel-helper{font-size:9px}.form-panel{padding:18px}.preview-stage{padding:12px 6px}.document-paper{min-width:510px;max-width:510px;padding:10px}.preview-toolbar{flex-direction:column;align-items:stretch}.preview-buttons{justify-content:flex-end}.stats-row{gap:7px}.stat-card{padding:13px}.stat-card strong{font-size:18px}.stat-card span{font-size:8px}.stat-card small{font-size:9px}.history-tools{flex-direction:column;align-items:stretch}.searchbox{width:100%}}@media print{ .voucher .pink-cell,.document-paper{-webkit-print-color-adjust:exact;print-color-adjust:exact} @page{size:A4 portrait;margin:13mm}body{background:white!important}.sidebar,.topbar,.page-heading,.form-column,.preview-panel>.panel-head,.preview-toolbar,.below-preview,.toast,.history-panel,.stats-row{display:none!important}.page-content{margin:0!important;padding:0!important;max-width:none!important}.editor-grid{display:block!important}.preview-column{max-width:none!important}.preview-panel{border:0!important;box-shadow:none!important}.preview-stage{background:none!important;padding:0!important;overflow:visible!important}.document-paper{box-shadow:none!important;border:0!important;padding:0!important;max-width:100%!important;min-width:0!important;width:100%!important}.voucher{font-size:11px!important}.voucher .title-row{height:49px}.voucher .person-row{height:46px}.voucher .spacer-row{height:30px}.voucher .ledger-entry{height:27px}.voucher .amount-row{height:66px}.app-shell{display:block!important}.page-content,.main-panel{width:100%!important}.view.hidden{display:none!important} }
