.sidenav .sidenav-menu .nav .nav-link {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.sidenav .sidenav-menu .nav .sidenav-menu-heading {
    padding: 1rem 1rem 0.45rem;
}

form {
    margin: 0;
}

.text-roz {
    color: #b85359 !important;
}

.text-green {
    color: #31966f !important;
}

.text-blue {
    color: #0783f7 !important;
}

.bg-roz {
    background-color: #b85359;
}

.bg-green {
    background-color: #31966f;
}

.bg-blue {
    background-color: #0783f7;
}

.border-left-roz {
    border-left: 0.25rem solid #b85359 !important;
}

.border-left-green {
    border-left: 0.25rem solid #31966f !important;
}

.border-left-blue {
    border-left: 0.25rem solid #0783f7 !important;
}

/* @keyframes spinner {
    to {transform: rotate(360deg);}
}

.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: #333;
    animation: spinner .6s linear infinite;
    z-index: 999;
} */

.badge {
    /* font-size: 1em; */
    background: #b85359;
}

.editActions {
    position: sticky;
    top: 1rem;
    margin-bottom: 2rem;
}

.toast-container {
    z-index: 9990;
}

.bg-gradient-roz-to-tk {
    background-color: #b85359 !important;
    background-image: linear-gradient(135deg, #b85359 0%, rgba(18, 2, 2, 0.431) 100%) !important;
}

.dataTables_filter { margin-right: 5px; margin-top: 5px; }

@media (min-width: 576px) {
    .modal-xxl {
        max-width: 90vw;
    }
}

.clickRow { cursor: pointer; }
.clickRow:hover { background: #f2f6fc }

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.px-auto {
    padding-right: auto !important;
    padding-left: auto !important;
}





#spinner-container {
    position: relative;
    min-height: 70vh;
}

#loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loading-spinner .spinner-grow {
    width: 3rem;
    height: 3rem;
    opacity: 0;
    animation: blink 1s infinite;
}

#loading-spinner .spinner-grow:nth-child(1) { animation-delay: 0s; }
#loading-spinner .spinner-grow:nth-child(2) { animation-delay: .1s; }
#loading-spinner .spinner-grow:nth-child(3) { animation-delay: .2s; }

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* #loading-spinner .spinner-grow {
    width: 3rem; height: 3rem;
}
#loading-spinner {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#loading-spinner .spinner-grow {
    opacity: 0;
    animation: blink 1s infinite;
}
#loading-spinner .spinner-grow:nth-child(1) {
    animation-delay: 0s;
}
#loading-spinner .spinner-grow:nth-child(2) {
    animation-delay: .1s;
}
#loading-spinner .spinner-grow:nth-child(3) {
    animation-delay: .2s;
}
@keyframes blink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
} */





