body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.col-modification {
    display: none !important;
}

.stats-bar .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
}

.table th {
    white-space: nowrap;
    font-size: 0.85rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.table td.editable {
    cursor: pointer;
    transition: background-color 0.2s;
}

.table td.editable:hover {
    background-color: #e9f5ff;
}

.table td.editing {
    padding: 0;
}

.table td.editing input {
    border: 2px solid #0d6efd;
    border-radius: 0;
    padding: 0.5rem;
    width: 100%;
}

.drop-zone {
    border-color: #dee2e6;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.btn-edit {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-edit:hover {
    opacity: 1;
}

.badge {
    font-weight: 500;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: white;
}

.bg-teal {
    background-color: #20c997 !important;
    color: white;
}

.bg-cyan {
    background-color: #17a2b8 !important;
    color: white;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

.bg-pink {
    background-color: #e83e8c !important;
    color: white;
}

.bg-indigo {
    background-color: #6610f2 !important;
    color: white;
}

.stats-bar {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: #495057;
}

.sort-icon {
    font-size: 0.8rem;
    opacity: 0.5;
}

.sortable.asc .sort-icon::after {
    content: '↑';
}

.sortable.desc .sort-icon::after {
    content: '↓';
}

.filter-row th {
    padding: 5px !important;
    background-color: #343a40;
}

.filter-input {
    font-size: 0.75rem;
    padding: 2px 5px;
}

.filter-input::placeholder {
    color: #adb5bd;
}

.lot-badge {
    font-size: 0.9rem;
    padding: 0.5em 1em;
}

.pagination .page-link {
    border-radius: 0;
}

.modal-lg {
    max-width: 900px;
}

@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

.alert-success {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-cat-termine { background-color: #28a745 !important; color: white; }
.bg-cat-preproduction { background-color: #20c997 !important; color: white; }
.bg-cat-retour-client { background-color: #17a2b8 !important; color: white; }
.bg-cat-contacter { background-color: #ffc107 !important; color: #212529; }
.bg-cat-technique { background-color: #6f42c1 !important; color: white; }
.bg-cat-bsea { background-color: #e83e8c !important; color: white; }
.bg-cat-attente { background-color: #fd7e14 !important; color: white; }
.bg-cat-rejet { background-color: #dc3545 !important; color: white; }
.bg-cat-arenseigner { background-color: #6c757d !important; color: white; }

.lot-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.deleted-lot {
    opacity: 0.6;
    text-decoration: line-through;
}
