html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.col-md-4-inner {
    width: 27.777%;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #198754;
}

a.nav-link:hover {
    color: #198754;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    background: none;
    background-image: url(../uploads/images/back_img.png);
    background-size: cover; /* Это позволит картинке покрывать весь фон */
    /*background-position: center;*/ /* Центрирует картинку */
    /*background-attachment: scroll;*/ /* Фон прокручивается вместе со страницей */
    /*background-repeat: no-repeat;*/
    background-attachment: scroll;
}

.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-control-panel {
    background: #e9ecef;
}

.app-header-container {
    padding-left: 0;
    padding-right: 0;
}

.app-logo {
    object-fit: contain;
}

.app-site-link {
    z-index: 9999;
    border-color: #ffffff;
}

.app-toast-copy {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 170px;
    width: 260px;
    z-index: 10000;
}

.accessibility-panel {
    display: none;
    background: #ff6347;
    z-index: 10;
}

.accessibility-panel-title {
    text-align: center;
}

.accessibility-scale-button {
    font-size: 24px;
    min-width: 45%;
}

.accessibility-default-button {
    font-size: 20px;
}

.app-footer {
    right: 0;
    bottom: 0;
    width: 100%;
    margin-top: auto;
}

.footer-compact-line {
    line-height: 20px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
}

.footer-copyright {
    font-size: 12px;
}

.editor-company-link {
    background-color: transparent;
    border: 1px solid #eb8d00;
    color: #eb8d00;
}

.stat-nav {
    gap: 0.5rem;
}

.stat-card {
    padding: 1rem;
}

.stat-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.report-table {
    min-width: 720px;
}

.object-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.object-card-actions form {
    display: inline-flex;
}

.object-card-media {
    max-width: 50%;
}

.object-card-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.object-card-warning {
    color: #eb8d00;
}

.object-card-divider {
    margin-right: 15px;
}

.object-card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.object-card-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.object-data-table {
    min-width: 1120px;
}

.project-locked {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.project-locked-wrapper {
    position: relative;
}

.project-locked-message {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.68);
    padding: 1rem;
}

