@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html,
body,
div#app {
    font-family: 'Roboto', sans-serif;
    /*position: fixed;*/
    width: 100%;
    height: calc(100vh - calc(100vh - 100%));
    overscroll-behavior-y: contain;
}

body {
    touch-action: pan-x pan-y;
}

header nav {
    min-height: 48px;
    background-color: #0c68a8;
}

.app-content-wrapper {
    width: 100%;
    height: calc(100vh - calc(100vh - 100%) - 48px);
    display: grid;
    grid-template-rows: max-content auto;
}

.app-content-head {
    width: 100%;
    padding: 10px;
}

.app-content-body {
    width: 100%;
    overflow: auto;
}

.wrapper-centered {
    text-align: center;
    display: block;
}

    .wrapper-centered::before,
    .wrapper-centered .centered {
        display: inline-block;
        vertical-align: middle;
        text-align: left;
    }

    .wrapper-centered::before {
        content: '';
        width: 0;
        height: 100%;
    }

.app-loading {
    margin-top: -33px;
}

.app-loading-caption {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0c68a8
}

.app-loading-text {
    color: #a1a1a1
}


.loading-item .item-image {
    width: 50px;
    height: 50px;
    animation: loader 3s infinite ease-in-out;
    -webkit-animation: loader 3s infinite ease-in-out;
}

.loading-item .content .title {
    height: 12px;
    margin: 10px;
    width: 200px;
    animation: loader 3s infinite ease-in-out;
    -webkit-animation: loader 3s infinite ease-in-out;
}

.loading-item .content .short-title {
    height: 12px;
    margin: 10px;
    width: 350px;
    animation: loader 3s infinite ease-in-out;
    -webkit-animation: loader 3s infinite ease-in-out;
}

@keyframes loader {
    0% {
        background-color: rgba(165, 165, 165, 0.1);
    }

    50% {
        background-color: rgba(165, 165, 165, 0.3);
    }

    100% {
        background-color: rgba(165, 165, 165, 0.1);
    }
}

@-webkit-keyframes loader {
    0% {
        background-color: rgba(165, 165, 165, 0.1);
    }

    50% {
        background-color: rgba(165, 165, 165, 0.3);
    }

    100% {
        background-color: rgba(165, 165, 165, 0.1);
    }
}

.mud-dialog-width-sm {
    max-width: 65% !important;
}

.mud-dialog {
    height: 80% !important;
    max-width: 90% !important;
}

/* Hộp xác nhận nhỏ (MaxWidth.ExtraSmall, vd. «Cảnh báo thiếu ảnh») không lấy kích thước popup khai báo xe ở trên. */
.mud-dialog.mud-dialog-width-xs {
    height: auto !important;
    max-width: 480px !important;
}

.mud-collapse-container {
    background-color: var(--mud-palette-background) !important;
}

.mud-expand-panel .mud-expand-panel-content {
    padding: 0 10px 10px !important;
}

.video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

.height-limited .mud-expand-panel-content {
    overflow-y: auto;
    max-height: 20vh;
}

.startup-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(226, 232, 240, 0.98)),
        #f8fafc;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.startup-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.startup-loader__panel {
    width: min(100%, 360px);
    padding: 28px 24px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.startup-loader__spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid rgba(12, 104, 168, 0.16);
    border-top-color: #0c68a8;
    animation: startupLoaderSpin 0.85s linear infinite;
}

.startup-loader__title {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.startup-loader__message {
    margin-top: 8px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
}

@keyframes startupLoaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
