/* ============================================
   MODERN REPORT LAYOUT - REDESIGNED
   Clean, professional, and responsive design
   ============================================ */

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --report-sidebar-width: var(--px-280);
    --report-header-height: var(--px-80);
    --report-spacing: var(--px-12);
    --report-radius: var(--px-8);
    --report-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --report-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --report-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   LAYOUT WRAPPER
   ============================================ */
.rpt-layout-wrapper {
    display: grid;
    grid-template-columns: var(--report-sidebar-width) 1fr;
    grid-template-rows: 1fr;
    background: var(--bs-body-bg);
    gap: 0;
    font: normal normal 500 var(--s-13);
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* ============================================
   SIDEBAR - MODERN DESIGN
   ============================================ */
.rpt-sidebar {
    grid-row: 1 / -1;
    background: var(--bs-surface-bg);
    border-right: 1px solid var(--bs-border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--report-transition);
    z-index: 100;
    height: 100vh;
    position: relative;
    z-index: 123123123123131231213;
}

    .rpt-sidebar.collapsed {
        display: none;
    }

.rpt-sidebar-header {
    padding: var(--px-16);
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-main-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    z-index: 102;
}

.rpt-sidebar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex: 1;
}

    .rpt-sidebar-title i {
        font-size: 28px;
        opacity: 0.95;
    }

    .rpt-sidebar-title h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

.rpt-sidebar-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--report-transition);
    backdrop-filter: blur(10px);
    min-width: unset;
    position: relative;
    z-index: 103;
}

    .rpt-sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.rpt-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 8px;
    position: relative;
    z-index: 101;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

    /* Webkit scrollbar styling */
    .rpt-sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

    .rpt-sidebar-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .rpt-sidebar-content::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

        .rpt-sidebar-content::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

/* ============================================
   SIDEBAR MENU - MODERN STYLE
   ============================================ */
.rpt-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .rpt-sidebar-menu > li {
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    .rpt-sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 10px;
        text-decoration: none;
        color: var(--bs-text);
        transition: var(--report-transition);
        font-size: 14px;
        font-weight: 500;
        position: relative;
        cursor: pointer;
        z-index: 2;
    }

        .rpt-sidebar-menu a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--bs-main-500), transparent);
            transition: width 0.3s ease;
            z-index: -1;
        }

        .rpt-sidebar-menu a:hover {
            background: var(--bs-secondary-bg);
            color: var(--bs-main-600);
            transform: translateX(4px);
        }

            .rpt-sidebar-menu a:hover::before {
                width: 4px;
            }

        .rpt-sidebar-menu a.report-active-link,
        .rpt-sidebar-menu a.active {
            background: var(--bs-main-100);
            color: var(--bs-main-600);
            font-weight: 600;
            box-shadow: var(--report-shadow-sm);
        }

            .rpt-sidebar-menu a.active::before {
                width: 4px;
            }

    .rpt-sidebar-menu .group-icon {
        font-size: 18px;
        min-width: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
    }

    /* Submenu styling */
    .rpt-sidebar-menu ul {
        list-style: none;
        padding-left: 40px;
        margin-top: 4px;
        margin-bottom: 8px;
    }

        .rpt-sidebar-menu ul a {
            padding: 10px 12px;
            font-size: 13px;
            font-weight: 400;
        }

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.rpt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: 0;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

    .rpt-overlay.active {
        display: block;
        opacity: 1;
    }

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.rpt-main-content {
    grid-column: 2 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--report-spacing);
    transition: var(--report-transition);
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

.rpt-sidebar.collapsed ~ .rpt-main-content {
    grid-column: 1 / -1;
}

/* ============================================
   FILTER SECTION - CARD STYLE
   ============================================ */
.rpt-filter-section {
    background: var(--bs-surface-bg);
    border-radius: 0;
    box-shadow: var(--report-shadow);
    overflow: hidden;
    flex-shrink: 0;
}

.rpt-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--px-12);
    background: var(--bs-surface-bg);
    cursor: pointer;
    user-select: none;
}

