﻿:root {
    --lr-primary: #1271a3;
    --lr-primary-action: #1271a3;
    --lr-primary-light: #eff6ff;
    --lr-success: #16a34a;
    --lr-success-light: #f0fdf4;
    --lr-warning: #d97706;
    --lr-warning-light: #fffbeb;
    --lr-danger: #dc2626;
    --lr-danger-light: #fef2f2;
    --lr-neutral: #64748b;
    --lr-neutral-light: #f8fafc;
    --lr-border: #e2e8f0;
    --lr-text: #1e293b;
    --lr-text-muted: #64748b;
    --lr-radius: 12px;
    --lr-radius-sm: 8px;
    --lr-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
    --lr-transition: all .2s ease;
}


.lr-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.lr-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--lr-text);
    margin: 0;
}

.lr-title-icon {
    color: var(--lr-primary);
    margin-right: 10px;
}

.lr-welcome-badge {
    background: var(--lr-primary-light);
    color: var(--lr-primary);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lr-spinner-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--lr-text-muted);
    font-size: .9rem;
}

/* Filter */
.lr-filter-card {
    background: #fff;
    border-radius: var(--lr-radius);
    box-shadow: var(--lr-shadow);
    padding: 18px;
    margin-bottom: 20px;
}

.lr-filter-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    /*letter-spacing: .08em;*/
    color: var(--lr-text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lr-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

@@media (max-width: 768px) {
    .lr-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@@media (max-width: 540px) {
    .lr-filter-grid {
        grid-template-columns: 1fr;
    }

    .lr-order-header {
        flex-wrap: wrap;
    }
}

.lr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .lr-filter-group label {
        font-size: .78rem;
        font-weight: 600;
        color: var(--lr-text-muted);
    }

.lr-select, .lr-input {
    border: 1.5px solid var(--lr-border);
    border-radius: var(--lr-radius-sm);
    padding: 9px 12px;
    font-size: .9rem;
    color: var(--lr-text);
    background: var(--lr-neutral-light);
    transition: var(--lr-transition);
    outline: none;
    width: 100%;
    appearance: auto;
}

    .lr-select:focus, .lr-input:focus {
        border-color: var(--lr-primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    }

.lr-input-wrap {
    position: relative;
}

.lr-input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lr-text-muted);
    font-size: .82rem;
    pointer-events: none;
}

.lr-input-wrap .lr-input {
    padding-left: 32px;
}

.lr-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.lr-chip-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.lr-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--lr-primary-light);
    color: var(--lr-primary);
    border-radius: 20px;
    padding: 4px 11px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lr-transition);
    border: 1px solid #bfdbfe;
}

    .lr-chip:hover {
        background: #dbeafe;
    }

/* Buttons */
.lr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--lr-radius-sm);
    font-size: .875rem;
    /*font-weight: 600;*/
    cursor: pointer;
    border: none;
    transition: var(--lr-transition);
    white-space: nowrap;
}

.lr-btn-primary {
    background: var(--lr-primary);
    color: #0f2318;
}

    .lr-btn-primary:hover {
        background: #00cc70;
        box-shadow: 0 4px 12px rgba(0,228,124,.35);
        transform: translateY(-1px);
    }

.lr-btn-outline {
    background: transparent;
    color: var(--lr-neutral);
    border: 1.5px solid var(--lr-border);
}

    .lr-btn-outline:hover {
        background: var(--lr-neutral-light);
    }

.lr-btn-sm {
    padding: 7px 14px;
    font-size: .82rem;
}

.lr-btn-view {
    background: var(--lr-primary-action);
    color: #ffffff;
}

    .lr-btn-view:hover {
        background: #479cc8;
    }

.lr-btn-sign {
    background: var(--lr-primary-action);
    color: #ffffff;
    border: 1.5px solid #bbf7d0;
}

    .lr-btn-sign:hover {
        background: #479cc8;
    }

.lr-btn-void {
    background: var(--lr-primary-action);
    color: #ffffff;
    border: 1.5px solid #fecaca;
}

    .lr-btn-void:hover {
        background: #479cc8;
    }

/* Results bar */
.lr-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: .82rem;
    color: var(--lr-text-muted);
    /*
     * max-width was 860px here, but the parent lr-main-content is now
     * the single source of truth for column width (960px cap in
     * leftAd.css, or 880px when --centered).  Allow full width so there
     * is no orphan gap between the results count and the Expand/Collapse
     * toggle on moderately wide screens.
     */
    max-width: 100%;
}

.lr-toggle-all {
    color: #08312a;
    /*font-weight: 600;*/
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .lr-toggle-all:hover {
        text-decoration: underline;
    }

/* Badges */
.lr-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}

