/* Общие стили */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@font-face {
    font-family: 'MoscowSans';
    src: url('moscowsansregular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'MoscowSans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 5px;
    color: white;
/*    background-image: url(field_image_numbers.jpg) !important;*/
    background-repeat: repeat-x; /* Повторение только по горизонтали */
    background-size: auto 100%; /* Сохраняет пропорции тайла по высоте элемента */
}

#app-logo {
    flex: 1;
    max-width: 225px;
}

#app-title {
    flex: 1;
    text-align: right;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-direction: column-reverse;
    margin-bottom: -20px;
}

#app-title span {
    color: rgb(92 92 92)!important;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: -15px;
    margin-top: 5px;
}

#app-container {
    display: flex;
    height: calc(100vh - 70px - 60px);
    width: 100%;
    box-sizing: border-box;
}

/* Навигатор */
#navigator-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    margin: 15px 0 15px 15px;
    min-width: 210px;
    height: calc(100% - 30px);
}

#navigator {
    flex: 0;
    height: auto;
    min-height: 238px;
    border-radius: 8px;
    overflow: hidden;
}

.navigator_default_main {
    border: 0!important;
}

#navigator-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: auto;
    justify-content: flex-end;
    margin-top: -10px;
}

.nav-button {
    width: 100%;
    padding: 10px;
    background: #d4212d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: #a81a24;
}

/* Главный контейнер календаря */
#calendar-main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 15px 15px 0 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    min-width: 0;
    box-sizing: border-box;
    height: calc(100% - 30px);
    border-bottom: 6px solid #ce232c;
    padding-bottom: 10px;
}

/* Шапка календаря */
#calendar-header {
    padding: 15px 20px;
    background: linear-gradient(to right, #d4212d, #bd2929);
    color: white;
    flex-shrink: 0;
}

#header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

#week-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

#current-range {
    color: rgb(92 92 92);
    font-weight: 500;
    font-size: 1.5rem;
    min-width: 250px;
    margin-bottom: -65px;
}

.room-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.room-select-container label {
    margin-bottom: 0;
    white-space: nowrap;
    color: white;
}

#room-select {
    width: 191px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    appearance: none;
    background-image: 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-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

#search-input {
    display: none;
}

/* Контейнер календаря */
#calendar-wrapper {
    flex: 1;
    overflow-y: auto;
    position: relative;
    min-height: 500px;
    padding: 0px;
}

/* Стили для календаря DayPilot */
.calendar_default_main {
    overflow: hidden;
}

.calendar_default_event {
    color: white;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}

.calendar_default_event_inner {
    padding: 5px;
}

/* Стиль для ячеек при наведении */
.calendar_default_cell:hover {
    background-color: rgba(212, 33, 45, 0.1) !important;
    cursor: pointer;
}

/* Toggle button for navigator on mobile */
#toggle-nav {
    display: none;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
}

/* Стили модальных окон */
.modal-header {
    background: linear-gradient(to right, #d4212d, #bd2929);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 20px;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    background-color: #fff;
}

.modal:not(.show) {
    display: none;
}

.btn-primary {
    background-color: #d4212d;
    border-color: #bd2929;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #a81a24;
    border-color: #9a1821;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-control:focus,
.form-select:focus {
    border-color: #d4212d;
    box-shadow: 0 0 0 0.25rem rgba(212, 33, 45, 0.25);
}

.nav-tabs .nav-link.active {
    background-color: #d4212d;
    color: white;
    border-color: #d4212d;
}

/* Фокус для доступности */
.btn:focus-visible, 
.form-control:focus-visible {
    outline: 2px solid #d4212d;
    outline-offset: 2px;
}

/* Стили для кнопок навигации по неделям */
.nav-button-week {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease;
}

.nav-button-week:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Стиль для ячеек с датой */
.cell-date {
    font-weight: bold;
    text-align: center;
    padding: 5px 2px;
    font-size: 0.85em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Скрываем стандартное отображение даты DayPilot */
.calendar_default_cell_header {
    display: none !important;
}

/* Кастомные стили для заголовка даты */
.calendar__item-day {
    font-size: 0.85em;
    font-weight: normal;
    text-align: center;
}

.calendar__item-date {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
    #app-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    #app-title {
        text-align: left;
        margin-top: 10px;
        font-size: 1.2rem;
    }
    
    #app-container {
        flex-direction: column;
        height: calc(100vh - 60px);
    }
    
    #navigator-container {
        margin: 15px 15px 0 15px;
        min-width: auto;
        display: none;
        height: auto;
    }
    
    #calendar-main-container {
        margin: 0;
        border-radius: 0;
        height: 100%;
    }
    
    #header-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    #week-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .room-select-container {
        margin-left: 0;
        width: 100%;
    }
    
    #room-select {
        width: 100%;
    }
    
    #current-range {
        font-size: 1rem;
        margin-bottom: 0;
        min-width: auto;
        text-align: center;
        color: white;
    }
    
    #toggle-nav {
        display: none !important;
    }

    #current-range-mobile {
        display: block!important;
        text-align: center;
        margin-top: 2px;
        font-size: 1.2rem;
        font-weight: 500;
        color: rgb(255, 255, 255);
        padding: 0 15px;
    }
    
    #current-range-mobile::first-letter {
        text-transform: uppercase;
    }
}