.rpt-filter-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .rpt-filter-title i {
        font-size: 22px;
        color: var(--bs-main-500);
    }

    .rpt-filter-title h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: var(--bs-heading-color);
    }

.rpt-filter-toggle {
    background: transparent;
    border: none;
    color: var(--bs-text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    min-width: fit-content;
    transition: var(--report-transition);
}

    .rpt-filter-toggle:hover {
    }

    .rpt-filter-toggle i {
        transition: transform 0.3s ease;
    }

[aria-expanded="true"] .rpt-filter-toggle i {
    transform: rotate(180deg);
}

.rpt-filter-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ============================================
   FILTER GRID - MODERN LAYOUT
   ============================================ */
.rpt-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.rpt-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .rpt-filter-item label {
        font-size: 13px;
        font-weight: 600;
        color: var(--bs-text);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.rpt-input,
.rpt-select {
    padding: 12px 16px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bs-input-bg);
    color: var(--bs-input-color);
    transition: var(--report-transition);
    font-weight: 500;
}

    .rpt-input:focus,
    .rpt-select:focus {
        outline: none;
        border-color: var(--bs-main-500);
        box-shadow: 0 0 0 4px var(--bs-main-100);
    }

/* ============================================
   FILTER ACTIONS - MODERN BUTTONS
   ============================================ */
.rpt-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rpt-btn {
    padding: 4px var(--px-12);
    border-radius: var(--report-radius);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--report-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font: normal normal 500 var(--s-13);
    min-width: fit-content;
}

    .rpt-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .rpt-btn:hover::before {
        transform: translateX(0);
    }

    .rpt-btn i {
        font-size: 16px;
    }

.rpt-btn-primary {
    background: linear-gradient(135deg, var(--bs-main-500) 0%, var(--bs-main-400) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(238, 97, 25, 0.3);
}

    .rpt-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(238, 97, 25, 0.4);
    }

.rpt-btn-success {
    background: linear-gradient(135deg, var(--bs-success) 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

    .rpt-btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

/* ============================================
   DISPLAY SECTION - MODERN CARD
   ============================================ */
.rpt-display-section {
    background: var(--bs-surface-bg);
    border-radius: var(--report-radius);
    box-shadow: var(--report-shadow);
    padding: 0;
    min-height: 400px;
    flex: 1;
    border: 1px solid var(--bs-border-strong);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 var(--px-12);
}

#report-data-display-area {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

/* ============================================
   REPORT CONTAINER
   ============================================ */
.rpt-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    min-height: 0;
}

/* ============================================
   REPORT HEADER - MODERN DESIGN
   ============================================ */
.rpt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--bs-surface-bg) 0%, var(--bs-secondary-bg) 100%);
    border-bottom: 1px solid var(--bs-border-color);
    flex-shrink: 0;
}

.rpt-header-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .rpt-header-title h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        color: var(--bs-heading-color);
        letter-spacing: -0.02em;
    }

.rpt-header-subtitle {
    font-size: 14px;
    color: var(--bs-text-muted);
    font-weight: 500;
}

/* ============================================
   REPORT ACTIONS - MODERN TOOLBAR
   ============================================ */
.rpt-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.rpt-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

    .rpt-search-box input {
        padding: 10px 16px 10px 44px;
        border: 1px solid var(--bs-border-color);
        border-radius: 10px;
        min-width: 280px;
        font-size: 14px;
        transition: var(--report-transition);
        background: var(--bs-input-bg);
        color: var(--bs-input-color);
        font-weight: 500;
    }

        .rpt-search-box input:focus {
            outline: none;
            border-color: var(--bs-main-500);
            box-shadow: 0 0 0 4px var(--bs-main-100);
        }

        .rpt-search-box input::placeholder {
            color: var(--bs-text-muted);
        }

    .rpt-search-box i {
        position: absolute;
        left: 16px;
        color: var(--bs-text-muted);
        font-size: 16px;
    }

