.ruptures-stock-container {
    margin: 20px 0;
}

.ruptures-controls {
    margin-bottom: 20px;
}

.ruptures-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ruptures-controls .search-input-container .search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}

.ruptures-controls .search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.ruptures-controls .search-button {
    position: absolute;
    right: 8px;
    background: none !important;
    border: none;
    color: #ababab !important;
}

.ruptures-controls .filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 19px 16px;
    background: transparent;
    border-radius: 0px;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: #e9ecef;
    border-color: var(--uicore-primary-color);
}

/* Modal des filtres */
.filter-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.filter-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-content {
    background: white;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.filter-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close-btn:hover {
    color: #333;
}

.filter-modal-body {
    padding: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
}

.filter-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.apply-btn {
    padding: 10px 20px;
    background: var(--uicore-primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.apply-btn:hover {
    background: var(--uicore-primary-color);
    opacity: 0.9;
}

.reset-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
}

.reset-btn:hover {
    background: #e9ecef;
}

.table-responsive {
    overflow-x: auto;
}

.ruptures-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 20px;
    background: white;
}

.ruptures-table .pdf-link {
    font-size: 13px;
}

.ruptures-table th {
    background: var(--uicore-primary-color);
    font-weight: 600;
    padding: 15px 12px;
    border: 1px solid #e1e1e1;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    min-width: 70px;
    text-transform: uppercase;
    font-size: 13px;
    color: white;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.sortable-header:hover {
    background-color: #266d22;
}

.sort-indicator {
    font-size: 12px;
    color: #6c757d;
    margin-left: 5px;
}

.sortable-header.sort-asc .sort-indicator::after {
    content: ' ↑';
    color: var(--uicore-primary-color);
    font-weight: bold;
}

.sortable-header.sort-desc .sort-indicator::after {
    content: ' ↓';
    color: var(--uicore-primary-color);
    font-weight: bold;
}

.ruptures-table td {
    padding: 12px;
    border: 1px solid #e1e1e1;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 200px;
}

.ruptures-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ruptures-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.ruptures-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}


.no-file {
    color: #6c757d;
    font-style: italic;
}

.text-center {
    text-align: center;
}

.ruptures-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .ruptures-search {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }
    
    .filter-toggle-btn {
        justify-content: center;
    }
    
    .filter-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .ruptures-table {
        font-size: 12px;
    }
    
    .ruptures-table th,
    .ruptures-table td {
        padding: 8px 6px;
        min-width: 100px;
    }
    
    .search-input {
        font-size: 16px;
    }
}