@media (max-width: 576px) {
    #app-header {
        padding: 8px;
    }
    
    #app-title {
        font-size: 1.1rem;
    }
    
    #navigator-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-button {
        flex: 1;
        min-width: 100px;
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    #header-controls {
        gap: 8px;
    }
    
    #week-navigation {
        gap: 5px;
    }
    
    .room-select-container {
        width: 100%;
    }
    
    #current-range {
        font-size: 0.9rem;
    }
}

/* Navigator Styling */
.navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright {
    border-top: 0px solid!important;
}

.calendar_default_colheader_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar_default_colheader {
    padding-top:20px;
    padding-bottom:20px;
}

.calendar_default_main {
    border:none!important;
}

.calendar_default_colheader_inner {
    border-right: 0px solid!important;
}

.calendar_default_rowheader_inner {
    border-right: 0px solid!important;
    border-bottom: 0px solid!important;
}

.calendar_default_corner_inner {
    border-right: 0px solid!important;
    border-bottom: 0px solid!important;
}

.calendar_default_rowheader_inner, 
.calendar_default_cornerright_inner, 
.calendar_default_corner_inner, 
.calendar_default_colheader_inner, 
.calendar_default_alldayheader_inner {
    color: #5f5f5f!important;
    background: #fff!important;
}

.calendar__item-day {
    margin-bottom: 6px;
}

#current-range::first-letter {
    text-transform: uppercase;
}

.navigator_default_title::first-letter {
    text-transform: uppercase;
}

.navigator_default_title {
    font-weight:500;
}

.navigator_default_title {
    background: #d4212d!important;
    color: #fff!important;
}

.calendar_default_event_delete {
    display:none!important;
}

.calendar_default_event_inner {
    inset: 1px!important;
}

.calendar_default_event_inner {
    border: none!important;
    border-radius: 10px!important;
}

.navigator_default_select .navigator_default_cell_box { 
    background-color: #005dff!important; 
    opacity: 1; 
}

.navigator_default_select .navigator_default_cell_text {
    color: white;
} 

.calendar_default_cell_inner {
    /* background: #fff8f8!important; */
}

#app-footer {
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.navigator_default_today .navigator_default_cell_box {
    background-color: #005eff!important;
    opacity: 1!important;
}

.navigator_default_todaybox {
    border: none!important;
    color: white!important;
}

.navigator_default_today .navigator_default_cell_text {
    color: white!important;
}

.navigator_default_weekend .navigator_default_cell_box {
    background-color: #f8f9ff;
}

.calendar_default_cell:not(.calendar_default_cell_business) > .calendar_default_cell_inner {
    background-color: #f8f9ff;
}

.navigator_default_titleleft, .navigator_default_titleright {
    background: #d4212d!important;
    color: #fff!important;
}

.calendar_default_corner,
.calendar_default_colheader {
    position: sticky !important;
    top: 0;
    z-index: 2;
    background: #fff;
}

.calendar_default_corner_inner,
.calendar_default_colheader_inner {
    position: relative;
}