.rpt-filter-select {
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bs-input-bg);
    color: var(--bs-input-color);
    cursor: pointer;
    min-width: 180px;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ============================================
   GRID HEADER - MODERN TABLE HEADER
   ============================================ */
.rpt-grid-header {
    display: grid;
    grid-template-columns: 80px 120px 120px 1fr 1fr 180px 120px 140px;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bs-body-bg);
    color: var(--bs-text);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--bs-border-strong);
}

.rpt-grid-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .rpt-grid-cell.sortable {
        cursor: pointer;
        user-select: none;
        transition: var(--report-transition);
    }

        .rpt-grid-cell.sortable:hover {
            opacity: 0.9;
            transform: translateX(2px);
        }

.rpt-sort-icon {
    opacity: 0.6;
    transition: var(--report-transition);
    font-size: 14px;
}

.rpt-grid-cell.sorted .rpt-sort-icon {
    opacity: 1;
}

/* ============================================
   GRID BODY - MODERN TABLE BODY
   ============================================ */
.rpt-grid-body {
    background: var(--bs-surface-bg);
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

/* ============================================
   GRID ROW - MODERN TABLE ROW
   ============================================ */
.rpt-grid-row {
    display: grid;
    grid-template-columns: 80px 120px 120px 1fr 1fr 180px 120px 140px;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--bs-border-color);
    transition: var(--report-transition);
    align-items: center;
}

    .rpt-grid-row:hover {
        background: var(--bs-secondary-bg);
    }

    .rpt-grid-row:last-child {
        border-bottom: none;
    }

    .rpt-grid-row.rpt-group-header {
        background: var(--bs-border-color);
        font-weight: 700;
        color: var(--bs-main);
        grid-template-columns: 1fr;
        padding: 12px 24px;
        position: sticky;
        top: 0;
        z-index: 9;
        border-bottom: 1px solid var(--bs-border-color);
        box-shadow: var(--bs-shadow-xs);
    }

        .rpt-grid-row.rpt-group-header:hover {
            background: var(--bs-main-100);
        }

    .rpt-grid-row.rpt-total {
        background: var(--bs-body-bg);
        font-weight: 700;
        color: var(--bs-text);
    }

    .rpt-grid-row.rpt-grand-total {
        background: linear-gradient(135deg, var(--bs-danger-bg-subtle) 0%, #fee2e2 100%);
        font-weight: 800;
        color: var(--bs-danger);
        font-size: 16px;
        position: sticky;
        bottom: 0;
        z-index: 9;
    }

/* ============================================
   CELL CONTENT
   ============================================ */
.rpt-cell-content {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--bs-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .rpt-cell-content.rpt-text-end {
        justify-content: flex-end;
    }

    .rpt-cell-content.rpt-text-center {
        justify-content: center;
    }

/* ============================================
   STATUS BADGE - MODERN PILLS
   ============================================ */
.rpt-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .rpt-status-badge.rpt-status-true {
        background: linear-gradient(135deg, var(--bs-success) 0%, #10b981 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    .rpt-status-badge.rpt-status-false {
        background: linear-gradient(135deg, var(--bs-danger) 0%, #ef4444 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }

/* ============================================
   FOOTER - MODERN PAGINATION
   ============================================ */
.rpt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bs-surface-bg);
    border-top: 1px solid var(--bs-border-color);
    flex-shrink: 0;
}

.rpt-pagination-info {
    font-size: 14px;
    color: var(--bs-text);
    font-weight: 500;
}

    .rpt-pagination-info strong {
        color: var(--bs-main-600);
        font-weight: 700;
    }

/* ============================================
   EMPTY & LOADING STATES
   ============================================ */
.rpt-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--bs-text-muted);
}

    .rpt-empty-state i {
        font-size: 64px;
        margin-bottom: 24px;
        opacity: 0.3;
    }

    .rpt-empty-state h3 {
        margin: 0 0 8px 0;
        font-size: 20px;
        color: var(--bs-heading-color);
        font-weight: 700;
    }

    .rpt-empty-state p {
        margin: 0;
        font-size: 14px;
    }

.rpt-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.rpt-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bs-border-color);
    border-top-color: var(--bs-main-500);
    border-radius: 50%;
    animation: rpt-spin 0.8s linear infinite;
}

