/*
 * Dashboard theme.
 *
 * Bootstrap 5 provides the grid, forms, and utilities. This file supplies the Horse Trailer
 * World palette and the handful of components the mockup uses that Bootstrap has no direct
 * equivalent for: the brand bar, the side navigation, stat tiles, and status badges.
 */

:root {
    --htw-red: #a32d2d;
    --htw-red-dark: #7e2222;
    --htw-ink: #1f1f1d;
    --htw-ink-soft: #5f5e5a;
    --htw-ink-muted: #8a8a85;
    --htw-line: #e4e2db;
    --htw-bg: #f4f3ee;
    --htw-card: #ffffff;
    --htw-success-bg: #eaf3de;
    --htw-success-text: #3b6d11;
    --htw-warning-bg: #faeeda;
    --htw-warning-text: #854f0b;
    --htw-radius: 8px;

    /* Point Bootstrap's theme colour at the brand red so links and focus rings match. */
    --bs-primary: #a32d2d;
    --bs-primary-rgb: 163, 45, 45;
    --bs-link-color: #a32d2d;
    --bs-link-color-rgb: 163, 45, 45;
    --bs-link-hover-color: #7e2222;
    --bs-body-bg: #f4f3ee;
    --bs-body-color: #1f1f1d;
    --bs-border-color: #e4e2db;
    --bs-border-radius: 8px;
}

body {
    background: var(--htw-bg);
    color: var(--htw-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Form fields, as in the listing flow mockup: white boxes with a thin blue outline while in use,
   faint placeholders, and grey field labels a pixel smaller than the body text. */
:root {
    --htw-focus: #3b82f6;
    --htw-placeholder: #b3b2ac;
}

.form-control,
.form-select {
    background-color: var(--htw-card);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--htw-card);
    border-color: var(--htw-focus);
    box-shadow: 0 0 0 1px var(--htw-focus);
}

.form-control::placeholder {
    color: var(--htw-placeholder);
    opacity: 1;
}

.form-label:not(.small) {
    font-size: calc(1rem - 1px);
}

.form-label {
    color: var(--htw-ink-soft);
}

/* Bootstrap compiles .btn-primary colours from Sass rather than the --bs-primary variable,
   so the brand red has to be restated through the button's own custom properties. */
.btn-primary {
    --bs-btn-bg: var(--htw-red);
    --bs-btn-border-color: var(--htw-red);
    --bs-btn-hover-bg: var(--htw-red-dark);
    --bs-btn-hover-border-color: var(--htw-red-dark);
    --bs-btn-active-bg: var(--htw-red-dark);
    --bs-btn-active-border-color: var(--htw-red-dark);
    --bs-btn-disabled-bg: var(--htw-red);
    --bs-btn-disabled-border-color: var(--htw-red);
}

/* Social sharing keeps the mockup's blue/black colours instead of the brand-red primary. */
.btn-share-facebook {
    --bs-btn-color: var(--htw-card);
    --bs-btn-bg: var(--bs-blue);
    --bs-btn-border-color: var(--bs-blue);
    --bs-btn-hover-color: var(--htw-card);
    --bs-btn-hover-bg: var(--bs-blue);
    --bs-btn-hover-border-color: var(--bs-blue);
    --bs-btn-active-color: var(--htw-card);
    --bs-btn-active-bg: var(--bs-blue);
    --bs-btn-active-border-color: var(--bs-blue);
    --bs-btn-disabled-color: var(--htw-card);
    --bs-btn-disabled-bg: var(--bs-blue);
    --bs-btn-disabled-border-color: var(--bs-blue);
    --bs-btn-disabled-opacity: 1;
}

.btn-danger-soft {
    --bs-btn-color: var(--htw-red);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #e3b3af;
    --bs-btn-hover-color: var(--htw-red);
    --bs-btn-hover-bg: #fbeceb;
    --bs-btn-hover-border-color: #c9463f;
    --bs-btn-disabled-color: var(--htw-red);
    --bs-btn-disabled-bg: #fff;
    --bs-btn-disabled-border-color: #e3b3af;
}

/* Top brand strip, matching the main site header. */
.brandbar {
    background: #fff;
    padding: 22px 0 14px;
    text-align: center;
    border-bottom: 1px solid var(--htw-line);
}

.brandbar .brand-logo {
    width: 90%;
    max-width: 520px;
    height: auto;
}

.accountbar {
    background: var(--htw-red);
    color: #fff;
    font-size: 13px;
}

/* Reminds a member to verify their email address; verification blocks nothing. */
.verifybar {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
    font-size: 13px;
}

/* Shown above the account bar while an administrator is impersonating a member. */
.impersonationbar {
    background: var(--htw-warning-text);
    color: #fff;
    font-size: 14px;
}

.accountbar a,
.accountbar-link {
    color: #fff;
    opacity: .92;
    text-decoration: none;
}

.accountbar-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.accountbar a:hover,
.accountbar-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Staff-only link to the Administration page: a white pill so it stands out on the red bar. */
.accountbar a.accountbar-admin {
    background: #fff;
    color: var(--htw-red);
    opacity: 1;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
}

.accountbar a.accountbar-admin:hover {
    background: #fbeceb;
    text-decoration: none;
}

/* Side navigation. */
.sidenav {
    background: #fff;
    border-right: 1px solid var(--htw-line);
    padding: 18px 0;
    min-height: calc(100vh - 130px);
}

.sidenav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--htw-ink-soft);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidenav a:hover {
    color: var(--htw-red);
    background: #fcf4f3;
}

