/*
 * gb-report-skin.css - the report-page skin, lifted out of three identical <style> blocks.
 *
 * Prices/PricesReports, Products/ProductsReports and Inventories/InventoriesReports each
 * carried their own copy: 311, 311 and 263 lines. Normalising the one thing that differed -
 * the container class name - shows 39 rules identical in all three, 7 more shared by two, and
 * zero conflicts. 885 lines of duplication, one skin.
 *
 * SCOPED UNDER .gb-report-skin, AND THAT IS NOT COSMETIC. The selectors here are bare class
 * names - .section-header, .clear-btn, .modern-btn, .filter-accordion - that were only ever
 * global while a report page happened to be rendered. In a stylesheet they would be global
 * always, and .section-header is also used by Profile/ProfileUser.razor, workflow.css and
 * FullCalendar's bundle, while .clear-btn is used by Pages/CRM/CrmActivities.razor. Those
 * pages would have been restyled. So each report page's container gains the .gb-report-skin
 * class and every rule is prefixed with it.
 *
 * On every one of the three pages the container wraps the entire markup - verified by matching
 * the div depth from the container to the @code block - so nothing the rules used to reach
 * falls outside the new scope.
 *
 * Finance/FinRpt.razor is a FOURTH copy of this skin and is NOT touched here: it belongs to
 * another module. When that module is migrated it only needs the class on its container.
 */

/* Professional Price Report Design */

/* Main Container - Clean neutral background */
.gb-report-skin {
    background: #f5f7fa !important;
    min-height: 100vh;
    padding: 2rem 2rem 4rem 2rem;
}

/* Card Styling - Clean white cards with subtle shadow */
.gb-report-skin .report-section-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    margin-bottom: 1.5rem;
    overflow: visible !important;
}

.gb-report-skin .report-section-card .card-body {
    padding: 2rem !important;
}

/* Section Headers - Professional colored headers */
.gb-report-skin .section-header {
    padding: 1.25rem 1.5rem !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: -0.5rem -0.5rem 0 -0.5rem;
}

.gb-report-skin .section-header i {
    font-size: 1.4rem;
    opacity: 0.95;
}

/* Professional color variants */
.gb-report-skin .gradient-warning {
    background: #5a6268 !important;
}

.gb-report-skin .gradient-primary {
    background: #2b6cb0 !important;
}

.gb-report-skin .gradient-info {
    background: #2f7d5f !important;
}

/* Modern List Items */
.gb-report-skin .modern-list {
    list-style: none !important;
    padding: 1rem !important;
    margin: 0 !important;
}

.gb-report-skin .modern-list li {
    padding: 0.95rem 1.25rem !important;
    margin-bottom: 0.5rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
}

.gb-report-skin .modern-list li:hover {
    background: #e9ecef !important;
    border-left-color: #007bff !important;
    transform: translateX(5px) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
}

/* Enhanced Accordion */
.gb-report-skin .filter-accordion .accordion-button {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
    padding: 1.25rem 1.5rem !important;
    border: 2px solid #e2e8f0 !important;
}

.gb-report-skin .filter-accordion .accordion-button:not(.collapsed) {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.gb-report-skin .filter-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.gb-report-skin .filter-accordion .accordion-body {
    padding: 2rem 1.5rem !important;
    background: white !important;
}

/* Clean Input Groups */
.gb-report-skin .modern-input-group {
    margin-bottom: 1.25rem !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

.gb-report-skin .modern-input-group .input-group-text {
    background: #f8f9fa !important;
    border: 1px solid #cbd5e0 !important;
    color: #2d3748 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

.gb-report-skin .modern-input-group .input-group-text i {
    color: #007bff !important;
}

.gb-report-skin .modern-input-group .form-control,
.gb-report-skin .modern-input-group .form-select {
    border: 1px solid #cbd5e0 !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem !important;
}

.gb-report-skin .modern-input-group .form-control:focus,
.gb-report-skin .modern-input-group .form-select:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15) !important;
}

/* Period Section */
.gb-report-skin .period-section {
    background: white !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 1.5rem !important;
}

.gb-report-skin .period-section h2 {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.45rem !important;
    margin-bottom: 1.75rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #007bff !important;
}

.gb-report-skin .period-section h2 i {
    color: #007bff !important;
}

/* Professional Buttons - Optimized Colors */
.gb-report-skin .modern-btn {
    padding: 0.65rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.gb-report-skin .modern-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.gb-report-skin .modern-btn-primary {
    background: #0056b3 !important;
    color: white !important;
    border-color: #0056b3 !important;
}

.gb-report-skin .modern-btn-primary:hover {
    background: #004494 !important;
    border-color: #004494 !important;
}

.gb-report-skin .modern-btn-danger {
    background: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
}

.gb-report-skin .modern-btn-danger:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

.gb-report-skin .modern-btn-warning {
    background: #f39c12 !important;
    color: white !important;
    border-color: #f39c12 !important;
}

.gb-report-skin .modern-btn-warning:hover {
    background: #e67e22 !important;
    border-color: #e67e22 !important;
}

.gb-report-skin .modern-btn-info {
    background: #00b4d8 !important;
    color: white !important;
    border-color: #00b4d8 !important;
}

.gb-report-skin .modern-btn-info:hover {
    background: #0096c7 !important;
    border-color: #0096c7 !important;
}

.gb-report-skin .modern-btn-secondary {
    background: #5a6268 !important;
    color: white !important;
    border-color: #5a6268 !important;
}

.gb-report-skin .modern-btn-secondary:hover {
    background: #484e53 !important;
    border-color: #484e53 !important;
}

/* Action Buttons Section */
.gb-report-skin .action-buttons-section {
    background: white !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
}

/* Radio Groups */
.gb-report-skin .modern-radio-group {
    display: inline-flex !important;
    gap: 1.5rem !important;
    padding: 0.75rem 1.25rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    flex-wrap: wrap !important;
}

.gb-report-skin .modern-radio-group .form-check-input {
    width: 1.15rem !important;
    height: 1.15rem !important;
    margin-left: 0.5rem !important;
    cursor: pointer !important;
}

.gb-report-skin .modern-radio-group .form-check-input:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.gb-report-skin .modern-radio-group .form-check-label {
    font-weight: 600 !important;
    color: #2d3748 !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
}

/* Clear Button */
.gb-report-skin .clear-btn {
    background: transparent !important;
    border: none !important;
    padding: 0.35rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.gb-report-skin .clear-btn:hover {
    background: #e9ecef !important;
    border-radius: 6px !important;
}

.gb-report-skin .clear-btn i {
    color: #e53e3e !important;
    font-size: 1.3rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gb-report-skin {
        padding: 1rem !important;
    }

    .gb-report-skin .section-header {
        font-size: 1rem !important;
        padding: 1rem !important;
    }

    .gb-report-skin .modern-btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .gb-report-skin .period-section h2 {
        font-size: 1.25rem !important;
    }
}
