/* Compact grouped manufacturing orders. */
.factory-group{border:1px solid #dcd9d2;border-radius:9px;background:#fff;margin:0 0 15px;overflow:visible}.factory-group-head{display:flex;align-items:center;gap:13px;width:100%;border:0;background:transparent;text-align:left;padding:19px 20px;color:inherit}.factory-group-head>span:nth-child(2){flex:1}.factory-group-head b{font-size:17px}.factory-group-head small{display:block;font-size:12px;color:#777;margin-top:6px;font-weight:400}.factory-group-arrow{font-size:27px;min-width:21px;line-height:1}.factory-group-due{text-align:right}.factory-group-due b{font-size:13px}.factory-group-due small{margin:0 0 5px}.factory-group-body{padding:0 16px 14px}.factory-order-table{width:100%;font-size:13px}.factory-order-table th{font-size:11px;font-weight:500;background:#f4f4f1;padding:12px 8px;white-space:nowrap}.factory-order-table td{padding:15px 8px;vertical-align:middle}.factory-order-table td small{display:block;font-size:11px;color:#888;line-height:1.5;margin-top:4px}.factory-order-table td:nth-child(7){min-width:120px}.factory-order-table td:nth-child(7)>b{font-size:12px}.factory-order-table .factory-rate-edit{font-size:16px;padding:5px;min-width:30px}.factory-item-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}.factory-item-actions>button{padding:8px 9px;font-size:12px;min-height:36px}.factory-gp-button{background:#edf4e9;border-color:#c5d8bd;color:#386c37}.factory-item-more{position:relative}.factory-item-more>summary{list-style:none;font-size:22px;padding:4px;cursor:pointer}.factory-item-more>summary::-webkit-details-marker{display:none}.factory-item-more>div{position:absolute;right:0;top:34px;z-index:12;padding:6px;width:180px;border:1px solid #ddd;background:white;border-radius:6px;box-shadow:0 5px 18px #0002}.factory-item-more button{display:block;width:100%;border:0;text-align:left;font-size:12px;padding:10px;background:#fff}.factory-group footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 2px 0;border-top:1px solid #ece9e2;font-size:12px}.factory-group footer small{font-size:11px;color:#888}.factory-group-shift{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#fff4e6;color:#98602d;padding:9px 11px;margin:8px 0;border-radius:5px;font-size:12px;line-height:1.5}.factory-group-shift>span{flex:1;min-width:0}.factory-group-shift>button{border:0;background:transparent;color:#b35d24;font-size:12px;flex-shrink:0}.factory-inline-row>td{padding:6px 8px 16px}.factory-gp-count{color:#477848}
/* Warehouse calendar and reservation drawer. */
.warehouse-heading,.warehouse-toolbar,.warehouse-toolbar>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.warehouse-heading{margin-bottom:18px}.warehouse-heading h2{font-size:24px;margin:0 0 7px}.warehouse-heading p{font-size:12px;color:#777;margin:0}.warehouse-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.warehouse-layout.with-drawer{grid-template-columns:minmax(0,1fr) 335px}.warehouse-main{min-width:0}.warehouse-toolbar{margin-bottom:14px}.warehouse-toolbar>div{justify-content:flex-start}.warehouse-toolbar b{font-size:13px}.warehouse-toolbar button{padding:6px 9px;min-height:34px;font-size:12px}.warehouse-toolbar>label{display:flex;align-items:center;gap:6px;font-size:11px;color:#777;margin:0}.warehouse-toolbar input{width:15px;height:15px;margin:0}.warehouse-calendar{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));overflow-x:auto;border:1px solid #dedbd4;border-radius:7px;min-height:325px}.warehouse-day{min-width:0;display:flex;flex-direction:column;background:#fdfdfb;border-right:1px solid #e5e2db;padding:9px 5px}.warehouse-day:last-child{border-right:0}.warehouse-day.today{background:#fff9f1}.warehouse-day>header{display:flex;flex-direction:column;gap:6px;align-items:center;padding:4px 2px 12px;border-bottom:1px solid #e9e6df}.warehouse-day>header>b{text-transform:capitalize;font-size:14px}.warehouse-day>header>span{font-size:10px;text-align:center;color:#777;line-height:1.4}.warehouse-day>div{flex:1;padding-top:9px}.warehouse-card{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;border:1px solid #dcd8d0;border-left:3px solid #c98c5a;background:#fff;padding:8px 6px;margin:0 0 8px;border-radius:5px;color:inherit}.warehouse-card b{font-size:11px;line-height:1.4}.warehouse-card span,.warehouse-card small{font-size:10px;line-height:1.5;color:#777}.warehouse-card em{align-self:flex-start;font-size:10px;line-height:1.4;font-style:normal;border-radius:3px;background:#fff2df;color:#a76b33;padding:3px 4px}.warehouse-card.prepared{border-left-color:#709c6a}.warehouse-card.prepared em{background:#e9f3e5;color:#46733d}.warehouse-card.shipped{border-left-color:#9ca8ad}.warehouse-card.shipped em{background:#eef0f1;color:#6b757a}.warehouse-card.cancelled{opacity:.65;border-left-color:#b2b2b2}.warehouse-card.cancelled em{background:#eee;color:#777}.warehouse-empty{color:#aaa;font-size:10px;display:block;text-align:center;padding:16px 0}.warehouse-add{width:100%;border:0;background:transparent;color:#999;font-size:10px;padding:8px 1px;margin-top:10px;white-space:normal}.warehouse-preview{display:flex;flex-direction:column;gap:5px;border:1px dashed #ee8150;border-radius:5px;padding:7px;margin-bottom:8px;background:#fff5e9}.warehouse-preview b{font-size:11px;color:#c85b22}.warehouse-preview small,.warehouse-preview span,.warehouse-preview em{font-size:10px;line-height:1.5;font-style:normal;color:#9c755b}.warehouse-stock-title{font-size:19px;margin:25px 0 14px}.warehouse-stock th{font-size:12px}.warehouse-stock td{font-size:13px}.warehouse-stock td small{display:block;color:#888;font-size:11px;margin-top:5px}.warehouse-stock td:not(:first-child),.warehouse-stock th:not(:first-child){text-align:right}.warehouse-drawer{border:1px solid #ddd9d1;background:#fff;padding:18px;border-radius:8px;align-self:start;position:sticky;top:12px;max-height:calc(100dvh - 40px);overflow-y:auto;min-width:0}.warehouse-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.warehouse-drawer-head h3{font-size:18px;line-height:1.5;margin:0}.warehouse-drawer-head>button{border:0;background:transparent;font-size:24px;padding:0 4px}.warehouse-drawer label{font-size:12px;margin:13px 0 0}.warehouse-drawer input,.warehouse-drawer select{font-size:13px;padding:9px;margin-top:6px;width:100%;min-height:39px}.warehouse-drawer details{font-size:11px;margin-top:12px;color:#888}.warehouse-drawer details>summary{cursor:pointer}.warehouse-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.warehouse-drawer h4{font-size:13px;margin:20px 0 10px}.warehouse-pick-list{border-top:1px solid #e8e5de}.warehouse-pick-list>label{display:flex;align-items:center;gap:8px;justify-content:space-between;border-bottom:1px solid #e8e5de;padding:9px 0;margin:0}.warehouse-pick-list>label>span{min-width:0}.warehouse-pick-list small{display:block;font-size:11px;color:#888;margin-top:4px;line-height:1.5}.warehouse-pick-list input{width:90px;margin:0}.warehouse-total{display:flex;align-items:center;justify-content:space-between;padding:10px;background:#fff6ec;font-size:13px}.warehouse-drawer [type=submit]{width:100%;font-size:13px;margin-top:14px;min-height:40px}.warehouse-drawer .small{font-size:11px;line-height:1.6}.warehouse-detail-items p{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e9e6df;padding:10px 0;font-size:13px}.warehouse-drawer>p{font-size:13px;line-height:1.6}.warehouse-detail-actions{display:grid;gap:8px;margin-top:16px}.warehouse-detail-actions button{font-size:12px;min-height:38px}.warehouse-history>p{display:flex;flex-direction:column;gap:5px;padding:10px 0;border-bottom:1px solid #eee;line-height:1.5}.warehouse-message{font-size:13px;line-height:1.6;padding:10px 13px;background:#fff5e7;border-left:3px solid #d59c5c;margin:0 0 15px}.warehouse-history b{font-size:12px}.warehouse-history small{font-size:11px}
@media(max-width:1000px){.warehouse-layout.with-drawer{grid-template-columns:minmax(0,1fr)}.warehouse-drawer{position:static;max-height:none;order:-1}.warehouse-heading h2{font-size:21px}}
@media(max-width:720px){.factory-group-head{padding:15px 12px;gap:8px;align-items:flex-start;flex-wrap:wrap}.factory-group-head b{font-size:17px}.factory-group-head small{font-size:12px}.factory-group-due{margin-left:29px;text-align:left;width:100%}.factory-group-due small{display:inline;margin-right:5px}.factory-group-due b{font-size:13px}.factory-group-body{padding:0 11px 12px}.factory-order-table,.factory-order-table tbody{display:block;width:100%}.factory-order-table thead{display:none}.factory-order-table tbody{border:1px solid #d5d0c8;border-left:3px solid #c5a285;border-radius:6px;margin:0 0 12px;padding:8px 10px}.factory-order-table tr.factory-item-row{display:block;border:0!important;margin:0!important;padding:0!important;box-shadow:none!important;background:transparent!important}.factory-order-table tr.factory-item-row td{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border:0;font-size:15px;min-width:0}.factory-order-table td small{font-size:12px}.factory-order-table td:first-child{flex-wrap:wrap;font-size:17px}.factory-order-table td:first-child:before{display:none}.factory-order-table td:first-child small{width:100%}.factory-order-table td:nth-child(7)>b{font-size:14px}.factory-order-table td:last-child:before{display:none}.factory-item-actions{width:100%;display:flex;flex-wrap:wrap}.factory-item-actions>button{font-size:14px;min-height:44px;flex:1}.factory-item-more>summary{min-width:36px;min-height:40px;display:grid;place-items:center}.factory-item-more button{font-size:14px;min-height:44px}.factory-inline-row{display:block!important;border:0!important;padding:0!important;box-shadow:none!important;margin:0!important}.factory-inline-row>td{display:block!important;padding:0!important}.factory-inline-row>td:before{display:none!important}.factory-group footer{font-size:13px}.factory-group-shift{display:block;font-size:13px}.factory-group-shift>button{font-size:13px;min-height:40px}.warehouse-calendar{grid-template-columns:repeat(7,minmax(140px,1fr))}.warehouse-day>header>span{font-size:12px}.warehouse-card{padding:10px 8px}.warehouse-card b{font-size:14px}.warehouse-card span,.warehouse-card small,.warehouse-card em{font-size:12px}.warehouse-add{font-size:13px;min-height:44px}.warehouse-toolbar button{min-height:44px}.warehouse-toolbar b{font-size:13px}.warehouse-toolbar>label{font-size:13px}.warehouse-drawer{padding:15px}.warehouse-drawer label{font-size:14px}.warehouse-drawer input,.warehouse-drawer select{font-size:16px;min-height:44px}.warehouse-drawer [type=submit],.warehouse-detail-actions button{font-size:14px;min-height:44px}.warehouse-drawer .small,.warehouse-drawer details{font-size:12px}.warehouse-pick-list small{font-size:12px}.warehouse-time-fields{gap:10px}.warehouse-stock td{font-size:14px}.warehouse-stock td small{font-size:12px}.warehouse-preview b{font-size:14px}.warehouse-preview span,.warehouse-preview small,.warehouse-preview em{font-size:12px}}

.factory-group-heading{display:flex;align-items:stretch;gap:12px;padding-right:24px}.factory-group-heading>.factory-group-head{flex:1;min-width:0;width:auto}.factory-group-heading>.factory-group-due{align-self:center;flex-shrink:0;margin:0;text-align:right;padding:12px 0}.factory-group-heading>.factory-deadline{border:0;background:transparent;cursor:pointer;border-radius:4px}.factory-deadline:hover{background:#f5f3ee}.factory-deadline span{font-size:12px;color:#9a7557}.warehouse-expected{border-left:3px solid #c8b59c!important;background:#f8f6f1!important}.warehouse-expected em{color:#7c725f}.warehouse-date-edit,.warehouse-request-link{border:0;background:transparent;padding:4px 0;font-size:inherit;text-align:left;cursor:pointer}.warehouse-date-edit:hover,.warehouse-request-link:hover{text-decoration:underline}.warehouse-request-note{font-size:12px;line-height:1.6;background:#f7f4ee;padding:10px}.warehouse-requests td{font-size:13px;line-height:1.6}
@media(max-width:720px){.factory-group-heading{flex-wrap:wrap;gap:0;padding:0 12px 12px}.factory-group-heading>.factory-group-head{width:100%;flex-basis:100%;padding-left:0}.factory-group-heading>.factory-group-due{margin-left:29px;text-align:left;padding:4px 0;max-width:calc(100% - 29px);width:auto}.factory-group-heading>.factory-group-due small{display:block;margin-bottom:4px}.warehouse-requests td{font-size:14px}.warehouse-date-edit,.warehouse-request-link{min-height:44px}.warehouse-request-note{font-size:13px}}

.factory-group-heading>.factory-group-due small{display:block;font-size:12px;line-height:1.5;color:#777;font-weight:400}.factory-group-heading>.factory-group-due b{display:block;font-size:13px;line-height:1.5}

.factory-item-actions{flex-direction:column;align-items:stretch;min-width:175px}.factory-item-actions>.factory-pack-button{border:1px solid #f4510b;color:#cf480d;background:#fff}.factory-item-more{align-self:flex-end}.factory-order-table td:nth-child(8)>b{font-size:12px}.warehouse-packaging{margin-top:26px;border-top:1px solid #e1ddd5;padding-top:20px}.warehouse-packaging h3{font-size:22px;border-left:3px solid #f4510b;padding-left:12px;margin:0 0 8px}.warehouse-packaging table{font-size:13px}.warehouse-packaging td small{display:block;margin-top:4px;color:#888;font-size:11px}.warehouse-pack-actions{display:flex;flex-direction:column;gap:6px}.warehouse-pack-actions button{font-size:12px;min-height:36px}.warehouse-pack-actions button+button{border:0;background:transparent;color:#777;font-size:11px}.warehouse-packaging .factory-inline-form{margin:4px 0}.warehouse-packaging input{max-width:440px}
@media(max-width:720px){.factory-item-actions{flex-direction:column;min-width:0}.factory-item-actions>button{flex:none}.factory-order-table td:nth-child(8)>b{font-size:14px}.warehouse-packaging table{font-size:14px}.warehouse-pack-actions button{font-size:14px;min-height:44px}.warehouse-packaging input{font-size:16px;min-height:44px}.warehouse-packaging td small{font-size:12px}}

.warehouse-remove{color:#966457;border-color:#ddcec8;background:#fff;font-size:12px}.warehouse-removed{margin-top:24px;padding:14px;border:1px solid #e2ddd5;border-radius:6px;font-size:13px}.warehouse-removed>summary{cursor:pointer}.warehouse-removed>p{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap}.warehouse-removed button{font-size:12px;min-height:36px}
@media(max-width:720px){.warehouse-removed,.warehouse-remove{font-size:14px}.warehouse-removed button,.warehouse-remove{min-height:44px}}

/* Inline forms must not inherit table nowrap/right alignment. */
#factorycontent .factory-inline-form{white-space:normal;text-align:left;width:100%;max-width:700px;min-width:0;margin:0;line-height:1.5}
#factorycontent .factory-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px;margin:18px 0}
#factorycontent .factory-inline-fields>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;max-width:none;margin:0;text-align:left;white-space:normal;font-size:13px}
#factorycontent .factory-field-hint{display:block;font-size:12px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
#factorycontent .factory-inline-fields input:not([data-crm-native]){display:block;width:100%;min-width:0;max-width:none;margin:0;min-height:44px}
#factorycontent .factory-inline-fields .crm-date-picker{align-self:flex-start;max-width:100%;min-height:40px;margin:0;padding:8px 12px;font-size:12px}
#factorycontent .factory-inline-form .factory-check{align-items:flex-start;white-space:normal;line-height:1.5;margin:14px 0 8px}
#factorycontent .factory-inline-form .factory-check input{flex:0 0 auto;margin:3px 0 0}
#factorycontent .factory-inline-form p{white-space:normal;overflow-wrap:anywhere;line-height:1.6;text-align:left}
#factorycontent .factory-inline-bottom{gap:12px;margin-top:16px;text-align:left}
@media(max-width:600px){
 #factorycontent .factory-inline-fields{grid-template-columns:minmax(0,1fr);gap:18px}
 #factorycontent .factory-inline-form{padding:14px}
 #factorycontent .factory-inline-fields>label{font-size:14px}
 #factorycontent .factory-inline-fields .crm-date-picker{min-height:44px;font-size:14px}
 #factorycontent .factory-inline-bottom{align-items:stretch}
}
/* Warehouse workspace: bounded calendar and one paginated section. */
.warehouse-calendar-compact{margin-bottom:22px;align-items:stretch}
.warehouse-calendar-compact .warehouse-day{min-height:210px;padding:10px;gap:7px}
.warehouse-calendar-compact .warehouse-day>header{padding-bottom:8px}
.warehouse-calendar-compact .warehouse-day>header>span{font-size:11px}
.warehouse-calendar-compact .warehouse-day-cards{flex:0 1 auto;min-height:90px;max-height:240px;overflow:auto;display:grid;gap:7px;align-content:start}
.warehouse-calendar-compact .warehouse-card{margin:0;padding:8px;font-size:12px;min-width:0;overflow-wrap:anywhere}
.warehouse-calendar-compact .warehouse-card>b{font-size:12px;line-height:1.4}
.warehouse-calendar-compact .warehouse-card span,.warehouse-calendar-compact .warehouse-card em{font-size:11px;line-height:1.4}
.warehouse-calendar-compact .warehouse-add{margin-top:auto;min-height:32px;padding:7px;font-size:12px}
.warehouse-more-day{padding:4px 2px;border:0;background:transparent;text-align:left;font-size:12px;color:var(--green)}
.warehouse-section-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);overflow-x:auto}
.warehouse-section-tabs>button{display:flex;align-items:center;gap:9px;white-space:nowrap;padding:14px 12px;border:0;border-radius:0;background:transparent;font-size:14px;color:#666}
.warehouse-section-tabs>button[aria-selected=true]{color:var(--green);box-shadow:inset 0 -2px var(--green)}
.warehouse-section-tabs>button>span{padding:2px 7px;border-radius:12px;background:#f0eeeb;font-size:12px;color:#666}
.warehouse-section-tabs>button[aria-selected=true]>span{background:var(--green);color:white}
.warehouse-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0 8px}
.warehouse-filters>label{display:flex;flex-direction:column;gap:6px;font-size:11px;margin:0;min-width:0;flex:1 1 145px;max-width:210px}
.warehouse-filters>label.warehouse-search-label{flex:2 1 240px;max-width:none}
.warehouse-filters input:not([type=checkbox]),.warehouse-filters select{min-height:40px;padding:9px 10px;font-size:13px;min-width:0;width:100%}
.warehouse-filters .crm-date-picker{align-self:flex-start;padding:5px 8px;font-size:11px;min-height:28px}
.warehouse-filters>label.warehouse-mine{flex:0 0 auto;flex-direction:row;align-items:center;min-height:40px;gap:7px;font-size:12px;max-width:none}
.warehouse-mine input{width:18px;height:18px;margin:0}
.warehouse-filters>button{min-height:40px;font-size:12px;padding:8px 10px}
.warehouse-filter-note{font-size:11px;line-height:1.5;color:#888;margin:6px 0 12px}
.warehouse-list-table{white-space:normal;min-width:740px;table-layout:auto}
#factorycontent .warehouse-list-table th{padding:11px 12px;font-size:11px;letter-spacing:0;text-transform:none;white-space:normal}
#factorycontent .warehouse-list-table td{padding:10px 12px;font-size:13px;vertical-align:middle;text-align:left;line-height:1.5}
.warehouse-order-summary{background:#f7f6f3}
.warehouse-order-toggle{border:0;background:transparent;display:flex;align-items:center;gap:10px;text-align:left;max-width:100%;padding:0}
.warehouse-order-toggle>span:first-child{display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #ddd7ce;border-radius:5px;background:#fff;font-size:23px;line-height:1}
.warehouse-order-toggle>span:last-child{min-width:0;overflow-wrap:anywhere}
.warehouse-order-toggle b{font-size:13px;line-height:1.5}
.warehouse-order-toggle small,.warehouse-article td>small{display:block;font-size:11px;color:#888;margin-top:3px}
.warehouse-urgency{display:inline-block;font-size:10px;font-weight:600;color:#876322;background:#fcf1d9;padding:2px 6px;border-radius:4px;white-space:nowrap}
.warehouse-urgency.urgent{color:#a13c20;background:#fff0e7;font-weight:800}
.warehouse-article td:first-child{padding-left:52px!important}
.warehouse-row-actions{display:flex;align-items:center;gap:7px}
.warehouse-row-actions>button,.warehouse-plan-group{padding:8px 10px;font-size:12px;white-space:normal}
.warehouse-plan-group{color:var(--green);border-color:var(--green)}
.warehouse-row-menu{position:relative;flex:0 0 auto}
.warehouse-row-menu>summary{display:grid;place-items:center;list-style:none;cursor:pointer;min-width:32px;min-height:36px;font-size:21px}
.warehouse-row-menu>div{display:flex;flex-direction:column;gap:5px;background:#fff;padding:8px;border:1px solid var(--line);border-radius:4px;min-width:145px}
.warehouse-row-menu button{font-size:12px;text-align:left;padding:7px}
.warehouse-inline-row td{white-space:normal}
.warehouse-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 0;font-size:12px;color:#777;flex-wrap:wrap}
.warehouse-pagination>span:first-child{margin-right:auto}
.warehouse-pagination>label{display:flex;align-items:center;gap:7px;font-size:12px;margin:0}
.warehouse-pagination select{width:auto;padding:6px 8px}
.warehouse-pagination button{padding:5px 11px;font-size:22px;min-width:36px}
.warehouse-no-results{text-align:center!important;padding:24px!important;color:#888}
@media(max-width:720px){
 .warehouse-calendar-compact{grid-template-columns:repeat(7,minmax(145px,1fr))}
 .warehouse-calendar-compact .warehouse-add,.warehouse-more-day{min-height:44px}
 .warehouse-section-tabs>button{font-size:14px;min-height:48px}
 .warehouse-filters{gap:10px}
 .warehouse-filters>label{flex:1 1 calc(50% - 10px);max-width:none;font-size:12px}
 .warehouse-filters>label.warehouse-search-label{flex-basis:100%}
 .warehouse-filters .crm-date-picker{min-height:36px;font-size:12px}
 .warehouse-filter-note{font-size:12px}
 .warehouse-list-wrap{overflow:visible}
 .warehouse-list-table,.warehouse-list-table tbody{display:block;width:100%;min-width:0}
 .warehouse-list-table thead{display:none}
 .warehouse-list-table tbody{margin:10px 0;border:1px solid #d5d0c8;border-left:3px solid #c5a285;border-radius:6px;overflow:hidden}
 #factorycontent .warehouse-list-table tr{display:block}
 #factorycontent .warehouse-list-table td{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;border-bottom:0;padding:8px 12px}
 .warehouse-list-table td:before{content:attr(data-label);color:#888;font-size:12px;flex:0 1 45%}
 .warehouse-list-table td:first-child:before,.warehouse-list-table td:last-child:before,.warehouse-inline-row td:before{display:none}
 .warehouse-order-toggle b{font-size:15px}
 .warehouse-order-toggle small{font-size:12px}
 .warehouse-article{border-top:1px solid var(--line)}
 .warehouse-article td:first-child{padding-left:16px!important;justify-content:flex-start!important;flex-wrap:wrap}
 .warehouse-row-actions{width:100%;justify-content:flex-end}
 .warehouse-row-actions>button,.warehouse-plan-group{min-height:44px;font-size:14px}
 .warehouse-order-summary td:last-child>button{margin-left:auto;min-height:44px}
 .warehouse-pagination{font-size:13px;gap:8px}
 .warehouse-pagination button{min-height:44px;min-width:44px}
 .warehouse-urgency{font-size:12px}
}

.warehouse-delete-completed{margin:16px 0;padding-top:14px;border-top:1px solid var(--line)}
.warehouse-delete-completed p{margin:8px 0;font-size:11px}
.warehouse-ledger-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}
.warehouse-ledger-list small{display:block;font-size:11px;color:#888;margin-top:5px;overflow-wrap:anywhere}
.warehouse-ledger-list b{font-size:13px}.warehouse-ledger-list button{flex-shrink:0}
@media(max-width:600px){.warehouse-ledger-list>div{align-items:flex-start;flex-wrap:wrap}.warehouse-ledger-list button{min-height:44px}}

label.crm-mine-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:9px;min-height:42px;padding:9px 12px;margin:0;border:1px solid #ded9d1;border-radius:6px;background:#fff;color:#777;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.crm-mine-toggle>svg{width:20px;height:20px;flex-shrink:0}
label.crm-mine-toggle>input[type=checkbox]{position:absolute;width:1px;height:1px;opacity:0;min-width:0;margin:0;padding:0}
label.crm-mine-toggle:has(input:checked){background:#fff1e7;border-color:#edb99a;color:var(--green)}
label.crm-mine-toggle:focus-within{outline:2px solid var(--green);outline-offset:2px}
.crm-mine-indicator{width:6px;height:6px;border-radius:50%;background:#d7d4cc}
.crm-mine-toggle:has(input:checked) .crm-mine-indicator{background:var(--green)}
@media(max-width:720px){label.crm-mine-toggle{min-height:44px;font-size:14px}}

/* Existing warehouse layout, clearer shipment allocation and completion. */
.warehouse-allocation{min-width:180px;white-space:normal;line-height:1.45}.warehouse-allocation small,.warehouse-shipment-dates small,.warehouse-list-table td>small{display:block;color:var(--muted,#777);margin-top:5px}.warehouse-allocation small button{padding:0;border:0;background:none;color:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px}.warehouse-shipment-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 16px}.warehouse-shipment-tabs button[aria-pressed=true]{color:var(--accent,#ff4b00);border-color:var(--accent,#ff4b00);background:#fff7f1}.warehouse-shipment-dates{border-bottom:1px solid #eee;padding-bottom:12px;margin-bottom:12px}.warehouse-order-summary td:last-child>button+button{margin-left:6px}@media(max-width:700px){.warehouse-allocation{min-width:0}.warehouse-shipment-tabs button{flex:1;font-size:13px}.warehouse-order-summary td:last-child>button+button{margin-left:0;margin-top:6px}}

.factory-new-client{font-size:12px;padding:5px 0!important;border:0!important;background:none!important;color:var(--accent,#ed4b12);align-self:flex-start}.factory-quick-client-backdrop{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:#0005;padding:16px}.factory-quick-client{width:min(470px,100%);max-height:90dvh;overflow:auto;background:#fff;border:1px solid #e9e9e9;border-radius:8px;padding:22px;box-shadow:0 14px 50px #0003}.factory-quick-client h2{font-size:22px}.factory-quick-client .modalhead{margin-bottom:14px}.factory-quick-client label{display:flex;flex-direction:column;gap:6px;font-size:13px;margin:10px 0}.factory-quick-client input{width:100%;min-height:40px}.factory-quick-client .quick-client-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.factory-quick-client textarea{width:100%}.factory-quick-client .modalactions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.factory-quick-client .small{font-size:12px}@media(max-width:520px){.factory-quick-client{padding:16px}.factory-quick-client .quick-client-grid{grid-template-columns:1fr;gap:0}}

.warehouse-request-title small{display:block;margin-top:4px;color:#888}.warehouse-request-summary{display:flex;gap:12px 24px;flex-wrap:wrap}.warehouse-request-items{display:flex;gap:6px 20px;flex-wrap:wrap;margin:10px 0;color:#666}.warehouse-request-next{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.warehouse-request-next small{color:#888;max-width:720px;line-height:1.5}.warehouse-request-expanded>td{border-bottom:1px solid #ddd!important;padding-bottom:18px!important}.warehouse-request-expanded td:before{display:none!important}.warehouse-request-expanded .warehouse-allocation{font-size:12px}@media(max-width:700px){.warehouse-request-expanded td{display:block!important}.warehouse-request-summary{display:grid;gap:5px}.warehouse-request-next{flex-direction:column;align-items:stretch}.warehouse-request-items{display:grid;gap:4px}}

.calendar-release{display:block;width:100%;padding:7px 9px;margin-top:6px;border:1px solid #e5a588!important;color:var(--accent,#ed4b12);font-size:12px;background:#fff8f4}.warehouse-own-notices{border:1px solid #e5e1dc;padding:10px 14px;margin-bottom:16px;border-radius:6px}.warehouse-own-notices .notice{white-space:pre-wrap}.warehouse-scope-check{display:flex!important;gap:8px;align-items:center;margin-top:16px}.warehouse-scope-check input{width:auto!important}.warehouse-section-tabs{flex-wrap:wrap}

.nzp-actions{display:flex;flex-wrap:wrap;gap:8px}.warehouse-order-summary td small.danger{font-weight:600}

.reserve-impact{background:#f8f7f4;border:1px solid #eee;padding:12px;border-radius:5px;margin:12px 0;font-size:13px;line-height:1.6}.reserve-impact small{display:block;color:#777;margin-top:5px}
/* v4.65: keep shipment states inside their own cells; one row per order. */
#factorycontent .warehouse-unified{min-width:960px;table-layout:fixed}
#factorycontent .warehouse-unified th:nth-child(1){width:24%}
#factorycontent .warehouse-unified th:nth-child(2){width:11%}
#factorycontent .warehouse-unified th:nth-child(3){width:15%}
#factorycontent .warehouse-unified th:nth-child(4){width:20%}
#factorycontent .warehouse-unified th:nth-child(5){width:17%}
#factorycontent .warehouse-unified th:nth-child(6){width:13%}
#factorycontent .warehouse-unified td{display:table-cell;float:none;overflow-wrap:anywhere;vertical-align:middle;white-space:normal}
.warehouse-state{display:inline-block;max-width:100%;border-radius:5px;padding:5px 8px;font-size:12px;line-height:1.45;background:#eee;color:#555}
.warehouse-state.ready{background:#e5f3e8;color:#326d40}.warehouse-state.attention{background:#fff0d9;color:#925512}
.warehouse-unified td>button{white-space:normal;max-width:100%}
.warehouse-batch-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #eee}
.warehouse-batch-list small{display:block;color:#777;margin-top:4px}
#factorycontent .warehouse-shipping-detail>td{background:#fff;padding:12px 16px;border-bottom:1px solid #ddd}
@media(max-width:720px){
 #factorycontent .warehouse-unified{display:block;min-width:0;table-layout:auto}
 #factorycontent .warehouse-unified td{display:flex;min-width:0}
 #factorycontent .warehouse-unified td>*{min-width:0}
 #factorycontent .warehouse-unified td:before{flex:0 0 39%}
 #factorycontent .warehouse-unified .warehouse-shipping-detail>td{display:block}
 .warehouse-shipping-detail>td:before{display:none!important}
 .warehouse-batch-list>div{flex-wrap:wrap}
 .warehouse-unified button{min-height:44px}
}
.warehouse-mode-count{display:inline-block;font-size:11px;margin-left:7px;padding:2px 5px;border-radius:10px;background:#f0eeeb;color:#777}
