
/* Фиксируем navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Добавляем отступ для основного контента */
body {
    padding-top: 4rem; /* Высота navbar */
}
a {
    text-decoration: none !important;
}

.text-weight-thin {
    font-weight: 100;
}

.text-weight-light {
    font-weight: 300;
}

.text-weight-regular {
    font-weight: 400;
}

.text-weight-medium {
    font-weight: 500;
}

.text-weight-bold {
    font-weight: 700;
}

.text-weight-bolder {
    font-weight: 900;
}

.cursor-pointer {
    &:hover {
        cursor: pointer;
    }
}

.cursor-default {
    &:hover {
        cursor: default;
    }
}

.text-caption {
    font-size: 12px;
    color: grey;
}


/* Скрытие всех скрытых полей */
input[type="hidden"],
select[hidden],
textarea[hidden] {
    display: none;
}

a {
    text-decoration: none;
}

.alert-success {
    color: white;
    background-color: rgba(0, 128, 0, 0.16);
    font-weight: bold;
    width: fit-content;
}

.alert-danger {
    color: white;
    background-color: rgba(255, 0, 0, 0.16);
    font-weight: bold;
    width: fit-content;
}

:not(.form-check) > label:nth-child(n+2) {
    padding-top: 10px;
}

select i {
    background: red;
}

button {
    border: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.btn-primary {
    background: rgb(80, 117, 174) !important;
}

.btn-outline-primary {
    background: transparent !important;

    &:hover {
        background: rgb(80, 117, 174, .3) !important;
    }
}

[data-bs-theme="dark"] {
    .commutation, #themeToggle {
        color: white;
    }
}

[data-bs-theme="light"] {
    .commutation, #themeToggle {
        color: black;
    }
}


.page-wrapper {
    height: calc(100% - 56px); /* navbar = 56px */
    overflow-y: auto;
}

.toast-container {
    position: fixed !important;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
}

.table-responsive {
    overflow-y: inherit !important;
    overflow-x auto !important;
}