/* One compact context bar, one filter row, two usable panes. */

.home-split{height:calc(100dvh - 94px);min-height:400px}

.home-split .hm-heading{margin:0 0 6px;gap:6px 12px;align-items:center;flex-wrap:wrap}

.home-split .hm-heading h1{font-size:21px;margin:0!important;flex:none}

.home-split .home-progress{padding:6px 9px;gap:6px;min-height:36px}

.home-split .home-progress small{font-size:11px}

.home-split .home-summary{display:flex;align-items:center;justify-content:flex-end;flex:1 1 560px;gap:8px 14px;flex-wrap:wrap;min-width:0}

.home-split .home-current-actions{position:static;margin:0;padding:0;border:0;background:transparent;gap:5px;display:flex;align-items:center;flex-wrap:wrap;z-index:auto}

.home-split .home-current-actions>b{display:none}

.home-split .payment-panel{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;padding:7px 10px;background:#fff;border:1px solid #cfddd5;border-radius:7px;min-height:36px;box-sizing:border-box;font-size:12px}

.home-split .payment-panel button{margin:0}.payment-amount{font-size:17px;white-space:nowrap;color:#173e32}

.payment-cod{background:#e7edf6;color:#324b71}.payment-dialog-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 0}.payment-dialog-summary strong{font-size:24px}

.home-split .home-filter-bar{display:flex!important;align-items:center;flex-wrap:nowrap;gap:7px;margin:0 0 8px;padding:0;flex:none;width:100%}

.home-split .home-filter-bar select{flex:0 1 145px;width:145px;min-width:100px;height:36px;margin:0;padding:6px 8px;font-size:13px}

.home-split .home-filter-bar #home-query{flex:1 1 260px;min-width:180px;height:36px;margin:0;font-size:14px;padding:7px 10px}

.home-filter-bar button,.home-filter-bar strong{flex:none;white-space:nowrap}.home-filter-bar [data-payment-connections]{margin-left:5px}

.home-split-body>.hm-list{display:flex!important;flex-direction:column;overflow:hidden!important;gap:0}

.home-split .hm-table-scroll{flex:1;min-height:100px!important;height:auto!important;overflow:auto!important;max-height:none}

.home-split .km-select-all{position:sticky;top:0;z-index:2;background:#fff;margin:0;border-bottom:1px solid #d5dfd7;padding:0 4px;min-height:44px}

.home-split #home-detail{display:block!important;align-content:start;padding-top:0!important}

.home-split #home-detail>.hm-top,.home-split #home-detail>.hm-middle{width:100%;gap:10px!important}

.home-split #home-detail .hm-top>section,.home-split #home-detail .hm-middle>section{align-self:start;min-height:0!important}

.home-split .hm-dates{grid-column:auto;display:block}.home-split .hm-middle{margin-top:10px}

.home-split .hm-middle>section:last-child{grid-column:auto}

.home-split #work-import-focus{display:flex;align-items:center;gap:8px;font-size:12px;padding:0;margin:0 0 5px;flex:none}

.home-split [data-home-layout-reset]{display:inline-flex!important}

#message:not([hidden]){position:fixed;right:20px;bottom:20px;top:auto;z-index:2000;width:max-content;max-width:min(580px,calc(100vw - 40px));max-height:35vh;overflow:auto;box-sizing:border-box;padding:14px 44px 14px 16px;margin:0;border-radius:9px;box-shadow:0 5px 25px #173e3226;font-size:14px;line-height:1.5}

#modal-feedback{position:relative;margin:0 0 12px;padding:10px 40px 10px 12px;border-radius:6px;font-size:14px;line-height:1.5}

#modal-feedback[hidden],#message[hidden]{display:none!important}

.payment-sync-view,.payment-sync-result{max-width:760px}.payment-last{margin-top:18px}.payment-last small{color:#67776f}

.payment-missing{border:1px solid #e0c88e;background:#fff9eb;border-radius:8px;padding:12px;margin:14px 0}.payment-missing summary{cursor:pointer;font-weight:600}.payment-missing ul{padding-left:20px;max-height:35vh;overflow:auto;margin-bottom:0}.payment-missing li{padding:7px 0}.payment-missing li span{display:block;font-size:13px;line-height:1.5}

.payment-history{padding:10px 0;font-size:13px}.payment-history summary{cursor:pointer}.payment-history p{margin:7px 0}

#payment-form{display:grid;gap:14px;max-width:640px}#payment-form label:not(.check){display:grid;gap:6px}#payment-form>small{font-size:12px;color:#617067}#payment-form>.check{display:flex;align-items:center;gap:8px}

.shop-order-read{max-width:800px}.intake-mode{display:flex;gap:20px;flex-wrap:wrap;margin:0 0 20px}.intake-mode label{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:36px}.intake-mode input{width:auto!important}

.cutoff-controls,.holiday-add{display:flex;align-items:end;gap:10px;margin-bottom:16px}.cutoff-controls[hidden]{display:none}.cutoff-controls label,.intake-period-fields label{display:grid;gap:6px;font-size:14px}.cutoff-controls input{width:auto}.intake-period-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.intake-period-fields input{width:100%;box-sizing:border-box;font-size:16px}.intake-period-fields input[readonly]{background:#f0f4f0;color:#566b60}.period-summary{font-size:14px;font-weight:600}.intake-explanation{font-size:13px;line-height:1.6;color:#5b7064}.shop-order-read small{font-size:13px}.shop-order-read>p{line-height:1.6}

#company-holiday-list{list-style:none;padding:0;max-height:35vh;overflow:auto}#company-holiday-list li{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 0;border-bottom:1px solid #e3ebe6}

@media(max-width:1000px){.home-split .home-filter-bar{flex-wrap:wrap}.home-split .home-filter-bar #home-query{flex:1 1 240px}.home-split .home-summary{justify-content:flex-start}.home-split .home-filter-bar select{flex:1 1 115px}.home-split .hm-heading{gap:7px}}

@media(max-width:720px){.home-split{height:auto}.home-split-body>.hm-list{max-height:50dvh;min-height:260px}.home-split .home-summary{flex-basis:100%}.intake-period-fields{grid-template-columns:1fr}}



.payment-sync-actions{display:flex;gap:10px;flex-wrap:wrap}.payment-sync-view details{margin-top:16px}.payment-cancelled,.payment-failed,.payment-cancel_pending{background:#fbe3dc;color:#913322}.payment-cancel-alert{padding:12px;border:1px solid #cf7967;background:#fff0eb;border-radius:8px}.payment-authorized,.payment-review,.payment-pending{background:#fff1ce;color:#684700}.payment-not_required{background:#e4eee9;color:#285040}


/* Preserve order editing controls inside the compact detail pane. */
.home-split #home-order-actions{position:static!important;padding:8px!important;margin:0 0 10px!important;min-height:0!important;grid-column:1/-1}
.home-split #home-order-actions>strong{font-size:12px}
.home-split #home-detail .hm-inline{background:#fff;border:1px solid #b6c9be;border-radius:4px;padding:5px;min-width:0;width:100%;box-sizing:border-box}
.home-split #home-detail .hm-middle>section:has(#home-bom-form){grid-column:1/-1}
.home-split #home-detail .hm-middle>section:has(#home-note),.home-split #home-detail .hm-middle>section:has(#home-options){min-height:180px!important;resize:both!important;overflow:auto!important}
.home-split #home-detail textarea{width:100%;min-height:110px;resize:vertical;box-sizing:border-box}
.home-split #home-detail .hm-bom{overflow-x:auto}

/* Independent panel sizing, persisted by homeLayoutApply. */
.home-split #home-detail .hm-top,.home-split #home-detail .hm-middle{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:12px!important}
.home-split #home-detail section.hm-resizable{flex:0 0 auto;width:calc(50% - 6px);height:auto;max-width:100%;min-width:260px!important;min-height:160px!important;resize:both!important;overflow:auto!important;box-sizing:border-box}
.home-split #home-detail section.hm-resizable:has(#home-bom-form){width:100%}
.home-split #home-detail .hm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.home-split #home-detail .hm-field{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;min-height:40px;gap:6px}
.home-split #home-detail .hm-field>span{white-space:normal}
.home-split #home-detail .hm-field>.hm-value{min-width:0;width:100%;margin:0;box-sizing:border-box}
.home-split #home-detail .hm-requests-panel{resize:both!important}
@media(max-width:1100px){.home-split #home-detail section.hm-resizable{width:100%}.home-split #home-detail .hm-fields{grid-template-columns:1fr}}
.shop-order-read [hidden]{display:none!important}
.shop-order-read fieldset{min-width:0;margin:12px 0;border:1px solid #b7c8bd;padding:12px}

.payment-procedure_complete{background:#d7eee1;color:#165037}
