.dealer-inventory { margin: 24px 0; min-width: 0; border-top: 1px solid #dce2e5; padding-top: 20px; }
.dealer-inventory > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.dealer-inventory h2 { font-size: 22px; line-height: 1.3; margin: 0; }
.dealer-inventory > [role="status"] { min-height: 24px; margin: 12px 0; }
.inventory-make-summary { position: relative; margin: 16px 0; padding: 0 0 16px; border-bottom: 1px solid #e2e7e9; }
.inventory-make-summary h3 { margin: 0 0 8px; font-size: 16px; line-height: 24px; }
.inventory-stock-info { display: inline-flex; vertical-align: middle; font-weight: 400; }
.inventory-stock-info button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 4px; border: 0; border-radius: 4px; color: #56616a; background: transparent; cursor: pointer; }
.inventory-stock-info button:hover { background: #edf3f2; }
.inventory-stock-info button:focus-visible { outline: 2px solid #006b68; outline-offset: 2px; }
.inventory-stock-info svg { width: 16px; height: 16px; }
.inventory-stock-tooltip { display: none; position: absolute; top: 34px; left: 0; z-index: 10; width: max-content; max-width: min(260px, 100%); box-sizing: border-box; padding: 8px 12px; border: 1px solid #dce2e5; border-radius: 4px; background: #fff; color: #263b3b; box-shadow: 0 3px 12px #00000014; font-size: 13px; line-height: 20px; font-weight: 400; overflow-wrap: anywhere; }
.inventory-stock-tooltip::before { content: ""; position: absolute; top: -12px; left: 0; width: 100%; height: 12px; }
.inventory-stock-info:is(:hover, :focus-within):not([data-dismissed]) .inventory-stock-tooltip { display: block; }
.inventory-make-counts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 22px; }
.inventory-make-counts li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.inventory-make-counts strong { font-variant-numeric: tabular-nums; }
.inventory-scroll { width: 100%; overflow-x: auto; margin-top: 12px; }
.inventory-table { width: 100%; min-width: 740px; border-collapse: collapse; font-size: 14px; }
.inventory-table th, .inventory-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #e2e7e9; vertical-align: top; }
.inventory-table th { background: #f3f6f6; font-weight: 600; white-space: nowrap; }
.inventory-table td:nth-last-child(-n+2), .inventory-table th:nth-last-child(-n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inventory-table td:nth-child(2) { min-width: 170px; max-width: 300px; overflow-wrap: anywhere; }
.inventory-table button { font: inherit; text-align: left; border: 0; padding: 0; background: none; color: #006b68; text-decoration: underline; cursor: pointer; overflow-wrap: anywhere; }
.inventory-table tbody tr:hover { background: #f6f9f9; }
.inventory-table tbody tr[data-car-id] { cursor: pointer; }
.inventory-dialog { box-sizing: border-box; width: min(720px, calc(100% - 24px)); max-width: 720px; height: min(700px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #dce2e5; border-radius: 8px; margin: auto; color: #172123; background: white; overflow: hidden; }
.inventory-dialog[open] { display: grid; grid-template-rows: 76px minmax(0, 1fr) 68px; }
.inventory-dialog::backdrop { background: rgb(0 0 0 / 48%); }
.inventory-dialog > header { min-width: 0; background: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #e2e7e9; }
body:has(.inventory-dialog[open]) { overflow: hidden; }
.inventory-dialog h2 { min-width: 0; font-size: 20px; line-height: 24px; max-height: 48px; overflow-y: auto; overflow-wrap: anywhere; }
.inventory-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: #f0f4f4; border-radius: 4px; cursor: pointer; }
.inventory-close svg { width: 20px; height: 20px; }
.inventory-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; overflow-anchor: none; }
.inventory-overview { box-sizing: border-box; min-height: 100%; padding: 16px 20px; display: flex; flex-direction: column; }
.inventory-dialog .inventory-primary-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 70px; gap: 8px 20px; margin: 0; }
.inventory-primary-facts > div { min-width: 0; border-bottom: 1px solid #edf0f1; }
.inventory-primary-facts dt { font-size: 13px; line-height: 18px; margin-bottom: 4px; }
.inventory-primary-facts dd { position: relative; height: 40px; font-size: 16px; line-height: 20px; font-weight: 600; overflow-y: auto; font-variant-numeric: tabular-nums; }
.inventory-primary-facts dd[data-car-field="price"] { font-size: 20px; color: #006b68; }
.inventory-primary-facts dd.is-pending { color: transparent; }
.inventory-primary-facts dd.is-pending::after { content: ""; position: absolute; top: 4px; left: 0; width: 68%; height: 12px; background: #e4eaea; border-radius: 3px; }
.inventory-primary-facts dd.is-unknown { color: #586467; font-size: 14px; font-weight: 400; }
.inventory-overview-bottom { margin-top: auto; padding-top: 8px; }
.inventory-overview-bottom [data-car-status] { height: 54px; margin: 0 0 4px; font-size: 13px; line-height: 18px; color: #586467; overflow-y: auto; }
.inventory-details-link { display: flex; align-items: center; gap: 8px; height: 32px; max-width: 100%; padding: 0; font: inherit; font-size: 14px; color: #006b68; background: none; border: 0; cursor: pointer; }
.inventory-details-link svg { width: 16px; height: 16px; }
.inventory-extra { padding: 16px 20px; border-top: 1px solid #e2e7e9; }
.inventory-dialog dl { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); gap: 8px 20px; margin: 0 0 16px; }
.inventory-dialog dt { color: #586467; }
.inventory-dialog dd { margin: 0; overflow-wrap: anywhere; }
.inventory-dialog h3 { font-size: 16px; margin: 16px 0 8px; }
.inventory-dialog ul { columns: 2; padding-left: 18px; }
.inventory-dialog li { break-inside: avoid; overflow-wrap: anywhere; margin-bottom: 6px; }
.inventory-dialog footer { display: flex; align-items: center; padding: 10px 20px; border-top: 1px solid #e2e7e9; }
.inventory-dialog footer .button { white-space: normal; font-size: 14px; }
.dealer-inventory [hidden] { display: none !important; }
@media (max-width: 480px) {
    .inventory-dialog ul { columns: 1; }
    .inventory-dialog > header, .inventory-dialog footer { padding-left: 16px; padding-right: 16px; }
    .inventory-overview, .inventory-extra { padding: 16px; }
    .inventory-dialog .inventory-primary-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