.sidenav a.active {
    color: var(--htw-red);
    border-left-color: var(--htw-red);
    background: #faf2f0;
}

.sidenav a:focus-visible {
    outline: 2px solid var(--htw-red);
    outline-offset: -2px;
}

/* A fixed 20px slot so every label lines up, including labels that wrap. */
.sidenav .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--htw-red);
}

.sidenav .icon svg {
    width: 20px;
    height: 20px;
}

/* The Facebook "f" is a filled mark, so it is drawn a little smaller in its own brand blue. */
.sidenav .icon .facebook-logo {
    width: 18px;
    height: 18px;
    color: #1877f2;
}

.sidenav .divider {
    height: 1px;
    background: var(--htw-line);
    margin: 12px 20px;
}

.sidenav .version {
    padding: 14px 20px 4px;
    font-size: 10.5px;
    color: var(--htw-ink-muted);
}

.dashboard-main {
    padding: 24px 28px 60px;
    min-width: 0;
}

/* Page heading block. */
.page-heading h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.page-heading .sub {
    font-size: 13px;
    color: var(--htw-ink-soft);
    margin-top: 4px;
}

/* Cards and panels. */
.panel-card {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 14px 16px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.panel-title {
    font-size: 14px;
    font-weight: 700;
}

.panel-note {
    font-size: 11px;
    color: var(--htw-ink-muted);
}

/* Stat tiles. */
.stat {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 14px 16px;
    height: 100%;
}

.stat .label {
    font-size: 12px;
    color: var(--htw-ink-soft);
}

.stat .value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}

.stat-condensed {
    padding: 9px 12px;
}

.stat-condensed .label {
    font-size: 11px;
}

.stat-condensed .value {
    font-size: 17px;
    margin-top: 2px;
}

/* Quick action tiles on the dealer summary. */
.qa-tile {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qa-tile:hover {
    border-color: var(--htw-red);
    color: inherit;
}

.qa-tile .qa-icon {
    font-size: 18px;
    margin-bottom: 6px;
}

.qa-tile .qa-title {
    font-size: 12px;
    font-weight: 700;
}

.qa-tile .qa-sub {
    font-size: 10.5px;
    color: var(--htw-ink-muted);
    margin-top: 2px;
}

/* Tables. */
.table-wrap {
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    overflow: hidden;
}

.table-wrap .table {
    margin-bottom: 0;
    font-size: 13px;
    background: var(--htw-card);
}

.table-wrap .table > thead th {
    background: #faf9f6;
    font-weight: 600;
    color: var(--htw-ink-soft);
    padding: 9px 12px;
    border-bottom: 1px solid var(--htw-line);
    white-space: nowrap;
}

.table-wrap .table > tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--htw-line);
    vertical-align: middle;
}

.table-wrap .table > tbody tr:hover td {
    background: #faf5f2;
}

.table-note {
    font-size: 12px;
    color: var(--htw-ink-muted);
    margin-top: 8px;
}

/* Status badges. */
.badge-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 5px;
    display: inline-block;
}

.badge-status-active {
    background: var(--htw-success-bg);
    color: var(--htw-success-text);
}

.badge-status-draft {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
}

.badge-status-inactive {
    background: #e8eaf0;
    color: #4a5470;
}

.badge-status-sold,
.badge-status-archived {
    background: #eceae3;
    color: var(--htw-ink-muted);
}

.badge-status-blocked {
    background: #fbeceb;
    color: var(--htw-red);
}

/* Status and category filter tabs. */
.cat-tab {
    display: inline-block;
    border: 2px solid var(--htw-red);
    background: #fff;
    color: var(--htw-red);
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.cat-tab:hover {
    color: var(--htw-red);
}

.cat-tab.active {
    background: var(--htw-red);
    color: #fff;
}

/* Bulk action bar above the inventory grid. */
.bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #faf9f6;
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--htw-ink-soft);
}

