/* --- GLOBAL RESPONSIVE FIXES --- */
.container-fluid,
.container-fluid *,
.container-fluid *::before,
.container-fluid *::after {
    box-sizing: border-box;
}

/* --- HEADER SECTION --- */
.lc-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.lc-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .lc-header-text h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        color: #334155;
    }

    .lc-header-text p {
        margin: 0;
        font-size: 14px;
        color: #475569;
    }

.lc-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.lc-btn-outline {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

    .lc-btn-outline:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #334155;
    }

.lc-btn-solid {
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

    .lc-btn-solid:hover {
        background-color: #2563eb;
    }

/* --- FILTERS SECTION --- */
.lc-filter-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lc-filter-header {
    background-color: #f8fafc;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
}

.lc-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.lc-filter-body {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Collapsible filter card (desktop / tablet): the header toggles the body. */
.lc-filter-header {
    cursor: pointer;
}

.lc-filter-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lc-filter-card--collapsed .lc-filter-chevron {
    transform: rotate(-90deg);
}

.lc-filter-card--collapsed .lc-filter-header {
    border-bottom: 0;
}

.lc-filter-card--collapsed .lc-filter-body {
    display: none;
}

/* Active-filter count shown next to "Filters" while the card is collapsed. */
.lc-filter-card .lc-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

/* Uniform, evenly-sized filter fields that stay aligned across both rows
   and adjust the column count at every screen size. Both grids use the SAME
   fixed track template, so fields always line up vertically. */
.lc-filter-grid-top,
.lc-filter-grid-bottom {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: end;
}

@media (max-width: 1280px) {
    .lc-filter-grid-top,
    .lc-filter-grid-bottom {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .lc-filter-grid-top,
    .lc-filter-grid-bottom {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .lc-filter-grid-top,
    .lc-filter-grid-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .lc-filter-grid-top,
    .lc-filter-grid-bottom {
        grid-template-columns: 1fr;
    }
}

.lc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.lc-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-form-select, .lc-form-input {
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #475569;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.lc-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

    .lc-form-select:focus, .lc-form-input:focus {
        border-color: #3b82f6;
    }

/* Keep the Select2 containers the same full width as the native fields */
.lc-form-group .select2-container {
    width: 100% !important;
}

.lc-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .lc-filter-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        margin-top: 16px;
    }

        .lc-filter-actions button {
            justify-content: center;
            width: 100%;
        }
}

/* --- STATISTICS GRID --- */
.lc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.lc-stat-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lc-card-green {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.lc-card-cyan {
    border-left-color: #0ea5e9;
    background: #f0f9ff;
}

.lc-card-red {
    border-left-color: #ef4444;
    background: #fff1f2;
}

.lc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lc-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lc-stat-title {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.lc-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.lc-stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lc-trend-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.lc-text-green {
    color: #16a34a;
}

.lc-text-cyan {
    color: #0ea5e9;
}

.lc-text-red {
    color: #dc2626;
}

.lc-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
}

.lc-card-green .lc-icon-box {
    border: 1px solid #dcfce7;
    color: #16a34a;
}

.lc-card-cyan .lc-icon-box {
    border: 1px solid #e0f2fe;
    color: #0ea5e9;
}

.lc-card-red .lc-icon-box {
    border: 1px solid #ffe4e6;
    color: #ef4444;
}

/* --- UNIFIED BUTTON GROUP & CHART SECTION --- */
.lc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
    font-family: 'Inter', sans-serif;
}

    .lc-section-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: #1e293b;
        margin: 0;
    }

.lc-btn-group {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    gap: 2px;
    flex-wrap: wrap;
}

.lc-toggle-btn {
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

    .lc-toggle-btn.active {
        background: white;
        color: #0f172a;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        font-weight: 600;
    }

.lc-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.lc-chart-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lc-chart-card-header {
    margin-bottom: 24px;
}

    .lc-chart-card-header h4 {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 4px 0;
    }

    .lc-chart-card-header p {
        font-size: 13px;
        color: #64748b;
        margin: 0;
    }

.lc-chart-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

/* Horizontal Charts Elements */
.lc-horiz-chart-inner {
    position: relative;
    min-width: 450px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.lc-horiz-grid-lines {
    position: absolute;
    left: 130px;
    right: 45px;
    top: 0;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
}

.lc-horiz-grid-line {
    border-left: 1px dashed #e2e8f0;
    width: 1px;
    height: 100%;
}

.lc-horiz-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.lc-horiz-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.lc-horiz-label {
    width: 90px;
    margin-left: 12px;
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.lc-horiz-track {
    flex-grow: 1;
    height: 14px;
    background: #f1f5f9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.lc-horiz-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.lc-horiz-val {
    width: 35px;
    text-align: right;
    margin-left: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    flex-shrink: 0;
}

.bg-green-400 {
    background-color: #34d399 !important;
}

.bg-red-400 {
    background-color: #f87171 !important;
}

/* Vertical Charts Elements */
.lc-v-chart-inner {
    display: flex;
    height: 250px;
    min-width: 450px;
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    font-size: 11px;
    position: relative;
    width: 100%;
}

.lc-v-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 16px;
    text-align: right;
    height: calc(100% - 30px);
    width: 45px;
    flex-shrink: 0;
}

.lc-v-chart-area {
    flex-grow: 1;
    position: relative;
}

.lc-v-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 0;
}

.lc-v-grid-line {
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

    .lc-v-grid-line.solid {
        border-top: 1px solid #cbd5e1;
    }

.lc-v-bars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 1;
}

.lc-v-bar-group {
    width: 32px;
    height: calc(100% - 30px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.lc-v-bar-val {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.lc-v-bar-fill {
    width: 24px;
    border-radius: 4px 4px 0 0;
    transition: opacity 0.2s ease;
}

.lc-v-bar-label {
    position: absolute;
    bottom: -28px;
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    text-align: center;
}

/* --- TABLE SECTION --- */
.lc-table-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    max-width: 100%;
    overflow: hidden;
}

.lc-table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

    .lc-table-top h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #334155;
    }

.lc-search-input {
    appearance: none;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 16px 10px 38px;
    font-size: 13px;
    color: #334155;
    width: 280px;
    outline: none;
    transition: border-color 0.2s;
    max-width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

    .lc-search-input:focus {
        border-color: #3b82f6;
    }

.lc-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    -webkit-overflow-scrolling: touch;
}

.lc-main-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

    .lc-main-table th {
        background-color: #f8fafc;
        color: #475569;
        font-weight: 600;
        font-size: 13px;
        padding: 14px 16px;
        text-align: center;
        white-space: nowrap;
        border-bottom: 1px solid #e2e8f0;
    }

    .lc-main-table td {
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
        font-size: 13px;
        color: #334155;
        vertical-align: middle;
    }

/* Status Badges */
.lc-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .lc-checkbox:checked {
        background-color: #3b82f6;
        border-color: #3b82f6;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
    }

.lc-txt-red {
    color: #ef4444;
    font-weight: 600;
}

.lc-txt-orange {
    color: #f59e0b;
    font-weight: 600;
}

.lc-txt-green {
    color: #22c55e;
    font-weight: 600;
}

.lc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

    .lc-status .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.lc-st-red {
    background: #fee2e2;
    color: #ef4444;
}

    .lc-st-red .dot {
        background: #ef4444;
    }

.lc-st-orange {
    background: #ffedd5;
    color: #f59e0b;
}

    .lc-st-orange .dot {
        background: #f59e0b;
    }

.lc-st-green {
    background: #dcfce7;
    color: #16a34a;
}

    .lc-st-green .dot {
        background: #16a34a;
    }

.lc-action-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: opacity 0.2s;
}

    .lc-action-btn:hover {
        opacity: 0.7;
    }

/* Pagination */
.lc-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 4px;
}

.lc-page-size {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.lc-page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lc-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

    .lc-page-btn:hover:not(.dots) {
        background-color: #f8fafc;
    }

    .lc-page-btn.active {
        background-color: #f1f5f9;
        border-color: #e2e8f0;
        font-weight: 600;
        color: #1e293b;
    }

    .lc-page-btn.dots {
        border: none;
        background: transparent;
        cursor: default;
    }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .lc-stats-grid, .lc-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lc-header-container, .lc-table-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .lc-action-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

        .lc-action-buttons .lc-btn {
            justify-content: center;
            width: 100%;
        }

    .lc-search-input {
        width: 100%;
    }
}

/* =========================================================
   LIQUIDATION PAGE STARTUP / SELECT2 / LOADING IMPROVEMENTS
   ========================================================= */

/* Prevent the browser's expanded native multi-select from flashing
   before Select2 attaches. */
.lc-form-group {
    position: relative;
}

.container-fluid select.lc-form-select[multiple]:not(.select2-hidden-accessible) {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    overflow: hidden !important;
    color: transparent !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

    .container-fluid select.lc-form-select[multiple]:not(.select2-hidden-accessible) option {
        display: none !important;
    }

.lc-form-group:has(> select.lc-form-select[multiple]:not(.select2-hidden-accessible))::after {
    content: "Select an option";
    position: absolute;
    left: 13px;
    right: 38px;
    bottom: 0;
    height: 40px;
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

/* Select2 control */
.lc-form-group .select2-container--default .select2-selection--multiple {
    min-height: 40px !important;
    padding: 4px 34px 4px 6px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

.lc-form-group .select2-container--default.select2-container--focus .select2-selection--multiple,
.lc-form-group .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #3b82f6 !important;
}

.lc-form-group .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lc-form-group .select2-search--inline {
    flex: 1 1 120px !important;
    margin: 0 !important;
}

    .lc-form-group .select2-search--inline .select2-search__field {
        width: 100% !important;
        min-width: 100px !important;
        height: 28px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        font-family: inherit !important;
        font-size: 13px !important;
        color: #475569 !important;
    }

/* Selected chip and individual cancel button. */
.lc-form-group .select2-selection__choice {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: calc(100% - 4px) !important;
    min-height: 27px !important;
    margin: 0 !important;
    padding: 3px 28px 3px 9px !important;
    background-color: #e8eef7 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    color: #334155 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    overflow: hidden !important;
}

.lc-form-group .select2-selection__choice__display {
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.lc-form-group .select2-selection__choice__remove {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 19px !important;
    height: 19px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

    .lc-form-group .select2-selection__choice__remove::before {
        content: "\00D7";
        font-size: 15px;
        font-weight: 600;
    }

    .lc-form-group .select2-selection__choice__remove:hover {
        background-color: #cbd5e1 !important;
        color: #0f172a !important;
    }

/* Hide Select2's separate clear-all X. Individual chip X buttons remain. */
.lc-form-group .select2-selection__clear {
    display: none !important;
}

/* Disabled controls */
.lc-btn:disabled,
.lc-toggle-btn:disabled,
.lc-search-input:disabled,
.lc-page-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.58 !important;
}

/* Initial skeleton dashboard */
.lc-skeleton-dashboard {
    width: 100%;
}

.lc-skeleton-card,
.lc-skeleton-chart-card,
.lc-skeleton-table-card {
    pointer-events: none;
}

.lc-skeleton-line,
.lc-skeleton-circle {
    position: relative;
    overflow: hidden;
    background: #e9eef4;
}

    .lc-skeleton-line::after,
    .lc-skeleton-circle::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.68), transparent );
        animation: lc-skeleton-shimmer 1.35s infinite;
    }

@keyframes lc-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.lc-skeleton-label {
    width: 48%;
    height: 13px;
    border-radius: 5px;
    margin-bottom: 14px;
}

.lc-skeleton-value {
    width: 35%;
    height: 25px;
    border-radius: 6px;
}

.lc-skeleton-heading {
    width: min(230px, 55%);
    height: 17px;
    border-radius: 6px;
}

.lc-skeleton-subtitle {
    width: min(300px, 75%);
    height: 12px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 26px;
}

.lc-skeleton-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.lc-skeleton-toolbar {
    width: 420px;
    max-width: 55%;
    height: 34px;
    border-radius: 8px;
}

.lc-skeleton-chart-row {
    display: grid;
    grid-template-columns: 28px 105px minmax(100px, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.lc-skeleton-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.lc-skeleton-name {
    width: 100%;
    height: 12px;
    border-radius: 5px;
}

.lc-skeleton-bar {
    width: 100%;
    height: 14px;
    border-radius: 6px;
}

.lc-skeleton-search {
    width: 280px;
    max-width: 42%;
    height: 38px;
    border-radius: 8px;
}

.lc-skeleton-table-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(7, minmax(70px, 1fr));
    gap: 18px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    min-width: 900px;
}

    .lc-skeleton-table-row .lc-skeleton-line {
        height: 13px;
        border-radius: 5px;
    }

.lc-skeleton-table-card {
    overflow-x: auto;
}

/* Background-refresh state */
.lc-dashboard-content {
    position: relative;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

    .lc-dashboard-content.is-updating {
        opacity: 0.68;
        pointer-events: none;
    }

.lc-updating-indicator {
    position: fixed;
    top: 78px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.lc-mini-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #dbeafe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: lc-spin 0.75s linear infinite;
}

@keyframes lc-spin {
    to {
        transform: rotate(360deg);
    }
}

.lc-empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #94a3b8;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .lc-skeleton-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lc-skeleton-toolbar,
    .lc-skeleton-search {
        width: 100%;
        max-width: 100%;
    }

    .lc-updating-indicator {
        top: 68px;
        right: 12px;
    }
}

/* ========================================================
   PageHeader adoption: keep the desktop title row exactly as
   the old .lc-header-container looked (24px title, 14px subtitle).
   ======================================================== */
.lc-page-container .shell-page-header.lc-header-container {
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 24px;
    font-family: 'Inter', sans-serif;
}

    .lc-page-container .shell-page-header.lc-header-container .shell-page-title {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        color: #334155;
    }

    .lc-page-container .shell-page-header.lc-header-container .shell-page-subtitle {
        margin: 4px 0 0;
        font-size: 14px;
        color: #475569;
    }

    .lc-page-container .shell-page-header.lc-header-container .shell-page-actions {
        gap: 10px;
        flex-wrap: wrap;
    }

/* "View" label next to the row action icon: phone only */
.lc-action-text {
    display: none;
}

.lc-empty-state .spic-empty {
    width: 100%;
}

/* native: phone */
@media (max-width: 767.98px) {
    .lc-page-container {
        padding-top: 12px !important;
        padding-bottom: calc(16px + var(--safe-bottom, 0px)) !important;
    }

    /* Header: back arrow + title on one row, then the actions as a grid.
       flex-direction is reset because the old <=768px .lc-header-container rule
       stacks the header in a column, which put the back arrow on its own line. */
    .lc-page-container .shell-page-header.lc-header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

        .lc-page-container .shell-page-header.lc-header-container .shell-page-title {
            font-size: 1.15rem;
        }

        .lc-page-container .shell-page-header.lc-header-container .shell-page-subtitle {
            font-size: 0.8rem;
            margin-top: 2px;
        }

        .lc-page-container .shell-page-header.lc-header-container .shell-page-actions {
            flex-basis: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

            .lc-page-container .shell-page-header.lc-header-container .shell-page-actions .lc-btn:last-child {
                grid-column: 1 / -1;
            }

    .lc-page-container .lc-btn {
        min-height: var(--tap-min, 44px);
        width: 100%;
        justify-content: center;
    }

    /* Filters trigger (opens the BottomSheet) */
    .lc-filter-trigger {
        width: 100%;
        min-height: var(--tap-min, 44px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        margin-bottom: 16px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        color: #1e293b;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
    }

        .lc-filter-trigger:disabled {
            opacity: 0.6;
        }

    .lc-filter-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        margin-left: 6px;
        border-radius: 999px;
        background: #3b82f6;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
    }

    /* Filter fields inside the sheet: one column, native multi-selects visible */
    .lc-page-container .lc-filter-sheet .lc-filter-body {
        padding: 0;
        gap: 16px;
    }

    .lc-page-container .lc-filter-sheet .lc-filter-grid-top,
    .lc-page-container .lc-filter-sheet .lc-filter-grid-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Select2 runs inside the sheet; each dropdown is attached to its field's form
       group (dropdownParent), which is its positioning context. The open field is
       lifted above the fields that follow so the list is not painted under them. */
    .lc-filter-sheet .lc-form-group {
        position: relative;
    }

    .lc-filter-sheet .lc-form-group:has(.select2-container--open) {
        z-index: 5;
    }

    .lc-filter-sheet .select2-container {
        width: 100% !important;
        min-width: 0 !important;
    }

    .lc-filter-sheet .select2-dropdown {
        font-size: 14px;
    }

    .lc-filter-sheet .select2-results__options {
        max-height: 220px;
    }

    /* Fallback only: a native multi-select that Select2 has not (yet) taken over. */
    .lc-page-container .lc-filter-sheet select.lc-form-select[multiple]:not(.select2-hidden-accessible) {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: var(--tap-min, 44px) !important;
        max-height: 168px !important;
        padding: 6px 8px !important;
        overflow: auto !important;
        color: #334155 !important;
        pointer-events: auto !important;
        appearance: auto !important;
        -webkit-appearance: auto !important;
        background-image: none;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

        .lc-page-container .lc-filter-sheet select.lc-form-select[multiple] option {
            display: block !important;
            padding: 8px 6px;
        }

    .lc-page-container .lc-filter-sheet .lc-form-group::after {
        content: none !important;
    }

    .lc-page-container .lc-filter-sheet .lc-form-input {
        min-height: var(--tap-min, 44px);
        font-size: 16px;
    }

    .lc-page-container .lc-filter-sheet .lc-btn {
        width: auto;
    }

    /* KPI tiles: one compact full-width row each. Two per row left no room for
       values like 254050.391 plus the icon, so the icon was clipped. */
    .lc-stats-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .lc-stat-card {
        padding: 12px 14px;
    }

    .lc-card-top {
        align-items: center;
        gap: 12px;
    }

    .lc-stat-info {
        min-width: 0;
        gap: 2px;
    }

    .lc-stat-title {
        font-size: 12px;
    }

    .lc-stat-value {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .lc-icon-box {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

        .lc-icon-box svg {
            width: 18px;
            height: 18px;
        }

    /* Toggle group scrolls sideways instead of wrapping into three lines */
    .lc-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .lc-btn-group {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lc-toggle-btn {
        min-height: 36px;
        flex: 0 0 auto;
    }

    /* Charts (Top 5 Fast / Slow Dealers, state-wise): fit the card instead of
       scrolling sideways. Each row: rank + full name on the first line, the bar
       and its percentage underneath, lined up with the name. */
    .lc-charts-grid {
        gap: 12px;
        margin-bottom: 16px;
    }

    .lc-chart-card {
        padding: 16px;
    }

    .lc-chart-card-header {
        margin-bottom: 14px;
    }

        .lc-chart-card-header h4 {
            font-size: 15px;
        }

        .lc-chart-card-header p {
            font-size: 12px;
        }

    .lc-chart-scroll-wrapper {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .lc-horiz-chart-inner {
        min-width: 0;
        padding-bottom: 0;
    }

    .lc-horiz-row {
        flex-wrap: wrap;
        row-gap: 6px;
        margin-bottom: 14px;
    }

        .lc-horiz-row:last-child {
            margin-bottom: 0;
        }

    .lc-horiz-rank {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .lc-horiz-label {
        flex: 1 1 calc(100% - 34px);
        width: auto !important; /* inline style sets 120px */
        min-width: 0;
        margin-left: 10px;
        font-size: 12.5px;
        line-height: 1.3;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .lc-horiz-track {
        min-width: 0;
        height: 10px;
        margin-left: 34px;
    }

    .lc-horiz-val {
        width: auto;
        min-width: 38px;
        margin-left: 10px;
        font-size: 12px;
    }

    /* Table: one card per row, labels from data-label */
    .lc-table-card {
        padding: 16px;
        gap: 14px;
    }

    .lc-table-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 0;
    }

    .lc-search-input {
        width: 100%;
        min-height: var(--tap-min, 44px);
        font-size: 16px;
    }

    .lc-table-wrapper {
        overflow-x: hidden;
        border: 0;
    }

    .lc-main-table {
        min-width: 0;
    }

        .lc-main-table thead {
            display: none;
        }

        .lc-main-table tbody,
        .lc-main-table tr,
        .lc-main-table td {
            display: block;
            width: 100%;
        }

        .lc-main-table tr {
            padding: 6px 12px;
            margin-bottom: 10px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #ffffff;
        }

        .lc-main-table td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
            text-align: right !important;
        }

            .lc-main-table td::before {
                content: attr(data-label);
                flex: 0 0 42%;
                color: #64748b;
                font-weight: 500;
                text-align: left;
            }

            .lc-main-table td:last-child {
                border-bottom: 0;
            }

            .lc-main-table td[data-label="Dealer Name"] {
                font-weight: 600;
                color: #0f172a !important;
            }

        .lc-main-table tr.lc-empty-row td {
            display: block;
            text-align: center !important;
        }

            .lc-main-table tr.lc-empty-row td::before {
                content: none;
            }

    .lc-action-btn {
        min-height: var(--tap-min, 44px);
        min-width: var(--tap-min, 44px);
        margin: 0;
        gap: 6px;
        padding: 0 8px;
        font-size: 13px;
        font-weight: 600;
    }

    .lc-action-text {
        display: inline;
    }

    /* Pagination: one row, "Items Per Page" left and the pager right - same as
       the other lists. */
    .lc-pagination {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .lc-page-size {
        gap: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

        .lc-page-size .lc-form-select {
            width: 58px !important; /* inline style sets 65px */
            height: 30px;
            min-height: 30px;
            padding: 0 22px 0 8px !important;
            font-size: 12px;
        }

    .lc-page-controls {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .lc-page-btn {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
        border-radius: 6px;
    }
}
