.modalbox
{
    position: relative;
}

.management-btns-wrapper > .modalbox
{
    display: inline-block !important;
}

.modalbox .modalbox-overlay
{
    /*display: none;*/
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: visible;
    z-index: 999;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0.0;

    /* Some sort of primitive animation code */
    transition: 0.5s opacity, 0.5s visibility;
    -webkit-transition: 0.5s opacity, 0.5s visibility;
    -moz-transition: 0.5s opacity, 0.5s visibility;
    -ms-transition: 0.5s opacity, 0.5s visibility;
    -o-transition: 0.5s opacity, 0.5s visibility;
}

.modalbox .modalbox-overlay .modalbox-content
{
    position: absolute;
    display: block;
    width: fit-content;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    z-index: 1000;

    /* Include padding in the content wrapper width */
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 10px 0 rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 10px 0 rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 10px 0 rgba(0, 0, 0, 0.4);

    /* 
        Since we have all: initial !important set on .modalbox, we need to re-apply some stuff 
        Chrome doesn't need it, but other browsers do!
    */
    color: #636b6f;
    font-family: "Raleway", sans-serif;
    line-height: 1.6;
}

.modalbox-content-scalebump
{
   /* More primitive animation code */
    animation: scalebump 0.275s ease-in-out;
    -webkit-animation: scalebump 0.275s ease-in-out;
    -moz-animation: scalebump 0.275s ease-in-out;
    -o-animation: scalebump 0.275s ease-in-out;
}

@keyframes scalebump
{
    0%              
    { 
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);
    }
    
    33%
    {
        transform: scale(1.1, 1.1);
        -webkit-transform: scale(1.1, 1.1);
        -moz-transform: scale(1.1, 1.1);
        -ms-transform: scale(1.1, 1.1);
        -o-transform: scale(1.1, 1.1);
    }

    66%
    {
        transform: scale(0.9, 0.9);
        -webkit-transform: scale(0.9, 0.9);
        -moz-transform: scale(0.9, 0.9);
        -ms-transform: scale(0.9, 0.9);
        -o-transform: scale(0.9, 0.9);
    }

    100%           
    {
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);   
    }
}

@-webkit-keyframes scalebump
{
    0%              
    { 
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);
    }
    
    33%
    {
        transform: scale(1.1, 1.1);
        -webkit-transform: scale(1.1, 1.1);
        -moz-transform: scale(1.1, 1.1);
        -ms-transform: scale(1.1, 1.1);
        -o-transform: scale(1.1, 1.1);
    }

    66%
    {
        transform: scale(0.9, 0.9);
        -webkit-transform: scale(0.9, 0.9);
        -moz-transform: scale(0.9, 0.9);
        -ms-transform: scale(0.9, 0.9);
        -o-transform: scale(0.9, 0.9);
    }

    100%           
    {
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);    
    }
}

@-moz-keyframes scalebump
{
    0%              
    { 
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);
    }
    
    33%
    {
        transform: scale(1.1, 1.1);
        -webkit-transform: scale(1.1, 1.1);
        -moz-transform: scale(1.1, 1.1);
        -ms-transform: scale(1.1, 1.1);
        -o-transform: scale(1.1, 1.1);
    }

    66%
    {
        transform: scale(0.9, 0.9);
        -webkit-transform: scale(0.9, 0.9);
        -moz-transform: scale(0.9, 0.9);
        -ms-transform: scale(0.9, 0.9);
        -o-transform: scale(0.9, 0.9);
    }

    100%           
    {
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);   
    }
}

@-o-keyframes scalebump
{
    0%              
    { 
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);
    }
    
    33%
    {
        transform: scale(1.1, 1.1);
        -webkit-transform: scale(1.1, 1.1);
        -moz-transform: scale(1.1, 1.1);
        -ms-transform: scale(1.1, 1.1);
        -o-transform: scale(1.1, 1.1);
    }

    66%
    {
        transform: scale(0.9, 0.9);
        -webkit-transform: scale(0.9, 0.9);
        -moz-transform: scale(0.9, 0.9);
        -ms-transform: scale(0.9, 0.9);
        -o-transform: scale(0.9, 0.9);
    }

    100%           
    {
        transform: scale(1.0, 1.0);
        -webkit-transform: scale(1.0, 1.0);
        -moz-transform: scale(1.0, 1.0);
        -ms-transform: scale(1.0, 1.0);
        -o-transform: scale(1.0, 1.0);   
    }
}

.modalbox .modalbox-button
{
    border: none;
    background: transparent;
    color: transparent;
    cursor: pointer;
    padding: 1%;
    margin: 0.25%;
}

.modalbox .modalbox-button:focus
{
    outline: none;
}

.modalbox .modalbox-button:hover
{
    background-color:  rgb(66, 134, 244);
    color: white;
}