@media (max-width: 767.98px) {
    .footer-links {
        justify-content: flex-start;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .object-card-media {
        max-width: 100%;
    }

    .object-card-actions {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .object-card-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .object-card-toolbar-actions {
        width: 100%;
    }

    .object-card-toolbar-actions .btn,
    .object-card-toolbar .btn {
        width: 100%;
    }
}

.bsc-back-style {
    background: white;
}

.bsc-contain-style {
    outline: 1px solid #4a76a8;
}

.modal-backdrop {
    background-color: rgba(0,0,0,.0001) !important;
}

.collapse-modify{
    width: 100%;
    text-align: left;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-container {
    display: flex; /* Скрываем прелоадер по умолчанию */
    justify-content: center;
    align-items: center;
    height: 50vh; /* Занимает всю высоту экрана */
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон */
}

@keyframes rotateY {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.preloader-image {
    width: 200px; /* Ширина изображения */
    height: 200px; /* Высота изображения */
    animation: rotateY 2s infinite; /* Анимация вращения */
    transform-style: preserve-3d; /* Сохранение 3D-эффекта */
}

.midgard {

}

.lvl-transparency {
    background-color: rgba(255, 255, 255, 0.87);
}

.lvl-transparency-elis {
    background-color: rgba(245, 255, 250, 0.37);
}

.null-transparency {
    background-color: rgba(255, 255, 255, 0);
}

.breadcrumb-item.active {
    background-color: #198754; /* Синий цвет */
    color: white; /* Белый текст */
    border-radius: 0.25rem; /* Скругленные углы */
    padding: 0.5rem 1rem; /* Отступы */
}

.breadcrumb-style{
    margin-top: 10px;
}

.corner-label-outside {
    position: absolute;
    bottom: 0px;
    right: -2px;
    z-index: 1;
    width: 145px; 
    height: 170px;
    overflow: hidden;
    margin: 2px 4px;
}

.corner-label-inside1 {
    width: 215px;
    height: 100px;
    font-size: 12px;
    font-family: Segoe UI; /* Decrease line-height to move text up */
    font-weight: bold;
    margin-top: 85px;
    color: #fff;
    background-color: rgba(0, 128, 0, 0.87);
    text-align: center;
    transform: rotate(-45deg);
    padding-top: 4px; /* Add padding to the top */
    padding-left: 5px; /* Add padding to the top */
}

.corner-label-inside2 {
    width: 215px;
    height: 100px;
    font-size: 12px;
    font-family: Segoe UI; /* Decrease line-height to move text up */
    font-weight: bold;
    margin-top: 85px;
    color: #fff;
    background-color: rgba(255, 0, 0, 0.87);
    text-align: center;
    transform: rotate(-45deg);
    padding-top: 4px; /* Add padding to the top */
    padding-left: 5px; /* Add padding to the top */
}

.corner-label-inside3 {
    width: 215px;
    height: 100px;
    font-size: 12px;
    font-family: Segoe UI; /* Decrease line-height to move text up */
    font-weight: bold;
    margin-top: 85px;
    color: #fff;
    background-color: rgba(255, 165, 0, 0.87);
    text-align: center;
    transform: rotate(-45deg);
    padding-top: 4px; /* Add padding to the top */
    padding-left: 5px; /* Add padding to the top */
}

.corner-label-inside4 {
    width: 215px;
    height: 100px;
    font-size: 12px;
    font-family: Segoe UI; /* Decrease line-height to move text up */
    font-weight: bold;
    margin-top: 85px;
    color: #fff;
    background-color: rgba(128, 128, 128, 0.8);
    text-align: center;
    transform: rotate(-45deg);
    padding-top: 4px; /* Add padding to the top */
    padding-left: 5px; /* Add padding to the top */
}

.local_tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.local_tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.local_tooltip .tooltiptext {
    visibility: hidden;
    width: 333px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Позиция над элементом */
    left: 50%;
    margin-left: -60px; /* Центрирование */
    opacity: 0;
    transition: opacity 0.3s;
}

.local_tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}



@media (max-width: 767.98px) {
    .bsc-logo {
        width: 50px;
        height: 50px;
    }

    .bsc-title {
        font-size: 18px;
    }

    .bsc-subtitle {
        font-size: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .bsc-logo {
        width: 60px;
        height: 60px;
    }

    .bsc-title {
        font-size: 24px;
    }

    .bsc-subtitle {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .bsc-logo {
        width: 70px;
        height: 70px;
    }

    .bsc-title {
        font-size: 28px;
    }

    .bsc-subtitle {
        font-size: 16px;
    }
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background: #198754;
}

.nav-link, nav-link:hover {
    color: #198754;
}

a, a:hover {
    color: #198754;
}

.custom-rounded-left {
    border-top-left-radius: 50px; /* Радиус для верхнего левого угла */
    border-bottom-left-radius: 50px; /* Радиус для нижнего левого угла */
    border-top-right-radius: 0; /* Убираем закругление для верхнего правого угла */
    border-bottom-right-radius: 0; /* Убираем закругление для нижнего правого угла */
}

.custom-rounded-right {
    border-top-left-radius: 0px; /* Радиус для верхнего левого угла */
    border-bottom-left-radius: 0px; /* Радиус для нижнего левого угла */
    border-top-right-radius: 50px; /* Убираем закругление для верхнего правого угла */
    border-bottom-right-radius: 50px; /* Убираем закругление для нижнего правого угла */
}

.form-floating-select {
    position: relative;
}

.form-floating-select label {
    position: absolute;
    top: -3px; /* Настройте по необходимости */
    left: 0px; /* Настройте по необходимости */
    font-size: 16px; /* Настройте по необходимости */
    color: #495057; /* Цвет метки */
}

.form-floating-select select {
    padding-top: 1.5rem; /* Убедитесь, что отступы достаточны */
}

.page-item.active .page-link {
    background-color: #198754;
    color: #ffffff !important;
    border-color: #198754;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.placeholder {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    color: #666;
    border: 1px solid #198754;
    pointer-events: none; /* Prevent pointer events */
}

.image-wrapper {
    width: 100%; /* Full width of the container */
    /*height: 300px;*/ /* Set a fixed height for the container */
    background-color: #f0f0f0; /* Match the background color with the placeholder */
    display: flex; /* Use flexbox to center the image */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow: hidden; /* Hide overflow if the image is larger */
    /*border: 2px solid #198754;*/
    border: 2px solid #ccc;
    /*padding: 5px;*/
}

.image-wrapper img {
    max-width: 100%;  Make the image responsive 
    max-height: 100%;  Limit the height of the image 
    object-fit: contain;  Maintain aspect ratio 
}

.gallery-wrapper img {
    height: 400px; /* Задайте нужную высоту */
    width: 100%;
    object-fit: cover; /* Обрезает изображение, сохраняя пропорции */
    /* или object-fit: contain; - показывает всё изображение, но могут быть пустые полосы */
}

.visually-disabled {
    background-color: #e9ecef; /* Цвет фона для неактивного состояния */
    color: #6c757d; /* Цвет текста для неактивного состояния */
    pointer-events: none; /* Отключает взаимодействие с элементом */
    opacity: 0.6; /* Уменьшает непрозрачность для визуального эффекта */
}

.object-name-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.object-name-link:hover {
    color: #198754;
    transform: translateX(2px);
}

@media print {
    .no-print {
        display: none; /* Скрыть элементы с классом no-print */
    }

    /*body * {
        visibility: hidden;*/ /* Скрыть все элементы */
    /*}*/

    /*#printableCard, #printableCard *, #printableData, #printableData * {
        visibility: visible;*/ /* Показать только области для печати */
    /*}*/

    #printableCard, #printableData {
        position: absolute;
        left: 0;
        top: 0;
    }
}
