﻿/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ (:root & Base)
   ========================================================================== */
:root {
    /* Фирменные цвета MyPost */
    --mypost-orange: #ff6b00;
    --mypost-orange-dark: #e65c00;
    --mypost-gray-dark: #2b2b2b;
    --mypost-gray-muted: #6c757d;
    --mypost-success: #198754;
    --mypost-blue: #1572a1;
    --mypost-blue-dark: #0d4761;
    /* Акценты дизайна */
    --violet-accent: #7c3aed;
    --violet-brand: #6f42c1;
    --violet-dark: #4c1d95;
    --slate-blue: #607d8b;
    --slate-blue-dark: #455a64;
    --slate-blue-light: #546e7a;
    /* Кастомизация Скроллбара */
    --scrollbar-bg: #f0f2f5;
    --scrollbar-thumb: #0078d4;
    --scrollbar-thumb-hover: #005a9e;
    --scrollbar-width: 8px;
}

/* Настройки для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

/* Настройка для Chrome, Safari и Edge */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-bg);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-thumb-hover);
    }







/* Легкий эффект при наведении на превью в таблице */
.hover-zoom:hover {
    transform: scale(1.1);
}

/* Стили для модального оверлея */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75); /* Затемнение фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Чтобы окно было поверх всех элементов */
    cursor: zoom-out;
}

/* Контейнер контента */
.image-modal-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Само увеличенное изображение */
    .image-modal-content img {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        cursor: default;
    }

/* Кнопка закрытия (крестик) */
.image-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

    .image-modal-close:hover {
        color: #ccc;
    }









/* ==========================================================================
   2. КОМПОНЕНТЫ ФОРМ И ВАЛИДАЦИЯ (Forms, Inputs, Floating Labels)
   ========================================================================== */
.form-floating > .form-select {
    height: 3.5rem;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    line-height: 1.25;
    border-radius: 12px;
    color: #1e293b;
    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-size: 12px;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #64748b;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-floating > .form-select ~ label {
    transform: scale(.85) translateY(-0.75rem) translateX(0.15rem);
    color: #6c757d;
    opacity: 0.8;
}

.form-select:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    border-color: #6366f1 !important;
}

label i {
    margin-right: 4px;
    --color: #6366f1;
}

/* Кастомный контейнер для не-инпутов */
.form-floating-custom {
    position: relative;
    background-color: #f8fafc;
    border-radius: 12px;
    height: 58px;
}

    .form-floating-custom label {
        position: absolute;
        top: 0;
        left: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        color: #64748b;
        opacity: 0.85;
        transition: all 0.2s;
    }

.data-display-floating {
    padding: 1.625rem 0.75rem 0.625rem;
    color: #1e293b;
    font-size: 1rem;
}

/* Унифицированные Floating Labels */
.custom-floating {
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background-color: #f8fafb;
    transition: all 0.2s ease;
}

    .custom-floating:focus-within {
        border-color: var(--slate-blue);
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(96, 125, 139, 0.08);
    }

    .custom-floating label {
        color: #78909c;
        padding-left: 1.25rem;
    }

    .custom-floating .form-control,
    .custom-floating .form-select {
        background-color: transparent;
        padding-left: 1.25rem;
        color: #37474f;
    }

    .custom-floating.is-disabled {
        background-color: #f1f3f4;
        border-style: dashed;
        cursor: help;
    }

        .custom-floating.is-disabled label {
            color: #90a4ae;
        }

/* Поля на темном фоне (Email) */
.tracking-bright-group .input-group-text {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
}

.tracking-bright-group .form-control {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 10px 14px;
}

    .tracking-bright-group .form-control::placeholder {
        color: #64748b;
    }

    .tracking-bright-group .form-control:focus {
        background-color: #1e293b;
        border-color: #38bdf8;
        color: #ffffff;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    }

.custom-input {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    background-color: #fdfdfd;
}

    .custom-input:focus {
        border-color: var(--violet-brand);
        box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
    }

.custom-switch.form-check-input:checked {
    background-color: var(--violet-brand);
    border-color: var(--violet-brand);
}

.custom-checkbox {
    width: 19px;
    height: 19px;
    accent-color: var(--violet-accent);
    cursor: pointer;
}

.form-label-custom {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-blue-light);
    font-weight: 600;
}

