﻿.table-container {
    margin-top: 0px;
    max-height: 730px;
    max-width: 1225px;
    min-width: 900px;
}

.deluxe-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #2c3238;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 12px 8px;
    border-bottom: 2px solid rgba(13, 110, 253, 0.2) !important;
}
/* Общие настройки таблицы внутри контейнера */
.deluxe-table-inner {
    border-spacing: 0 4px; /* Эффект раздельных строк */
    background: transparent;
}

    .deluxe-table-inner thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #2c3238;
        color: #6c757d;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none;
        padding: 12px 8px;
    }

    /* Стили строк */
    .deluxe-table-inner tbody tr {
        background: rgba(255, 255, 255, 0.02);
        transition: transform 0.2s ease, background 0.2s ease;
    }

        .deluxe-table-inner tbody tr:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(4px); /* Легкий сдвиг при наведении для динамики */
        }

.table-solid {
    margin-right: 5px;
    margin-top: 45px;
    min-height: 729px;
    max-height: 729px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: linear-gradient(145deg, #1e2125, #16191c);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

    /* Строки и ячейки */
    .table-solid tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        transition: all 0.2s ease;
    }

        .table-solid tbody tr:hover {
            background-color: rgba(13, 110, 253, 0.05); /* Легкий синий отблеск при наведении */
        }

    .table-solid tbody td {
        --padding: 12px;
        color: #ced4da;
        vertical-align: middle;
        font-size: 0.9rem;
    }

    /* Кастомный скроллбар для основной таблицы */
    .table-solid::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .table-solid::-webkit-scrollbar-track {
        background: transparent;
    }

    .table-solid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

        .table-solid::-webkit-scrollbar-thumb:hover {
            background: #6f42c1;
        }

.table-solid-modal {
    margin-top: 12px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    border-radius: 8px;
    background-color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

    /* Стилизация самой таблицы внутри контейнера */
    .table-solid-modal table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 0;
    }

    /* Строки таблицы */
    .table-solid-modal tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        transition: background-color 0.2s ease;
    }

        .table-solid-modal tbody tr:hover {
            background-color: rgba(255, 255, 255, 0.02);
        }

    .table-solid-modal tbody td {
        padding: 10px 8px;
        color: #e9ecef;
        font-size: 0.9rem;
        vertical-align: middle;
    }

    /* Тонкий современный скроллбар */
    .table-solid-modal::-webkit-scrollbar {
        width: 6px;
    }

    .table-solid-modal::-webkit-scrollbar-track {
        background: transparent;
    }

    .table-solid-modal::-webkit-scrollbar-thumb {
        background: #495057;
        border-radius: 10px;
    }

        .table-solid-modal::-webkit-scrollbar-thumb:hover {
            background: #6f42c1;
        }

/* Статусы через индикаторы-точки */
.status-paid .badge-dot {
    background-color: #198754 !important;
    box-shadow: 0 0 8px #198754;
}

.status-pending .badge-dot {
    background-color: #ffc107 !important;
    box-shadow: 0 0 8px #ffc107;
}

.status-expired .badge-dot {
    background-color: #dc3545 !important;
    box-shadow: 0 0 8px #dc3545;
}

