body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f8f9fa;
}

h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

.form-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    align-items: center;
}

.form-row>div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-right: 10px;
    min-width: 300px;
    max-width: unset;
}

.form-row label {
    margin-right: 10px;
    font-size: 14px;
    color: #555;
}

input[type="date"],
input[type="text"],
select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 14px;
    width: 180px;
    transition: border-color 0.3s ease;
}

input[type="date"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

.custom-multi-select {
    position: relative;
    max-width: 300px;
}

.dropdown-btn {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    cursor: pointer;
    width: 250px;
    max-width: 250px;
    text-align: left;
    border-radius: 4px;
    display: inline-block;
    background-color: #f9f9f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-btn.active {
    width: 250px;
}

.dropdown-btn:after {
    content: '▼';
    float: right;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    max-width: 250px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 4px;
}

.dropdown-content label {
    padding: 10px;
    display: block;
    white-space: nowrap;
}

.dropdown-content label:hover {
    background-color: #f1f1f1;
}

.dropdown-checkbox {
    margin-right: 10px;
}

.dropdown-btn.active:after {
    content: '▲';
}

.selected-options {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
}

.buttonStyle {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.buttonStyle:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.buttonStyle:active {
    background-color: #004085;
}

.buttonStyle:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    margin: 0 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #ff4000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

#toggleLabel {
    font-weight: bold;
    font-size: 16px;
    margin-left: 10px;
    vertical-align: middle;
}
.button-group {
    display: flex;
    gap: 15px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .loader {
        width: 80%;
        font-size: 18px;
        padding: 15px;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }
}