/* ============================================
   Staff Management Module Styles (префикс ass_)
   Адаптация под темы сайта и мобильные устройства
   ============================================ */
/* Стили для кликабельных ссылок */
.ass-staff-avatar-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.ass-staff-name-link {
    text-decoration: none;
    display: block;
}

.ass-staff-name-link:hover .ass-staff-name {
    text-decoration: underline;
    color: var(--orange);
}

/* Если нужно убрать подчеркивание при наведении */
.ass-staff-name-link:hover {
    text-decoration: none;
}
/* ========== ОСНОВНЫЕ СТИЛИ КАРТОЧЕК ========== */
.ass-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.ass-staff-card {
    background: var(--bloki);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--vtorostepennyy-cvet-bloka);
}

.ass-staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== АВАТАР ========== */
.ass-staff-avatar {
    padding: 20px;
    text-align: center;
    background: var(--cvet-vnutri-bloka);
    border-bottom: 1px solid var(--vtorostepennyy-cvet-bloka);
}

.ass-staff-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--orange);
    transition: transform 0.2s ease;
}

.ass-staff-card:hover .ass-staff-avatar-img {
    transform: scale(1.02);
}

/* ========== ИНФОРМАЦИЯ ========== */
.ass-staff-info {
    padding: 15px;
    text-align: center;
}

.ass-staff-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--glavnyy-tekst);
    margin-bottom: 6px;
}

.ass-staff-position {
    font-size: 14px;
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 8px;
}

.ass-staff-server {
    font-size: 12px;
    color: var(--vtorostepennyy-tekst);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ass-staff-server i {
    font-size: 12px;
}

/* ========== VK ССЫЛКА ========== */
.ass-staff-vk {
    margin-top: 8px;
}

.ass-staff-vk-link {
    color: #4c75a3;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.ass-staff-vk-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ========== КНОПКИ ========== */
.ass-staff-warnings-btn {
    padding: 12px 15px;
    text-align: center;
    border-top: 1px solid var(--vtorostepennyy-cvet-bloka);
    background: var(--cvet-vnutri-bloka);
}

.ass-staff-warning-btn {
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ass-staff-warning-btn:hover {
    opacity: 0.85;
}

.ass-staff-service-btn {
    background: var(--vtorostepennyy-cvet-bloka);
    color: var(--glavnyy-tekst);
    border: 1px solid var(--orange);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.ass-staff-service-btn:hover {
    background: var(--orange);
    color: var(--cvet-na-akcente);
}

/* ========== МОДАЛЬНОЕ ОКНО ПРЕДУПРЕЖДЕНИЙ ========== */
.ass-warnings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.ass-warnings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bloki);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.ass-warnings-modal-header {
    padding: 15px 20px;
    background: var(--cvet-vnutri-bloka);
    border-bottom: 1px solid var(--vtorostepennyy-cvet-bloka);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ass-warnings-modal-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--glavnyy-tekst);
}

.ass-warnings-modal-header h4 i {
    color: var(--orange);
    margin-right: 8px;
}

.ass-warnings-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--vtorostepennyy-tekst);
    transition: color 0.2s;
    line-height: 1;
}

.ass-warnings-modal-close:hover {
    color: var(--glavnyy-tekst);
}

.ass-warnings-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.ass-warnings-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--vtorostepennyy-cvet-bloka);
    text-align: right;
}

/* ========== ЭЛЕМЕНТЫ ПРЕДУПРЕЖДЕНИЙ ========== */
.ass-warning-item {
    background: var(--cvet-vnutri-bloka);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--yellow);
}

.ass-warning-reason {
    margin-bottom: 8px;
    color: var(--glavnyy-tekst);
    font-size: 14px;
    line-height: 1.4;
}

.ass-warning-meta {
    font-size: 11px;
    color: var(--vtorostepennyy-tekst);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ass-warning-meta i {
    font-size: 11px;
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
.ass-staff-table {
    width: 100%;
    background: var(--bloki);
    border-radius: 8px;
    overflow: hidden;
}

.ass-staff-table th,
.ass-staff-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--vtorostepennyy-cvet-bloka);
    vertical-align: middle;
}