/* Empty-state panels. */
.locked-panel {
    background: var(--htw-card);
    border: 1px dashed #c9c7bd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
}

.locked-panel .locked-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.locked-panel .locked-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.locked-panel .locked-sub {
    font-size: 13px;
    color: var(--htw-ink-soft);
    margin: 0;
}

/* Marks a panel that is deliberately not built yet. */
.dev-note {
    background: #fdf6e3;
    border: 1.5px dashed #d9b64e;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #6b5610;
    line-height: 1.5;
}

/* Performance overview grid on the dealer summary. */
.perf-item .n {
    font-size: 17px;
    font-weight: 700;
}

.perf-item .l {
    font-size: 11px;
    color: var(--htw-ink-soft);
}

/* Change from the previous period. A drop is muted rather than red: it is not an error. */
.perf-item .d {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--htw-success-text);
}

.perf-item .d.is-down {
    color: var(--htw-ink-muted);
}

/* AI suggestion rows on the dealer summary. */
.ai-row {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #f0efe9;
    font-size: 12.5px;
}

.ai-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.ai-row .txt {
    flex: 1;
}

.ai-row .title {
    font-weight: 600;
    margin: 0 0 2px;
}

.ai-row .meta {
    color: var(--htw-ink-muted);
    font-size: 11.5px;
    margin: 0;
}

.ai-row .ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ico-blue {
    background: #e3edfb;
    color: #1d4e93;
}

/* Toggle switches everywhere: brand red when on, rather than Bootstrap's blue, with a red focus
   ring and knob to match. */
.form-switch .form-check-input:checked {
    background-color: var(--htw-red);
    border-color: var(--htw-red);
}

.form-switch .form-check-input:focus {
    border-color: #d49696;
    box-shadow: 0 0 0 0.25rem rgba(163, 45, 45, 0.25);
}

.form-switch .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23d49696'/%3e%3c/svg%3e");
}

/* Every switch at the mockup's 34 x 20. Bootstrap sizes switches from the font size, which makes
   them small in the dashboard's compact text; the label is moved over to clear the wider switch. */
.form-switch {
    padding-left: 44px;
    min-height: 20px;
}

.form-switch .form-check-input {
    width: 34px;
    height: 20px;
    margin-left: -44px;
    margin-top: 0;
    cursor: pointer;
}

/* On the admin suggestions list the switch stands alone in its column, with no label to clear. */
.sug-admin-table .form-switch {
    padding-left: 0;
    min-height: 0;
}

.sug-admin-table .form-switch .form-check-input {
    width: 34px;
    height: 20px;
    margin: 0;
    float: none;
    cursor: pointer;
}

/* Pills on the admin suggestions list: the type, and the priority coloured as the dealer's cards are. */
.sug-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    display: inline-block;
    white-space: nowrap;
}

.sug-pill-rule,
.sug-pill-low {
    background: #eceae3;
    color: var(--htw-ink-soft);
}

.sug-pill-ai {
    background: #e3edfb;
    color: #1d4e93;
}

.sug-pill-high {
    background: #fbeceb;
    color: var(--htw-red);
}

.sug-pill-medium {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
}

/* Suggestion cards (Suggestions box and See all page): the icon is coloured by priority. */
.sug-high .ico {
    background: #fbeceb;
    color: var(--htw-red);
}

.sug-medium .ico {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
}

.sug-low .ico {
    background: #eceae3;
    color: var(--htw-ink-soft);
}

.sug-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: 1px;
    white-space: nowrap;
}

.sug-tag-ai {
    background: #e3edfb;
    color: #1d4e93;
}

.sug-tag-feed {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
}

.sug-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sug-actions .sug-snooze {
    font-size: 12px;
    font-weight: 600;
    color: var(--htw-ink-muted);
    text-decoration: none;
}

.sug-clear {
    text-align: center;
    padding: 18px 6px;
}

.sug-clear .big {
    font-size: 26px;
    color: var(--htw-success-text);
}

.sug-clear p {
    margin: 6px 0 0;
    font-size: 13px;
}

.sug-clear .meta {
    color: var(--htw-ink-muted);
    font-size: 11.5px;
}

.sug-seeall {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #f0efe9;
}

.sug-listing + .sug-listing {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--htw-line);
}

.sug-listing-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}

/* Daily views chart in the listing edit sidebar: one bar per day, scaled to the busiest day. */
.views-chart-scale {
    font-size: 10.5px;
    color: var(--htw-ink-muted);
    margin-bottom: 2px;
}

