/* Additional CSS to ensure consistent styling across all sections */

/* Ensure update button text is vertically centered */
.update-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    line-height: 1 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* Fix for Firefox button text alignment */
@-moz-document url-prefix() {
    .update-button {
        line-height: normal !important;
    }
}

/* Force consistent styling for all date inputs */
#stacked-start-date, #stacked-end-date,
#lower-start-date, #lower-end-date,
#start-date, #end-date {
    width: 150px !important;
    height: 30px !important;
    background-color: #F5F1E8 !important;
    color: #5D4E37 !important;
    border: 1px solid #8B7355 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Ensure consistent container styling */
.power__assignment__container .date-input-container,
.graph__container .date-input-container {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 40px !important;
    margin-bottom: 5px !important;
}

/* Ensure consistent label styling */
.date-input-container label {
    min-width: 80px !important;
    font-weight: bold !important;
    color: #5D4E37 !important;
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    #stacked-start-date, #stacked-end-date,
    #lower-start-date, #lower-end-date,
    #start-date, #end-date {
        background-image: none !important;
        padding-right: 5px !important;
    }
}

/* Fix for Edge/IE */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #stacked-start-date, #stacked-end-date,
    #lower-start-date, #lower-end-date,
    #start-date, #end-date {
        background-image: none !important;
        padding-right: 5px !important;
    }
}

/* Fix for Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #stacked-start-date, #stacked-end-date,
    #lower-start-date, #lower-end-date,
    #start-date, #end-date {
        background-image: none !important;
    }
}
