/*
 * HO4 2026-11-10 — shared site-wide visual system.
 * Applied by the common page layout to customer, reseller, manager and wholesale
 * screens. Catalog-specific layout rules remain scoped to their existing markup.
 * Invariants: presentation only; no routes, ACLs, cart operations, product data,
 * order state, search persistence or business calculations are changed here.
 */
/* Production visual layer promoted from the approved catalog preview. */
body.demed-catalog-ui {
    padding-top: 0 !important;
    background: #f3f6fa !important;
    color: #27384b;
    font-family: "Segoe UI", Arial, sans-serif !important;
    line-height: 1.45 !important;
}

/*
 * The older public content pages (/reviews and reseller-authored static pages)
 * still use their dedicated .out/.header shell. Give that shell the same palette
 * without replacing its content structure or navigation destinations.
 */
body.demed-legacy-public .out {
    background: #f3f6fa;
    color: #27384b;
    font-family: "Segoe UI", Arial, sans-serif;
}
body.demed-legacy-public .out .header {
    background: #fff;
    border-bottom: 1px solid #e5ebf2;
    box-shadow: 0 3px 16px rgba(31, 55, 82, .07);
}
body.demed-legacy-public .out .header_top {
    padding-top: 10px;
    padding-bottom: 10px;
}
body.demed-legacy-public .out .header nav {
    height: auto;
    margin-top: 0;
    padding: 0 18px;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #e5ebf2;
    background: #fff;
    box-shadow: none;
}
body.demed-legacy-public .out .header nav .main_menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    max-width: 1840px;
    margin: 0 auto;
    padding: 8px 0;
    line-height: 1.35;
    text-align: left;
}
body.demed-legacy-public .out .header nav .main_menu > li {
    display: block;
    margin: 0;
    padding: 0;
}
body.demed-legacy-public .out .header nav .main_menu > li > a {
    display: block;
    margin: 0;
    padding: 12px 15px;
    border-radius: 9px;
    background: #edf4fa;
    color: #365d7c;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-transform: none;
}
body.demed-legacy-public .out .header nav .main_menu > li.active > a,
body.demed-legacy-public .out .header nav .main_menu > li > a:hover {
    background: #dcebf8;
    color: #174f7b;
    box-shadow: inset 0 -3px 0 #7caed4;
}
body.demed-legacy-public .out .header_top .cart a {
    display: inline-block;
    padding: 8px 13px 8px 38px;
    border: 1px solid #d7e8dc;
    border-radius: 9px;
    background: #eaf4ee;
    color: #28674f;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 650;
    text-transform: none;
}
body.demed-legacy-public .out .header_top .cart a:before {
    top: 9px;
    left: 10px;
}
body.demed-legacy-public .out .header_top .cart > div {
    padding: 3px 0 0 6px;
    color: #6b7d8f;
    font-family: "Segoe UI", Arial, sans-serif;
}
body.demed-legacy-public .out .btn-blue {
    height: auto;
    padding: 9px 14px;
    border: 1px solid #2b6f9f;
    border-radius: 8px;
    background: #2b6f9f;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.35;
}
body.demed-legacy-public .out .btn-blue:hover {
    border-color: #205d8c;
    background: #205d8c;
}
body.demed-legacy-public .out .header_top .search_b input {
    height: 36px;
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    box-shadow: none;
    font-family: "Segoe UI", Arial, sans-serif;
}
body.demed-legacy-public .out .footer {
    border-top: 1px solid #e5ebf2;
    background: #fff;
}
body.demed-legacy-public .out .footer ul li a {
    color: #42627f;
    font-family: "Segoe UI", Arial, sans-serif;
}
body.demed-legacy-public .out .footer ul li a:hover,
body.demed-legacy-public .out .footer ul li a.active {
    color: #205d8c;
}

/*
 * Legacy Bootstrap customer workspaces (/frontend and /partial) use a direct
 * .container under a fixed navbar. Match the new shop's content width and top
 * rhythm without changing their existing menu, forms or cart/order markup.
 */
body.demed-legacy-public > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1840px;
    margin: 0 auto;
    padding: 72px 28px 36px;
}
@media (max-width: 991px) {
    body.demed-legacy-public > .container {
        padding-right: 18px;
        padding-left: 18px;
    }
}
@media (max-width: 767px) {
    body.demed-legacy-public > .container {
        padding: 72px 10px 24px;
    }
}
/*
 * Keep the layout viewport width stable when the page starts/stops overflowing.
 * The fixed navbar stays outside the document's vertical scrolling flow; the
 * reserved gutter prevents its right-aligned cart and Bootstrap tooltip from
 * shifting horizontally when a classic scrollbar appears.
 */
html.demed-cart-scrollbar-stable {
    scrollbar-gutter: stable;
}
/*
 * The legacy cart controller wraps .btn-cart in .cart-items-wrap when it
 * refreshes the cart. Keep that wrapper in the navbar's right-floated flow;
 * a block-level wrapper otherwise changes the button's position on refresh.
 * The wrapper also remains the positioning context for Bootstrap's tooltip
 * and popover, so their arrows continue to follow the actual cart button.
 */
body.demed-catalog-ui .navbar .cart-items-wrap {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-block !important;
    float: right !important;
    vertical-align: middle;
}
body.demed-catalog-ui .navbar .cart-items-wrap > .btn-cart {
    float: none !important;
}
body.demed-catalog-ui .navbar.navbar-default {
    min-height: 64px;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e5ebf2 !important;
    box-shadow: 0 3px 16px rgba(31, 55, 82, .07);
}
body.demed-catalog-ui .navbar-fixed-top { right: 0; left: 0; }
body.demed-catalog-ui .navbar-brand {
    height: 64px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #244666 !important;
    font-weight: 700;
    letter-spacing: -.2px;
}
body.demed-catalog-ui .navbar-default .navbar-nav > li > a {
    margin: 8px 4px;
    padding: 13px 16px;
    border-radius: 9px;
    background: #edf4fa;
    color: #365d7c;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    transition: background .15s ease, color .15s ease;
}
body.demed-catalog-ui .navbar-default .navbar-nav > li:nth-child(2) > a {
    background: #eaf4ee;
    color: #28674f;
}
body.demed-catalog-ui .navbar-default .navbar-nav > li:nth-child(3) > a {
    background: #f1eff8;
    color: #5a4e82;
}
body.demed-catalog-ui .navbar-default .navbar-nav > li > a[href*="order"] {
    background: #eaf4ee;
    color: #28674f;
}
body.demed-catalog-ui .navbar-default .navbar-nav > li > a[href*="order"]:hover {
    background: #dceee3 !important;
    color: #1d6046 !important;
}
body.demed-catalog-ui .navbar-default .navbar-nav > li > a:hover,
body.demed-catalog-ui .navbar-default .navbar-nav > .active > a,
body.demed-catalog-ui .navbar-default .navbar-nav > .active > a:hover {
    color: #174f7b !important;
    background: #dcebf8 !important;
    box-shadow: inset 0 -3px 0 #7caed4;
}
body.demed-catalog-ui .navbar .btn {
    border-radius: 8px;
    box-shadow: none;
}

/*
 * Shared components for every application area. Keep sizing and semantic
 * Bootstrap variants intact; normalize only surfaces, borders, focus states
 * and corner radii so forms, tables and panels use the same visual language.
 */