.modalbox-row
{
    width: 100%;
    table-layout: fixed;
    border-spacing: 0px;
}

.modalbox-row tbody tr td .modalbox .modalbox-button
{
    width: fit-content;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    white-space: nowrap;
}

/***************************** THIS STUFF IS OPTIONAL *****************************/
/*
    MODALBOX AJAX RESPONSE MESSAGE CODE
*/
.modalbox-ajax-response-msg 
{
    display: block;
    width: 75%;
    margin: 0 auto;
    font-size: 500%;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.modalbox-ajax-response-msg.success                  { color: green !important; }
.modalbox-ajax-response-msg.error                    { color: red !important; }

.modalbox-ajax-response-msg p
{
    font-size: initial;
    font-size: medium; /* IE10 */
    font-weight: bold;
    text-align: center;
}

/*
    MODALBOX AJAX RESPONSE MESSAGE CLOSEBTN CODE
*/
.modalbox-ajax-rsmsg-closebtn
{
    display: block;
    border: none;
    background: transparent;
    margin: 0 auto;
    padding: 2.5%;
    cursor: pointer;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.modalbox-ajax-rsmsg-closebtn:focus
{
    outline: none;
}


.modalbox-ajax-rsmsg-closebtn.success                   
{    
    transition: 0.5s background-color, 0.5s color;
    -webkit-transition: 0.5s background-color, 0.5s color;
    -moz-transition: 0.5s background-color, 0.5s color;
    -ms-transition: 0.5s background-color, 0.5s color;
    -o-transition: 0.5s background-color, 0.5s color; 
    color: green; 
}

.modalbox-ajax-rsmsg-closebtn.success:hover             
{ 
    background: green; 
    color: white; 
}

.modalbox-ajax-rsmsg-closebtn.error                     
{ 
    transition: 0.5s background-color, 0.5s color;
    -webkit-transition: 0.5s background-color, 0.5s color;
    -moz-transition: 0.5s background-color, 0.5s color;
    -ms-transition: 0.5s background-color, 0.5s color;
    -o-transition: 0.5s background-color, 0.5s color; 
    color: red; 
}

.modalbox-ajax-rsmsg-closebtn.error:hover               
{ 
    background: red; 
    color: white; 
}

/*
    START OF SORTABLE TABLE OVERRIDE CRAP
*/
.management-btns-wrapper .modalbox-button[data-extra-css^="mbox-table-sortable-btn"]
{
    font-size: 125%;
    opacity: 0.5;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE8 */
    filter: alpha(opacity=50); /* IE 5-7 */

    transition: 0.5s opacity, 0.5s text-shadow;
    -webkit-transition: 0.5s opacity, 0.5s text-shadow;
    -moz-transition: 0.5s opacity, 0.5s text-shadow;
    -ms-transition: 0.5s opacity, 0.5s text-shadow;
    -o-transition: 0.5s opacity, 0.5s text-shadow;
}

.mbox-table-sortable-btn
{
    font-size: 110%;
}

.mbox-table-sortable-btn:hover
{
    background: transparent !important;
    opacity: 1.0 !important;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* IE8 */
    filter: alpha(opacity=100); /* IE 5-7 */
}

.mbox-table-sortable-btn.success                                    { color: green; }
.mbox-table-sortable-btn.success:hover	                            { color: green !important; text-shadow: 0 0 1px green; }
.mbox-table-sortable-btn.warning                                    { color: orange;  }
.mbox-table-sortable-btn.warning:hover                              { color: orange !important; text-shadow: 0 0 3px orange; }
.mbox-table-sortable-btn.danger                                     { color: red; }
.mbox-table-sortable-btn.danger:hover                               { color: red !important; text-shadow: 0 0 1px red; }
.mbox-table-sortable-btn.info                                       { color: blue; }
.mbox-table-sortable-btn.info:hover                                 { color: blue !important; text-shadow: 0 0 1px blue; }

.mbox-table-sortable-btn.no-access                                  { color: red; cursor: not-allowed; }
.mbox-table-sortable-btn:hover                                      { color: red !important; text-shadow: 0 0 1px red; }

.close-modalbox-form-btn
{
    display: block;
    width: fit-content;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    border: none;
    background: transparent;
    margin: 2.5% auto;
    cursor: pointer;
    color: tomato;
    font-family: "Arial";
    font-size: 250%;
    font-weight: bolder;
    transition: 0.5s text-shadow, 0.5s color;
    -webkit-transition: 0.5s text-shadow, 0.5s color;
    -moz-transition: 0.5s text-shadow, 0.5s color;
    -ms-transition: 0.5s text-shadow, 0.5s color;
    -o-transition: 0.5s text-shadow, 0.5s color;
}

.close-modalbox-form-btn:hover
{
    text-shadow: 0 0 5px tomato;
    color: red;
}

.close-modalbox-form-btn:focus
{
    outline: none;
}