/* Основные стили для вкладок */
.nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #0d6efd;
}

/* Стили для статусов */
.status-badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}
.status-new { background-color: #6c757d; }
.status-in_progress { background-color: #ffc107; color: #000; }
.status-completed { background-color: #198754; }

/* Стили для вложений */
.attachments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.attachment-wrapper {
    position: relative;
    margin: 10px;
}

.attachment-item {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.attachment-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Стили для иконок вложений */
.attachment-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* PDF */
.bi-filetype-pdf { color: #d93025; }
/* Word */
.bi-filetype-docx { color: #2b579a; }
/* Excel */
.bi-filetype-xlsx { color: #217346; }
/* Архивы */
.bi-file-zip { color: #fd7e14; }
/* Остальные файлы */
.bi-file-earmark { color: #6c757d; }

.attachment-name {
    font-size: 0.75rem;
    text-align: center;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.delete-attachment {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.attachment-wrapper:hover .delete-attachment {
    opacity: 1;
}

/* Стили для превью изображений */
.img-thumbnail {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    cursor: pointer;
}

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

/* Стили для модального окна изображений */
#imageModal .modal-body img {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Стили для статистики */
.stats-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stats-summary-item {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stats-summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.stats-summary-label {
    font-size: 14px;
    color: #7f8c8d;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.filter-card {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.filter-header {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
}

.filter-body {
    padding: 15px;
}

/* Стили для выпадающих списков */
.bulk-action-width {
  width: auto;
}

/* Или лучше для всех form-select в btn-group */
.btn-group .form-select {
  width: auto;
}

/* Стили для превью изображений в модальных окнах */
.modal-image-preview {
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

/* Стили для кнопок действий */
.btn-action-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-action-group .btn {
    flex: 0 0 auto;
}

/* Стили для модальных окон */
.modal-xl .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Стили для чекбоксов */
.table input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Стили для массовых действий */
.bulk-actions-container {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .btn-action-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .table th, .table td {
        padding: 0.5rem;
    }
}

/* Добавьте в admin.css */
/* #fileNameToDelete {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
} */

/* Или для многострочного варианта (если нужно полное имя) */
#fileNameToDelete {
    word-break: break-all;
    white-space: normal;
}


.th-width-10 { width: 10%; }
.th-width-50 { width: 50%; }
.th-width-40 { width: 40%; }
.th-width-20 { width: 20%; }
.th-width-15 { width: 15%; }
.th-width-25 { width: 25%; }