.views-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 88px;
    border-bottom: 1px solid var(--htw-line);
}

/* Each day is a full-height column so the hover target is larger than a short bar. */
.views-chart-day {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.views-chart-bar {
    width: 100%;
    min-height: 2px;
    background: var(--htw-red);
    border-radius: 4px 4px 0 0;
}

.views-chart-day:hover .views-chart-bar {
    background: var(--htw-red-dark);
}

.views-chart-day:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--htw-ink);
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 2;
}

/* Keep the tooltips of the first and last few days inside the panel. */
.views-chart-day:nth-child(-n+5):hover::after {
    left: 0;
    transform: none;
}

.views-chart-day:nth-last-child(-n+5):hover::after {
    left: auto;
    right: 0;
    transform: none;
}

.views-chart-axis {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--htw-ink-muted);
    margin-top: 4px;
}

/* Logon page. */
.logon-card {
    max-width: 420px;
    margin: 48px auto;
}

/* Advertise page. */
.advertise-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    padding: 0;
    overflow: hidden;
}

.advertise-intro-text,
.advertise-guide {
    padding: 24px 26px;
}

.advertise-intro-text p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.advertise-intro-text p:last-child {
    margin-bottom: 0;
}

.advertise-guide {
    background: var(--htw-red);
    color: var(--htw-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.advertise-guide h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.advertise-guide p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.advertise-guide .btn-light {
    color: var(--htw-red);
}

.advertise-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 30px;
}

.advertise-benefit {
    padding: 16px 18px;
}

.advertise-benefit-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.advertise-benefit h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.advertise-benefit p {
    font-size: 13.5px;
    color: var(--htw-ink-soft);
    line-height: 1.45;
    margin: 0;
}

.advertise-section-heading h2 {
    font-size: 21px;
    margin: 0 0 4px;
}

.advertise-section-heading p {
    color: var(--htw-ink-soft);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
}

.advertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.advertise-placement {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.advertise-thumbnail {
    display: block;
    width: 100%;
    background: var(--htw-bg);
    border: 0;
    border-bottom: 1px solid var(--htw-line);
    padding: 10px;
    cursor: zoom-in;
}

.advertise-preview-image {
    display: block;
    width: 100%;
    height: auto;
}

.advertise-thumbnail img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
}

.advertise-placement-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.advertise-placement h3 {
    font-size: 17.5px;
    margin: 0 0 6px;
}

.advertise-placement p {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--htw-ink-soft);
    margin: 0 0 14px;
    flex: 1;
}

.advertise-cta {
    margin-top: 30px;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.advertise-cta p {
    max-width: 560px;
}

.advertise-cta .btn-outline-primary {
    --bs-btn-color: var(--htw-red);
    --bs-btn-border-color: var(--htw-red);
    --bs-btn-hover-bg: var(--htw-red);
    --bs-btn-hover-border-color: var(--htw-red);
    --bs-btn-active-bg: var(--htw-red-dark);
    --bs-btn-active-border-color: var(--htw-red-dark);
}

@media (max-width: 900px) {
    .advertise-intro,
    .advertise-benefits,
    .advertise-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Spam screening log and event pages. */
.screening-search {
    min-width: 220px;
}

.screening-country {
    width: 90px;
}

.screening-rule {
    width: 100px;
}

.screening-count {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.screening-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 13px;
}

.screening-facts dt {
    font-weight: 600;
    color: var(--htw-ink-soft);
}

.screening-facts dd {
    margin: 0;
    min-width: 0;
}

.screening-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #faf9f6;
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 8px;
}

/* A full audit action description in the /Admin/AuditActions dialog. */
.audit-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #faf9f6;
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 10px 12px;
    font-size: 13px;
}

.screening-threshold {
    width: 130px;
}

/* A stored request or response on /Feeds/RemoteImportLogs. */
.log-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 240px;
    overflow: auto;
    background: #faf9f6;
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

.log-pre-tall {
    max-height: 500px;
}

.screening-note {
    max-width: 260px;
}

/* Administration page: sections flow into columns so 30-40 tools stay on one screen. */
.admin-filter {
    max-width: 420px;
}

.admin-sections {
    columns: 3 300px;
    column-gap: 16px;
}

.admin-section {
    break-inside: avoid;
    margin-bottom: 16px;
}

