[data-customer-warehouse-active="true"] > :not(.customer-warehouse-self) { display: none !important; }
.customer-warehouse-self { color: #223044; width: 100%; min-width: 0; padding: 18px; box-sizing: border-box; background: #fff; border-radius: 12px; }
.customer-warehouse-self header, .customer-warehouse-self footer, .cw-dialog header, .cw-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.customer-warehouse-self h2, .cw-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.customer-warehouse-self p { color: #67758a; }
.customer-warehouse-self button, .cw-dialog button { border: 1px solid #c9d3df; background: #fff; color: #243c58; border-radius: 6px; padding: 8px 12px; cursor: pointer; font: inherit; }
.customer-warehouse-self button[aria-pressed="true"], .cw-dialog button[type="submit"] { background: #245dcc; color: white; border-color: #245dcc; }
.customer-warehouse-self button:disabled { opacity: .45; cursor: default; }
.cw-metrics, .customer-warehouse-self nav, .cw-search { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; align-items: end; }
.cw-metrics { gap: 32px; background: #f4f7fc; padding: 18px; border-radius: 8px; }
.cw-metrics b { font-size: 26px; color: #224eac; margin: 0 6px; }
.cw-search label, .cw-dialog label { display: grid; gap: 7px; }
.cw-search input, .cw-search select, .cw-dialog input, .cw-dialog textarea { box-sizing: border-box; border: 1px solid #c9d3df; border-radius: 6px; padding: 9px; font: inherit; max-width: 100%; }
.cw-scroll { width: 100%; overflow-x: auto; }
.cw-scroll table { width: 100%; min-width: 650px; border-collapse: collapse; }
.cw-scroll th, .cw-scroll td { text-align: left; padding: 14px 10px; border-bottom: 1px solid #e4e9f0; max-width: 240px; overflow-wrap: anywhere; }
.cw-scroll th { background: #f6f8fb; font-weight: 500; }
.cw-scroll small { display: block; color: #778396; margin-top: 6px; }
.cw-product-image { width: 44px; height: 44px; object-fit: contain; float: left; margin: 0 9px 6px 0; border-radius: 4px; }
.cw-actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 160px; }
.customer-warehouse-self footer { padding-top: 18px; }
.customer-warehouse-self footer small { color: #7a8798; }
.cw-error, .customer-warehouse-self .cw-error { color: #b63d30; overflow-wrap: anywhere; }
.cw-dialog { width: min(520px, calc(100vw - 40px)); padding: 0; border: 0; border-radius: 12px; color: #24344a; max-height: calc(100vh - 40px); }
.cw-dialog::backdrop { background: #10213f77; }
.cw-dialog header, .cw-dialog footer { padding: 18px 22px; background: #f5f7fb; }
.cw-dialog-body { padding: 20px 22px; overflow-y: auto; max-height: calc(100vh - 230px); }
.cw-dialog-body label { margin-bottom: 16px; }
.cw-dialog-body p, .cw-dialog-body li { overflow-wrap: anywhere; line-height: 1.7; }
@media(max-width: 950px) { .customer-warehouse-self { padding: 12px; } .cw-search input { width: 200px; } .customer-warehouse-self nav { gap: 6px; } .customer-warehouse-self nav button { padding: 8px; } }