.ass-staff-table th {
    background: var(--cvet-vnutri-bloka);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--glavnyy-tekst);
}

.ass-staff-table tr:hover td {
    background: var(--cvet-vnutri-bloka);
}

/* ========== КОМПОНЕНТЫ ПОИСКА ========== */
.ass-user-search-container {
    position: relative;
}

.ass-user-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bloki);
    border: 1px solid var(--vtorostepennyy-cvet-bloka);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ass-user-search-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--vtorostepennyy-cvet-bloka);
}

.ass-user-search-item:hover {
    background: var(--cvet-vnutri-bloka);
}

.ass-user-search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ass-user-search-name {
    color: var(--glavnyy-tekst);
}

/* ========== КНОПКИ АДМИНКИ ========== */
.ass-admin-btn {
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ass-admin-btn:hover {
    opacity: 0.85;
}

.ass-admin-btn-warning {
    background: var(--yellow);
    color: #000;
}

.ass-admin-btn-danger {
    background: #dc3545;
    color: #fff;
}

.ass-admin-btn-info {
    background: #17a2b8;
    color: #fff;
}

/* ========== ЗАГРУЗЧИК ========== */
.ass-loader {
    text-align: center;
    padding: 40px;
    color: var(--vtorostepennyy-tekst);
}

.ass-loader::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--vtorostepennyy-cvet-bloka);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: ass-spin 0.8s linear infinite;
}

@keyframes ass-spin {
    to { transform: rotate(360deg); }
}

/* ========== ПУСТОЙ ЭЛЕМЕНТ ========== */
.ass-empty-element {
    text-align: center;
    padding: 40px 20px;
    color: var(--vtorostepennyy-tekst);
    font-size: 14px;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.ass-notification-area {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
}

.ass-notification {
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    animation: ass-slide-in 0.3s ease;
    background: var(--bloki);
    color: var(--glavnyy-tekst);
    border-left: 4px solid;
}

.ass-notification-success {
    border-left-color: #28a745;
}

.ass-notification-error {
    border-left-color: #dc3545;
}

.ass-notification-info {
    border-left-color: var(--orange);
}

@keyframes ass-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ========== */
@media (max-width: 768px) {
    .ass-staff-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .ass-staff-avatar-img {
        width: 80px;
        height: 80px;
    }
    
    .ass-staff-name {
        font-size: 16px;
    }
    
    .ass-staff-position {
        font-size: 13px;
    }
    
    /* Админ-таблица на мобильных */
    .ass-staff-table,
    .ass-staff-table thead,
    .ass-staff-table tbody,
    .ass-staff-table th,
    .ass-staff-table td,
    .ass-staff-table tr {
        display: block;
    }
    
    .ass-staff-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .ass-staff-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--vtorostepennyy-cvet-bloka);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .ass-staff-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border-bottom: 1px solid var(--vtorostepennyy-cvet-bloka);
    }
    
    .ass-staff-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--orange);
        margin-right: 15px;
    }
    
    /* Модальное окно на мобильных */
    .ass-warnings-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .ass-warnings-modal-header h4 {
        font-size: 16px;
    }
    
    .ass-notification-area {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ========== ПЛАНШЕТЫ ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .ass-staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}








/* ============================================
   ADEST - Admin Staff Management Styles
   VK Dark Theme Colors
   ============================================ */

/* ========== КОНТЕЙНЕР ========== */
.adest-container {
    padding: 20px;
    background: #0a0a0a;
    min-height: 100vh; /* Вся высота экрана */
    width: 100%;
    box-sizing: border-box;
}

/* ========== ЗАГОЛОВОК ========== */
.adest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.adest-header-title {
    font-size: 24px;
    font-weight: 600;
    color: #e1e3e6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adest-header-actions {
    display: flex;
    gap: 10px;
}

