:root{--bg:#f7f7f3;--paper:#fff;--ink:#29352f;--muted:#758078;--line:#e7e9e2;--green:#466752;--deep:#365540;--pale:#eaf0e8;--orange:#946337;--shadow:0 12px 40px #263d3011;--radius:15px}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font:14px/1.5 Segoe UI,system-ui,-apple-system,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:2px solid #79947e}button{color:inherit}svg{vertical-align:middle;flex-shrink:0}a{color:var(--deep)}.app{grid-template-columns:244px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--line);background:#fbfcf8;flex-direction:column;height:100vh;padding:30px 19px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;margin-bottom:50px;padding:0 9px;display:flex}.brandmark{width:43px;height:43px;color:var(--deep);background:#dfe9dc;border-radius:13px;place-items:center;display:grid}.brandname{letter-spacing:-.7px;font-family:Georgia,serif;font-size:23px;font-weight:600;line-height:1.05}.brand small{letter-spacing:1.9px;color:#7e8b7e;text-transform:uppercase;font-size:10px}.navlabel{letter-spacing:1.5px;color:#889187;margin:0 12px 12px;font-size:10px;font-weight:700}.nav{gap:5px;display:grid}.nav button{text-align:left;color:#637168;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;padding:12px 13px;font-weight:550;display:flex}.nav button.active{color:#385740;background:#e5ede2;font-weight:700}.nav button:hover:not(.active){background:#f0f3ed}.nav .count{color:#829281;margin-left:auto;font-size:11px}.sidebottom{margin-top:auto}.democard{color:#6b796b;background:#f4f6f0;border:1px dashed #dce3d8;border-radius:12px;padding:14px;font-size:12px}.democard b{color:#48634e;margin-bottom:3px;display:block}.reset{color:#71816f;background:0 0;border:0;padding:8px 0 0;font-size:11px;text-decoration:underline}.profile{border-top:1px solid var(--line);align-items:center;gap:10px;margin-top:18px;padding:17px 4px 0;display:flex}.avatar{color:#826c57;background:#e6ded2;border-radius:50%;flex-shrink:0;place-items:center;width:35px;height:35px;font-size:12px;font-weight:700;display:grid}.profile b{font-size:13px}.profile small{color:var(--muted);font-size:11px;display:block}.main{min-width:0}.topbar{border-bottom:1px solid var(--line);background:#fafbf8;justify-content:space-between;align-items:center;gap:14px;height:74px;padding:0 36px;display:flex}.crumb{color:#8a948a;align-items:center;gap:9px;font-size:13px;display:flex}.crumb b{color:#435246;font-weight:600}.topright{color:#758078;align-items:center;gap:15px;font-size:12px;display:flex}.topright .demo{align-items:center;gap:7px;display:flex}.dot{background:#83a17d;border-radius:50%;width:7px;height:7px;display:inline-block}.iconbtn{border:1px solid var(--line);color:#69786c;background:#fff;border-radius:9px;place-items:center;width:34px;height:34px;display:inline-grid}.iconbtn:hover,.btn.secondary:hover{background:#f0f4ed}.content{max-width:1550px;margin:auto;padding:35px 36px 40px}.eyebrow{letter-spacing:2px;color:#7c8b7b;text-transform:uppercase;margin-bottom:9px;font-size:10px;font-weight:700}.pagehead{justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:27px;display:flex}.pagehead h1{letter-spacing:-1.8px;margin:0 0 9px;font-family:Georgia,Times New Roman,serif;font-size:43px;font-weight:500;line-height:1.05}.pagehead p{color:var(--muted);margin:0;font-size:14px}.btn{white-space:nowrap;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:10px 15px;font-size:13px;font-weight:650;display:inline-flex}.primary{background:var(--green);color:#fff;box-shadow:0 3px 6px #36554018}.primary:hover{background:var(--deep)}.secondary{border-color:var(--line);color:#516355;background:#fff}.danger{color:#a15349;background:#fff5f3;border-color:#f0ded9}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px;display:grid}.stat{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;justify-content:space-between;min-height:125px;padding:16px 18px;display:flex}.statline{color:#718074;justify-content:space-between;align-items:center;gap:6px;font-size:12px;font-weight:600;display:flex}.staticon{color:#638067;background:#eef3eb;border-radius:9px;place-items:center;width:32px;height:32px;display:grid}.staticon.peach{color:#ad8458;background:#f7eee2}.staticon.blue{color:#7b939e;background:#edf1f3}.staticon.pink{color:#ac8077;background:#f6eeeb}.stat strong{letter-spacing:-1px;font-family:Georgia,serif;font-size:31px;font-weight:500;line-height:1.1}.stat small{color:#8a9388;font-size:11px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;box-shadow:0 3px 12px #24372503}.panelhead{justify-content:space-between;align-items:center;gap:10px;padding:19px 20px 0;display:flex}.panelhead h2{margin:0;font-size:16px;font-weight:700}.panelhead p{color:#869086;margin:3px 0 0;font-size:12px}.toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.tabs{flex-wrap:wrap;gap:4px;display:flex}.tab{color:#758078;background:0 0;border:0;border-radius:7px;padding:8px 10px;font-size:12px;font-weight:600}.tab.active{color:#46664b;background:#eaf0e7}.tab:hover{background:#f1f3ee}.search{border:1px solid var(--line);color:#889488;background:#fff;border-radius:8px;align-items:center;gap:8px;padding:7px 10px;display:flex}.search input{width:145px;min-width:0;color:var(--ink);background:0 0;border:0;font-size:12px;outline:none!important}.search input::placeholder{color:#9ba39a}.tablewrap{overflow-x:auto}table{border-collapse:collapse;white-space:nowrap;text-align:left;width:100%}th{color:#849084;background:#fafbf8;padding:11px 15px;font-size:11px;font-weight:650}td{border-bottom:1px solid #eff0ec;padding:13px 15px;font-size:12px}th:first-child,td:first-child{padding-left:20px}th:last-child,td:last-child{padding-right:20px}tr:last-child td{border-bottom:0}tbody tr{cursor:pointer}tbody tr:hover{background:#fafbf8}.product{align-items:center;gap:12px;min-width:180px;display:flex}.thumb{object-fit:cover;background:#f2eee5;border:1px solid #eae8df;border-radius:9px;flex-shrink:0;width:52px;height:52px}.product b{color:#37463b;font-size:13px;font-weight:650;display:block}.sub{color:#8b958a;margin-top:3px;font-size:11px;display:block}.money{color:#435346;font-weight:650}.pill{white-space:nowrap;color:#788175;background:#f1f2ef;border-radius:6px;align-items:center;gap:6px;padding:4px 8px;font-size:11px;font-weight:600;display:inline-flex}.pill.green{color:#527452;background:#e9f1e7}.pill.amber{color:#a17a3e;background:#f8efdf}.pill.rose{color:#ad675e;background:#f7eae8}.pill.blue{color:#607f94;background:#eaf0f4}.pill .dot{background:currentColor;width:6px;height:6px}.stock{min-width:70px}.stockbar{background:#eef0eb;border-radius:8px;width:61px;height:4px;margin-top:7px;overflow:hidden}.stockbar i{background:#88a084;border-radius:8px;height:100%;display:block}.filebadge{color:#768476;align-items:center;gap:5px;font-size:11px;display:inline-flex}.more{color:#839181;background:0 0;border:0;border-radius:6px;padding:5px}.more:hover{background:#e9efe6}.tablefoot{color:#849084;border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding:13px 20px;font-size:11px;display:flex}.hint{color:#879286;align-items:center;gap:8px;margin:17px 2px;font-size:12px;display:flex}.customerlink{color:#52755a;text-align:left;background:0 0;border:0;padding:0;font-weight:650}.customerlink:hover{text-decoration:underline}.empty{text-align:center;color:#7e897e;padding:42px}.tags{flex-wrap:wrap;gap:4px;display:flex}.tag{color:#737e6d;background:#f0f1eb;border-radius:5px;padding:3px 6px;font-size:10px}.mobilemenu{display:none}.overlay{z-index:10;background:#23332859;justify-content:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.overlay[hidden]{display:none}.drawer{background:#fbfcf9;flex-direction:column;width:min(600px,100%);height:100%;animation:.2s ease-out slide;display:flex;box-shadow:-12px 0 55px #223a3025}.drawerhead{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;gap:10px;padding:20px 25px;display:flex}.drawerhead h2{margin:0;font-size:17px}.drawerbody{flex:1;padding:22px 25px;overflow:auto}.drawerfoot{border-top:1px solid var(--line);background:#fff;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:14px 25px;display:flex}.detailhero{align-items:center;gap:17px;margin-bottom:21px;display:flex}.detailhero .thumb{cursor:pointer;border-radius:12px;width:115px;height:115px}.detailhero h2{letter-spacing:-.6px;margin:7px 0;font-family:Georgia,serif;font-size:29px;font-weight:500;line-height:1.1}.detailhero p{color:var(--muted);margin:5px 0}.detailcard{border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:15px;padding:15px}.detailcard h3{margin:0 0 12px;font-size:14px}.detailgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.detailgrid small{color:#849084;margin-bottom:2px;font-size:11px;display:block}.detailgrid b{overflow-wrap:anywhere;white-space:normal;font-size:13px}.detailtitle{justify-content:space-between;align-items:center;gap:8px;margin:23px 0 10px;display:flex}.detailtitle h3{margin:0;font-size:15px}.sale{border-top:1px solid var(--line);padding:13px 0}.sale:first-of-type{border-top:0}.saletop{justify-content:space-between;align-items:center;gap:9px;margin-bottom:10px;display:flex}.saleinfo{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.saleinfo .sub{margin:0}.attachment{text-align:left;border:1px solid var(--line);background:#fafbf8;border-radius:9px;align-items:center;gap:10px;width:100%;margin-top:6px;padding:9px;display:flex}.attachment:hover{background:#eef3eb}.attachment .fileicon{color:#a86f64;background:#f3e7e3;border-radius:7px;flex-shrink:0;place-items:center;width:35px;height:35px;display:grid}.attachment .filetext{overflow-wrap:anywhere;flex:1;min-width:0}.attachment .filetext b{font-size:12px;display:block}.attachment .filetext small{color:#8a948a;font-size:11px}.pdfmini{border:1px solid var(--line);pointer-events:none;background:#eee;border-radius:8px;width:100%;height:145px;margin-top:8px}.modalwrap{z-index:20;background:#23332878;place-items:center;padding:16px;animation:.15s fade;display:grid;position:fixed;inset:0}.modalwrap[hidden]{display:none}.modal{width:min(590px,100%);max-height:92vh;box-shadow:var(--shadow);background:#fff;border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.modal.wide{width:min(900px,100%)}.modalhead{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;display:flex}.modalhead h2{margin:0;font-size:18px}.modalbody{padding:20px 22px;overflow:auto}.modalfoot{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;padding:14px 22px;display:flex}.formgrid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.field{flex-direction:column;gap:5px;min-width:0;display:flex}.field.full{grid-column:1/-1}.field label{color:#56695a;font-size:12px;font-weight:650}.field input,.field select,.field textarea{width:100%;min-width:0;color:var(--ink);background:#fcfdfb;border:1px solid #dfe5dc;border-radius:8px;padding:9px 10px}.field textarea{resize:vertical;min-height:75px}.field input[type=file]{padding:8px;font-size:11px}.field small{color:#869086;font-size:11px}.fileexisting{background:#f3f5ef;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:7px;font-size:11px;display:flex}.fileexisting button{color:#a15349;background:0 0;border:0;font-size:11px}.previewimage{object-fit:contain;max-width:100%;max-height:65vh;margin:auto;display:block}.previewpdf{background:#eee;border:0;width:100%;height:65vh}.notice{color:#758078;background:#f4f6f0;border-radius:8px;margin-bottom:15px;padding:10px;font-size:12px}.toast{z-index:40;color:#fff;box-shadow:var(--shadow);background:#365540;border-radius:10px;max-width:90vw;padding:12px 17px;display:none;position:fixed;bottom:22px;right:24px}.toast.show{display:block}.qtycontrol{align-items:center;gap:8px;display:flex}.qtycontrol button{border:1px solid var(--line);color:#52755a;background:#fff;border-radius:6px;width:26px;height:26px}.qtycontrol button:disabled{opacity:.35;cursor:not-allowed}.qtycontrol strong{text-align:center;min-width:27px}.summarybar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.linktext{overflow-wrap:anywhere;white-space:normal}.orderrow{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:10px 0;display:flex}.orderrow .product{min-width:0}.orderrow .thumb{width:40px;height:40px}.muted{color:var(--muted)}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes slide{0%{opacity:.6;transform:translate(35px)}to{opacity:1;transform:translate(0)}}@media (max-width:1100px){.app{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.content{padding:28px 23px}.topbar{padding:0 23px}.stats{gap:9px}.stat{padding:13px 12px}td,th{padding-left:10px;padding-right:10px}}@media (max-width:750px){.app{display:block}.sidebar{z-index:8;width:235px;box-shadow:var(--shadow);transition:all .2s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar.open{transform:none}.mobilemenu{display:inline-grid}.topbar{height:58px;padding:0 14px}.topright .demo{display:none}.content{padding:23px 13px}.pagehead{flex-wrap:wrap;align-items:flex-start;margin-bottom:19px}.pagehead h1{font-size:36px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.stat{min-height:107px}.toolbar,.panelhead{padding-left:12px;padding-right:12px}.search input{width:130px}.drawerbody,.drawerhead,.drawerfoot{padding-left:15px;padding-right:15px}.formgrid{gap:10px}.modalbody{padding:15px}.detailhero .thumb{width:90px;height:90px}.detailhero h2{font-size:25px}.topright{gap:6px}}@media (max-width:380px){.formgrid,.detailgrid{grid-template-columns:1fr}.topright{display:none}}
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}button:disabled,.btn:disabled{opacity:.5;cursor:not-allowed}a.btn{text-decoration:none}.heading-dot{color:#8da18b}.nav button span,.brandname{overflow-wrap:anywhere}.brandmark img{object-fit:contain;border-radius:inherit;width:100%;height:100%}.nav .settings-nav{border-top:1px solid var(--line);border-radius:0 0 9px 9px;margin-top:13px;padding-top:15px}.profile-actions{gap:7px;margin:12px 0 0 4px;display:flex}.auth-page{background:radial-gradient(ellipse at 30% 20%,#e7eee3,transparent 58%),var(--bg);place-items:center;min-height:100dvh;padding:24px;display:grid}.auth-card{border:1px solid var(--line);width:min(100%,470px);box-shadow:var(--shadow);background:#fff;border-radius:20px;padding:36px 39px}.auth-brand{margin-bottom:26px;padding:0}.auth-card h1{letter-spacing:-.7px;margin:0 0 8px;font:500 35px/1.08 Georgia,serif}.auth-card p{color:var(--muted);margin:0 0 21px}.auth-form{gap:15px;display:grid}.auth-form .btn{margin-top:5px}.field-label{color:#56695a;font-size:13px;font-weight:650}.field input[type=checkbox]{width:20px;height:20px;accent-color:var(--green)}.field input[type=color]{height:41px;padding:4px}.field select[multiple]{min-height:88px}.inline-customer{width:max-content;margin-top:3px}.inline-form{background:#f4f6f0;border-radius:8px;padding:10px}.native-modal,.native-drawer{color:var(--ink);border:0;padding:0}.native-modal:not([open]),.native-drawer:not([open]){display:none}.native-modal{max-width:calc(100vw - 24px);margin:auto;animation:.15s fade}.native-modal .modalbody{min-height:0}.native-drawer{max-width:100vw;height:100dvh;max-height:none;margin:0;position:fixed;inset:0 0 0 auto}.native-drawer::backdrop,.native-modal::backdrop{background:#23332859}.back-link{align-items:center;gap:6px;margin-bottom:12px;display:flex}.detailhero .thumb{cursor:inherit}.hero-avatar{width:75px;height:75px;font-size:26px}.thumb-button,.file-open,.sort{color:inherit;text-align:left;background:0 0;border:0;padding:0}.thumb-button{line-height:0}.thumb-placeholder{color:#8f9b8a;place-items:center;display:grid}.file-open{flex:1;align-items:center;gap:9px;min-width:0;display:flex}.file-open .thumb{width:36px;height:36px}.file-kind{max-width:220px;margin:12px 0 7px}.drop-zone{color:#627265;background:#f9fbf7;border:1px dashed #b6c4b1;border-radius:9px;flex-wrap:wrap;align-items:center;gap:9px;padding:12px;font-size:12px;display:flex}.drop-zone.dragging{border-color:var(--green);background:#e5eee0}.drop-zone progress{width:100%;accent-color:var(--green)}.preview-controls{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:3px;display:flex}.modalfoot{flex-wrap:wrap}.previewimage.full-preview{width:100%;max-height:76vh}.pdf-canvas{background:#e6e9e3;border-radius:8px;max-height:64vh;margin-top:12px;padding:8px;overflow:auto}.pdf-canvas canvas{box-shadow:var(--shadow);background:#fff;margin:auto;display:block}.note-text,.error-message{white-space:pre-wrap;overflow-wrap:anywhere}.note-text{margin-top:0}.error-message{color:#8a3d35;background:#fff2ef;border:1px solid #ebd3ce;border-radius:8px;padding:10px 12px}.panel>.error-message{margin:12px 20px}.skeleton{gap:12px;padding:16px;display:grid}.skeleton span{background:linear-gradient(90deg,#eef1eb,#f8faf7,#eef1eb) 0 0/190% 100%;border-radius:8px;height:35px;animation:1.7s linear infinite shimmer}@keyframes shimmer{to{background-position:-190% 0}}.filters{border-bottom:1px solid var(--line);background:#fafbf8;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));padding:14px 20px}.category-filter{border:1px solid var(--line);border-radius:8px;margin:0;padding:7px 10px}.category-filter .tag{align-items:center;gap:5px;font-size:12px;display:inline-flex}.category-color{border-radius:50%;width:13px;height:13px}.search:focus-within{outline-offset:2px;outline:2px solid #79947e}.sort{font:inherit;white-space:nowrap;align-items:center;gap:5px;display:inline-flex}.sort:hover{text-decoration:underline}.empty p{margin:6px 0 0}.due-overdue{color:#a15349;font-weight:700}.due-soon{color:#8b652e;font-weight:700}.settings-body{padding:18px 20px}.detailtitle.first{margin:0 0 12px}.settings-body .export-grid{flex-wrap:wrap;gap:9px;display:flex}.stock-progress{width:100%;height:8px;accent-color:var(--green);margin-bottom:16px;display:block}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mobile-backdrop{display:none}@media (max-width:750px){.sidebar{visibility:hidden;height:100dvh}.sidebar.open{visibility:visible}.mobile-backdrop{z-index:7;background:#23332859;border:0;display:block;position:fixed;inset:0}.auth-card{padding:26px}.orderrow{flex-wrap:wrap}.modalfoot{padding:12px 15px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.brand{gap:10px;padding-inline:7px}.brandname{font-size:21px}.brandmark{flex-shrink:0}.tablewrap{max-width:100%;position:relative}.drawerbody,.modalbody{overscroll-behavior:contain}.purchase-list{gap:12px;display:grid}.purchase-card{gap:9px;margin:0;display:grid}.purchase-card-header{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.purchase-card-header .customerlink{overflow-wrap:anywhere;font-size:.9375rem}.purchase-card-header>.pill{justify-self:end}.purchase-metadata{color:#5e7062;flex-wrap:wrap;align-items:baseline;gap:3px 12px;font-size:.78125rem;display:flex}.purchase-metadata strong{color:var(--ink);font-weight:650}.purchase-card-customers{background:#f4f7f1;border-radius:8px;padding:9px 12px 0}.purchase-card-customers h4{color:#526557;margin:0;font-size:.75rem;font-weight:650}.purchase-empty{margin:0}.purchase-assignments{border:1px solid var(--line);background:#f8faf6;border-radius:10px;grid-column:1/-1;min-inline-size:0;margin:0;padding:7px 14px 12px}.purchase-assignments legend{color:var(--ink);padding:0 6px;font-weight:650}.purchase-assignments>.purchase-customer-list{margin-top:7px}.purchase-customer-list{margin:0;padding:0;list-style:none}.purchase-customer-line,.purchase-assignment{align-items:center;gap:8px 12px;padding:8px 0;display:grid}.purchase-customer-line{grid-template-columns:minmax(0,1fr) auto}.purchase-customer-line+.purchase-customer-line,.purchase-assignment+.purchase-assignment{border-top:1px solid var(--line)}.purchase-customer-identity{overflow-wrap:anywhere;justify-items:start;gap:1px;min-width:0;display:grid}.purchase-customer-number{color:#5e7062;font-size:.75rem}.purchase-quantity,.purchase-quantity-empty{text-align:right;font-variant-numeric:tabular-nums;justify-self:end;font-size:.8125rem}.purchase-quantity{color:#3c5944;background:#e6eee2;border-radius:6px;padding:4px 8px;font-weight:650}.purchase-quantity-empty{color:#5e7062}.purchase-assignment{grid-template-columns:minmax(0,1fr) min(30%,8rem) 42px}.purchase-assignment>.iconbtn{align-self:end;width:42px;height:42px}.purchase-assignment input{min-height:42px}.purchase-assignment-order{grid-column:1/-1}.purchase-order-link{font-size:.8125rem}.material-link{color:#3d5945;text-align:left;white-space:normal;background:#f4f7f1;border:1px solid #dfe7db;border-radius:6px;flex-wrap:wrap;align-items:center;gap:4px 6px;max-width:100%;margin-top:6px;padding:4px 7px;font-size:.75rem;font-weight:650;display:flex}.material-link:hover{background:#e8efe5}.material-open{color:#805323}.material-delivered{color:#41614a}.linked-purchases{scroll-margin-block-start:12px}.linked-purchases h3{margin-bottom:4px}.linked-purchases .orderrow{align-items:flex-start}.linked-purchases .orderrow>div{overflow-wrap:anywhere;min-width:0}@media (max-width:520px){.native-modal:has(.purchase-form){max-height:calc(100dvh - 24px)}.purchase-form>.formgrid{grid-template-columns:minmax(0,1fr)}.purchase-form .field :is(input,select,textarea){font-size:16px}.purchase-form .field :is(input,select){min-height:44px}.purchase-assignments{padding-inline:11px}.purchase-assignment{grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"customer remove""quantity quantity";gap:6px 10px}.purchase-assignment>.purchase-customer-identity{grid-area:customer}.purchase-assignment>.purchase-assignment-quantity{grid-area:quantity}.purchase-assignment>.iconbtn{grid-area:remove;width:44px;height:44px}.purchase-card,.purchase-card-customers{padding-inline:11px}.purchase-customer-line{grid-template-columns:minmax(0,1fr) fit-content(7.5rem);column-gap:8px}.purchase-customer-line .customerlink{min-height:36px}.material-link{min-height:44px}}
.invoice-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;display:grid}.invoice-field{flex-direction:column;gap:5px;min-width:0;font-size:13px;display:flex}.invoice-field-wide{grid-column:1/-1}.invoice-field>span{color:#56695a;font-weight:650}.invoice-field small{color:var(--muted);line-height:1.35}.invoice-field input,.invoice-field select,.invoice-field textarea{width:100%;min-width:0;min-height:40px;color:var(--ink);background:#fcfdfb;border:1px solid #dfe5dc;border-radius:8px;padding:8px 10px}.invoice-field input[readonly]{background:#f0f3ee}.invoice-field textarea{resize:vertical}.invoice-checkbox{align-items:flex-start;gap:9px;display:flex}.invoice-checkbox input,.invoice-option input{width:17px;height:17px;accent-color:var(--green);flex:none;margin:3px 0 0}.invoice-footer,.invoice-doc-links{flex-wrap:wrap;gap:8px;display:flex}.invoice-footer{justify-content:flex-end;width:100%}.invoice-picker{gap:14px;display:grid}.invoice-picker h3,.invoice-draft-source h4{margin:0 0 4px}.invoice-picker p,.invoice-credit-form p{margin:0}.invoice-picker .search{max-width:470px}.invoice-picker .search input,.panel[aria-label=Rechnungsarchiv] .search input{width:min(32ch,100%)}.invoice-option{border-block-end:1px solid var(--line);overflow-wrap:anywhere;cursor:pointer;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 10px;display:grid}.invoice-option:hover{background:#f1f5ee}.invoice-option:has(input:checked){background:#f1f5ee}.invoice-option>strong{white-space:nowrap}.invoice-selected{border:1px solid var(--line);background:#f7faf4;border-radius:9px;padding:10px 12px}.invoice-selected>div{flex-wrap:wrap;gap:5px;margin-top:6px;display:flex}.invoice-selected button{min-height:32px;padding:4px 8px}.invoice-draft-source{border-top:1px solid var(--line);padding:13px 0}.invoice-draft-source:last-child{padding-bottom:0}.invoice-draft-source h4{color:var(--deep);margin-bottom:9px}.invoice-edit-line{overflow-wrap:anywhere;justify-content:space-between;align-items:end;gap:12px;padding:10px 0 0;display:flex}.invoice-edit-line .invoice-field{flex-shrink:0;width:130px}.invoice-edit-line .invoice-field span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.invoice-document{border:1px solid var(--line);overflow-wrap:anywhere;border-radius:12px;padding:clamp(12px,3vw,26px)}.invoice-paper-head,.invoice-addresses{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px 20px;display:grid}.invoice-paper-head{border-bottom:1px solid var(--line);padding-bottom:18px}.invoice-paper-head strong{font:500 26px/1.2 Georgia,serif}.invoice-document dl{margin:0}.invoice-document dl>div{justify-content:space-between;gap:8px;padding:3px 0;display:flex}.invoice-document dd{text-align:right;margin:0;font-weight:650}.invoice-document dt{color:var(--muted)}.invoice-addresses{padding:18px 0}.invoice-addresses h3{color:var(--deep);margin:0 0 5px;font-size:12px}.invoice-addresses address{font-style:normal}.invoice-table table{white-space:normal}.invoice-table th,.invoice-table td{padding:8px 10px}.invoice-table td:nth-child(2),.invoice-table td:nth-child(3),.invoice-table .num{white-space:nowrap}.invoice-table tbody tr,.invoice-archive-table tbody tr{cursor:auto}.invoice-table tbody tr:hover{background:0 0}.invoice-source-heading th{border-top:1px solid var(--line);color:var(--deep)}.invoice-table .num,.invoice-archive-table .num{text-align:right}.invoice-document .invoice-totals{max-width:370px;margin:12px 0 0 auto}.invoice-totals .invoice-total{border-top:1px solid var(--line);margin-top:4px;font-size:16px}.invoice-totals .invoice-total dt{color:var(--deep);font-weight:700}.invoice-notes{color:#56695a;margin-top:15px;font-size:12px}.invoice-notes p,.invoice-validation p{margin:4px 0}.invoice-confirm{background:#f4f6f0;border-radius:8px;margin-top:12px;padding:12px}.invoice-link-notice{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.invoice-credit-form textarea{margin-top:3px}.invoice-credit-form p{margin-bottom:12px}.invoice-doc-links{margin:12px 0}.invoice-validation{color:var(--muted);font-size:12px}.invoice-validation summary{cursor:pointer}.invoice-checksum{overflow-wrap:anywhere}.invoice-empty{color:var(--green);justify-items:center;gap:4px;padding:30px 12px;display:grid}.invoice-empty .empty{margin:0;padding:6px}@media (max-width:520px){.invoice-form-grid,.invoice-paper-head{grid-template-columns:1fr}.invoice-footer{justify-content:stretch}.invoice-footer>*{flex:1}.invoice-table th,.invoice-table td{padding-inline:5px}.invoice-table td:first-child{overflow-wrap:anywhere}.invoice-table th:nth-child(n+2){white-space:nowrap}}
