.location-catalog-drawer.drawer {
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fff;
    border-left: 1px solid #4a1249;
    box-shadow: -4px 0 14px #00000024;
}
.location-catalog-drawer .catalog-drawer-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; min-height: 48px; padding: 9px 14px; background: #4a1249; color: #fff; }
.location-catalog-drawer .catalog-drawer-header h2 { margin: 0; font-size: 16px; font-weight: 600; color: inherit; }
.location-catalog-drawer .catalog-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #fff !important; cursor: pointer; }
.location-catalog-drawer .catalog-drawer-close .e-icons { color: inherit !important; }
.location-catalog-drawer .catalog-drawer-close:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.location-catalog-drawer > .location-catalog { overflow: hidden; padding: 4px 14px 14px; }
.location-catalog { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; color: #212529; }
.location-catalog .catalog-search { display: flex; flex: 0 0 auto; gap: 8px; margin-bottom: 0; background: #fff; padding-bottom: 10px; border-bottom: 1px solid #d9dee7; }
.location-catalog .catalog-search input { min-width: 0; height: 30px; min-height: 30px; box-sizing: border-box; padding: 2px 12px; font-size: 16px; line-height: 24px; color: #4a1249; }
.location-catalog .catalog-search input::placeholder { font-size: 13px; }
.location-catalog .catalog-search input:focus { border-color: #4a1249; box-shadow: 0 0 0 2px #eeddf9; }
.location-catalog .catalog-search button { height: 30px; min-height: 30px; box-sizing: border-box; padding: 0 16px !important; font-size: 13px; line-height: 28px; background: #4a1249; border-color: #4a1249; color: #fff; }
.location-catalog .catalog-search button:disabled { opacity: .65; cursor: wait; }
.location-catalog .catalog-search-info { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; margin-bottom: 8px; color: #212529; font-size: 13px; }
.location-catalog .catalog-search-info p { margin: 0; }
.location-catalog #locationCatalogSearchHint,
.location-catalog #locationCatalogSearchHint strong { color: #d72d36 !important; }
.location-catalog .catalog-loader { display: flex; justify-content: center; align-items: center; min-height: 140px; }
.location-catalog .catalog-loader[hidden] { display: none; }
.location-catalog .catalog-loader lord-icon { width: 60px; height: 60px; }
/* Keep the search and grid headers outside the product list's scroll area. */
.location-catalog > #locationProductCatalogGrid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.location-catalog > #locationProductCatalogGrid > :not(.e-gridcontent) { flex: 0 0 auto; }
.location-catalog > #locationProductCatalogGrid > .e-gridcontent { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.location-catalog > #locationProductCatalogGrid > .e-gridcontent > .e-content { flex: 1 1 auto; min-height: 0; }
.location-catalog .turnover-toolbar { padding-bottom: 6px; }
.location-catalog .turnover-toolbar__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.location-catalog .turnover-toolbar__tools { flex-shrink: 0; margin-left: auto; }
.location-catalog .turnover-toolbar__title { display: flex; align-items: center; gap: 4px; min-width: 0; color: #212529 !important; }
.location-catalog .turnover-toolbar__title > svg { flex: 0 0 13px; }
.location-catalog .catalog-toolbar-product { min-width: 0; text-align: left; color: #165eff; font-size: 14px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.location-catalog .searchTableInput { width: 200px; border-radius: 0 !important; }
.location-catalog .custom-header-filter { font-size: 16px !important; }
.location-catalog .e-grid .e-rowcell { font-size: 14px !important; color: #212529; border-color: #d9dee7; }
.location-catalog .e-grid .e-headertext { color: #212529 !important; }
.location-catalog .e-grid > .e-gridheader { border-top: 1px solid #d9dee7 !important; }
.location-catalog .e-grid :is(.e-gridheader, .e-headercontent, .e-headercell, .e-detailheadercell) { background: #e6f1fd; }
.location-catalog .catalog-product { display: flex; align-items: center; gap: 12px; padding: 3px 0; min-height: 56px; white-space: normal; }
.location-catalog .catalog-product > div { min-width: 0; }
.location-catalog :is(.catalog-mobile-summary, .catalog-mobile-scroll-hint) { display: none; }
.location-catalog .catalog-product strong { display: block; color: #165eff; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.location-catalog .e-row:has(> .e-detailrowcollapse, > .e-detailrowexpand) > td { cursor: pointer; }
.location-catalog .catalog-symbol { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 10px; background: #e6f1fd; color: #165eff; font-size: 22px; font-weight: 600; }
.location-catalog small { display: block; color: #4d5154; font-size: 14px; line-height: 1.5; margin-top: 4px; white-space: normal; }
.location-catalog small.catalog-price-date.is-recent { color: #008037 !important; }
.location-catalog small.catalog-price-date.is-outside-year { color: #d72d36 !important; }
.location-catalog [data-summary="currentStock"] { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1.4; }
.location-catalog [data-summary="currentStock"] small { margin-top: 0; }
.location-catalog [data-summary="currentStock"] > span { font-size: 16px; }
.location-catalog .catalog-code { display: block; font-size: 14px; color: #212529; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-catalog mark { background: #ffeb3b; color: #4a1249; padding: 0; }
.location-catalog .catalog-product strong mark { color: inherit; }
.location-catalog .catalog-sale-price { color: #165eff; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.location-catalog .catalog-sale-price:not(.e-rowcell) { font-size: 16px !important; }
.location-catalog [data-summary="price"] > .catalog-sale-price { font-size: 16px !important; }
.location-catalog .e-rowcell.catalog-stock-quantity { line-height: 1.2; }
.location-catalog .catalog-blue { color: #165eff !important; }
.location-catalog .catalog-different { color: #d72d36 !important; }
.location-catalog .catalog-negative { color: #d72d36 !important; }
.location-catalog .catalog-badge { display: inline-flex; align-items: center; box-sizing: border-box; border: 1px solid; font-size: 14px !important; line-height: 1.3; white-space: normal; margin-inline-end: 0 !important; }
.location-catalog .catalog-badge.available { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.location-catalog .catalog-badge.unavailable { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.location-catalog .catalog-badge.loading { color: #fff; background: #169d53; border-color: #169d53; }
.location-catalog .catalog-badge.unknown { color: #d72d36; background: #fbeaec; border-color: #d72d36; }
.location-catalog #locationProductCatalogGrid .e-detailcell { padding-top: 4px; }
.location-catalog .catalog-detail { padding: 0 12px 12px; white-space: normal; background: #fcfaff; }
.location-catalog .catalog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.location-catalog .catalog-cards section { border: 1px solid #e2dbe7; border-radius: 12px; padding: 10px 14px; background: #fff; min-width: 0; }
.location-catalog .catalog-cards h5 { font-size: 14px; color: #4a1249; font-weight: 600; margin: 0 0 8px; }
.location-catalog .catalog-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.location-catalog .catalog-card-heading h5 { margin: 0; }
.location-catalog .catalog-card-heading .catalog-refresh { flex-shrink: 0; margin-inline-end: 0 !important; }
.location-catalog .catalog-detail-name { display: block; font-size: 16px; color: #165eff; margin-bottom: 6px; }
.location-catalog .catalog-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border-bottom: 1px solid #eeebf0; font-size: 13px; line-height: 18px; }
.location-catalog .catalog-info > span { flex-shrink: 0; }
.location-catalog .catalog-info strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.location-catalog .catalog-scope { margin: 6px 0; font-size: 12px; color: #626b75; }
.location-catalog .catalog-refresh:disabled { opacity: .5; cursor: wait; }
.location-catalog #locationProductCatalogGrid.e-grid,
.location-catalog .catalog-location-grid.e-grid { border: 0; }
.location-catalog #locationProductCatalogGrid > .e-temp-toolbar,
.location-catalog .catalog-location-grid > .e-temp-toolbar { border: 0; }
.location-catalog #locationProductCatalogGrid > :is(.e-gridheader, .e-gridcontent, .e-gridfooter),
.location-catalog .catalog-location-grid > :is(.e-gridheader, .e-gridcontent, .e-gridfooter) { border-inline: 1px solid #d9dee7; }
.location-catalog #locationProductCatalogGrid > .e-gridcontent,
.location-catalog .catalog-location-grid > .e-gridcontent { border-bottom: 1px solid #d9dee7; }
.location-catalog .catalog-location-grid :is(.e-rowcell, .e-summarycell) { height: 25px; box-sizing: border-box; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 22px; }
.location-catalog .catalog-location-grid > .e-gridfooter .e-summarycell { font-size: 14px; font-weight: 600; color: #212529; }
.location-catalog .catalog-location-grid .e-content { max-height: 300px; }
@media (max-width: 900px) {
    .location-catalog .catalog-cards { grid-template-columns: 1fr; }
    .location-catalog .catalog-symbol { display: none; }
    .location-catalog .catalog-product { gap: 0; }
    .location-catalog .catalog-detail { padding: 0 8px 8px; }
    .location-catalog .catalog-info { flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .location-catalog-drawer > .location-catalog { padding: 4px 10px 10px; }
    .location-catalog .catalog-search-info { display: none; }
    .location-catalog .turnover-toolbar__body { flex-wrap: wrap; gap: 6px; }
    .location-catalog .turnover-toolbar__title { flex: 1 1 140px; }
    .location-catalog .turnover-toolbar__tools { flex: 0 1 200px; min-width: 0; max-width: 100%; }
    .location-catalog .turnover-toolbar__search .e-input-group { max-width: 100%; }
    /* Detail-grid filters are portaled outside the drawer by EJ2. */
    :is(.location-catalog .e-grid, .e-grid-popup[id^="locationCatalogDetail"]) .e-excelfilter.e-dialog { position: fixed !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; width: calc(100vw - 24px) !important; min-width: 0 !important; max-width: 400px !important; max-height: calc(100dvh - 24px) !important; }
    .location-catalog .catalog-product { min-height: 0; padding: 4px 0 2px; }
    .location-catalog .catalog-code { white-space: normal; overflow-wrap: anywhere; }
    .location-catalog .catalog-mobile-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(76px, max-content) 76px; gap: 0 8px; padding: 0 0 6px; white-space: normal; }
    .location-catalog .catalog-mobile-summary > div { min-width: 0; }
    .location-catalog .catalog-metric-label { display: block; font-size: 12px; line-height: 14px; color: #4d5154; margin-bottom: 0; }
    .location-catalog .catalog-mobile-price { grid-column: 1; grid-row: 1; }
    .location-catalog .catalog-mobile-price .catalog-sale-price { display: block; line-height: 1.4; }
    .location-catalog .catalog-mobile-price .catalog-price-date { margin: 0; overflow-wrap: anywhere; }
    .location-catalog .catalog-mobile-stock { grid-column: 2; grid-row: 1; justify-self: end; max-width: 100%; text-align: right; }
    .location-catalog .catalog-mobile-summary [data-summary="currentStock"] { align-items: flex-end; gap: 2px; overflow-wrap: anywhere; }
    .location-catalog .catalog-mobile-summary small { font-size: 12px; margin-top: 2px; }
    .location-catalog .catalog-mobile-status { grid-column: 3; grid-row: 1; align-self: center; justify-self: stretch; }
    .location-catalog .catalog-mobile-status .catalog-badge { width: 100%; height: auto; min-height: 40px; padding: 3px 4px !important; justify-content: center; text-align: center; white-space: normal; }
    .location-catalog .catalog-mobile-status .catalog-stock-label-end { display: block; }
    .location-catalog .catalog-cards { gap: 8px; }
    .location-catalog .catalog-cards section { padding: 10px; }
    .location-catalog .catalog-cards h5 { margin-bottom: 8px; }
    .location-catalog .catalog-card-heading h5 { margin-bottom: 0; }
    .location-catalog .catalog-detail-name { font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
    .location-catalog .catalog-info { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
    .location-catalog .catalog-info > span { min-width: 0; overflow-wrap: anywhere; }
    .location-catalog .catalog-detail { padding: 0 4px 8px; }
    .location-catalog .catalog-mobile-scroll-hint { display: block; margin-top: 4px; font-size: 12px; color: #4d5154; white-space: normal; }
}
@media (max-width: 400px) {
    .location-catalog-drawer > .location-catalog { padding: 4px 6px 6px; }
    .location-catalog #locationProductCatalogGrid .e-detailcell { padding-inline: 0; }
    .location-catalog .catalog-detail { padding: 0 0 8px; }
}