/* ========== ТАБЛИЦА ========== */
.adest-table-wrapper {
    overflow-x: auto;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.adest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.adest-table th {
    text-align: left;
    padding: 15px;
    background: #2c2c2c;
    color: #e1e3e6;
    font-weight: 600;
    border-bottom: 1px solid #3a3a3a;
}

.adest-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2c2c2c;
    color: #e1e3e6;
    vertical-align: middle;
}

.adest-table-row:hover {
    background: #2c2c2c;
}

.adest-status-inactive {
    opacity: 0.7;
    background: rgba(220, 53, 69, 0.1);
}

.adest-status-active {
    background: transparent;
}

/* ========== БЭЙДЖИ ========== */
.adest-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.adest-badge-success {
    background: #2e7d32;
    color: #e1e3e6;
}

.adest-badge-danger {
    background: #c62828;
    color: #e1e3e6;
}

/* ========== ПОЛЬЗОВАТЕЛЬ ========== */
.adest-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adest-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.adest-user-name {
    color: #e1e3e6;
}

/* ========== УСЛУГИ ========== */
.adest-service-tag {
    background: #528bff;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
}

.adest-service-none {
    color: #8f8f8f;
    font-size: 12px;
}

/* ========== КНОПКИ ========== */
.adest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.adest-btn i {
    font-size: 14px;
}

.adest-btn-primary {
    background: #528bff;
    color: #ffffff;
}

.adest-btn-primary:hover {
    background: #3a6fd9;
}

.adest-btn-default {
    background: #3a3a3a;
    color: #e1e3e6;
}

.adest-btn-default:hover {
    background: #4a4a4a;
}

.adest-btn-danger {
    background: #c62828;
    color: #ffffff;
}

.adest-btn-danger:hover {
    background: #b71c1c;
}

.adest-btn-warning {
    background: #ff9800;
    color: #1e1e1e;
}

.adest-btn-warning:hover {
    background: #e68900;
}

.adest-btn-success {
    background: #2e7d32;
    color: #ffffff;
}

.adest-btn-success:hover {
    background: #1b5e20;
}

.adest-btn-info {
    background: #528bff;
    color: #ffffff;
}

.adest-btn-info:hover {
    background: #3a6fd9;
}

.adest-btn-block {
    width: 100%;
    margin-top: 10px;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.adest-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adest-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.adest-modal-content {
    position: relative;
    background: #1e1e1e;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.adest-modal-small {
    max-width: 450px;
}

.adest-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2c2c2c;
    background: #2c2c2c;
}

.adest-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #e1e3e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adest-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8f8f8f;
    transition: color 0.2s;
}

.adest-modal-close:hover {
    color: #e1e3e6;
}

.adest-modal-body {
    padding: 20px;
}

.adest-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #2c2c2c;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== ФОРМЫ ========== */
.adest-form-group {
    margin-bottom: 15px;
}

.adest-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #e1e3e6;
    font-size: 13px;
}

.adest-required {
    color: #ff5252;
}

.adest-input,
.adest-select,
.adest-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #2c2c2c;
    color: #e1e3e6;
    font-size: 14px;
    transition: border-color 0.2s;
}

.adest-input:focus,
.adest-select:focus,
.adest-textarea:focus {
    outline: none;
    border-color: #528bff;
}

.adest-textarea {
    resize: vertical;
    font-family: inherit;
}

.adest-hint {
    font-size: 11px;
    color: #8f8f8f;
    margin-top: 4px;
}

.adest-divider {
    height: 1px;
    background: #2c2c2c;
    margin: 15px 0;
}

/* ========== ПОИСК ПОЛЬЗОВАТЕЛЕЙ ========== */
.adest-user-search-container {
    position: relative;
}

.adest-user-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.adest-user-search-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    border-bottom: 1px solid #2c2c2c;
}

.adest-user-search-item:hover {
    background: #2c2c2c;
}

.adest-user-search-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.adest-user-search-name {
    color: #ffffff;
}

