:root {
    --bs-primary: #7ee685;
    --bs-primary-rgb: 126, 230, 133;
    --bs-primary-text: #2f7f33;
    --bs-link-color: #39b34a;
    --bs-link-color-rgb: 57, 179, 74;
    --bs-link-hover-color: #2f7f33;
    --bs-link-hover-color-rgb: 47, 127, 51;
}


body {
    background: #f4f4f4;
    /*transform:scale(0.55);*/
/*    zoom:0.55*/

    padding:0 12.5vw;
    min-width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 12px;
}

.container-fluid{
    min-width: 100%;
    /*max-width: 100%;*/
}

.navbar-nav .dropdown-menu {
    zoom: 0.8;
}

#accordionExample{
    zoom: 0.8;
}

.accordion-body {
    font-size: 16px;
}


.btn {
    --bs-btn-font-size: 1em;
    font-size: 12px;
}

.table .btn {
    --bs-btn-padding-x: 0.75em;
    --bs-btn-padding-y: 0.375em;
}

.table tr{
    height: 2.25rem;
}

.table>:not(caption)>*>* {
    padding: 0.25em 0.5em;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

.table-no-hover tbody tr:hover {
    background-color: inherit;
}

table th,
table td {
    vertical-align: middle;
}

.table tbody.calling td {
    vertical-align: middle;
}

.form-control {
    padding: 0.45em 0.5em;
    font-size: 12px;
}

.page-link{
    font-size: 12px;
}

h1{
    font-size: 2.5em;
}

h4{
    font-size: 1.5em;
}

.preloader_bg {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, 0.1);
    left: 0;
    top: 0;
    z-index: 999;
}

.preloader {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 10vw;
    left: 45vw;
    top: 30vh;
}

.btn-primary {
    background-color: #7ee685;
    border: 1px solid #7ee685;
    --bs-btn-bg: #7ee685;
    --bs-btn-border-color: #7ee685;
    --bs-btn-hover-bg: #39b34a;
    --bs-btn-hover-border-color: #39b34a;
    --bs-btn-active-bg: #39b34a;
    --bs-btn-active-border-color: #39b34a;
    --bs-btn-disabled-bg: #7ee685;
    --bs-btn-disabled-border-color: #7ee685;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: #39b34a;
    border-color: #39b34a;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(126, 230, 133, 0.25);
}

nav a {
    color: #39b34a;
}

tbody .nav-link {
    color: #39b34a;
}

.btn-outline-primary {
    color: #39b34a;
    border-color: #39b34a;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    color: #fff;
    background-color: #39b34a;
    border-color: #39b34a;
}

.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(57, 179, 74, 0.25);
}

.form-control:focus,
.form-select:focus {
    border-color: #39b34a;
    box-shadow: 0 0 0 0.2rem rgba(57, 179, 74, 0.25);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(57, 179, 74, 0.25);
}

.form-check-input:focus {
    border-color: #39b34a;
    box-shadow: 0 0 0 0.2rem rgba(57, 179, 74, 0.25);
}

input[type="checkbox"],
.form-check-input {
    accent-color: #39b34a;
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:checked {
    background-color: #39b34a !important;
    border-color: #39b34a !important;
    box-shadow: 0 0 0 0.2rem rgba(57, 179, 74, 0.25);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
    background-color: #7ee685;
    color: #000;
}

/* Зелёный датапикер */
.daterangepicker td.in-range {
    background-color: #e5f9ea;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #39b34a;
    border-color: transparent;
    color: #fff;
}

.daterangepicker .ranges li.active {
    background-color: #39b34a;
    color: #fff;
}

.navbar-collapse.collapse.show .d-flex {
    flex-direction: column;
}

.navbar {
    border-radius: 10px;
    background: #7ee685 !important;
}


.page-link {
    border: none;
    color: #000000 !important;
}

.page-link.active {
    background: #f4f4f4;
    border-color: #c7c7c7;
}

.btn-grey {
    background: #c7c7c7;
    border-color: #c7c7c7;
}

.login-container {
    max-width: 600px;
    margin-top: 10vh;

    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    zoom:1.25;
}

.login-container h2 {
    width: 100%;
    text-align: center;
}

.breadcrumb-item a {
    text-decoration: none;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}

.container-fluid:not(.header) {
    background: #ffffff;
    padding: 3em;
    padding-top: 1.5em;
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    margin-bottom: 50px;
}

.navbar.container-fluid {
    margin-top: 2em;
    margin-bottom: 0px;
    padding: 0.75em 3em;
    border-radius: 10px 10px 0 0;
    background: #7ee685 !important;
}

.tariff {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 15px;
}

.checkselect {
    position: relative;
    min-width: 200px;
}

.checkselect-control {
    position: relative;
    cursor: pointer;
}

.checkselect-control select {
    padding-right: 30px;
    cursor: pointer;
    background-color: white;
    pointer-events: none;
    background: transparent !important;
}

.checkselect-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
}

