.home-split{height:calc(100dvh - 115px);display:flex!important;flex-direction:column;min-height:400px}.home-split .hm-heading{flex-wrap:wrap;flex:none;gap:10px}.home-split-body{display:grid;grid-template-columns:minmax(310px,var(--list-width,40%)) 10px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}.home-split-body>.hm-list,.home-split-body>#home-detail{min-height:0;overflow:auto;margin:0!important}.home-split-body>#home-detail{padding:0 8px 16px 12px}.home-divider{cursor:col-resize;touch-action:none;background:linear-gradient(90deg,transparent 4px,#a8bbb1 4px,#a8bbb1 6px,transparent 6px)}.home-divider:hover,.home-divider:focus{background:#d0e5dc}.home-split .hm-search{display:flex!important;flex-wrap:wrap;gap:6px}.home-split .hm-search input,.home-split .hm-search select{min-width:0;max-width:100%;flex:1 1 130px}.home-split #home-query{flex-basis:100%}.home-split .hm-bulk{display:flex;flex-wrap:wrap;gap:5px}.home-split .hm-table-scroll{overflow:visible}.home-compact-table{width:100%!important;min-width:0!important;table-layout:fixed}.home-compact-table td{padding:7px 5px!important;height:auto!important;border-bottom:1px solid #d7e0da;white-space:normal!important}.home-compact-table .home-pick-cell{width:46px;padding:0!important}.home-pick-area{width:46px;min-height:70px;border:0;background:transparent;cursor:pointer;font-size:24px;color:#245b49;border-radius:7px}.home-pick-area:hover,.home-pick-area:focus-visible{background:#d9eae2;outline:2px solid #44856d}.home-pick-area[aria-checked=true]{background:#d4e7dd}.home-card{display:flex;align-items:center;gap:8px;min-width:0}.home-card img,.home-card .no-image{width:42px!important;height:42px!important;object-fit:contain;flex:none}.home-card-text{min-width:0;flex:1}.home-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px}.home-line .tag{font-size:11px;white-space:nowrap}.home-secondary{font-size:11px;margin-top:5px;color:#64756d;overflow-wrap:anywhere}.home-compact-table tr.selected{background:#e3eee8;box-shadow:inset 3px 0 #245b49}.home-split #home-detail .hm-top,.home-split #home-detail .hm-middle{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.home-split #home-detail section.hm-resizable{min-width:0!important;min-height:0!important}.home-split #home-detail .hm-fields{min-width:0}.home-split #home-detail .hm-copy{min-height:60px}.home-split #home-order-actions{position:sticky;top:0;z-index:2;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px;background:#fff}.home-split .home-order-buttons{display:flex;flex-wrap:wrap;gap:5px}.home-empty{display:grid;place-content:center;min-height:320px;text-align:center;color:#738278;padding:24px}.home-progress{display:flex;align-items:center;gap:9px;border:1px solid #c4d8cc;background:#fff;border-radius:9px;padding:9px 14px;cursor:pointer}.home-progress small{color:#517260}.home-pipeline{max-width:1000px;padding:12px}.home-pipeline ol{display:flex;list-style:none;padding:0;gap:5px;flex-wrap:wrap;margin:25px 0}.home-pipeline li{flex:1;min-width:105px;background:#f0f3f0;border-radius:12px;padding:18px 10px;display:grid;gap:9px;text-align:center;color:#79847d}.home-pipeline li.current{background:#205a47;color:white;box-shadow:0 0 0 3px #a6d2be}.home-pipeline li.visited{background:#dcebe3;color:#245b49}.pipeline-dot{border:1px solid currentColor;border-radius:50%;width:28px;height:28px;line-height:28px;margin:auto}.pipeline-history{max-height:300px;overflow:auto}.pipeline-history p{display:flex;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e1e7e2;padding:10px}.pipeline-history time{font-size:12px;color:#78857c}.intake-choices{display:flex;gap:16px;flex-wrap:wrap;padding:20px}.intake-choices p{flex-basis:100%}@media(max-width:1000px){.home-split #home-detail .hm-top,.home-split #home-detail .hm-middle{grid-template-columns:1fr!important}}@media(max-width:720px){.home-split{height:auto}.home-split-body{display:flex;flex-direction:column;overflow:visible}.home-split-body>.hm-list{max-height:45dvh}.home-divider{display:none}.home-split-body>#home-detail{overflow:visible}}

