.emwh-mb-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px}.emwh-mb-header h1{margin:0;font-size:30px;line-height:1.05;font-weight:650}.emwh-mb-header p{margin:5px 0 0;color:#667085;font-size:13px}.emwh-mb-header-actions{display:flex;gap:8px;align-items:center}.emwh-mb-btn{min-height:32px;padding:7px 11px;font-size:12px}.emwh-mb-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0}.emwh-mb-action{height:44px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;display:flex;align-items:center;gap:8px;text-decoration:none;color:#111827;font-size:13px}.emwh-mb-action:hover{border-color:#b8c2cc;background:#f9fafb}.emwh-mb-action-icon{font-size:15px}.emwh-mb-action-arrow{margin-left:auto;color:#98a2b3}.emwh-mb-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.emwh-mb-tab{padding:7px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;text-decoration:none;color:#344054;font-size:12px}.emwh-mb-tab.is-active{background:#111827;color:#fff;border-color:#111827}.emwh-mb-field{display:block;background:#fff;border:1px solid #e5e7eb;border-left:3px solid #f2c94c;border-radius:10px;padding:9px 10px;min-height:58px}.emwh-mb-field-system{border-left-color:#2f80ed}.emwh-mb-field-readonly{border-left-color:#d0d5dd}.emwh-mb-field-error{border-left-color:#eb5757}.emwh-mb-field-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.emwh-mb-field-label{font-size:11px;letter-spacing:.02em;color:#667085;font-weight:650;text-transform:uppercase}.emwh-mb-field-value{font-size:14px;font-weight:500;color:#111827}.emwh-mb-badge{display:inline-flex;align-items:center;border-radius:999px;padding:2px 6px;font-size:10px;font-weight:650;background:#f2f4f7;color:#475467}.emwh-mb-badge-manual{background:#fff7d6;color:#7a5d00}.emwh-mb-badge-system{background:#e8f1ff;color:#175cd3}.emwh-mb-badge-error{background:#fee4e2;color:#b42318}@media(max-width:780px){.emwh-mb-header{display:block}.emwh-mb-header-actions{margin-top:10px}.emwh-mb-actions{grid-template-columns:1fr}.emwh-mb-header h1{font-size:24px}}

/* V4.1.2 Catalog UX polish */
.emwh-master-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 12px}
.emwh-master-tab{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #d9e3ef;border-radius:999px;background:#fff;color:#1f2937;text-decoration:none;font-size:12px;font-weight:650;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.emwh-master-tab span{font-size:13px;opacity:.9}
.emwh-master-tab:hover{border-color:#b7c7d9;background:#f8fbff}
.emwh-master-tab.is-active{background:#061a2f;color:#fff;border-color:#061a2f}
.emwh-masters-layout-v412{grid-template-columns:minmax(0,1.7fr) minmax(320px,.9fr);gap:12px;align-items:start}
.emwh-master-list-card,.emwh-master-form-card{padding:14px!important}
.emwh-catalog-search{display:flex;gap:8px;margin:10px 0 12px}
.emwh-catalog-search input{height:34px;flex:1;border:1px solid #d8e2ef;border-radius:9px;padding:0 11px;font-size:13px;background:#fff}
.emwh-master-table th,.emwh-master-table td{font-size:12px;padding:8px 10px}
.emwh-master-table small{display:block;color:#667085;margin-top:2px;font-weight:400}
.emwh-master-form label small{font-size:10px;letter-spacing:.03em;text-transform:uppercase;color:#344054;font-weight:700}
.emwh-master-form input,.emwh-master-form select,.emwh-master-form textarea{min-height:34px;font-size:13px}
.emwh-master-form textarea{min-height:68px}
@media(max-width:980px){.emwh-masters-layout-v412{grid-template-columns:1fr}.emwh-master-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.emwh-master-tab{white-space:nowrap}}


/* V4.6.8.36.33.4 - Warehouse Master form closure */
.emwh-master-form{grid-template-columns:minmax(110px,1.05fr) minmax(120px,1.25fr) minmax(105px,.9fr) minmax(76px,.65fr);gap:12px}
.emwh-master-form .emwh-master-section{display:flex;align-items:baseline;gap:8px;padding:2px 0 4px;border-bottom:1px solid #e2eaf3;color:#17314d}
.emwh-master-form .emwh-master-section strong{font-size:12px}
.emwh-master-form .emwh-master-section span{font-size:11px;color:#667085}
.emwh-master-form .emwh-master-section-secondary{margin-top:2px}
.emwh-master-form .emwh-warehouse-field-country{grid-column:span 2}
.emwh-master-form .emwh-warehouse-field-city{grid-column:span 2}
.emwh-master-form .emwh-warehouse-field-type{grid-column:span 2}
.emwh-master-form .emwh-warehouse-field-incoterm{grid-column:span 1}
.emwh-master-form .emwh-warehouse-field-escrow{grid-column:span 1}
.emwh-master-form .emwh-warehouse-field-type select{min-width:0;width:100%}
.emwh-master-form .emwh-warehouse-field-type select option{white-space:normal}
.emwh-master-form .emwh-master-field-sort input{text-align:center}
.emwh-master-form .emwh-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.emwh-master-form .emwh-form-actions .emwh-primary{min-width:150px}
@media(min-width:1280px){
  .emwh-master-form .emwh-warehouse-field-country{grid-column:span 1}
  .emwh-master-form .emwh-warehouse-field-city{grid-column:span 1}
  .emwh-master-form .emwh-warehouse-field-type{grid-column:span 1}
  .emwh-master-form .emwh-warehouse-field-incoterm{grid-column:span 1}
  .emwh-master-form .emwh-warehouse-field-escrow{grid-column:span 2}
}
@media(max-width:1180px){
  .emwh-master-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emwh-master-form .emwh-master-field-code,.emwh-master-form .emwh-master-field-name,.emwh-master-form .emwh-master-field-status,.emwh-master-form .emwh-master-field-sort{grid-column:span 1}
}
@media(max-width:640px){
  .emwh-master-form{grid-template-columns:1fr}
  .emwh-master-form>*{grid-column:1/-1!important}
  .emwh-master-form .emwh-master-section{display:block}
  .emwh-master-form .emwh-master-section span{display:block;margin-top:3px}
}


/* V4.6.8.36.33.5 - ERP Catalogs screen closure */
.emwh-masters-layout-v412{
  align-items:start;
}
.emwh-master-list-card{
  min-width:0;
  overflow:hidden;
  align-self:start;
  background:#fff;
}
.emwh-master-list-card .emwh-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  box-sizing:border-box;
  background:#fff;
}
.emwh-master-list-card .emwh-master-table{
  min-width:900px;
  table-layout:auto;
  background:#fff;
}
.emwh-master-table th:last-child,
.emwh-master-table td:last-child{
  width:250px;
  min-width:250px;
}
.emwh-master-table .emwh-row-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  width:100%;
  white-space:nowrap;
}
.emwh-master-table .emwh-row-actions form{
  display:inline-flex!important;
  flex:0 0 auto;
  margin:0!important;
}
.emwh-master-table .emwh-row-actions .emwh-action-btn{
  min-width:76px!important;
  width:auto!important;
  padding:0 9px!important;
  flex:0 0 auto;
}
.emwh-master-form-card{
  align-self:start;
}
@media(max-width:1250px){
  .emwh-master-table th:last-child,
  .emwh-master-table td:last-child{width:226px;min-width:226px}
  .emwh-master-table .emwh-row-actions .emwh-action-btn{min-width:70px!important;padding:0 7px!important}
}
@media(max-width:980px){
  .emwh-master-list-card .emwh-master-table{min-width:860px}
}


/* V4.6.8.36.33.6 - Explicit warehouse creation flow. */
.emwh-master-list-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.emwh-master-list-heading h2{margin-bottom:0}
.emwh-new-catalog-value{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;min-height:38px;padding:8px 14px}
@media(max-width:900px){.emwh-master-list-heading{flex-direction:column;align-items:stretch}.emwh-new-catalog-value{align-self:flex-start}}

/* V4.6.8.36.39 - Market selector alignment inside the validated Warehouse Master grid. */
.emwh-master-form .emwh-warehouse-field-market{grid-column:span 1;min-width:0}
.emwh-master-form .emwh-warehouse-field-market select{width:100%;min-width:0}
@media(max-width:1180px){
  .emwh-master-form .emwh-warehouse-field-market{grid-column:span 2}
}
@media(max-width:640px){
  .emwh-master-form .emwh-warehouse-field-market{grid-column:1/-1}
}
