﻿







.btn-close {
    filter: brightness(0.7);
}

button {
    background-color: #d4f0e4; /* пастельный мятный */
    border: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

    button:hover {
        background-color: #81bfff; /* чуть насыщеннее мятного */
    }


.modal.fade.show.d-block {
    backdrop-filter: blur(5px);
}

/* иконка глаза */
.password-visibility {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: #8e96a7;
    cursor: pointer;
    transition: .15s;
}

    .password-visibility:hover {
        color: #d7dbe3;
    }

input[type=number]::-webkit-inner-spin-button {
    transform: scale(1.3);
}

.printBtn {
    position: absolute;
    top: 65px;
    right: 10px;
    z-index: 2;
}


.bg-gradient-dark {
    background: linear-gradient(145deg, #1e1e2f, #23243a);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .bg-gradient-dark:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.4);
    }


.subscription-glow {
    font-weight: bold;
    background: linear-gradient(90deg, #ff4d4d, #ff9999, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.5);
    }

    100% {
        filter: brightness(1);
    }
}



.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.password-rules-container {
    /* Глубокий темный фон для гармонии с основной темой */
    background: linear-gradient(145deg, #1e1e2d, #161621);
    border-left: 4px solid var(--bs-orange);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

    /* Эффект при наведении — небольшое оживление интерфейса */
    .password-rules-container:hover {
        transform: translateY(-2px);
    }

    .password-rules-container ul li {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        transition: opacity 0.3s ease;
    }

        /* Состояние: Правило выполнено */
        .password-rules-container ul li.valid {
            color: #ffffff;
            opacity: 1;
        }

            .password-rules-container ul li.valid i {
                color: #20c997; /* Цвет успеха (бирюзовый) */
                filter: drop-shadow(0 0 5px rgba(32, 201, 151, 0.4));
                transform: scale(1.1);
            }

        /* Состояние: Правило не выполнено */
        .password-rules-container ul li.invalid {
            color: rgba(255, 255, 255, 0.5); /* Приглушенный текст */
        }

            .password-rules-container ul li.invalid i {
                color: #495057; /* Темно-серый для неактивных иконок */
            }

    /* Прогресс-бар */
    .password-rules-container .progress {
        height: 6px; /* Более изящная линия */
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        margin-top: 1rem;
    }

    .password-rules-container .progress-bar {
        background: linear-gradient(90deg, #ff8c00, #20c997); /* От оранжевого к успеху */
        box-shadow: 0 0 10px rgba(32, 201, 151, 0.2);
    }



.hide-scrollbar {
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }


.form-floating .input-prefix {
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    pointer-events: none;
    color: #495057;
}

.form-floating .form-control.with-prefix {
    padding-left: 3.5rem; /* место для +996 */
}

/* Чтобы ValidationMessage не ломал высоту */
.form-floating .validation-message {
    --position: absolute;
    --left: 100px;
    --top: 5px;
}


.camera-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* затемнение фона */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    .camera-container video {
        max-width: 90vw;
        max-height: 60vh;
        border: 4px solid white;
        border-radius: 8px;
    }

    .camera-container .overlay {
        position: absolute;
        border: 3px dashed lime;
        width: 220px;
        height: 220px;
        box-sizing: border-box;
    }

.bottom-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

    .back-btn,
    .flash-btn,
    .bottom-buttons .btn {
        background: white;
        border: none;
        padding: 10px 15px;
        font-size: 1.2rem;
        border-radius: 5px;
        cursor: pointer;
    }







.card:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    background-color: lightgrey;
}






.title {
    margin-top: 10px;
    font-weight: bold;
    font-size: 20px;
}
.section {
    padding: 1px;
    border-radius: 10px;
    background: #ecf0f1;
}

.custom-tooltip .tooltip-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    z-index: 10;
    white-space: nowrap;
    min-width: 200px;
}

.custom-tooltip:hover .tooltip-box {
    display: block;
}





.access-denied {
    text-align: center;
    padding: 20px;
    border: 1px solid #f44336;
    border-radius: 12px;
    background-color: #ffebee;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 50px auto;
}


/* -------------- OnlineService -----------------*/
.online-circle {
    top: 6px;
    position: relative;
    color: transparent;
    width: 12px;
    height: 12px;
    background-color: #009688;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6), 0 0 20px rgba(76, 175, 80, 0.4);
    animation: pulse 1.5s infinite; /* Анимация пульсации */
}

.offline-circle {
    top: 6px;
    position: relative;
    color: transparent;
    width: 12px;
    height: 12px;
    background-color: #f44336;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.6), 0 0 20px rgba(244, 67, 54, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.6), 0 0 20px rgba(76, 175, 80, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.6), 0 0 20px rgba(76, 175, 80, 0.4);
    }
}
/* -------------- OnlineService -----------------*/

details summary {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    color: orangered;
}

    details summary::before {
        content: '►'; /* Символ стрелки вправо */
        display: inline-block;
        margin-right: 10px;
        transition: transform 0.3s ease;
    }

details[open] summary::before {
    content: '▼'; /* Символ стрелки вниз */
}

summary:hover {
    color: #007BFF;
}



.input-label {
    position: absolute;
    top: 6px;
    left: 50px;
    color: gray;
    pointer-events: none;
}

.fixed-width {
    width: 150px;
}

.selectLastEdit {
    width: 180px;
}

.cardLastEdit-container {
    position: relative;
    --top: 170px;
    --right: -730px;
    --transform: translateX(-50%);
    --width: 270px;
}

.styleEmployer {
    margin-left: 185px;
}

.cardFiles {
    transition: all 0.2s ease;
    box-shadow: 0px 1px 5px -3px #424242
}

.cards {
    transition: all 0.2s ease;
    box-shadow: 0px 5px 5px -3px #424242;
    width: 97px;
}

.cardlink {
    width: 180px;
    height: 200px;
    padding: 10px;
    display: inline-block;
    text-align: center;
    border: 1px solid #CCC;
    border-radius: 5px;
    vertical-align: top;
    margin: 10px;
    background-color: antiquewhite;
}

    .cardlink img {
        width: 128px;
        height: 128px;
        padding-bottom: 10px;
    }

.cards:hover {
    box-shadow: 0px 9px 5px -3px #424242;
}

.cardlink2 {
    color: black;
    font-size: 20px;
    font-weight: 400;
    width: 250px;
    height: 45px;
    padding: 5px;
    display: inline-block;
    text-align: center;
    border: 1px solid #CCC;
    border-radius: 5px;
    vertical-align: top;
    background-color: #dee2e6;
}

.circle {
    display: inline-block;
    width: 70px;
    height: 45px;
    line-height: 40px;
    border-radius: 25%;
    text-align: center;
    background-color: #2c3e50;
    border: 3px solid rgba(0, 0, 0, .2);
    position: absolute;
    color: #2196F3;
    right: 50px;
    font-weight: 600;
    text-shadow: rgb(0 0 0) 1px 1px 1px;
}

.labelName {
    display: inline-block;
    position: absolute;
    color: #036654;
    font-weight: 600;
    text-shadow: rgb(0 0 0) 1px 1px 1px;
}

.form-check-input:checked {
    background-color: #325d88;
    border-color: #325d88;
}

.iconDanger {
    font-size: 4em;
    color: #d9534f;
    margin-bottom: 20px;
}

.flex-grow-1-5 {
    flex: 0.3;
}

.dropdown-menu-right {
    left: 35px; /* Отмена выравнивания по умолчанию */
    top: 0;
}

.exclamation::before {
    content: "!";
    color: red;
    font-size: 30px;
    position: absolute;
    left: -12px; /* Регулируйте отступ от input */
    top: 50%;
    transform: translateY(-50%);
    animation: bounce 0.2s infinite alternate;
    text-shadow: 0 0 6px #FFEB3B; /* Добавление тени */
}

@keyframes bounce {
    from {
        transform: translateY(-50%) scale(1);
    }

    to {
        transform: translateY(-50%) scale(1.2);
    }
}

.form-control-xs {
    padding: 4px; /* Уменьшаем внутренние отступы */
    font-size: 1rem; /* Уменьшаем размер шрифта */
    --line-height: 1; /* Уменьшаем высоту строки */
}

.custom-select {
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E %3Cg%3E %3Cpath transform='matrix(1 0 0 -1 0 512)' d='M509.158,275.253L261.692,53.387c-3.234-2.918-8.149-2.918-11.383,0L2.842,275.253C1.033,276.866,0,279.179,0,281.602 v85.333v85.333c0,3.362,1.98,6.417,5.052,7.791c3.072,1.365,6.673,0.811,9.173-1.442L256,241.854l241.775,216.764 c1.596,1.434,3.627,2.185,5.692,2.185c1.178,0,2.364-0.247,3.482-0.742c3.072-1.374,5.052-4.429,5.052-7.791v-85.333v-85.333 C512,279.179,510.968,276.866,509.158,275.253z M494.933,347.821L261.692,138.72c-3.234-2.918-8.149-2.918-11.383,0 L17.067,347.821v-62.413L256,71.187l238.933,214.221V347.821z'/%3E %3C/g%3E %3C/g%3E %3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(1.25rem - 0.5px - 15px) center;
    background-size: 16px 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}



.serviceTitle {
    margin-top: -150px;
}



.button-container {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: translateX(-50%);
    width: 50px;
}

.cardInfo-container {
    position: relative;
    top: -10px;
    right: 0px;
    z-index: 2;
}

.qr-wrapper {
    position: absolute;
    top: -5px;
    left: 810px;
    z-index: 2;
    background: #212529;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.qr-frame {
    position: relative;
    padding: 10px;
    background: #fff; /* QR-коду нужен белый фон для считывания */
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid #2c3238; /* Внутренняя рамка */
}

.qr-image {
    display: block;
    height: auto;
}

/* Эффект свечения вокруг QR */
.qr-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 15px rgba(13, 110, 253, 0.2); /* Твой синий акцент */
    pointer-events: none;
}

.qr-label {
    letter-spacing: 1px;
    opacity: 0.7;
}
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px;
    background-color: #f8f9fa;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
}

    .checkbox-item:hover {
        background-color: #fff3cd; /* Изменение фона при наведении */
    }

