* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e8ecf1;
    color: #333;
    line-height: 1.5;
    background-image: url('../img/fon.jpg');
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
}

/* ===== Основной контейнер ===== */
#main {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fefefe;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ===== Шапка ===== */
header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.header-content {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.header-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Навигация ===== */
nav {
    background-color: #2c3e50;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #e67e22;
}

/* ===== Основной контент ===== */
section {
    display: flex;
    padding: 40px;
    gap: 30px;
    flex-wrap: wrap;
}

.content {
    flex: 3;
    min-width: 250px;
}

aside {
    flex: 1;
    min-width: 200px;
}

.aside-block {
    background-color: #f5f7fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aside-block h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 5px;
}

.aside-block ul {
    list-style: none;
    padding: 0;
}

.aside-block ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.aside-block ul li a {
    color: #2c3e50;
    text-decoration: none;
}

.aside-block ul li a:hover {
    color: #e67e22;
}

/* ===== Формы (общие стили) ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
}

/* ===== Страница входа и регистрации ===== */
.login-wrapper,
.register-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.login-card,
.register-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.login-card-header,
.register-card-header {
    background: #2c3e50;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.login-card-header h2,
.register-card-header h2 {
    margin: 0;
    font-size: 24px;
}

.login-card-body,
.register-card-body {
    padding: 30px;
}

.login-card-footer,
.register-card-footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.login-card-footer a,
.register-card-footer a {
    color: #e67e22;
    text-decoration: none;
}

.login-card-footer a:hover,
.register-card-footer a:hover {
    text-decoration: underline;
}

/* ===== Кнопки ===== */
.btn-login,
.btn-register,
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-register:hover,
.btn-primary:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-small:hover {
    background: #e67e22;
}

.btn-edit {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #c0392b;
}

/* ===== Сообщения ===== */
.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background-color: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== Таблицы ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.data-table th {
    background-color: #2c3e50;
    color: #fff;
}

.data-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ===== Админ-панель ===== */
.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.admin-section h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #2c3e50;
}

.form-inline .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-inline input,
.form-inline select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===== Личный кабинет клиента ===== */
.cabinet-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cabinet-section h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #2c3e50;
}

.review-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.review-item .rating {
    margin-bottom: 10px;
    font-size: 18px;
    color: #f39c12;
}

.review-item .comment {
    margin-bottom: 10px;
    font-style: italic;
}

.review-item .date {
    font-size: 12px;
    color: #666;
}

.review-item .status {
    font-size: 12px;
    color: #e67e22;
    margin-top: 5px;
}

.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* ===== Панель сотрудника ===== */
.project-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.form-row input, 
.form-row select, 
.form-row textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row textarea {
    width: 100%;
    resize: vertical;
}

.edit-form {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

.edit-form.show {
    display: block;
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.project-header h3 {
    margin: 0;
    color: #2c3e50;
}

/* ===== Баннер на главной ===== */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    text-align: center;
    color: #fff;
}

.banner-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-banner {
    display: inline-block;
    padding: 12px 30px;
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-banner:hover {
    background: #d35400;
}

/* ===== Карточки услуг (главная) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 15px;
}

/* ===== Страница услуг (services.php) ===== */
.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.service-card-full {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card-full .service-type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e67e22;
    font-weight: 600;
}

.service-card-full h3 {
    font-size: 20px;
    margin: 10px 0 8px;
    color: #2c3e50;
}

.service-card-full .service-price {
    font-size: 28px;
    font-weight: bold;
    color: #e67e22;
    margin: 10px 0;
}

.service-card-full .service-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card-full .service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}

.service-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.service-status.active {
    background: #d4edda;
    color: #155724;
}

.service-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.services-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.filter-section {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-section select,
.filter-section input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* ===== Отзывы на главной ===== */
.reviews-section {
    background: #f5f7fa;
    padding: 40px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.review-card .rating {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f39c12;
}

.review-card .client-name {
    margin-top: 15px;
    font-weight: bold;
    color: #2c3e50;
}

/* ===== Страница "В разработке" ===== */
.under-construction {
    text-align: center;
    padding: 50px 20px;
}

.under-construction h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.under-construction p {
    color: #888;
    font-size: 18px;
    margin-bottom: 10px;
}

/* ===== Подвал ===== */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px;
    clear: both;
}

footer p {
    margin-bottom: 10px;
}

/* ===== Отключаем автозаполнение ===== */
input {
    autocomplete: off;
}

/* ===== Страница портфолио (portfolio.php) ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.portfolio-card .portfolio-image {
    width: 100%;
    height: 220px;
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.portfolio-card .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card .portfolio-image.no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ccc;
}

.portfolio-card .portfolio-body {
    padding: 20px;
}

.portfolio-card .portfolio-body .portfolio-category {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.portfolio-card .portfolio-body h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.portfolio-card .portfolio-body .portfolio-project {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.portfolio-card .portfolio-body .portfolio-project strong {
    color: #2c3e50;
}

.portfolio-card .portfolio-body .portfolio-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.portfolio-card .portfolio-body .portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.portfolio-card .portfolio-body .portfolio-meta .employee {
    color: #2c3e50;
    font-weight: 600;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0 30px;
}

.portfolio-stats .stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.portfolio-stats .stat-card .stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.portfolio-stats .stat-card .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.portfolio-filter-section {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.portfolio-filter-section select,
.portfolio-filter-section input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Страница "В разработке" */
.under-construction {
    text-align: center;
    padding: 50px 20px;
}

.under-construction h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.under-construction p {
    color: #888;
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-message h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* ===== Паспортные поля ===== */
.passport-fields {
    display: none;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    background: #f9f9f9;
    border-radius: 8px;
}

.passport-fields.show {
    display: block;
}

.passport-fields h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 15px;
}

.passport-fields .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.passport-fields .form-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    min-width: 120px;
}

.passport-fields .form-row input:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
}