@keyframes rpt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - ENHANCED
   ============================================ */

/* Mobile FAB Button for Sidebar Toggle */
.rpt-mobile-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-main-500) 0%, var(--bs-main-400) 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(238, 97, 25, 0.4);
    cursor: pointer;
    z-index: 98;
    transition: var(--report-transition);
}

    .rpt-mobile-fab:active {
        transform: scale(0.95);
    }

    .rpt-mobile-fab i {
        font-size: 24px;
    }

/* ============================================
   RESPONSIVE BREAKPOINTS - TABLET
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --report-sidebar-width: 240px;
        --report-spacing: 20px;
    }

    .rpt-header-title h2 {
        font-size: 20px;
    }

    .rpt-grid-header,
    .rpt-grid-row {
        gap: 12px;
        padding: 12px 20px;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS - LARGE MOBILE/TABLET
   ============================================ */
@media (max-width: 1024px) {
    .rpt-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .rpt-sidebar {
        /* position: fixed; */
        /* inset: 0 auto 0 0; */
        /* width: 320px; */
        /* max-width: 85vw; */
        /* transform: translateX(-100%); */
        /* z-index: 101; */
        /* box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15); */
    }

        .rpt-sidebar.active {
            transform: translateX(0);
        }

        .rpt-sidebar.collapsed {
            transform: translateX(-100%);
            margin-left: 0;
        }

    .rpt-main-content {
        grid-column: 1 / -1;
    }

    .rpt-mobile-fab {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rpt-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }

    .rpt-filter-body {
        padding: 20px;
        max-height: 60vh;
    }

    .rpt-header {
        padding: 20px;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS - MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --report-spacing: 12px;
        --report-radius: 8px;
    }

    .rpt-header {
        flex-direction: column;
        gap: var(--px-12);
        align-items: flex-start;
        padding: 16px;
    }

    .rpt-header-title h2 {
        font-size: 18px;
    }

    .rpt-header-subtitle {
        font-size: 13px;
    }

    .rpt-actions {
        width: 100%;
        gap: 8px;
    }

    .rpt-search-box {
        flex: 3;
    }

        .rpt-search-box input {
            width: 100%;
            min-width: 100%;
            padding: 10px 12px 10px 40px;
        }

    .rpt-filter-select {
        width: 100%;
    }

    .rpt-btn {
        justify-content: center;
        flex: 1;
    }

    .rpt-filter-section {
    }

    .rpt-filter-header {
        padding: 12px;
    }

    .rpt-filter-title h5 {
        font-size: 16px;
    }

    .rpt-filter-body {
        padding: 16px;
        max-height: 50vh;
    }

    .rpt-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .rpt-filter-actions {
        gap: 8px;
        flex-direction: row;
    }

    .rpt-display-section {
        padding: var(--px-8);
        margin: 0;
        border-radius: 0;
    }

    .rpt-grid-header {
        display: none;
    }

    .rpt-grid-row:not(.rpt-group-header):not(.rpt-total):not(.rpt-grand-total) {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: var(--bs-surface-bg);
        border-radius: 8px;
        margin-bottom: 8px;
        border: 1px solid var(--bs-border-color);
        box-shadow: var(--report-shadow-sm);
    }

        .rpt-grid-row:not(.rpt-group-header):not(.rpt-total):not(.rpt-grand-total):hover {
            box-shadow: var(--report-shadow);
            transform: translateY(-2px);
        }

    .rpt-cell-content {
        width: 100%;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--bs-border-color);
    }

        .rpt-cell-content:last-child {
            border-bottom: none;
        }

        .rpt-cell-content::before {
            content: attr(data-label);
            font-weight: 700;
            color: var(--bs-text-muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }

        .rpt-cell-content.rpt-text-end {
            flex-direction: row;
        }

    .rpt-grid-row.rpt-group-header {
        padding: 12px 16px;
        margin-bottom: 8px;
        border-radius: 8px;
        font-size: 14px;
    }

    .rpt-grid-row.rpt-total,
    .rpt-grid-row.rpt-grand-total {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

        .rpt-grid-row.rpt-total .rpt-cell-content,
        .rpt-grid-row.rpt-grand-total .rpt-cell-content {
            border: none;
            padding: 4px 0;
        }

    .rpt-footer {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        text-align: center;
    }

    .rpt-pagination-info {
        font-size: 13px;
    }

    .rpt-sidebar {
        width: 280px;
    }

    .rpt-sidebar-header {
        padding: 12px;
    }

    .rpt-sidebar-title h3 {
        font-size: 18px;
    }

    .rpt-sidebar-content {
        padding: 12px 8px;
    }

    .rpt-sidebar-menu a {
        padding: 12px;
        font-size: 13px;
    }

    .rpt-mobile-fab {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .rpt-status-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .rpt-empty-state {
        padding: 40px 16px;
    }

        .rpt-empty-state i {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .rpt-empty-state h3 {
            font-size: 18px;
        }

        .rpt-empty-state p {
            font-size: 13px;
        }

    .rpt-loading {
        padding: 40px 16px;
    }

    .rpt-spinner {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    :root {
        --report-spacing: 8px;
    }

    .rpt-main-content {
    }

    .rpt-header {
        padding: var(--px-6);
    }

    .rpt-header-title h2 {
        font-size: 16px;
    }

    .rpt-header-subtitle {
        font-size: 12px;
    }

    .rpt-filter-header {
        padding: 10px;
    }

    .rpt-filter-title h5 {
        font-size: 14px;
    }

    .rpt-filter-title i {
        font-size: 18px;
    }

    .rpt-filter-body {
        padding: 12px;
    }

    .rpt-grid-row:not(.rpt-group-header):not(.rpt-total):not(.rpt-grand-total) {
        padding: 12px;
        gap: 8px;
    }

    .rpt-cell-content {
        font-size: 13px;
        padding: 6px 0;
    }

        .rpt-cell-content::before {
            font-size: 11px;
        }

    .rpt-btn {
    }

    .rpt-mobile-fab {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

        .rpt-mobile-fab i {
            font-size: 20px;
        }

    .rpt-sidebar {
        width: 260px;
    }
}

/* ============================================
   LANDSCAPE MODE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .rpt-mobile-fab {
        bottom: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
    }

        .rpt-mobile-fab i {
            font-size: 20px;
        }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .rpt-sidebar,
    .rpt-overlay,
    .rpt-mobile-fab,
    .rpt-filter-section,
    .rpt-actions {
        display: none !important;
    }

    .rpt-main-content {
        grid-column: 1 / -1;
        padding: 0;
    }

    .rpt-container,
    .rpt-display-section {
        box-shadow: none;
        border: none;
    }

    .rpt-grid-row {
        page-break-inside: avoid;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.rpt-text-muted {
    color: var(--bs-text-muted) !important;
}

.rpt-text-primary {
    color: var(--bs-main) !important;
}

.dis-none {
    display: none !important;
}

.rpt-sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

    .rpt-sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

/* ============================================
   REPRINT CONTAINER STYLES - DARK MODE
   Mobile Optimized & Enhanced
   ============================================ */
.reprint-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bs-body-bg);
}

.reprint-header {
    background: var(--bs-surface-bg);
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem;
    box-shadow: var(--bs-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #20c9974d 0%, #20c99757 100% 10%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .icon-wrapper i {
        font-size: 1.25rem;
        color: var(--bs-teal);
        font-weight: 400;
    }

.title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin: 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.8125rem;
    color: var(--bs-text-muted);
    margin: 0;
    line-height: 1.3;
}

.header-right {
    text-align: right;
    min-width: 120px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--bs-text-muted);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bs-main-400);
    margin: 0;
}

/* Header Filters - Mobile First */
.header-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

    .search-wrapper i {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--bs-text-muted);
        font-size: 0.875rem;
        z-index: 1;
    }

    .search-wrapper input {
        width: 100%;
        padding: 0.625rem 0.625rem 0.625rem 2.25rem;
        border: 1px solid var(--bs-input-border-color);
        border-radius: 0.5rem;
        background: var(--bs-input-bg);
        color: var(--bs-input-color);
        transition: all 0.2s;
        font-size: 0.875rem;
    }

        .search-wrapper input:focus {
            outline: none;
            border-color: var(--bs-input-focus-border-color);
            box-shadow: 0 0 0 3px var(--bs-input-focus-ring-color);
        }

        .search-wrapper input::placeholder {
            color: var(--bs-input-placeholder-color);
            font-size: 0.8125rem;
        }

