.ui-datepicker td,
.aui-datepicker td,
.datepicker td {
    padding: 0rem 0rem !important;
}

.error-message{
	color: red; display: none;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.export-btn {
    background-color: #00A887;
    color: white;
    border: none;
    border-radius: 32px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background-color: #009977; /* Slightly darker for hover */
}

.export-btn svg {
    width: 20px;
    height: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 168, 135, 0.3); /* Adjusted RGBA to match */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 2rem;
    box-shadow: none;
    width: 100%;
    max-width: 600px;
    left: auto;
    top: auto;
    height: auto;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 24px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #050505;
}

.modal-body {
    padding: 24px;
    overflow: visible !important;
    position: relative; 
    z-index: auto;
}

.date-range {
    display: flex;
    gap: 20px;
    margin-bottom: 0.5rem;
}

.date-field {
    flex: 1;
}

.date-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.date-input {
    position: relative;
    width: 100%;
}

.date-input input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #00C1DE;
    border-radius: 2rem;
    font-size: 16px;
}

.calendar-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #00A887;
    pointer-events: none;
}

.calendar-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.date-hint {
    font-size: 12px;
    color: #999999;
    margin-top: 4px;
}

.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.checkbox-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: #00A887;
    color: #00A887;
}

.checkbox-item label {
    font-size: 15px;
}

.format-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.format-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: 1px solid #00A887;
    border-radius: 2rem;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, border-color 0.2s;
    color: #00A887;
}

.format-btn:hover {
    background-color: #00A887;
    border-color: #00A887;
    color: #fff;
}

.format-btn svg {
    width: 20px;
    height: 20px;
    color: #00A887;
}

.format-btn:hover svg {
    stroke: #fff;
}

@media (max-width: 768px) {
    .date-range {
        flex-direction: column;
        gap: 16px;
    }

    .checkbox-column {
        min-width: 100%;
    }

    .format-btn {
        min-width: 100%;
    }

    .modal {
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .checkbox-options {
        gap: 16px;
    }

    .format-options {
        flex-direction: column;
    }
}