.calendar_default_colheader,
.calendar_default_corner,
.calendar_default_cornerright {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
    z-index: 10;
    background: #fff !important;
}

.calendar_default_corner {
    z-index: 11;
    left: 0;
}

.nav-button-i {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-button-i:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-button-i i {
    font-size: 20px;
    color: white;
    line-height: 1;
}

#app-footer {
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    bottom: 0;
    width: auto;
    margin: 0 15px 0 240px;
}

@media (max-width: 992px) {
    #app-footer {
        margin: 0 15px;
    }
}

#room-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 30px 0;
    overflow-y: auto;
}

.room-button {
    display: block;
    width: 90%;
    padding: 5px;
    margin: 5px 0;
    background: #fff;
    border: 1px solid #c0c0c0;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.room-button:hover {
    background: #f8f9fa;
    color: #d4212d;
}

.room-button.active {
    background: #d4212d;
    color: white;
    border-color: #bd2929;
}

.room-button.active:hover {
    background: #d4212d;
}

@media (max-width: 992px) {
    #app-logo,
    #navigator-container,
    #room-buttons,
    #app-footer,
    #app-header  {
        display: none !important;
    }

    .nav-button-i {
        width: 44px;
        height: 44px;
    }
    
    .nav-button-i i {
        font-size: 24px;
    }

    #app-container {
        height: 100vh;
    }

    #app-header {
        justify-content: center;
        padding: 10px;
    }

    #app-title {
        display: none;
    }

    #calendar-main-container {
        margin: 0;
        border-radius: 0;
        height: 100%;
    }

    #calendar-header {
        padding: 10px;
    }

    #header-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    #week-navigation {
        gap: 30px;
    }

    .room-select-container {
        flex: 1;
    }

    #room-select {
        width: 100%;
    }

    #current-range {
        display: none;
    }

    #calendar-wrapper {
        padding: 0;
    }

    .calendar_default_main {
        border: none;
    }

    .calendar_default_colheader {
        padding: 0px;
        height: 81px!important;
    }

    .calendar__item-day {
        font-size: 1rem;
    }

    .calendar__item-date {
        font-size: 1.5rem;
    }

    .calendar_default_event {
        font-size: 12px;
    }

    .calendar_default_event_inner {
        padding: 3px;
    }

    #dp > div:first-child {
        margin: 0px 0px 20px 0px;
        background: none!important;
    }

    #dp > div:nth-child(2) {
        margin-top: 82px!important;
    }
}

#dp > div:first-child {
    position: fixed;
    z-index: 1;
    margin-right: 30px;
}

#dp > div:nth-child(2) {
    margin-top: 70px;
}

.calendar_default_corner {
    height: 70px !important;
}

#current-range-mobile {
    display: none;
}

@media (max-width: 992px) {
    #app-footer {
        display: flex !important;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to right, #d4212d, #bd2929);
        box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        margin: 0;
        padding: 0 15px;
    }

    #app-footer > *:not(#week-navigation) {
        display: none;
    }

    #week-navigation {
        width: 100%;
        justify-content: space-around;
        gap: 20px;
    }

    .nav-button-week {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    #calendar-wrapper {
        padding-bottom: 70px;
    }

    #header-controls {
        justify-content: flex-end;
    }

    #dp > div:first-child {
        width: 100%;
        background-color: white !important;
    }
}

.nav-button-i-d {
    width: 40px;
    height: 40px;
    padding-bottom: 0;
    background: #d4212d;
    color: rgba(255, 255, 255, 0.904);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 1.2rem;
    padding-top: 3px;
    padding-left: 7px;
}

.nav-button-i-d:hover {
    background: #a81a24;
}

#addRoomBtn, #addUserBtn {
    margin-top: 10px;
}

.nav-link {
    cursor: pointer;    
}

.nav-link {
    color: #3e3e3e;
}

.nav-link:hover {
    color: #d4212d;
}

.btn-warning {
    background: #fff;
    border: 1px solid #c0c0c0;
    color: #333;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-warning:hover {
    background: #f8f9fa;
    color: #d4212d;
    border: 1px solid #c0c0c0;
}