.checkselect-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.checkselect-list {
    padding: 10px;
}

.checkselect .form-check {
    margin-bottom: 5px;
    padding-left: 25px;
    position: relative;
    min-height: 20px;
}

.checkselect .form-check-input {
    position: absolute;
    margin-top: 4px;
    margin-left: -20px;
}

.checkselect .form-check-label {
    display: block;
    padding: 2px 0;
    cursor: pointer;
}

.checkselect .form-check-label:hover {
    background-color: #f8f9fa;
}

.checkselect-control:hover {
    border-color: #7ee685;
    box-shadow: 0 0 0 0.2rem rgba(126,230,133,.25);
}

.checkselect .form-check-input.hover {
    border-color: #7ee685;
    box-shadow: 0 0 0 0.2rem rgba(126,230,133,.25);
}

@media screen and (max-width: 1100px) {
    body {
        width: max-content;
        min-width: 100vw;
        max-width: max-content;

        padding: 0;
        /*zoom:1;*/
    }

    .navbar.container-fluid {
        width: 100%;
        border-radius: 0;
        margin-top: 0;
    }

    .modal-backdrop {
        width: 100%;
        height: 100%;
    }

    .modal {
        padding-right: 0 !important;
        word-break: break-word;
    }

    .container-fluid {
        width: max-content;
    }

    audio {
        width: 20em;
        hegiht: 10em;
    }

}

/* ========================= */
/* Result Filter (изолированные стили) */
.result-filter-container {
    border-radius: 10px;
    padding: 1.5em 1em 1em 1em;
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: flex-end;
}
.result-filter-group {
    min-width: 220px;
    flex: 1 1 50px;
}
.result-filter-label {
    font-weight: 600;
    margin-bottom: 0.5em;
    display: block;
}
.result-filter-checkselect {
    position: relative;
    min-width: 200px;
}
.result-filter-checkselect-control {
    position: relative;
    cursor: pointer;
    border: 1px solid #c6f3c9;
    border-radius: 6px;
    background: #fff;
    padding: 0.4em 1.5em 0.4em 0.8em;
    transition: border 0.2s;
}
.result-filter-checkselect-control select {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1em;
    outline: none;
    cursor: pointer;
    pointer-events: none;
    background: transparent !important;
}
.result-filter-checkselect-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #7ee685;
    font-size: 1.1em;
}
.result-filter-checkselect-popup {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c6f3c9;
    border-radius: 6px;
    margin-top: 5px;
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(126, 230, 133, 0.12);
    display: none;
    padding: 0.5em 0.7em;
}
.result-filter-checkselect-popup label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.3em 0.2em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.result-filter-checkselect-popup label:hover {
    background: #f0f8ff;
}
.result-filter-checkselect-popup input[type="checkbox"] {
    accent-color: #7ee685;
    width: 1.1em;
    height: 1.1em;
}
.result-filter-checkselect-control:focus-within,
.result-filter-checkselect-control:hover {
    border-color: #7ee685;
    box-shadow: 0 0 0 0.15rem rgba(126,230,133,.15);
}
@media (max-width: 900px) {
    .result-filter-container {
        flex-direction: column;
        gap: 0.7em;
        padding: 1em 0.5em 0.5em 0.5em;
    }
    .result-filter-group {
        min-width: 0;
        width: 100%;
    }
}

/* Стили для статусов */
.status-in-process {
    color: #198754 !important;
}

.status-paused {
    color: #e6b800 !important;
}

.status-finished {
    color: #c82333 !important;
}