.date-picker-wrapper {
    flex: 1;
    width: 100%;
}

    .date-picker-wrapper input {
        width: 100%;
        padding: 0.625rem 0.875rem;
        border: 1px solid var(--bs-input-border-color);
        border-radius: 0.5rem;
        background: var(--bs-input-bg);
        color: var(--bs-input-color);
        transition: all 0.2s;
        font-size: 0.875rem;
    }

        .date-picker-wrapper input:focus {
            outline: none;
            border-color: var(--bs-input-focus-border-color);
            box-shadow: 0 0 0 3px var(--bs-input-focus-ring-color);
        }

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

.filter-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-surface-bg);
    color: var(--bs-text);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

    .filter-btn:hover {
        background: var(--bs-surface-2-bg);
        border-color: var(--bs-border-strong);
    }

    .filter-btn.active {
        background: var(--bs-main);
        color: white;
        border-color: var(--bs-main);
        box-shadow: var(--bs-shadow-sm);
    }

/* Content */
.reprint-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.tickets-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Ticket Card - Mobile Optimized */
.ticket-card {
    background: var(--bs-surface-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color);
    padding: 0.875rem;
    transition: all 0.2s;
    position: relative;
}

    .ticket-card:hover {
        box-shadow: var(--bs-shadow-md);
        border-color: var(--bs-border-strong);
        transform: translateY(-2px);
    }

