/**
 * VendSight360™ - Dashboard Styles
 */

.vendsight-container {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.stat-card-icon i {
    font-size: 26px;
}

.vendsight-stat-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Hero Header */
.vendsight-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vendsight-hero .header-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.vendsight-hero .header-title-group h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.vendsight-hero .header-title-group p {
    font-size: 15px;
    opacity: 0.85;
    margin: 0;
}

.vendsight-hero .header-search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vendsight-hero .header-search {
    position: relative;
    width: 280px;
}

.vendsight-hero .search-input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vendsight-hero .search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.85);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.vendsight-hero .search-input::placeholder {
    color: #666;
}

.network-card {
    color: #fff;
    border: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.network-card .card-body {
    color: inherit;
}

.network-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
}

.network-card-mtn {
    background: linear-gradient(135deg, #fcbf49 0%, #f77f00 100%) !important;
}

.network-card-airtel {
    background: linear-gradient(135deg, #ff4b5c 0%, #c81d25 100%) !important;
}

.network-card-glo {
    background: linear-gradient(135deg, #00c853 0%, #009624 100%) !important;
}

.network-card-9mobile {
    background: linear-gradient(135deg, #6c757d 0%, #343a40 100%) !important;
}

.network-card-default {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
}

.vendsight-hero .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #666;
}

.vendsight-hero .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.section-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 6px;
}

.section-pill {
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.section-pill:hover,
.section-pill:focus {
    background: rgba(255, 255, 255, 0.45);
    outline: none;
}

.section-pill.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.section-pill.action-pill {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

.section-pill.action-pill:hover,
.section-pill.action-pill:focus {
    background: rgba(255, 255, 255, 0.35);
}

.section-pill.export-pill {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #0b2d6f;
}

.section-pill.export-pill:hover,
.section-pill.export-pill:focus {
    background: linear-gradient(135deg, #3f9ae5 0%, #00d4e4 100%);
    color: #072553;
}

/* Tooltip "?" indicator for Financial Overview cards */
.vendsight-tooltip-card {
    position: relative;
}

.vendsight-tooltip-indicator {
    position: absolute;
    top: 8px;
    right: 10px;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none; /* keep hover/click target as the card */
}

.vendsight-tooltip-card.text-white .vendsight-tooltip-indicator,
.vendsight-tooltip-card.bg-success .vendsight-tooltip-indicator,
.vendsight-tooltip-card.bg-danger .vendsight-tooltip-indicator,
.vendsight-tooltip-card.bg-warning .vendsight-tooltip-indicator,
.vendsight-tooltip-card.bg-info .vendsight-tooltip-indicator,
.vendsight-tooltip-card.bg-primary .vendsight-tooltip-indicator,
.vendsight-tooltip-card.bg-secondary .vendsight-tooltip-indicator {
    color: rgba(255, 255, 255, 0.95);
}

.vendsight-tooltip-card:not(.text-white):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-primary):not(.bg-secondary) .vendsight-tooltip-indicator {
    color: rgba(33, 37, 41, 0.6);
}

/* Inline ? in card headers (e.g. next to chart fullscreen) */
.vendsight-header-tooltip {
    cursor: help;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.75;
}

.vendsight-header-tooltip:hover,
.vendsight-header-tooltip:focus {
    opacity: 1;
}

/* ? on colored stat cards (Financial Overview wallet row) */
.vendsight-header-tooltip-on-dark {
    cursor: help;
    font-size: 0.95rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.9;
}

.vendsight-header-tooltip-on-dark:hover,
.vendsight-header-tooltip-on-dark:focus {
    opacity: 1;
    color: #fff;
}

.section-pill.filter-pill {
    background: var(--warning, linear-gradient(135deg, #ffd166 0%, #f4a261 100%));
    color: #3a2800;
}

.section-pill.filter-pill:hover,
.section-pill.filter-pill:focus {
    background: var(--warning-hover, linear-gradient(135deg, #ffc447 0%, #f08a24 100%));
    color: #261a00;
}

.stat-dual-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.vendsight-stat-card {
    min-height: 170px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    display: flex;
}

.vendsight-stat-card .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 20px 48px 20px 20px;
}

.vendsight-stat-card .stat-card-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0.85;
}

.vendsight-stat-card .stat-card-icon i {
    font-size: 26px;
}

.vendsight-stat-card h3 {
    font-size: 24px !important;
    font-weight: 700;
    margin-bottom: 4px;
}

@media (max-width: 992px) {
    .vendsight-stat-card h3 {
        font-size: 20px !important;
    }
}

#auditDateRangeLabel {
    font-weight: 600;
    color: #6c757d;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.action-btn i {
    font-size: 14px;
}

.btn-info-action {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.btn-warning-action {
    background: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
    color: #7a4b00;
}

.btn-primary-action {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #0b2d6f;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.action-btn:focus {
    outline: none;
}

.quick-range-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-range-buttons .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 8px 16px;
}

.quick-range-buttons .btn.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 991.98px) {
    .vendsight-hero {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .vendsight-hero .header-search {
        width: 100%;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Section Management */
.vendsight-section {
    display: none;
}

.vendsight-section[data-section="main"] {
    display: block;
}

.vendsight-container .card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vendsight-container .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vendsight-container .card-header {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
}

.vendsight-container .card-body {
    padding: 20px;
}

/* Metric Cards */
.vendsight-container .card.bg-primary,
.vendsight-container .card.bg-success,
.vendsight-container .card.bg-info,
.vendsight-container .card.bg-danger {
    color: white;
    border: none;
    transition: transform 0.2s ease;
}

.vendsight-container .card.bg-primary:hover,
.vendsight-container .card.bg-success:hover,
.vendsight-container .card.bg-info:hover,
.vendsight-container .card.bg-danger:hover {
    transform: scale(1.05);
}

.vendsight-container .card.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vendsight-container .card.bg-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.vendsight-container .card.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.vendsight-container .card.bg-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.vendsight-container .card-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.vendsight-container .card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vendsight-container .card small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Date Filter Section */
.vendsight-container .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.vendsight-container .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.vendsight-container .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Buttons */
.vendsight-container .btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vendsight-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vendsight-container .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.vendsight-container .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.vendsight-container .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.vendsight-container .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.vendsight-container .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Charts */
.vendsight-container canvas {
    max-height: 400px;
}

/* Bundle Popularity List */
.vendsight-container .list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.vendsight-container .list-group-item:hover {
    background-color: #f8f9fa;
}

.vendsight-container .list-group-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.vendsight-container .list-group-item p {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Badges */
.vendsight-container .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
}

.vendsight-container .badge.bg-success {
    background-color: #28a745 !important;
}

.vendsight-container .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.vendsight-container .badge.bg-danger {
    background-color: #dc3545 !important;
}

.vendsight-container .badge.bg-primary {
    background-color: var(--primary) !important;
}

/* SIM Status Table */
.vendsight-container .table {
    margin-bottom: 0;
}

.vendsight-container .table thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 15px;
}

.vendsight-container .table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 0.875rem;
}

.vendsight-container .table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Wallet Info */
.vendsight-container .wallet-info {
    padding: 10px 0;
}

.vendsight-container .wallet-info label {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-bottom: 0.25rem;
}

.vendsight-container .wallet-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0;
}

/* Best/Worst Bundle Cards */
.vendsight-container .card.border-success {
    border: 2px solid #28a745 !important;
}

.vendsight-container .card.border-warning {
    border: 2px solid #ffc107 !important;
}

.vendsight-container .card-header.bg-success {
    background-color: #28a745 !important;
}

.vendsight-container .card-header.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Loading States */
.vendsight-container .fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .vendsight-container {
        padding: 10px;
    }

    .vendsight-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .vendsight-actions .form-select {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }

    .vendsight-actions .btn {
        width: 100%;
        min-width: 0;
        margin-bottom: 0;
    }

    .vendsight-container .card h3 {
        font-size: 1.5rem;
    }

    .vendsight-container .card-body {
        padding: 15px;
    }

    .vendsight-container .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .vendsight-container .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .vendsight-container canvas {
        max-height: 250px;
    }

    /* Fix mobile button overflow */
    .vendsight-container .d-flex.gap-2.flex-wrap {
        gap: 0.5rem !important;
    }

    .vendsight-container .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.25rem;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Stack buttons vertically on very small screens */
    @media (max-width: 480px) {
        .vendsight-container .d-flex.gap-2.flex-wrap {
            flex-direction: column;
        }
        
        .vendsight-container .btn-sm {
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .vendsight-actions .form-select {
            font-size: 0.875rem;
        }
    }
}

/* Additional mobile fixes */
@media (max-width: 576px) {
    .vendsight-container .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .vendsight-container .col-md-3,
    .vendsight-container .col-md-6,
    .vendsight-container .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .vendsight-container .card-body {
        padding: 10px;
    }

    .vendsight-container .form-control {
        font-size: 0.875rem;
    }

    .vendsight-container .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    /* Mobile metric cards */
    .vendsight-container .card h3 {
        font-size: 1.25rem;
    }

    .vendsight-container .card h6 {
        font-size: 0.75rem;
    }

    /* Mobile table responsiveness */
    .vendsight-container .table-responsive {
        font-size: 0.8rem;
    }

    .vendsight-container .table th,
    .vendsight-container .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .vendsight-container {
        padding: 5px;
    }

    .vendsight-container .card-body {
        padding: 8px;
    }

    .vendsight-container .card h3 {
        font-size: 1.1rem;
    }

    .vendsight-container .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .vendsight-container .btn-sm {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Print Styles */
@media print {
    .vendsight-container .card {
        page-break-inside: avoid;
    }

    .vendsight-container .btn,
    .vendsight-container .form-control {
        display: none;
    }
}

/* Opacity utility */
.opacity-75 {
    opacity: 0.75;
}

/* Gap utility for older browsers */
.gap-2 > * {
    margin-right: 0.5rem;
}

.gap-2 > *:last-child {
    margin-right: 0;
}

/* Quick buttons specific styling */
.vendsight-quick-buttons {
    gap: 0.5rem;
}

.vendsight-quick-buttons .btn-sm {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile-specific quick button fixes */
@media (max-width: 576px) {
    .vendsight-quick-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .vendsight-quick-buttons .btn-sm {
        width: 100%;
        margin-bottom: 0.25rem;
        flex: none;
    }
}

@media (max-width: 480px) {
    .vendsight-quick-buttons .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Text utilities */
.text-muted {
    color: #6c757d !important;
}

/* Spacing utilities */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ── How It Works ── */
.fw-how-it-works { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.fw-hiw-toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-weight: 600; font-size: 0.95em; color: #334155; text-decoration: none !important; cursor: pointer; transition: background 0.2s; }
.fw-hiw-toggle:hover { background: #f8fafc; color: #334155; }
.fw-hiw-toggle[aria-expanded="true"] .fw-hiw-arrow { transform: rotate(180deg); }
.fw-hiw-arrow { font-size: 0.75em; transition: transform 0.3s ease; color: #94a3b8; }
.fw-hiw-body { padding: 0 20px 20px; }
.fw-hiw-steps { display: flex; flex-direction: column; gap: 16px; }
.fw-hiw-step { display: flex; align-items: flex-start; gap: 14px; }
.fw-hiw-step-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.fw-hiw-step strong { display: block; font-size: 0.9em; color: #1e293b; margin-bottom: 2px; }
.fw-hiw-step p { margin: 0; font-size: 0.82em; color: #64748b; line-height: 1.5; }


/* VendSight reports: compact controls, readable figures and phone-sized cards. */
.vendsight-container { min-width: 0; padding: clamp(8px, 1.4vw, 20px); }
.vendsight-container .vendsight-hero { padding: clamp(16px, 2vw, 24px); margin-bottom: 18px; box-shadow: 0 4px 16px #17255414; }
.vendsight-hero .header-title-group h3 { font-family: inherit; color: #fff; font-size: clamp(21px, 2vw, 28px); line-height: 1.25; }
.vendsight-hero .header-title-section { gap: 12px; }
.vendsight-hero .header-search-container { min-width: 0; }
.vendsight-hero .header-search { width: clamp(220px, 28vw, 320px); max-width: 100%; }
.vendsight-hero .section-pill-group { gap: 6px; padding: 6px; }
.vendsight-hero .section-pill { min-height: 44px; font-size: 12px; padding: 8px 12px; box-shadow: none; }
.vendsight-container :is(button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.vendsight-hero .section-pill:focus-visible { outline-color: #fff; }
.vendsight-report { min-width: 0; }
.vendsight-report-context { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin: 0 0 12px; font-size: 12px; color: #526078; }
.vendsight-report-guide { max-width: 650px; }
.vendsight-report-guide summary { cursor: pointer; color: #2453a5; padding: 6px 0; }
.vendsight-report-guide p { line-height: 1.65; margin: 8px 0; }
.vendsight-report .shared-table-v2 { border: 1px solid #e1e7ef; border-radius: 14px; overflow: hidden; background: #fff; }
.vendsight-report .shared-table-header-bar { background: #fff !important; color: #192a43 !important; padding: 18px !important; border-bottom: 1px solid #e1e7ef; border-radius: 0 !important; }
.vendsight-report .shared-table-header-title h5 { font-family: inherit; color: #192a43 !important; font-size: 18px; line-height: 1.5; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vendsight-report .shared-table-header-title .badge { background: #edf3ff !important; color: #244d99 !important; font-family: inherit; font-size: 11px; }
.vendsight-report .shared-table-header-toolbar { flex-wrap: nowrap !important; min-width: 0; }
.vendsight-report .shared-table-header-search { width: clamp(180px, 23vw, 300px); max-width: none; min-width: 0; }
.vendsight-report .shared-table-search-input { width: 100%; min-height: 44px; background: #f7f9fc; color: #192a43; border: 1px solid #d4deea; font-size: 14px; }
.vendsight-report .shared-table-rows-per-page select { min-height: 44px; min-width: 72px; color: #192a43; background-color: #f7f9fc; border: 1px solid #d4deea; }
.vendsight-report .shared-table-header-row2 { margin-top: 12px; flex-direction: row !important; flex-wrap: wrap !important; }
.vendsight-report .shared-table-header-row2 .btn { flex: 0 1 auto; width: auto; min-height: 44px; margin: 0; padding: 9px 14px; font-size: 13px; white-space: normal; overflow: visible; text-overflow: clip; border: 1px solid #cbd7e6; border-radius: 8px; color: #294665; background: #fff; }
.vendsight-report .shared-table-header-row2 [id$="summaryBtn"] { background: #254fce; border-color: #254fce; color: #fff; font-weight: 600; }
.vendsight-report .shared-table-header-row2 .btn:hover { background: #eef3fc; color: #173d96; }
.vendsight-report .shared-table-card-body { padding: 0 !important; }
.vendsight-report .table-responsive, .vendsight-report-drill-table { overflow: auto; max-height: 65vh; overscroll-behavior-inline: contain; }
.vendsight-report table, .vendsight-report-modal table { width: 100%; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.vendsight-report :is(th, td), .vendsight-report-modal :is(th, td) { padding: 12px 14px; white-space: nowrap; vertical-align: middle; }
.vendsight-report thead th, .vendsight-report-modal thead th { position: sticky; top: 0; z-index: 2; background: #f2f5fa !important; color: #465a73 !important; font-size: 11px; letter-spacing: .02em; text-transform: none; border-bottom: 1px solid #dbe3ed; }
.vendsight-report tbody td, .vendsight-report-modal tbody td { color: #243b53; background: #fff; }
.vendsight-report tr > :nth-child(2) { position: sticky; left: 0; z-index: 1; min-width: 170px; max-width: 280px; white-space: normal; background: #fff; box-shadow: 2px 0 3px #1725540a; }
.vendsight-report thead tr > :nth-child(2) { z-index: 3; }
.vendsight-report :is([id$="modal-pagination"], .shared-table-pagination-top) { padding: 10px 16px; margin: 0 !important; }
.vendsight-report-modal .modal-dialog { max-width: min(1440px, calc(100vw - 48px)); }
.vendsight-report-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.vendsight-report-modal .modal-header { background: #f8fafc !important; color: #192a43 !important; border-bottom: 1px solid #dfe6ef; gap: 12px; }
.vendsight-report-modal .modal-title { font-family: inherit; color: #192a43; font-size: 18px; overflow-wrap: anywhere; }
.vendsight-report-modal .btn-close { flex-shrink: 0; width: 24px; height: 24px; filter: none; }
.vendsight-report-modal .modal-footer { gap: 8px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.vendsight-report-modal .modal-footer .btn, .vendsight-report-modal input, .vendsight-report-modal select { min-height: 44px; }
.vendsight-report-modal [id$="summaryBody"] h2 { font-family: inherit; font-size: 20px; }
.vendsight-report-modal [id$="summaryBody"] p { font-size: 13px; line-height: 1.65; color: #526078; }
.vendsight-report-modal tfoot { font-weight: 700; background: #edf3ff; }
@media (max-width: 991.98px) {
    .vendsight-report .shared-table-header-row1 { align-items: stretch !important; }
    .vendsight-report .shared-table-header-toolbar { width: 100%; }
    .vendsight-report .shared-table-header-search { flex: 1; width: auto; }
}
@media (max-width: 767.98px) {
    .vendsight-hero .header-title-section { margin-bottom: 12px; }
    .vendsight-hero .header-search-container, .vendsight-hero .header-search { width: 100%; }
    .vendsight-hero .header-actions { min-width: 0; max-width: 100%; }
    .vendsight-hero .section-pill-group { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 6px; border-radius: 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
    .vendsight-hero .section-pill { flex: 0 0 auto; scroll-snap-align: start; }
    .vendsight-report .shared-table-header-bar { padding: 14px !important; }
    .vendsight-report .shared-table-header-row2 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
    .vendsight-report .shared-table-header-row2 .btn { width: 100%; padding: 8px 6px; font-size: 12px; line-height: 1.35; }
    .vendsight-report .shared-table-header-row2 [id$="summaryBtn"] { grid-column: 1 / -1; }
    .vendsight-report-context { display: block; }
    .vendsight-report-guide summary { min-height: 44px; display: flex; align-items: center; }
    .vendsight-report-modal .modal-dialog { max-width: none; margin: 8px; height: calc(100% - 16px); }
    .vendsight-report-modal .modal-content { max-height: 100%; }
    .vendsight-report-modal .modal-header, .vendsight-report-modal .modal-body { padding: 14px; }
    .vendsight-report-modal .modal-footer { flex-wrap: wrap; }
    .vendsight-report-modal .modal-footer .btn { flex: 1; margin: 0; }
    .vendsight-report .table-responsive, .vendsight-report-drill-table, .vendsight-report-modal .table-responsive { max-height: none; overflow: visible; }
    .vendsight-report table, .vendsight-report-modal table { display: block; min-width: 0 !important; }
    .vendsight-report thead, .vendsight-report-modal thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .vendsight-report :is(tbody, tfoot), .vendsight-report-modal :is(tbody, tfoot) { display: block; }
    .vendsight-report :is(tbody, tfoot) tr, .vendsight-report-modal :is(tbody, tfoot) tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px; border: 1px solid #dce4ef; border-radius: 10px; overflow: hidden; background: #fff; }
    .vendsight-report :is(tbody, tfoot) :is(td, th), .vendsight-report-modal :is(tbody, tfoot) :is(td, th) { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 12px !important; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; position: static; box-shadow: none; border: 0; border-bottom: 1px solid #edf1f6; background: transparent; font-size: 13px; }
    .vendsight-report :is(tbody, tfoot) :is(td, th)::before, .vendsight-report-modal :is(tbody, tfoot) :is(td, th)::before { content: attr(data-label); font-size: 10px; line-height: 1.4; font-weight: 500; color: #62748b; }
    .vendsight-report tbody tr:not(.vs-report-message) > :first-child { display: none; }
    .vendsight-report tbody tr > :nth-child(2), .vendsight-report-modal tbody tr > :nth-child(2) { grid-column: 1 / -1; min-width: 0; background: #f4f7fc; font-size: 15px; }
    .vendsight-report tbody tr > :last-child:has(button) { grid-column: 1 / -1; }
    .vendsight-report tbody tr > :last-child button { width: 100%; min-height: 44px; }
    .vendsight-report .vs-report-message, .vendsight-report-modal .vs-report-message { display: block; }
    .vendsight-report .vs-report-message td, .vendsight-report-modal .vs-report-message td { align-items: center; text-align: center; }
    .vendsight-report-modal table tbody tr > :first-child, .vendsight-report-modal tfoot tr > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .vendsight-container *, .vendsight-report-modal * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.vendsight-report .shared-table-header-search { position: relative; }
.vendsight-report .shared-table-search-input { padding-left: 34px; }
.vendsight-report .shared-table-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #62748b; pointer-events: none; }
@media (max-width: 767.98px) {
    .vendsight-report-modal .vs-report-ranked tbody tr:not(.vs-report-message) > :first-child { display: none; }
    .vendsight-report-modal table:not(.vs-report-ranked) tbody tr > :nth-child(2) { grid-column: auto; background: transparent; font-size: 13px; }
}
.vendsight-report .shared-table-header-toolbar { flex-direction: row !important; align-items: center !important; }
@media (max-width: 767.98px) {
    .vendsight-report tbody tr > :nth-child(2) { max-width: none; width: auto; }
}
.vendsight-report > .row { margin-inline: 0; }
.vendsight-report > .row > .col-lg-12 { padding-inline: 0; min-width: 0; }
.vendsight-report-modal :is(button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.vendsight-report-modal [id$="summaryBody"] h2 { display: none; }
.vendsight-report-modal button { min-height: 44px; }
.vendsight-report-modal .btn-close { width: 44px; height: 44px; box-sizing: border-box; padding: 12px; margin: -6px; }

/* Compact report density; labels remain visible alongside the outcome colors. */
.vendsight-container .vendsight-hero { padding: 14px 18px; margin-bottom: 12px; }
.vendsight-hero .header-title-section { margin-bottom: 10px; gap: 8px; }
.vendsight-hero .header-title-group h3 { font-size: clamp(20px, 1.8vw, 25px); }
.vendsight-hero .header-title-group p { font-size: 13px; }
.vendsight-hero .section-pill-group { padding: 4px; gap: 4px; }
.vendsight-report-context { margin-bottom: 6px; gap: 4px 12px; }
.vendsight-report .shared-table-header-bar { padding: 12px 14px !important; }
.vendsight-report .shared-table-header-title h5 { font-size: 16px; }
.vendsight-report .shared-table-header-row2 { margin-top: 8px; }
.vendsight-report :is(th, td), .vendsight-report-modal :is(th, td) { padding: 8px 10px; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone="success"] { --vs-tone-ink: #166534; --vs-tone-bg: #edf9f0; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone="failed"] { --vs-tone-ink: #a12020; --vs-tone-bg: #fff0f0; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone="pending"] { --vs-tone-ink: #855006; --vs-tone-bg: #fff7df; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone="refund"] { --vs-tone-ink: #6b35a0; --vs-tone-bg: #f5edff; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone="total"] { --vs-tone-ink: #2453a5; --vs-tone-bg: #eef4ff; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone="net"] { --vs-tone-ink: #11645d; --vs-tone-bg: #eaf8f5; }
:is(.vendsight-report, .vendsight-report-modal) [data-tone]:not([data-tone=""]) { color: var(--vs-tone-ink) !important; background: var(--vs-tone-bg) !important; --bs-table-accent-bg: transparent; box-shadow: none; }
@media (max-width: 767.98px) {
    .vendsight-container .vendsight-hero { padding: 12px; }
    .vendsight-report-context { display: flex; align-items: center; }
    .vendsight-report-guide[open] { flex-basis: 100%; }
    .vendsight-report .shared-table-header-bar { padding: 10px !important; }
    .vendsight-report .shared-table-header-row2 { gap: 6px !important; margin-top: 6px; }
    .vendsight-report :is(tbody, tfoot) tr, .vendsight-report-modal :is(tbody, tfoot) tr { margin: 8px; gap: 1px; }
    .vendsight-report :is(tbody, tfoot) :is(td, th), .vendsight-report-modal :is(tbody, tfoot) :is(td, th) { padding: 7px 8px !important; gap: 3px; line-height: 1.3; font-size: 13px; }
    .vendsight-report :is(tbody, tfoot) :is(td, th)::before, .vendsight-report-modal :is(tbody, tfoot) :is(td, th)::before { color: var(--vs-tone-ink, #62748b); font-size: 10px; line-height: 1.3; }
    .vendsight-report tbody tr > :nth-child(2), .vendsight-report-modal .vs-report-ranked tbody tr > :nth-child(2) { font-size: 14px; padding-block: 9px !important; }
    .vendsight-report tbody tr > :last-child:has(button) { padding: 5px 8px !important; }
}
@media (min-width: 360px) and (max-width: 767.98px) {
    .vendsight-report :is(tbody, tfoot) tr, .vendsight-report-modal :is(tbody, tfoot) tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