.myCheckbox-item:hover {
    background-color: #e2e6ea;
}

.icon {
    margin-right: 10px;
    color: #495057;
}

.label {
    flex-grow: 1; /* Чтобы надпись занимала всю доступную ширину */
}

.cardFooter {
    background-color: #607d8b69;
    border: 3px solid #f8f9fa;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 5px -3px #424242
}


.crud-page-view {
    grid-column: 1; /* Размещаем в левом столбце */
}

.sort {
    cursor: pointer;
}

.table {
    --bs-table-bg: transparent !important;

}
tr.selected-row {
    background-color: #6ca7ff !important;
}

.checked-row {
    background-color: #fff3cd;
}

.expired-row {
    background-color: #f4433694;
}

.spinner {
    border: 8px solid silver;
    border-top: 8px solid #607D8B;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 700ms linear infinite;
    position: initial;
    background: var(--bs-table-accent-bg);
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}


.progress-bars {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #ECEFF1;
    border-radius: 5px;
    overflow: hidden;
}

    .progress-bars::before {
        content: "";
        position: absolute;
        inset: 0;
        width: 0%;
        background: repeating-linear-gradient( 135deg, #CFD8DC 0px, #CFD8DC 12px, #607D8B 12px, #607D8B 24px );
        background-size: 40px 40px;
        border-radius: 5px;
        animation: moveStripes 1.2s linear infinite, fillProgress 5s ease-in-out infinite;
    }

@keyframes moveStripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 0;
    }
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}





