:root{
  --erp-color-text:#111820;
  --erp-color-navigation:#1a2738;
  --erp-color-page:#eef1f3;
  --erp-color-surface:#fff;
  --erp-color-border:#d5dce1;
  --erp-color-accent:#f2a029;
  --erp-color-action:#2f75ed;
  --erp-radius-control:2px;
  --erp-radius-panel:1px;
  --erp-shadow-panel:0 10px 28px rgba(21,34,49,.07);
}
.theme-core-handwerk{--navy:#1a2738;--cyan:#f2a029;--cyan-soft:#fff2dc;--blue:#2f75ed;--paper:#eef1f3;--line:#d5dce1;--shadow:var(--erp-shadow-panel)}
.theme-core-handwerk .header-brand .brand-symbol{transform:skew(-7deg)}.theme-core-handwerk .header-brand .brand-symbol i{background:#f2a029}.theme-core-handwerk .header-brand .brand-symbol i:nth-child(3){background:#fff}.theme-core-handwerk .header-nav-link.active::after,.theme-core-handwerk .header-nav-group.active>summary::after{background:#2f75ed}.theme-core-handwerk .app-topbar{background:#fff}.theme-core-handwerk .panel,.theme-core-handwerk .stat-card{border-radius:1px;box-shadow:0 8px 24px rgba(21,34,49,.045)}.theme-core-handwerk .button{border-radius:2px}.theme-core-handwerk .button.primary{background:#2f75ed;border-color:#2f75ed;color:#fff}.theme-core-handwerk .button.primary:hover{background:#1f63d7}.theme-core-handwerk .entity-cell>i{background:#1a2738;color:#f2a029}.theme-core-handwerk .section-kicker{color:#6f7e8d}.theme-core-handwerk .page-heading h2{text-transform:none}
.handwerk-orders-table .data-head,.handwerk-orders-table .data-row{grid-template-columns:minmax(240px,1.55fr) minmax(155px,1fr) minmax(130px,.9fr) 120px 115px 95px 20px}.handwerk-inventory-table .data-head,.handwerk-inventory-table .data-row{grid-template-columns:minmax(240px,1.55fr) minmax(140px,1fr) 125px 90px 90px 90px}.handwerk-billing-queue{border-top:3px solid #f2a029;margin-bottom:16px}.handwerk-order-summary{grid-template-columns:repeat(5,1fr)}.handwerk-order-summary span{font-size:8px;color:#83909a;line-height:1.4}.handwerk-status-strip{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:14px;padding:16px 19px;border-left:4px solid #2f75ed}.handwerk-status-strip form{display:flex;align-items:end;gap:8px}.handwerk-status-strip label{min-width:180px}.handwerk-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.handwerk-order-grid>.panel{padding:22px}.handwerk-entry-list{display:grid;margin-bottom:17px;max-height:390px;overflow:auto}.handwerk-entry-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #e7ecef}.handwerk-entry-list article>div{display:flex;flex-direction:column;gap:4px;min-width:0}.handwerk-entry-list strong{font-size:9px;line-height:1.45}.handwerk-entry-list small{font-size:7px;color:#80909b}.handwerk-entry-list article>span{font-size:7px;color:#657581;font-weight:800;text-transform:uppercase}.handwerk-entry-list form{margin:0}.badge.inventory-reserved{background:#fff0d8;color:#9a631a}.badge.inventory-consumed{background:#e5f5ed;color:#247858}.badge.inventory-planned{background:#e7effd;color:#2d64a2}.badge.inventory-free{background:#edf1f2;color:#68757c}.badge.billing-ready,.badge.billing-follow_up{background:#fff0d8;color:#9a631a}.badge.billing-draft_created{background:#e7effd;color:#2d64a2}.badge.billing-invoiced{background:#e5f5ed;color:#247858}.badge.billing-collecting{background:#edf1f2;color:#68757c}.handwerk-invoices{margin-top:14px;border-top:3px solid #2f75ed}.handwerk-billing-preview{display:grid;border:1px solid #dbe1e5}.handwerk-billing-preview article{display:grid;grid-template-columns:32px minmax(0,1fr) 100px;align-items:center;gap:13px;padding:12px;border-bottom:1px solid #e7ecef}.handwerk-billing-preview article:last-child{border:0}.handwerk-billing-preview article>span{display:flex;width:25px;height:25px;align-items:center;justify-content:center;background:#1a2738;color:#f2a029;font-size:8px;font-weight:800}.handwerk-billing-preview div{display:flex;flex-direction:column;gap:4px}.handwerk-billing-preview strong{font-size:10px}.handwerk-billing-preview small{font-size:8px;color:#7c8993}.handwerk-billing-preview b{text-align:right;font-size:10px}.inventory-movement-form{grid-template-columns:1.25fr 1.25fr 1fr .7fr .8fr 1fr}.inventory-movement-form .span-2{grid-column:span 2}.inventory-movement-form .button{align-self:end}.handwerk-movement-panel{margin:16px 0;border-top:3px solid #f2a029}.handwerk-movement-list{display:grid}.handwerk-movement-list article{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid #e7ecef}.handwerk-movement-list article:last-child{border:0}.movement-value{display:flex;align-items:center;justify-content:center;padding:8px;font-size:10px;font-weight:800;background:#e5f5ed;color:#247858}.movement-value.negative{background:#fdebec;color:#a63f45}.handwerk-movement-list div{display:flex;flex-direction:column;gap:4px}.handwerk-movement-list strong{font-size:9px}.handwerk-movement-list small{font-size:7px;color:#7d8b95;line-height:1.45}
@media(max-width:1180px){.handwerk-order-summary{grid-template-columns:repeat(3,1fr)}.handwerk-order-grid{grid-template-columns:1fr}.inventory-movement-form{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.handwerk-order-summary{grid-template-columns:repeat(2,1fr)}.handwerk-status-strip{align-items:stretch;flex-direction:column}.handwerk-status-strip form{align-items:stretch;flex-direction:column}.handwerk-status-strip label{min-width:0}.inventory-movement-form{grid-template-columns:repeat(2,1fr)}.inventory-movement-form .span-2{grid-column:span 2}}
@media(max-width:520px){.handwerk-order-summary,.inventory-movement-form{grid-template-columns:1fr}.inventory-movement-form .span-2{grid-column:span 1}.handwerk-entry-list article{grid-template-columns:1fr}.handwerk-billing-preview article{grid-template-columns:28px 1fr}.handwerk-billing-preview article>b{grid-column:2;text-align:left}}
.handwerk-demand-panel{margin:16px 0;border-top:3px solid #f2a029}.handwerk-demand-panel .panel-header p,.handwerk-parts-panel .panel-header p{font-size:8px;color:#788792;margin:5px 0 0}.handwerk-demand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.part-request{border:1px solid #dce3e7;background:#f8fafb;padding:15px}.part-request>header{display:flex;justify-content:space-between;gap:12px;margin-bottom:13px}.part-request h4{font-size:11px;margin:7px 0 4px}.part-request header p{font-size:7px;color:#7b8993;margin:0}.demand-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.demand-form .span-2{grid-column:span 2}.badge.part-open,.badge.part-ordered{background:#fff0d8;color:#966017}.badge.part-in_stock{background:#e7effd;color:#2b64a3}.badge.part-completed{background:#e5f5ed;color:#247858}.badge.part-cancelled,.badge.part-unavailable{background:#edf1f2;color:#68757c}.inventory-available{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media(max-width:1180px){.demand-form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.handwerk-demand-grid{grid-template-columns:1fr}}
@media(max-width:520px){.demand-form{grid-template-columns:1fr}.demand-form .span-2{grid-column:span 1}}
.quote-process-table .data-head,.quote-process-table .data-row{grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) 100px minmax(150px,1fr) 100px auto}.quote-archive-table .data-head,.quote-archive-table .data-row{grid-template-columns:minmax(180px,1.4fr) minmax(130px,1fr) 110px 90px 100px 100px 22px}.quote-process-table .data-row>span,.quote-archive-table .data-row>span{display:flex;flex-direction:column;gap:4px}.quote-summary{grid-template-columns:repeat(5,1fr)}.quote-header-panel,.quote-lines-panel,.quote-workflow{border-top:4px solid #efb41e}.quote-copy{display:grid;gap:12px;color:#6f7c86;font-size:13px;line-height:1.65}.quote-lines-table .data-head,.quote-lines-table .data-row{grid-template-columns:52px minmax(260px,1.7fr) 110px 120px 120px auto}.quote-line-excluded{opacity:.6;background:#f2f4f5}.quote-totals{display:flex;justify-content:flex-end;gap:25px;padding:18px 20px;border-top:2px solid #172335}.quote-totals span{display:flex;flex-direction:column;gap:4px;font-size:8px;color:#77858e;text-transform:uppercase}.quote-totals strong{font-size:15px;color:#172335}.quote-workflow-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}.integrity-valid{background:#e3f5ec;color:#227959}.quote-draft,.stage-measurement{background:#edf1f3;color:#53616a}.quote-review,.stage-quotation{background:#fff0d6;color:#996219}.quote-sent{background:#e8effb;color:#2d65a1}.quote-accepted{background:#e3f5ec;color:#227959}.quote-rejected,.quote-expired{background:#fde8e9;color:#a4383f}.quote-superseded{background:#ece9f7;color:#65538d}.dialog-danger-zone{border-top:1px solid #e4e8ea;margin-top:12px;padding-top:12px}.quote-print-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:12px}.quote-document{max-width:900px;margin:0 auto;background:#fff;padding:54px 62px;box-shadow:0 8px 30px rgba(22,35,53,.08);color:#172335}.quote-document>header{display:flex;justify-content:space-between;gap:35px;border-bottom:5px solid #efb41e;padding-bottom:25px}.quote-document h1{font-size:27px;margin:5px 0}.quote-document header p{font-size:10px;color:#6d7982;line-height:1.5}.quote-document-mark{font-size:8px;font-weight:900;letter-spacing:.16em;color:#b67b00}.quote-document-number{display:flex;flex-direction:column;text-align:right;gap:5px}.quote-document-number small,.quote-address small,.quote-document-meta small{font-size:7px;color:#7a8790;letter-spacing:.08em}.quote-document-number strong{font-size:18px}.quote-address{display:flex;flex-direction:column;gap:4px;margin:45px 0 24px;font-size:11px}.quote-document-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dfe5e8;margin:20px 0 32px}.quote-document-meta div{display:flex;flex-direction:column;gap:5px;background:#f6f8f9;padding:12px}.quote-document h2{font-size:21px;margin:0 0 15px}.quote-document-intro,.quote-document-closing{font-size:11px;line-height:1.65}.quote-document table{width:100%;border-collapse:collapse;margin:25px 0}.quote-document th{font-size:7px;text-align:left;text-transform:uppercase;padding:9px;border-bottom:2px solid #172335}.quote-document td{font-size:9px;vertical-align:top;padding:10px 9px;border-bottom:1px solid #e3e7e9}.quote-document td:nth-last-child(-n+2),.quote-document th:nth-last-child(-n+2){text-align:right}.quote-document td strong,.quote-document td small,.quote-document td em{display:block}.quote-document td small{font-size:7px;color:#7b8992;margin-bottom:3px}.quote-document td em{font-size:7px;color:#996219;margin-top:3px}.quote-document tr.optional-excluded{opacity:.55}.quote-document-totals{width:min(330px,100%);margin-left:auto}.quote-document-totals div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e1e6e8;font-size:10px}.quote-document-totals div:last-child{font-size:13px;border-top:2px solid #172335;border-bottom:0}.quote-document-closing{margin-top:35px}.quote-document footer{display:flex;flex-direction:column;gap:4px;margin-top:55px;padding-top:14px;border-top:1px solid #dce2e5;font-size:7px;color:#7a8790}.quote-document footer code{overflow-wrap:anywhere;font-size:6px}
@media(max-width:980px){.quote-process-table .data-head,.quote-archive-table .data-head,.quote-lines-table .data-head{display:none}.quote-process-table .data-row,.quote-archive-table .data-row,.quote-lines-table .data-row{grid-template-columns:1fr;gap:8px}.quote-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.quote-summary{grid-template-columns:repeat(2,1fr)}.quote-document{padding:28px 24px}.quote-document>header{flex-direction:column}.quote-document-number{text-align:left}.quote-document-meta{grid-template-columns:1fr}.quote-totals{flex-direction:column;gap:10px}}
@media print{.app-header,.app-footer,.flash-stack,.quote-print-actions{display:none!important}.app-main{padding:0!important}.quote-document{box-shadow:none;max-width:none;padding:0}.quote-document footer code{font-size:5pt}}
.badge.billing-partially_invoiced{background:#e9ecfb;color:#4f5ea3}
.theme-core-handwerk .handwerk-order-summary span,.theme-core-handwerk .handwerk-entry-list small,.theme-core-handwerk .handwerk-entry-list article>span,.theme-core-handwerk .handwerk-movement-list small,.theme-core-handwerk .handwerk-demand-panel .panel-header p,.theme-core-handwerk .handwerk-parts-panel .panel-header p{font-size:11px}.theme-core-handwerk .handwerk-entry-list strong,.theme-core-handwerk .handwerk-movement-list strong{font-size:13px}.theme-core-handwerk .quote-totals span{font-size:11px}.theme-core-handwerk .quote-document th{font-size:10px}.theme-core-handwerk .quote-document td{font-size:11px}.theme-core-handwerk .quote-document td small,.theme-core-handwerk .quote-document td em,.theme-core-handwerk .quote-document footer{font-size:10px}
