﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: DINPro;
    src: url("font/DINPro Medium.otf") format("opentype");
}

html, body {
    font-family: DINPro !important;
    font-size: 95% !important;
    color: #212529 !important;
}

button {
    font-family: DINPro !important;
}

select {
    font-family: DINPro !important;
}

p {
    font-family: DINPro !important;
}

a, .btn-link {
    color: #0366d6;
}

body .pwa-updater[b-pwa-updater] {
    --pwa-updater-bar-backcolor: forestgreen;
}

.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;
    }



.title-description-row {
    color: #ccc;
    font-size: 70%;
}

.uppercase-typing:focus {
    color: red !important;
    text-transform: uppercase !important;
}

.uppercase-typing {
    text-transform: uppercase !important;
}


/*Custom Scrollbar using CSS*/
.custom-scrollbar-js,
.custom-scrollbar-css {
}



.custom-scrollbar-css {
    overflow-y: scroll;
}

    /*scrollbar width*/
    .custom-scrollbar-css::-webkit-scrollbar {
        width: 10px;
    }

    /*scrollbar track*/
    .custom-scrollbar-css::-webkit-scrollbar-track {
        background: #eee;
    }

    /*scrollbar handle*/
    .custom-scrollbar-css::-webkit-scrollbar-thumb {
        border-radius: 1rem;
        background-color: #ccc;
        // background-image: linear-gradient(to top, #fff 0%, #ccc 100%);
    }

.swal-wide-column-tips {
    width: 1080px !important;
    margin-left: -500px !important;
}

.swal-wide-message {
    width: 80vw !important;
    margin-left: -40vw !important;
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #4b515d;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

    #snackbar.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

@@-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;
    }
}

.full-size-sidebar {
    // min-width: 250px !important;
    // transition: all 0.5s;
}

.sidebar {
    // transition: all 0.5s;
    min-width: 64px !important;
}

.hidden-sidebar {
    width: 64px !important;
    // transition: all 0.5s;
}

.app-hide-menu-chevron {
    color: #fff;
}

    .app-hide-menu-chevron:hover {
        cursor: pointer;
    }

.navmenu-top:hover {
    cursor: pointer;
}

.rotate-ico {
    -moz-transition: all 2s linear;
    -webkit-transition: all 2s linear;
    transition: all 2s linear;
}

    .rotate-ico.down {
        -ms-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }


.button-bar-control {
    height: 64px;
}

.button-bar-control-button {
    height: 48px;
    background-color: #1b6ec2;
    line-height: 22px;
    vertical-align: middle;
    float: left;
    margin: 5px;
    padding: 15px;
    border-radius: 1px;
    color: #fff;
}

    .button-bar-control-button.active {
        color: #17a2b8 !important;
        font-weight: bold;
    }

    .button-bar-control-button:hover {
        background-color: #015BC1;
        cursor: pointer;
    }



#dragdrop .well {
    padding: 8px;
    border: 0;
    background: #e0e0e0;
}

    #dragdrop .well .header {
        color: #000;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    #dragdrop .well .subheader {
        color: #969696;
        font-size: 12px;
        padding: 8px;
        border-bottom: 1px solid #ccc;
        background: #fff;
        -webkit-border-top-left-radius: 5px;
        -webkit-border-top-right-radius: 2px;
        -moz-border-radius-topleft: 2px;
        -moz-border-radius-topright: 2px;
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
    }

        #dragdrop .well .subheader .buttonsml {
            background: #5bb95b;
            padding: 3px;
            color: #fff;
            font-size: 11px;
            line-height: 9px;
        }

.draglist-shift {
    margin-left: -3% !important;
    width: 53% !important;
}


.sortable-list {
    background-color: #fff;
    list-style: none;
    margin-bottom: 10px;
    min-height: 30px;
    padding: 5px;
}

    .sortable-list:last-child {
        margin-bottom: 0;
    }




.placeholder {
    background-color: #ccc;
    border: 1px dashed #666;
    height: 40px;
    margin-bottom: 5px;
}

.dragbleList {
    max-height: 400px;
    overflow: auto;
}

.sortable-item {
    background: #f1f1f1 url(dragListicon.png) 10px 10px no-repeat;
    cursor: move;
    display: block;
    margin-bottom: 2px;
    padding: 6px 6px 6px 24px;
    color: #5a5a5a;
    font-size: 12px;
}

.sortable-draggable-cursor {
    cursor: move;
}

.copytoclipboard:hover {
    cursor: pointer;
    color: #1861ac !important;
}

#screenLinkAppDisplayDiv:hover {
    cursor: pointer;
}

/*
    People page
*/

.show-autoadmits-in-grid-btn {
    background-color: #1b6ec2 !important;
    color: white !important;
    width: 128px !important;
}

    .show-autoadmits-in-grid-btn:hover {
        cursor: pointer;
        background-color: gray !important;
    }


.create-pass-in-grid-btn:hover {
    cursor: pointer;
}