.ticket-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ticket-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.ticket-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #20c9974d 0%, #20c99757 100% 10%);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ticket-card:hover .ticket-icon {
    transform: scale(1.05);
}

.ticket-icon i {
    font-size: 1.25rem;
    color: var(--bs-green);
    font-weight: 300;
}

.ticket-number {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

    .ticket-number .font-bold {
        color: var(--bs-heading-color);
        font-size: 0.9375rem;
        font-weight: 600;
    }

.ticket-client {
    color: var(--bs-text);
    font-weight: 500;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--bs-text-muted);
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.separator {
    color: var(--bs-border-color);
    margin: 0 0.125rem;
}

.ticket-amount {
    text-align: right;
    flex-shrink: 0;
}

.amount-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

    .amount-value i {
        font-size: 0.875rem;
        color: var(--bs-main-400);
    }

    .amount-value .font-bold {
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--bs-heading-color);
    }

.payment-info {
    font-size: 0.75rem;
    color: var(--bs-text-muted);
    white-space: nowrap;
}

/* Invoice Info */
.invoice-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.invoice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--bs-main-900);
    color: var(--bs-main-200);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

    .invoice-badge i {
        font-size: 0.875rem;
    }

.invoice-details {
    font-size: 0.75rem;
    color: var(--bs-text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

/* Actions - Always Visible on Mobile */
.ticket-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    color: var(--bs-text);
    background: var(--bs-surface-2-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .action-btn:hover {
        background: var(--bs-surface-bg);
        border-color: var(--bs-border-strong);
    }

    .action-btn:active {
        transform: scale(0.95);
    }

    .action-btn.danger:hover {
        background: var(--bs-main-950);
        color: var(--bs-main-200);
        border-color: var(--bs-main-800);
    }

    .action-btn i {
        font-size: 0.875rem;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--bs-text-muted);
        opacity: 0.5;
    }

    .empty-state h3 {
        font-size: 1rem;
        color: var(--bs-heading-color);
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        font-size: 0.875rem;
        color: var(--bs-text-muted);
    }

/* ============================================
   TABLET RESPONSIVE (640px - 768px)
   ============================================ */
@media (min-width: 640px) {
    .header-filters {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .search-wrapper {
        max-width: 20rem;
    }

    .date-picker-wrapper {
        max-width: 14rem;
    }

    .filter-buttons {
        overflow-x: visible;
    }

    .reprint-header {
        padding: 1.25rem;
    }

    .reprint-content {
        padding: 1rem;
    }

    .ticket-card {
        padding: 1rem;
    }

        .ticket-card:hover .ticket-actions {
            opacity: 1;
        }
}

/* ============================================
   DESKTOP RESPONSIVE (768px+)
   ============================================ */
@media (min-width: 768px) {
    .reprint-header {
        padding: 1.5rem;
    }

    .reprint-content {
        padding: 1.5rem;
    }

    .header-top {
        margin-bottom: 1.5rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .search-wrapper {
        max-width: 28rem;
    }

        .search-wrapper input {
            font-size: 0.9375rem;
            padding: 0.625rem 0.625rem 0.625rem 2.5rem;
        }

    .date-picker-wrapper {
        max-width: 16rem;
    }

        .date-picker-wrapper input {
            font-size: 0.9375rem;
        }

    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .ticket-card-header {
        align-items: center;
    }

    .ticket-info {
        align-items: center;
    }

    .ticket-icon {
        width: 3rem;
        height: 3rem;
    }

        .ticket-icon i {
            font-size: 1.5rem;
        }

    .ticket-number .font-bold {
        font-size: 1rem;
    }

    .ticket-client {
        font-size: 0.875rem;
    }

    .ticket-meta {
        font-size: 0.8125rem;
        margin-top: 0;
    }

    .amount-value .font-bold {
        font-size: 1.25rem;
    }

    .payment-info {
        font-size: 0.8125rem;
    }

    .invoice-badge {
        font-size: 0.8125rem;
    }

    .invoice-details {
        font-size: 0.8125rem;
    }

    /* Hide actions on desktop until hover */
    .ticket-actions {
        opacity: 0;
    }

    .ticket-card:hover .ticket-actions {
        opacity: 1;
    }

    .action-btn {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
        background: transparent;
        border: none;
    }

        .action-btn:hover {
            background: var(--bs-surface-2-bg);
        }

    .empty-state {
        padding: 3rem 1rem;
    }

        .empty-state i {
            font-size: 4rem;
        }

        .empty-state h3 {
            font-size: 1.25rem;
        }

        .empty-state p {
            font-size: 0.9375rem;
        }
}

/* ============================================
   SMALL MOBILE OPTIMIZATION (<480px)
   ============================================ */
@media (max-width: 480px) {
    .reprint-header {
        padding: 0.75rem;
    }

    .reprint-content {
        padding: 0.5rem;
    }

    .header-top {
        margin-bottom: 0.75rem;
    }

    .title {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .ticket-card {
        padding: 0.75rem;
    }

    .ticket-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

        .ticket-icon i {
            font-size: 1.125rem;
        }

    .ticket-number .font-bold {
        font-size: 0.875rem;
    }

    .ticket-client {
        font-size: 0.75rem;
    }

    .amount-value .font-bold {
        font-size: 1rem;
    }

    .action-btn {
        padding: 0.3125rem 0.5rem;
        font-size: var(--px-12);
        font-weight: 500;
        flex: 1;
    }

        .action-btn i {
            font-size: var(--px-10);
        }

    .filter-btn {
        padding: 0.4375rem 0.625rem;
        font-size: var(--px-14);
        flex: 1;
    }
}
