/* Shared (main layout + partials) */
#loaderOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Ensure loader always wins CSS cascade */
body.is-loading #loaderOverlay {
    display: flex !important;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.dataTables_length select {
    width: 50px !important;
    display: inline-block;
}

/* _LoginPartial */
#menuWordd {
    display: inline-flex;
}

#menuIcon {
    display: none;
}

@media only screen and (min-width: 568px) and (max-width: 1023px) {
    #menuWordd {
        display: none;
    }

    #menuIcon {
        display: inline-flex;
    }
}

iframe {
    height: calc(100vh - 100px);
    width: calc(100vw - 40px);
    box-sizing: border-box;
}

/* _Layout (default) */
body.layout-main {
    min-height: 25rem;
    padding-top: 65px;
    padding-bottom: 50px;
    background-color: aliceblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.layout-main .logo {
    width: 140px;
}

@media screen and (max-width: 600px) {
    body.layout-main .logo {
        width: 100px;
    }

    body.layout-main .title {
        font-size: medium;
        padding-top: 3px;
    }
}

/* _LayoutHome */
body.layout-home {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/images/sales.jpg");
    margin: 0;
    background-position: center;
    background-repeat: repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
    padding-top: 65px !important;
}

body.layout-home .site-footer {
    background: white;
}

body.layout-home .modal1 {
    position: fixed;
    top: 0;
    left: 0;
    background-color: black;
    z-index: 99;
    opacity: 0.5;
    filter: alpha(opacity=80);
    -moz-opacity: 0.8;
    min-height: 100%;
    width: 100%;
}

body.layout-home .loading {
    font-family: Arial;
    font-size: 10pt;
    width: 200px;
    height: 100px;
    display: none;
    position: fixed;
    background-color: transparent;
    z-index: 999;
}

body.layout-home .title {
    font-size: larger;
}

body.layout-home .logo {
    width: 140px;
}

@media screen and (max-width: 600px) {
    body.layout-home .column {
        width: 100% !important;
    }

    body.layout-home .brandbar {
        padding-left: 10px;
    }

    body.layout-home .title {
        font-size: medium;
    }

    body.layout-home .logo {
        width: 100px;
    }
}

/* _LayoutLogin */
html.layout-login-html,
html.layout-login-html body.layout-login {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: hidden;
}

body.layout-login {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #1a1a1a, #333333);
}

/* _LayoutNoMenu */
body.layout-nomenu {
    background-color: ghostwhite;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.layout-nomenu .loading {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10pt;
    width: 200px;
    height: 100px;
    display: none;
    position: fixed;
    background-color: transparent;
    z-index: 999;
}

/* _Layout - Copy */
body.layout-copy {
    min-height: 25rem;
    padding-top: 65px !important;
    padding-bottom: 50px;
    background-color: aliceblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.layout-copy .body-image {
    background-image: url("/Images/sales.png");
    margin: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
}

body.layout-copy .carousel-inner img {
    width: 100%;
    height: 100%;
    padding: 10px;
}

body.layout-copy .bg {
    background-image: url("/Images/sales.png");
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.layout-copy .modal1 {
    position: fixed;
    top: 0;
    left: 0;
    background-color: black;
    z-index: 99;
    opacity: 0.5;
    filter: alpha(opacity=80);
    -moz-opacity: 0.8;
    min-height: 100%;
    width: 100%;
}

body.layout-copy .loading {
    font-family: Arial;
    font-size: 10pt;
    width: 200px;
    height: 100px;
    display: none;
    position: fixed;
    background-color: transparent;
    z-index: 999;
}

body.layout-copy .title {
    font-size: larger;
}

body.layout-copy .logo {
    width: 140px;
}

body.layout-copy input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: searchfield-cancel-button;
}

@media screen and (max-width: 600px) {
    body.layout-copy .column {
        width: 100% !important;
    }

    body.layout-copy .brandbar {
        padding-left: 10px;
    }

    body.layout-copy .title {
        font-size: medium;
        padding-top: 3px;
    }

    body.layout-copy .logo {
        width: 100px;
    }
}

/* Scorecard/Index modal (scoped; was inline on page) */
.page-scorecard-modals .modal-dialog {
    max-width: 1100px;
    max-height: 700px;
}

.page-scorecard-modals .modal-body {
    background-color: ghostwhite;
}
