/* Reseller panel — shared admin-style UI (2026-10-31).
   Gives the older report pages (ledger, otp-ledger, operator-wise-sales,
   gold-sales, complaint, ip-whitelist, payment-request list) the same look
   as admin.payrech.in: filter card on top, report card below with the
   pagination under the table, solid status badges. Pages keep their own
   markup/JS; only their inline <style> blocks were removed. */

/* ---------- filter bar -> card ---------- */
.report-filter-bar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
    margin-bottom: 24px; padding: 1.25rem;
    background: var(--bs-card-bg, var(--bs-secondary-bg, #fff));
    border: 0; border-radius: var(--bs-border-radius, .25rem);
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
}
.report-filter-bar .form-group { margin-bottom: 0; min-width: 150px; flex: 0 1 auto; }
.report-filter-bar label { display: block; margin-bottom: .5rem; font-size: 13px; font-weight: 500; color: var(--bs-body-color); }
.report-filter-bar .form-control, .report-filter-bar .form-select { min-height: 38px; font-size: 13px; }
.report-filter-bar .form-group.ms-auto { margin-left: auto; }

/* ---------- buttons -> Bootstrap primary / outline ---------- */
.btn-search, .btn-export, .btn-add {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; padding: .47rem 1.1rem; font-size: 13px; font-weight: 500;
    border-radius: var(--bs-border-radius, .25rem); border: 1px solid transparent;
    cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.btn-search { background: var(--bs-primary, #556ee6); border-color: var(--bs-primary, #556ee6); color: #fff; }
.btn-search:hover { filter: brightness(.92); color: #fff; }
.btn-export { background: transparent; border-color: var(--bs-secondary, #74788d); color: var(--bs-secondary, #74788d); }
.btn-export:hover { background: var(--bs-secondary, #74788d); color: #fff; }
.btn-add { background: var(--bs-success, #34c38f); border-color: var(--bs-success, #34c38f); color: #fff !important; }
.btn-add:hover { filter: brightness(.92); }

/* ---------- report section -> card (title = header, pagination under table) ---------- */
.col-12:has(> .report-table-title) { display: flex; flex-direction: column; }
.col-12:has(> .report-table-title) > * { order: 1; }
.col-12:has(> .report-table-title) > .report-table-title { order: 2; }
.col-12:has(> .report-table-title) > .table-responsive { order: 3; }
.col-12:has(> .report-table-title) > .pagination-report { order: 4; }

.report-table-title {
    margin: 0; padding: 1rem 1.25rem;
    font-size: 15px !important; font-weight: 600 !important; text-transform: none; letter-spacing: 0;
    color: var(--bs-heading-color, var(--bs-body-color)) !important;
    background: var(--bs-card-bg, var(--bs-secondary-bg, #fff));
    border-bottom: 1px solid var(--bs-border-color, #eff2f7);
    border-radius: var(--bs-border-radius, .25rem) var(--bs-border-radius, .25rem) 0 0;
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
}
.report-table-title + .table-responsive,
.col-12:has(> .report-table-title) > .table-responsive {
    padding: 1.25rem; background: var(--bs-card-bg, var(--bs-secondary-bg, #fff));
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
}
.col-12:has(> .report-table-title):not(:has(> .pagination-report:not(:empty))) > .table-responsive {
    margin-bottom: 24px; border-radius: 0 0 var(--bs-border-radius, .25rem) var(--bs-border-radius, .25rem);
}

/* pagination -> Bootstrap pagination look, inside the card footer */
.pagination-report {
    display: flex; flex-wrap: wrap; gap: 0; align-items: center;
    margin: 0 0 24px; padding: 0 1.25rem 1.25rem;
    background: var(--bs-card-bg, var(--bs-secondary-bg, #fff));
    border-radius: 0 0 var(--bs-border-radius, .25rem) var(--bs-border-radius, .25rem);
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .03);
}
.pagination-report:empty { display: none; }
.pagination-report a, .pagination-report span {
    display: inline-block; min-width: 36px; height: 34px; line-height: 32px; padding: 0 10px;
    margin-left: -1px; text-align: center; text-decoration: none; font-size: 13px; cursor: pointer;
    color: var(--bs-primary, #556ee6); background: var(--bs-card-bg, var(--bs-secondary-bg, #fff));
    border: 1px solid var(--bs-border-color, #eff2f7); border-radius: 0;
}
.pagination-report > :first-child { border-radius: var(--bs-border-radius, .25rem) 0 0 var(--bs-border-radius, .25rem); margin-left: 0; }
.pagination-report > :last-child { border-radius: 0 var(--bs-border-radius, .25rem) var(--bs-border-radius, .25rem) 0; }
.pagination-report a:hover { background: var(--bs-tertiary-bg, #f8f9fa); }
.pagination-report span.active { position: relative; z-index: 1; color: #fff; background: var(--bs-primary, #556ee6); border-color: var(--bs-primary, #556ee6); }

/* ---------- table ---------- */
.table-report { width: 100%; border-collapse: collapse; background: transparent !important; border: 0 !important; }
.table-report th, .table-report td {
    padding: 10px 12px !important; font-size: 13px; vertical-align: middle;
    border: 0 !important; border-bottom: 1px solid var(--bs-border-color, #eff2f7) !important;
    color: var(--bs-body-color);
}
.table-report th { font-weight: 600; white-space: nowrap; background: var(--bs-tertiary-bg, #f8f9fa) !important; }
.table-report tbody tr:hover { background: var(--bs-tertiary-bg, #f8f9fa) !important; }
.table-report tbody tr:last-child td { border-bottom: 0 !important; }

/* ---------- status badges (same as admin) ---------- */
.status-success, .status-failure, .status-pending, .status-danger {
    display: inline-block; padding: .25rem .5rem !important; border-radius: .2rem !important;
    font-size: 11px; font-weight: 600; text-transform: uppercase; color: #fff !important;
}
.status-success { background: var(--bs-success, #34c38f) !important; }
.status-failure, .status-danger { background: var(--bs-danger, #f46a6a) !important; }
.status-pending { background: var(--bs-warning, #f1b44c) !important; }