.adest-user-search-empty {
    color: #8f8f8f;
    justify-content: center;
}

.adest-selected-user {
    margin-top: 8px;
    padding: 8px 12px;
    background: #2c2c2c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adest-selected-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========== ПРЕДУПРЕЖДЕНИЯ ========== */
.adest-warning-item {
    background: #2c2c2c;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid #ff9800;
}

.adest-warning-reason {
    margin-bottom: 8px;
    color: #e1e3e6;
    font-size: 14px;
    line-height: 1.4;
}

.adest-warning-meta {
    font-size: 11px;
    color: #8f8f8f;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========== ЗАГРУЗЧИК ========== */
.adest-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #3a3a3a;
    border-top-color: #528bff;
    border-radius: 50%;
    animation: adest-spin 0.8s linear infinite;
    margin: 0 auto;
}

.adest-loader-text {
    text-align: center;
    color: #8f8f8f;
    margin-top: 8px;
}

@keyframes adest-spin {
    to { transform: rotate(360deg); }
}

/* ========== ПУСТОЕ СОСТОЯНИЕ ========== */
.adest-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8f8f8f;
}

.adest-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.adest-empty-state p {
    margin-bottom: 15px;
}

.adest-empty-small {
    padding: 20px;
}

/* ========== ТАБЛИЦА ЗАГРУЗКИ ========== */
.adest-table-loading td {
    text-align: center;
    padding: 40px;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .adest-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .adest-header-actions {
        justify-content: stretch;
    }
    
    .adest-header-actions .adest-btn {
        flex: 1;
        justify-content: center;
    }
    
    .adest-table th,
    .adest-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .adest-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .adest-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .adest-cell-actions {
        white-space: nowrap;
    }
    
    .adest-cell-actions .adest-btn {
        padding: 4px 8px;
    }
}




/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ АДМИН-ПАНЕЛИ
   ============================================ */

/* ========== ФИЛЬТР ПО СЕРВЕРАМ ========== */
.adest-filter-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #1e1e1e;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #2c2c2c;
    flex-wrap: wrap;
    gap: 10px;
}

.adest-filter-label {
    font-weight: 500;
    color: #e1e3e6;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.adest-filter-select-wrapper {
    min-width: 220px;
}

.adest-filter-select {
    width: 100%;
}

.adest-filter-stats {
    margin-left: 5px;
}

.adest-filter-actions {
    margin-left: auto;
}

/* ========== ЯЧЕЙКИ ТАБЛИЦЫ ========== */
.adest-cell-id {
    font-weight: 500;
    color: #8f8f8f;
}

.adest-cell-user {
    min-width: 200px;
}

.adest-cell-position {
    min-width: 150px;
}

.adest-cell-server {
    min-width: 120px;
}

.adest-cell-service {
    min-width: 120px;
}

.adest-cell-actions {
    min-width: 130px;
    white-space: nowrap;
}

.adest-cell-actions .adest-btn {
    margin-right: 5px;
}

.adest-cell-actions .adest-btn:last-child {
    margin-right: 0;
}

/* ========== ТЕКСТОВЫЕ ЦВЕТА ДЛЯ СТАТУСОВ ========== */
.text-success {
    color: #4caf50 !important;
}

.text-warning {
    color: #ff9800 !important;
}

.text-danger {
    color: #f44336 !important;
}

.text-muted {
    color: #8f8f8f !important;
}

/* ========== ИНФОРМАЦИЯ ОБ УСЛУГЕ В МОДАЛЬНОМ ОКНЕ ========== */
.service-info {
    color: #e1e3e6;
}

.service-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #e1e3e6;
    font-size: 16px;
    border-bottom: 1px solid #2c2c2c;
    padding-bottom: 10px;
}

.service-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-info strong {
    color: #8f8f8f;
    font-weight: 500;
    margin-right: 5px;
}

/* ========== ТАБЛИЦА ИНФОРМАЦИИ ОБ УСЛУГЕ ========== */
.adest-info-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.adest-info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #2c2c2c;
}

