.new-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0px 5px 0px;
    /* width: 33%; */
}
.export-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 20px;
    justify-content: flex-end;
}

.tab-button {
    padding: 8px 16px;
    background-color: #e2e8f0;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.tab-button.selected {
    background-color: #0085c2;
    color: #fff;
    font-weight: bold;
}

.form-group {
    flex: 1 1 100%;
    min-width: 200px;
    box-sizing: border-box;
    padding: 10px 0;
}

label {
    font-size: 1rem;
    color: #495057;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    border: 1px solid #ced4da !important;
    border-radius: 5px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: border-color 0.2s;
}

select:not(.flatpickr-monthDropdown-months):not(.items-per-page) {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1 3l6 6 6-6H1z'/%3E%3C/svg%3E") !important;
    background-size: 12px 10px !important;
    background-repeat: no-repeat !important;
}

input:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

.button-container {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

select[multiple] {
    border: 1px solid #ced4da !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    height: 100px;
    border-radius: 5px;
    background-image: none;
    overflow-y: scroll;
}

option {
    padding: 10px;
}
input::placeholder {
    color: rgb(179, 176, 176) !important;
}
.cols4 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* Adjust for spacing */
}

.choices__list--multiple:not(:empty) {
    margin-left: 0;
}

.choices__inner {
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

.choices__input {
    font-size: 1rem !important;
    margin-bottom: 0px !important;
    padding-left: 8px !important;
}
.choices__input:disabled {
    -webkit-text-fill-color: rgb(161, 161, 170);
}

.choices.is-disabled .choices__placeholder.choices__item,
.choices__placeholder.choices__item {
    color: rgb(161, 161, 170) !important;
    opacity: unset;
    font-size: 1rem !important;
}

.choices__list--multiple .choices__item {
    background-color: #0295d8 !important;
    color: #fff !important;
    border-radius: 3px !important;
    padding: 0.4rem 0.4rem !important;
    border: 0 !important;
}

.choices[data-type*="select-multiple"] .choices__button,
.choices[data-type*="text"] .choices__button {
    border-left: 0 !important;
}

.choices__list--dropdown .choices__item--selectable {
    padding: 0.5rem;
}

.choices__item,
.choices__list--dropdown .choices__item {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.dark .choices__inner {
    background-color: rgba(var(--gray-900), var(--tw-bg-opacity)) !important;
    border: 1px solid #ddd !important;
    color: #e2e8f0 !important;
}

/* Dark theme input field */
.dark .choices__input {
    background-color: rgba(var(--gray-900), var(--tw-bg-opacity)) !important;
    color: #e2e8f0 !important;
}

/* Dark theme dropdown items */
.dark .choices__item--selectable {
    background-color: rgba(var(--gray-900), var(--tw-bg-opacity)) !important;
    color: #e2e8f0 !important;
}

/* Dark theme selected items */
.dark .choices__item--selected {
    background-color: rgba(
        var(--gray-900),
        var(--tw-bg-opacity)
    ) !important; /* Dark selected background */
    color: #e2e8f0 !important;
}

/* Dark theme search input field */
.dark .choices__search--input {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.hidden {
    display: none;
}

#detailsModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#detailsModal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

#detailsModal.open .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #0085c2;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #0191d3;
}

.modal-content p {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.modal-content p strong {
    color: #3490dc;
}

.total-items {
    padding-bottom: 5px;
}

/* Media query */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-height: 70vh;
        width: 90%;
    }

    .close-btn {
        top: 5px;
        right: 10px;
    }

    .cols4 {
        display: block;
    }
}
/* Tablet (Two Columns) */
@media (min-width: 768px) and (max-width: 1024px) {
    .form-group {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Small Desktop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .form-group {
        flex: 1 1 calc(33.33% - 20px);
    }
}

/* Large Desktop (Four Columns) */
@media (min-width: 1281px) {
    .form-group {
        flex: 1 1 calc(25% - 20px);
    }
}
