﻿:root {
    --rtblue: #3399FF;
    --rtgray: #333333;
}



/* ========================================================  */
/* ====================== LAYOUTS =========================  */
/* ========================================================  */

.main-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* Ensure body does not scroll */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 120px;
    background-color: #3399FF;
    z-index: 100;
    border-bottom: 1px #333333 solid;
    background-image: url("/img/headerbackground.png");
    background-repeat: no-repeat;
}


.info-bar {
    max-width: 420px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: red;
    color: white;
    position: fixed;
    left: 50%;
    transform: translate(-50%, 56px);
    border: 2px solid white;
    margin-top: 20px;
    padding: 4px 16px;
    z-index: 10;
    text-align: center;
}

header .navbar-toggler {
    position: relative;
    z-index: 20;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink 3s infinite;
}

/* Nav links: wide mode = white, hover = faux-bold (no layout shift); narrow mode = black (over white menu) */
@media (min-width: 768px) {
    header .navbar-nav .nav-link {
        color: white;
    }

    header .navbar-nav .nav-link:hover {
        color: white;
        text-shadow: 0 0 .65px currentColor, 0 0 .65px currentColor;
    }
}

@media (max-width: 767.98px) {
    header .navbar-nav .nav-link {
        color: black;
    }

    header .navbar-nav .nav-link:hover {
        color: black;
        text-shadow: 0 0 .65px currentColor, 0 0 .65px currentColor;
    }
}

.body-container {
    flex: 1;
    margin: 0;
    margin-top: 120px; /* Adjust according to header height */
    overflow-y: auto;
    background-color: #ffffff;
    padding: 0;
}

footer {
    height: 170px;
    background-color: #f8f9fa;
    flex-shrink: 0;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 25px;
    background-color: whitesmoke;
    border-top: 1px #3399FF solid;
    user-select: none;
    width: 100%;
}



.bc-layout-content {
    width: 99%;
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: calc(100vh - 280px);
}


/*.layout-header {
    padding-top: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-left: 0;
    background-color: #3399FF;
    min-height: 120px;
    border-bottom: 1px #333333 solid;
    background-image: url("/img/headerbackground.png");
    background-repeat: no-repeat;
    background-size: auto;
    background-position: left top;
    user-select: none;
    font-weight: 500;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    left: 0;
    right: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}*/





/*.layout-content {*/
    /*flex: 1;*/
    /*min-height: calc(100vh - 280px);
    padding: 0;
    margin: 0;
    user-select: none;
    background-color: white;
}*/

/*.bcLayoutPage {
    width: 100%;
    margin: 0;
    padding: 0;
    padding-left: 10px;
    padding-right: 10px;
}*/



/*.bc-layout-footer {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 25px;
    height: 150px;
    background-color: whitesmoke;
    border-top: 1px #3399FF solid;
    user-select: none;
    width: 100%;
}*/
















/* ========================================================  */
/* ======================== PAGES =========================  */
/* ========================================================  */


.main-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}











/* ========================================================  */
/* ======================== BUTTONS =======================  */
/* ========================================================  */


.btn-primary {
    background-color: var(--rtblue);
    border-color: var(--rtblue);
}

    .btn:disabled {
        background-color: lightgray;
        border-color: gray;
    }

    .btn-primary:hover {
        background-color: #303030;
        color: whitesmoke;
        border-color: #303030;
    }
















/* ========================================================  */
/* ==================== TEXT ELEMENTS =====================  */
/* ========================================================  */





.user-name {
    z-index: 5;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    color: white;
    font-size: 14px;
    user-select: none;
}

.link-border {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 8px;
    height: 28px;
    right: 10px;
    border-radius: 5px;
    background: black;
    padding-right: 5px;
    padding-left: 5px;
}











/* ========================================================  */
/* ======================== ERRORS ========================  */
/* ========================================================  */


#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;
    }


/* ========================================================  */
/* ================ BARCODE LABEL PREVIEW =================  */
/* ========================================================  */

.barcode-label-preview-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.barcode-label {
    width: 2in;
    height: 1in;
    border: 1px dashed #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2px;
    box-sizing: border-box;
}

.barcode-label-company {
    font-size: 7pt;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    font-family: Arial, Helvetica, sans-serif;
}

.barcode-label-barcode {
    text-align: center;
    margin: 1px 0;
}

.barcode-label-barcode-img {
    width: 0.5in;
    height: 0.5in;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

.barcode-label-sku {
    font-size: 7pt;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.1;
    font-family: Arial, Helvetica, sans-serif;
}

.barcode-label-name {
    font-size: 5.5pt;
    text-align: center;
    line-height: 1.1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 1.9in;
    word-break: break-word;
    text-overflow: ellipsis;
    font-family: Arial, Helvetica, sans-serif;
}