body.demed-catalog-ui .btn {
    border-radius: 8px;
    box-shadow: none;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.demed-catalog-ui .form-control {
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    background: #fff;
    color: #27384b;
    box-shadow: none;
}
body.demed-catalog-ui .form-control:focus {
    border-color: #80afd2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(64, 133, 184, .12);
}
body.demed-catalog-ui .table {
    background: #fff;
    border-color: #e4ebf2;
}
body.demed-catalog-ui .table > thead > tr > th {
    border-bottom: 1px solid #dce6ef;
    background: #f4f7fa;
    color: #344a61;
    font-weight: 700;
    vertical-align: middle;
}
body.demed-catalog-ui .table > tbody > tr > td {
    border-top-color: #e9eef3;
}
body.demed-catalog-ui .panel,
body.demed-catalog-ui .well {
    border: 1px solid #e4ebf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(35, 58, 83, .045);
}
body.demed-catalog-ui .panel-heading {
    border-bottom: 1px solid #e9eef3;
    border-radius: 11px 11px 0 0;
    background: #f7f9fb;
    color: #344a61;
    font-weight: 650;
}
body.demed-catalog-ui .modal-content {
    overflow: hidden;
    border: 1px solid #e1e9f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(31, 55, 82, .16);
}
body.demed-catalog-ui .navbar .dropdown-menu {
    padding: 6px;
    border: 1px solid #e1e9f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 55, 82, .12);
}
body.demed-catalog-ui .navbar .dropdown-menu > li > a {
    padding: 8px 13px;
    border-radius: 6px;
    color: #344a61;
}
body.demed-catalog-ui .navbar .dropdown-menu > li > a:hover,
body.demed-catalog-ui .navbar .dropdown-menu > li > a:focus {
    background: #edf4fa;
    color: #205d8c;
}

/* Shared action styling: cart and new-order controls use the same visual
   language as the green navigation item, without changing their handlers. */
body.demed-catalog-ui .u_nav > li > a[href="/cart"],
body.demed-catalog-ui .nav-tabs > li.pull-right > .btn-success,
body.demed-catalog-ui .line-section3 > .new-order {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 16px !important;
    border: 1px solid #d7e8dc !important;
    border-radius: 9px !important;
    background: #eaf4ee !important;
    color: #28674f !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
/*
 * Keep the cart compact and inside the 64px header. The navbar-btn class supplies
 * its normal vertical margins; no negative top offset is used by the shared menu.
 */
body.demed-catalog-ui .navbar .btn-cart {
    /* Do not override inline display:none: the cart controller uses it for an empty cart. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 6px 12px !important;
    border: 1px solid #d7e8dc !important;
    border-radius: 8px !important;
    background: #eaf4ee !important;
    color: #28674f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.42857143 !important;
    white-space: nowrap !important;
    margin-right: 15px !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
body.demed-catalog-ui .navbar .btn-cart .text {
    white-space: nowrap !important;
}
body.demed-catalog-ui .navbar .btn-cart:hover,
body.demed-catalog-ui .u_nav > li > a[href="/cart"]:hover,
body.demed-catalog-ui .nav-tabs > li.pull-right > .btn-success:hover,
body.demed-catalog-ui .line-section3 > .new-order:hover {
    border-color: #c7dfce !important;
    background: #dceee3 !important;
    color: #1d6046 !important;
}
body.demed-catalog-ui .nav-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid #dce6ef;
}
body.demed-catalog-ui .nav-tabs > li > a {
    margin-right: 5px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 9px 9px 0 0;
    color: #42627f;
    font-size: 15px;
    font-weight: 600;
}
body.demed-catalog-ui .nav-tabs > li > a[href*="/order/shipped"] {
    background: #edf6f0;
    color: #287150;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body.demed-catalog-ui .nav-tabs > li > a[href*="/order/shipped"]:hover,
body.demed-catalog-ui .nav-tabs > li.active > a[href*="/order/shipped"]:hover {
    border-color: #c7dfce !important;
    background: #dceee3 !important;
    color: #1d6046 !important;
}
body.demed-catalog-ui .nav-tabs > li.active > a {
    border-color: #d5e5f2;
    background: #e8f2fb;
    color: #205d8c;
}
body.demed-catalog-ui .nav-tabs > li.active > a[href*="/order/shipped"] {
    border-color: #cce3d4;
    background: #dff0e5;
    color: #1e6847;
}
body.demed-catalog-ui .nav-tabs > li > a[href*="/order/removed"] {
    background: #fbefef;
    color: #9b4545;
}
body.demed-catalog-ui .nav-tabs > li > a[href*="/order/removed"]:hover {
    background: #f6e1e1 !important;
    color: #8e3030 !important;
}
body.demed-catalog-ui .nav-tabs > li.active > a[href*="/order/removed"] {
    border-color: #edcccc;
    background: #f5dddd;
    color: #922f2f;
}
/* Keep completed-order timestamps on one line; the surrounding list can scroll
   horizontally if the viewport cannot accommodate all order columns. */
body.demed-completed-orders-ui .tab-pane > div[style*="padding-bottom"] {
    max-width: 100%;
    overflow-x: auto;
}
body.demed-completed-orders-ui tr[data-order-item] > td:nth-child(7),
body.demed-completed-orders-ui tr[data-order-item] > td:nth-child(8),
body.demed-completed-orders-ui tr[data-order-header] > th:nth-child(7),
body.demed-completed-orders-ui tr[data-order-header] > th:nth-child(8) {
    white-space: nowrap !important;
}
/* The old fixed-panel spacer is not needed after switching Affix to sticky. */
body.demed-catalog-ui .catalog-fix-results {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.demed-catalog-ui > .container-fluid {
    box-sizing: border-box;
    width: 100%;
    max-width: 1840px;
    margin: 0 auto;
    padding: 72px 28px 36px !important;
}
body.demed-catalog-ui .demed-catalog-layout {
    display: grid;
    grid-template-columns: minmax(230px, 250px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
body.demed-catalog-ui .demed-catalog-layout > .catalog-filters,
body.demed-catalog-ui .demed-catalog-layout > .col-md-18 {
    position: relative;
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.demed-catalog-ui .demed-catalog-layout > .catalog-filters {
    grid-column: 1;
    z-index: 2;
}
body.demed-catalog-ui .demed-catalog-layout > .col-md-18 {
    grid-column: 2;
    z-index: 1;
}
body.demed-catalog-ui .demed-catalog-layout > .catalog-filters {
    align-self: start;
}
body.demed-catalog-ui .demed-catalog-layout > .col-md-18 {
    overflow: visible;
}
body.demed-catalog-ui .catalog-filters-wrapper,
body.demed-catalog-ui .catalog-search-wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff !important;
    border: 1px solid #e4ebf2 !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 18px rgba(35, 58, 83, .055) !important;
}
/*
 * The legacy catalog initializes Bootstrap Affix and writes a viewport-based
 * max-height/overflow onto the filter panel. In this preview both panels stay
 * in normal document flow: the page scrolls as one surface, while filter
 * contents are never clipped inside a short nested scrolling viewport.
 */
body.demed-catalog-ui .catalog-filters-wrapper,
body.demed-catalog-ui .catalog-search-wrapper {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    transform: none !important;
}
body.demed-catalog-ui .catalog-filters-wrapper {
    padding: 13px 13px 14px !important;
}
body.demed-catalog-ui .catalog-filters-wrapper div.filter-items,
body.demed-catalog-ui .catalog-filters-wrapper div.filter-items-selected,
body.demed-catalog-ui .catalog-filters-wrapper .overlay-filter-list,
body.demed-catalog-ui .catalog-filters-wrapper .container-filters {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}
body.demed-catalog-ui .catalog-filters-wrapper select.filter-items {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body.demed-catalog-ui .catalog-filters-wrapper > div + div {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #edf1f5;
}
body.demed-catalog-ui .catalog-filters-wrapper h4 {
    margin: 0 0 12px !important;
    padding: 0 0 11px;
    border-bottom: 1px solid #edf1f5;
    color: #344a61;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}
body.demed-catalog-ui .catalog-filters-wrapper .form-control {
    height: 40px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: none !important;
    color: #344a61;
    font-size: 14px;
}
body.demed-catalog-ui .catalog-filters-wrapper .form-control:focus,
body.demed-catalog-ui .catalog-search-wrapper .form-control:focus {
    border-color: #8bb8dc;
    box-shadow: 0 0 0 3px rgba(69, 139, 194, .11) !important;
}
body.demed-catalog-ui .catalog-filters-wrapper select.filter-items {
    min-height: 116px;
    height: auto;
    padding: 6px;
    background: #fbfcfe;
    font-size: 14px;
    line-height: 1.4;
}
body.demed-catalog-ui .catalog-filters-wrapper select.filter-items option {
    padding: 5px 7px;
    border: 0;
}
body.demed-catalog-ui .filter-items-selected {
    margin: 5px 0 8px;
}
body.demed-catalog-ui .filter-item-checked {
    display: inline-block !important;
    max-width: 100%;
    margin: 3px 4px 4px 0;
    padding: 6px 9px;
    border: 1px solid #d9e8f6;
    border-radius: 7px;
    background: #f0f6fc;
    color: #285d89;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    vertical-align: top;
}
body.demed-catalog-ui .filter-item-checked a {
    color: inherit;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.demed-catalog-ui .catalog-search-wrapper {
    margin: 0 0 4px !important;
    padding: 8px 12px 8px !important;
}
body.demed-catalog-ui .catalog-search-wrapper,
body.demed-catalog-ui .catalog-search-wrapper * {
    box-sizing: border-box !important;
}
body.demed-catalog-ui .catalog-search-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}
body.demed-catalog-ui .catalog-search-wrapper .row > h4 {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0 0 1px 0 !important;
    color: #344a61;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}
body.demed-catalog-ui .catalog-search-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}
body.demed-catalog-ui .catalog-results-count {
    display: inline-block;
    flex: 0 0 auto;
    float: none !important;
    margin: 0 0 0 auto !important;
    padding: 7px 12px !important;
    border-radius: 18px;
    background: #eaf3fb;
    color: #315f86;
    font-size: 15px !important;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
}
body.demed-catalog-ui .catalog-search-wrapper .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}
body.demed-catalog-ui .catalog-search-wrapper .row > .filter-words {
    flex: 1 1 0;
    width: auto !important;
    min-width: 220px;
    max-width: 100%;
}
body.demed-catalog-ui .catalog-search-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    max-width: calc(100% - 230px);
    margin-left: auto;
}
body.demed-catalog-ui .catalog-search-actions .btn-catalog-clear,
body.demed-catalog-ui .catalog-search-actions .btn-peek {
    flex: 0 0 auto;
}
body.demed-catalog-ui .catalog-search-pagination {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: min(58vw, 760px);
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
}
body.demed-catalog-ui .catalog-search-pagination .pages {
    flex: 0 1 auto;
    max-width: 100%;
    margin: 0 !important;
}
body.demed-catalog-ui .catalog-search-pagination .pagination {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    margin: 0 !important;
    overflow: visible;
    white-space: nowrap;
}
body.demed-catalog-ui .catalog-search-pagination .pagination > li {
    flex: 0 0 auto;
}
body.demed-catalog-ui .catalog-search-wrapper .catalog-search-pagination .pages {
    margin: 0 !important;
}
body.demed-catalog-ui .catalog-search-pagination .pagination > li > a,
body.demed-catalog-ui .catalog-search-pagination .pagination > li > span {
    margin: 0 2px;
    padding: 7px 10px;
    border: 1px solid #e0e8f0;
    border-radius: 7px !important;
    color: #45637f;
    font-size: 14px;
}
body.demed-catalog-ui .catalog-search-pagination .pagination > .active > span,
body.demed-catalog-ui .catalog-search-pagination .pagination > .active > a {
    border-color: #2b6f9f;
    background: #2b6f9f;
    color: #fff;
}
body.demed-catalog-ui .catalog-search-wrapper .products-search-input {
    width: 100%;
    height: 43px;
    padding: 0 14px;
    border: 1px solid #d6e0ea;
    border-radius: 9px;
    background: #fbfcfe;
    box-shadow: none;
    color: #27384b;
    font-size: 16px;
}
body.demed-catalog-ui .catalog-search-wrapper .btn-catalog-clear {
    height: 43px;
    margin: 0 !important;
    padding: 0 13px;
    border: 1px solid #e0e7ef;
    border-radius: 9px;
    background: #f5f7fa;
    color: #586a7e;
    font-size: 14px;
    font-weight: 650;
    box-shadow: none;
}
body.demed-catalog-ui .catalog-search-wrapper .btn-peek {
    height: 43px;
    min-width: 45px;
    padding: 0 12px !important;
    border: 0;
    border-radius: 9px;
    background: #286da5;
    color: #fff;
    font-size: 19px !important;
    box-shadow: none;
}
body.demed-catalog-ui .products-results {
    min-width: 0;
    overflow-x: auto;
}
body.demed-catalog-ui .products-results > .clearfix {
    margin-bottom: 4px !important;
}
body.demed-catalog-ui .products-results .label-info {
    padding: 8px 13px !important;
    border-radius: 18px;
    background: #eaf3fb;
    color: #315f86;
    font-size: 14px !important;
    font-weight: 650;
}
body.demed-catalog-ui .products-results .text-muted {
    margin: 0 0 3px !important;
    color: #718195;
    font-size: 14px;
    line-height: 1.2;
}
body.demed-catalog-ui .products-results table.table {
    width: 100%;
    min-width: 1100px;
    margin: 0 0 18px;
    border: 1px solid #e3eaf1;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(35, 58, 83, .055);
    overflow: hidden;
}
body.demed-catalog-ui .products-results table.table thead th {
    padding: 14px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #dfe7ef !important;
    background: #eaf1f8 !important;
    color: #465e76 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
body.demed-catalog-ui .products-results table.table thead th:nth-child(2) {
    text-align: left;
}
body.demed-catalog-ui .products-results .catalog-sort-heading {
    color: #465e76 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}
body.demed-catalog-ui .products-results .catalog-sort-heading:hover {
    color: #1768a6 !important;
}
body.demed-catalog-ui .products-results table.table tbody td {
    padding: 11px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    background: #fff;
    color: #354b61;
    font-size: 14px !important;
    line-height: 1.4;
    vertical-align: middle;
}
body.demed-catalog-ui .products-results table.table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}
body.demed-catalog-ui .products-results table.table tbody tr:hover td {
    background: #f0f6fc !important;
}
/* Reuse the catalog's full-row hover treatment on buyer order-history tables. */
body.demed-catalog-ui table.table tbody tr {
    transition: background-color .12s ease;
}
body.demed-catalog-ui table.table tbody tr:hover > td {
    background: #f0f6fc !important;
}
body.demed-catalog-ui .products-results table.table tbody tr:last-child td {
    border-bottom: 0 !important;
}
body.demed-catalog-ui .products-results table.table tbody td:first-child img {
    width: 44px !important;
    height: 44px;
    object-fit: contain;
    padding: 2px;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    background: #f8fafc;
}
body.demed-catalog-ui .products-results table.table tbody td:nth-child(2) {
    min-width: 220px;
    text-align: left;
}
body.demed-catalog-ui .products-results table.table tbody td:nth-child(7) span[itemprop="sku"] {
    color: #64788d;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 14px;
    white-space: nowrap;
}
body.demed-catalog-ui .products-results table.table tbody td[itemprop="offers"] {
    color: #315b7c;
    font-weight: 600;
    text-align: right;
}
body.demed-catalog-ui .products-results table.table tbody td:last-child {
    min-width: 96px;
    text-align: center;
}
body.demed-catalog-ui .products-results .product-page {
    display: inline-block;
    min-width: 170px;
    color: #244f76 !important;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}
body.demed-catalog-ui .products-results .product-page:hover {
    color: #1471b7 !important;
    text-decoration: underline;
}
body.demed-catalog-ui .products-results .btn {
    border-radius: 7px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 650;
}
body.demed-catalog-ui .products-results .btn-catalog-piecemeal {
    min-width: 32px;
    height: 31px;
    padding: 4px 8px;
    border: 1px solid #d8e5f0;
    background: #edf4fa;
    color: #3d678b;
}
body.demed-catalog-ui .products-results .btn-buy {
    height: 34px;
    min-width: 38px;
    border-radius: 0 7px 7px 0;
    background: #278765;
    border-color: #278765;
    color: #fff;
}
body.demed-catalog-ui .products-results .product-qty {
    height: 34px;
    min-width: 42px;
    padding: 4px 3px;
    border: 1px solid #d9e2ec;
    border-radius: 7px 0 0 7px;
    box-shadow: none;
    font-size: 14px;
    text-align: center;
}
body.demed-catalog-ui .products-results .input-group {
    width: 88px !important;
}
body.demed-catalog-ui .products-results .btn-request-price {
    border-radius: 7px;
    white-space: nowrap;
}
body.demed-catalog-ui .products-results .pages {
    margin: 10px 0 22px !important;
}
body.demed-catalog-ui .products-results .pagination > li > a,
body.demed-catalog-ui .products-results .pagination > li > span {
    margin: 0 3px;
    padding: 7px 12px;
    border: 1px solid #e0e8f0;
    border-radius: 7px !important;
    color: #45637f;
    font-size: 14px;
}
body.demed-catalog-ui .products-results .pagination > .active > span,
body.demed-catalog-ui .products-results .pagination > .active > a {
    border-color: #2b6f9f;
    background: #2b6f9f;
    color: #fff;
}
body.demed-catalog-ui .alert {
    border: 1px solid #dce9f4;
    border-radius: 10px;
    box-shadow: none;
}
@media (max-width: 1199px) {
    body.demed-catalog-ui .demed-catalog-layout {
        grid-template-columns: 236px minmax(0, 1fr);
        gap: 14px;
    }
    body.demed-catalog-ui > .container-fluid {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }
    body.demed-catalog-ui .catalog-search-pagination {
        max-width: min(52vw, 650px);
    }
}
@media (max-width: 991px) {
    body.demed-catalog-ui .demed-catalog-layout {
        display: block;
    }
    body.demed-catalog-ui .catalog-search-wrapper .row {
        flex-wrap: wrap;
    }
    body.demed-catalog-ui .catalog-search-wrapper .row > .filter-words {
        flex: 1 1 100%;
        min-width: 0;
    }
    body.demed-catalog-ui .catalog-search-actions {
        flex: 1 1 100%;
        max-width: 100%;
        justify-content: flex-end;
    }
    body.demed-catalog-ui .catalog-search-pagination {
        max-width: min(100%, 760px);
    }
    body.demed-catalog-ui > .container-fluid {
        padding-top: 72px !important;
    }
}
/*
 * Buyer cart view: the cart contents already identify the current order.
 * Hide only the redundant header cart button (and its JS-created wrapper);
 * keep order number, clear, add-item, feedback and information controls intact.
 */
body.demed-buyer-cart-ui .navbar .btn-cart,
body.demed-buyer-cart-ui .navbar .cart-items-wrap {
    display: none !important;
}

@media (max-width: 767px) {
    body.demed-catalog-ui .catalog-search-wrapper .row > h4 {
        flex-wrap: wrap;
    }
    body.demed-catalog-ui .catalog-results-count {
        margin-left: auto !important;
    }
    body.demed-catalog-ui .catalog-search-wrapper .row > .filter-words {
        flex: 1 1 100%;
        min-width: 0;
    }
    body.demed-catalog-ui .catalog-search-actions {
        flex: 1 1 100%;
        max-width: 100%;
        justify-content: flex-end;
        gap: 7px;
    }
    body.demed-catalog-ui .catalog-search-pagination {
        max-width: calc(100% - 130px);
    }
    body.demed-catalog-ui > .container-fluid {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/*
 * HO4 2026-11-10 — unified reseller workspace theme.
 *
 * Scope: authenticated reseller pages rendered through the shared application
 * layout. The catalog's own layout remains unchanged. These rules normalize
 * legacy Bootstrap controls and data tables without touching form values,
 * sort behavior, click targets, hidden states, stock statuses or calculations.
 */

/* Workspace typography and content rhythm. */
body.demed-reseller-ui {
    color: #344a61;
}
body.demed-reseller-ui > .container-fluid {
    padding-right: 20px !important;
    padding-bottom: 28px;
    padding-left: 20px !important;
}
body.demed-reseller-ui h1,
body.demed-reseller-ui h2,
body.demed-reseller-ui h3,
body.demed-reseller-ui h4,
body.demed-reseller-ui h5 {
    color: #294761;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 650;
}
body.demed-reseller-ui h1 { margin-top: 8px; margin-bottom: 18px; font-size: 25px; }
body.demed-reseller-ui h2 { margin-top: 8px; margin-bottom: 16px; font-size: 22px; }
body.demed-reseller-ui h3 { margin-top: 8px; margin-bottom: 14px; font-size: 19px; }
body.demed-reseller-ui h4 { font-size: 16px; }
body.demed-reseller-ui hr {
    border-top-color: #e3eaf1;
}
body.demed-reseller-ui a {
    color: #2d6f9f;
}
body.demed-reseller-ui a:hover,
body.demed-reseller-ui a:focus {
    color: #20577f;
}

/* Main reseller navigation: one consistent treatment for all four sections. */
body.demed-reseller-ui .navbar-default .navbar-nav > li > a,
body.demed-reseller-ui .navbar-default .navbar-nav > li:nth-child(2) > a,
body.demed-reseller-ui .navbar-default .navbar-nav > li:nth-child(3) > a,
body.demed-reseller-ui .navbar-default .navbar-nav > li > a[href*="order"] {
    margin: 8px 4px;
    padding: 13px 15px;
    border-radius: 9px;
    background: #edf4fa;
    color: #365d7c;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    box-shadow: none;
}
body.demed-reseller-ui .navbar-default .navbar-nav > li > a:hover,
body.demed-reseller-ui .navbar-default .navbar-nav > li > a:focus,
body.demed-reseller-ui .navbar-default .navbar-nav > li.active > a,
body.demed-reseller-ui .navbar-default .navbar-nav > li.active > a:hover,
body.demed-reseller-ui .navbar-default .navbar-nav > li.open > a {
    background: #dcebf8;
    color: #174f7b;
    box-shadow: inset 0 -3px 0 #7caed4;
}
body.demed-reseller-ui .navbar-default .navbar-nav > li > a .caret {
    border-top-color: currentColor;
    border-bottom-color: currentColor;
}
body.demed-reseller-ui .navbar .dropdown-menu {
    min-width: 210px;
    padding: 7px;
    border: 1px solid #e1e9f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(31, 55, 82, .13);
}
body.demed-reseller-ui .navbar .dropdown-menu > li > a {
    padding: 8px 12px;
    border-radius: 6px;
    color: #3c566e;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}
body.demed-reseller-ui .navbar .dropdown-menu > li > a:hover,
body.demed-reseller-ui .navbar .dropdown-menu > li > a:focus,
body.demed-reseller-ui .navbar .dropdown-menu > li.active > a {
    background: #edf4fa;
    color: #205d8c;
}
body.demed-reseller-ui .navbar .dropdown-menu > li.active > a {
    font-weight: 700;
}
body.demed-reseller-ui .navbar .dropdown-submenu > .dropdown-menu {
    margin-top: -7px;
    border-radius: 10px;
}

/* Sales toolbar tabs and option tabs. Keep right-aligned action buttons usable. */
body.demed-reseller-ui .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dce6ef;
}
body.demed-reseller-ui .nav-tabs > li {
    float: none;
    margin-bottom: -1px;
}
body.demed-reseller-ui .nav-tabs > li > a {
    margin-right: 0;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #536b81;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
body.demed-reseller-ui .nav-tabs > li > a:hover,
body.demed-reseller-ui .nav-tabs > li > a:focus {
    border-color: #e4ebf2;
    background: #f4f8fb;
    color: #245f8b;
}
body.demed-reseller-ui .nav-tabs > li.active > a,
body.demed-reseller-ui .nav-tabs > li.active > a:hover,
body.demed-reseller-ui .nav-tabs > li.active > a:focus {
    border: 1px solid #dce6ef;
    border-bottom-color: #fff;
    background: #fff;
    color: #245f8b;
    font-weight: 700;
}
body.demed-reseller-ui .nav-tabs > li.pull-right {
    margin-left: auto;
    padding-bottom: 5px;
}
body.demed-reseller-ui .tab-content {
    color: #344a61;
}

/* Data tables are the primary working surface in sales and stock sections. */
body.demed-reseller-ui table.table {
    margin-bottom: 18px;
    border: 1px solid #e1e9f0;
    background: #fff;
    color: #344a61;
}
body.demed-reseller-ui .table > thead > tr > th {
    padding: 9px 10px;
    border-top: 0;
    border-bottom: 1px solid #dce6ef;
    background: #f3f7fa;
    color: #344f68;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    vertical-align: middle;
}
body.demed-reseller-ui .table > tbody > tr > td {
    padding: 8px 10px;
    border-top: 1px solid #e9eef3;
    color: #3d5369;
    vertical-align: middle;
}
body.demed-reseller-ui .table.table-condensed > thead > tr > th {
    padding: 7px 8px;
}
body.demed-reseller-ui .table.table-condensed > tbody > tr > td {
    padding: 6px 8px;
}
body.demed-reseller-ui .table.table-hover > tbody > tr:hover > td {
    background: #f2f7fb;
}
/*
 * Order-group summary rows use the same muted surface as manager tables.
 * The #ebebeb selector is a compatibility bridge for older reseller views;
 * new/normalized markup uses .order-summary-row instead of inline styling.
 */
body.demed-reseller-ui .table > tbody > tr.order-summary-row > td,
body.demed-reseller-ui .table > tbody > tr[style*="#ebebeb"] > td {
    background: #edf3f8 !important;
    border-bottom: 2px solid #d8e2eb !important;
}
body.demed-reseller-ui .table > tbody > tr > td .form-control {
    min-width: 42px;
}
body.demed-reseller-ui .table > tbody > tr > td > .btn,
body.demed-reseller-ui .table > tbody > tr > td .btn-group > .btn {
    margin-top: 1px;
    margin-bottom: 1px;
}
body.demed-reseller-ui .table .confirm-sort,
body.demed-reseller-ui .table .shipped-sort {
    color: #315f84;
    font-weight: 700;
}
body.demed-reseller-ui .table .confirm-sort:hover,
body.demed-reseller-ui .table .shipped-sort:hover {
    color: #1d78b7;
}
body.demed-reseller-ui .table-export {
    max-width: 100%;
}
body.demed-reseller-ui .table-info {
    border-color: #dce8f2;
    background: #f8fbfd;
}

/* Consistent button palette; semantic colors remain distinct for risky actions. */
body.demed-reseller-ui .btn {
    min-height: 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
}
body.demed-reseller-ui .btn.btn-xs {
    min-height: 22px;
    border-radius: 6px;
}
body.demed-reseller-ui .btn.btn-sm {
    min-height: 28px;
    padding: 5px 10px;
}
body.demed-reseller-ui .btn-primary,
body.demed-reseller-ui .btn-blue {
    border-color: #2b6f9f;
    background: #2b6f9f;
    color: #fff;
}
body.demed-reseller-ui .btn-primary:hover,
body.demed-reseller-ui .btn-primary:focus,
body.demed-reseller-ui .btn-blue:hover,
body.demed-reseller-ui .btn-blue:focus {
    border-color: #205b84;
    background: #205b84;
    color: #fff;
}
body.demed-reseller-ui .btn-success {
    border-color: #2e8061;
    background: #2e8061;
    color: #fff;
}
body.demed-reseller-ui .btn-success:hover,
body.demed-reseller-ui .btn-success:focus {
    border-color: #24684e;
    background: #24684e;
    color: #fff;
}
body.demed-reseller-ui .btn-info {
    border-color: #4d8a9d;
    background: #4d8a9d;
    color: #fff;
}
body.demed-reseller-ui .btn-info:hover,
body.demed-reseller-ui .btn-info:focus {
    border-color: #3a7183;
    background: #3a7183;
    color: #fff;
}
body.demed-reseller-ui .btn-warning {
    border-color: #d2a34e;
    background: #d2a34e;
    color: #3e321d;
}
body.demed-reseller-ui .btn-warning:hover,
body.demed-reseller-ui .btn-warning:focus {
    border-color: #bd8c35;
    background: #bd8c35;
    color: #302615;
}
body.demed-reseller-ui .btn-danger {
    border-color: #bd6666;
    background: #bd6666;
    color: #fff;
}
body.demed-reseller-ui .btn-danger:hover,
body.demed-reseller-ui .btn-danger:focus {
    border-color: #a64e4e;
    background: #a64e4e;
    color: #fff;
}
body.demed-reseller-ui .btn-default {
    border-color: #d6e0e9;
    background: #fff;
    color: #456078;
}
body.demed-reseller-ui .btn-default:hover,
body.demed-reseller-ui .btn-default:focus {
    border-color: #b9ccdc;
    background: #f4f8fb;
    color: #2e536f;
}
body.demed-reseller-ui .btn[disabled],
body.demed-reseller-ui .btn.disabled {
    opacity: .55;
    box-shadow: none;
}

/* Status labels use the shared palette; exclude the async loader so its own hidden state remains authoritative. */
body.demed-reseller-ui .label:not(.layer-loading) {
    display: inline-block;
    padding: .34em .58em;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    vertical-align: middle;
}
body.demed-reseller-ui .label-success {
    background: #e4f1e9;
    color: #28674f;
}
body.demed-reseller-ui .label-warning {
    background: #fff1d7;
    color: #89611d;
}
body.demed-reseller-ui .label-info {
    background: #e5f1f6;
    color: #32677f;
}
body.demed-reseller-ui .label-primary {
    background: #e6eff8;
    color: #315f84;
}
body.demed-reseller-ui .label-danger {
    background: #f8e8e8;
    color: #984747;
}

/* Forms, search fields and editor controls. */
body.demed-reseller-ui .form-control {
    min-height: 34px;
    border-color: #d7e2ec;
    border-radius: 8px;
    background: #fff;
    color: #344a61;
    box-shadow: none;
}
body.demed-reseller-ui .form-control.input-sm {
    min-height: 30px;
    height: 30px;
    border-radius: 7px;
}
body.demed-reseller-ui .form-control:focus {
    border-color: #80afd2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(64, 133, 184, .12);
}
body.demed-reseller-ui .form-control::placeholder {
    color: #93a2b1;
    opacity: 1;
}
body.demed-reseller-ui .input-group-addon {
    border-color: #d7e2ec;
    border-radius: 8px;
    background: #f3f7fa;
    color: #526b82;
}
body.demed-reseller-ui .control-label {
    color: #425b72;
    font-weight: 650;
}
body.demed-reseller-ui .help-block,
body.demed-reseller-ui .text-muted,
body.demed-reseller-ui .text-gray {
    color: #7a8b9b;
}
body.demed-reseller-ui .checkbox,
body.demed-reseller-ui .radio {
    color: #465f75;
}
body.demed-reseller-ui input[type="checkbox"],
body.demed-reseller-ui input[type="radio"] {
    accent-color: #397da9;
}
body.demed-reseller-ui .form-group {
    margin-bottom: 15px;
}

/* Alerts and validation feedback. */
body.demed-reseller-ui .alert {
    margin-bottom: 15px;
    padding: 11px 14px;
    border: 1px solid #dce8f2;
    border-radius: 9px;
    box-shadow: none;
}
body.demed-reseller-ui .alert-success {
    border-color: #d6e9dd;
    background: #edf6f0;
    color: #2c674f;
}
body.demed-reseller-ui .alert-info,
body.demed-reseller-ui .alert.alert-info {
    border-color: #d9e8f0;
    background: #eef6fa;
    color: #315f78;
}
body.demed-reseller-ui .alert-warning {
    border-color: #f0dfbd;
    background: #fff7e8;
    color: #795a25;
}
body.demed-reseller-ui .alert-danger {
    border-color: #eed6d6;
    background: #fbefef;
    color: #914747;
}
body.demed-reseller-ui #sales-msg,
body.demed-reseller-ui .msg-checker,
body.demed-reseller-ui #dm-message {
    color: #425b72;
}

/* Pagination, breadcrumbs and secondary navigation. */
body.demed-reseller-ui .pagination {
    margin: 12px 0 20px;
}
body.demed-reseller-ui .pagination > li > a,
body.demed-reseller-ui .pagination > li > span {
    margin: 0 2px;
    padding: 7px 11px;
    border: 1px solid #dfe8f0;
    border-radius: 7px;
    background: #fff;
    color: #45637f;
}
body.demed-reseller-ui .pagination > li > a:hover,
body.demed-reseller-ui .pagination > li > a:focus {
    border-color: #b8d0e2;
    background: #edf4fa;
    color: #205d8c;
}
body.demed-reseller-ui .pagination > li.active > a,
body.demed-reseller-ui .pagination > li.active > span {
    border-color: #2b6f9f;
    background: #2b6f9f;
    color: #fff;
}
body.demed-reseller-ui .pagination > li.disabled > a,
body.demed-reseller-ui .pagination > li.disabled > span {
    color: #a4b0bc;
}
body.demed-reseller-ui .breadcrumb {
    border-radius: 8px;
    background: #f1f5f8;
    color: #73869a;
}
body.demed-reseller-ui .breadcrumb > li + li:before {
    color: #a7b4c0;
}

/* Popovers and modal windows used by stock details, buyer balance and delivery. */
body.demed-reseller-ui .popover {
    max-width: min(520px, calc(100vw - 24px));
    border-color: #dce6ef;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(31, 55, 82, .15);
}
body.demed-reseller-ui .popover-title {
    border-bottom-color: #e4ebf2;
    border-radius: 9px 9px 0 0;
    background: #f4f7fa;
    color: #344f68;
    font-weight: 700;
}
body.demed-reseller-ui .modal-header {
    border-bottom-color: #e4ebf2;
    background: #f7f9fb;
}
body.demed-reseller-ui .modal-title {
    color: #294761;
    font-weight: 700;
}
body.demed-reseller-ui .modal-footer {
    border-top-color: #e4ebf2;
    background: #fbfcfd;
}
body.demed-reseller-ui .tooltip-inner {
    border-radius: 6px;
}

/* Reseller-specific invoice, amount and shipping labels. */
body.demed-reseller-ui .amount-success {
    color: #2d785a;
    font-weight: 700;
}
body.demed-reseller-ui .amount-danger {
    color: #a64e4e;
    font-weight: 700;
}
body.demed-reseller-ui .sale-order-label,
body.demed-reseller-ui .cdek-route-label,
body.demed-reseller-ui .cdek-city-label {
    border-radius: 7px;
    font-weight: 650;
}
body.demed-reseller-ui .invoice,
body.demed-reseller-ui .invoice2 {
    color: #3b536a;
}
body.demed-reseller-ui .invoice-total,
body.demed-reseller-ui .invoice-items-total {
    border-top-color: #dce6ef;
    font-weight: 700;
}

/* Keep the dense working tables usable on tablets and narrow screens. */
@media (max-width: 991px) {
    body.demed-reseller-ui > .container-fluid {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }
    body.demed-reseller-ui .nav-tabs > li.pull-right {
        margin-left: 0;
    }
}
@media (max-width: 767px) {
    body.demed-reseller-ui > .container-fluid {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
    body.demed-reseller-ui .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        white-space: nowrap;
    }
    body.demed-reseller-ui .nav-tabs > li {
        flex: 0 0 auto;
    }
    body.demed-reseller-ui .nav-tabs > li.pull-right {
        margin-left: 0;
    }
    body.demed-reseller-ui .table-responsive {
        border: 0;
    }
    body.demed-reseller-ui .table-responsive > .table {
        margin-bottom: 10px;
    }
}

/*
 * Legacy reseller application shell. The old reseller module uses a fixed
 * navbar and Bootstrap .container instead of the new application's
 * .container-fluid. Give it the same full-width content rhythm while keeping
 * all shared component rules above identical.
 */
body.demed-legacy-reseller-ui > .container {
    width: auto !important;
    max-width: none !important;
    margin-right: auto;
    margin-left: auto;
    padding: 76px 20px 28px;
}
@media (max-width: 991px) {
    body.demed-legacy-reseller-ui > .container {
        padding-right: 14px;
        padding-left: 14px;
    }
}
@media (max-width: 767px) {
    body.demed-legacy-reseller-ui > .container {
        padding: 72px 10px 24px;
    }
}

/*
 * HO4 2026-11-11 — shared manager/admin workspace skin.
 *
 * Applied to both the legacy Backend module (/backend/*) and the new Manager
 * module (/manager/*) on demed.is. This is presentation-only: table semantics,
 * parser progress, scanner input, supplier selection, action buttons, routes,
 * permissions and all business operations retain their existing behavior.
 */

/* Both layouts use the same palette and typography. */
body.demed-admin-ui {
    background: #f3f6fa !important;
    color: #344a61;
    font-family: "Segoe UI", Arial, sans-serif !important;
}
body.demed-admin-ui h1,
body.demed-admin-ui h2,
body.demed-admin-ui h3,
body.demed-admin-ui h4,
body.demed-admin-ui h5 {
    color: #294761;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 650;
}
body.demed-admin-ui h1 { margin-top: 8px; margin-bottom: 18px; font-size: 25px; }
body.demed-admin-ui h2 { margin-top: 8px; margin-bottom: 16px; font-size: 22px; }
body.demed-admin-ui h3 { margin-top: 8px; margin-bottom: 14px; font-size: 19px; }
body.demed-admin-ui a { color: #2d6f9f; }
body.demed-admin-ui a:hover,
body.demed-admin-ui a:focus { color: #20577f; }
body.demed-admin-ui hr { border-top-color: #e3eaf1; }

/* Legacy Backend uses .container; new Manager uses .container-fluid. */
body.demed-legacy-admin-ui > .container {
    width: auto !important;
    max-width: none !important;
    margin-right: auto;
    margin-left: auto;
    padding: 78px 20px 30px;
}
body.demed-legacy-admin-no-navbar > .container {
    padding-top: 10px;
}
body.demed-admin-ui > .container-fluid {
    padding-top: 78px;
    padding-right: 20px !important;
    padding-bottom: 30px;
    padding-left: 20px !important;
}

/* A single navigation treatment; remove the old per-position color coding. */
body.demed-admin-ui .navbar-default .navbar-nav > li > a,
body.demed-admin-ui .navbar-default .navbar-nav > li:nth-child(2) > a,
body.demed-admin-ui .navbar-default .navbar-nav > li:nth-child(3) > a,
body.demed-admin-ui .navbar-default .navbar-nav > li > a[href*="order"] {
    margin: 8px 4px;
    padding: 13px 15px;
    border-radius: 9px;
    background: #edf4fa;
    color: #365d7c;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    box-shadow: none;
    transition: background .15s ease, color .15s ease;
}
body.demed-admin-ui .navbar-default .navbar-nav > li > a:hover,
body.demed-admin-ui .navbar-default .navbar-nav > li > a:focus,
body.demed-admin-ui .navbar-default .navbar-nav > li.active > a,
body.demed-admin-ui .navbar-default .navbar-nav > li.active > a:hover,
body.demed-admin-ui .navbar-default .navbar-nav > li.open > a {
    background: #dcebf8 !important;
    color: #174f7b !important;
    box-shadow: inset 0 -3px 0 #7caed4;
}
body.demed-admin-ui .navbar .dropdown-menu {
    min-width: 215px;
    padding: 7px;
    border: 1px solid #e1e9f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(31, 55, 82, .13);
}
body.demed-admin-ui .navbar .dropdown-menu > li > a {
    padding: 8px 12px;
    border-radius: 6px;
    color: #3c566e;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}
body.demed-admin-ui .navbar .dropdown-menu > li > a:hover,
body.demed-admin-ui .navbar .dropdown-menu > li > a:focus,
body.demed-admin-ui .navbar .dropdown-menu > li.active > a {
    background: #edf4fa;
    color: #205d8c;
}
body.demed-admin-ui .navbar .dropdown-menu > li.active > a {
    font-weight: 700;
}
body.demed-admin-ui .navbar .dropdown-submenu > .dropdown-menu {
    margin-top: -7px;
    border-radius: 10px;
}
body.demed-admin-ui .navbar .navbar-btn {
    margin-top: 13px;
    margin-bottom: 13px;
}

/* Secondary page navigation and the build-order Stop/Restart toolbar. */
body.demed-admin-ui .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #dce6ef;
}
body.demed-admin-ui .nav-tabs > li {
    float: none;
    margin-bottom: -1px;
}
body.demed-admin-ui .nav-tabs > li > a {
    margin-right: 0;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #536b81;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
body.demed-admin-ui .nav-tabs > li > a:hover,
body.demed-admin-ui .nav-tabs > li > a:focus {
    border-color: #e4ebf2;
    background: #f4f8fb;
    color: #245f8b;
}
body.demed-admin-ui .nav-tabs > li.active > a,
body.demed-admin-ui .nav-tabs > li.active > a:hover,
body.demed-admin-ui .nav-tabs > li.active > a:focus {
    border: 1px solid #dce6ef;
    border-bottom-color: #fff;
    background: #fff;
    color: #245f8b;
    font-weight: 700;
}
body.demed-admin-ui .nav-tabs > li.pull-right {
    margin-left: auto;
    padding-bottom: 5px;
}
body.demed-admin-ui .tab-content { color: #344a61; }
body.demed-admin-ui #build-order-stop-action,
body.demed-admin-ui #build-order-result-actions {
    white-space: nowrap;
}
body.demed-admin-ui .build-order-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Orders, supplier comparisons, payment lists and stock ledgers. */
body.demed-admin-ui table.table {
    margin-bottom: 18px;
    border: 1px solid #e1e9f0;
    background: #fff;
    color: #344a61;
}
body.demed-admin-ui .table > thead > tr > th {
    padding: 9px 10px;
    border-top: 0;
    border-bottom: 1px solid #dce6ef;
    background: #f3f7fa;
    color: #344f68;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    vertical-align: middle;
}
body.demed-admin-ui .table > tbody > tr > td {
    padding: 8px 10px;
    border-top: 1px solid #e9eef3;
    color: #3d5369;
    vertical-align: middle;
}
body.demed-admin-ui .table.table-condensed > thead > tr > th { padding: 7px 8px; }
body.demed-admin-ui .table.table-condensed > tbody > tr > td { padding: 6px 8px; }
body.demed-admin-ui .table.table-hover > tbody > tr:hover > td,
body.demed-admin-ui table.table > tbody > tr:hover > td {
    background: #f2f7fb;
}
/* Preserve Bootstrap's semantic row state when the pointer is over a row. */
body.demed-admin-ui .table.table-hover > tbody > tr.success:hover > td { background: #d0e9c6 !important; }
body.demed-admin-ui .table.table-hover > tbody > tr.warning:hover > td { background: #faf2cc !important; }
body.demed-admin-ui .table.table-hover > tbody > tr.danger:hover > td { background: #ebcccc !important; }
body.demed-admin-ui .table.table-hover > tbody > tr.info:hover > td { background: #c4e3f3 !important; }
body.demed-admin-ui .table.table-hover > tbody > tr.active:hover > td { background: #e8e8e8 !important; }
body.demed-admin-ui .table > tbody > tr > td > .btn,
body.demed-admin-ui .table > tbody > tr > td .btn-group > .btn {
    margin-top: 1px;
    margin-bottom: 1px;
}
body.demed-admin-ui .table > tbody > tr[style*="background: #ebebeb"] > td {
    background: #edf3f8 !important;
    border-bottom: 2px solid #d8e2eb !important;
}
/* Keep the existing active replacement warning distinct from ordinary hover. */
body.demed-admin-ui .table > tbody > tr.replacement-available > td {
    background-color: #fce4ec !important;
}
body.demed-admin-ui .table > tbody > tr.replacement-available:hover > td {
    background-color: #f8bbd0 !important;
}
body.demed-admin-ui .table .text-muted,
body.demed-admin-ui .table .text-gray { color: #7a8b9b; }
body.demed-admin-ui .table .confirm-sort,
body.demed-admin-ui .table .shipped-sort {
    color: #315f84;
    font-weight: 700;
}
body.demed-admin-ui .price-analyse-comparison {
    border-color: #dce6ef;
}
body.demed-admin-ui .price-analyse-comparison > thead > tr > th {
    text-align: center;
}
body.demed-admin-ui .table-fixed td { background: #fff; }

/* Consistent action buttons; retain semantic red/amber/green distinctions. */
body.demed-admin-ui .btn {
    min-height: 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none;
}
body.demed-admin-ui .btn.btn-xs {
    min-height: 22px;
    border-radius: 6px;
}
body.demed-admin-ui .btn.btn-sm {
    min-height: 28px;
    padding: 5px 10px;
}
body.demed-admin-ui .btn-primary {
    border-color: #2b6f9f;
    background: #2b6f9f;
    color: #fff;
}
body.demed-admin-ui .btn-primary:hover,
body.demed-admin-ui .btn-primary:focus {
    border-color: #205b84;
    background: #205b84;
    color: #fff;
}
body.demed-admin-ui .btn-success {
    border-color: #2e8061;
    background: #2e8061;
    color: #fff;
}
body.demed-admin-ui .btn-success:hover,
body.demed-admin-ui .btn-success:focus {
    border-color: #24684e;
    background: #24684e;
    color: #fff;
}
body.demed-admin-ui .btn-info {
    border-color: #4d8a9d;
    background: #4d8a9d;
    color: #fff;
}
body.demed-admin-ui .btn-info:hover,
body.demed-admin-ui .btn-info:focus {
    border-color: #3a7183;
    background: #3a7183;
    color: #fff;
}
body.demed-admin-ui .btn-warning {
    border-color: #d2a34e;
    background: #d2a34e;
    color: #3e321d;
}
body.demed-admin-ui .btn-warning:hover,
body.demed-admin-ui .btn-warning:focus {
    border-color: #bd8c35;
    background: #bd8c35;
    color: #302615;
}
body.demed-admin-ui .btn-danger {
    border-color: #bd6666;
    background: #bd6666;
    color: #fff;
}
body.demed-admin-ui .btn-danger:hover,
body.demed-admin-ui .btn-danger:focus {
    border-color: #a64e4e;
    background: #a64e4e;
    color: #fff;
}
body.demed-admin-ui .btn-default {
    border-color: #d6e0e9;
    background: #fff;
    color: #456078;
}
body.demed-admin-ui .btn-default:hover,
body.demed-admin-ui .btn-default:focus {
    border-color: #b9ccdc;
    background: #f4f8fb;
    color: #2e536f;
}
body.demed-admin-ui .btn[disabled],
body.demed-admin-ui .btn.disabled { opacity: .55; }
body.demed-admin-ui .btn.btn-link {
    border-color: transparent;
    background: transparent;
    color: #2d6f9f;
    box-shadow: none;
}
body.demed-admin-ui .btn.btn-link:hover,
body.demed-admin-ui .btn.btn-link:focus {
    border-color: transparent;
    background: #edf4fa;
    color: #20577f;
}

/* Search, quantity, price and comment controls. */
body.demed-admin-ui .form-control {
    min-height: 34px;
    border-color: #d7e2ec;
    border-radius: 8px;
    background: #fff;
    color: #344a61;
    box-shadow: none;
}
body.demed-admin-ui .form-control.input-sm {
    min-height: 30px;
    height: 30px;
    border-radius: 7px;
}
body.demed-admin-ui .form-control:focus {
    border-color: #80afd2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(64, 133, 184, .12);
}
body.demed-admin-ui .form-control::placeholder {
    color: #93a2b1;
    opacity: 1;
}
body.demed-admin-ui .input-group-addon {
    border-color: #d7e2ec;
    background: #f3f7fa;
    color: #526b82;
}
body.demed-admin-ui .control-label {
    color: #425b72;
    font-weight: 650;
}
body.demed-admin-ui input[type="checkbox"],
body.demed-admin-ui input[type="radio"] {
    accent-color: #397da9;
}
body.demed-admin-ui .checkbox,
body.demed-admin-ui .radio { color: #465f75; }

/* Status labels preserve their semantics; the async loader is not a status label. */
body.demed-admin-ui .label:not(.layer-loading) {
    display: inline-block;
    padding: .34em .58em;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    vertical-align: middle;
}
body.demed-admin-ui .label-success { background: #e4f1e9; color: #28674f; }
body.demed-admin-ui .label-warning { background: #fff1d7; color: #89611d; }
body.demed-admin-ui .label-info { background: #e5f1f6; color: #32677f; }
body.demed-admin-ui .label-primary { background: #e6eff8; color: #315f84; }
body.demed-admin-ui .label-danger { background: #f8e8e8; color: #984747; }

/* Feedback, parser progress, dialogs and inline payment comments. */
body.demed-admin-ui .alert {
    margin-bottom: 15px;
    padding: 11px 14px;
    border: 1px solid #dce8f2;
    border-radius: 9px;
    box-shadow: none;
}
body.demed-admin-ui .alert-success {
    border-color: #d6e9dd;
    background: #edf6f0;
    color: #2c674f;
}
body.demed-admin-ui .alert-info {
    border-color: #d9e8f0;
    background: #eef6fa;
    color: #315f78;
}
body.demed-admin-ui .alert-warning {
    border-color: #f0dfbd;
    background: #fff7e8;
    color: #795a25;
}
body.demed-admin-ui .alert-danger {
    border-color: #eed6d6;
    background: #fbefef;
    color: #914747;
}
body.demed-admin-ui .progress {
    height: 12px;
    border-radius: 8px;
    background: #e7edf3;
    box-shadow: none;
}
body.demed-admin-ui .progress-bar { border-radius: 8px; }
body.demed-admin-ui .popover {
    max-width: min(520px, calc(100vw - 24px));
    border-color: #dce6ef;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(31, 55, 82, .15);
}
body.demed-admin-ui .popover-title {
    border-bottom-color: #e4ebf2;
    border-radius: 9px 9px 0 0;
    background: #f4f7fa;
    color: #344f68;
    font-weight: 700;
}
body.demed-admin-ui .modal-header {
    border-bottom-color: #e4ebf2;
    background: #f7f9fb;
}
body.demed-admin-ui .modal-title {
    color: #294761;
    font-weight: 700;
}
body.demed-admin-ui .modal-footer {
    border-top-color: #e4ebf2;
    background: #fbfcfd;
}
body.demed-admin-ui .pagination { margin: 12px 0 20px; }
body.demed-admin-ui .pagination > li > a,
body.demed-admin-ui .pagination > li > span {
    margin: 0 2px;
    padding: 7px 11px;
    border: 1px solid #dfe8f0;
    border-radius: 7px;
    background: #fff;
    color: #45637f;
}
body.demed-admin-ui .pagination > li.active > a,
body.demed-admin-ui .pagination > li.active > span {
    border-color: #2b6f9f;
    background: #2b6f9f;
    color: #fff;
}

/* Dense price comparison and parser results must scroll inside their tables. */
body.demed-admin-ui .table-responsive,
body.demed-admin-ui .table-responsive2 {
    max-width: 100%;
}
body.demed-admin-ui .price-combs {
    border: 1px solid #dce6ef;
    border-radius: 9px;
    background: #f4f8fb;
    box-shadow: 0 8px 24px rgba(31, 55, 82, .12);
}
body.demed-admin-ui .build-order-total-cell {
    color: #294761;
    font-weight: 700;
}

@media (max-width: 991px) {
    body.demed-legacy-admin-ui > .container {
        padding-right: 14px;
        padding-left: 14px;
    }
    body.demed-admin-ui > .container-fluid {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }
    body.demed-admin-ui .nav-tabs > li.pull-right {
        margin-left: 0;
    }
}
@media (max-width: 767px) {
    body.demed-legacy-admin-ui > .container {
        padding: 72px 10px 24px;
    }
    body.demed-legacy-admin-no-navbar > .container {
        padding-top: 10px;
    }
    body.demed-admin-ui > .container-fluid {
        padding-top: 72px;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
    body.demed-admin-ui .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        white-space: nowrap;
    }
    body.demed-admin-ui .nav-tabs > li {
        flex: 0 0 auto;
    }
    body.demed-admin-ui .nav-tabs > li.pull-right {
        margin-left: 0;
    }
    body.demed-admin-ui .table-responsive,
    body.demed-admin-ui .table-responsive2 {
        border: 0;
    }
}

/* HO4 UI 2026-11-11 — buyer cart mobile navigation.
 * Match the compact buyer-catalog header without changing cart content or actions.
 * Invariants: all links keep their original hrefs; cart/order data and handlers are untouched.
 * The legacy RU/EU quick price switch is omitted from the mobile header only;
 * checkout price selection and the underlying pricing model remain unchanged.
 */
@media (max-width: 767px) {
    body.demed-buyer-cart-ui .navbar.navbar-fixed-top {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 54px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 7px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-bottom: 1px solid #e0e7ed !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(30, 55, 75, .06) !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-header {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 52px !important;
        float: none !important;
        margin: 0 !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-toggle {
        display: none !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-brand {
        display: block !important;
        flex: 0 0 auto !important;
        float: none !important;
        width: auto !important;
        max-width: 66px !important;
        height: 50px !important;
        margin: 0 !important;
        padding: 0 7px 0 2px !important;
        overflow: hidden !important;
        color: #31536d !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        line-height: 50px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-brand img {
        max-width: 58px !important;
        max-height: 42px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-collapse,
    body.demed-buyer-cart-ui .navbar .navbar-collapse.collapse {
        display: flex !important;
        flex: 1 1 0% !important;
        align-items: center !important;
        width: 0 !important;
        min-width: 0 !important;
        max-height: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-nav {
        order: 1 !important;
        display: flex !important;
        flex: 1 1 0% !important;
        align-items: stretch !important;
        width: 0 !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-nav > li {
        display: block !important;
        flex: 1 1 0% !important;
        float: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-nav > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 4px 2px !important;
        color: #40586b !important;
        font-size: 11px !important;
        font-weight: 550 !important;
        line-height: 1.15 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-nav > li.active > a {
        border-radius: 7px !important;
        background: #edf4f9 !important;
        color: #315f80 !important;
    }

    body.demed-buyer-cart-ui .navbar .navbar-right {
        float: none !important;
        margin: 0 0 0 4px !important;
    }

    /* Desktop information and feedback buttons have no place in the compact header. */
    body.demed-buyer-cart-ui .navbar .show-modal,
    body.demed-buyer-cart-ui .navbar .btn-feedback {
        display: none !important;
    }

    /* Keep the existing add-product link and handler; show only its icon. */
    body.demed-buyer-cart-ui .navbar .cart-ui-add {
        order: 3 !important;
        display: flex !important;
        flex: 0 0 34px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 36px !important;
        min-height: 36px !important;
        margin: 0 0 0 4px !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        white-space: nowrap !important;
    }

    body.demed-buyer-cart-ui .navbar .cart-ui-add > .fa {
        display: inline-block !important;
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1 !important;
    }

    /* Clear-all and the duplicate order number are intentionally absent on mobile. */
    body.demed-buyer-cart-ui .navbar .btn-cart-clear,
    body.demed-buyer-cart-ui .navbar .cart-ui-id {
        display: none !important;
    }

    /* Legacy RU/EU quick price controls are retired from the mobile cart header. */
    body.demed-buyer-cart-ui .navbar .cart-ui:not(.cart-ui-id):not(.btn-cart-clear) {
        display: none !important;
    }

    /* Preserve a compact user icon if an authenticated account dropdown is present. */
    body.demed-buyer-cart-ui .navbar .mobile-account {
        order: 5 !important;
        position: relative !important;
        display: block !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 38px !important;
        margin: 0 0 0 4px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.demed-buyer-cart-ui .navbar .mobile-account > .dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border: 1px solid #dce6ed !important;
        border-radius: 8px !important;
        background: #f4f8fb !important;
        color: #31536d !important;
        text-decoration: none !important;
        font-size: 0 !important;
    }

    body.demed-buyer-cart-ui .navbar .mobile-account > .dropdown-toggle .fa-user {
        margin: 0 !important;
        font-size: 18px !important;
    }

    body.demed-buyer-cart-ui .navbar .mobile-account > .dropdown-toggle .caret {
        display: none !important;
    }

    body.demed-buyer-cart-ui .navbar .mobile-account > .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1100 !important;
        display: none;
        min-width: 190px !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 !important;
        padding: 5px 0 !important;
        border: 1px solid #dce5ec !important;
        border-radius: 9px !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(25, 48, 67, .16) !important;
    }

    body.demed-buyer-cart-ui .navbar .mobile-account.open > .dropdown-menu {
        display: block !important;
    }

    body.demed-buyer-cart-ui .navbar .mobile-account .dropdown-menu > li > a {
        display: block !important;
        min-height: 38px !important;
        padding: 9px 13px !important;
        color: #344f65 !important;
        font-size: 13px !important;
        white-space: normal !important;
    }
}


/* HO4 UI 2026-11-11 — cart quantity stepper.
 * Shared presentation for the main cart and both checkout-step templates.
 * The quantity remains the existing input-update-qty field; only its control surface changes.
 */
.demed-qty-stepper {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    max-width: 100% !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.demed-qty-stepper__button {
    display: inline-flex !important;
    flex: 0 0 25px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d5e0e8 !important;
    border-radius: 6px !important;
    background: #f6f9fb !important;
    box-shadow: none !important;
    color: #36566e !important;
    font-family: Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.demed-qty-stepper__button:hover,
.demed-qty-stepper__button:focus {
    border-color: #a9bdcc !important;
    background: #edf4f8 !important;
    color: #274b65 !important;
    outline: none !important;
}

.demed-qty-stepper__button:active {
    background: #e2edf4 !important;
}

.demed-qty-stepper input.input-update-qty {
    display: inline-block !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd8e2 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #263e50 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    text-align: center !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.demed-qty-stepper input.input-update-qty::-webkit-inner-spin-button,
.demed-qty-stepper input.input-update-qty::-webkit-outer-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
}
