@media (min-width: 0px) and (max-width: 575px) {
    #root {
        height: 450px;
    }
}

@media (min-width: 576px) {
    #root {
        height: 650px;
    }
}

@media (min-width: 768px) {
    #root {
        height: 750px;
    }
}

.table-container {
    /* margin: 12px; */
    font-family: Arial, sans-serif;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    table-layout: fixed;
    min-width: 800px;
}

th,
td {
    padding: 6px 12px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th:nth-child(1),
td:nth-child(1) {
    width: 40px;
}

th:nth-child(2),
td:nth-child(2) {
    width: 50px;
}

th:nth-child(3),
td:nth-child(3) {
    width: 60px;
}

th:nth-child(4),
td:nth-child(4) {
    width: 300px;
}

th:nth-child(5),
td:nth-child(5) {
    width: 40px;
    text-align: center;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:disabled {
    background: #f4f4f4;
    cursor: not-allowed;
}

.pagination button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 90%;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-header {
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-title {
    margin: 0;
    font-size: 1.25rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 8px;
}

.dialog-content {
    padding: 20px;
}

/* Search container */
.search-container {
    margin-bottom: 15px;
}

/* Search input */
#searchInput {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Results count */
#resultsCount {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* No results message */
#noResultsMessage {
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

/* Highlight search matches (optional) */
.highlight {
    background-color: #fff3cd;
    padding: 0 2px;
}