/* Блок инпутов с кнопкой очистки */
.custom-input-group .form-control {
    border-color: #cfd8dc;
    background-color: #f8fafb;
    color: #455a64;
    font-size: 0.95rem;
}

/* Группа фильтра дат */
.filter-date-group {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    display: flex;
    transition: all 0.2s ease;
    justify-content: center;
}

    .filter-date-group:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
    }

.date-input-wrapper {
    display: flex;
    align-items: center;
    padding: 4px 10px;
}

.date-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-right: 8px;
    user-select: none;
}

.date-field {
    border: none !important;
    outline: none !important;
    font-size: 0.9rem;
    color: #334155;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .date-field::-webkit-calendar-picker-indicator {
        opacity: 0.5;
        cursor: pointer;
    }

.date-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 4px;
}

/* Сообщения валидации и подсказки */
.v-msg {
    font-size: 0.75rem;
    color: #d32f2f;
    margin-top: 4px;
    margin-left: 5px;
}

.custom-form-container .v-msg {
    color: #cf6679; /* Специфичный оверрайд для темного контейнера формы */
}

.validation-inside-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 500;
    line-height: 1;
    color: red;
}

.validation-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-right: 5px;
    letter-spacing: 0.2px;
}

    .validation-hint i {
        color: #f59e0b;
    }




/* ==========================================================================
   4. КОНТЕЙНЕРЫ, СЕКЦИИ И КАРТОЧКИ (Layout, Cards, Sections)
   ========================================================================== */
.custom-form-container {
    background: #ffffff;
    border-radius: 12px;
}