.lr-badge-notsigned {
    background: var(--lr-warning-light);
    color: var(--lr-warning);
    border: 1px solid #fde68a;
}

.lr-badge-signed {
    background: var(--lr-success-light);
    color: var(--lr-success);
    border: 1px solid #bbf7d0;
}

.lr-badge-voided {
    background: var(--lr-danger-light);
    color: var(--lr-danger);
    border: 1px solid #fecaca;
}

.lr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.lr-dot-notsigned {
    background: var(--lr-warning);
}

.lr-dot-signed {
    background: var(--lr-success);
}

.lr-dot-voided {
    background: var(--lr-danger);
}

/* Manual / Recurring type tag */
.lr-tag-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: .75rem;
    font-weight: 700;
    border: 1px solid;
}

.lr-tag-recurring {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.lr-tag-manual {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

/* Order cards */
.lr-order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lr-order-card {
    background: #fff;
    border-radius: var(--lr-radius);
    box-shadow: var(--lr-shadow);
    border: 1.5px solid var(--lr-border);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}

    .lr-order-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,.1);
        border-color: #c7d2fe;
    }

.lr-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

    .lr-order-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background: var(--lr-border);
        opacity: 0;
        transition: opacity .2s;
    }

.lr-order-card.open .lr-order-header::after {
    opacity: 1;
}

.lr-order-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lr-order-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lr-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lr-order-icon {
    color: var(--lr-primary);
    font-size: .88rem;
}

.lr-order-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lr-order-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.lr-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lr-chevron {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lr-neutral-light);
    border: 1.5px solid var(--lr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .2s, border-color .2s;
    color: var(--lr-text-muted);
    font-size: .8rem;
    flex-shrink: 0;
}

.lr-order-card.open .lr-chevron {
    transform: rotate(180deg);
    background: var(--lr-primary-light);
    color: var(--lr-primary);
    border-color: #bfdbfe;
}

/* Products accordion */
.lr-products-section {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}

.lr-order-card.open .lr-products-section {
    max-height: 2000px;
}

.lr-products-inner {
    padding: 5px 5px;
    background: #f8fafc;
}

.lr-products-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    /*letter-spacing: .08em;*/
    color: var(--lr-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Product table — rows per product, columns: Name | Dosage | Quantity */
.lr-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
}

    .lr-product-table thead tr {
        background: #dfe7eb;
    }

    .lr-product-table th {
        text-align: left;
        font-size: .68rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--lr-text-muted);
        padding: 5px 10px;
        border-bottom: 1.5px solid var(--lr-border);
        white-space: nowrap;
    }

    .lr-product-table td {
        padding: 5px 10px;
        color: var(--lr-text);
        font-size: .75rem;
        border-bottom: 1px solid var(--lr-border);
        vertical-align: middle;
    }

    .lr-product-table tbody tr:last-child td {
        border-bottom: none;
    }

    .lr-product-table tbody tr:hover td {
        background: rgba(212, 236, 248, 0.5);
    }

    /* Column widths */
    .lr-product-table th:nth-child(1),
    .lr-product-table td:nth-child(1) {
        width: 33.33%;
        text-align: center;
    }

    .lr-product-table th:nth-child(2),
    .lr-product-table td:nth-child(2) {
        width: 33.33%;
        text-align: center;
    }

    .lr-product-table th:nth-child(3),
    .lr-product-table td:nth-child(3) {
        width: 33.33%;
        text-align: center;
    }

.lr-qty-badge {
    /*background: var(--lr-primary-light);*/
    color: #08312a;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .72rem;
    /*font-weight: 700;*/
    display: inline-block;
}

/* Empty state */
.lr-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--lr-radius);
    box-shadow: var(--lr-shadow);
    border: 1.5px solid var(--lr-border);
}

.lr-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.lr-empty-state p {
    color: var(--lr-text-muted);
    font-size: .95rem;
}


/* ═══════════════════════════════════════════════════════════════
   PIN PAGES — VerifyPin / CreatePin / ResetPin
   All use the same lr- variable system defined above
═══════════════════════════════════════════════════════════════ */

/* ── Outer page wrapper (centered) ── */
.pbs-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 16px;
}

/* ── Main card (centered, max-width constrained) ── */
.pbs-card {
    background: #fff;
    border-radius: var(--lr-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.06);
    border: 1.5px solid var(--lr-border);
    padding: 36px 40px;
    width: 100%;
    max-width: 460px;
    animation: fadeInUp .35s ease both;
}

