/* Pro100Actor | 79779777557 */
/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    min-height: 40px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.btn-outline:hover,
.btn-outline.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    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: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* ===== ТАБЛИЦЫ ===== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: rgba(196, 30, 58, 0.05);
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

/* ===== БЕЙДЖИ ===== */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.role-badge {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    z-index: 10000;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(8px);
}

.notification.success {
    background: var(--success-light);
    color: var(--success-dark);
    border-left: 4px solid var(--success-color);
}

.notification.error {
    background: var(--error-light);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    background: var(--warning-light);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    background: var(--info-light);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.close-modal:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
}

.modal-body {
    padding: 24px;
}

.modal-subtitle {
    color: #718096;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.save-btn {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.cancel-btn {
    background: #f8f9fa;
    color: #718096;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e2e8f0;
    color: #C41E3A;
    border-color: #C41E3A;
}

.status-working {
    background: #d1fae5;
    color: #065f46;
}

.status-broken {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ ОПЕРАЦИЙ ===== */
.operations-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.operations-section h2 {
    margin-bottom: 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.operations-section h2 i {
    color: #C41E3A;
    font-size: 24px;
}

.operations-section h3 {
    color: #C41E3A;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.operations-section h4 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.operations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.operation-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.operation-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.operation-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.operation-btn:hover {
    background: linear-gradient(135deg, #B8182E, #AD1425);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.operation-btn i {
    font-size: 14px;
}

.quick-operation-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.quick-operation-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.quick-operation-section input,
.quick-operation-section select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.quick-operation-section input:focus,
.quick-operation-section select:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.execute-btn {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.execute-btn:hover {
    background: linear-gradient(135deg, #B8182E, #AD1425);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.execute-btn i {
    font-size: 14px;
}

/* ===== СТИЛИ СЕКЦИИ ВОЗВРАТОВ ===== */
.return-form-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.return-form {
    max-width: 800px;
}

.return-history-section {
    margin-top: 32px;
}

.field-error {
    border-color: var(--danger-color) !important;
    background-color: rgba(244, 67, 54, 0.05);
}

.field-success {
    border-color: var(--success-color) !important;
    background-color: rgba(76, 175, 80, 0.05);
}

/* ===== СТИЛИ ОТЧЕТОВ ===== */
.reports-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.reports-section h2 {
    margin-bottom: 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.reports-section h2 i {
    color: #C41E3A;
    font-size: 24px;
}

.reports-section h3 {
    color: #C41E3A;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.nav-tabs .btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-tabs .btn.active {
    color: #C41E3A;
    border-bottom-color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
}

.nav-tabs .btn:hover {
    color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.report-table th,
.report-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.chart-label {
    min-width: 100px;
    font-size: 13px;
    color: #4a5568;
}

.chart-fill {
    height: 20px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.chart-value {
    min-width: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* ===== АДАПТИВНОСТЬ ОТЧЕТОВ ===== */
@media (max-width: 768px) {
    .reports-section {
        padding: 20px 15px;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-tabs .btn {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 80px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .summary-item {
        padding: 10px;
    }

    .summary-value {
        font-size: 18px;
    }

    .report-table {
        font-size: 11px;
    }

    .report-table th,
    .report-table td {
        padding: 8px 6px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .chart-label {
        min-width: auto;
        font-size: 12px;
    }

    .chart-value {
        min-width: auto;
        font-size: 14px;
    }
}


/* ===== СТИЛИ ДЛЯ КАРТОЧЕК СПРАВОЧНИКОВ ===== */
.directory-item-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 65px;
}

.directory-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.2), 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #C41E3A;
}

.directory-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.directory-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.directory-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(196, 30, 58, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.directory-item-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.directory-item-card:hover .directory-item-icon::before {
    left: 100%;
}

.directory-item-card:hover .directory-item-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.directory-item-info {
    flex: 1;
    min-width: 0;
}

.directory-item-name {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3px;
    line-height: 1.2;
    word-break: break-word;
    letter-spacing: 0.01em;
}

.directory-item-description {
    font-size: 13px;
    color: #718096;
    line-height: 1.3;
    margin-bottom: 3px;
}

.directory-item-status,
.directory-item-category,
.directory-item-role {
    margin-top: 3px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.role-badge {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.directory-item-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.directory-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.directory-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.directory-action-btn:hover::before {
    left: 100%;
}

.directory-action-btn.edit-btn {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.directory-action-btn.edit-btn:hover {
    background: linear-gradient(135deg, #B8182E, #AD1425);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.directory-action-btn.delete-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.directory-action-btn.delete-btn:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
}

.directory-action-btn:active {
    transform: scale(0.95);
}

/* Темная тема для справочников */
/* Темная тема для поиска */
/* Стили для контролов поиска */
.search-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.search-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(196, 30, 58, 0.01) 49%, rgba(196, 30, 58, 0.01) 51%, transparent 52%);
    background-size: 20px 20px;
    pointer-events: none;
}

.search-controls .search-input {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.directories-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: #1a202c;
    letter-spacing: 0.02em;
    position: relative;
}

.directories-search-input::placeholder {
    color: #718096;
    font-weight: 400;
    font-style: italic;
}

.directories-search-input:focus {
    outline: none;
    border-color: #C41E3A !important;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.15), 0 8px 30px rgba(196, 30, 58, 0.2);
    transform: translateY(-2px);
    background: #fefefe;
    color: #1a202c;
}

.directories-search-input:focus::placeholder {
    color: #a0aec0;
}

/* Иконка поиска удалена */

.no-search-results {
    margin-top: 20px;
}

/* Стили для группы кнопок в формах */
.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 0 0 auto;
}

/* Адаптивность для кнопок форм */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .search-controls {
        padding: 20px 25px;
        margin-bottom: 20px;
    }

    .search-controls .search-input {
        min-width: auto;
        width: 100%;
        max-width: none;
    }

    .directories-search-input {
        padding: 16px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-controls {
        padding: 18px 20px;
        margin-bottom: 18px;
    }

    .directories-search-input {
        padding: 14px 18px;
        font-size: 14px;
    }
}

    .directory-item-card {
        padding: 12px 15px;
        margin-bottom: 6px;
        min-height: 55px;
    }

    .directory-item-header {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 0;
    }

    .directory-item-main {
        width: auto;
        flex: 1;
    }

    .directory-item-actions {
        align-self: center;
        margin-top: 0;
        flex-direction: row;
    }

    .directory-item-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .directory-item-name {
        font-size: 14px;
    }

    .directory-item-description {
        font-size: 12px;
    }

    .directory-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

/* Состояние загрузки */
.directory-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

.directory-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Состояние "нет элементов" */
.no-items {
    text-align: center;
    padding: 50px 30px;
    color: #718096;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #cbd5e0;
    position: relative;
    overflow: hidden;
}

.no-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(196, 30, 58, 0.02) 49%, rgba(196, 30, 58, 0.02) 51%, transparent 52%);
    background-size: 20px 20px;
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}

.no-items i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
    display: block;
}

/* Стили для защищенных элементов */
.protected-item {
    border: 2px solid #4299e1 !important;
    background: linear-gradient(145deg, #ebf8ff 0%, #f7fafc 100%) !important;
}

.protected-item:hover {
    border-color: #4299e1 !important;
    background: linear-gradient(145deg, #ebf8ff 0%, #f7fafc 100%) !important;
    box-shadow: 0 12px 40px rgba(66, 153, 225, 0.2), 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-6px);
}

.protection-note {
    font-size: 11px;
    color: #4299e1;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.directory-item-icon {
    position: relative;
}

/* Темная тема для защищенных элементов */
/* ===== СТИЛИ ДЛЯ СИСТЕМЫ ВКЛАДОК СПРАВОЧНИКА ===== */
/* Стили системы вкладок справочников перенесены в directories-styles.css */

/* ===== СТИЛИ ДЛЯ ФОРМ И КОНТЕЙНЕРОВ УПРАВЛЕНИЯ ===== */
.management-section {
    margin-bottom: 30px;
}

.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1), 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    background: #fefefe;
}

.form-input::placeholder {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.form-input:focus::placeholder {
    color: #cbd5e0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.actions-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container {
    flex: 1;
    max-width: 350px;
    position: relative;
}

.search-container::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.items-container {
    min-height: 200px;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

.btn-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.1), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    color: #C41E3A;
    border-color: #C41E3A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.15);
}

/* Темная тема для форм */


/* ===== СТИЛИ ДЛЯ ВЫПАДАЮЩИХ СПИСКОВ ===== */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.dropdown-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: #f8fafc !important;
    transform: translateX(2px);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* ===== АДАПТИВНОСТЬ МОДАЛЬНЫХ ОКОН ===== */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    .modal-header {
        padding: 20px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100%;
        margin: 5px;
        border-radius: 12px;
    }

    .modal-header {
        padding: 15px 15px;
        border-radius: 12px 12px 0 0;
    }

    .modal-body {
        padding: 15px;
    }
}

/* ===== АДАПТИВНОСТЬ СЕКЦИИ ОПЕРАЦИЙ ===== */
@media (max-width: 768px) {
    .operations-section {
        padding: 20px 15px;
    }

    .operations-section h2 {
        font-size: 20px;
    }

    .operation-group {
        padding: 20px 15px;
    }

    .operation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .operation-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
    }

    .quick-operation-section {
        padding: 15px;
    }

    .execute-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .operations-section {
        padding: 15px 10px;
    }

    .operations-section h2 {
        font-size: 18px;
    }

    .operations-section h3 {
        font-size: 16px;
    }

    .operation-group {
        padding: 15px 10px;
    }

    .operation-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .execute-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #f7fafc;
    color: #C41E3A;
    transform: rotate(90deg);
}

.close-modal:active {
    transform: rotate(90deg) scale(0.95);
}

/* ===== КОМПОНЕНТЫ ВХОДА ===== */
.logo {
    margin-bottom: 24px;
    position: relative;
}

.logo-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fdfdfd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-icon:hover img {
    transform: scale(1.05);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.logo-icon:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.login-container,
.mobile-design {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.login-container h1,
.mobile-design h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 28px !important;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #718096;
    margin-bottom: 40px;
    font-size: 15px;
    font-weight: 400;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
    transform: translateY(-2px);
}

.input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    transition: color 0.3s;
}

.input-group input:focus + i {
    color: #C41E3A;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    background: linear-gradient(135deg, #B8182E, #AD1425);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: #48bb78;
}

.notification-error {
    background: #f56565;
}

.notification-warning {
    background: #ed8936;
}

.notification-info {
    background: #4299e1;
}

/* ===== РАСШИРЕННЫЕ СТИЛИ МОДАЛЬНЫХ ОКОН ===== */
.modal-subtitle {
    padding: 16px 24px;
    color: #718096;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cancel-btn,
.save-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cancel-btn {
    background: rgba(247, 250, 252, 0.8);
    color: #4a5568;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.cancel-btn:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

.save-btn {
    background: linear-gradient(135deg, #C41E3A, #B8182E);
    color: white;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

/* ===== КНОПКА ПЕРЕХОДА К ЗАЯВКЕ ===== */
.task-link-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.task-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.task-link-btn:hover::before {
    left: 100%;
}

.task-link-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.task-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.task-link-btn i {
    font-size: 14px;
}

.task-link-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.task-link-btn.disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* ===== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОДТВЕРЖДЕНИЯ УДАЛЕНИЯ ===== */
.delete-confirm-modal .modal-content {
    max-width: 500px;
    width: 95%;
}

.delete-confirm-modal .delete-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.delete-confirm-modal .delete-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.delete-confirm-modal .delete-header .close-modal {
    color: rgba(255, 255, 255, 0.8);
}

.delete-confirm-modal .delete-header .close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.delete-warning-icon {
    text-align: center;
    margin-bottom: 20px;
}

.delete-warning-icon i {
    font-size: 48px;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-message {
    text-align: center;
    margin-bottom: 30px;
}

.delete-question {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.delete-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    margin: 12px 0;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.delete-danger-text {
    font-size: 14px;
    color: #6b7280;
    margin-top: 12px;
    font-style: italic;
}

.delete-confirm-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.delete-confirm-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.delete-confirm-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.delete-confirm-modal .cancel-btn {
    background: #f8f9fa;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.delete-confirm-modal .cancel-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .delete-confirm-modal .modal-content {
        margin: 20px 10px;
        max-width: none;
    }

    .delete-warning-icon i {
        font-size: 36px;
        width: 72px;
        height: 72px;
        padding: 18px;
    }

    .delete-question {
        font-size: 15px;
    }

    .delete-item-name {
        font-size: 16px;
    }

    .delete-confirm-modal .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .delete-confirm-btn,
    .delete-confirm-modal .cancel-btn {
        width: 100%;
        min-width: auto;
    }
}