.status-frozen .badge-dot {
    background-color: #0dcaf0 !important;
    box-shadow: 0 0 8px #0dcaf0;
}
.status-annuled .badge-dot {
    background-color: #000000 !important;
    box-shadow: 0 0 8px #ffffff;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Долг с эффектом свечения */
.text-danger-glow {
    color: #ff6b6b;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

/* Сгоревшие занятия */
.badge-burned {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.hover-danger:hover {
    color: #dc3545 !important;
    transition: 0.3s;
}

   

/* Стили индикаторов статуса */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 0;
}

    .status-indicator.visited {
        color: #198754;
    }
    /* Зеленый */
    .status-indicator.canceled {
        color: #dc3545;
    }
    /* Красный */
    .status-indicator.pending {
        color: #adb5bd;
    }
/* Серый */

/* Мягкая подсветка всей строки для посещенных занятий */
.row-visited {
    border-left: 3px solid #198754;
}

.row-canceled {
    opacity: 0.6; /* Приглушаем отмененные записи */
    text-decoration: line-through rgba(220, 53, 69, 0.3);
}






.status-visited {
    /* Более мягкий изумрудный */
    border-left: 3px solid #2ecc71;
    background: rgba(46, 204, 113, 0.05) !important;
}

.status-waiting {
    /* Теплый янтарный вместо ярко-желтого */
    border-left: 3px solid #f1c40f;
    background: rgba(241, 196, 15, 0.05) !important;
}

.status-canceled {
    /* Глубокий коралловый вместо чисто красного */
    border-left: 3px solid #e74c3c;
    background: rgba(231, 76, 60, 0.05) !important;
}

.status-absent {
    /* Холодный серый для контраста */
    border-left: 3px solid #95a5a6;
    background: rgba(149, 165, 166, 0.05) !important;
}
.status-purple {
    border-left: 4px solid #a29bfe !important;
    background: rgb(165 111 193 / 9%) !important;
}
.status-blue {
    border-left: 4px solid #0d6efd !important;
    background: rgb(76 115 201 / 9%) !important;
}
[class^="status-"] {
    box-shadow: inset 5px 0 10px -5px rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.status-visited:hover {
    box-shadow: inset 10px 0 15px -10px rgba(46, 204, 113, 0.3);
}

/* Красивые бейджи-пилюли */
.status-pill {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-visited .status-pill {
    color: #198754;
    border-color: rgba(25, 135, 84, 0.3);
}

.status-waiting .status-pill {
    color: #fdce41;
    border-color: rgba(255, 193, 7, 0.3);
}

.status-canceled .status-pill {
    color: #ff4b4b;
    border-color: rgb(255 7 7 / 30%);
}

/* Базовая строка */
.deluxe-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Выбранная строка */
.row-selected {
    background: rgb(13 110 253 / 25%) !important;
    border-left: 3px solid #0d6efd !important;
}

/* Тонкая настройка удаления */
.hover-full:hover {
    opacity: 1 !important;
    transform: scale(1.2);
    transition: 0.2s;
}

/* Активная, доступная для клика строка */
.row-active {
    background: rgba(255, 255, 255, 0.02); /* Едва заметный фон */
    border-left: 3px solid transparent; /* Резервируем место под полоску, чтобы не дергалось при выборе */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* Эффект при наведении на активную строку */
    .row-active:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        border-left: 3px solid rgba(13, 110, 253, 0.5); /* Полупрозрачный синий борт */
        transform: translateX(2px); /* Легкий сдвиг вправо для динамики */
    }

        /* Если строка активна И на нее навели курсор, сделаем текст чуть ярче */
        .row-active:hover td {
            color: #ffffff !important;
        }

/* Для сравнения: состояние заблокированной строки */
.row-disabled {
    filter: grayscale(1) opacity(0.4);
    cursor: not-allowed !important;
    --pointer-events: none; /* Чтобы нельзя было кликнуть */
    opacity: 0.4;
    cursor: not-allowed !important;
    background: rgba(0, 0, 0, 0.1) !important;
}





/* Мягкая подсветка для платежей в тот же день */
.payment-same-day {
    border-left: 3px solid #ffc107 !important;
    background: rgba(255, 193, 7, 0.03) !important;
}

/* Стиль для аннулированных платежей */
.payment-annulled {
    background: rgba(220, 53, 69, 0.02) !important;
}

    .payment-annulled .text-success-glow {
        color: #6c757d; /* Убираем свечение суммы, если платеж отменен */
        text-decoration: line-through;
        text-shadow: none;
    }

/* Свечение для суммы (деньги должны быть заметны) */
.text-success-glow {
    color: #2ecc71 !important;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

/* Комментарии */
.cell-comment {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

    .cell-comment:hover {
        white-space: normal; /* Разворачиваем при наведении */
        overflow: visible;
    }




/* Подсветка суммы начисления */
.text-primary-glow {
    color: #3498db !important;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

/* Бейдж для процента */
.badge-percent {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace; /* Программистский стиль */
}

/* Состояние аннулированной зарплаты */
.salary-annulled {
    opacity: 0.5;
    background: rgba(220, 53, 69, 0.02) !important;
}

    .salary-annulled .text-primary-glow {
        color: #6c757d !important;
        text-shadow: none;
        text-decoration: line-through;
    }

/* Эффект свечения для долга */
.text-danger-glow {
    color: #e74c3c !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
    font-weight: bold;
}




/* Контейнер для сообщения об ошибке/валидации */
.modern-alert-wrapper {
    padding: 10px;
    background: rgba(231, 76, 60, 0.05); /* Очень легкий красный фон */
}

.modern-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #2c1a1a; /* Темно-бордовый под тон темы */
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: #ff7675;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для ячеек остатков */
.salary-pending {
    border-left: 3px solid #3498db !important;
}

.amount-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: #6c757d;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

    .amount-badge.positive {
        color: #3498db;
        background: rgba(52, 152, 219, 0.1);
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
    }

.badge-debt {
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: #6c757d;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}
/* Маленький "аватар" из первой буквы имени — добавляет эстетики */
.avatar-alt {
    width: 24px;
    height: 24px;
    background: #3d444b;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}


/* Бейдж для типа тарифа */
.type-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #adb5bd;
}

/* Контурный бейдж для периода */
.badge-outline {
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: #74b9ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Кнопка удаления в стиле Deluxe */
.btn-deluxe-danger {
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 4px;
    transition: all 0.2s;
}

    .btn-deluxe-danger:hover {
        background: #dc3545;
        color: white;
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    }

/* Отключаем ховер для чисто информационных строк в детализации, если нужно */
.no-hover:hover {
    background: transparent !important;
    transform: none !important;
}