/* ── Instructional user message (replaces welcome badge) ── */
.pbs-user-message {
    font-size: .99rem;
    color: var(--lr-text);
    margin-bottom: 24px;
    line-height: 1.5;
}

    .pbs-user-message strong {
        /*color: var(--lr-primary);*/
        font-weight: 700;
    }

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Card icon header ── */
.pbs-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.pbs-card-icon-verify {
    background: var(--lr-primary-light);
    color: var(--lr-primary);
}

.pbs-card-icon-create {
    background: var(--lr-success-light);
    color: var(--lr-success);
}

.pbs-card-icon-reset {
    background: var(--lr-warning-light);
    color: var(--lr-warning);
}

/* ── Card title ── */
.pbs-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lr-text);
    margin: 0 0 4px;
}

.pbs-card-subtitle {
    font-size: .88rem;
    color: var(--lr-text-muted);
    margin: 0 0 28px;
}

/* ── Welcome strip ── */
.pbs-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lr-primary-light);
    color: var(--lr-primary);
    border-radius: var(--lr-radius-sm);
    padding: 10px 14px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid #bfdbfe;
}

/* ── Form group ── */
.pbs-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.pbs-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--lr-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── PIN input wrapper (icon + input) ── */
.pbs-pin-wrap {
    position: relative;
}

.pbs-pin-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lr-text-muted);
    font-size: .9rem;
    pointer-events: none;
    z-index: 1;
}

.pbs-pin-input {
    border: 1.5px solid var(--lr-border);
    border-radius: var(--lr-radius-sm);
    padding: 11px 14px 11px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .35em;
    color: var(--lr-text);
    background: var(--lr-neutral-light);
    transition: var(--lr-transition);
    outline: none;
    width: 100%;
}

    .pbs-pin-input:focus {
        border-color: var(--lr-primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    }

    .pbs-pin-input::placeholder {
        letter-spacing: .05em;
        font-weight: 400;
        font-size: .9rem;
        color: #94a3b8;
    }

/* ── Validation message ── */
.pbs-validation {
    font-size: .78rem;
    color: var(--lr-danger);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── PIN hint dots ── */
.pbs-pin-hint {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.pbs-pin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lr-border);
    transition: background .2s;
}

/* ── Divider ── */
.pbs-divider {
    height: 1px;
    background: var(--lr-border);
    margin: 24px 0;
}

/* ── Action buttons row ── */
.pbs-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Full-width submit button variant ── */
.lr-btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Specific action button colours — ALL unified to primary blue ── */
.lr-btn-verify {
    background: var(--lr-primary-action);
    color: #ffffff;
    flex: 1;
}

    .lr-btn-verify:hover {
        background: #479cc8;
        box-shadow: 0 4px 12px rgba(0,228,124,.35);
        transform: translateY(-1px);
    }

.lr-btn-create {
    background: var(--lr-primary-action);
    color: #ffffff;
    flex: 1;
}

    .lr-btn-create:hover {
        background: #479cc8;
        box-shadow: 0 4px 12px rgba(0,228,124,.35);
        transform: translateY(-1px);
    }

.lr-btn-reset-pin {
    background: var(--lr-primary-action);
    color: #ffffff;
    flex: 1;
}

    .lr-btn-reset-pin:hover {
        background: var(--lr-primary-action);
        box-shadow: 0 4px 12px rgba(0,228,124,.35);
        transform: translateY(-1px);
    }

/* Sign page primary button */
.lr-btn-sign-primary {
    background: var(--lr-primary-action);
    color: #ffffff;
    flex: 1;
    justify-content: center;
    max-width: 400px;
}

    .lr-btn-sign-primary:hover {
        background: #479cc8;
        box-shadow: 0 4px 12px rgba(0,228,124,.35);
        transform: translateY(-1px);
    }

.lr-btn-forgot {
    background: transparent;
    color: var(--lr-neutral);
    border: 1.5px solid var(--lr-border);
    flex: 1;
    max-width: 200px;
}

    .lr-btn-forgot:hover {
        background: var(--lr-neutral-light);
    }

/* ── Inline alert (replaces Bootstrap alert) ── */
.pbs-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--lr-radius-sm);
    padding: 12px 14px;
    font-size: .875rem;
    font-weight: 500;
    margin-top: 20px;
    border: 1px solid;
}

.pbs-alert-danger {
    background: var(--lr-danger-light);
    color: var(--lr-danger);
    border-color: #fecaca;
}

.pbs-alert-success {
    background: var(--lr-success-light);
    color: var(--lr-success);
    border-color: #bbf7d0;
}

/* ── Spinner row ── */
.pbs-spinner-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--lr-text-muted);
    font-size: .875rem;
}

