.singleheight
{
    margin: 0 auto;
    border-width: 0px;
    overflow: hidden;
    padding-top:0px;
    padding-bottom:0px;
}

.longbutton
{
    outline: 0;
    border: solid 1px #E5E5E5;
    padding: 9px;
    box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    border-radius:1px;
    width:100%;
    height:2.1em;
    background-image: linear-gradient(#EEEEEE, #FFFFFF);
    font-size:1.15em;
}
.d4fbutton
{
    padding: 9px;
    border: solid 1px #E5E5E5;
    outline: 0;
    font: normal 13px/100% Verdana, Tahoma, sans-serif;
    width: 200px;
    background: #FFFFFF url('bg_form.png') left top repeat-x;
    background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
    background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
    box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    -moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
    -webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
}


.center-div {
    width: 100%;      /* or any fixed width */
    margin: 0 auto;  /* auto margin on both sides */
}

.parent {
    display: flex;
    justify-content: center; /* horizontally centers the child in the flex container */
}

#confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal */
#custom-confirm {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 200px;
    max-width: 400px;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: system-ui, sans-serif;
    font-size: 15px;
    z-index: 9999;
    text-align: center;
    opacity: 0;

    transition: opacity 0.3s ease;
}

/* Buttons */
#custom-confirm .button-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#custom-confirm button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

#confirm-yes {
    background-color: #4CAF50;
    color: white;
}

#confirm-no {
    background-color: #ddd;
    color: #333;
}



#popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    padding: 14px 20px;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1001;
    width: 90%;
    max-width: 100%;
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

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

.form-group.modal-content {
    margin-top: 10px;
}

/* Disable pointer events on body except for the modal */
body.disabled * {
    pointer-events: none;
    opacity: 0.5;
}

body.disabled .overlay, body.disabled .modal {
    pointer-events: auto;
    opacity: 1;
}

#innerbody {
    width: 100%;
    height: 100%;
}