/* Паспортные данные в таблице */
.passport-details {
    font-size: 12px;
    padding: 5px;
}

.passport-details summary {
    cursor: pointer;
    color: #2c3e50;
    font-weight: 600;
}

.passport-details summary:hover {
    color: #e67e22;
}

.passport-details .passport-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 3px 0;
    align-items: center;
}

.passport-details .passport-row label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
    font-size: 11px;
}

.passport-details .passport-row input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    flex: 1;
    min-width: 60px;
}

.passport-details .passport-row input:focus {
    border-color: #e67e22;
    outline: none;
}

.passport-details .passport-row input[type="text"] {
    width: auto;
}

.passport-details .passport-row input[type="date"] {
    width: auto;
    min-width: 130px;
}

.no-passport {
    color: #999;
    font-size: 13px;
}

.no-passport .btn-add-passport {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 10px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
}

.no-passport .btn-add-passport:hover {
    background: #218838;
}

/* ===== Форма добавления сотрудника с паспортом ===== */
.admin-section .passport-fields {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.admin-section .passport-fields h4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-section .passport-fields .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.admin-section .passport-fields .form-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.admin-section .passport-fields .form-row input:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
}

/* ===== Адаптивность таблиц ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    font-size: 13px;
    table-layout: fixed; /* Фиксированная ширина колонок */
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 8px 6px;
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
}

/* Уменьшаем поля ввода в таблице */
.data-table input[type="text"],
.data-table input[type="email"],
.data-table input[type="password"] {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    box-sizing: border-box;
    min-width: 60px;
}

.data-table input[type="text"]:focus,
.data-table input[type="email"]:focus {
    border-color: #e67e22;
    outline: none;
}

.data-table select {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    background: #fff;
}

.data-table .btn-edit,
.data-table .btn-delete {
    padding: 3px 8px;
    font-size: 11px;
    margin: 2px 0;
    white-space: nowrap;
}

/* Паспортные данные в таблице */
.data-table .passport-details summary {
    cursor: pointer;
    font-size: 12px;
    color: #2c3e50;
}

.data-table .passport-details .passport-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 2px 0;
    align-items: center;
}

.data-table .passport-details .passport-row label {
    font-weight: 600;
    color: #555;
    min-width: 50px;
    font-size: 10px;
}

.data-table .passport-details .passport-row input {
    flex: 1;
    min-width: 50px;
    padding: 2px 4px;
    font-size: 11px;
}

.data-table .passport-details .passport-row input[type="date"] {
    min-width: 100px;
}

/* Адаптив для маленьких экранов */
@media (max-width: 1200px) {
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 5px 4px;
        max-width: 150px;
    }
    
    .data-table input[type="text"],
    .data-table select {
        font-size: 11px;
        padding: 3px 4px;
    }
}

@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .data-table th,
    .data-table td {
        min-width: 80px;
        max-width: none;
        padding: 5px 8px;
    }
    
    /* Для мобильных - сворачиваем паспортные данные */
    .data-table .passport-details .passport-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table .passport-details .passport-row input {
        width: 100%;
    }
}

/* ===== Контейнер с прокруткой ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
}

/* Кнопки в таблице */
.data-table .btn-edit {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.data-table .btn-edit:hover {
    background: #218838;
}

.data-table .btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.data-table .btn-delete:hover {
    background: #c82333;
}

/* Чекбоксы */
.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Стили для no-passport */
.no-passport {
    color: #999;
    font-size: 12px;
}

/* ===== Ширина колонок в таблице пользователей ===== */
.data-table .col-id {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
}

.data-table .col-email {
    width: 150px;
    min-width: 120px;
}

.data-table .col-name {
    width: 100px;
    min-width: 80px;
}

.data-table .col-phone {
    width: 110px;
    min-width: 90px;
}

.data-table .col-role {
    width: 100px;
    min-width: 80px;
}

.data-table .col-active {
    width: 50px;
    min-width: 40px;
    text-align: center;
}

.data-table .col-passport {
    width: 250px;
    min-width: 180px;
    max-width: 350px;
}

.data-table .col-actions {
    width: 140px;
    min-width: 120px;
    text-align: center;
}

/* ===== Паспортные данные в таблице - компактно ===== */
.data-table .passport-details {
    font-size: 11px;
}

.data-table .passport-details summary {
    font-size: 11px;
    color: #2c3e50;
    cursor: pointer;
}

.data-table .passport-details summary:hover {
    color: #e67e22;
}

.data-table .passport-details .passport-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 1px 0;
    align-items: center;
}

