html {
    scrollbar-gutter: stable;
}

body {
    font-family: Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    display: block;
    position: relative;
    left: 0;
    top: 0;
    opacity: 0.8;
    background-image: url('img/logobg.png');
    background-repeat: repeat;
    background-position: 50% 0;
    background-size: contain;
    color: black;
}

.text-danger{
    color: red;
}

/*.article{
    padding-top: 1.1rem;
    opacity: 1.0;
    color: black;
    background-color:white;
    border: solid 1px black;
    padding: 5px;
    border-radius: 7px;
}*/
.gdpr-banner {
    font-size: medium;
    font-weight: 500;
    padding: 16px 0;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /*border: 1px solid #e0e0e0;*/
}

@font-face {
    font-family: CCodeQR;
    src: url("../fonts/CCodeQR.woff") format("woff");
}

#qrBarcodeFonts {
    font-weight: normal;
    font-style: normal;
    line-height: normal;
    font-family: 'CCodeQR', sans-serif;
    font-size: 12px;
    letter-spacing: -1px;
    line-height: 98%;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiI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2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.layout {
    display: flex;
    min-height: 100vh;
}

ol.round {
    list-style-type: none;
    padding-left: 0;
}

    ol.round li {
        margin: 25px 0;
        padding-left: 45px;
    }

        ol.round li.zero {
            background: url("img/orderedList0.png") no-repeat;
            height: 30px;
        }

        ol.round li.one {
            background: url("img/orderedList1.png") no-repeat;
            height: 30px;
        }

        ol.round li.two {
            background: url("img/orderedList2.png") no-repeat;
            height: 30px;
        }

        ol.round li.three {
            background: url("img/orderedList3.png") no-repeat;
            height: 30px;
        }

        ol.round li.four {
            background: url("img/orderedList4.png") no-repeat;
            height: 30px;
        }

        ol.round li.five {
            background: url("img/orderedList5.png") no-repeat;
            height: 30px;
        }

        ol.round li.six {
            background: url("img/orderedList6.png") no-repeat;
            height: 30px;
        }

        ol.round li.seven {
            background: url("img/orderedList7.png") no-repeat;
            height: 30px;
        }

        ol.round li.eight {
            background: url("img/orderedList8.png") no-repeat;
            height: 30px;
        }

        ol.round li.nine {
            background: url("img/orderedList9.png") no-repeat;
            height: 30px;
        }

.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3; /* Light gray border */
    border-top: 4px solid #3498db; /* Blue border */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sidebar */
.sidebar {
    /*    width: 240px;
   background: #1f2937;*/
    color: white;
    padding: 0.3rem;
    /*transition: transform 0.25s ease;*/
}

    /* Hidden state */
    .sidebar.hidden {
        transform: translateX(-100%);
    }

    /* Sidebar links */
    .sidebar a {
        display: block;
        color: white;
        text-decoration: none;
        padding: 0.1rem 0;
    }

        .sidebar a:hover {
            background: rgba(255,255,255,0.1);
        }

/* Content */
.content {
    flex: 1;
    padding: 1rem;
}
/* Toggle button */
.sidebar-toggle {
    background: #1f2937;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.sub-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100%;
}

.sub-nav {
    flex-shrink: 0;
    transition: width 0.3s ease;
    overflow: hidden;
}

    .sub-nav.expanded {
        padding-top: 60px;
        width: 215px;
    }

    .sub-nav.collapsed {
        padding-top: 60px;
        width: 10px;
    }

.sub-page {
    flex: 1;
    padding: 1.0rem;
    width: 100%;
}

.alpha-buttons .alpha-btn {
    width: 35px; /* fixed width for all buttons */
    text-align: center; /* center the letter */
    padding: 0.375rem 0; /* optional: adjust vertical padding */
    border-radius: 50%;
}

.round-button-radzen {
    margin-right: 5px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
}

.rounded-input {
    border-radius: 50%; /* adjust as needed */
}

.subnav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    /* Hover */
    .subnav-link:hover {
        /*background-color: rgba(0, 123, 255, 0.08);*/
        background-color: grey;
        color: #0d6efd;
        text-decoration: none;
    }

/* Selected (active route) */
.subnav-link-active {
    background-color: lightgray;
    color: #0d6efd;
    font-weight: 600;
    /*    border-left: blue solid 2px;*/
}

    /* Optional left indicator */
    .subnav-link-active::before {
        content: "";
        position: absolute;
        left: 0;
        width: 4px;
        height: 100%;
        background-color: #0d6efd;
        border-radius: 0 4px 4px 0;
    }


.input-action-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .input-action-btn i {
        font-size: 16px;
    }