.admin-tools {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-tools li + li {
    margin-top: 10px;
}

.admin-tools a {
    font-weight: 600;
    font-size: 14px;
}

.admin-tool-description {
    font-size: 12px;
    color: var(--htw-ink-soft);
}

/* Sortable column headers. */
.sort-link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.sort-link:hover {
    color: var(--htw-red);
}

.screening-shadow-note {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
    border-radius: var(--htw-radius);
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
}

.screening-outcomes > summary {
    cursor: pointer;
}

/* Autocomplete list drawn by wwwroot/js/autocomplete.js under the input it wraps. */
.autocomplete-menu {
    display: none;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    max-height: 16rem;
    overflow-y: auto;
    z-index: 30;
}

.autocomplete-menu.show {
    display: block;
}

.autocomplete-menu .dropdown-item {
    white-space: normal;
}

.autocomplete-menu .autocomplete-detail {
    color: var(--htw-ink-soft);
}

.autocomplete-menu .autocomplete-current,
.autocomplete-menu .dropdown-item:hover,
.autocomplete-menu .dropdown-item:focus {
    background: #faf6ef;
    color: inherit;
}

.facebook-posted {
    color: #1877f2;
    vertical-align: -3px;
}

.dashboard-announcement {
    overflow-wrap: anywhere;
}

.dashboard-announcement > :last-child {
    margin-bottom: 0;
}

.dashboard-announcement img {
    max-width: 100%;
    height: auto;
}

.autocomplete-menu .autocomplete-current .autocomplete-detail,
.autocomplete-menu .dropdown-item:hover .autocomplete-detail,
.autocomplete-menu .dropdown-item:focus .autocomplete-detail {
    color: var(--htw-ink-soft);
}

/* ---- Featured Listings and Category Listings: sales page and feature spot picker ---- */

.cl-hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 26px;
    align-items: center;
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 22px;
}

.cl-hero h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cl-hero p.lead {
    font-size: 14px;
    color: var(--htw-ink-soft);
    line-height: 1.55;
    margin: 0 0 18px;
}

.cl-steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.cl-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.45;
}

.cl-steps .n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--htw-red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-steps b {
    display: block;
    font-size: 13.5px;
}

.cl-steps span.d {
    color: var(--htw-ink-soft);
    font-size: 12.5px;
}

.cl-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cl-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--htw-ink-soft);
}

.cl-compact b {
    color: var(--htw-ink);
}

.cl-shot {
    margin: 0;
}

