/* Переопределение всех синих цветов Bootstrap на зеленые */
body {
    font-size: 0.8rem !important;
}

a:not(.btn) {
    color: #111827;
    text-decoration: none;
}

a:not(.btn):hover {
    color: #4dad33 !important;
}

a:not(.btn):focus {
    color: #4dad33 !important;
}


.bg-light {
    background-color: #ebeced !important;
}

.bg-dark {
    background: rgb(108, 117, 125) !important;
    color: var(--crm-text-white);
}

.navbar {
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow)
}

.navbar .btn {
    height: 38px;
    border-radius: 10px
}

.navbar .form-control {
    height: 38px
}

.nav-link {
    font-size: 16px !important;
}

.nav-link:active,
.nav-link:focus {
    color: #0d6efd;
}

.nav-link.active {
    color: #0d6efd;
}

.card {
    border-radius: 10px;
    border: 0;
    margin-bottom: 16px;
    background: #ebeced;
    color: var(--crm-text);
    box-shadow: none;
    padding: 12px 0px;
}

.card .card-header {
    padding: 0px 12px;
    border-bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.btn {
    padding: .34rem 1.25rem;
    font-size: 15px;
    border-radius: 10px;
}

.btn-sm {
    padding: .15rem .5rem;
    font-size: 14px;
}

.btn-primary {
    background-color: #4dad33;
    border-color: #4dad33;
}

.btn-primary:hover {
    background-color: #388027;
    border-color: #388027;
}

.btn-primary:active,
.btn-primary:focus {
    color: #fff;
    background-color: #3a8426 !important;
    border-color: #3a8426 !important;
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25) !important;
}

.btn-outline-primary {
    color: #4dad33;
    border-color: #4dad33;
}

.btn-outline-primary:hover {
    background-color: #4dad33;
    border-color: #4dad33;
    color: #fff;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #388027;
    border-color: #388027;
    color: #fff;
}

.btn-link {
    color: #4dad33;
}

.btn-link:hover {
    color: #388027;
}

.btn-link:focus {
    color: #388027;
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show {
    background-color: #4dad33;
    border-color: #4dad33;
    color: #fff;
}

.btn-check:focus+.btn,
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.form-control {
    border-radius: 10px;
    border: 1px solid var(--crm-border);
    background: #fff
}

.form-control:focus {
    border-color: #a5d6a7;
    box-shadow: 0 0 0 4px rgba(77, 173, 51, .15)
}

.form-select:focus {
    border-color: #a5d6a7;
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.form-check-input:checked {
    background-color: #4dad33;
    border-color: #4dad33;
}

.form-check-input:focus {
    border-color: #a5d6a7;
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.dropdown-menu {
    border-color: #dee2e6;
}

.dropdown-item {
    color: #111827;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #495057;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #6c757d !important;
    color: #fff !important;
}

.pagination .page-link {
    color: #4dad33;
    border-color: #a5d6a7;
}

.pagination .page-link:hover {
    background-color: #e8f5e9;
    border-color: #4dad33;
    color: #388027;
}

.pagination .page-item.active .page-link {
    background-color: #4dad33;
    border-color: #4dad33;
    color: #fff;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.list-group-item-action:focus {
    background-color: #e8f5e9;
    color: #388027;
}

.list-group-item-action:hover {
    background-color: #e8f5e9;
    color: #388027;
}

.list-group-item.active {
    background-color: #4dad33;
    border-color: #4dad33;
}

.alert-primary {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
    color: #388027;
}

.badge.bg-primary {
    background-color: #4dad33 !important;
}

.text-primary {
    color: #4dad33 !important;
}

.border-primary {
    border-color: #4dad33 !important;
}

.bg-primary {
    background-color: #4dad33 !important;
}

.progress-bar {
    background-color: #4dad33;
}

.table-primary,
.table-primary>th,
.table-primary>td {
    background-color: #e8f5e9;
}

.table-primary th,
.table-primary td,
.table-primary thead th,
.table-primary tbody+tbody {
    border-color: #a5d6a7;
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(77, 173, 51, 0.25);
}

.table-responsive .table>thead>tr>th,
.table-responsive table>thead>tr>th,
.table-responsive table thead th,
.table-responsive table thead td,
.table-responsive table thead tr {
    color: #949aa0;
    font-weight: normal;
    font-size: 12px;
    padding: 12px 0px;
}

.tab-content {
    border: 1px solid #e1e1e1;
    border-top: 0;
}

.table> :not(:first-child) {
    border-top: 1px solid #dee2e6 !important;
}

.form-control,
.select2-container--bootstrap-5 .select2-selection {
    font-size: 0.85rem !important;
}

.table-dark th {
    border-bottom: none !important;
}