/* Override persisted legacy panel order: fixed master/detail grid positions. */
.home-split-body>.hm-list{grid-column:1!important;grid-row:1!important;order:0!important;width:auto!important;height:auto!important;resize:none!important}
.home-split-body>.home-divider{grid-column:2!important;grid-row:1!important;order:0!important}
.home-split-body>#home-detail{grid-column:3!important;grid-row:1!important;order:0!important}
.home-split .hm-heading{justify-content:flex-start!important}.home-split .hm-heading h1{margin-right:12px}.home-split .hm-bulk,.home-split [data-view="shipping"],.home-split .hm-layout-tools{display:none!important}
.home-split #home-detail .hm-value{white-space:pre-wrap;overflow-wrap:anywhere}.home-split #home-detail>button{margin-bottom:12px}
input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px;accent-color:#205a47;cursor:pointer}
.km-check-hit{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;box-sizing:border-box;border-radius:7px;cursor:pointer;flex:none}.km-check-hit:hover{background:#e0eee6}.km-check-hit:focus-within{outline:2px solid #47866b}.km-select-all{display:flex;align-items:center;gap:6px;font-size:13px;margin:4px 0}.check{min-height:44px;cursor:pointer}

.home-current-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;position:sticky;top:0;background:#fff;padding:12px;border:1px solid #d5e2d9;z-index:3;margin-bottom:12px}.home-current-actions .workflow-row-actions{display:flex;gap:6px;flex-wrap:wrap}
body.orders-view #content.paper-organized{display:flex!important;flex-direction:column!important;min-height:0;height:calc(100dvh - 90px);overflow:hidden}
.paper-organized>.paper-workspace-tabs{display:flex!important;justify-content:flex-start!important;gap:8px;margin:0;padding:6px 12px;flex:none}
body.orders-view #content.paper-organized>.workspace{display:grid!important;grid-template-columns:minmax(340px,30%) minmax(0,1fr)!important;flex:1!important;min-height:0!important;height:auto!important;overflow:hidden}
.paper-organized .order-pane{display:flex!important;flex-direction:column!important;width:auto!important;min-width:0!important;min-height:0!important;overflow:hidden!important;padding:8px 12px!important;gap:6px!important}
.paper-organized .order-pane>.search,.paper-organized .order-pane>select{min-height:34px!important;margin:0!important;padding:6px 9px!important}
.paper-organized .order-pane>.pane-heading{margin:0!important;padding:2px 0!important}.paper-advanced{font-size:12px;padding:3px 0}.paper-advanced .ticket-date-tools{display:flex;flex-wrap:wrap}
.paper-organized .piece-list{flex:1!important;min-height:0!important;overflow-y:auto!important;max-height:none!important;margin:0!important}
.paper-organized .piece-card{display:flex!important;align-items:center;gap:6px;min-height:70px!important;height:auto!important;padding:6px!important;width:100%;margin:0 0 4px!important;text-align:left}
.compact-ticket-row{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.compact-ticket-row>img,.compact-ticket-row>.no-image{width:42px!important;height:42px!important;object-fit:contain;flex:none}.compact-ticket-row>div{min-width:0}.compact-ticket-row small{display:block;font-size:11px;overflow-wrap:anywhere;line-height:1.4;margin-top:4px}.ticket-line{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:12px}.ticket-line .tag{font-size:10px}
.paper-organized .csv-group-heading{padding:4px 8px!important;font-size:11px;min-height:0!important}.paper-organized .csv-group-heading small{display:inline!important;margin-left:8px}
.paper-organized .paper-list-tools{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;gap:5px;padding:4px 0!important;flex:none}.paper-list-tools>b{font-size:12px;flex-basis:100%}
.paper-organized .ticket-work{display:flex!important;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.paper-organized .workflow-slip-actions{display:flex!important;justify-content:flex-start!important;flex-wrap:wrap;gap:8px;padding:7px 10px;margin:0!important;flex:none}.paper-organized .workflow-row-actions{display:flex!important;flex-wrap:wrap;gap:5px}.paper-organized .desk-toolbar{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;gap:8px;padding:5px 10px;flex:none}.paper-organized .document-tools{display:flex;flex-wrap:wrap;justify-content:flex-start!important;gap:5px}.paper-organized .document-tools [data-print]{margin-left:8px}
.workflow-overlay{position:fixed!important;inset:8px!important;width:auto!important;height:auto!important;max-width:none!important;display:flex;flex-direction:column;background:#f3f6f2;z-index:1000}.workflow-overlay>header{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:6px 14px;flex:none}.workflow-overlay>iframe{flex:1;width:100%;min-height:0;border:0}.workflow-embedded .topbar,.workflow-embedded .rail{display:none!important}.workflow-embedded main{margin:0!important;padding:0!important}.workflow-embedded.orders-view #content.paper-organized{height:100dvh!important}.workflow-embedded .workspace-backbar{display:none!important}
@media(max-width:900px){body.orders-view #content.paper-organized>.workspace{grid-template-columns:290px minmax(0,1fr)!important}}

.home-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:8px;background:#e4eee8;position:sticky;top:0;z-index:3}.home-selection-actions[hidden]{display:none!important}.home-selection-actions>b{font-size:12px}.home-selection-actions .mini-btn{padding:6px;font-size:12px}
body.orders-view #content.paper-organized>.paper-workspace-tabs{justify-content:flex-start!important;gap:8px!important}
body.orders-view #content.paper-organized .order-pane>.km-select-all{order:0;margin:0;min-height:36px}
body.orders-view #content.paper-organized .piece-card .km-check-hit input{position:static!important;margin:0!important}
body.orders-view #content.paper-organized .ticket-work{height:auto!important}
body.orders-view #content.paper-organized .slip-desk{flex:1 1 0!important;min-height:0!important}
body.orders-view #content.paper-organized .slip-return-bar{display:none!important}

.payment-badge{display:inline-block;border-radius:5px;padding:3px 7px;font-size:11px;white-space:nowrap;background:#fff1ce;color:#684700}.payment-paid{background:#d7eee1;color:#165037}.payment-unpaid{background:#fbe3dc;color:#963423}.payment-panel{padding:12px;background:white;border:1px solid #cbd8d0;margin:8px 0}.payment-panel small{display:block;margin:6px 0}.payment-panel button{margin-left:8px}

/* Order fields remain editable; notes have usable, resizable height. */
.home-split #home-detail .hm-requests-panel,.home-split #home-detail [data-layout-key="memo"]{min-height:180px!important;resize:vertical!important;overflow:auto}
.home-split #home-detail textarea{min-height:120px;width:100%;resize:vertical}
.home-split #home-order-actions{position:static;padding:8px;margin:0 0 8px;min-height:0}
.home-split #home-detail .hm-edit{cursor:pointer;text-align:left;border:0;background:transparent;padding:2px 4px;border-bottom:1px dashed #a6bcb2}
.home-split #home-detail .hm-edit:hover{background:#edf5f0}