.btn-warning.active {
    background: #d4212d;
    color: white;
    border-color: #bd2929;
}

.btn:first-child:active {
    background: #d4212d;
    color: white;
    border-color: #bd2929;
}

/* Новые стили для отображения названия комнаты в десктопной версии */
#current-room-desktop {
    color: white;
    font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
    flex: 1;
    display: none;
    padding: 0 15px;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

@media (min-width: 993px) {
    .desktop-only {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    #header-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    #week-navigation {
        flex: 0 0 auto;
    }
    
    #current-room-desktop {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .room-select-container {
        flex: 0 0 auto;
    }
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
}

.modal-lg, .modal-xl {
    --bs-modal-width: 1100px;
}

/* Стили для ID room-usage-table */
#room-usage-table th:not(:first-child),
#room-usage-table td:not(:first-child) {
    text-align: center;
    vertical-align: middle;
}

#room-usage-table {
    width: 100%;
    border-collapse: collapse;
    
}

#room-usage-table th {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    font-weight: bold;
}

#room-usage-table td {
    border: 1px solid #ddd;
}

#room-usage-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#room-usage-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 992px) {
    .not-logged-in #app-footer {
        display: none !important;
    }
}


/* Стили для событий по статусам */
.calendar_default_event.pending {
    background-color: var(--pending-color, #ffff00) !important; /* Желтый для pending */
}

.calendar_default_event.approved {
    /* Цвет пользователя применяется динамически */
}

.calendar_default_event.rejected,
.calendar_default_event.cancel_requested {
/*     background-color: #cccccc !important; для rejected/cancel_requested */
    text-decoration: line-through; /* Зачеркнутый текст для отмененных */
}

/* Стили для вкладки Статусы в модальном окне управления */
#statusesTab .form-group {
    margin-bottom: 15px;
}

#statusesTab label {
    display: block;
    margin-bottom: 5px;
}

#statusesTab input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: none;
    cursor: pointer;
}


/* Убираем рамку на бронированиях */
.calendar_default_event {
    border: none !important;
}

.calendar_default_event_inner {
    border: none !important;
}

/* Стиль для статуса в модальном окне */
#editStatusDisplay {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Цвета для статусов */
.calendar_default_event.pending {
    background-color: var(--pending-color) !important;
}

.calendar_default_event.cancel_requested {
    background-color: var(--cancel-requested-color) !important;
}

.calendar_default_event.approved {
    /* Цвет пользователя */
}

/* .calendar_default_event.rejected {
    background-color: #cccccc !important;
    text-decoration: line-through;
} */

/* Улучшения UI/UX: Лоадер для AJAX */
.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #d4212d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Улучшения UI/UX: Плавные переходы для модальных окон */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Улучшения UI/UX: Лучшая читаемость в таблицах */
.table th, .table td {
    padding: 12px;
    vertical-align: middle;
}

/* Улучшения UI/UX: Ховер эффекты для кнопок */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Улучшения UI/UX: Доступность - увеличенные области клика */
.nav-button-i, .nav-button-i-d {
    padding: 8px;
}

/* Улучшения UI/UX: Прогресс бар для загрузки событий */
#calendar-wrapper {
    position: relative;
}

#calendar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #d4212d, #bd2929);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 100;
}

#calendar-wrapper.loading::before {
    transform: scaleX(1);
}

#status-legend {
    flex: 0;
    padding: 20px 10px;
    font-size: 0.85rem;
    color: rgb(92 92 92);
}
#status-legend h6 {
    margin-bottom: 10px;
    font-weight: 600;
    color: rgb(92 92 92);
}
#status-legend div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
#status-legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
/*    border: 1px solid rgba(0,0,0,0.1);*/
    font-weight: 600;
    padding-left: 5px;
}

.calendar_default_cell.past-cell .calendar_default_cell_inner {
    background: url('data:image/svg+xml;charset=utf8,%3Csvg width="12" height="12" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="nonzero"%3E%3Cpath fill="transparent" d="M0,0h12v12H0V0z"/%3E%3Cpath d="M 11.186441,0 H 12 L 0,12 0.05084746,11.186441 Z M 12.101695,11.084746 12,12 11.135593,11.949153 Z" fill="%23CFD8DC"/%3E%3C/g%3E%3C/svg%3E') transparent repeat fixed;
}