.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg); /* если нужно, чтобы читалось сверху вниз */
}

.notification {
    display: inline-block;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    animation: fade-in-out 5s infinite;
}

.ticker {
    display: inline-block;
    animation: slideInFromRight 5s infinite;
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }
}










.bg-gray {
    background-color: var(--bs-gray-500);
}
.bg-deepblue {
    background-color: #4c6370;
}
.bg-blue {
    background-color: #5f8093;
}
.bg-yellow {
    background-color: #fff27e;
}
.bg-light-yellow {
    background-color: #f3f0d7;
}
.bg-red {
    background-color: #fba19b;
}
.bg-violet {
    background-color: var(--bs-purple);
}
.bg-green {
    background-color: #8bc34a;
}

.text-violet {
    color: var(--bs-purple);
}

.btn-info {
    background-color: #1c9db7;
    color: white;
    border: none;
}
    .btn-info:hover {
        background-color: #007a93;
        color: white;
    }

    .btn-info:disabled {
        background-color: #5da1af;
        color: #f0f0f0;
    }

    .btn-info:active {
        background-color: #00b0d3 !important;
        color: white !important;
        box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) !important;
    }

.btn-purple {
    background-color: var(--bs-purple);
    color: white;
    border: none;
}

    .btn-purple:hover {
        background-color: var(--bs-purple-dark, #5a32a3);
        color: white;
    }

    .btn-purple:disabled {
        background-color: var(--bs-purple-300, #b89edc);
        color: #f0f0f0;
    }
    .btn-purple:active {
        background-color: var(--bs-purple-dark, #5a32a3) !important;
        color: white !important;
        box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) !important;
    }


.cardStackItems {
    font-size: large;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 5px -3px #424242
}

.mySidebar {
    background: linear-gradient(45deg, #292929 25%, transparent 25%, transparent 75%, #292929 75%), linear-gradient(45deg, #292929 25%, transparent 25%, transparent 75%, #292929 75%) 0.1875em 0.1875em, radial-gradient(at 50% 0, #484847, #090909);
    background-size: 0.375em 0.375em, 0.375em 0.375em, 100% 100%;
    height: 100vh;
    position: sticky;
    top: 0;
}




.hidden {
    display: none;
}

/* Hide the default checkbox */
.myCheckbox-container input[type="checkbox"] {
    display: none;
}


.btn-xs {
    padding: .25rem .5rem; 
    font-size: .75rem; 
    line-height: 1;
    border-radius: .2rem;
}

.dropdown-menu {
    border: 2px solid orange;
    border-radius: 5px;
    padding: 5px;
}

.dropdown-item {
    margin-bottom: 3px;
    padding: 5px;
    user-select: none;
}

    .dropdown-item:hover {
        background-color: #ffedcc;
    }

.DropDownULStyle {
    max-height: 300px;
    position: absolute;
    z-index: 99999;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.DropDownLIStyle {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    list-style: square inside;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

    .pagination button {
        margin: 0 0.25rem;
        padding: 5px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #f8f9fa;
        cursor: pointer;
    }

        .pagination button.active {
            background-color: #007bff;
            color: white;
        }

        .pagination button:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }


.OnRight {
    font-weight: bold;
    text-align: right;
    display: block;
}

.keywords {
    color: gray; /* Цвет для ключевых слов */
    font-weight: bold; /* Жирный шрифт */
    text-align: center; /* Центрирование текста */
    display: block; /* Делаем элемент блочным для центрирования */
}

.scanning-started {
    color: orange; /* Цвет для сообщения о начале сканирования */
}

.scanned-files {
    color: blue; /* Цвет для сообщения об отсканированных файлах */
}

.total-files {
    color: darkgreen; /* Цвет для сообщения о количестве файлов */
}

.error-files {
    color: gray;
}

.processed-files {
    color: green; /* Цвет для сообщения об обработанных файлах */
}

.scanning-completed {
    color: green; /* Цвет для сообщения о завершении сканирования */
}

.files-not-found {
    color: red; /* Цвет для сообщения о ненайденных файлах */
}

.time-spent {
    color: blue; /* Цвет для сообщения о затраченном времени */
}

.card-body {
    width: 100%;
}

.modal-title {
    color: aliceblue;
}

.myCheckbox-big {
    width: 27px;
    height: 27px;
}


@media (max-width: 1400px) and (min-width: 0px) {
    .img-fluid {
        max-width: 150%;
    }
}
@media (max-width: 1366px) {
    .btn-group .btn {
        font-size: 0.8rem;
    }
    body {
        font-size: 0.8rem;
    }
    .input-group-text {
        font-size: 0.8rem;
    }
    .form-control {
        font-size: 0.8rem;
    }
}
/* Общие настройки для мобильных устройств */
@media (max-width: 640px) {
    .MyContent {
        left: 0;
        position: absolute;
    }
    .title {
        font-size: 15px;
    }

    .crud-container-fluid {
        background-color: transparent;
        border: 0;
        top: 50px;
    }

    .printBtn {
        display: none;
    }

    .crud-container-fluid {
        padding-left: 5px;
    }

        .crud-container-fluid .row {
            justify-content: center; /* Выравнивание кнопок по центру */
            flex-wrap: wrap; /* Разрешить перенос кнопок на следующую строку */
        }

    .col-md-5.btn-group button {
        flex: 1 1 auto; /* Кнопки занимают равное место */
        max-width: 30%;
        margin: 0 0 5px 0;
        padding: 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .btn-group .btn i {
        margin-right: 1px; /* Уменьшить расстояние между иконкой и текстом */
    }

    .btn-group {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
    }

        .btn-group .btn {
            --margin-bottom: 10px;
            --width: 100%;
        }



    .input-group {
        flex-wrap: nowrap;
    }
    /* Контейнеры */




    .thead-primary {
        border-bottom: 0;
        font-size: 14px;
    }

    

    /* Кнопки в футере */
    .page-footer {
        flex-direction: column;
        padding: 10px;
        display: none;
    }

        .page-footer strong {
            margin-bottom: 10px;
            text-align: center;
        }

        .page-footer .col-md-5,
        .page-footer .col-md-6,
        .page-footer .col-md-1 {
            width: 100%;
        }

    .cardlink {
        width: 169px;
    }
    .consent-link {
        white-space: pre-wrap; /* Разрешает перенос строк */
    }
}
