﻿/*
    ======================================================================

        REPORT BROWSER

    ======================================================================
*/
.report-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .35rem 0 1.05rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.report-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid var(--bs-border-color);
    border-radius: 13px;
    background: color-mix(in srgb, var(--bs-primary) 8%, var(--bs-body-bg) 92%);
    color: var(--bs-body-color);
}

    .report-page-icon i {
        font-size: 1.7rem;
    }

.report-page-title {
    margin: 0;
    color: var(--bs-body-color);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.report-page-description {
    margin-top: .3rem;
    color: var(--bs-secondary-color);
    font-size: .92rem;
}

.fleet-report-category {
    margin-bottom: .9rem;
    padding: .9rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-primary) 3%);
}

.fleet-report-category-header {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: .75rem;
}

    .fleet-report-category-header span {
        color: var(--bs-info);
        font-size: 1rem;
        font-weight: 850;
        letter-spacing: .025em;
        text-transform: uppercase;
    }

    .fleet-report-category-header small {
        color: var(--bs-secondary-color);
        font-size: .86rem;
    }

    .fleet-report-category-header small {
        color: var(--bs-secondary-color);
        font-size: .8rem;
    }

.fleet-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 360px));
    gap: 1rem;
}

.fleet-report-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 1rem;
    min-height: 175px;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .fleet-report-card:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--bs-primary) 55%, var(--bs-border-color) 45%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }

.fleet-report-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

    .fleet-report-icon i {
        font-size: 1.65rem;
    }

.fleet-report-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fleet-report-title {
    margin-bottom: .4rem;
    color: var(--bs-body-color);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.fleet-report-description {
    flex: 1;
    color: var(--bs-secondary-color);
    font-size: .9rem;
    line-height: 1.42;
}

.fleet-report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid color-mix(in srgb, var(--bs-border-color) 82%, transparent 18%);
}

    .fleet-report-footer .btn {
        padding: .32rem .85rem;
        font-size: .85rem;
        font-weight: 650;
    }

.fleet-report-formats {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

    .fleet-report-formats span {
        padding: .16rem .45rem;
        border: 1px solid var(--bs-border-color);
        border-radius: 5px;
        background: var(--bs-tertiary-bg);
        color: var(--bs-secondary-color);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .025em;
    }

.report-accent-purple {
    background: rgba(142, 83, 239, .17);
    color: #965ef3;
}

.report-accent-blue {
    background: rgba(44, 126, 241, .17);
    color: #3486f4;
}

.report-accent-green {
    background: rgba(41, 183, 86, .17);
    color: #2fc45f;
}

.report-accent-orange {
    background: rgba(241, 139, 24, .17);
    color: #f19020;
}

.report-accent-yellow {
    background: rgba(232, 174, 20, .17);
    color: #d99e00;
}

.report-accent-red {
    background: rgba(224, 65, 82, .17);
    color: #e34858;
}

.report-accent-cyan {
    background: rgba(0, 177, 196, .17);
    color: #00adbf;
}

.report-browser-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 150px;
    padding: 1rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-primary) 3%);
    color: var(--bs-secondary-color);
    font-size: .9rem;
}

[data-bs-theme="dark"] .fleet-report-category {
    background: rgba(8, 28, 45, .42);
    border-color: rgba(119, 159, 190, .19);
}

[data-bs-theme="dark"] .fleet-report-card {
    background: rgba(7, 24, 39, .52);
    border-color: rgba(119, 159, 190, .19);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

    [data-bs-theme="dark"] .fleet-report-card:hover {
        border-color: rgba(53, 147, 246, .62);
        box-shadow: 0 5px 14px rgba(0, 0, 0, .24);
    }

[data-bs-theme="dark"] .fleet-report-formats span {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
    color: #d7e3f2;
}

[data-bs-theme="dark"] .report-page-icon {
    background: rgba(255, 255, 255, .035);
    border-color: rgba(119, 159, 190, .19);
}

@media (max-width: 576px) {
    .report-page-header {
        align-items: flex-start;
    }

    .fleet-report-grid {
        grid-template-columns: 1fr;
    }
}

/*
    ======================================================================

        REPORT FILTERS

    ======================================================================
*/

.report-parameter-page {
    max-width: 1180px;
}

.report-parameter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .35rem 0 1.05rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

    .report-parameter-header h1 {
        margin: 0;
        color: var(--bs-body-color);
        font-size: 1.45rem;
        font-weight: 500;
        line-height: 1.15;
        text-transform: uppercase;
    }

    .report-parameter-header p {
        margin: .3rem 0 0 0;
        color: var(--bs-secondary-color);
        font-size: .92rem;
        line-height: 1.35;
    }

.report-back-button {
    width: 38px;
    height: 38px;
    padding: 0;
    flex: 0 0 38px;
}

.report-parameter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: rgba(142, 83, 239, .17);
    color: #965ef3;
}

    .report-parameter-icon i {
        font-size: 1.55rem;
    }

.report-parameter-card,
.report-output-card {
    margin-bottom: .9rem;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-primary) 3%);
    color: var(--bs-body-color);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
}

.report-parameter-card-header,
.report-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--bs-border-color);
}

    .report-parameter-card-header div,
    .report-output-header div {
        display: flex;
        flex-direction: column;
        gap: .12rem;
    }

    .report-parameter-card-header span,
    .report-output-header span {
        color: var(--bs-body-color);
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .report-parameter-card-header small,
    .report-output-header small {
        color: var(--bs-secondary-color);
        font-size: .8rem;
        line-height: 1.35;
    }

    .report-parameter-card-header > i,
    .report-output-header > i {
        color: var(--bs-info);
        font-size: 1.25rem;
    }

.report-parameter-card .form-label {
    margin-bottom: .32rem;
    color: var(--bs-secondary-color);
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.2;
    text-transform: uppercase;
}

.report-parameter-card ::deep .form-control,
.report-parameter-card ::deep .form-select {
    min-height: 38px;
    font-size: .9rem;
}

.report-output-formats {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.report-output-format {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 280px;
    padding: .85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--bs-body-bg);
}

    .report-output-format > div:last-child {
        display: flex;
        flex-direction: column;
        gap: .12rem;
    }

    .report-output-format strong {
        color: var(--bs-body-color);
        font-size: .95rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .report-output-format span {
        color: var(--bs-secondary-color);
        font-size: .82rem;
        line-height: 1.35;
    }

.report-output-format-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
}

    .report-output-format-icon i {
        font-size: 1.35rem;
    }

.report-format-pdf {
    background: rgba(224, 65, 82, .17);
    color: #e34858;
}

.report-format-excel {
    background: rgba(41, 183, 86, .17);
    color: #2fc45f;
}

.report-parameter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .65rem;
    padding-top: .25rem;
}

    .report-parameter-actions .btn {
        padding: .32rem .85rem;
        font-size: .85rem;
        font-weight: 650;
    }

[data-bs-theme="dark"] .report-parameter-card,
[data-bs-theme="dark"] .report-output-card {
    background: rgba(8, 28, 45, .42);
    border-color: rgba(119, 159, 190, .19);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

[data-bs-theme="dark"] .report-output-format {
    background: rgba(7, 24, 39, .52);
    border-color: rgba(119, 159, 190, .19);
}

@media (max-width: 576px) {
    .report-parameter-header {
        align-items: flex-start;
    }

        .report-parameter-header h1 {
            font-size: 1.35rem;
        }

        .report-parameter-header p {
            font-size: .86rem;
        }

    .report-output-format {
        min-width: 100%;
    }

    .report-parameter-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .report-parameter-actions .btn {
            width: 100%;
        }
}