.cl-shot-frame {
    position: relative;
    border: 1px solid var(--htw-line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.cl-shot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.cl-shot-hl {
    position: absolute;
    border: 3px solid var(--htw-red);
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(255, 255, 255, 0.35);
}

.cl-shot-hl span {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--htw-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.cl-shot figcaption {
    font-size: 12px;
    color: var(--htw-ink-soft);
    margin-top: 8px;
    line-height: 1.45;
    text-align: center;
}

.ft-hero {
    grid-template-columns: 1fr;
}

.ft-hero-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.ft-frame .cl-shot-hl {
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

.ft-price-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cl-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 12px;
}

.cl-section-head h2 {
    font-size: 17px;
    margin: 0;
}

.cl-section-head p {
    font-size: 13px;
    color: var(--htw-ink-soft);
    margin: 3px 0 0;
}

.cl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.cl-card {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.cl-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.cl-card p {
    font-size: 12.5px;
    color: var(--htw-ink-soft);
    line-height: 1.5;
    margin: 0 0 12px;
}

.cl-card dl {
    margin: 0 0 14px;
    font-size: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
}

.cl-card dt {
    color: var(--htw-ink-muted);
}

.cl-card dd {
    margin: 0;
    font-weight: 600;
}

.cl-price {
    font-size: 20px;
    font-weight: 700;
    margin: auto 0 10px;
}

.cl-price small {
    font-size: 12px;
    font-weight: 600;
    color: var(--htw-ink-muted);
}

.cl-fit {
    font-size: 11.5px;
    color: var(--htw-success-text);
    font-weight: 600;
    margin: -6px 0 12px;
}

.cl-fit.none {
    color: var(--htw-ink-muted);
}

.cl-owned {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.cl-owned-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cl-owned-head h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.cl-meter {
    min-width: 190px;
}

.cl-meter .lbl {
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 5px;
}

.cl-meter .track {
    height: 8px;
    background: var(--htw-bg);
    border-radius: 999px;
    display: flex;
    gap: 3px;
    overflow: hidden;
}

.cl-meter .seg {
    flex: 1;
    background: var(--htw-line);
}

.cl-meter .seg.on {
    background: var(--htw-red);
}

.cl-rule {
    font-size: 12.5px;
    color: var(--htw-ink-soft);
    margin: 0 0 10px;
}

.cl-notice {
    background: var(--htw-warning-bg);
    color: var(--htw-warning-text);
    font-size: 12.5px;
    border-radius: 8px;
    padding: 9px 12px;
    margin: 0 0 10px;
}

.cl-full {
    background: var(--htw-bg);
    color: var(--htw-ink-soft);
    font-size: 12px;
    border-radius: 8px;
    padding: 7px 12px;
    margin: 0 0 10px;
}

.cl-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid var(--htw-line);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    cursor: pointer;
    background: var(--htw-card);
}

.cl-unit.on {
    border-color: var(--htw-red);
    background: rgba(163, 45, 45, 0.05);
}

.cl-unit.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cl-unit input {
    width: 16px;
    height: 16px;
    accent-color: var(--htw-red);
}

.cl-unit .t {
    flex: 1;
    font-weight: 600;
}

.cl-unit .p {
    color: var(--htw-ink-soft);
}

.cl-search {
    max-width: 360px;
    margin: 0 0 10px;
}

.cl-search + .cl-empty {
    margin-bottom: 10px;
}

.cl-more {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px dashed var(--htw-line);
    border-radius: 8px;
    background: var(--htw-bg);
    color: var(--htw-red);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cl-more .arrow {
    display: inline-block;
    transition: transform 0.15s;
}

.cl-more.open .arrow {
    transform: rotate(180deg);
}

.cl-owned-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cl-why {
    font-size: 12px;
}

.cl-why summary {
    cursor: pointer;
    color: var(--htw-red);
    font-weight: 600;
}

.cl-why p {
    color: var(--htw-ink-soft);
    margin: 6px 0 0;
    line-height: 1.5;
    max-width: 560px;
}

.cl-empty {
    font-size: 13px;
    color: var(--htw-ink-soft);
    background: var(--htw-bg);
    border: 1px dashed var(--htw-line);
    border-radius: 8px;
    padding: 14px;
}

@media (max-width: 900px) {
    .cl-hero,
    .ft-hero-text {
        grid-template-columns: 1fr;
    }
}

/* Listing media uploader (Partials/_ListingMedia, js/listing-media.js) */
.listing-media.busy {
    cursor: progress;
}

.listing-media.busy button,
.listing-media.busy input {
    pointer-events: none;
}

.listing-media-drop {
    min-height: 200px;
    border: 2px dashed var(--htw-ink-muted);
    border-radius: 8px;
    background: var(--htw-bg);
    color: var(--htw-ink-soft);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.listing-media-drop-icon {
    color: var(--htw-ink-muted);
    transition: color 0.15s;
}

.listing-media-drop.active,
.listing-media-drop:hover {
    border-color: var(--htw-red);
    background: var(--htw-card);
    color: var(--htw-ink);
}

.listing-media-drop.active .listing-media-drop-icon,
.listing-media-drop:hover .listing-media-drop-icon {
    color: var(--htw-red);
}

.listing-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.listing-media-photo {
    cursor: grab;
}

.listing-media-photo.dragging {
    opacity: 0.4;
}

.listing-media-photo-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--htw-line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--htw-bg);
}

.listing-media-photo:first-child .listing-media-photo-frame {
    border: 2px solid var(--htw-red);
}

.listing-media-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-media-photo-pick {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.listing-media-photo.selected .listing-media-photo-frame {
    box-shadow: 0 0 0 3px var(--htw-red);
}

.listing-media-photo.selected .listing-media-photo-frame img {
    opacity: 0.7;
}

.listing-media-photo-badge {
    position: absolute;
    top: 6px;
    left: 6px;
}

.listing-media-floorplan {
    max-height: 120px;
    max-width: 200px;
    object-fit: contain;
}

/* The pull type guide beside "Pull type" on the trailer forms. */
.trailer-type-popover {
    --bs-popover-max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* The live ad preview on the listing flow's Review step. */
.listing-preview-frame {
    height: 600px;
}

/* Inventory listings pages (Trailer Listings and Truck Listings): summary cards, the search bar, the Filters panel,
   the status tabs card with its bulk bar, and the table or grid of listings. */
.lst-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.lst-stat {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--htw-ink);
    text-decoration: none;
}

a.lst-stat:hover {
    border-color: #cfc9bb;
    color: var(--htw-ink);
}

.lst-stat.on {
    border-color: var(--htw-red);
    box-shadow: inset 0 0 0 1px var(--htw-red);
}

.lst-stat .l {
    font-size: 11.5px;
    color: var(--htw-ink-soft);
}

.lst-stat .v {
    font-size: 20px;
    font-weight: 700;
    margin-top: 6px;
    line-height: 1;
}

.lst-stat .sub {
    font-size: 11px;
    color: var(--htw-ink-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lst-stat .sub i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fa34d;
    display: inline-block;
}

.lst-stat svg {
    width: 22px;
    height: 22px;
    color: #9a978c;
    flex-shrink: 0;
    stroke-width: 1.6;
}

.lst-bar {
    display: flex;
    gap: 10px;
    align-items: stretch;
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

.lst-search {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--htw-line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
}

.lst-search:focus-within {
    border-color: var(--htw-focus);
    box-shadow: 0 0 0 1px var(--htw-focus);
}

.lst-search input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 13px;
    height: 38px;
    min-width: 0;
    background: transparent;
}

.lst-search input::placeholder {
    color: var(--htw-placeholder);
}

.lst-search svg,
.lst-sort svg {
    width: 16px;
    height: 16px;
    color: var(--htw-ink-muted);
    flex-shrink: 0;
}

.lst-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--htw-line);
    border-radius: 8px;
    padding: 0 8px 0 12px;
    background: #fff;
}

.lst-sort select {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    height: 38px;
    cursor: pointer;
    color: var(--htw-ink);
}

.lst-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--htw-line);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px;
    color: var(--htw-ink);
    text-decoration: none;
}

.lst-btn:hover {
    border-color: #cfc9bb;
    color: var(--htw-ink);
}

.lst-btn.on {
    border-color: var(--htw-red);
    color: var(--htw-red);
}

.lst-btn svg {
    width: 16px;
    height: 16px;
}

.lst-fcount {
    background: var(--htw-red);
    color: #fff;
    font-size: 10.5px;
    border-radius: 20px;
    padding: 1px 6px;
}

.lst-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 10px;
    padding: 12px 14px;
    margin: -2px 0 12px;
}

.lst-filters[hidden] {
    display: none;
}

.lst-filters label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--htw-ink-soft);
    margin-bottom: 5px;
}

