
        :root {
            --primary: #3498db;
            --success: #2ecc71;
            --warning: #f39c12;
            --danger: #e74c3c;
            --dark: #2c3e50;
            --light: #ecf0f1;
        }
        /*body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
            color: #333;
        }*/
        body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 
               'Helvetica Neue', Arial, sans-serif;
}
        
        
        .filter-section {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
            padding: 20px;
            background-color: #d1d7d5;
            border-radius: 8px;
            border: 1px solid #ddd;
        }
        .filter-group {
            display: flex;
            flex-direction: column;
			font-size: 16px;
            font-weight: 600;
        }
        label {
            margin-bottom: 5px;
            font-weight: 700;
            font-size: 16px;
        }
        select, input {
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            width: 100%;
            box-sizing: border-box;
        }
        select:focus, input:focus {
            outline: none;
            border-color: var(--primary);
        }
        .clear-btn {
            align-self: flex-end;
            padding: 10px 15px;
            background-color: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .clear-btn:hover {
            background-color: #e9ecef;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            border: 1px solid #ddd;
        }
        th, td {
            padding: 12px;
            text-align: center;
			font-size: 18px;
			font-weight: 600;
            border-bottom: 1px solid #ddd;
            border-right: 1px solid #eee;
        }
        th {
            background-color: #3c616a;
            color: white;
            position: sticky;
            top: 0;
            font-weight: 700;
        }
        th:last-child, td:last-child {
            border-right: none;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:hover {
            background-color: rgba(52, 152, 219, 0.05);
        }
        
        .status {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        .status.active {
            background-color: rgba(46, 204, 113, 0.2);
            color: var(--success);
        }
        .status.trial {
            background-color: rgba(241, 196, 15, 0.2);
            color: var(--warning);
        }
        .status.blocked {
            background-color: rgba(231, 76, 60, 0.2);
            color: var(--danger);
        }
        .vertical-actions {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .action-btn {
            padding: 8px 12px;
            font-size: 12px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 5px;
            justify-content: center;
            width: 100%;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        .action-btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
        .btn-danger {
            background-color: var(--danger);
            color: white;
        }
        .btn-warning {
            background-color: var(--warning);
            color: white;
        }
        .btn-info {
            background-color: rgb(10 75 118);
            color: white;
        }
        .pagination {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            align-items: center;
        }
        .pagination-info {
            font-size: 14px;
            color: #777;
        }
        .pagination-controls {
            display: flex;
            gap: 5px;
        }
        .pagination-btn {
            padding: 8px 12px;
            min-width: 40px;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
        }
        .pagination-btn.active {
            background-color: rgb(10 75 118);
            color: white;
            border-color: rgb(10 75 118);
        }
        .pagination-btn:hover:not(.active) {
            background-color: #f8f9fa;
        }
        /* Модальные окна */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 600px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .close:hover {
            color: black;
        }
        .modal-header {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            margin-bottom: 15px;
        }
        .contact-item, .password-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .contact-item:last-child, .password-item:last-child {
            border-bottom: none;
        }
        .back-btn {
            display: inline-flex;
            align-items: center;
            padding: 8px 15px;
            background-color: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 6px;
            cursor: pointer;
            margin-bottom: 15px;
            color: #333;
            text-decoration: none;
        }
        .back-btn:hover {
            background-color: #e9ecef;
        }
        @media (max-width: 768px) {
            .container {
                width: 100%;
                padding: 15px;
            }
            .stats-cards {
                grid-template-columns: 1fr;
            }
            .filter-section {
                grid-template-columns: 1fr;
            }
            table {
                font-size: 12px;
            }
            th, td {
                padding: 8px;
            }
        }
      
/* Стили для модального окна */

.modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Увеличиваем z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover {
    color: #000;
}

/* Специфичные стили для модального окна статуса */
#statusModal .modal-content {
    max-width: 450px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}
.status-inactive {
    background-color: rgba(149, 165, 166, 0.2);
    color: #7f8c8d;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

/* Стили для статусов */
.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-trial {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-blocked {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Для отображения даты пробного периода */
.trial-date {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 3px;
    font-weight: normal;
    display: block;
}

.status-trial {
    color: #b3611a;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #ff9800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 300;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(230, 126, 34, 0.3);
}
/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    display: none;
}

.notification-content {
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
}

.notification-message {
    flex-grow: 1;
    margin-right: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Анимация появления */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация исчезновения */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

