.statistik-section {
    padding: 2rem 0 4rem;
}

.statistik-layout {
    align-items: stretch;
}

.statistik-sidebar-card,
.statistik-content-card {
    border-radius: 10px;
}

.statistik-tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.statistik-tabs {
    gap: 0.1rem;
}

.statistik-tabs .nav-link {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    border: 0;
    background: transparent;
    color: var(--front-deep);
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.statistik-tabs .nav-link:hover {
    background: rgba(31, 162, 166, 0.06);
    color: var(--front-deep);
}

.statistik-tabs .nav-link.active {
    background: var(--front-primary);
    color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(31, 162, 166, 0.2);
}

.statistik-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.statistik-year-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.statistik-year-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--front-muted);
    font-weight: 700;
}

.statistik-year-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.statistik-year-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid rgba(31, 162, 166, 0.16);
    background: rgba(31, 162, 166, 0.06);
    color: var(--front-deep);
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.statistik-year-tabs .nav-link:hover {
    background: rgba(31, 162, 166, 0.12);
    border-color: rgba(31, 162, 166, 0.24);
    color: var(--front-primary);
}

.statistik-year-tabs .nav-link.active {
    background: var(--front-primary);
    border-color: var(--front-primary);
    color: #fff;
}

.statistik-search-note {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(31, 162, 166, 0.08);
    color: var(--front-deep);
    font-size: 0.95rem;
}

.statistik-search-note strong {
    color: var(--front-primary);
}

.statistik-table {
    margin-bottom: 0;
}

.statistik-table thead th {
    padding: 0.95rem 0.9rem;
    border-bottom: 1px solid rgba(31, 162, 166, 0.14);
    color: var(--front-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

.statistik-table tbody td {
    padding: 1rem 0.9rem;
    border-color: rgba(15, 23, 42, 0.08);
    vertical-align: middle;
    color: var(--front-deep);
}

.statistik-table tbody tr:last-child td {
    border-bottom: 0;
}

.statistik-table tbody tr:hover td {
    background: rgba(31, 162, 166, 0.04);
}

.statistik-empty {
    padding: 1.5rem 0 3rem;
}

.statistik-empty-card {
    background: var(--front-card);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--front-shadow);
}

.statistik-empty-card h5 {
    margin-bottom: 0.5rem;
    color: var(--front-deep);
}

.statistik-empty-card p {
    margin: 0;
    color: var(--front-muted);
}

.statistik-content-card .dataTables_wrapper .dataTables_processing {
    background: transparent;
    border: 0;
    color: var(--front-primary);
    box-shadow: none;
}

.statistik-content-card .dataTables_wrapper .pagination {
    gap: 0.4rem;
}

.statistik-content-card .dataTables_wrapper .page-link {
    border-radius: 999px;
    border: 1px solid rgba(31, 162, 166, 0.18);
    color: var(--front-deep);
    padding: 0.45rem 0.85rem;
}

.statistik-content-card .dataTables_wrapper .page-item.active .page-link {
    background: var(--front-primary);
    border-color: var(--front-primary);
    color: #fff;
}

.statistik-content-card .dataTables_wrapper .page-item.disabled .page-link {
    opacity: 0.5;
}

html[data-bs-theme='dark'] .statistik-tabs .nav-link {
    background: transparent;
    color: #d7e3f0;
}

html[data-bs-theme='dark'] .statistik-tabs .nav-link:hover {
    background: rgba(31, 162, 166, 0.08);
    color: #d7e3f0;
}

html[data-bs-theme='dark'] .statistik-tabs .nav-link.active {
    background: var(--front-primary);
    color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(31, 162, 166, 0.24);
}

html[data-bs-theme='dark'] .statistik-year-label {
    color: #9fb1c7;
}

html[data-bs-theme='dark'] .statistik-year-tabs .nav-link {
    background: rgba(18, 26, 36, 0.9);
    border-color: rgba(31, 162, 166, 0.2);
    color: #d7e3f0;
}

html[data-bs-theme='dark'] .statistik-year-tabs .nav-link:hover {
    background: rgba(31, 162, 166, 0.18);
    border-color: rgba(31, 162, 166, 0.34);
    color: #a7f3f3;
}

html[data-bs-theme='dark'] .statistik-year-tabs .nav-link.active {
    background: var(--front-primary);
    border-color: var(--front-primary);
    color: #fff;
}

html[data-bs-theme='dark'] .statistik-search-note {
    background: rgba(31, 162, 166, 0.14);
    color: #d7e3f0;
}

html[data-bs-theme='dark'] .statistik-search-note strong {
    color: #a7f3f3;
}

html[data-bs-theme='dark'] .statistik-table thead th {
    border-bottom-color: rgba(148, 163, 184, 0.18);
    color: #9fb1c7;
}

html[data-bs-theme='dark'] .statistik-table tbody td {
    border-color: rgba(148, 163, 184, 0.12);
    color: #e6eef5;
}

html[data-bs-theme='dark'] .statistik-table tbody tr:hover td {
    background: rgba(31, 162, 166, 0.08);
}

html[data-bs-theme='dark'] .statistik-empty-card {
    background: rgba(18, 26, 36, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme='dark'] .statistik-empty-card h5 {
    color: #e6eef5;
}

html[data-bs-theme='dark'] .statistik-empty-card p {
    color: #9fb1c7;
}

html[data-bs-theme='dark'] .statistik-content-card .dataTables_wrapper .page-link {
    background: rgba(18, 26, 36, 0.88);
    border-color: rgba(31, 162, 166, 0.22);
    color: #d7e3f0;
}

html[data-bs-theme='dark'] .statistik-content-card .dataTables_wrapper .page-item.active .page-link {
    background: var(--front-primary);
    border-color: var(--front-primary);
    color: #fff;
}

html[data-bs-theme='dark'] .statistik-content-card .dataTables_wrapper .page-item.disabled .page-link {
    background: rgba(18, 26, 36, 0.7);
}

@media (max-width: 991.98px) {
    .statistik-tabs .nav-link {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .statistik-content {
        gap: 1rem;
    }

    .statistik-year-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .statistik-table thead th,
    .statistik-table tbody td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