input[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

.rz-datatable tbody tr {
    cursor: pointer;
}

.address-tile {
    height: 305px !important;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 12px;
}

.tile-header {
    margin-bottom: 6px;
}

.tile-body {
    flex-grow: 1; /* fills remaining space */
}

.tile-footer {
    margin-top: auto; /* pushes footer to bottom */
    display: flex;
    justify-content: flex-end;
}

.contact {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.dropdown-arrow {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpolygon points='0,0 10,0 5,5' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 10px;
    padding-right: 30px; /* space for the arrow */
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ddd;
    border-top: 5px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.circle-icon {
    padding: 3px;
    border-radius: 25%;
    margin: 3px;
}

.pr {
    background: #1a93d1;
    color: white;
}

.hr {
    background: #ee7d00;
    color: white;
}

.abs {
    background: #c969aa;
    color: white;
}

.eb {
    background: #b32986;
    color: white;
}

/* Image Viewer */
.image-viewer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.toolbar {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-bottom: 1px solid #ddd;
}

.image-container {
    flex: 1 1 auto;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

    .image-container img {
        max-width: 100%;
        max-height: 100%;
        transition: transform .2s;
    }

/* Sidebar background */
.rz-sidebar {
    padding-top: 60px;
    background-color: black !important;
    color: white !important;
}

/* Sidebar menu items */
.rz-panel-menu,
.rz-navigation-item,
.rz-navigation-item a,
.rz-panel-menu .rz-navigation-item-link {
    background-color: var(--sidebar-bg) !important;
    color: var(--sidebar-text) !important;
}

    /* Sidebar icons */
    .rz-sidebar .rz-icon,
    .rz-panel-menu .rz-icon,
    .rz-navigation-item .rz-icon {
        color: var(--sidebar-text) !important;
    }

    /* Hover styling */
    .rz-navigation-item-link:hover,
    .rz-navigation-item:hover {
        background-color: var(--sidebar-hover) !important;
        color: var(--sidebar-text) !important;
    }

/* Active item */
.rz-navigation-item-link.active {
    background-color: var(--sidebar-active) !important;
    color: var(--sidebar-text) !important;
}

.rz-button-md .rz-button-box .rzi {
    background-color: black;
    color: var(--sidebar-text);
}


main {
    flex-grow: 1;
    transition: margin-left 0.3s ease;
}

.menu-text {
    color: var(--sidebar-text) !important;
    margin-left: 15px !important;
    white-space: nowrap;
}

.no-pointer-grid .rz-data-row {
    cursor: default !important;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a3aff !important; /* bright clean blue */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    /* Remove Radzen hover dark overlay */
    .fab-btn:hover {
        background-color: #4a3aff !important;
        filter: brightness(1.08);
    }

.file-drop-zone {
    border: 2px dashed #adb5bd;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .file-drop-zone:hover {
        border-color: #0d6efd;
        background-color: #eef5ff;
    }

    .file-drop-zone.dragging {
        border-color: #0d6efd;
        background-color: #dbeafe;
        transform: scale(1.01);
    }

.custom-select {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='5,7 15,7 10,13'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.product-card {
    border: 1px solid #d9dee5;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    background: #fff;
}

.product-page-header {
    display: flex;
    align-items: first baseline;
    justify-content: space-between;
    width: 100%;
}

.product-breadcrumb {
    flex: 1;
}

.product-tabs {
    margin-left: auto;
}
/*.rz-dialog {
    max-height: 90vh !important;
    overflow: hidden !important;
}*/

.crm-sidebar {
    background-color: black;
    color: white;
    height: 100vh;
    padding-top: 12px;
    position: relative;
    z-index: 100;
}

    .crm-sidebar .rz-panelmenu .rz-panelmenuitem .rz-panelmenuitem-content {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
    }

        .crm-sidebar .rz-panelmenu .rz-panelmenuitem .rz-panelmenuitem-content .menu-text {
            color: white;
            font-weight: 600;
            font-size: 14px;
        }

        .crm-sidebar .rz-panelmenu .rz-panelmenuitem .rz-panelmenuitem-content .rz-icon {
            color: white;
        }

    .crm-sidebar .rz-panelmenu .rz-panelmenuitem:hover {
        background: rgba(255,255,255,0.03);
    }

    .crm-sidebar .rz-panelmenu .rz-panelmenuitem {
        border: 0;
    }
    /* When collapsed, hide text and center icons */
    .crm-sidebar.collapsed .menu-text {
        display: none;
    }

    .crm-sidebar.collapsed .rz-panelmenu .rz-panelmenuitem .rz-panelmenuitem-content {
        justify-content: center;
    }

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1rem;
    background: transparent;
    width: 100%;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500
}

.nav-item {
    padding: 0.25rem 0.5rem
}

.login-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 550px;
    padding: 30px;
}

.login-header {
    margin-bottom: 25px;
}

    .login-header h1 {
        margin: 5px 0;
    }

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 25px;
}

.login-links {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .login-card {
        width: 70%;
    }
}

.my-dialog {
    top: 90px !important;
}

@media (max-width: 600px) {
    .login-card {
        width: 100%;
        min-width: 0;
    }

    .login-page {
        padding: 30px 15px;
    }
}