.modern-section {
    padding: 0.5rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

/* Декоративные секции с наклоном */
.section-summary {
    border-left: 4px solid var(--violet-accent);
    background: repeating-linear-gradient(-45deg, #f8f5ff, #f8f5ff 15px, #ffffff 15px, #ffffff 30px);
    border-radius: 4px 16px 16px 4px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06);
    border: 1px solid #e2e8f0;
    border-left: none;
}

.section-sender {
    border-left: 4px solid #ef4444;
    background: repeating-linear-gradient(-45deg, #fef2f2, #fef2f2 12px, #ffffff 12px, #ffffff 24px);
    border-radius: 4px 12px 12px 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.05);
}

.section-recipient {
    border-left: 4px solid #22c55e;
    background: repeating-linear-gradient(-45deg, #f0fdf4, #f0fdf4 12px, #ffffff 12px, #ffffff 24px);
    border-radius: 4px 12px 12px 4px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.05);
}

.assignment-section {
    background-color: #eceff1;
    border-radius: 10px;
    border-left: 4px solid #78909c;
}

/* Базовые карточки */
.card-glass {
    background: #ffffff;
    border: 1px solid #cfd8dc;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-details-box {
    background: #eceff1;
    border: 1px solid #b0bec5;
    border-radius: 12px;
}

.boss-assignment-box {
    background-color: #f1f4f5;
    border-radius: 12px;
    border: 1px dashed #b0bec5;
}

.boss-assignment-card {
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.assignment-header {
    background-color: var(--slate-blue);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assignment-body {
    padding: 15px;
    background-color: #fcfdfe;
}

.logic-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

    .logic-card.border-violet,
    .border-violet {
        border-color: var(--violet-brand) !important;
        box-shadow: 0 4px 15px rgba(111, 66, 193, 0.1) !important;
    }

.profile-card-glow {
    border-left: 4px solid #5d5fef !important;
    background: linear-gradient(90deg, #f8f9ff 0%, #ffffff 100%);
}


/* ==========================================================================
   5. ЧЕКБОКСЫ-КАРТОЧКИ И ПЛИТКИ (Interactive Tiles)
   ========================================================================== */
.checkbox-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

    .checkbox-card:hover:not(.disabled-card) {
        border-color: #94a3b8;
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .checkbox-card.active {
        border-color: var(--violet-accent);
        background-color: #f5f3ff;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    }

        .checkbox-card.active .icon-accent {
            color: var(--violet-accent);
        }

        .checkbox-card.active span {
            color: var(--violet-dark);
        }

    .checkbox-card.disabled-card {
        opacity: 0.5;
        background: #f1f5f9;
        border-color: #cbd5e1;
        cursor: not-allowed;
        pointer-events: none;
    }

.icon-accent {
    color: #475569;
    font-size: 1.1rem;
}

/* Модерн чекбокс-карточка */
.modern-checkbox-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    background: white;
}

    .modern-checkbox-card.active {
        border-color: var(--violet-brand);
        background: rgba(111, 66, 193, 0.05);
    }

    .modern-checkbox-card:hover:not(.disabled) {
        border-color: var(--violet-brand);
        transform: translateY(-1px);
    }

/* Кастомные чекбоксы-плитки */
.option-check {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .option-check label {
        cursor: pointer;
        font-weight: 600;
        font-size: 0.9rem;
        color: #4a5568;
    }

    .option-check input {
        position: absolute;
        opacity: 0;
    }

    .option-check.active {
        background: #f3f0ff;
        border-color: var(--violet-brand);
    }

        .option-check.active label {
            color: var(--violet-brand);
        }

    .option-check.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Информационные плитки */
.info-tile {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f8f9fa;
}

    .info-tile.highlight {
        background: #f0f4ff;
        border-left: 3px solid #5d5fef;
    }

.tile-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8c98a4;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tile-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

/* Переключатели статусов */
.status-badge-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

    .status-badge-switch.active {
        background: #f3f0ff;
        border-color: var(--violet-brand);
        color: var(--violet-brand);
    }


/* ==========================================================================
   6. РЕЕСТРЫ И ТАБЛИЦЫ (Tables & Viewports)
   ========================================================================== */
.table-responsive {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
}

.main-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.5rem;
    border-bottom: 2px solid #edf2f7;
}

.hover-row-effect:hover {
    background-color: #f8fafc !important;
    transition: background-color 0.2s ease;
}

.indices-container {
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.table-scroll-viewport {
    height: 220px;
    overflow-y: auto;
}

.custom-indices-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

    .custom-indices-table thead th {
        background-color: var(--slate-blue);
        color: white;
        font-weight: 500;
        padding: 10px;
        position: sticky;
        top: 0;
        z-index: 1;
    }

.row-load {
    background-color: rgba(236, 239, 241, 0.5);
}

.row-data {
    background-color: #ffffff;
}

/* Кастомные интерактивные элементы в таблицах */
.custom-check {
    accent-color: var(--violet-brand);
    width: 18px;
    height: 18px;
}

    .custom-check.urgency {
        accent-color: #f59e0b;
    }

    .custom-check.delivery {
        accent-color: #10b981;
    }

/* Статус-бар реестра */
.indices-status-bar {
    background-color: #f8fafb;
    border-top: 1px solid #cfd8dc;
    padding: 12px;
}

.status-item {
    font-size: 0.85rem;
    color: #546e7a;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .status-item i {
        font-size: 1rem;
    }

.status-danger {
    color: #c62828 !important;
}

    .status-danger strong {
        color: #c62828;
    }





/* ==========================================================================
   8. ИТОГОВЫЕ, ФИНАНСОВЫЕ ПАНЕЛИ И БЕЙДЖИ (Finance & Badges)
   ========================================================================== */
.total-dark-panel {
    background: #0f172a;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.total-price-bright {
    font-weight: 900;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.total-currency-bright {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
}

.summary-bar {
    background: #fdf2f2;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    border-top: 1px solid #fee2e2;
}

.summary-block {
    min-width: 200px;
    transition: all 0.2s ease;
}

    .summary-block .text-label {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #6c757d;
        margin-bottom: 4px;
    }

    .summary-block .text-value {
        font-size: 1.4rem;
        font-weight: 800;
        color: #212529;
    }

    .summary-block .currency {
        font-size: 0.9rem;
        font-weight: 400;
    }

.cost-display {
    text-align: right;
}

.cost-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
}

.cost-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: black;
}

/* Бейджи и значки */
.badge-amount {
    background: rgb(0 76 141 / 20%);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900 !important;
}

.selected-row .badge-amount {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.badge-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

.badge-load {
    background-color: #90a4ae;
    color: white;
    font-size: 0.7rem;
}

.badge-data {
    background-color: #cfd8dc;
    color: #455a64;
    font-size: 0.7rem;
}


/* ==========================================================================
   9. УТИЛИТЫ, СТАТУСЫ И МИКРО-КОМПОНЕНТЫ (Utilities & Micro-styles)
   ========================================================================== */
.bg-danger-soft {
    background: #fee2e2;
}

.bg-success-soft {
    background: #e6fcf5;
}

.bg-secondary-soft {
    background-color: #f1f5f9;
}

.bg-warning-soft {
    background-color: #fff8eb;
}

.bg-light-soft {
    background-color: #f9fbfd;
}

.bg-aliceblue {
    background: #f0f8ff;
}

.bg-light-blue {
    background-color: #f0f4ff;
}

.bg-dark {
    background-color: #1a202c !important;
}

.bg-soft-violet {
    background-color: #f3f0ff;
    color: var(--violet-brand);
}

.bg-soft-violet-light {
    background-color: #f8f6ff;
}

.bg-soft-secondary {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 500;
}

.text-violet {
    color: var(--violet-brand) !important;
}

.text-status-accept {
    color: #64748b;
}

.text-status-delivered {
    color: #10b981;
}

.text-status-return {
    color: #ef4444;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.cursor-pointer {
    cursor: pointer;
}

.empty-state {
    padding: 5px;
    border: 1px dashed #cfd8dc;
    border-radius: 4px;
    text-align: center;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}





/* Имитация состояния disabled общего назначения */
.is-disabled {
    pointer-events: none;
    filter: saturate(0.6);
    opacity: 0.45;
    cursor: default;
}

input[type="checkbox"]:disabled {
    filter: none !important;
}

/* QR-код компоненты */
.qr-wrapper {
    background: white;
    padding: 10px;
    border-radius: 15px;
    display: inline-block;
    position: relative;
    border: 1px solid #eee;
}

    .qr-wrapper img {
        width: 140px;
        height: 140px;
        object-fit: contain;
    }

.qr-overlay-text {
    font-size: 10px;
    font-weight: 800;
    color: var(--violet-brand);
    margin-top: 5px;
    letter-spacing: 1px;
}

.qr-placeholder {
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e2e8f0;
    border-radius: 15px;
}


/* ==========================================================================
   1. ОБЩИЕ СТИЛИ И КОМПОНЕНТЫ
   ========================================================================== */

/* Плавный фокус для инпута */
.custom-focus:focus {
    box-shadow: none;
    background-color: #fff;
}

.bag-container {
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

/* Стили заголовка */
.header-icon-box {
    background: #5d5fef;
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(93, 95, 239, 0.3);
}

/* Поля данных */
.form-label-custom {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8c98a4;
    margin-bottom: 0.5rem;
    display: block;
}

.data-display {
    padding: 0.6rem 1rem;
    background: #f1f4f8;
    border-radius: 10px;
    font-weight: 600;
    color: #2d3748;
}

.custom-select-styled {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

    .custom-select-styled:focus {
        border-color: #5d5fef;
        box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.1);
    }

.locked-row {
    background-color: #fafbfc;
}

/* Итоговая панель */
.summary-item {
    display: flex;
    flex-direction: column;
}

    .summary-item .label {
        font-size: 0.8rem;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .summary-item .value {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1a202c;
    }

.main-value {
    color: #5d5fef !important;
}

/* Чекбоксы (Унифицировано, удален дубликат) */
.form-check-input:checked {
    background-color: #5d5fef;
    border-color: #5d5fef;
}

/* Курсор-указатель для элементов взаимодействия */
.cursor-pointer {
    cursor: pointer;
}

/* Плавный переход для кнопок (Унифицировано, удален дубликат) */
.transition-base {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .transition-base:hover:not(:disabled) {
        transform: translateY(-1px);
        filter: brightness(1.1);
    }

    .transition-base:active {
        transform: translateY(0);
    }

.custom-checkbox-wrapper {
    user-select: none;
    transition: background-color 0.2s;
    border-radius: 8px;
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

    .custom-file-upload:hover {
        background: #0d6efd;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2) !important;
    }

/* Контейнер для фото */
.avatar-upload-container {
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}

    .avatar-upload-container:hover {
        transform: scale(1.02);
    }

/* Бейдж для редактирования фото */
.avatar-edit-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0d6efd;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.2s ease;
}

    .avatar-edit-badge:hover {
        background: #0a58ca;
        transform: rotate(15deg);
    }

/* Настройка полей ввода */
.form-control:disabled,
.form-select:disabled {
    border-bottom: 1px dashed #dee2e6 !important;
}

/* Линия между колонками на десктопе */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #f1f1f1 !important;
    }
}

/* Плавное появление строк таблицы */
.transition-row {
    transition: background-color 0.2s ease;
}

    .transition-row:hover {
        background-color: #f8fbff !important;
    }

/* Анимация для блока помощи */
.animate__fadeInLeft {
    animation: fadeInLeft 0.3s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Скроллбар для таблицы */
.table-responsive::-webkit-scrollbar {
    width: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Мягкие цвета для алертов */
.alert-soft-danger {
    background-color: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.alert-soft-warning {
    background-color: #fffaf0;
    color: #dd6b20;
    border: 1px solid #feebc8;
}

/* Контейнер футера */
.deluxe-footer {
    background: #1a1d21;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Блок согласия */
.consent-block {
    display: flex;
    align-items: center;
    user-select: none;
}

.consent-label {
    margin-left: 12px;
    color: #000000;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
}





/* Иконка глаза */
.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;
    }

/* Контейнер правил пароля */
.password-rules-container {
    background: linear-gradient(145deg, #1e1e2d, var(--bs-gray-600));
    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;
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

.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;
}

.section {
    padding: 1px;
    border-radius: 5px;
    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;
}

/* ==========================================================================
   СКЕВОМОРФНЫЕ СВЕТОДИОДНЫЕ ИНДИКАТОРЫ СТАТУСА СЕРВИСА
   ========================================================================== */

/* Зеленый активный светодиод (Online) */
.online-circle {
    top: 6px;
    position: relative;
    color: transparent;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    /* Выпуклая изумрудная линза со точечным бликом */
    background: radial-gradient(circle at 35% 35%, #a7f3d0 0%, #10b981 45%, #047857 100%) !important;
    border: 1px solid #065f46;
    /* Посадочное металлическое гнездо + внутренний блик + внешний неоновый ореол */
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px #1e293b, 0 0 8px rgba(16, 185, 129, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    animation: pulse 1.8s infinite ease-in-out;
}

/* Красный аварийный/сигнальный светодиод (Offline) */
.offline-circle {
    top: 6px;
    position: relative;
    color: transparent;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    /* Выпуклая рубиновая линза */
    background: radial-gradient(circle at 35% 35%, #fecdd3 0%, #ef4444 45%, #991b1b 100%) !important;
    border: 1px solid #7f1d1d;
    /* Металлическая окантовка + глубокое красное свечение */
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px #1e293b, 0 0 8px rgba(239, 68, 68, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Анимация пульсации светового потока диода */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px #1e293b, 0 0 6px rgba(16, 185, 129, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: scale(1.08);
        box-shadow: inset 0 1px 3px rgba(255, 255, 255, 1), inset 0 -1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px #1e293b, 0 0 14px rgba(16, 185, 129, 0.95), 0 0 22px rgba(52, 211, 153, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px #1e293b, 0 0 6px rgba(16, 185, 129, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

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;
}

.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;
}

    .cards:hover {
        box-shadow: 0px 9px 5px -3px #424242;
    }

.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;
    }

.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;
}



.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;
    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);
    }
}

.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;
}

    .custom-select.filled {
        background-color: #E0F7FA;
        border-color: #CCCCCC;
    }

    .custom-select:focus {
        border-color: #2980B9;
    }

.modal-content {
    background-color: #F0F0F0;
    box-shadow: 0 0 0 80em #00000091, 0 0 0 0.2em #dedede;
}

.serviceTitle {
    margin-top: -145px;
    background-color: #ffc107;
}

.cardHead {
    color: white;
    position: relative;
    background-color: #607D8B;
    border-radius: 5px;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 5px -3px #424242;
    margin-bottom: 5px;
}

.cardDetails {
    margin-top: 30px;
    color: #333333;
    position: relative;
    background-color: #d7dfe1;
    border-radius: 5px;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 5px -3px #424242;
}

.button-container {
    position: absolute;
    top: 10px;
    right: 50px;
    transform: translateX(-50%);
    width: 50px;
}

.cardServices-container {
    position: relative;
    top: -10px;
    right: 0px;
    z-index: 2;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px;
    background-color: #f8f9fa;
    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;
}

.selected-row {
    background-color: #0088b48a;
}

.checked-row {
    background-color: #fff3cd;
}

.expired-row {
    background-color: #f4433694;
}

.toast-container {
    z-index: 9999;
    animation: toast 0.5s ease-out;
}

@keyframes toast {
    0% {
        transform: translateX(100px);
    }

    100% {
        transform: translateY(0);
    }
}

.toast-body {
    background: #f5f5f57d;
}

.spinner {
    border: 8px solid silver;
    border-top: 8px solid #1572a1;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 700ms linear infinite;
    position: initial;
    background: white;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.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;
    }
}

.Table-LastEdit {
    min-height: 230px;
    max-height: 230px;
    overflow-y: auto;
    margin-top: 0px;
    height: 230px;
}

.bg-gray {
    background-color: var(--bs-gray-500);
}

.bg-yellow {
    background-color: #fff27e;
}

.bg-red {
    background-color: #fba19b;
}

.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;
}

.myCheckbox-container input[type="checkbox"] {
    display: none;
}

/* Из базового селектора убрано дублирование размеров */
.myCheckbox {
    width: 18px;
    height: 18px;
    background-color: #eee;
    border-radius: 10px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.myCheckbox-big {
    width: 27px;
    height: 27px;
    background-color: #eee;
    border-radius: 10px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

    .myCheckbox:before,
    .myCheckbox-big:before {
        content: '';
        position: absolute;
        left: 12px;
        top: 12px;
        width: 16px;
        height: 16px;
        border: solid #fff;
        border-width: 0 4px 4px 0;
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity 0.3s;
    }

.myCheckbox-container input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #4caf50;
}

    .myCheckbox-container input[type="checkbox"]:checked + .custom-checkbox:before {
        opacity: 1;
    }

.myCheckbox:hover,
.myCheckbox-big:hover {
    background-color: #ddd;
}

.myCheckbox:active,
.myCheckbox-big:active {
    background-color: #ccc;
}

.btn-xs {
    padding: .25rem .5rem;
    font-size: .75rem;
    line-height: 1;
    border-radius: .2rem;
}

.bg-green {
    background-color: #8bc34a;
}

.bg-light-yellow {
    background-color: #f3f0d7;
}

.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;
    }



.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;
}

@media (max-width: 1400px) and (min-width: 0px) {
    .img-fluid {
        max-width: 150%;
    }
}

.calc {
    display: flex;
}

/* Общие настройки для мобильных устройств */
@media (max-width: 640px) {
    .MyContent {
        left: 0;
        position: absolute;
    }

    .title {
        font-size: 15px;
    }

    .crud-container-fluid {
        background-color: transparent;
        border: 0;
        top: 50px;
    }

    .labelName {
        display: none;
    }

    .circle {
        display: none;
    }

    .calc {
        display: none;
    }

    .qr-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .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%;
    }

    .input-group {
        flex-wrap: nowrap;
    }

    .Table-LastEdit {
        min-height: 230px;
        top: 0;
    }

    .myCheckbox {
        width: 20px;
        height: 20px;
    }

    .myCheckbox-big {
        width: 47px;
        height: 47px;
        margin-right: 15px;
    }

    .cardlink {
        width: 169px;
    }

    .consent-link {
        white-space: pre-wrap;
    }
}

/* Контейнер-карточка */
.table-card {
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Фиксированная шапка карточки */
.table-card-header {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

.bg-blue {
    background-color: #748ea9 !important;
}

.bg-violet {
    background-color: #9851f7 !important;
}



/* ==========================================================================
   10. АНИМАЦИИ И МЕДИА-ЗАПРОСЫ (Animations & Media Queries)
   ========================================================================== */
.animate__fadeIn {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .printBtn {
        position: relative;
        top: 0px;
    }

    .btn-text {
        display: none;
    }
}
