/* Кастомный select с поиском */
[data-bs-theme=dark] .custom-search-input {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.custom-search-input {
    cursor: pointer;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-color: var(--bs-body-bg) !important;
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.offcanvas-fullscreen {
    width: calc(100% - var(--sidebar-width) + 1px) !important;
}

@media (max-width: 991px) {
    .offcanvas-fullscreen {
        width: 100% !important;
    }
}

.field-save-success {
    padding-right: 2.5rem;
    border: 1px solid #198754 !important;
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23198754' class='bi bi-floppy' viewBox='0 0 16 16'%3E%3Cpath d='M11 2H9v3h2z'/%3E%3Cpath d='M1.5 0h11.586a1.5 1.5 0 0 1 1.06.44l1.415 1.414A1.5 1.5 0 0 1 16 2.914V14.5a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 14.5v-13A1.5 1.5 0 0 1 1.5 0M1 1.5v13a.5.5 0 0 0 .5.5H2v-4.5A1.5 1.5 0 0 1 3.5 9h9a1.5 1.5 0 0 1 1.5 1.5V15h.5a.5.5 0 0 0 .5-.5V2.914a.5.5 0 0 0-.146-.353l-1.415-1.415A.5.5 0 0 0 13.086 1H13v4.5A1.5 1.5 0 0 1 11.5 7h-7A1.5 1.5 0 0 1 3 5.5V1H1.5a.5.5 0 0 0-.5.5m3 4a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V1H4zM3 15h10v-4.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5z'/%3E%3C/svg%3E"); */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23198754' class='bi bi-check-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem 1.2rem;
}

.field-save-danger {
    padding-right: 2.5rem;
    border: 1px solid #dc3545 !important;
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' class='bi bi-x-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z'/%3E%3C/svg%3E");    background-repeat: no-repeat; */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' class='bi bi-info-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2rem 1.2rem;
}

.layout-avatar {
    border-radius: 50%;
    margin-right: .5rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    background-color: var(--bs-body-color);
    color: var(--bs-tertiary-bg);

    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-7rem {
    font-size: 7rem;
}

.outline {
    outline: 1px solid var(--bs-dark-border-subtle) !important;
}
textarea {
    resize: vertical;
    scrollbar-width: none;
}
textarea::-webkit-scrollbar {
    display: none;
}  








.dbl-edit {
    cursor: default;
    outline: none;
    box-shadow: none !important;
    border: none;
}
.dbl-edit:focus {
    /* border: var(--bs-border-width) solid var(--bs-border-color); */
    outline: var(--bs-border-width) solid var(--bs-border-color);
}
.dbl-edit.edit {
    /* border-color: #86b7fe; */
    outline: var(--bs-border-width) solid #86b7fe;
}
input.dbl-edit.edit, textarea.dbl-edit.edit {
    cursor: text;
}
/* Отключаем стандартное поведение: label не уходит вверх на фокус пустого поля */
.form-floating > .form-control.dbl-edit:focus:not(.force-float):placeholder-shown ~ label {
    transform: none;
    color: rgb(var(--bs-body-color-rgb));
}  
select.dbl-edit[readonly] {
    background-image: none !important; /* убираем стрелку */
}








#smTable thead th:not(:last-child), #smTable tbody td:not(:last-child) {
    min-width: 150px;
}
#smTable thead th:last-child, #smTable tbody td:last-child {
    width: 10%;
}
#smTable thead::after {
    content: "";
    display: block;
    height: .5rem;
}
#smTable tr td {
    padding: 0;
    vertical-align: middle;
}
#smTable tbody tr:has(#smTable_btnRemove:hover) :is(td, td *) {
    background-color: rgba(var(--bs-danger-rgb), 0.05);
}
#smTable textarea {
    resize: none;
}
#smTable .dbl-edit:focus, #smTable .dbl-edit.edit {
    outline: none;
}
#smTable td:has(.dbl-edit:focus) {
    outline: var(--bs-border-width) solid var(--bs-body-color);
}
#smTable td:has(.dbl-edit.edit) {
    outline: var(--bs-border-width) solid #86b7fe;
}





/* Общий контейнер скролла внутри dropdown */
.scroll-sm, .list-group, .dropdown .filter-list {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #919191 transparent; /* Firefox */
}
  
/* Для Chrome, Edge, Safari */
.scroll-sm::-webkit-scrollbar, .list-group::-webkit-scrollbar, .dropdown .filter-list::-webkit-scrollbar {
    width: 5px;
}
  
.scroll-sm::-webkit-scrollbar-track, .list-group::-webkit-scrollbar-track, .dropdown .filter-list::-webkit-scrollbar-track {
    background: transparent;
}
  
.scroll-sm::-webkit-scrollbar-thumb, .list-group::-webkit-scrollbar-thumb, .dropdown .filter-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
}
/* 🔹 Подсветка при фокусе на кнопке или открытом dropdown */
.dropdown > .btn:focus,
.dropdown > .btn.show {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* стандартный Bootstrap-синий фокус */
  border-color: #86b7fe;
  z-index: 3;
}
.dropdown > .btn.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
  
.dropdown > .invalid-feedback {
    display: none;
}
  
.dropdown > .btn.is-invalid ~ .invalid-feedback {
    display: block;
}
  



.entity-tenders .list-group, 
.entity-contracts .list-group, 
.entity-archive .list-group {
    max-height: 500px;
    overflow: auto;
}



.empty-td {
    font-size: 0.5rem; 
    color: grey;
}
