html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.no-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Overwrite the default hover on a table row to a color that is light yellow*/
.table-hover > tbody > tr:hover {
    --bs-table-hover-bg: #FFFFE0;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-image: url(/images//bodyBackground.jpg);
}

table {
    background-color: white;
}


/*******BOOTSTRAP FIXED********/
span.alert {
    padding: 0 0 0 0.92rem;
    font-size: 0.90rem;
    display: inline-block;
}

    span.alert:empty {
        display: none;
        padding: 0;
    }

    div.alert:empty {
        display: none;
        padding: 0;
    }

/*boostrap does not support submenu, so whenever we have a split button inside a dropdown-menu we need to fixed
using javascript - .fixSubmenuBootLoader and css
*/
.fixSubmenuBootLoader .dropdown-submenu {
    position: relative;
}

    .fixSubmenuBootLoader .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 98%;
        margin-top: -1px;
    }

    /*Withou out this the arrow are not going to all the way to the right*/
    .fixSubmenuBootLoader .dropdown-submenu .btn-group.dropend {
        width: 100%;
    }
    /*with out this the icon and text are sometimes show in diferent lines*/
        .fixSubmenuBootLoader .dropdown-submenu .btn-group.dropend > .btn:first-of-type {
            width: 100%;
            display: flex;
            align-items: center;
        }


        /* Remove border-radius from button group and dropdown menu */
        .fixSubmenuBootLoader .dropdown-submenu .btn-group.dropend,
        .fixSubmenuBootLoader .dropdown-submenu .btn-group.dropend .btn,
        .fixSubmenuBootLoader .dropdown-submenu .btn-group.dropend .dropdown-toggle-split,
        .fixSubmenuBootLoader .dropdown-submenu .btn-group.dropend .dropdown-menu {
            border-radius: 0; /* Remove border-radius */
        }

    /* Apply Bootstrap’s default highlight on hover */
    /* Apply hover effect to the entire button group */
    /*.bctsFix-btn-group-hover,*/
    .fixSubmenuBootLoader .dropdown-submenu .btn-group:hover .btn {
        background-color: #e9ecef; /* Light gray background */
        border-color: #dee2e6; /* Light border color */
    }

    /* Ensure consistent appearance when the dropdown menu is visible */
    .fixSubmenuBootLoader .dropdown-submenu .btn-group .btn:focus,
    .fixSubmenuBootLoader .dropdown-submenu .btn-group .btn:active {
        box-shadow: none; /* Remove focus box-shadow */
        border-color: #dee2e6; /* Border color to match the hover state */
    }

    /* Remove border when button group loses focus */
    .fixSubmenuBootLoader .dropdown-submenu .btn-group .btn:focus-within {
        box-shadow: none; /* Remove box shadow */
        border-color: transparent; /* Remove border color */
    }

    .fixSubmenuBootLoader .dropdown-submenu .btn-group:hover .dropdown-toggle-split,
    .fixSubmenuBootLoader .dropdown-submenu .btn-group:focus .dropdown-toggle-split {
        background-color: #A9A9A9; /* Light gray background */
    }


/* For bootstrap full window, i like to create the top of the window
    with a little bit of tranparency, so the uses know 
    that he is in the same page.
*/
.bctsFullScreen.modal-fullscreen .modal-content {
    background-color: rgba(255, 255, 255, 0.5); /*rgba(255, 255, 255, 0.8);*/ /* Semi-transparent background */
    padding-top: 3.5em;
}

/* Since the entire content is transparent, the backgroup needs to be set to white*/
.bctsFullScreen.modal-fullscreen .modal-body,
.bctsFullScreen.modal-fullscreen .modal-header,
.bctsFullScreen.modal-fullscreen .modal-footer {
    background-color: white;
}

.bctsPdfViewer {
    width: 100%;
}

.bctsPdfPages canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px auto;
}



.bctsHide {
    visibility: hidden;
    opacity: 0;
    height: 0;
    transition: all 1s;
}

.bctsShow {
    visibility: visible;
    opacity: 1;
    height: auto;
    transition: all 1s;
}

.shakeEl {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.5s;
    /* When the animation is finished, start again */
    animation-iteration-count: infinite;
}

.shakeEl {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.5s;
    /* When the animation is finished, start again */
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.bctsHiddenClassForTarget {
    display: block;
    height: 1px;
    visibility: hidden;
    position: relative;
    border: none;
    top: -5px;
    z-index: 1
}

.bctsInvalidInputClass, input:invalid, select:invalid {
    //color: red;
    border-color: red !important;
}


/* ajax classess - So that the ms can help with auto type
.bctsBootLoadConfirmDelete, .bctsAutoComplete, .bctsBootLoadSpinner,
.bctsBootLoadCapLock, .bctsAjaxBootloader,
.bctsRadioTargetBootLoader, .bctsDisplayMessageBootLoader, .bctsRadioTargetBootLoader, .fixSubmenuBootLoader {
}
*/