.adest-info-table td:first-child {
    color: #8f8f8f;
    width: 40%;
}

.adest-info-table td:last-child {
    color: #e1e3e6;
}

/* ========== СТАТУСЫ УСЛУГ ========== */
.adest-status-active {
    color: #4caf50;
    font-weight: 500;
}

.adest-status-paused {
    color: #ff9800;
    font-weight: 500;
}

.adest-status-inactive {
    color: #f44336;
    font-weight: 500;
}

/* ========== СООБЩЕНИЯ ОБ ОКОНЧАНИИ УСЛУГИ ========== */
.adest-warning-message {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    color: #ff9800;
    font-size: 13px;
}

.adest-error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    color: #f44336;
    font-size: 13px;
}

.adest-text-danger {
    color: #f44336 !important;
}

/* ========== ЗАГОЛОВОК ИНФОРМАЦИИ ОБ УСЛУГЕ ========== */
.adest-service-info-header {
    background: #2c2c2c;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #e1e3e6;
    font-size: 15px;
    text-align: center;
    border-left: 4px solid #528bff;
}

/* ========== АДАПТАЦИЯ ФИЛЬТРА ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .adest-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .adest-filter-select-wrapper {
        min-width: 100%;
    }
    
    .adest-filter-actions {
        margin-left: 0;
        display: flex;
        justify-content: flex-end;
    }
    
    .adest-filter-stats {
        margin-left: 0;
        text-align: center;
    }
    
    .adest-cell-actions {
        min-width: auto;
    }
    
    .adest-cell-actions .adest-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* ========== КНОПКА ОБНОВЛЕНИЯ ========== */
.adest-btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* ========== УВЕДОМЛЕНИЯ (если используется кастомная область) ========== */
#notification-area .alert {
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    animation: adest-slide-in 0.3s ease;
    background: #2c2c2c;
    color: #e1e3e6;
}

#notification-area .alert-success {
    background: #1e3a1e;
    color: #a5d6a5;
    border-left: 4px solid #4caf50;
}

#notification-area .alert-danger {
    background: #3a1e1e;
    color: #ef9a9a;
    border-left: 4px solid #f44336;
}

@keyframes adest-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== HELP BLOCK (подсказки в формах) ========== */
.help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 0;
    color: #8f8f8f;
    font-size: 12px;
}

/* ========== АНИМАЦИЯ ЗАГРУЗКИ ДЛЯ GLYPHICON ========== */
.gly-spin {
    -webkit-animation: adest-spin 1s infinite linear;
    animation: adest-spin 1s infinite linear;
}

/* ========== КОНТЕЙНЕР ДЛЯ ПОИСКА (если используется bootstrap класс) ========== */
.user-search-container {
    position: relative;
}

.user-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-search-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    border-bottom: 1px solid #2c2c2c;
}

.user-search-item:hover {
    background: #2c2c2c;
}

.user-search-empty {
    color: #8f8f8f;
    justify-content: center;
    cursor: default;
}

.selected-user {
    margin-top: 8px;
    padding: 8px 12px;
    background: #2c2c2c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== МОДАЛЬНЫЕ ОКНА BOOTSTRAP (если используются) ========== */
.modal-content {
    background: #1e1e1e;
    color: #e1e3e6;
}

.modal-header {
    border-bottom: 1px solid #2c2c2c;
}

.modal-footer {
    border-top: 1px solid #2c2c2c;
}

.modal-title {
    color: #e1e3e6;
}

.close {
    color: #e1e3e6;
    opacity: 0.7;
}

.close:hover {
    color: #ffffff;
    opacity: 1;
}

/* ========== BADGE (если используется bootstrap) ========== */
.badge {
    display: inline-block;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #3a3a3a;
    border-radius: 10px;
}

.badge-success {
    background-color: #2e7d32;
}

.badge-default {
    background-color: #3a3a3a;
    color: #e1e3e6;
}