/* Shared ERP VI: compact customer handover and production lists. */
#customerHandover{padding:0!important;border:0!important;background:transparent!important}
#customerHandover>.panel-header,#customerHandover>.customer-section-banner,#customerHandover>.plan01-customer-source-caption,#customerHandover>.handover-box,#customerHandover>.plan01-customer-aux{display:none!important}
#customersView[data-active-section="customerHandover"] #newCustomerBtn,#customersView[data-active-section="customerHandover"]>.section-bar p,#customersView[data-active-section="customerHandover"]>.section-bar span{display:none!important}
#customersView[data-active-section="customerHandover"]>.section-bar{margin-bottom:16px!important}
#customerHandover[data-handover-tab="pending"]>:not(.handover-pending){display:none!important}
.handover-pending{padding:0;margin:0;border:0;background:#fff;border-radius:8px}
.handover-tabs{display:flex;gap:24px;border-bottom:1px solid #dfe8ed;margin-bottom:18px}
.handover-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#63788b;border-radius:0;padding:12px 4px;font-size:15px;font-weight:600}
.handover-tabs button.active{color:#008577;border-bottom-color:#008577}
.handover-tabs b{display:inline-block;margin-left:6px;background:#e4f5f1;border-radius:12px;padding:1px 7px;font-size:12px}
.handover-filters{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.handover-filters input{width:300px!important;flex:0 1 300px}.handover-filters select{width:220px!important;flex:0 1 220px}
.handover-filters input,.handover-filters select,.handover-pending-pages select{height:38px!important;padding:7px 12px!important;border:1px solid #dce6ec;border-radius:6px;background:#fff;font-size:14px;color:#24374a;min-width:0}
.handover-tip{font-size:12px;color:#7a8da0;margin-left:auto}
.handover-pending table{width:100%;border-collapse:collapse;font-size:14px}.handover-pending th{background:#f1f6f8;color:#536b80;font-weight:600;text-align:left;padding:12px 16px}
.handover-pending td{padding:12px 16px;border-bottom:1px solid #edf2f5;vertical-align:middle}.handover-pending td strong{font-size:14px;font-weight:500;color:#23384b}.handover-pending td small{display:block;font-size:12px;color:#8092a3;margin-top:4px}
.handover-pending td:last-child,.handover-pending th:last-child{width:150px;text-align:right}.handover-status{display:inline-block;padding:3px 8px;background:#fff6e5;color:#a97418;border-radius:4px;font-size:12px}
.handover-pending .small-button{min-height:32px;padding:6px 12px;font-size:13px;border:1px solid #dae6ea;border-radius:6px;background:#fff;color:#008577}
.handover-pending-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 0;font-size:13px;color:#6b8193}.handover-pending-pages>[data-pending-range]{margin-right:auto}.handover-pending-pages label{display:flex;align-items:center;gap:6px}
#customerHandover input[type="checkbox"],#workOrdersView input[type="checkbox"]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;padding:0!important;margin:0!important;accent-color:#008577;transform:none!important}
#customerHandover .eb-rail,#workOrdersView .eb-rail{width:40px!important;min-width:40px!important;flex-basis:40px!important}#customerHandover .eb-hit,#workOrdersView .eb-hit{padding:0!important;min-width:0!important;display:flex;justify-content:center;align-items:center}
#customerHandover .eb-bar,#workOrdersView .eb-bar{padding:8px 12px!important;min-height:42px!important;font-size:13px}#customerHandover .eb-note,#workOrdersView .eb-note{display:none!important}
#customerHandover .plan01-customer-log-filters{margin:0 0 16px!important}
body[data-active-view="workOrders"] .module-subnav{display:none!important}
#workOrdersView .blacklake-breadcrumb,#workOrdersView .blacklake-status-strip,#workOrdersView #blacklakeWorkOrderPageSubtitle{display:none!important}
#workOrdersView .blacklake-page-title{margin:0 0 16px!important;padding-top:8px}#workOrdersView .blacklake-page-title h2{font-size:26px!important}
#workOrdersView .blacklake-tabbar{display:flex;gap:8px;flex-wrap:wrap;background:transparent!important;border:0!important;margin:0 0 18px!important;padding:0!important}
#workOrdersView .blacklake-tabbar button{padding:10px 16px!important;border:1px solid #e0e9ee!important;border-radius:6px!important;background:#fff!important;color:#536b80!important;font-size:14px!important}
#workOrdersView .blacklake-tabbar button.active{background:#008577!important;color:#fff!important;border-color:#008577!important}#workOrdersView .blacklake-tabbar button span{font-variant-numeric:tabular-nums;margin-left:5px}
#workOrdersView .blacklake-toolbar{margin:12px 0!important}#workOrdersView .blacklake-workorder-table td{padding-top:12px!important;padding-bottom:12px!important;font-size:14px!important}#workOrdersView .blacklake-workorder-table th{font-size:13px!important}
#workOrdersView .workorder-history-navigation{font-size:12px;padding:14px 0!important}
@media(max-width:800px){.handover-filters{flex-wrap:wrap}.handover-tip{width:100%;margin:0}.handover-filters input,.handover-filters select{flex:1 1 180px}.handover-pending table{min-width:620px}.handover-pending-pages{gap:8px;flex-wrap:wrap}.handover-tabs{gap:20px}}

#workOrdersView .plan01-operation-summary{display:none!important}
@layer plan01 {
 body.erp-plan01 #customerHandover .handover-pending table{min-width:0!important;width:100%!important;table-layout:fixed!important}
 body.erp-plan01 #customerHandover .handover-pending th,body.erp-plan01 #customerHandover .handover-pending td{width:auto!important;min-width:0!important;white-space:normal!important}
 body.erp-plan01 #customerHandover .handover-pending th:first-child{width:35%!important}
 body.erp-plan01 #customerHandover .handover-pending th:last-child{width:150px!important}
 body.erp-plan01 #customerHandover .handover-pending{padding:0!important;border:0!important;box-shadow:none!important}
 body.erp-plan01 #customerHandover input[type="checkbox"],body.erp-plan01 #workOrdersView input[type="checkbox"]{width:16px!important;height:16px!important;min-height:16px!important;min-width:16px!important;padding:0!important}
 body.erp-plan01 #workOrdersView .blacklake-tabbar button{min-width:0!important}
}
@layer plan01 {
 body.erp-plan01 #customerHandover .handover-pending .eb-layout>table{flex:1 1 0!important;width:calc(100% - 40px)!important}
 body.erp-plan01 #customerHandover .eb-rail-head,body.erp-plan01 #customerHandover .eb-rail-cell{width:40px!important;min-width:40px!important}
}

@layer plan01 {
 body.erp-plan01:has(#dispatchDialog[open]) .module-subnav,
 body.erp-plan01:has(#orderDialog[open]) .module-subnav {display:none!important}
 body.erp-plan01 #orderDialog .order-preset-personnel {grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr);gap:8px 16px;padding:10px 0 14px;border-bottom:1px solid #e1eceb;align-items:start}
 body.erp-plan01 #orderDialog .order-preset-personnel>label {display:grid!important;gap:5px;font-size:12px;color:#526c77}
 body.erp-plan01 #orderDialog .order-preset-personnel>small {grid-column:1/-1;color:#70858b;font-size:12px}
 body.erp-plan01 #orderDialog .order-preset-operators {margin-top:20px;border:1px solid #d6e4e5;border-radius:6px;background:#fff;padding:10px}
 body.erp-plan01 #orderDialog .order-preset-operators summary {cursor:pointer;font-size:13px;color:#25444d}
 body.erp-plan01 #orderDialog .order-preset-operators>div {display:flex;flex-wrap:wrap;gap:10px;padding-top:10px}
 body.erp-plan01 #orderDialog .order-preset-operators label {display:flex!important;align-items:center;gap:6px;font-size:13px}
 body.erp-plan01 #orderDialog .order-preset-operators input[type=checkbox] {width:16px!important;height:16px!important;min-height:16px!important;min-width:16px!important;margin:0!important}
}

@layer plan01 {
  body.erp-plan01:not([data-active-view="dashboard"]) .topbar-title,
  body.erp-plan01:not([data-active-view="dashboard"]) .topbar-module-icon,
  body.erp-plan01:not([data-active-view="dashboard"]) #wecomSuperSearch,
  body.erp-plan01[data-active-view="workOrders"] .module-subnav { display:none !important; }
  body.erp-plan01:not([data-active-view="dashboard"]) .topbar-actions { margin-left:auto !important; }
  #customerOwnerReviewDialog .customer-owner-review-card { width:min(760px,calc(100vw - 40px)) !important; }
  #customerOwnerReviewDialog .customer-owner-review-fields { grid-template-columns:1fr !important; gap:18px !important; }
  #customerOwnerReviewDialog .customer-owner-review-context { grid-template-columns:1fr 1fr !important; }
  #customerOwnerReviewDialog [hidden] { display:none !important; }
  #handoverCustomerPicker { display:grid; gap:8px; margin:0 24px 18px; }
  #handoverCustomerPicker select { width:100%; min-height:42px; }
}
@layer plan01 { #customerOwnerReviewDialog { width:min(760px,calc(100vw - 40px)) !important; max-width:calc(100vw - 40px) !important; overflow-x:hidden !important; } #customerOwnerReviewDialog .customer-owner-review-card { width:100% !important; min-width:0 !important; box-sizing:border-box !important; } #customerOwnerReviewDialog .dialog-header { display:flex !important; justify-content:space-between !important; align-items:flex-start !important; } }
/* Shared page rhythm and warehouse master presentation. */
@layer plan01 {
 body.erp-plan01:not([data-active-view="dashboard"]) .topbar { min-height:52px!important;height:52px!important;padding-top:6px!important;padding-bottom:6px!important; }
 body.erp-plan01 .view > :is(.section-bar,.blacklake-page-title,.ad261-heading) { margin-top:0!important;margin-bottom:18px!important;gap:16px!important; }
 body.erp-plan01 .view > :is(.section-bar,.blacklake-page-title,.ad261-heading) h2 { font-size:26px!important;line-height:1.3!important;font-weight:750!important;letter-spacing:-.4px; }
 body.erp-plan01 .module-subnav { min-height:48px!important;padding:8px 16px!important;margin-bottom:18px!important; }
 body.erp-plan01 .module-subnav button { min-height:36px!important;padding:8px 18px!important;font-size:15px!important; }
 body.erp-plan01 .view :is(.toolbar,.finance-filter-toolbar) { gap:10px!important; }
 body.erp-plan01 .view :is(.toolbar,.finance-filter-toolbar) :is(input,select) { min-height:40px!important; }
 body.erp-plan01 #workOrdersView .blacklake-page-title { border-left:4px solid #008577;padding-left:14px!important;align-items:center!important; }
 body.erp-plan01 #workOrdersView .blacklake-page-title h2 { font-size:30px!important;color:#173f46!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar { display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:10px!important;border:0!important;margin:0 0 18px!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button { display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;min-width:0!important;min-height:88px!important;height:auto!important;padding:14px 16px!important;margin:0!important;background:#f5f9fa!important;border:1px solid #e1ebed!important;border-radius:8px!important;color:#506777!important;font-size:13px!important;line-height:1.3!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button span { font-size:25px!important;font-weight:750!important;color:#213e4a!important;margin:0!important;padding:0!important;background:transparent!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button[data-blacklake-workorder-filter="overdue"] { background:#fff5f2!important;border-top:3px solid #d77558!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button[data-blacklake-workorder-filter="overdue"] span { color:#b44e36!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button[data-blacklake-workorder-filter="unassigned"] { background:#fff9ed!important;border-top:3px solid #d6a34c!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button[aria-pressed="true"],body.erp-plan01 #workOrdersView .blacklake-tabbar button.active { background:#e2f5ef!important;border-color:#008577!important;color:#006d61!important;box-shadow:inset 0 0 0 1px #008577!important; }
 body.erp-plan01 #workOrdersView .blacklake-tabbar button:hover { border-color:#008577!important; }
 body.erp-plan01 #workOrdersView .blacklake-filterbar { background:#f7fafb!important;border:1px solid #e4ebef!important;border-radius:8px!important;padding:12px!important;margin-bottom:16px!important; }
 body.erp-plan01 #workOrdersView table td { padding-top:14px!important;padding-bottom:14px!important; }
 body.erp-plan01 #inventoryView .warehouse-maintenance-note { display:none!important; }
 body.erp-plan01 #inventoryView .inventory-opening-boundary { padding:8px 12px!important;background:#f5f9fa!important;margin-bottom:12px!important;border:0!important; }
 body.erp-plan01 #inventoryView .inventory-opening-boundary > div { display:none!important; }
 body.erp-plan01 #inventoryView .inventory-opening-header { margin-bottom:12px!important;padding-bottom:12px!important; }
 body.erp-plan01 #inventoryView .inventory-opening-header h2 { font-size:22px!important; }
 body.erp-plan01 #inventoryView .inventory-opening-header span { font-size:12px!important;color:#718596!important; }
 body.erp-plan01 #inventoryView .inventory-opening-summary { gap:10px!important;margin-bottom:14px!important; }
 body.erp-plan01 #inventoryView .inventory-opening-summary > * { padding:12px 16px!important;min-height:0!important;border-radius:8px!important;background:#f5f9fa!important;border-color:#e4ebef!important; }
 body.erp-plan01 #inventoryView .inventory-opening-summary :is(p,small) { display:none!important; }
 body.erp-plan01 #inventoryView .inventory-opening-panel { padding:20px!important; }
 body.erp-plan01 #inventoryView [data-plan01-inventory-tool] .warehouse-card { min-height:72px!important;padding-top:8px!important;padding-bottom:8px!important; }
 body.erp-plan01 #inventoryView [data-plan01-inventory-tool] .warehouse-card > .stock-line > span { display:none!important; }
 body.erp-plan01 #inventoryView [data-plan01-inventory-tool] .warehouse-card :is(h3,.stock-line,.card-actions) { grid-row:1!important;align-self:center!important; }
 body.erp-plan01 #inventoryView [data-plan01-inventory-tool] .warehouse-card .warehouse-card-heading > h3 { display:block!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow:visible!important; }
 body.erp-plan01 #inventoryView [data-plan01-inventory-tool] .warehouse-card .warehouse-card-heading > .status { grid-row:1!important; }
 body.erp-plan01 #inventoryView [data-plan01-inventory-tool] .warehouse-card > .status { grid-row:1!important; }
 @media(max-width:1100px) { body.erp-plan01 #workOrdersView .blacklake-tabbar { grid-template-columns:repeat(4,minmax(0,1fr))!important; } }
 @media(max-width:600px) { body.erp-plan01 #workOrdersView .blacklake-tabbar { grid-template-columns:repeat(2,minmax(0,1fr))!important; } body.erp-plan01 #workOrdersView .blacklake-tabbar button { min-height:72px!important;padding:10px 12px!important; } }
}

@layer plan01 { body.erp-plan01 #inventoryView :is(#warehouseCentralMaintenanceBoundary,#inventoryCentralWorkflowGuide) {display:none!important;} }

@layer plan01 {
 body.erp-plan01 #inventoryView > .section-bar,
 body.erp-plan01 #inventoryView .plan01-inventory-guidance,
 body.erp-plan01 #inventoryView #materialStocktakeDrafts,
 body.erp-plan01 #inventoryView .inventory-live-panel > .panel-header,
 body.erp-plan01 #inventoryView .inventory-stock-toolbar,
 body.erp-plan01 #inventoryView .plan01-inventory-warehouses,
 body.erp-plan01 #inventoryView #inventoryStockResultSummary,
 body.erp-plan01 #inventoryView .finished-inbound-queue-panel > .panel-header,
 body.erp-plan01 #inventoryView .shipment-outbound-queue-panel > .panel-header { display:none!important; }
 body.erp-plan01 #inventoryView .inventory-live-panel { padding-top:0!important; }
 body.erp-plan01 #inventoryView :is(.finished-inbound-queue-panel,.shipment-outbound-queue-panel) { padding:0!important;border:0!important;background:transparent!important; }
 body.erp-plan01 :is(#finishedInboundDialog,#warehouseShipmentConfirmDialog) { width:min(880px,94vw)!important;max-width:94vw!important;border-radius:12px!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) { display:block!important;box-sizing:border-box!important;padding:24px!important;background:#fff!important;color:#1b3044!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) > .dialog-header { position:static!important;min-height:0!important;padding:0 0 16px!important;margin:0!important;border-bottom:1px solid #e5edf0!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) h2 { font-size:24px!important;line-height:1.4!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) .dialog-subtitle { font-size:13px!important;margin:6px 0 0!important;color:#728594!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) > .simple-flow-banner { margin:16px 0!important;padding:14px 16px!important;background:#f1f9f7!important;border:1px solid #dcece8!important;border-radius:8px!important;display:grid!important;gap:6px!important;font-size:14px!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) > .form-grid { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 22px!important;padding:0!important;margin:20px 0!important;border:0!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) label {font-size:14px!important;color:#41576b!important;gap:8px!important;}
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) :is(input,select) { min-height:42px!important;height:42px!important;font-size:15px!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) textarea { min-height:72px!important;font-size:14px!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) > .dialog-footer { position:sticky!important;bottom:0!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;margin:20px 0 0!important;padding:16px 0 0!important;background:white!important;border-top:1px solid #e5edf0!important; }
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm)[hidden] {display:none!important;}
 body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) .inline-field-action button {white-space:nowrap!important;flex-shrink:0!important;}
 body.erp-plan01 .operation-photo-field {border:1px dashed #bcd8d2!important;border-radius:8px!important;padding:16px!important;margin:16px 0!important;background:#fbfdfc!important;}
 body.erp-plan01 .operation-photo-field[hidden] {display:none!important;}
 body.erp-plan01 .operation-photo-field p {font-size:12px!important;color:#738692!important;margin:8px 0!important;}
 body.erp-plan01 .operation-photo-field input {height:auto!important;padding:9px!important;width:100%!important;box-sizing:border-box!important;}
 body.erp-plan01 .operation-photo-field label {display:grid!important;gap:8px!important;font-size:14px!important;}
 body.erp-plan01 .operation-photo-previews {display:flex!important;flex-wrap:wrap!important;gap:10px!important;}
 body.erp-plan01 .operation-photo-previews img {width:100px!important;height:76px!important;object-fit:contain!important;background:white!important;border:1px solid #dce6eb!important;border-radius:6px!important;}
 body.erp-plan01 .operation-photo-gallery {font-size:13px!important;}
 body.erp-plan01 .operation-photo-gallery summary {cursor:pointer!important;color:#008b7e!important;}
 body.erp-plan01 .operation-photo-gallery img {display:block!important;max-width:100%!important;width:340px!important;height:auto!important;margin:10px 0!important;}
 @media(max-width:600px) {body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) {padding:16px!important;}body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) > .form-grid {grid-template-columns:1fr!important;}body.erp-plan01 :is(#finishedInboundForm,#warehouseShipmentConfirmForm) .form-span-2 {grid-column:1!important;}}
}

/* Work-order procurement: compact operational table, scoped to this dialog. */
#workOrderProcurementDialog {max-width:96vw;border:1px solid #dce6eb;border-radius:10px;padding:0;}
#workOrderProcurementDialog .dialog-header {display:flex;justify-content:space-between;align-items:flex-start;}
#workOrderProcurementDialog .dialog-header button {min-width:36px;height:36px;}
#workOrderProcurementDialog .detail-panel {margin-top:16px;padding:18px;border:1px solid #dce6eb;border-radius:8px;}
#workOrderProcurementDialog table {width:100%;border-collapse:collapse;}
#workOrderProcurementDialog th {background:#eff5f8;white-space:nowrap;}
#workOrderProcurementDialog th,#workOrderProcurementDialog td {padding:12px 8px;border-bottom:1px solid #e5edf1;text-align:left;}
#workOrderProcurementDialog input {width:96px;min-width:70px;}
#workOrderProcurementDialog select {width:150px;min-width:100px;max-width:180px;}
#workOrderProcurementDialog input,#workOrderProcurementDialog select {padding:8px;border:1px solid #dce6eb;border-radius:5px;}
#workOrderProcurementDialog [data-result] {color:#a14c20;}

/* Approved sales detail and compact operational VI. */
@media screen {
body.erp-plan01 #orderDetailDialog {width:min(1280px,96vw)!important;max-width:96vw!important;}
body.erp-plan01 #orderDetailDialog #orderDetailPrimaryActionBtn,body.erp-plan01 #orderDetailDialog .order-detail-actions > [data-order-detail-action="payment"] {display:none!important;}
body.erp-plan01 #orderDetailDialog .order-detail-static-summary,body.erp-plan01 #orderDetailDialog .order-closure-chain {display:none!important;}
body.erp-plan01 #orderDetailTabPanel {display:block!important;width:100%!important;min-width:0!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet {border:1px solid #dce7ed;border-radius:8px;padding:22px 24px;margin:0 0 20px;background:white;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet > header {display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet h3 {font-size:20px!important;margin:0!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet > header > span {font-size:13px;color:#7c91a2;}
body.erp-plan01 #orderDetailDialog .sales-detail-item {border:1px solid #dce7ed;border-radius:7px;margin-bottom:16px;overflow:hidden;}
body.erp-plan01 #orderDetailDialog .sales-detail-item > header {display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(100px,1fr));align-items:center;gap:20px;padding:20px 24px;background:#f2f9f7;}
body.erp-plan01 #orderDetailDialog .sales-detail-item > header > div:not(:first-child) {text-align:right;}
body.erp-plan01 #orderDetailDialog .sales-detail-item > header strong {font-size:20px;font-weight:700;}
body.erp-plan01 #orderDetailDialog .sales-detail-item > header small {font-size:16px;margin-right:12px;}
body.erp-plan01 #orderDetailDialog .sales-detail-item > header p,body.erp-plan01 #orderDetailDialog .sales-detail-item > header span {font-size:13px;color:#7c91a2;margin:6px 0;display:block;}
body.erp-plan01 #orderDetailDialog .sales-detail-item > header b {font-size:19px;color:#182b40;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:24px 0;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs > section {padding:0 24px;min-width:0;border-right:1px solid #e9eff3;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs > section:last-child {border:0;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs h4 {font-size:15px;color:#536c7d;margin:0 0 16px;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet dl {margin:0;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet dl > div {display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;margin:12px 0;align-items:baseline;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet dt {font-size:14px;color:#8093a2;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet dd {font-size:15px;color:#1b3044;margin:0;overflow-wrap:anywhere;}
body.erp-plan01 #orderDetailDialog .sales-detail-note {border-top:1px solid #e6edf1;padding:14px 24px;font-size:14px;white-space:pre-wrap;}
body.erp-plan01 #orderDetailDialog .sales-detail-note > span {color:#8093a2;margin-right:20px;}
body.erp-plan01 #orderDetailDialog .sales-order-info {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 25px;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet > footer {display:flex;justify-content:flex-end;align-items:center;gap:24px;padding:6px 0 0;color:#778b9a;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet > footer strong {font-size:24px;color:#008577;}
body.erp-plan01 #orderDetailDialog .sales-detail-image {padding:0 24px 16px;}
body.erp-plan01 #orderDetailDialog .sales-detail-image img {width:160px;height:120px;object-fit:contain;}
body.erp-plan01 #workOrdersView .blacklake-tabbar {display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar button {display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-height:38px!important;padding:8px 16px!important;border:1px solid #e0e9ef!important;border-radius:5px!important;background:#f7fafc!important;font-size:14px!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar button span {font-size:15px!important;color:inherit!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar button.active {background:#008577!important;color:white!important;border-color:#008577!important;}
body.erp-plan01 #workOrderCreateDialog {width:min(1180px,96vw)!important;max-width:96vw!important;}
body.erp-plan01 #workOrderCreateForm .blacklake-workorder-create-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;}
body.erp-plan01 #workOrderCreateForm .work-order-create-process-preview {display:none!important;}
body.erp-plan01 #workOrderCreateForm .work-order-conversion-bar {background:#f4f9f8!important;border:0!important;padding:10px 16px!important;font-size:12px!important;}
body.erp-plan01 #orderDetailDialog .production-form-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
body.erp-plan01 #orderDetailDialog .detail-summary-grid {gap:12px!important;}
body.erp-plan01 #orderDetailDialog .detail-summary-grid article {padding:14px!important;min-height:0!important;}
body.erp-plan01 #orderDetailDialog .detail-summary-grid strong {font-size:20px!important;}
body.erp-plan01 #orderDetailDialog .detail-summary-grid p {display:none!important;}
body.erp-plan01[data-vi-module="analytics"] .business-analytics-shell {background:white!important;}
body.erp-plan01[data-vi-module="analytics"] .analytics-page-header h2 {font-size:26px!important;}
body.erp-plan01[data-vi-module="analytics"] :is(.analytics-kpis,.analytics-center-kpis) {gap:12px!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;}
body.erp-plan01[data-vi-module="analytics"] :is(.analytics-kpi,.analytics-center-kpis > article) {padding:18px!important;border:1px solid #e0e9ef!important;border-radius:8px!important;background:#f6fafb!important;}
body.erp-plan01[data-vi-module="analytics"] :is(.analytics-kpi,.analytics-center-kpis > article) strong {font-size:26px!important;}
body.erp-plan01[data-vi-module="analytics"] .analytics-center-heading,body.erp-plan01[data-vi-module="analytics"] .plan01-sales-comparison-gap,body.erp-plan01[data-vi-module="analytics"] .plan01-analytics-result-boundary {display:none!important;}
body.erp-plan01[data-vi-module="analytics"] .plan01-analytics-capability {margin:0 0 14px!important;padding:10px 14px!important;font-size:12px!important;background:#f8fafb!important;}
body.erp-plan01[data-vi-module="analytics"] .plan01-analytics-capability summary {cursor:pointer;color:#748895;}
body.erp-plan01[data-vi-module="analytics"] .analytics-center-output {display:block!important;}
body.erp-plan01[data-vi-module="analytics"] .analytics-center-diagnosis {margin-top:20px;padding:18px!important;background:#f7fafb!important;}
body.erp-plan01[data-vi-module="analytics"] .analytics-main-grid {grid-template-columns:minmax(0,1fr)!important;}
body.erp-plan01[data-vi-module="analytics"] .analysis-advanced {border:1px solid #e0e9ef;border-radius:6px;margin:12px 0;padding:10px 16px;}
body.erp-plan01[data-vi-module="analytics"] .analysis-advanced > summary {cursor:pointer;color:#60788b;font-size:13px;}
body.erp-plan01[data-vi-module="analytics"] .analysis-trend {margin:20px 0;border:1px solid #e0e9ef;border-radius:8px;padding:20px;}
body.erp-plan01[data-vi-module="analytics"] .analysis-trend h3 {font-size:17px;margin:0 0 18px;}
body.erp-plan01[data-vi-module="analytics"] .analysis-trend > div {display:grid;grid-template-columns:160px minmax(70px,1fr) 140px;gap:16px;align-items:center;margin:14px 0;font-size:13px;}
body.erp-plan01[data-vi-module="analytics"] .analysis-trend i {height:9px;background:#eef4f6;border-radius:5px;overflow:hidden;}
body.erp-plan01[data-vi-module="analytics"] .analysis-trend b {display:block;height:100%;}
body.erp-plan01[data-vi-module="analytics"] .analysis-trend strong {text-align:right;}
@media(max-width:800px){body.erp-plan01 #orderDetailDialog .sales-detail-specs,body.erp-plan01 #orderDetailDialog .sales-order-info{grid-template-columns:1fr!important;}body.erp-plan01 #orderDetailDialog .sales-detail-specs > section{border:0;margin-bottom:16px;}body.erp-plan01 #orderDetailDialog .sales-detail-item > header{grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;}body.erp-plan01 #orderDetailDialog .sales-detail-item > header > div:first-child{grid-column:1/-1;}body.erp-plan01 #orderDetailDialog .sales-detail-sheet{padding:16px;}body.erp-plan01 #workOrderCreateForm .blacklake-workorder-create-grid,body.erp-plan01 #orderDetailDialog .production-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
}
body.erp-plan01[data-vi-module="analytics"] #salesAnalyticsView[data-plan01-analytics-adapter="01"] .analysis-advanced {order:4!important;margin:0 16px 12px!important;}
body.erp-plan01[data-vi-module="analytics"] #salesAnalyticsView[data-plan01-analytics-adapter="01"] .analysis-trend {order:7!important;margin:16px!important;}
body.erp-plan01[data-vi-module="analytics"] #salesAnalyticsView[data-plan01-analytics-adapter="01"] .analytics-center-output {order:8!important;}
body.erp-plan01[data-vi-module="analytics"] #salesAnalyticsView[data-plan01-analytics-adapter="01"] .analytics-center-drill {order:9!important;}

/* Order/work-order refinement: use the same priority layer as the system VI. */
@layer plan01 {
 body.erp-plan01 #orderDetailDialog .sales-detail-image {padding:16px 24px!important;display:flex;flex-wrap:wrap;gap:16px;}
 body.erp-plan01 #orderDetailDialog .sales-detail-image img {display:block!important;width:min(100%,720px)!important;max-width:100%!important;height:360px!important;max-height:none!important;object-fit:contain!important;background:#fafcfc;border:1px solid #e0e9ef;border-radius:6px;}
 body.erp-plan01 #workOrdersView .blacklake-tabbar {display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
 body.erp-plan01 #workOrdersView .blacklake-tabbar button {display:inline-flex!important;flex-direction:row!important;align-items:center!important;min-height:38px!important;height:38px!important;padding:8px 14px!important;gap:8px!important;border:1px solid #dde8ed!important;background:#f6f9fb!important;box-shadow:none!important;font-size:14px!important;}
 body.erp-plan01 #workOrdersView .blacklake-tabbar button span {font-size:15px!important;color:inherit!important;}
 body.erp-plan01 #workOrdersView .blacklake-tabbar button.active,body.erp-plan01 #workOrdersView .blacklake-tabbar button[aria-pressed="true"] {background:#008577!important;color:white!important;border-color:#008577!important;}
 body.erp-plan01:has(#orderDialog[open]) #ordersView>.section-bar {display:none!important;}
 body.erp-plan01 #orderDialog .order-entry-header {padding:18px 24px!important;background:#fff!important;border-bottom:1px solid #e0e9ef!important;}
 body.erp-plan01 #orderDialog .order-entry-header h2 {font-size:24px!important;}
 body.erp-plan01 #orderDialog .order-entry-body {padding:20px 24px!important;background:#f7fafb!important;}
 body.erp-plan01 #orderDialog .order-main-note {display:grid!important;gap:8px;margin:16px 0!important;padding:16px!important;background:white;border:1px solid #e0e9ef;border-radius:6px;}
 body.erp-plan01 #orderDialog .order-main-note textarea {width:100%!important;min-height:88px!important;}
 body.erp-plan01 #orderDialog .order-process-section {padding:12px 0!important;}
 body.erp-plan01 #orderDialog .order-process-section-header p {display:none!important;}
 body.erp-plan01 #orderDialog .order-detail-process-editor {display:block!important;padding:14px!important;margin:10px 0!important;background:#fff!important;border:1px solid #e0e9ef!important;border-radius:6px!important;}
 body.erp-plan01 #orderDialog .order-process-detail-header {margin-bottom:12px!important;}
 body.erp-plan01 #orderDialog .order-process-detail-header span:not([data-order-process-detail-name]) {display:none!important;}
 body.erp-plan01 #orderDialog .order-detail-process-caption,body.erp-plan01 #orderDialog .order-detail-process-row {display:grid!important;grid-template-columns:minmax(100px,1fr) 100px minmax(180px,2fr) 36px!important;gap:8px!important;width:100%!important;margin:0!important;}
 body.erp-plan01 #orderDialog .order-detail-process-row {padding:8px 0!important;border-bottom:1px solid #edf2f5!important;}
 body.erp-plan01 #orderDialog .order-detail-process-row :is(input,select,button) {min-height:34px!important;height:34px!important;font-size:13px!important;padding:6px 10px!important;}
 body.erp-plan01 #orderDialog .order-preset-personnel {grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;padding:0!important;border:0!important;}
 body.erp-plan01 #orderDialog .order-preset-personnel>label {display:flex!important;align-items:center;gap:8px!important;}
 body.erp-plan01 #orderDialog .order-preset-personnel>small {display:none!important;}
 body.erp-plan01 #orderDialog .order-preset-operators {margin:0!important;padding:6px 10px!important;min-width:180px;}
}
@layer plan01 {
 body.erp-plan01 #orderDialog[open] {top:52px!important;bottom:0!important;height:calc(100vh - 52px)!important;max-height:none!important;}
 body.erp-plan01 #orderDetailDialog #orderDetailContent .detail-panel {box-shadow:none!important;border:1px solid #e0e9ef!important;border-radius:6px!important;padding:16px!important;}
 body.erp-plan01 #orderDetailDialog #orderDetailContent .detail-panel label {box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;}
 body.erp-plan01 #orderDetailDialog #orderDetailContent .detail-panel input {box-shadow:none!important;background:#f5f8fa!important;border:1px solid #e0e9ef!important;min-height:36px!important;height:36px!important;font-weight:400!important;}
 body.erp-plan01 #productionPrintPreview[open] {position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;}
}
@layer plan01 {
}
/* Shared customer, order and procurement visual treatment. */
@layer plan01 {
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog)[open]{position:fixed!important;inset:4vh 3vw!important;width:94vw!important;max-width:none!important;height:92vh!important;max-height:none!important;margin:0!important;padding:0!important;border:1px solid #dce6eb!important;border-radius:8px!important;background:#f6f9fa!important;color:#203348!important;overflow:auto!important;font:14px/1.5 "Microsoft YaHei",sans-serif!important;box-shadow:0 12px 48px #183f4826!important;}
body.erp-plan01 #workOrderProcurementDialog .procurement-editor-card,body.erp-plan01 .crm-pool-shell{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;padding:20px!important;background:#f6f9fa!important;box-shadow:none!important;border:0!important;}
body.erp-plan01 #workOrderProcurementDialog :is(.dialog-header,.detail-panel,.dialog-actions){padding:16px!important;margin:0 0 14px!important;background:#fff!important;border:1px solid #e0e9ef!important;border-radius:6px!important;box-shadow:none!important;color:#203348!important;}
body.erp-plan01 #workOrderProcurementDialog .dialog-header,body.erp-plan01 .crm-pool-shell>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog,#customerPoolRelease) :is(h2,h3){color:#203348!important;line-height:1.4!important;margin:0 0 8px!important;font-size:18px!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog) p{font-size:13px!important;margin:6px 0!important;color:#647b8c!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog,#customerPoolRelease) button{height:36px!important;min-height:36px!important;padding:6px 12px!important;border:1px solid #dce6eb!important;border-radius:5px!important;background:#fff!important;color:#263e52!important;font-size:13px!important;white-space:nowrap!important;box-shadow:none!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog,#customerPoolRelease) button.primary-button{background:#008577!important;border-color:#008577!important;color:#fff!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog,#customerPoolRelease) button:disabled{opacity:.5!important;cursor:not-allowed!important;}
body.erp-plan01 #workOrderProcurementDialog :is(input,select),body.erp-plan01 .crm-pool-search input{box-sizing:border-box!important;min-width:0!important;width:100%!important;height:36px!important;min-height:36px!important;padding:6px 8px!important;border:1px solid #d7e3e9!important;border-radius:4px!important;font:13px "Microsoft YaHei",sans-serif!important;background:#fff!important;color:#203348!important;box-shadow:none!important;margin:3px 0!important;}
body.erp-plan01 .procurement-table-wrap,body.erp-plan01 .crm-pool-table{overflow:auto!important;width:100%!important;}
body.erp-plan01 #workOrderProcurementDialog table{table-layout:fixed!important;width:100%!important;min-width:1050px!important;border-collapse:collapse!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog) :is(th,td){padding:10px!important;font-size:13px!important;line-height:1.5!important;vertical-align:middle!important;border:1px solid #e6edf1!important;overflow-wrap:anywhere!important;background:white!important;}
body.erp-plan01 :is(#workOrderProcurementDialog,#customerPoolDialog) th{background:#eef5f7!important;color:#556f82!important;text-align:left!important;}
body.erp-plan01 #workOrderProcurementDialog .procurement-totals{display:flex!important;flex-wrap:wrap!important;gap:24px!important;}
body.erp-plan01 #workOrderProcurementDialog .dialog-actions{position:sticky!important;bottom:0!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;z-index:2!important;}
body.erp-plan01 #orderDetailDialog[open]{top:52px!important;bottom:0!important;height:calc(100vh - 52px)!important;max-height:none!important;overflow:hidden!important;background:#f6f9fa!important;}
body.erp-plan01 #orderDetailDialog :is(.dialog-header,.order-detail-header){padding:16px 24px!important;background:#fff!important;border-bottom:1px solid #e0e9ef!important;}
body.erp-plan01 #orderDetailTitle{font-size:24px!important;line-height:1.4!important;}
body.erp-plan01 #orderDetailSubtitle{font-size:13px!important;margin-top:6px!important;}
body.erp-plan01 #orderDetailDialog #orderDetailContent{padding:18px 24px!important;background:#f6f9fa!important;overflow:auto!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet{padding:18px!important;border-radius:6px!important;background:#fff!important;border:1px solid #e0e9ef!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-sheet h3{font-size:17px!important;margin:0 0 16px!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-item>header{padding:16px 20px!important;background:#f1f8f7!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-item>header strong{font-size:19px!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs{padding:18px 20px!important;gap:24px!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs :is(h4,h3){font-size:14px!important;margin:0 0 12px!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-specs :is(dt,dd,span){font-size:14px!important;line-height:1.6!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-image{padding:0 20px 18px!important;}
body.erp-plan01 #orderDetailDialog .sales-detail-image img{width:min(100%,640px)!important;height:320px!important;}
body.erp-plan01 #orderDetailDialog .sales-order-info{padding:16px 20px!important;font-size:14px!important;}
body.erp-plan01 .procurement-cost-metrics,body.erp-plan01 .crm-year-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:14px 0!important;}
body.erp-plan01 :is(.procurement-cost-metrics,.crm-year-grid) article{padding:14px 18px!important;background:#f4f8fa!important;border:1px solid #e2ebef!important;border-radius:6px!important;}
body.erp-plan01 :is(.procurement-cost-metrics,.crm-year-grid) span{display:block!important;color:#698092!important;font-size:13px!important;}
body.erp-plan01 :is(.procurement-cost-metrics,.crm-year-grid) strong{display:block!important;color:#203348!important;font-size:23px!important;margin-top:6px!important;}
body.erp-plan01 .crm-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.erp-plan01 .crm-year-grid article{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:4px 24px!important;}
body.erp-plan01 .crm-year-grid b{color:#008577!important;font-size:23px!important;grid-column:2!important;grid-row:1/3!important;}
body.erp-plan01 :is(#customerDetailDialog,#customerDialog)[open]{top:52px!important;bottom:0!important;height:calc(100vh - 52px)!important;max-height:none!important;}
body.erp-plan01:has(#customerDetailDialog[open],#customerDialog[open]) :is(.module-subnav,#customerDetailReturnHint){display:none!important;}
body.erp-plan01 #customerDetailContent{background:#f6f9fa!important;padding:20px!important;}
body.erp-plan01 .crm-simple-panel{padding:20px!important;background:#fff!important;border:1px solid #e0e9ef!important;border-radius:6px!important;margin-bottom:16px!important;}
body.erp-plan01 .crm-basic-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0 28px!important;margin:12px 0 0!important;}
body.erp-plan01 .crm-basic-fields>div{padding:12px 0!important;display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;border-bottom:1px solid #edf2f4!important;font-size:14px!important;}
body.erp-plan01 .crm-basic-fields dt{color:#788b9b!important;}
body.erp-plan01 .crm-basic-fields dd{margin:0!important;color:#203348!important;overflow-wrap:anywhere!important;}
body.erp-plan01 .crm-pool-shell>nav,body.erp-plan01 .crm-pool-search{display:flex!important;gap:10px!important;margin:18px 0!important;}
body.erp-plan01 .crm-pool-search input{max-width:440px!important;}
body.erp-plan01 .crm-pool-table table{width:100%!important;min-width:920px!important;border-collapse:collapse!important;}
body.erp-plan01 .crm-pool-table small{display:block!important;color:#798b99!important;}
body.erp-plan01 #customerPoolRelease{width:min(560px,94vw)!important;padding:24px!important;border-radius:8px!important;border:1px solid #dce6eb!important;}
body.erp-plan01 #customerPoolRelease textarea{width:100%!important;box-sizing:border-box!important;margin-top:8px!important;border:1px solid #dce6eb!important;padding:10px!important;}
body.erp-plan01 #customerPoolRelease footer{display:flex!important;justify-content:flex-end!important;gap:10px!important;}
@media(max-width:800px){body.erp-plan01 .crm-basic-fields{grid-template-columns:1fr!important;}body.erp-plan01 :is(.procurement-cost-metrics,.crm-year-grid){grid-template-columns:1fr!important;}}
}


@layer plan01 {
body.erp-plan01 #workOrdersView .blacklake-page-title{margin:0 0 22px!important;padding:0!important;align-items:center!important;}
body.erp-plan01 #workOrdersView #blacklakeWorkOrderPageTitle{font-size:28px!important;line-height:1.4!important;color:#192a40!important;font-weight:700!important;margin:0 0 8px!important;}
body.erp-plan01 #workOrdersView #blacklakeWorkOrderPageSubtitle{display:block!important;font-size:14px!important;color:#698093!important;margin:0!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0 0 20px!important;padding:0!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar button{height:42px!important;min-height:42px!important;min-width:100px!important;padding:10px 18px!important;border:1px solid #dce6ed!important;border-radius:5px!important;background:#f7fafc!important;color:#192a40!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;box-shadow:none!important;font-size:14px!important;font-weight:600!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar button span{font:inherit!important;color:inherit!important;margin:0!important;}
body.erp-plan01 #workOrdersView .blacklake-tabbar button[aria-pressed="true"],body.erp-plan01 #workOrdersView .blacklake-tabbar button.active{background:#008577!important;border-color:#008577!important;color:#fff!important;}
body.erp-plan01 #workOrdersView .blacklake-filterbar{margin:0 0 24px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body.erp-plan01 #orderDetailContent .order-profit-panel{padding:22px!important;background:#fff!important;border:1px solid #dce6ed!important;border-radius:6px!important;}
body.erp-plan01 .profit-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
body.erp-plan01 .profit-heading h3{font-size:18px;margin:0;color:#192a40;}
body.erp-plan01 .profit-heading>span{font-size:13px;color:#6b8092;}
body.erp-plan01 .profit-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
body.erp-plan01 .profit-inputs label{display:flex!important;flex-direction:column!important;gap:10px!important;padding:16px!important;background:#f6f9fb!important;border:1px solid #e1eaf0!important;border-radius:5px!important;color:#60768b!important;font-size:14px!important;}
body.erp-plan01 .profit-inputs strong{font-size:25px;color:#192a40;}
body.erp-plan01 #orderDetailContent .profit-inputs input{box-sizing:border-box!important;width:100%!important;height:40px!important;background:#fff!important;border:1px solid #dce6ed!important;border-radius:4px!important;padding:8px 12px!important;font-size:16px!important;}
body.erp-plan01 .profit-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0;}
body.erp-plan01 .profit-results>div{padding:20px;border:1px solid #dcebe8;border-radius:5px;background:#f2faf8;display:flex;flex-direction:column;gap:10px;}
body.erp-plan01 .profit-results span{font-size:14px;color:#60768b;}
body.erp-plan01 .profit-results strong{font-size:30px;color:#008577;}
body.erp-plan01 .is-loss .profit-results>div{background:#fff4f2;border-color:#f0c2b9;}
body.erp-plan01 .is-loss .profit-results strong,body.erp-plan01 .is-loss [data-profit-alert]{color:#b62d22;}
body.erp-plan01 [data-profit-alert]{padding:12px 16px;background:#f5f8fa;border-radius:4px;font-size:14px;}
body.erp-plan01 .is-loss [data-profit-alert]{background:#fff0ed;border:1px solid #efc0b7;font-weight:600;}
body.erp-plan01 .profit-explanation{font-size:13px;color:#6b8092;margin:12px 0;line-height:1.7;}
body.erp-plan01 .profit-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid #e6edf2;padding-top:16px;margin-top:20px;}
body.erp-plan01 .profit-actions>span{margin-right:auto;color:#6b8092;font-size:13px;}
@media(max-width:700px){body.erp-plan01 .profit-inputs{grid-template-columns:1fr;}body.erp-plan01 .profit-actions{flex-wrap:wrap;}}
}

@layer plan01 { body.erp-plan01 #workOrdersView .blacklake-tabbar button[data-blacklake-workorder-filter]:not([aria-pressed="true"]){background:#f7fafc!important;border:1px solid #dce6ed!important;color:#192a40!important;} }

@layer plan01 {body.erp-plan01 #orderDetailContent .order-profit-panel.is-loss .profit-results strong{color:#b62d22!important;} body.erp-plan01 #orderDetailContent .order-profit-panel .profit-actions button{height:36px!important;padding:7px 14px!important;border:1px solid #dce6ed!important;border-radius:5px!important;background:#fff!important;color:#203348!important;}body.erp-plan01 #orderDetailContent .order-profit-panel .profit-actions button.primary-button{background:#008577!important;color:white!important;border-color:#008577!important;} }

/* WORK_SAVE_20261019 */
@layer plan01 {

body.erp-plan01 #orderDialog #orderForm .order-main-note{display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box;grid-column:1/-1}
body.erp-plan01 #orderDialog #orderForm .order-main-note textarea{display:block!important;width:100%!important;max-width:none!important;min-height:96px;box-sizing:border-box;margin-top:8px;resize:vertical}
body.erp-plan01 #orderDialog #orderForm .order-process-section{padding:10px 0!important}
body.erp-plan01 #orderDialog #orderForm .order-detail-process-editor{padding:12px!important;margin:8px 0!important}
body.erp-plan01 #orderDialog #orderForm .order-process-detail-header{margin-bottom:8px!important}
body.erp-plan01 #orderDialog #orderForm .order-detail-process-row{display:grid!important;grid-template-columns:150px 90px minmax(200px,1fr) minmax(280px,1fr) 36px!important;gap:8px!important;padding:6px 0!important;align-items:center}
body.erp-plan01 #orderDialog #orderForm .order-detail-process-caption{display:none!important}
body.erp-plan01 #orderDialog #orderForm .order-detail-process-row>.order-process-remove-button{grid-column:5;grid-row:1}
body.erp-plan01 #orderDialog #orderForm .order-preset-personnel{grid-column:4!important;grid-row:1;display:flex!important;gap:8px!important;margin:0!important;align-items:center;flex-wrap:nowrap!important}
body.erp-plan01 #orderDialog #orderForm .order-preset-personnel>label{display:flex!important;align-items:center;gap:6px;min-width:0;font-size:12px}
body.erp-plan01 #orderDialog #orderForm .order-preset-personnel select{width:130px!important;min-width:0!important}
body.erp-plan01 #orderDialog #orderForm .order-preset-operators{min-width:130px!important;position:relative;margin:0!important}
body.erp-plan01 #orderDialog #orderForm .order-preset-operators summary{padding:8px!important;font-size:13px}
body.erp-plan01 #orderDialog #orderForm .order-preset-operators[open]>div{position:absolute;z-index:10;right:0;min-width:220px;max-height:240px;overflow:auto;background:white;border:1px solid #dce7ec;padding:12px;box-shadow:0 6px 18px #152c4020}
body.erp-plan01 #orderDialog #orderForm .order-preset-personnel>small{display:none!important}
body.erp-plan01 #orderDialog #orderForm .detail-image-cell .small-button{height:32px!important;min-width:60px;border:1px solid #cbdde6!important;border-radius:6px!important;background:#f5f9fb!important;color:#087f75!important;font-size:13px!important;white-space:nowrap}
body.erp-plan01 #orderDialog input[name=detailNote]{display:none!important}
#workFormSaveStatus{margin-right:auto;font-size:13px;color:#647b8c}
body.erp-plan01 #orderDetailDialog .production-form-grid{gap:12px 18px!important}
body.erp-plan01 #orderDetailDialog .production-form-grid input{height:36px!important;font-size:14px!important}
body.erp-plan01 #orderDetailDialog .production-form-grid label>span{font-size:13px!important}
@media(max-width:1100px){body.erp-plan01 #orderDialog #orderForm .order-detail-process-row{grid-template-columns:130px 80px minmax(180px,1fr) 36px!important}body.erp-plan01 #orderDialog #orderForm .order-detail-process-row>.order-process-remove-button{grid-column:4}body.erp-plan01 #orderDialog #orderForm .order-preset-personnel{grid-column:1/-1!important;grid-row:2}}

}
@layer plan01 {
body.erp-plan01 #orderDialog #orderForm .detail-image-cell {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:4px!important;}
body.erp-plan01 #orderDialog #orderForm .detail-image-cell button {margin:0 auto!important;align-self:center!important;}
body.erp-plan01 #orderDetailDialog .work-line-panel {padding:20px!important;}
body.erp-plan01 #orderDetailDialog .work-line-panel .detail-panel-header {align-items:center!important;margin-bottom:20px!important;}
body.erp-plan01 #orderDetailDialog #workLineSelect {min-width:300px!important;max-width:100%!important;display:block!important;margin-top:6px!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm .production-form-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px 24px!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm input {width:100%!important;height:38px!important;font-size:14px!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm label span {display:block!important;margin-bottom:6px!important;font-size:13px!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm .line-note {grid-column:1/-1!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm textarea {width:100%!important;min-height:70px!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm .line-save-toolbar {display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:16px 0 0!important;border-top:1px solid #e2edf1!important;flex-wrap:wrap!important;}
body.erp-plan01 #orderDetailDialog #inlineWorkLineForm [data-line-status] {margin-right:auto!important;color:#668398!important;font-size:13px!important;}
body.erp-plan01 #linePrintChooser {max-width:600px!important;border:1px solid #dce7ee!important;border-radius:10px!important;}
body.erp-plan01 #linePrintChooser .dialog-card {display:flex!important;flex-direction:column!important;gap:12px!important;padding:24px!important;}
@media(max-width:850px){body.erp-plan01 #orderDetailDialog #inlineWorkLineForm .production-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
}

@layer plan01 {#workbenchLossAlerts{border:1px solid #f2b6b0;background:#fff7f5;margin:16px 0;padding:18px;color:#a82b22}#workbenchLossAlerts[hidden]{display:none}.workbench-loss-row{display:flex;align-items:center;gap:24px;padding:10px 0;border-top:1px solid #f7d9d5}.workbench-loss-row button{margin-left:auto}}

/* WORK_BUTTONS_20261019 */
#orderDetailDialog:not([data-detail-tab="data"]) .order-detail-actions .action-group{display:none!important}
#orderDetailDialog:not([data-detail-tab="data"]) .order-detail-actions [data-order-detail-action],#orderDetailDialog:not([data-detail-tab="data"]) .order-detail-actions .detail-more-actions,#orderDetailDialog:not([data-detail-tab="data"]) #closeOrderDetailBtn{display:none!important}
#inlineWorkLineForm [data-line-open],#inlineWorkLineForm [data-line-generate]{display:none!important}

/* Unified product selectors and procurement buttons, 2026-10-20. */
body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts) > .detail-panel-header{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:16px!important;padding-bottom:16px!important;margin-bottom:16px!important;}
body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts) > .detail-panel-header > label{display:flex!important;flex-direction:column!important;gap:8px!important;width:min(100%,340px)!important;min-width:0!important;margin:0!important;color:#1b293c!important;font-size:14px!important;font-weight:600!important;}
body.erp-plan01 #orderDetailDialog :is(#workLineSelect,select[aria-label="选择采购工单"]){width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 36px 0 12px!important;border:1px solid #cbd9e2!important;border-radius:4px!important;background-color:#fff!important;color:#42566a!important;font:500 14px/1.5 "Microsoft YaHei",sans-serif!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts{padding:20px!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts :is([data-add],[data-remove],[data-confirm],[data-build-line-procurement]){min-height:36px!important;white-space:nowrap!important;padding:8px 14px!important;border:1px solid #cbd9e2!important;border-radius:4px!important;background:#fff!important;color:#1b293c!important;font:500 14px/1.4 "Microsoft YaHei",sans-serif!important;box-shadow:none!important;cursor:pointer!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts :is([data-confirm],[data-build-line-procurement]){background:#008576!important;color:white!important;border-color:#008576!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts [data-remove]{padding:6px 8px!important;color:#b64c55!important;border-color:transparent!important;background:transparent!important;min-width:44px!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts button:disabled{opacity:.5!important;cursor:not-allowed!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts .procurement-table-wrap{overflow-x:auto!important;}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts .procurement-table-wrap table{min-width:1000px!important;}
#wecomOaSection .oa-reason{margin:18px 0;padding:16px 18px;background:#f0f9f7;border:1px solid #cee8e2;border-left:4px solid #008576;border-radius:4px;}
#wecomOaSection .oa-reason h4{margin:0 0 8px;font-size:14px;color:#526d7d;}
#wecomOaSection .oa-reason .oa-prose{margin:0;max-width:none;font-size:17px;font-weight:600;line-height:1.7;color:#1b293c;}
@media(max-width:600px){body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header>label{width:100%!important;}body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header>button{width:100%!important;}}


/* Order collaboration and unified work-form selectors */
.order-follow-panel,.order-follow-workbench{padding:20px;background:#fff;border:1px solid #dce7ed;border-radius:8px;margin-bottom:20px}
.order-follow-panel h3,.order-follow-workbench h3{margin:0;font-size:18px;color:#1b293c}
.order-follow-panel .detail-panel-header p,.order-follow-workbench .detail-panel-header p{margin:5px 0 0;font-size:13px;color:#7b8c9e}
.order-follow-form{padding:16px;background:#f4f9fa;border:1px solid #dfebed;border-radius:6px;margin:16px 0 24px}
.order-follow-form label,.order-follow-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#40546a;font-weight:600}
.order-follow-form textarea,.order-follow-dialog textarea,.order-follow-form select,.order-follow-dialog select,.order-follow-form input{box-sizing:border-box;width:100%;border:1px solid #cbd9e2;border-radius:4px;background:#fff;padding:10px 12px;color:#273e52;font:inherit;font-weight:400}
.follow-form-toolbar{display:flex;align-items:end;gap:16px;margin-top:14px}.follow-form-toolbar label{flex:1;max-width:340px}.follow-form-toolbar button{margin-left:auto;min-height:40px}
.follow-help,.follow-meta{font-size:13px;color:#748699}.follow-help{margin:10px 0 0}.follow-error{color:#b73535;font-size:14px;margin:8px 0 0}
.order-follow-row{padding:18px 0;border-bottom:1px solid #e3ecef}.order-follow-row:last-child{border:0}.order-follow-row header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.order-follow-row time{font-size:12px;color:#8292a3;margin-left:auto}.follow-badge{font-size:12px;padding:3px 8px;border-radius:4px;background:#e2f5ef;color:#008576}.follow-badge.is-overdue{background:#fff0dc;color:#ab6411}
.follow-content,.follow-reply p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;color:#263b50;margin:10px 0}.follow-reply{background:#f5f8fa;padding:10px 14px;margin-top:10px;border-radius:4px}.follow-reply time{margin-left:12px}.order-follow-row footer{display:flex;gap:8px;margin-top:12px}
.order-follow-dialog{width:min(560px,92vw);max-width:92vw;max-height:88dvh;overflow:auto;border:1px solid #dce7ed;border-radius:8px;padding:24px;color:#1b293c}.order-follow-dialog::backdrop{background:#182d3d66}.order-follow-dialog label{margin:16px 0}.order-follow-dialog footer{display:flex;justify-content:end;gap:10px}.order-follow-dialog button,.order-follow-panel button{border:1px solid #cbd9e2;border-radius:4px;padding:9px 16px;background:#fff;font-size:14px;color:#273e52}.order-follow-dialog .primary-button,.order-follow-panel .primary-button{background:#008576;border-color:#008576;color:#fff}
@media(max-width:600px){.follow-form-toolbar{align-items:stretch;flex-direction:column}.follow-form-toolbar label{max-width:none}.follow-form-toolbar button{margin:0}.order-follow-panel,.order-follow-workbench{padding:14px}.order-follow-row time{margin-left:0;width:100%}}

body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header{background:#f0f7f8!important;border:1px solid #dae9ec!important;border-radius:6px!important;padding:16px!important;align-items:center!important;margin-bottom:24px!important;gap:20px!important}
body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header>label{width:min(100%,420px)!important;font-size:13px!important;color:#50687a!important;gap:8px!important}
body.erp-plan01 #orderDetailDialog :is(#workLineSelect,select[aria-label="选择采购工单"]){height:42px!important;border-color:#b9ced7!important;border-radius:4px!important;color:#20384b!important;font-weight:600!important;box-shadow:none!important}
body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header>button{height:42px!important;padding:0 20px!important;border-radius:4px!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important}
body.erp-plan01 #orderDetailDialog .work-line-panel [data-order-detail-action="printWorkOrder"]{color:#008576!important;background:#fff!important;border:1px solid #008576!important}
body.erp-plan01 #orderDetailDialog #orderProcurementCosts [data-procurement-status]{padding:10px 12px!important;background:#f5faf9!important;border-left:3px solid #008576!important;font-size:13px!important;line-height:1.6!important;color:#577083!important;margin:0 0 16px!important}
@media(max-width:600px){body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header>label{width:100%!important}body.erp-plan01 #orderDetailDialog :is(.work-line-panel,#orderProcurementCosts)>.detail-panel-header>button{width:100%!important}}
.oa-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.oa-attachments button{padding:8px 12px;background:#eff8f6;color:#008576;border:1px solid #c9e4dc;border-radius:4px}
.oa-image-dialog{width:min(1100px,94vw);max-width:94vw;max-height:92dvh;padding:16px;border:1px solid #cbd9e2;border-radius:8px;background:#fff}.oa-image-dialog::backdrop{background:#142e4266}.oa-image-dialog img{display:block;width:auto;height:auto;max-width:100%;max-height:75dvh;object-fit:contain;margin:auto}.oa-image-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.oa-image-dialog [role=status]{color:#576f83}

body.erp-plan01 .oa-image-dialog{padding:18px!important;border:1px solid #dce7ed!important;border-radius:8px!important;}body.erp-plan01 .oa-image-dialog header{padding:0 0 12px!important;border-bottom:1px solid #e2ecef!important;margin-bottom:12px!important;}body.erp-plan01 .oa-image-dialog header strong{font-size:16px!important;color:#1b293c!important;}body.erp-plan01 .oa-image-dialog button{padding:8px 16px!important;border:1px solid #cbd9e2!important;border-radius:4px!important;background:#fff!important;color:#344f62!important;font:500 14px/1.4 sans-serif!important;cursor:pointer!important;}body.erp-plan01 #workbenchOrderFollow{box-shadow:none!important;}

body.erp-plan01 #workbenchReceivables{margin:0 0 20px;padding:20px;border:1px solid #dce7ed;border-radius:8px;background:#fff;box-shadow:none!important;}#workbenchReceivables h3{margin:0;color:#192b3e;}#workbenchReceivables p,#workbenchReceivables small{color:#71869b;}#workbenchReceivables button{padding:8px 12px;border:1px solid #cbdbe4;border-radius:5px;background:#fff;color:#244356;cursor:pointer;}#workbenchReceivables button:disabled{opacity:.45;cursor:default;}#workbenchReceivables .ar-totals{display:flex;flex-wrap:wrap;gap:16px;padding:14px 0;}#workbenchReceivables .ar-totals span{padding:12px 18px;background:#f0f8f8;border-radius:6px;}#workbenchReceivables .ar-totals strong{margin-left:12px;color:#008577;}#workbenchReceivables .ar-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}#workbenchReceivables .ar-filters .active{background:#008577;color:white;border-color:#008577;}#workbenchReceivables .ar-table{overflow:auto;}#workbenchReceivables table{width:100%;border-collapse:collapse;min-width:850px;}#workbenchReceivables th,#workbenchReceivables td{text-align:left;padding:12px;border:1px solid #e3edf2;}#workbenchReceivables th{background:#eef6f9;}#workbenchReceivables td button{margin:3px;}#workbenchReceivables .ar-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;}@media(max-width:600px){body.erp-plan01 #workbenchReceivables{padding:12px;}#workbenchReceivables .ar-totals{display:grid;gap:8px;}#workbenchReceivables .detail-panel-header{align-items:flex-start;}}

#dashboardView.ar-only > :not(#workbenchReceivables){display:none!important;}#workbenchReceivables[hidden]{display:none!important;}

body #dashboardView.ar-only > :not(#workbenchReceivables){display:none!important;}

html body main #dashboardView.ar-only.view.active.plan01-workbench > header.plan01-page-heading.plan01-pagehead{display:none!important;}

/* Dedicated finance receivables shares the workbench VI. */
@layer plan01 {
body.erp-plan01 #financeCustomerReceivables{margin:0 0 20px!important;padding:20px!important;border:1px solid #dce7ed!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;}#financeCustomerReceivables h2{margin:0!important;color:#192b3e!important;}#financeCustomerReceivables p,#financeCustomerReceivables small{color:#71869b!important;}#financeCustomerReceivables button{padding:8px 12px!important;border:1px solid #cbdbe4!important;border-radius:5px!important;background:#fff!important;color:#244356!important;cursor:pointer!important;}#financeCustomerReceivables button:disabled{opacity:.45!important;cursor:default!important;}#financeCustomerReceivables .ar-totals{display:flex!important;flex-wrap:wrap!important;gap:16px!important;padding:14px 0!important;}#financeCustomerReceivables .ar-totals span{padding:12px 18px!important;background:#f0f8f8!important;border-radius:6px!important;}#financeCustomerReceivables .ar-totals strong{margin-left:12px!important;color:#008577!important;}#financeCustomerReceivables .ar-filters{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-bottom:14px!important;}#financeCustomerReceivables .ar-filters .active{background:#008577!important;color:white!important;border-color:#008577!important;}#financeCustomerReceivables .ar-table{overflow:auto!important;}#financeCustomerReceivables table{width:100%!important;border-collapse:collapse!important;min-width:850px!important;}#financeCustomerReceivables th,#financeCustomerReceivables td{text-align:left!important;padding:12px!important;border:1px solid #e3edf2!important;}#financeCustomerReceivables th{background:#eef6f9!important;}#financeCustomerReceivables td button{margin:3px!important;}#financeCustomerReceivables .ar-footer{display:flex!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin-top:12px!important;}@media(max-width:600px){body.erp-plan01 #financeCustomerReceivables{padding:12px!important;}#financeCustomerReceivables .ar-totals{display:grid!important;gap:8px!important;}#financeCustomerReceivables .detail-panel-header{align-items:flex-start!important;}}
#financeCustomerReceivables h2{font-size:26px!important;}
}

@layer plan01 { html body #financeView[data-invoice-only="true"] #financeWriteOffSection, html body #financeView[data-invoice-only="true"] .plan01-finance-local-tabs {display:none!important;} }

.invoice-request-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:760px;max-height:90dvh;margin:auto;border:1px solid #dce8ed;border-radius:16px;padding:0;background:#fff;color:#1c293d;overflow:auto}.invoice-request-dialog::backdrop{background:rgba(20,39,45,.42)}.invoice-request-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e1ebef;background:#f2f8f9;position:sticky;top:0;z-index:1}.invoice-request-dialog h2{font-size:22px;margin:0}.invoice-request-dialog .ir-body{padding:24px}.invoice-request-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.invoice-request-dialog label{display:flex;flex-direction:column;gap:8px;font-weight:600;min-width:0}.invoice-request-dialog input,.invoice-request-dialog select,.invoice-request-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #cbdde5;border-radius:6px;background:#fff;padding:10px 12px;color:#24364a;font:inherit;min-height:42px}.invoice-request-dialog button,#invoiceRequestsPanel button{border:1px solid #cbdde5;border-radius:6px;background:#fff;color:#24364a;padding:10px 16px;font:inherit;cursor:pointer}.invoice-request-dialog .primary-button{background:#008b7d;color:#fff;border-color:#008b7d}.invoice-request-dialog footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px;padding-top:12px}.invoice-request-dialog [role=status]{grid-column:1/-1;color:#b83232;margin:0}.invoice-request-dialog article{padding:12px 0;border-top:1px solid #e1ebef}.invoice-request-dialog article small{color:#778da1}.invoice-request-dialog [data-ir-reject-form] label{grid-column:1/-1}.invoice-request-dialog button:disabled{opacity:.5;cursor:wait}#invoiceRequestsPanel{margin-bottom:24px;border:1px solid #dce8ed;border-radius:10px;padding:20px}#invoiceRequestsPanel .detail-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px}#invoiceRequestsPanel .table-wrap{overflow:auto}#invoiceRequestsPanel table{width:100%;border-collapse:collapse}#invoiceRequestsPanel th,#invoiceRequestsPanel td{padding:12px;text-align:left;border:1px solid #e1ebef}#invoiceRequestsPanel th{background:#edf5f8}#invoiceRequestsPanel small{color:#6b8198}#orderDetailDialog [data-ir-open]{margin-top:12px}@media(max-width:600px){.invoice-request-dialog form{grid-template-columns:1fr}.invoice-request-dialog .ir-body{padding:16px}.invoice-request-dialog>header{padding:16px}.invoice-request-dialog h2{font-size:18px}}
#orderDetailTabs [data-ir-open]{margin:0;border:0;background:transparent;border-radius:6px;padding:12px 18px;font:inherit;color:inherit;white-space:nowrap}#orderDetailTabs [data-ir-open]:hover{background:#d0f5ec;color:#008b7d}.ir-cost-preview{grid-column:1/-1;background:#eef8f6;padding:12px;border-radius:6px;color:#007f73}#retiredInvoiceChain{display:none!important}#financeInvoiceSection .eb-bar,#financeInvoiceSection .eb-note,#financeInvoiceSection .eb-rail,#financeInvoiceSection .eb-check{display:none!important}

/* Invoice applications use the same wide form hierarchy as sales orders. */
@layer plan01 {
html body dialog.invoice-request-dialog{width:min(1280px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;margin:auto!important;padding:0!important;border:1px solid #dce8ed!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important;color:#1c293d!important;}
html body dialog.invoice-request-dialog[open]{display:flex!important;flex-direction:column!important;}
html body dialog.invoice-request-dialog>header{position:static!important;flex-shrink:0!important;padding:20px 28px!important;background:#fff!important;border-bottom:1px solid #dce8ed!important;}
html body dialog.invoice-request-dialog h2{font-size:26px!important;color:#1c293d!important;}
html body dialog.invoice-request-dialog .ir-body{overflow:auto!important;flex:1!important;min-height:0!important;padding:24px 28px!important;}
html body dialog.invoice-request-dialog form[data-ir-form]{display:block!important;}
html body dialog.invoice-request-dialog .ir-order-summary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-bottom:20px;color:#597185;}
html body dialog.invoice-request-dialog .ir-order-summary strong{color:#1c293d;}
html body dialog.invoice-request-dialog .ir-section{padding:20px;margin:0 0 20px;border:1px solid #dce8ed;border-radius:8px;background:#fff;}
html body dialog.invoice-request-dialog h3{font-size:18px!important;margin:0 0 18px!important;color:#1c293d!important;}
html body dialog.invoice-request-dialog .ir-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
html body dialog.invoice-request-dialog label{color:#597185!important;font-size:14px!important;}
html body dialog.invoice-request-dialog input,html body dialog.invoice-request-dialog select{min-width:0!important;font-size:15px!important;}
html body dialog.invoice-request-dialog .ir-muted{color:#71869b;font-size:13px;}
html body dialog.invoice-request-dialog .ir-table-wrap{overflow-x:auto;}
html body dialog.invoice-request-dialog table.ir-lines-table{width:100%;min-width:850px;border-collapse:collapse;table-layout:fixed;}
html body dialog.invoice-request-dialog .ir-lines-table th,html body dialog.invoice-request-dialog .ir-lines-table td{padding:10px;border:1px solid #e0ebef;text-align:left;}
html body dialog.invoice-request-dialog .ir-lines-table th{background:#eff6f8;color:#597185;font-size:14px;}
html body dialog.invoice-request-dialog .ir-lines-table th:first-child:has(+th:nth-child(7)){width:45px;}
html body dialog.invoice-request-dialog form .ir-lines-table th:first-child{width:44px;}
html body dialog.invoice-request-dialog form .ir-lines-table th:nth-child(2){width:22%;}
html body dialog.invoice-request-dialog form .ir-lines-table th:nth-child(4){width:70px;}
html body dialog.invoice-request-dialog input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;accent-color:#008b7d;}
html body dialog.invoice-request-dialog .ir-line-excluded{opacity:.5;}
html body dialog.invoice-request-dialog .ir-summary{background:#f4faf9;}
html body dialog.invoice-request-dialog .ir-summary>div{display:flex;justify-content:space-between;align-items:center;}
html body dialog.invoice-request-dialog [data-ir-total]{font-size:25px;color:#008b7d;}
html body dialog.invoice-request-dialog form footer{position:sticky!important;bottom:-24px!important;margin:0 -28px!important;padding:16px 28px!important;background:#fff!important;border-top:1px solid #dce8ed!important;z-index:3;}
html body dialog.invoice-request-dialog .ir-history{margin-top:32px;color:#597185;}
html body dialog.invoice-request-dialog .ir-history summary{cursor:pointer;padding:12px 0;}
html body dialog.invoice-request-dialog .primary-button{background:#008b7d!important;color:#fff!important;border-color:#008b7d!important;}
@media(max-width:800px){html body dialog.invoice-request-dialog .ir-fields{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){html body dialog.invoice-request-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;}html body dialog.invoice-request-dialog>header{padding:16px!important;}html body dialog.invoice-request-dialog h2{font-size:21px!important;}html body dialog.invoice-request-dialog .ir-body{padding:16px!important;}html body dialog.invoice-request-dialog .ir-fields{grid-template-columns:1fr;}html body dialog.invoice-request-dialog .ir-section{padding:14px;}html body dialog.invoice-request-dialog form footer{bottom:-16px!important;margin:0 -16px!important;padding:12px 16px!important;}}
}

@layer plan01 {html body dialog.invoice-request-dialog table.ir-lines-table{min-width:850px!important;width:100%!important;}html body dialog.invoice-request-dialog .ir-lines-table input:not([type=checkbox]){width:100%!important;} }

@layer plan01 {
html body #invoiceAttachmentSection{margin:20px 0;padding:20px;border:1px solid #dce8ed;border-radius:8px;background:#f5faf9;}
html body #invoiceAttachmentSection h3{margin:0 0 8px;color:#1c293d;font-size:18px;}html body #invoiceAttachmentSection h3 span{color:#b54737;font-size:13px;}
html body #invoiceAttachmentSection p{color:#597185;font-size:14px;}html body #invoiceAttachmentSection input[type=file]{display:block;width:100%;padding:12px 0;}
html body #invoiceAttachmentList article{display:flex;gap:16px;align-items:center;padding:12px;border-top:1px solid #dce8ed;}
html body #invoiceAttachmentList img{width:100px;height:80px;object-fit:contain;background:white;}
html body #invoiceAttachmentList strong{display:block;overflow-wrap:anywhere;}html body #invoiceAttachmentList button{margin:8px 8px 0 0;padding:8px 12px;border:1px solid #cbdde5;border-radius:6px;background:white;color:#008b7d;}
html body #invoiceDialog .dialog-actions{position:sticky;bottom:0;background:white;z-index:4;padding:16px 0;border-top:1px solid #dce8ed;}
html body #workbenchInvoiceNotifications{margin:0 0 20px;padding:24px;border:1px solid #dce8ed;border-radius:10px;background:white;}
html body #workbenchInvoiceNotifications .detail-panel-header,html body #workbenchInvoiceNotifications article{display:flex;align-items:center;justify-content:space-between;gap:16px;}
html body #workbenchInvoiceNotifications article{padding:16px 0;border-top:1px solid #e1ebef;}html body #workbenchInvoiceNotifications h3{color:#1c293d;font-size:20px;margin:0;}html body #workbenchInvoiceNotifications p{color:#71869b;}
html body #workbenchInvoiceNotifications button,html body [data-invoice-file]{padding:10px 14px;border:1px solid #cbdde5;border-radius:6px;background:#fff;color:#008b7d;cursor:pointer;}
html body .invoice-full-image{display:block;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important;}
html body .invoice-download{display:inline-block;padding:12px 16px;background:#008b7d;color:white;border-radius:6px;}
html body .invoice-file-actions{display:flex;gap:12px;flex-wrap:wrap;}
@media(max-width:600px){html body #invoiceAttachmentSection,html body #workbenchInvoiceNotifications{padding:14px;}html body #workbenchInvoiceNotifications article{align-items:flex-start;flex-direction:column;}}
}

@layer plan01 {
#invoiceDialog { width:min(1440px,96vw)!important; max-width:96vw!important; max-height:94dvh!important; padding:0!important; }
#invoiceDialog #invoiceForm {width:100%!important;max-width:none!important;display:flex!important;flex-direction:column!important;gap:20px!important;padding:24px!important;box-sizing:border-box;}
#invoiceForm>.form-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;}
#invoiceForm #invoiceTaxHint {grid-column:1/-1;}
#invoiceForm>.dialog-header {order:-1;position:static!important;}
#invoiceForm>.dialog-actions {order:99!important;position:static!important;display:flex;justify-content:flex-end;border-top:1px solid #dce8ee;padding-top:18px;}
#invoiceForm>label,#invoiceForm>section {width:100%;box-sizing:border-box;}
#invoiceForm .ir-fields,.invoice-request-dialog .ir-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.ir-history table {width:100%;border-collapse:collapse;}
.ir-history th,.ir-history td {padding:14px;text-align:left;border:1px solid #dce8ee;}
.ir-history th {background:#eef6f8;}.ir-history small {color:#70869a;}.ir-history button{margin:3px;}
.ir-new>summary {display:inline-block;padding:12px 20px;border-radius:7px;background:#008c7e;color:white;font-weight:600;cursor:pointer;margin-bottom:18px;}
.ir-excess {padding:14px;background:#fff7e9;border:1px solid #ecd3a6;border-radius:8px;color:#805b24;}
.ir-excess input {width:auto!important;margin-right:8px;}
@media(max-width:760px){#invoiceForm>.form-grid,#invoiceForm .ir-fields,.invoice-request-dialog .ir-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;}#invoiceDialog #invoiceForm{padding:16px!important;}}
@media(max-width:480px){#invoiceForm>.form-grid,#invoiceForm .ir-fields,.invoice-request-dialog .ir-fields{grid-template-columns:1fr!important;}}
}

@layer plan01 {#invoiceForm>label.ir-excess {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:10px;}#invoiceForm>label.ir-excess input {width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;}}
