@CHARSET "UTF-8";

.rpt-page {
    color: var(--pj-text, #1f2933);
    font-size: 13px;
}

.rpt-page .ibox-content {
    padding: 24px;
}

.rpt-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pj-border, #e5e7eb);
}

.rpt-filter select.form-control,
.rpt-filter .input-group .form-control,
.rpt-filter .input-group .input-group-addon {
    height: 36px !important;
    box-sizing: border-box;
    line-height: 1.4;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--pj-text, #1f2933) !important;
    background: #fff !important;
    border: 1px solid var(--admin-primary-safe, var(--pj-primary, #c2570c)) !important;
    box-shadow: none !important;
}

.rpt-filter select.form-control {
    flex: 0 1 auto;
    min-width: 100px;
    width: auto;
    border-radius: 6px !important;
}

.rpt-filter .input-group {
    /* display: flex; */
    align-items: stretch;
    width: auto;
}

.rpt-filter .input-group .form-control,
.rpt-filter .input-group .input-group-addon {
    border-radius: 0 !important;
}

.rpt-filter .input-group .input-group-addon {
    color: var(--admin-primary-safe, var(--pj-primary, #c2570c)) !important;
    background: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px !important;
    line-height: 34px;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    white-space: nowrap;
}

.rpt-filter .input-group .input-group-addon i.fa {
    font-size: 15px;
    line-height: 34px;
    color: var(--admin-primary-safe, var(--pj-primary, #c2570c));
}

.rpt-filter .input-group .input-group-addon.rpt-tm {
    background: var(--admin-primary-lighter, rgba(249, 115, 22, 0.06)) !important;
    color: var(--admin-primary-safe, var(--pj-primary, #c2570c)) !important;
    font-style: italic;
    font-weight: 500;
}

.rpt-filter .input-group > :first-child {
    border-radius: 6px 0 0 6px !important;
    border-left-width: 1px !important;
}

.rpt-filter .input-group > :last-child {
    border-radius: 0 6px 6px 0 !important;
    border-right-width: 1px !important;
}

.rpt-filter .rpt-date {
    flex: 0 0 auto;
}

.rpt-filter .rpt-date .form-control {
    cursor: default;
    text-align: center;
    flex: 0 0 110px;
    width: 110px;
}

.rpt-filter .rpt-btns {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: 4px;
}

.rpt-filter .rpt-btns .btn {
    height: 36px !important;
    padding: 0 14px !important;
    border-radius: var(--pj-radius, 8px) !important;
    border: 1px solid var(--admin-primary-safe, var(--pj-primary, #c2570c)) !important;
    background: #fff !important;
    color: var(--admin-primary-safe, var(--pj-primary, #c2570c)) !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none !important;
    text-shadow: none !important;
}

.rpt-filter .rpt-btns .btn:hover,
.rpt-filter .rpt-btns .btn:focus {
    background: var(--admin-primary-lighter, rgba(249, 115, 22, 0.08)) !important;
}

.rpt-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--pj-text, #1f2933);
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--admin-primary-safe, var(--pj-primary, #c2570c));
    display: inline-block;
}

.rpt-section-title:first-of-type {
    margin-top: 0;
}

.rpt-subsection-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--pj-text, #1f2933);
    margin: 20px 0 10px;
}

.rpt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.rpt-kpi-card {
    background: #fff;
    border: 1px solid var(--pj-border, #e5e7eb);
    border-radius: var(--pj-radius, 10px);
    padding: 18px 20px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

.rpt-kpi-card:hover {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.10);
    transform: translateY(-1px);
}

.rpt-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--admin-primary-safe, var(--pj-primary, #c2570c));
}

.rpt-kpi-card.rpt-kpi-accent::before {
    background: var(--admin-secondary, #1ab394);
}

.rpt-kpi-label,
.rpt-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--pj-text, #1f2933);
    margin-bottom: 8px;
}

.rpt-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--pj-text, #1f2933);
    line-height: 1.1;
}

.rpt-kpi-value a,
.rpt-stat-value a {
    color: var(--admin-primary-safe, var(--pj-primary, #c2570c));
    text-decoration: none;
}

.rpt-kpi-value a:hover,
.rpt-stat-value a:hover {
    text-decoration: underline;
}

.rpt-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.rpt-stat-card {
    background: #fff;
    border: 1px solid var(--pj-border, #e5e7eb);
    border-radius: var(--pj-radius, 10px);
    padding: 14px 16px;
    text-align: center;
    transition: box-shadow 0.15s ease;
}

.rpt-stat-card:hover {
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
}

.rpt-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--pj-text, #1f2933);
    font-variant-numeric: tabular-nums;
}

.rpt-stat-value-sm {
    font-size: 13px;
    line-height: 1.35;
}

.rpt-muted {
    color: #888;
    font-weight: 500;
}

.rpt-vat-table-wrap {
    border: 1px solid var(--pj-border, #e5e7eb);
    border-radius: var(--pj-radius, 8px);
    overflow: hidden;
    margin-bottom: 8px;
}

.rpt-vat-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 !important;
    table-layout: auto;
}

.rpt-vat-table thead th {
    background: var(--admin-primary-safe, var(--pj-primary, #c2570c));
    color: var(--admin-on-primary, #fff);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.4px;
    padding: 12px 14px;
    border: none;
    text-align: right;
    white-space: nowrap;
}

.rpt-vat-table thead th:first-child,
.rpt-vat-table tbody td:first-child,
.rpt-vat-table tfoot td:first-child {
    text-align: left;
}

.rpt-vat-table tbody td {
    padding: 12px 14px;
    border: none;
    border-top: 1px solid var(--pj-border, #f0f0f0);
    text-align: right;
    color: var(--pj-text, #1f2933);
    background: #fff;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rpt-vat-table tbody tr:hover td {
    background: var(--admin-primary-lighter, rgba(249, 115, 22, 0.04));
}

.rpt-vat-table tfoot td {
    padding: 14px;
    background: var(--surfaceSubtle, #f8fafc);
    border-top: 2px solid var(--admin-primary-safe, var(--pj-primary, #c2570c));
    font-weight: 700;
    font-size: 13px;
    text-align: right;
    color: var(--pj-text, #1f2933);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
    .rpt-filter {
        flex-wrap: wrap;
    }

    .rpt-filter .rpt-date {
        flex: 1 1 100%;
    }

    .rpt-filter .rpt-date .input-group {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .rpt-page .ibox-content {
        padding: 16px;
    }

    .rpt-filter select.form-control,
    .rpt-filter .rpt-btns,
    .rpt-filter .rpt-btns .btn {
        width: 100%;
    }

    .rpt-filter .rpt-date .input-group {
        display: block;
    }

    .rpt-filter .rpt-date .input-group-addon,
    .rpt-filter .rpt-date .form-control {
        display: block;
        width: 100%;
        border-radius: 6px !important;
        margin-bottom: 6px;
    }

    .rpt-vat-table-wrap {
        overflow-x: auto;
    }
}
