.reports-home-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    margin-bottom: 1rem;
}
.reports-home {
    --reports-home-primary: var(--primary, #0f6cbf);
    --reports-home-primary-dark: #0a4f8f;
    --reports-home-primary-soft: #eaf4ff;
    --reports-home-text: #1f2d3d;
    --reports-home-muted: #637083;
    --reports-home-border: #e5edf5;
    --reports-home-surface: #ffffff;
    --reports-home-soft: #f6f9fc;
    --reports-home-shadow: 0 16px 42px rgba(23, 43, 77, .08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.reports-home__hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--reports-home-border);
    border-radius: 1.25rem;
    background: radial-gradient(circle at top right, rgba(15, 108, 191, .16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #eef7ff 100%);
    box-shadow: var(--reports-home-shadow);
    &::after {
        content: "";
        position: absolute;
        right: -4rem;
        bottom: -5rem;
        width: 15rem;
        height: 15rem;
        border-radius: 999px;
        background: rgba(15, 108, 191, .08);
    }
}
.reports-home__hero-content,
.reports-home__stats {
    position: relative;
    z-index: 1;
}
.reports-home__eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: .45rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--reports-home-primary-soft);
    color: var(--reports-home-primary-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.reports-home__title {
    margin: 0;
    color: var(--reports-home-text);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.12;
}
.reports-home__subtitle {
    max-width: 48rem;
    margin: .65rem 0 0;
    color: var(--reports-home-muted);
    font-size: 1rem;
    line-height: 1.55;
}
.reports-home__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(7.5rem, 1fr));
    gap: .75rem;
    min-width: min(20rem, 100%);
}
.reports-home__stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 7rem;
    padding: 1rem;
    border: 1px solid rgba(15, 108, 191, .12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 30px rgba(23, 43, 77, .06);
    backdrop-filter: blur(8px);
    strong {
        color: var(--reports-home-primary-dark);
        font-size: 2rem;
        line-height: 1;
    }
    span {
        margin-top: .35rem;
        color: var(--reports-home-muted);
        font-size: .84rem;
        font-weight: 600;
    }
}
.reports-home__filters {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .85rem;
    border: 1px solid var(--reports-home-border);
    border-radius: 1rem;
    background: var(--reports-home-surface);
    box-shadow: 0 8px 28px rgba(23, 43, 77, .06);
}
.reports-home__chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .58rem .9rem;
    border: 1px solid #d8e3ee;
    border-radius: 999px;
    background: #ffffff;
    color: #44546a;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
    small {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.35rem;
        height: 1.35rem;
        padding: 0 .4rem;
        border-radius: 999px;
        background: #eef3f8;
        color: #5c6b7d;
        font-size: .72rem;
        font-weight: 800;
    }
    &:hover,
    &:focus {
        border-color: rgba(15, 108, 191, .35);
        color: var(--reports-home-primary-dark);
        box-shadow: 0 8px 22px rgba(15, 108, 191, .12);
        transform: translateY(-1px);
    }
    &.is-active,
    &[aria-pressed="true"] {
        border-color: var(--reports-home-primary);
        background: var(--reports-home-primary);
        color: #ffffff;
    }
    &.is-active small,
    &[aria-pressed="true"] small {
        background: rgba(255, 255, 255, .22);
        color: #ffffff;
    }
}
.reports-home__groups {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.reports-home__group {
    padding: 1.15rem;
    border: 1px solid var(--reports-home-border);
    border-radius: 1.25rem;
    background: var(--reports-home-surface);
    box-shadow: 0 12px 36px rgba(23, 43, 77, .06);
    &.hidden-group {
        display: none;
    }
}
.reports-home__group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.reports-home__group-heading {
    min-width: 0;
}
.reports-home__group-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: var(--reports-home-text);
    font-size: 1.25rem;
    font-weight: 800;
    &::before {
        content: "";
        width: .55rem;
        height: 1.65rem;
        border-radius: 999px;
        background: var(--reports-home-primary);
        box-shadow: 0 0 0 .25rem rgba(15, 108, 191, .11);
    }
}
.reports-home__group-description {
    max-width: 52rem;
    margin: .45rem 0 0 1.1rem;
    color: var(--reports-home-muted);
    line-height: 1.5;
}
.reports-home__group-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}
.reports-home__move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #d8e3ee;
    border-radius: .65rem;
    background: #ffffff;
    cursor: pointer;
    img,
    svg {
        width: 1rem;
        height: 1rem;
    }
    &.is-hidden {
        display: none;
    }
}
.reports-home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}
.reports-home__card {
    min-height: 100%;
    &-link {
        display: flex;
        flex-direction: column;
        min-height: 10rem;
        height: 100%;
        padding: 1rem;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--reports-home-border);
        border-radius: 1.05rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(249, 252, 255, .98) 100%);
        color: inherit;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(23, 43, 77, .05);
        transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
        &::after {
            content: "";
            position: absolute;
            inset: auto -2rem -2.8rem auto;
            width: 8rem;
            height: 8rem;
            border-radius: 999px;
            background: rgba(15, 108, 191, .07);
            transition: transform .16s ease;
        }
        &:hover,
        &:focus {
            border-color: rgba(15, 108, 191, .32);
            color: inherit;
            text-decoration: none;
            box-shadow: 0 18px 42px rgba(23, 43, 77, .11);
            transform: translateY(-3px);
            &::after {
                transform: scale(1.12);
            }
        }
    }
    &-content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        position: relative;
        z-index: 1;
    }
    &-title {
        color: var(--reports-home-text);
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1.3;
    }
    &-desc {
        display: -webkit-box;
        margin-top: .45rem;
        overflow: hidden;
        color: var(--reports-home-muted);
        font-size: .92rem;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    &-owner {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        width: fit-content;
        margin-top: .8rem;
        padding: .3rem .55rem;
        border-radius: 999px;
        background: var(--reports-home-soft);
        color: #556579;
        font-size: .78rem;
        font-weight: 700;
        img,
        svg {
            width: .9rem;
            height: .9rem;
        }
    }
    &-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin-top: 1rem;
        padding: .55rem .8rem;
        position: relative;
        z-index: 1;
        border-radius: .75rem;
        background: var(--reports-home-primary);
        color: #ffffff;
        font-size: .86rem;
        font-weight: 800;
    }
}
.reports-home__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 12rem;
    padding: 2rem;
    border: 1px dashed #cbd8e5;
    border-radius: 1rem;
    background: #fbfdff;
    color: var(--reports-home-muted);
    text-align: center;
    strong {
        color: var(--reports-home-text);
        font-size: 1.1rem;
    }
    &--small {
        min-height: 5rem;
        padding: 1.25rem;
    }
}
@media (max-width: 900px) {
    .reports-home__hero,
    .reports-home__group-header {
        flex-direction: column;
    }
    .reports-home__stats {
        width: 100%;
    }
    .reports-home__group-actions {
        justify-content: flex-start;
    }
}
@media (max-width: 576px) {
    .reports-home__hero,
    .reports-home__group {
        padding: 1rem;
        border-radius: 1rem;
    }
    .reports-home__stats {
        grid-template-columns: 1fr;
    }
    .reports-home__filters {
        padding: .65rem;
    }
    .reports-home__chip {
        width: 100%;
        justify-content: space-between;
    }
}
.preview-block {
    .col-lg-3,
    .col-lg-4 {
        .chart-box-table {
            .buttons-print,
            .buttons-html5 {
                display: none !important;
            }
        }
    }
    .table-responsive {
        margin: 0 -16px;
    }
}