.data-table .passport-details .passport-row label {
    font-weight: 600;
    color: #555;
    min-width: 35px;
    font-size: 9px;
}

.data-table .passport-details .passport-row input {
    flex: 1;
    min-width: 40px;
    padding: 1px 3px;
    font-size: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.data-table .passport-details .passport-row input[type="date"] {
    min-width: 80px;
}

.data-table .passport-details .passport-row input:focus {
    border-color: #e67e22;
    outline: none;
}
/* ===== ТЕМЫ ТОЛЬКО ДЛЯ SECTION ===== */
.theme-dark section {
    background-color: rgba(26, 26, 26, 0.85) !important;
}
.theme-blue section {
    background-color: rgba(227, 242, 253, 0.85) !important;
}
.theme-green section {
    background-color: rgba(232, 245, 233, 0.85) !important;
}
.theme-light section {
    background-color: rgba(255, 255, 255, 0.85) !important;
}
/* ===== КАСТОМНЫЕ РАДИОБАТОНЫ ДЛЯ ВЫБОРА ТЕМЫ ===== */
.theme-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.theme-selector label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8fafc;
    min-width: 60px;
    font-weight: 500;
    font-size: 13px;
    color: #4a5568;
}

.theme-selector label:hover {
    border-color: #e67e22;
    background: #fff8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.theme-selector input[type="radio"] {
    display: none;
}

.theme-selector input[type="radio"]:checked + label {
    border-color: #e67e22;
    background: #fff4e6;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
    color: #e67e22;
}

.theme-selector .color-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-selector input[type="radio"]:checked + label .color-preview {
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.3);
}

.theme-selector .theme-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-selector .theme-light .color-preview {
    background: #ffffff;
    border-color: #cbd5e1;
}

.theme-selector .theme-dark .color-preview {
    background: #1a1a2e;
    border-color: #2d2d44;
}

.theme-selector .theme-blue .color-preview {
    background: #e3f2fd;
    border-color: #90caf9;
}

.theme-selector .theme-green .color-preview {
    background: #e8f5e9;
    border-color: #81c784;
}
/* ===== КАСТОМНЫЕ РАДИОБАТОНЫ ДЛЯ ВЫБОРА ТЕМЫ ===== */
.theme-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.theme-selector label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    padding: 10px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background: #f8fafc !important;
    min-width: 70px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    margin-bottom: 0 !important;
}

.theme-selector label:hover {
    border-color: #e67e22 !important;
    background: #fff8f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15) !important;
}

.theme-selector input[type="radio"] {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.theme-selector input[type="radio"]:checked + label {
    border-color: #e67e22 !important;
    background: #fff4e6 !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2) !important;
    color: #e67e22 !important;
}

.theme-selector .color-preview {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.theme-selector input[type="radio"]:checked + label .color-preview {
    border-color: #e67e22 !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3) !important;
}

.theme-selector .theme-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

/* Цвета превью */
.theme-selector .theme-light .color-preview {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.theme-selector .theme-dark .color-preview {
    background: #1a1a2e !important;
    border-color: #2d2d44 !important;
}

.theme-selector .theme-blue .color-preview {
    background: #e3f2fd !important;
    border-color: #90caf9 !important;
}

.theme-selector .theme-green .color-preview {
    background: #e8f5e9 !important;
    border-color: #81c784 !important;
}

/* Альтернативный вариант с цветными кругами */
.theme-selector-alt {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.theme-selector-alt label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
}

.theme-selector-alt label:hover {
    transform: scale(1.05) !important;
    background: transparent !important;
}

.theme-selector-alt input[type="radio"] {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.theme-selector-alt .color-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 3px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: block !important;
}

.theme-selector-alt input[type="radio"]:checked + label .color-circle {
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3) !important;
}

.theme-selector-alt input[type="radio"]:checked + label .color-circle::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-shadow: 0 0 4px rgba(0,0,0,0.5) !important;
}

.theme-selector-alt .theme-label {
    font-size: 11px !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    display: block !important;
}

.theme-selector-alt .circle-light { 
    background: #ffffff !important; 
    border-color: #cbd5e1 !important; 
}
.theme-selector-alt .circle-dark { 
    background: #1a1a2e !important; 
    border-color: #2d2d44 !important; 
}
.theme-selector-alt .circle-blue { 
    background: #e3f2fd !important; 
    border-color: #64b5f6 !important; 
}
.theme-selector-alt .circle-green { 
    background: #e8f5e9 !important; 
    border-color: #66bb6a !important; 
}

.theme-selector-alt input[type="radio"]:checked + label .circle-light { 
    border-color: #e67e22 !important; 
}
.theme-selector-alt input[type="radio"]:checked + label .circle-dark { 
    border-color: #e67e22 !important; 
}
.theme-selector-alt input[type="radio"]:checked + label .circle-blue { 
    border-color: #e67e22 !important; 
}
.theme-selector-alt input[type="radio"]:checked + label .circle-green { 
    border-color: #e67e22 !important; 
}