/*
==================================================
LedgerX Dashboard — Page-Specific CSS
==================================================

Common font, controls, spacing, buttons, tables,
focus and card-body padding come from:

public/css/ledgerxUIStandard.css
*/


/*==================================================
Dashboard Sections
==================================================*/

.dashboard-section {
    border-radius: 12px;
    margin-bottom: 10px;
}

.dashboard-section .card-header {
    font-size: 18px;
    font-weight: 600;
}

.dashboard-section .row {
    margin-bottom: 5px;
}


/*==================================================
Executive Header
==================================================*/

.executive-header {
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.executive-header h3 {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 700;
    color: #343a40;
}

.executive-header small {
    font-size: 13px;
}

.executive-header .badge {
    font-size: 14px;
    border-radius: 20px;
}


/*==================================================
Executive KPI Cards
==================================================*/

.executive-card {
    height: 85px;
    margin-bottom: 0;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.executive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.kpi-icon {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.90);
}

.kpi-value {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-footer {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}


/*==================================================
Secondary KPI Cards
==================================================*/

.secondary-card {
    height: 75px;
    border-radius: 10px;
}


/*==================================================
Dashboard DSR Report
==================================================*/

.dashboard-dsr-table {
    width: 100% !important;
    min-width: 0;
    table-layout: fixed;
    font-size: 10px;
    white-space: nowrap;
}

.dashboard-dsr-table th,
.dashboard-dsr-table td {
    padding: 4px 3px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Sr. No */
.dashboard-dsr-table th:nth-child(1),
.dashboard-dsr-table td:nth-child(1) {
    width: 4%;
    text-align: center;
}


/* DSR # */
.dashboard-dsr-table th:nth-child(2),
.dashboard-dsr-table td:nth-child(2) {
    width: 5%;
}


/* Account No */
.dashboard-dsr-table th:nth-child(3),
.dashboard-dsr-table td:nth-child(3) {
    width: 8%;
}


/* Party Name */
.dashboard-dsr-table th:nth-child(4),
.dashboard-dsr-table td:nth-child(4) {
    width: 17%;
}


/* Numeric Columns */
.dashboard-dsr-table th:nth-child(n+5),
.dashboard-dsr-table td:nth-child(n+5) {
    width: 6%;
    text-align: right;
}


/* Credit Bills */
.dashboard-dsr-table th:nth-child(9),
.dashboard-dsr-table td:nth-child(9) {
    width: 7%;
}


/* Opening and Closing */
.dashboard-dsr-table th:nth-child(12),
.dashboard-dsr-table td:nth-child(12),
.dashboard-dsr-table th:nth-child(15),
.dashboard-dsr-table td:nth-child(15) {
    width: 7%;
}


#tblDSR_wrapper {
    width: 100%;
}


@media (max-width: 1366px) {

    .dashboard-dsr-table {
        font-size: 9px;
    }

    .dashboard-dsr-table th,
    .dashboard-dsr-table td {
        padding: 3px 2px;
    }

}


@media (max-width: 767px) {

    .dashboard-dsr-table {
        min-width: 1200px;
    }

}