.remove-autoadmit-in-grid-btn:hover {
    cursor: pointer;
}

.schedule-autoadmit-in-grid-btn:hover {
    cursor: pointer;
}

/*
    ------
*/

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.delete-memo-in-grid-btn {
    /* background-color: #1b6ec2 !important;
    color: white !important;*/
    width: 128px !important;
}

    .delete-memo-in-grid-btn:hover {
        cursor: pointer;
        /*  background-color: gray !important;*/
    }


.portal-document-list-item {
}

    .portal-document-list-item:hover {
        cursor: pointer;
        transform: scale(1.05);
    }

.table-expand-button {
    width: 32px;
    height: 32px;
    display: inline-block;
    line-height: 32px;
    text-align: center;
    vertical-align: middle;
    border-radius: 2px;
    color: #1B6EC2 !important;
}

    .table-expand-button:hover {
        cursor: pointer;
        /*  background-color: #f0f0f0;*/
        color: #2C47C1 !important;
    }

.accept-portalrequest-in-grid-btn {
    background-color: green !important;
    color: white !important;
    width: 128px !important;
}

    .accept-portalrequest-in-grid-btn:hover {
        cursor: pointer;
        background-color: gray !important;
    }

.reject-portalrequest-in-grid-btn {
    background-color: red !important;
    color: white !important;
    width: 128px !important;
}

    .reject-portalrequest-in-grid-btn:hover {
        cursor: pointer;
        background-color: gray !important;
    }

/*System message start*/



/*System message end*/

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

/*Bootstrap modal over navbar*/
/*.modal {
    z-index: 10000 !important;
}*/

*:fullscreen
*:-ms-fullscreen,
*:-webkit-full-screen,
*:-moz-full-screen {
    overflow: auto !important;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }


/*System Message Popover Width Start */
@media screen and (min-width: 800px) {

    .system-message-popover-grid {
        min-width: 640px;
    }
}

@media screen and (max-width: 800px) {

    .system-message-popover-grid {
        min-width: 80vw;
    }
}
/*System Message Popover Width End */


/*Dialog Width Start */
@media screen and (min-width: 800px) {

    .manual-gate-control-dialog {
        min-width: 512px !important;
    }
}

@media screen and (max-width: 800px) {

    .manual-gate-control-dialog {
        min-width: 80vw !important;
    }
}
/*Dialog Width End */

.plate-number-input .mud-input-slot {
    text-transform: uppercase !important;
}

.swal-overylay-modal-force {
    z-index: 1000000 !important;
    border: 1px #ccc solid;
    background-color: #fafafa !important;
}

/*Bootstrap Tabs Start*/

.nav-item {
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

.nav-link {
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
}

.nav-item-cursor:hover {
    cursor: pointer;
    color: #2196F3;
    background-color: #f8f8f8;
}

.nav-link-cursor:hover {
    cursor: pointer;
    color: #2196F3;
    background-color: #f8f8f8;
}

.nav-item .active {
    color: #2196F3 !important;
}

.nav-link .active {
    color: #2196F3 !important;
}

/*Bootstrap Tabs End*/

/*System Message Badge Positioning Start */
.notif-badge-root > [class*="mud-badge-"]:not([class*="root"]) {
    top: 10px !important;
    left: -10px !important;
    transform: none !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.sysmsg-popover {
    width: clamp(320px, 80vw, 640px); /* responsive width */
    max-height: 70vh; /* prevent vertical overflow */
    overflow: auto; /* scroll inside when needed */
    /* small nudge down from the app bar if you like */
    margin-top: 6px;
}

/* optional: round + shadow consistency (if needed) */
.sysmsg-popover {
    border-radius: 12px;
}

.sysmsg-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

    .sysmsg-text a {
        text-decoration: underline;
    }

.notif-wrap {
    position: relative;
    display: inline-block;
}

/* The click overlay covers bell + red badge */
.notif-hitbox {
    position: absolute;
    inset: -6px; /* slightly larger than the visual to make it easy to hit */
    border-radius: 9999px;
    cursor: pointer;
}

.notif-badge-root > .mud-badge-badge,
.notif-badge-root .mud-badge-content {
    user-select: none;
    -webkit-user-select: none;
}
/*System Message Badge Positioning End */

/* Fixed zoom toolbar pinned to bottom-left of the viewport */
.zoom-toolbar {
    position: fixed;
    left: 12px;
    bottom: 12px;
    right: auto;
    top: auto;
    z-index: 999999;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    max-width: calc(100vw - 24px);
    flex-wrap: wrap;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    /* Important: don't let page zoom/scale affect the toolbar */
    transform: none !important;
    zoom: 1 !important;
    /* Optional: prevent accidental text selection while tapping */
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    /* Optional: smoother visuals */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    /* Optional: add a little breathing room between wrapped rows */
    .zoom-toolbar > * {
        margin: 2px 0;
    }