.lst-filters .form-select,
.lst-filters .form-control {
    min-width: 150px;
}

.lst-card {
    background: var(--htw-card);
    border: 1px solid var(--htw-line);
    border-radius: 10px;
}

.lst-tabsrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--htw-line);
    padding: 0 16px;
}

.lst-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lst-tab {
    border-bottom: 2px solid transparent;
    font-size: 13px;
    color: var(--htw-ink-soft);
    padding: 14px 12px 12px;
    margin-bottom: -1px;
    text-decoration: none;
}

.lst-tab:hover {
    color: var(--htw-ink);
}

.lst-tab.on {
    color: var(--htw-red);
    font-weight: 700;
    border-bottom-color: var(--htw-red);
}

.lst-clear {
    font-size: 12.5px;
}

.lst-headrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
}

.lst-count {
    font-size: 15px;
    font-weight: 700;
}

.lst-seg {
    display: inline-flex;
    border: 1px solid var(--htw-line);
    border-radius: 8px;
    overflow: hidden;
}

.lst-seg a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 13px;
    color: var(--htw-ink-soft);
    text-decoration: none;
}

.lst-seg a + a {
    border-left: 1px solid var(--htw-line);
}

.lst-seg a.on {
    background: var(--htw-bg);
    color: var(--htw-ink);
}

.lst-seg svg {
    width: 15px;
    height: 15px;
}

.lst-bulk {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fbeceb;
    border: 1px solid #efc9c5;
    border-radius: 8px;
    margin: 0 16px 10px;
    padding: 9px 12px;
    font-size: 13px;
}

.lst-bulk[hidden],
.lst-bulk [hidden] {
    display: none;
}

.lst-bulk-btn {
    --bs-btn-color: var(--htw-red);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #d9a9a4;
    --bs-btn-hover-color: var(--htw-red);
    --bs-btn-hover-bg: #fff4f3;
    --bs-btn-hover-border-color: var(--htw-red);
    --bs-btn-active-color: var(--htw-red);
    --bs-btn-active-bg: #fff4f3;
    --bs-btn-active-border-color: var(--htw-red);
    font-weight: 600;
}

.lst-body {
    padding: 0 14px 14px;
}

.lst-tablewrap {
    border: 1px solid var(--htw-line);
    border-radius: 8px;
    overflow-x: auto;
}

.lst-table {
    margin-bottom: 0;
    font-size: 12.5px;
}

.lst-table > thead th {
    background: #faf9f6;
    color: var(--htw-ink-soft);
    font-weight: 600;
    font-size: 12px;
    padding: 10px 7px;
    white-space: nowrap;
    border-bottom: 1px solid var(--htw-line);
}

.lst-table > tbody td {
    padding: 8px 7px;
    border-bottom: 1px solid var(--htw-line);
}

.lst-table > tbody tr:last-child td {
    border-bottom: 0;
}

