@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
}

/* Подсветка только строк внутри tbody */
tbody tr:hover {
    background-color: #EFEFEF !important;
    color: #000000 !important;
    cursor: default;
}


thead tr:hover {
    cursor: default;
}

table {
    border-collapse: collapse;
    width: 100%;
}

thead th {
    position: sticky; /* Липкая позиция */
    top: 0; /* Приклеить к верху */
    background: #212529; /* Цвет фона (Bootstrap table-dark) */
    color: white;
    z-index: 2; /* Чтобы не перекрывалось данными */
}


.L1, .R1, .L2, .R2, .L3, .R3 {
    display: inline-block;
}

.L1, .L3, .R2 {
    background-color: #EEE;
}

.L1, .R1, .L2, .R2, .L3, .R3 {
    width: 100%;
}

.dl {
    float: left;
    width: 380px;
    margin-top: 15px;
    margin-right: 15px;
}

.dc {
    float: left;
    width: 380px;
    margin-top: 15px;
    margin-right: 15px;
}

.dr {
    float: left;
    width: 380px;
    margin-top: 15px;
}

.loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center; /* ЦЕНТРОВКА ПО ГОРИЗОНТАЛИ */

    text-align: center;
}

/* Контейнер */
.spinner {
    position: relative;
    width: 50px;
    height: 50px;
}

/* Вращающийся элемент */
.spinner-rotate {
    width: 100%;
    height: 100%;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Текст — НЕ вращается */
.spinner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    pointer-events: none; /* не мешает кликам */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-message {
    margin-top: 5px;
    color: white;
    font-size: 16px;
}


.modal-backdrop {
    opacity: 0.7 !important;
    background-color: #000;
}

@media screen and (max-width : 600px) {
    .dr, .dl {
        float: none !important;
        width: 100% !important;
    }

    .L1, .R1, .L2, .R2, .L3, .R3 {
        display: block;
    }
}


/*::-webkit-scrollbar {
    width: 0;
}*/

a, .btn-link {
    color: #0366d6;
}

input[type='file'] {
    color: transparent;
}

blockquote {
    border-radius: 5px;
    border: dotted #666 1px;
    border-left: solid #1EA262 7px;
    padding: 5px;
    color: #345;
    font-style: italic;
    font-size: 1em;
    background: #fcfcfc;
    height: auto;
    width: 100%;
}

textarea {
    resize: none; /* Запрещаем изменять размер */
} 


.modalCOM {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

.modal-dialogCOM {
    overflow-y: initial !important;
    max-height: 85%;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 600px;
    margin: auto auto;
}

.modal-bodyCOM {
    height: 480px;
    overflow-y: auto;
    position: relative;
    padding: 15px;
}

.truncateHide {
    cursor: pointer;
    margin: 0; /* Убираем внешний отступ */
    -webkit-line-clamp: 2; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden; /* Обрезаем всё за пределами блока */
}

.truncateShow {
    cursor: pointer;
    display: none;
}

/* скрываем чекбоксы и блоки с содержанием */
.hide {
    display: none;
}

    .hide + label ~ div {
        display: none;
    }
    /* оформляем текст label */
    .hide + label {
        border-bottom: 1px dotted green;
        padding: 0;
        color: green;
        cursor: pointer;
        display: inline-block;
    }
    /* вид текста label при активном переключателе */
    .hide:checked + label {
        color: red;
        border-bottom: 0;
    }
        /* когда чекбокс активен показываем блоки с содержанием  */
        .hide:checked + label + div {
            display: block;
            background: #efefef;
            -moz-box-shadow: inset 3px 3px 10px #7d8e8f;
            -webkit-box-shadow: inset 3px 3px 10px #7d8e8f;
            box-shadow: inset 3px 3px 10px #7d8e8f;
            padding: 10px;
        }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn.btn-primary:hover {
    background-color: #0056b3; /* замените на нужный вам цвет */
}



app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-color: #268DC6;
}

   

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/*.myclass table {
    table-layout: auto !important;
}

.myclass th, .myclass td, .myclass thead th, .myclass tbody td, .myclass tfoot td, .myclass tfoot th {
    width: auto !important;
}
*/
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}


@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 100%;
        height: 56px;
        position: sticky;
        /*margin-top: 32px;*/
        z-index: 1;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }


    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.toast-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s, transform 0.5s;
    display: flex;
    flex-direction: column; /* логотип сверху, текст снизу */
    align-items: center;
    text-align: center;
    min-width: 250px;
}

    .toast-banner img {
        height: 70px;
        width: auto;
        margin-bottom: 15px;
    }

    .toast-banner .text {
        font-size: 15px;
    }

    .toast-banner.show {
        opacity: 1;
        transform: translateY(0);
    }

    .custom-list li::marker {
        font-weight: bold;
    }

    .custom-list a:hover {
        color: red;
    }

    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 10px;
        width: 55px;
        height: 55px;
        border: none;
        border-radius: 50%;
        background: #268DC6;
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* когда кнопка активна */
    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* эффект при наведении */
    .scroll-to-top:hover {
        background: linear-gradient(135deg, #005fa3, #0090a3);
        transform: scale(1.1);
    }

    /* скрытие настоящего input */
    #dicomFile {
        display: none;
    }

    /* общий стиль */
    .file-label {
        display: block;
        width: 100%;
        padding: 10px;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        font-size: 16px;
        border: 1px solid #ccc;
        transition: 0.2s;
    }

.hidden-input {
    display: none;
}

.pink-bg {
    background-color: pink;
}

.green-bg {
    background-color: lightgreen;
}

/* hover */
.file-label:hover {
    opacity: 0.9;
}

.center-modal {
    height: 100vh;
    display: flex;
    align-items: center;
}


