﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

body {
    margin: 0px !important;
    padding: 0px;
    overflow-y: hidden;
    overflow-x: hidden;
}
a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.modal {
    display: none;
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
}

.modal-body {
    height: 350px;
    overflow: hidden;
}

    .modal-body:hover {
        overflow-y: auto;
    }

.loader,
.loader:before,
.loader:after {
    background: #105d79;
    -webkit-animation: load1 1s infinite ease-in-out;
    animation: load1 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.loader {
    color: #105d79;
    text-indent: -9999em;
    margin: 88px auto;
    position: relative;
    font-size: 11px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

    .loader:before,
    .loader:after {
        position: absolute;
        top: 0;
        content: '';
    }

    .loader:before {
        left: -1.5em;
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .loader:after {
        left: 1.5em;
    }

@-webkit-keyframes load1 {
    0%, 80%, 100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

@keyframes load1 {
    0%, 80%, 100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

.ml6 {
    position: relative;
    font-weight: 900;
    font-size: 3.3em;
    color: #0056b3;
}

    .ml6 .text-wrapper {
        position: relative;
        display: inline-block;
        padding-top: 0.2em;
        padding-right: 0.05em;
        padding-bottom: 0.1em;
        overflow: hidden;
    }

    .ml6 .letter {
        display: inline-block;
        line-height: 1em;
    }

.ml15 {
    font-weight: 800;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: #00ff00
}

    .ml15 .word {
        display: inline-block;
        line-height: 1em;
    }

.nav-tabs > li .close {
    margin: -1px 0px 0px 7px;
    font-size: 22px;
}

.custom-grid {
    overflow: hidden;
}

div#Grid.sfgrid-custom:hover {
    overflow: auto;
    padding-bottom: 1px;
}

/*---------------------------snackbar----------------------*/
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #snackbar.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.loading {
    background-color: #fff;
    padding: 10% 0 0 50%;
}
/*------------Tab--------------*/

.wrapper {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    padding: 5px;
    height: 50px;
}

.list {
    position: absolute;
    left: 0px;
    top: 0px;
    min-width: 3500px;
    margin-top: 0px;
}

    .list li {
        display: table-cell;
        position: relative;
        text-align: center;
        cursor: grab;
        cursor: -webkit-grab;
        color: #efefef;
        vertical-align: middle;
    }

.scroller {
    text-align: center;
    cursor: pointer;
    display: none;
    padding: 7px;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #fff;
}

/* Display image*/

.image-dialog-container {
    min-height: 100vh;
    position: relative;
    background-color: #ddd;
}

    .image-dialog-container .image-container {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        padding: 10px;
    }

        .image-dialog-container .image-container .image {
            height: 250px;
            width: 350px;
            border: 10px solid #fff;
            box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
            overflow: hidden;
            cursor: pointer;
        }

            .image-dialog-container .image-container .image .image-review {
                height: 250px;
                width: 350px;
                overflow: hidden;
                cursor: pointer;
            }

                .image-dialog-container .image-container .image .image-review img {
                    height: 100%;
                    width: 100%;
                    object-fit: contain;
                    transition: .2s linear;
                }

            .image-dialog-container .image-container .image .image-name {
                width: 100%;
                position: relative;
                font-size: 20px;
                font-family: Arial;
                text-align: center;
                color: #fff;
                text-overflow: ellipsis;
                background-color: #008200;
                padding: 5px 0px 0px 5px;
                border-bottom: 2px solid #1b6ec2;
                border-radius: 0 0 0 2px;
                cursor: pointer;
            }

            .image-dialog-container .image-container .image .image-review:hover img {
                transform: scale(1.1);
            }

    .image-dialog-container .popup-image {
        position: fixed;
        top: 0;
        left: 0;
        padding-top: 60px;
        background: rgba(0, 0, 0, .9);
        overflow: auto;
        height: 100%;
        width: 100%;
        z-index: 100;
        display: none;
        text-align: center;
        transform-origin: center center;
        transition: transform 0.2s ease-in-out;
    }
.popup-image span {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 60px;
    font-weight: bolder;
    color: #fff;
    cursor: pointer;
    z-index: inherit;
}

.popup-image .image-wrapper {
    position: fixed;
    display: inline-block;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 101;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-content: center;
}

    .popup-image .image-wrapper img {
        position: relative;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.1s ease;
        cursor: grab;
    }

.controls {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    z-index: 102;
    list-style-type: none;
}

.control-left {
    top: 10px;
    left: 10px;
}

.control-right {
    top: 10px;
    right: 10px;
}

.controls li {
    background-color: rgba(0,0,0,0.1);
    width: 50px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    border-radius: 50%;
}

    .controls li i {
        color: white;
        font-size: 20px;
    }

    .controls li:hover {
        background-color: rgba(255,255,255,0.1);
    }

.search-image {
    padding: 5px 10px 5px 10px;
    font-size: 20px;
    text-overflow: ellipsis;
    border-radius: 4px;
    border: 1px solid grey;
    cursor: text;
    float: right;
    transition: border-color 0.3s ease;
}

@media(max-width:768px) {
    .popup-image img {
        width: 95%;
    }
}

.fixed-sidebar .app-main .app-main__outer {
    width: calc(100vw - 280px);
}

.closed-sidebar .app-main .app-main__outer {
    width: calc(100vw - 80px);
}

.btn {
    text-align: left;
    padding-left: 20px !important;
}
.btn > button {
    background-color: white;
    color: #6c757d;
    width: inherit;
    text-overflow: ellipsis;
    text-align: left;
    justify-content: center;
    border: none;
}

    .btn > button:hover {
        background-color: white;
        color: #49507c;
        font-weight: bold;
        width: inherit !important;
        text-overflow: ellipsis;
        text-align: left;
        justify-content: center;
        border: none;
    }

        .btn > button:hover span {
            font-size: 20px;
        }

    .btn > button:active {
        background-color: white;
        color: #49507c;
        font-weight: bold;
        width: inherit !important;
        text-overflow: ellipsis;
        text-align: left;
        justify-content: center;
        border: none;
        box-shadow: none;
    }

    .btn > button:focus {
        background-color: white;
        border-color: white;
        color: #49507c;
        font-weight: bold;
        width: inherit !important;
        text-overflow: ellipsis;
        text-align: left;
        justify-content: center;
        border: none;
        box-shadow: none;
    }
div.form-group label {

    font-weight: 500;
    color: #6c757d;
}
label {
    font-weight: 500;
    color: #6c757d;
}
button.command-grid-btn:focus {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #6c757d !important;
}
    button.command-grid-btn:focus > span {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        color: #6c757d !important;
    }
button.command-grid-btn:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #6c757d !important;
}

    button.command-grid-btn:hover > span {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        color: #6c757d !important;
        font-weight: bold;
        font-size: 20px;
    }
/* Phần css cho loading*/
.overlay-freeze {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 10000 !important;
/*    display: none;*/
}
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001 !important;
    animation: fadeIn .2s ease-out;
}