.calendar_default_cell.past-cell:hover {
    background-color: inherit !important;
    cursor: not-allowed;
}

.calendar_default_event_inner {
    color: #fff !important;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #80aeff;
    --bs-btn-border-color: #80aeff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5190ff;
    --bs-btn-hover-border-color: #80aeff;
    --bs-btn-focus-shadow-rgb: 60,153,110;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #80aeff;
    --bs-btn-active-border-color: #80aeff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #80aeff;
    --bs-btn-disabled-border-color: #80aeff;
}

.calendar_default_rowheader_inner {
    margin-top: -8px!important;
}

#changeBgBtn {display: none;}

#loginModal .modal-footer {justify-content: space-between !important;}

#notificationsBtn {
    position: relative;
    background: transparent;
    border: 1px solid gray;
    color: gray;
}

#notif-count {
    position: absolute;
    top: -12px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
    border-radius: 50%;
    padding: 2px 6px;
    display: none;
}

#notif-count.show {
    display: inline-block;
    color: white !important;
}

.notif-unread {
    font-weight: bold;
}

.pagination {
    justify-content: center;
}

#notif-settings {
background-color: transparent;
color: gray;
border: none;
}

#user-notif-settings {
background-color: transparent;
color: gray;
border: none;
}

#notificationsModal table thead th:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/*
#notificationsModal table th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0.75rem;
}*/

#notificationsModal table th .header-label {
  margin-right: auto;
}

#notificationsModal table th .sort-icon {
  margin-left: 5px;
}

#notificationsModal table th[data-sort-by="message"] .sort-icon {
  margin-right: 15px;
}

#notificationsModal table th #notif-settings {
  margin-left: 5px;
}

#userNotificationsModal table th #user-notif-settings {
  margin-left: 5px;
}

/* new notifications */

#userNotificationsBtn {
    position: relative;
    background: transparent;
    border: 1px solid gray;
    color: gray;
}

#user-notif-count {
    position: absolute;
    top: -12px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
    border-radius: 50%;
    padding: 2px 6px;
    display: none;
}

#user-notif-count.show {
    display: inline-block;
    color: white !important;
}

.mosedo {
    text-align: right;
    font-size: 11px;
    margin-right: 7px;
}

#notificationsModal table thead th {
    vertical-align: middle;
    text-align: center;
    height: 60px;
    position: relative;
}

#notificationsModal table thead th:first-child {
    display: table-cell;
    text-align: left;
}

#notificationsModal table thead th .header-label {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

#notificationsModal table thead th #notif-settings {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.modal-backdrop {
    z-index: 1050 !important;
}

#userNotificationsModal table th:nth-child(1),
#userNotificationsModal table td:nth-child(1) {
    width: 5%;
}
#userNotificationsModal table th:nth-child(2),
#userNotificationsModal table td:nth-child(2) {
    width: 60%;
}
#userNotificationsModal table th:nth-child(3),
#userNotificationsModal table td:nth-child(3) {
    width: 20%;
}

#notificationsModal table th:nth-child(1), #notificationsModal table td:nth-child(1) { width: 5%; }
#notificationsModal table th:nth-child(2), #notificationsModal table td:nth-child(2) { width: 36%; }
#notificationsModal table th:nth-child(3), #notificationsModal table td:nth-child(3) { width: 21%; }
#notificationsModal table th:nth-child(4), #notificationsModal table td:nth-child(4) { width: 10%; }
#notificationsModal table th:nth-child(5), #notificationsModal table td:nth-child(5) { width: 15%; }
#notificationsModal table th:nth-child(6), #notificationsModal table td:nth-child(6) { width: 18%; }
#editModal {
    z-index: 1060;
}
#seriesConfirmModal {
    z-index: 1070;
}
#optionSelectModal {
    z-index: 1080;
}
#commentModal {
    z-index: 1090;
}
#registrationModal {
    z-index: 1100;
}
#deleteModal {
    z-index: 1070;
}

.toast-container {
	max-height: 50%;
}

.is-invalid { border-color: #dc3545; }