.statistics-container > .card > .card-body {
    padding: 12px;
}

.statistics-container .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    border: 1px solid var(--bs-gray-200, #d5d4d8);
    border-left: 4px solid var(--bs-gray-400, #aba8b1);
    border-radius: 8px;
    background-color: #fff;
}

.stat-tile-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6d6777;
}

.stat-tile-value {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #2e263d;
}

.stat-tile-hint {
    font-size: 13px;
    color: #827d8b;
}

.stat-tile-active {
    border-left-color: #00A86B;
}

.stat-tile-expired {
    border-left-color: #DC5643;
}

.stat-tile-inactive {
    border-left-color: #A88500;
}

.stat-tile-abandoned {
    border-left-color: #30528C;
}

.stat-tile-link {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #30528C;
    text-decoration: none;
}

.stat-tile-link:hover {
    text-decoration: underline;
}

.stat-tile-link::after {
    content: " \2192";
}

.stat-inline-link {
    margin-left: 10px;
    font-weight: 600;
    color: #30528C;
    text-decoration: none;
    white-space: nowrap;
}

.stat-inline-link:hover {
    text-decoration: underline;
}

.stat-inline-link::after {
    content: " \2192";
}

.stat-chart-hint {
    margin: 6px 0 0;
    font-size: 12px;
    font-style: italic;
    color: #97939e;
}

.stat-definitions {
    padding: 14px 18px;
    border: 1px solid var(--bs-gray-200, #d5d4d8);
    border-radius: 8px;
    background-color: #fafafa;
}

.stat-definitions p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #6d6777;
}

.stat-definitions p:last-child {
    margin-bottom: 0;
}

.stat-definitions strong {
    color: #2e263d;
}

.stat-chart-title {
    margin-bottom: 4px;
    font-weight: 600;
    color: #2e263d;
}

.stat-chart-note {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #827d8b;
}

.stat-chart {
    position: relative;
    width: 100%;
}

.stat-chart-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.stat-chart-axis {
    height: 50px;
    margin-bottom: 8px;
    border-top: 1px solid var(--bs-gray-200, #d5d4d8);
    padding-top: 2px;
}

.stat-chart-axis canvas {
    height: 48px !important;
}

.stat-filter-field {
    width: auto;
    min-width: 150px;
}

.stat-chart-empty {
    margin: 0;
    padding: 32px 0;
    text-align: center;
    color: #827d8b;
}

.stat-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid var(--bs-gray-200, #d5d4d8);
    border-radius: 8px;
}

.stat-filter .form-check {
    margin-right: 0;
    margin-bottom: 0;
}

.stat-filter-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6d6777;
}

.stat-table {
    margin-top: 10px;
}

.stat-table > summary {
    font-size: 13px;
    color: #6d6777;
    cursor: pointer;
}

.stat-table > summary:hover {
    color: #2e263d;
}

.stat-table .table {
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-table .table-responsive {
    max-height: 320px;
}

.stat-table-link {
    white-space: nowrap;
    font-size: 12px;
    padding: 2px 10px;
}

.stat-table td:last-child,
.stat-table th:last-child {
    text-align: right;
    width: 1%;
}