/* ── Mobile ── */
@@media (max-width: 520px) {
    .pbs-card {
        padding: 24px 18px;
    }

    .pbs-actions {
        flex-direction: column;
    }

    .lr-btn-verify, .lr-btn-create, .lr-btn-reset-pin, .lr-btn-forgot {
        flex: unset;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SIGN REQUEST PAGE
═══════════════════════════════════════════════════════════════ */
.pbs-sign-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px;
}

.pbs-sign-card {
    background: #fff;
    border-radius: var(--lr-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.06);
    border: 1.5px solid var(--lr-border);
    padding: 36px 40px;
    width: 100%;
    max-width: 820px;
    animation: fadeInUp .35s ease both;
}

.pbs-sign-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--lr-primary-light);
    color: var(--lr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.pbs-attestation {
    display: flex;
    gap: 12px;
    background: var(--lr-primary-light);
    border: 1px solid #a7f3d0;
    border-radius: var(--lr-radius-sm);
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: .875rem;
    color: var(--lr-text);
    line-height: 1.6;
}

.pbs-attestation-icon {
    color: var(--lr-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pbs-pdf-wrapper {
    border-radius: var(--lr-radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--lr-border);
    margin-bottom: 24px;
}

.pbs-sign-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: left;
}

@@media (max-width: 520px) {
    .pbs-sign-card {
        padding: 24px 18px;
    }

    .pbs-sign-actions {
        flex-direction: column;
    }

    .lr-btn-sign-primary, .lr-btn-forgot {
        flex: unset;
        width: 100%;
    }
}

/* ── Top Ad: centred ─────────────────────────────────────────────────── */
.lr-top-ad-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ── Filter card: compact single-row layout ──────────────────────────── */
.lr-filter-card {
    padding: 8px 12px !important;
}

.lr-filter-title {
    font-size: 9px !important;
    margin-bottom: 3px !important;
}

/* All filter controls + Clear button sit in one horizontal row */
.lr-filter-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
}

    .lr-filter-row .lr-filter-group {
        flex: 1 1 0;
        min-width: 0;
    }

        .lr-filter-row .lr-filter-group label {
            display: block;
            font-size: 11px;
            margin-bottom: 2px;
            white-space: nowrap;
        }

    .lr-filter-row .lr-select,
    .lr-filter-row .lr-input {
        height: 30px !important;
        padding: 3px 7px !important;
        font-size: 12px !important;
        width: 100%;
    }

    .lr-filter-row .lr-input-wrap {
        height: 30px;
    }

    .lr-filter-row .lr-filter-actions {
        flex: 0 0 auto;
        padding-bottom: 0;
    }

    .lr-filter-row .lr-btn-outline {
        height: 30px !important;
        padding: 3px 10px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

/* ── Order list: compact cards so more rows show without scrolling ───── */
.lr-order-card {
    margin-bottom: 4px !important;
    border-radius: 6px !important;
}

.lr-order-header {
    padding: 5px 10px !important;
    min-height: unset !important;
}

.lr-order-number {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/*
 * Width control — lr-main-content is capped at 960px (with left ad) or
 * 880px centred (without left ad) via leftAd.css.  These elements fill
 * 100% of that column; the parent is the single source of truth for the
 * overall width, so there is no longer a gap between the list and the
 * right edge of the content column.
 */
.lr-filter-card,
.lr-order-list {
    max-width: 100%;
}

.lr-order-meta {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.lr-badge,
.lr-tag-type {
    font-size: 10px !important;
    padding: 1px 6px !important;
}

.lr-order-tags {
    gap: 4px !important;
}

.lr-btn-sm {
    font-size: 11px !important;
    padding: 2px 8px !important;
    height: 24px !important;
}

.lr-chevron {
    font-size: 11px !important;
}

.lr-results-bar {
    padding: 2px 0 !important;
    font-size: 10px !important;
}

.lr-chip-bar {
    margin-top: 4px !important;
}

.lr-chip {
    font-size: 11px !important;
    padding: 2px 8px !important;
}

/*
 * ── Filter row: responsive wrap ─────────────────────────────────────────
 * The filter bar uses flex-wrap:nowrap so all controls stay on one line
 * at comfortable widths.  Below ~600 px the inputs become too narrow to
 * be usable, so we allow them to wrap into a two-column grid.
 * The Clear button drops to its own row and aligns to the right.
 */
@@media (max-width: 600px) {
    .lr-filter-row {
        flex-wrap: wrap;
        gap: 8px 10px;
    }

        .lr-filter-row .lr-filter-group {
            flex: 1 1 calc(50% - 5px); /* two per row */
            min-width: 120px;
        }

        .lr-filter-row .lr-filter-actions {
            flex: 1 1 100%; /* Clear button spans full row */
            display: flex;
            justify-content: flex-end;
        }
}