/* LS Website Inventory Page Styles
   Clean module-owned styling for /inventory. Keep page-specific rules here so old
   website custom-code snippets are not needed. */

#ls_category_links_dynamic_table {
    position: relative;
}

.solera-inventory-hero {
    max-width: 960px;
    margin: 12px auto 0;
    padding-inline: 20px;
}

.solera-inventory-hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 216px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 24px 24px;
    color: #fff;
    text-align: center;
    border-radius: 0 22px 22px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 66% 44%, rgba(103, 84, 43, 0.44) 0%, rgba(43, 33, 19, 0.32) 30%, rgba(8, 8, 8, 0) 68%),
        linear-gradient(90deg, #050505 0%, #17120d 40%, #302617 63%, #070706 100%);
    box-shadow: none;
}

.solera-inventory-date {
    margin: 0 0 30px;
    color: #a9904b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.solera-inventory-titleblock,
.solera-inventory-titleblock * {
    margin: 0;
    color: #fff !important;
    text-align: center;
}

.solera-inventory-titleblock {
    max-width: 860px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.34;
}

.solera-inventory-titleblock::first-line {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
}

.solera-inventory-titleblock h1,
.solera-inventory-titleblock h2,
.solera-inventory-titleblock h3,
.solera-inventory-titleblock p,
.solera-inventory-titleblock span,
.solera-inventory-titleblock div,
.solera-inventory-titleblock a,
.solera-inventory-titleblock strong,
.solera-inventory-titleblock b,
.solera-inventory-titleblock .h6-fs,
.solera-inventory-titleblock .h5-fs,
.solera-inventory-titleblock .h4-fs {
    margin: 0;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit;
}

.solera-inventory-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.solera-inventory-contact-label {
    display: none;
}

.solera-inventory-contact-icon {
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

.solera-inventory-contact-link,
.ls_tel_link {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.solera-inventory-contact-link:hover,
.ls_tel_link:hover {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.solera-inventory-downloads {
    margin-top: 18px;
    margin-bottom: 8px;
}

.solera-inventory-download-icon {
    display: block;
    width: auto;
    height: 54px;
    filter: brightness(0) invert(1);
}

.ls_pdf_links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ls_category_links {
    max-width: 960px;
    width: 100%;
    margin: 10px auto;
    padding-inline: 20px;
}

.solera-inventory-filter-block {
    margin-top: 2px;
}

.solera-inventory-filter-label {
    margin: 2px 0 4px;
    color: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ls_category_links_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    padding: 7px 13px;
    min-height: 34px;
    color: rgba(0, 0, 0, 0.78);
    background: #fff;
    border: 1px solid #d7d0c4;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ls_category_links_item:hover,
.ls_category_links_item.ls_active {
    color: #fff;
    background: var(--o-color-1);
    border-color: var(--o-color-1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    text-decoration: none;
}

.ls_category_more_toggle {
    display: none;
    align-items: center;
    justify-content: center;
    margin: 3px;
    min-height: 34px;
    padding: 7px 13px;
    color: #fff;
    background: #7a641c;
    border: 1px solid #7a641c;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ls_category_links_item[hidden] {
    display: none !important;
}

.solera-inventory-points-link {
    font-weight: 400;
}

.ls_separator {
    display: none;
}

.ls_category_links_table table {
    width: 100%;
    margin-bottom: 80px;
    table-layout: fixed !important;
    border-color: #dad6db !important;
}

.ls_category_links_table tr th,
.ls_category_links_table tr td {
    box-shadow: none !important;
}

.ls_category_links_table tr th {
    padding: 10px 14px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #7A641C !important;
    border: none;
    font-size: 14px;
    font-weight: 800 !important;
    text-transform: capitalize;
    vertical-align: middle;
    white-space: nowrap;
}

.ls_category_links_table tr th:first-child {
    border-radius: 3px 0 0 0;
}

.ls_category_links_table tr th:last-child {
    border-radius: 0 3px 0 0;
}

.ls_category_links_table tr td {
    padding: 10px 6px;
    color: var(--o-color-1);
    background: transparent !important;
    font-size: 15px;
    font-weight: 400;
    vertical-align: middle;
}

.ls_category_links_table tr td *,
.solera-inventory-product-link,
.solera-inventory-product-link * {
    font-weight: 400 !important;
}

.solera-inventory-product-link {
    color: inherit;
    text-decoration: none;
}

.solera-inventory-product-link:hover {
    text-decoration: underline;
}

/* Balanced inventory columns: Year / Description / UoM / Qty / Price / Rating. */
.ls_category_links_table tr td:nth-child(1),
.ls_category_links_table tr th:nth-child(1) {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}

.ls_category_links_table tr td:nth-child(2),
.ls_category_links_table tr th:nth-child(2) {
    width: 48%;
}

.ls_category_links_table tr td:nth-child(3),
.ls_category_links_table tr th:nth-child(3) {
    width: 11%;
    text-align: center;
    white-space: nowrap;
}

.ls_category_links_table tr td:nth-child(4),
.ls_category_links_table tr th:nth-child(4) {
    width: 8%;
    text-align: center;
    white-space: nowrap;
}

.ls_category_links_table tr td:nth-child(5),
.ls_category_links_table tr th:nth-child(5) {
    width: 14%;
    text-align: right;
    white-space: nowrap;
}

.ls_category_links_table tr td:nth-child(6),
.ls_category_links_table tr th:nth-child(6) {
    width: 10%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sticky header — all viewports; parent overflow must stay visible */
.ls_category_links_table table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.ls_category_links_table thead th {
    position: sticky;
    top: 72px;
    z-index: 30;
    background: var(--o-color-1, #111);
    color: var(--o-color-4, #fff);
    box-shadow: 0 1px 0 rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.18);
}

.ls_category_links_table tr:last-child td:first-child {
    border-radius: 0 0 0 3px;
}

.ls_category_links_table tr:last-child td:last-child {
    border-radius: 0 0 3px 0;
}

.ls_category_links_table thead tr {
    border: none;
}

.ls_category_links_table tbody tr {
    background: #efefef;
}

.ls_category_links_table tbody tr:nth-child(even) {
    background-color: #fff !important;
}

.ls_category_links_table tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.ls_category_links_table tbody tr:hover {
    background: var(--o-color-4) !important;
}

.ls_category_links_table tbody tr:hover td {
    --table-bg-state: transparent !important;
}

.ls_category_links_table tbody tr.ls_no_product_found:hover {
    background: #efefef !important;
}

/* Full-bleed inventory content: use available viewport width */
#ls_category_links_dynamic_table {
    width: 100%;
    max-width: none;
    padding-left: 8px;
    padding-right: 8px;
}

#ls_category_links_dynamic_table .container-450px,
#ls_category_links_dynamic_table .ls_category_links_table_container,
#ls_category_links_dynamic_table .ls_category_links_table {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important; /* required for sticky thead */
}

/* Price / rating need breathing room so values never kiss the cell border */
.ls_category_links_table tr td:nth-child(5),
.ls_category_links_table tr th:nth-child(5),
.td-table-price,
.table-price {
    padding-left: 10px !important;
    padding-right: 12px !important;
}

.ls_category_links_table tr td:nth-child(6),
.ls_category_links_table tr th:nth-child(6),
.td-table-rating,
.table-rating {
    padding-left: 8px !important;
    padding-right: 10px !important;
}

@media (max-width: 640px) {
    #ls_category_links_dynamic_table {
        padding-left: 4px;
        padding-right: 4px;
    }

    .solera-inventory-hero,
    .ls_category_links {
        padding-inline: 4px;
    }

    .solera-inventory-hero-card {
        min-height: 184px;
        padding: 22px 12px 20px;
        border-radius: 0 18px 18px 0;
    }

    .solera-inventory-date {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .solera-inventory-titleblock {
        font-size: 14px;
        line-height: 1.34;
    }

    .solera-inventory-titleblock::first-line {
        font-size: 22px;
    }

    .solera-inventory-contact {
        margin-top: 20px;
        font-size: 14px;
    }

    .solera-inventory-download-icon {
        height: 40px;
    }

    .ls_category_links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        margin: 6px auto 8px;
        padding: 5px 2px 8px;
        text-align: center;
        max-width: none;
    }

    .ls_category_links br {
        display: none;
    }

    .ls_category_links_item {
        flex: 0 1 auto;
        margin: 0;
        min-height: 29px;
        padding: 6px 9px;
        font-size: 12px;
        line-height: 1;
    }

    .ls_category_more_toggle {
        display: inline-flex;
        flex: 0 1 auto;
        margin: 0;
        min-height: 29px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .solera-inventory-filter-label {
        margin-top: 0;
        margin-bottom: 3px;
        font-size: 11px;
        letter-spacing: 0.11em;
    }

    #ls_category_links_dynamic_table div.ls_category_links_table {
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #ls_category_links_dynamic_table div.ls_category_links_table thead th {
        position: sticky;
        top: 64px;
        z-index: 30;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.22) !important;
    }

    .ls_category_links_table table {
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed !important;
    }

    /* Readable mobile type and white bold header. */
    .ls_category_links_table tr th,
    .ls_category_links_table tr td {
        padding: 8px 4px;
        font-size: 12.5px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        word-break: normal;
        overflow: hidden;
        box-sizing: border-box;
    }

    .ls_category_links_table tr th {
        padding: 9px 4px;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: #7A641C !important;
        font-size: 12px;
        font-weight: 800 !important;
    }

    .ls_category_links_table tr td {
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
    }

    .ls_category_links_table tr td a,
    .ls_category_links_table tr td .solera-inventory-product-link {
        color: #111 !important;
    }

    /* 10 + 44 + 12 + 8 + 15 + 11 = 100. Rating remains compact. */
    #ls_category_links_dynamic_table .ls_category_links_table tr td:nth-child(1),
    #ls_category_links_dynamic_table .ls_category_links_table tr th:nth-child(1),
    .ls_category_links_table tr td:nth-child(1),
    .ls_category_links_table tr th:nth-child(1) {
        width: 10% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    #ls_category_links_dynamic_table .ls_category_links_table tr td:nth-child(2),
    #ls_category_links_dynamic_table .ls_category_links_table tr th:nth-child(2),
    .ls_category_links_table tr td:nth-child(2),
    .ls_category_links_table tr th:nth-child(2) {
        width: 44% !important;
        padding-left: 6px;
        padding-right: 6px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #ls_category_links_dynamic_table .ls_category_links_table tr td:nth-child(3),
    #ls_category_links_dynamic_table .ls_category_links_table tr th:nth-child(3),
    .ls_category_links_table tr td:nth-child(3),
    .ls_category_links_table tr th:nth-child(3) {
        width: 12% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    #ls_category_links_dynamic_table .ls_category_links_table tr td:nth-child(4),
    #ls_category_links_dynamic_table .ls_category_links_table tr th:nth-child(4),
    .ls_category_links_table tr td:nth-child(4),
    .ls_category_links_table tr th:nth-child(4) {
        width: 8% !important;
    }

    #ls_category_links_dynamic_table .ls_category_links_table tr td:nth-child(5),
    #ls_category_links_dynamic_table .ls_category_links_table tr th:nth-child(5),
    .ls_category_links_table tr td:nth-child(5),
    .ls_category_links_table tr th:nth-child(5) {
        width: 15% !important;
        padding-left: 4px !important;
        padding-right: 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        font-variant-numeric: tabular-nums;
    }

    #ls_category_links_dynamic_table .ls_category_links_table tr td:nth-child(6),
    #ls_category_links_dynamic_table .ls_category_links_table tr th:nth-child(6),
    .ls_category_links_table tr td:nth-child(6),
    .ls_category_links_table tr th:nth-child(6) {
        width: 11% !important;
        padding-left: 3px !important;
        padding-right: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: table-cell !important;
    }
}

@media (max-width: 520px) {
    #ls_category_links_dynamic_table {
        padding-left: 2px;
        padding-right: 2px;
    }

    .ls_category_links_table tr th,
    .ls_category_links_table tr td {
        padding: 8px 3px;
        font-size: 12px;
        line-height: 1.32;
    }

    .ls_category_links_table tr th {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: #7A641C !important;
        font-size: 12px;
        font-weight: 800 !important;
    }

    /* Honor Magic V5 / narrow devices: 12 + 44 + 14 + 9 + 21 = 100; Rating hidden. */
    .ls_category_links_table tr td:nth-child(1),
    .ls_category_links_table tr th:nth-child(1) {
        width: 12% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .ls_category_links_table tr td:nth-child(2),
    .ls_category_links_table tr th:nth-child(2) {
        width: 44% !important;
    }

    .ls_category_links_table tr td:nth-child(3),
    .ls_category_links_table tr th:nth-child(3) {
        width: 14% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .ls_category_links_table tr td:nth-child(4),
    .ls_category_links_table tr th:nth-child(4) {
        width: 9% !important;
    }

    .ls_category_links_table tr td:nth-child(5),
    .ls_category_links_table tr th:nth-child(5) {
        width: 21% !important;
        padding-left: 2px !important;
        padding-right: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .ls_category_links_table tr td:nth-child(6),
    .ls_category_links_table tr th:nth-child(6) {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    #ls_category_links_dynamic_table {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ls_category_links_table tr td {
        padding: 10px 14px;
        font-size: 15px;
    }

    .ls_category_links_table tr th {
        font-size: 14px;
        padding: 10px 14px;
    }
}


/* SOLERA_INV_TABLE_DARK_GOLD_WHITE_20260723
 * Override Bootstrap .table-dark: dark-gold + white bold headers.
 * Make list use full viewport width. Widen UoM so 750mL never clips. */
.ls_inventory_page,
.solera-inventory-hero,
.ls_inventory_page main {
  max-width: 100% !important;
  width: 100% !important;
}
.ls_inventory_page .table-responsive,
.table-responsive:has(table.table-dark) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
}
.ls_inventory_page table.table,
.ls_inventory_page .table-responsive > .table,
table.table-dark {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: auto !important;
  margin: 0 !important;
}
.ls_inventory_page table.table-dark thead th,
.ls_inventory_page thead.table-dark th,
.ls_inventory_page table thead th {
  --bs-table-bg: #7A641C !important;
  --bs-table-color: #ffffff !important;
  --bs-table-striped-color: #ffffff !important;
  --bs-table-hover-color: #ffffff !important;
  background: #7A641C !important;
  background-color: #7A641C !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  text-align: center !important;
  white-space: nowrap !important;
  border-color: rgba(122,100,28,.35) !important;
}
.ls_inventory_page table.table-dark thead th *,
.ls_inventory_page thead.table-dark th * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}
.ls_inventory_page table.table-dark th.table-uom,
.ls_inventory_page table.table-dark td.table-uom,
.ls_inventory_page table.table-dark th:nth-child(3),
.ls_inventory_page table.table-dark td:nth-child(3) {
  min-width: 88px !important;
  width: 88px !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.ls_inventory_page table.table-dark td.table-description {
  white-space: normal !important;
  word-break: break-word !important;
  padding: 10px 8px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.ls_inventory_page table.table-dark td.table-year,
.ls_inventory_page table.table-dark td.table-qty,
.ls_inventory_page table.table-dark td.table-price,
.ls_inventory_page table.table-dark td.table-rating {
  white-space: nowrap !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}
.ls_inventory_page table.table-dark tbody td {
  --bs-table-color: #111111 !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: #fff !important;
  font-weight: 400 !important;
  border-color: #eee !important;
}
.ls_inventory_page table.table-dark tbody tr:nth-child(even) td {
  background: #fafafa !important;
}
