.hr-report {
    display: grid;
    gap: 1.25rem;
}

.hr-report-filter {
    border: 1px solid rgba(1, 63, 82, 0.12) !important;
    border-radius: 1rem !important;
    background: linear-gradient(135deg, rgba(248, 251, 252, 0.96), rgba(63, 216, 230, 0.035)) !important;
    box-shadow: 0 10px 26px rgba(1, 63, 82, 0.035);
}

.dark .hr-report-filter {
    border-color: rgba(63, 216, 230, 0.13) !important;
    background: linear-gradient(135deg, rgba(5, 35, 47, 0.96), rgba(5, 116, 163, 0.08)) !important;
}

.hr-report-hero {
    position: relative;
    display: flex;
    min-height: 10.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(63, 216, 230, 0.2);
    border-radius: 1.15rem;
    color: #f8fbfc;
    background:
        radial-gradient(circle at 82% 12%, rgba(63, 216, 230, 0.26), transparent 28%),
        linear-gradient(112deg, #013f52, #04556a 68%, #0574a3);
    box-shadow: 0 16px 38px rgba(1, 63, 82, 0.14);
    isolation: isolate;
}

.hr-report-hero::after {
    position: absolute;
    z-index: -1;
    inset-inline-end: 2.5rem;
    inset-block-start: -4rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(248, 251, 252, 0.18);
    border-radius: 35% 65% 57% 43%;
    box-shadow: 0 0 0 1.4rem rgba(248, 251, 252, 0.035), 0 0 0 2.8rem rgba(248, 251, 252, 0.025);
    content: '';
    transform: rotate(-26deg);
}

.hr-report-hero__copy {
    position: relative;
    z-index: 1;
}

.hr-report-hero__eyebrow {
    margin: 0 0 0.45rem;
    color: #a5f3df;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hr-report-hero h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hr-report-hero p:last-child {
    max-width: 42rem;
    margin: 0.45rem 0 0;
    color: rgba(248, 251, 252, 0.78);
    font-size: 0.9rem;
}

.hr-report-hero__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 3.6rem;
    height: 3.6rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(248, 251, 252, 0.28);
    border-radius: 1.15rem;
    background: rgba(248, 251, 252, 0.12);
    color: #a5f3df;
    box-shadow: 0 0 32px rgba(63, 216, 230, 0.16);
    backdrop-filter: blur(8px);
}

.hr-report-hero__icon svg {
    width: 1.75rem;
    height: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(63, 216, 230, 0.45));
}

.hr-report-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.hr-report-kpis--inset {
    padding: 1rem;
}

.hr-report-kpi {
    position: relative;
    display: flex;
    min-height: 8.1rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid rgba(1, 63, 82, 0.1);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 9px 24px rgba(1, 63, 82, 0.045);
}

.hr-report-kpi::before {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ccb85, #3fd8e6, #0574a3);
    content: '';
}

.dark .hr-report-kpi {
    border-color: rgba(63, 216, 230, 0.12);
    background: #0b2734;
}

.hr-report-kpi__label {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.dark .hr-report-kpi__label {
    color: #a7c0c9;
}

.hr-report-kpi__value {
    display: block;
    margin-block-start: 0.55rem;
    color: #013f52;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.dark .hr-report-kpi__value {
    color: #e3f5f7;
}

.hr-report-kpi__icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.85rem;
    background: rgba(63, 216, 230, 0.13);
    color: #0574a3;
}

.hr-report-kpi__icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.dark .hr-report-kpi__icon {
    background: rgba(63, 216, 230, 0.12);
    color: #6fe4e8;
}

.hr-report-panel {
    overflow: hidden;
    border: 1px solid rgba(1, 63, 82, 0.1);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(1, 63, 82, 0.04);
}

.dark .hr-report-panel {
    border-color: rgba(63, 216, 230, 0.12);
    background: #0b2734;
}

.hr-report-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-block-end: 1px solid rgba(1, 63, 82, 0.09);
    color: #013f52;
    font-size: 0.98rem;
    font-weight: 700;
}

.dark .hr-report-panel__heading {
    border-color: rgba(63, 216, 230, 0.11);
    color: #e3f5f7;
}

.hr-report-table-wrap {
    overflow-x: auto;
}

.hr-report-table {
    width: 100%;
    min-width: 48rem;
    border-collapse: collapse;
    text-align: start;
}

.hr-report-table th,
.hr-report-table td {
    padding: 0.82rem 1rem;
    border-block-end: 1px solid rgba(1, 63, 82, 0.075);
    text-align: start;
    white-space: nowrap;
}

.hr-report-table th {
    background: #f5fafb;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.hr-report-table td {
    color: #193b48;
    font-size: 0.86rem;
}

.dark .hr-report-table th {
    background: #0c303e;
    color: #a7c0c9;
}

.dark .hr-report-table td {
    border-color: rgba(63, 216, 230, 0.08);
    color: #d4e6ea;
}

.hr-report-table tbody tr:hover {
    background: rgba(63, 216, 230, 0.055);
}

.hr-report-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(76, 203, 133, 0.26);
    border-radius: 999px;
    background: rgba(76, 203, 133, 0.11);
    color: #087545;
    font-size: 0.75rem;
    font-weight: 700;
}

.dark .hr-report-pill {
    color: #8ce8b3;
}

.hr-report-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.hr-report-empty__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    place-items: center;
    border-radius: 1rem;
    background: rgba(63, 216, 230, 0.12);
    color: #0574a3;
}

.hr-report-empty__icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.hr-report-empty h3 {
    margin: 0;
    color: #013f52;
    font-size: 1rem;
    font-weight: 700;
}

.hr-report-empty p {
    max-width: 35rem;
    margin: 0.45rem auto 0;
    color: #64748b;
    font-size: 0.86rem;
}

.dark .hr-report-empty h3 {
    color: #e3f5f7;
}

.dark .hr-report-empty p {
    color: #a7c0c9;
}

@media (min-width: 900px) {
    .hr-report-kpi {
        animation: hr-report-rise 500ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    .hr-report-kpi:nth-child(2) { animation-delay: 45ms; }
    .hr-report-kpi:nth-child(3) { animation-delay: 90ms; }
    .hr-report-kpi:nth-child(4) { animation-delay: 135ms; }
}

@keyframes hr-report-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
    .hr-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .hr-report-hero { min-height: 8rem; }
    .hr-report-hero__icon { width: 2.9rem; height: 2.9rem; }
    .hr-report-kpis { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .hr-report-kpi { min-height: 7rem; padding: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hr-report-kpi { animation: none !important; }
}
