/* --- SCOPED CSS FOR LIQUIDATION CYCLE --- */
/* --- 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;
    }

/* --- Statistics Grid (5 Columns) --- */
.lc-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 24px;
}

.lc-stat-card {
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    border-left-width: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.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: 13px;
    font-weight: 500;
    color: #64748b;
}

.lc-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.lc-stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
}

.lc-trend-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.lc-text-green {
    color: #16a34a;
}

.lc-text-red {
    color: #dc2626;
}

.lc-icon-box {
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

    .lc-icon-box svg {
        width: 18px;
        height: 18px;
    }

/* Themes for the 5 Cards */
.lc-theme-green {
    border-left-color: #16a34a;
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 80%);
}

    .lc-theme-green .lc-icon-box {
        color: #16a34a;
    }

.lc-theme-blue {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 80%);
}

    .lc-theme-blue .lc-icon-box {
        color: #3b82f6;
    }

.lc-theme-orange {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 80%);
}

    .lc-theme-orange .lc-icon-box {
        color: #f59e0b;
    }

.lc-theme-teal {
    border-left-color: #06b6d4;
    background: linear-gradient(90deg, #ecfeff 0%, #ffffff 80%);
}

    .lc-theme-teal .lc-icon-box {
        color: #06b6d4;
    }

.lc-theme-red {
    border-left-color: #dc2626;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 80%);
}

    .lc-theme-red .lc-icon-box {
        color: #dc2626;
    }

/* --- 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;
}

.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;
}

.lc-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 20px;
}

.lc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.lc-form-select {
    appearance: none;
    background-color: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #94a3b8;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    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 14px center;
    cursor: pointer;
}

    .lc-form-select:focus {
        border-color: #3b82f6;
    }

.lc-filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* --- 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;
}

    .lc-table-top h3 {
        margin: 0;
        font-size: 16px;
        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;
    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;
    transition: border-color 0.2s;
    max-width: 100%;
}

    .lc-search-input:focus {
        border-color: #3b82f6;
    }

.lc-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.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;
    }

    .lc-main-table tr:last-child td {
        border-bottom: none;
    }

.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;
    }

/* Table Text Colors for Ageing */
.lc-txt-red {
    color: #ef4444;
    font-weight: 600;
}

.lc-txt-orange {
    color: #f59e0b;
    font-weight: 600;
}

.lc-txt-green {
    color: #22c55e;
    font-weight: 600;
}

/* Outlined Badges */
.lc-outline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
    background-color: #ffffff;
}

.lc-outline-blue {
    color: #6366f1;
    background-color: #e0e7ff;
    border-color: #c7d2fe;
}

.lc-outline-pink {
    color: #d946ef;
    background-color: #fdf4ff;
    border-color: #fbcfe8;
}

.lc-outline-green {
    color: #10b981;
    background-color: #ecfdf5;
    border-color: #a7f3d0;
}

/* Solid Badges with Dot */
.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 Queries --- */
@media (max-width: 1280px) {
    .lc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lc-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .lc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lc-filter-grid {
        grid-template-columns: repeat(2, 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%;
    }

    .lc-stats-grid {
        grid-template-columns: 1fr;
    }

    .lc-filter-grid {
        grid-template-columns: 1fr;
    }

    .lc-filter-actions {
        flex-direction: column;
        width: 100%;
    }

        .lc-filter-actions .lc-btn {
            width: 100%;
            justify-content: center;
        }

    .lc-pagination {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .lc-page-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

