body {
    background-color: #f4f6f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
}

.container,
.container-fluid {
    padding: 20px 24px;
}
.dashboard-filters {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dashboard-filters .form-control,
.dashboard-filters select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
}

.dashboard-filters .btn-primary {
    background: #2563eb;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}
.metric-box__title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.metric-box__value {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dashboard-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dashboard-table th {
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}
.chart-wrapper {
    position: relative;
    height: 280px;
}

.chart-wrapper canvas {
    max-height: 280px;
}
.chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}
.text-muted {
    color: #6b7280;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    background: #e5e7eb;
    color: #374151;
}
.dashboard-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters-row select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.dashboard-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* сам спиннер */
.page-loader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #dfe6f1;
    border-top-color: #4f83ff;
    border-radius: 50%;
    animation: page-loader-spin 0.9s linear infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}