.lst-table > tbody tr {
    cursor: pointer;
}

.lst-table > tbody tr:hover td {
    background: #faf5f2;
}

.lst-table > tbody tr.sel td {
    background: #fdf1ef;
}

.lst-table .lst-check {
    width: 28px;
}

.lst-photo {
    width: 46px;
    height: 32px;
    border-radius: 6px;
    background: #ecebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa79b;
    overflow: hidden;
}

.lst-photo img,
.lst-gphoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lst-photo svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.lst-act {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.lst-main {
    font-weight: 600;
    white-space: nowrap;
}

/* Bootstrap compiles .btn-outline-primary from Sass too, so View restates the brand red. */
.lst-act .btn-outline-primary {
    --bs-btn-color: var(--htw-red);
    --bs-btn-border-color: var(--htw-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--htw-red);
    --bs-btn-hover-border-color: var(--htw-red);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--htw-red-dark);
    --bs-btn-active-border-color: var(--htw-red-dark);
}

.lst-kebab {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    color: var(--htw-ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lst-kebab:hover,
.lst-kebab[aria-expanded="true"] {
    background: #eeece5;
}

.lst-kebab svg {
    width: 16px;
    height: 16px;
}

.lst-menu {
    --bs-dropdown-font-size: 13px;
    --bs-dropdown-min-width: 170px;
    --bs-dropdown-border-color: var(--htw-line);
    --bs-dropdown-link-active-bg: var(--htw-bg);
    --bs-dropdown-link-active-color: var(--htw-ink);
    --bs-dropdown-link-hover-bg: var(--htw-bg);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.lst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.lst-gcard {
    border: 1px solid var(--htw-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    cursor: pointer;
}

.lst-gcard.sel {
    border-color: var(--htw-red);
    box-shadow: inset 0 0 0 1px var(--htw-red);
}

.lst-gcheck {
    position: absolute;
    top: 9px;
    left: 9px;
    margin: 0;
    z-index: 1;
}

.lst-gphoto {
    height: 140px;
    background: #ecebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa79b;
}

.lst-gphoto svg {
    width: 56px;
    height: 56px;
    stroke-width: 1.2;
}

.lst-gbody {
    padding: 10px 12px 12px;
}

.lst-gtitle {
    font-size: 13.5px;
    font-weight: 700;
    margin: 6px 0 2px;
}

.lst-gmeta {
    font-size: 11.5px;
    color: var(--htw-ink-soft);
}

.lst-gprice {
    font-size: 15px;
    font-weight: 800;
    margin: 6px 0 4px;
}

.lst-empty {
    padding: 34px 10px;
    text-align: center;
    color: var(--htw-ink-muted);
    font-size: 13.5px;
}

@media (max-width: 900px) {
    .lst-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .lst-bar {
        flex-wrap: wrap;
    }
}

/* Saved Listings compare bar and the Compare Saved Trailers page. */
.compare-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #fbeceb;
    border: 1px solid #f0c9c5;
    border-radius: var(--htw-radius);
    padding: 10px 14px;
    font-size: 13px;
}

.compare-picks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.compare-pick {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--htw-line);
    border-radius: var(--htw-radius);
    padding: 10px 12px;
    cursor: pointer;
}

.compare-pick.picked {
    border-color: var(--htw-red);
    background: #fbf3f2;
}

.compare-pick:has(input:disabled) {
    opacity: .55;
    cursor: default;
}

.compare-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--htw-warning-bg);
    border: 1px solid #ecd7b2;
    vertical-align: -1px;
}

/* On narrow screens the table scrolls sideways with the labels kept in view. */
.compare-wrap {
    overflow-x: auto;
    /* Keeps the visually hidden note labels inside the scrolling box, not widening the page. */
    position: relative;
}

/* Fixed layout gives every trailer the same width. The page sets a min-width so the columns
   never get narrower than about 190px and the table scrolls instead. */
.compare-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.compare-table th,
.compare-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--htw-line);
    vertical-align: top;
    background: var(--htw-card);
}

.compare-head {
    font-weight: 400;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.compare-table .compare-label {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    font-weight: 600;
    border-right: 1px solid var(--htw-line);
}

.compare-table .compare-group th {
    position: static;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--htw-ink-muted);
    background: #faf9f6;
}

/* The heading spans every column, so its text is pinned instead, like the labels. */
.compare-table .compare-group span {
    position: sticky;
    left: 14px;
}

.compare-table .compare-differs > * {
    background: #fdf6ea;
}

.compare-table .compare-differs > .compare-label {
    background: var(--htw-warning-bg);
}

.compare-table tbody:last-child tr:last-child > * {
    border-bottom: 0;
}
