
/* 
   Bootstrap 5.3.3 Custom Theme 
   Retro-Compatible with v4.6
*/

:root {
    --bs-primary: #007bff !important;
    --bs-primary-rgb: 0, 123, 255 !important;
    --bs-success: #28a745 !important;
    --bs-success-rgb: 40, 167, 69 !important;
    --bs-info: #17a2b8 !important;
    --bs-info-rgb: 23, 162, 184 !important;
    --bs-danger: #dc3545 !important;
    --bs-danger-rgb: 220, 53, 69 !important;
    --bs-warning: #ffc107 !important;
    --bs-warning-rgb: 255, 193, 7 !important;
    --bs-dark: #343a40 !important;
    --bs-dark-rgb: 52, 58, 64 !important;
    --bs-secondary: #6c757d !important;
    --bs-secondary-rgb: 108, 117, 125 !important;

    --bs-border-radius: 4px !important;
    --bs-border-radius-sm: calc(4px * 0.8) !important;
    --bs-border-radius-lg: calc(4px * 1.5) !important;

    --bs-body-font-size: 16px !important;
    --bs-body-line-height: 1.5 !important;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    --bs-border-color: #dee2e6 !important;
}

/* Сетка */
@media (min-width: 1400px) {
    .container, .container-xxl { max-width: 1320px !important; }
}

/* Базовые элементы */
body { -webkit-font-smoothing: antialiased; text-align: left; }
a { text-decoration: none !important; }
a:hover { text-decoration: underline !important; }
small, .small { font-size: 80% !important; }

/* Компактные формы и кнопки */
.btn-sm, .form-control-sm, .form-select-sm, .input-group-sm > .form-control {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: var(--bs-border-radius-sm) !important;
}

/* Фикс кнопок */
.btn { border-radius: var(--bs-border-radius); }
.btn-success { background-color: var(--bs-success) !important; border-color: var(--bs-success) !important; }
.btn-info    { background-color: var(--bs-info) !important; border-color: var(--bs-info) !important; color: #fff !important; }
.btn-danger  { background-color: var(--bs-danger) !important; border-color: var(--bs-danger) !important; }

/* Таблицы без синевы */
.table-light { --bs-table-bg: #f8f9fa !important; color: #212529 !important; }
.table-dark  { --bs-table-bg: var(--bs-dark) !important; color: #fff !important; }

/* Алерты как в v4 */
.alert { border-radius: var(--bs-border-radius); }
.alert-success { background-color: #d4edda !important; border-color: #c3e6cb !important; color: #155724 !important; }
.alert-danger  { background-color: #f8d7da !important; border-color: #f5c6cb !important; color: #721c24 !important; }
.alert-info    { background-color: #d1ecf1 !important; border-color: #bee5eb !important; color: #0c5460 !important; }

.text-muted { color: var(--bs-secondary) !important; }
        