

/* Start:/bitrix/components/custom/employees/templates/.default/style.css?175860872810460*/
/* Панель управления */
.employees-management {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.employees-management .btn {
    margin-right: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.employees-management .btn-primary {
    background: #007bff;
    color: white;
}

.employees-management .btn-secondary {
    background: #6c757d;
    color: white;
}

.employees-management .btn:hover {
    opacity: 0.9;
}

/* Модальные окна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* Формы */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-edit {
    background: #28a745;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

/* Список отделов */
.departments-list ul {
    list-style: none;
    padding: 0;
}

.departments-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.departments-list li > div {
    display: flex;
    gap: 5px;
}

.add-department {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.add-department .form-group {
    display: flex;
    gap: 10px;
    align-items: end;
}

.add-department input {
    flex: 1;
}

/* Колонка действий */
.actions-col {
    width: 120px;
    text-align: center;
}

.actions-cell {
    text-align: center;
}

.actions-cell .btn {
    margin: 0 2px;
}

/* Иконки */
.icon-plus::before { content: "➕"; }
.icon-settings::before { content: "⚙️"; }
.icon-edit::before { content: "✏️"; }
.icon-delete::before { content: "🗑️"; }

.employees-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.employees-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.employees-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.employees-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: bold;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 14px;
}

.employees-table td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
}

.employees-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Стили для колонок */
.department-col {
    width: 30%;
    min-width: 200px;
}

.position-col {
    width: 25%;
    min-width: 150px;
}

.name-col {
    width: 25%;
    min-width: 150px;
}

.phone-col {
    width: 20%;
    min-width: 120px;
}

.department-cell {
    background: #ffffff !important;
    font-weight: bold;
    text-align: left;
    padding: 10px 8px;
}

.position-cell {
    text-align: left;
    padding-left: 10px;
}

.name-cell {
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}

.phone-cell {
    font-weight: bold;
    font-family: monospace;
}

/* Стили для разных тем */
.employees-modern .employees-table {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.employees-modern .employees-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 15px;
    padding: 15px 10px;
}

.employees-modern .employees-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
}

.employees-minimal .employees-table {
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.employees-minimal .employees-table th {
    background: #fafafa;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.employees-minimal .employees-table td {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .employees-responsive {
        font-size: 12px;
    }
    
    .employees-table th,
    .employees-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .department-col,
    .position-col,
    .name-col,
    .phone-col {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .employees-table th,
    .employees-table td {
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .employees-title {
        font-size: 18px;
    }
}

/* Стили для группировки */
.department-cell[rowspan] {
    vertical-align: middle;
    padding: 10px 8px;
}

/* Улучшенные стили для заголовков отделов */
.department-cell strong {
    display: block;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* Стили для имен */
.name-cell strong {
    display: block;
    line-height: 1.2;
}

/* Стили для телефонов */
.phone-cell strong {
    font-size: 14px;
    color: #2c3e50;
}

/* Стили для пустых ячеек */
.employees-table td:empty {
    background: #f8f9fa;
}

/* Стили для кнопок */
.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Стили для чекбокса */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Стили для drag & drop */
.departments-list {
    position: relative;
}

.department-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: move;
    transition: all 0.2s ease;
}

.department-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.department-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.department-item.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
}

.drag-handle {
    cursor: move;
    color: #6c757d;
    margin-right: 10px;
}

.drag-handle:hover {
    color: #495057;
}

.btn-move-up,
.btn-move-down {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    padding: 2px 6px;
    margin: 0 2px;
    font-size: 12px;
    line-height: 1;
    min-width: 20px;
}

.btn-move-up:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-move-down:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Стили для поиска */
.employees-search {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
	height: 42px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
	outline: none;
    border-color: var(--theme-base-color);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.1);
}

.search-input::placeholder {
    color: #6c757d;
}

.search-results-info {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.search-results-info.highlight {
    color: var(--theme-base-color);
    font-weight: 500;
}

/* Стили для скрытых строк при поиске */
.employee-row.highlighted {
    background-color: #f5f5f5;
    border-left: 4px solid var(--theme-base-color);
}

/* Стили для имен сотрудников */
.manager-name {
    font-weight: bold;
    color: #2c3e50;
}

.regular-name {
    font-weight: normal;
    color: #34495e;
}

/* Стили для названий отделов */
.management-name {
    font-weight: bold;
    color: #2c3e50;
}

.department-name {
    font-weight: normal;
    color: #34495e;
}

/* Стили для мобильных устройств */
@media (max-width: 600px) {
    .employees-table {
        display: block;
        width: 100%;
    }
    
    .employees-table thead {
        display: none;
    }
    
    .employees-table tbody,
    .employees-table tr,
    .employees-table td {
        display: block;
        width: 100%;
    }
    
    .employees-table tr {
        border: 1px solid #ddd;
        margin-bottom: 10px;
        padding: 10px;
        background: white;
        border-radius: 5px;
    }
    
    .employees-table td {
        border: none;
        padding: 5px 0;
        text-align: left;
    }
}

/* End */
/* /bitrix/components/custom/employees/templates/.default/style.css?175860872810460 */
