.vis-nav-bar-print {
    top: 0px;
    z-index: 1101;
    background: rgba(var(--main-bg-color-rgb), 0.7);
    backdrop-filter: blur(5px); /* Adjust blur strength */
    color: var(--main-color);
    width: 100% !important;
    min-height: var(--vis-nav-bar-height) !important;
    font-size: 14px;
    /*margin: auto;*/
    /*font-weight: bold !important;*/
    /*background-image: linear-gradient(rgba(var(--main-bg-color-rgb), 0.9), rgba(var(--main-bg-color-rgb), 0));*/
}
.vis-nav-bar-print a {
    color: var(--main-color) !important;
    text-decoration: none;
}
.vis-nav-bar-print :hover, .vis-nav-bar-print :hover{
    background-color: white !important;
    color: black !important;
}


.admin-fieldset {
    font-weight: bold;
    border: #8a0000 1px solid !important;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16), 0 0px 0px rgba(0, 0, 0, 0.16) !important;
}

.admin-legend {
    font-size: 0.9rem !important; /* Adjust font size */
    color: #8a0000;
    width: auto;
    padding: 0 3px; /* Padding to create a gap between the text and the border */
    position: absolute;
    top: -0.9rem; /* Move it slightly up to overlap the border */
    left: 10px; /* Move it slightly to the left */
    background-color: white; /* Match background color to the container */
    z-index: 1; /* Ensures it overlaps the fieldset border */
}


/*Used for body border blinker*/
@keyframes borderBlinker {
    0% {
        border-color: transparent;
    }
    50% {
        border-color: red;
    }
    100% {
        border-color: yellow;
    }
}

.blinkBorder {
    border: 3px solid white; /* Initial border setup */
    animation: borderBlinker 2s infinite !important;
}

@keyframes textBlinker {
     0% {
         color: transparent;
     }
     50% {
         color: red;
     }
    100% {
         color: yellow;
     }
 }

.textBlinker {
    color: white;
    animation: textBlinker 2s infinite !important;
}



/* Base styles for the table */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    overflow-wrap: break-word; /* Allows long words to break onto the next line */
    word-wrap: break-word; /* For older browsers */
    white-space: normal; /* Allows wrapping of text */
}

/*.responsive-table td {*/
/*    position: relative; !* Needed for absolute positioning of ::before *!*/
/*}*/

/* Responsive styles for small screens */
@media (max-width: 768px) {
    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
        min-height: 40px !important;
        width: 100%;
    }

    .responsive-table thead {
        display: none; /* Hide the header on small screens */
    }

    .responsive-table tr {
        margin-bottom: 15px; /* Space between rows on small screens */
    }

    .responsive-table td {
        text-align: right;
        padding-left: 50%;
        padding-top: 10px; /* Add top padding */
        padding-bottom: 10px !important; /* Ensure bottom padding */
        box-sizing: border-box; /* Ensures padding is included in the width */
        position: relative; /* Needed for absolute positioning of ::before */
    }

    .responsive-table td::before {
        content: attr(data-label); /* Display the label for each cell */
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
        white-space: normal; /* Allow label to wrap as well */
        top: 0; /* Ensure the label is at the top of the cell */
        display: block; /* Ensure label takes up space */
    }
    .btn.full-width-btn {
        width: 100%; /* Set the button width to 100% */
        display: block; /* Ensure button behaves as a block element */
        margin: 0; /* Remove any default margin */
    }
}

.full-width-btn {
    width: 100%;
    display: block; /* Ensures the button behaves as a block element */
}



.swal-wide .swal2-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw; /* Full viewport width */
}

.swal2-close {
    color: red !important; /* Set the close button color to red */
    font-weight: bold !important;
}

.swal-wide .swal2-popup {
    width: 100% !important; /* Full width for the modal */
    max-width: 100% !important; /* Remove any max width restriction */
    margin: 0; /* Remove default margin */
    border-radius: 0; /* Optional: remove border radius for a full-width look */
}

.swal2-confirm {
    padding: 4px 8px;
    font-size: 10px !important;  /* Adjust the font size */
    border-radius: 4px; /* Optional: adjust the button's shape */
}

.part {
    border: 1px solid rgba(84, 84, 84, 0.1);
}

/* Custom colors for nav-link */
.nav-link.custom-nav-link-color {
    color: #9a9a9a; /* Your custom color */
    font-weight: normal;
}
/* Custom active color for nav-link */
.nav-link.custom-nav-link-color.active {
    color: black; /* Your custom active color */
    font-weight: normal;
}

.offcut {
    color: black;
    background: white;
    background: -webkit-repeating-linear-gradient(135deg, #92b597, #92b597 5px, #FFFFFF 5px, #FFFFFF 10px);
    background: repeating-linear-gradient(135deg, #92b597, #92b597 5px, #FFFFFF 5px, #FFFFFF 10px);
}

.board {
    color: black;
    background: white;
    background: -webkit-repeating-linear-gradient(45deg, #f3abb0, #f3abb0 5px, #FFFFFF 5px, #FFFFFF 10px);
    background: repeating-linear-gradient(45deg, #f3abb0, #f3abb0 5px, #FFFFFF 5px, #FFFFFF 10px);
    box-shadow:
            0 0 0 1px #CCC,
            0 0 0 2px #747474;
    -moz-box-shadow:
            0 0 0 1px #CCC,
            0 0 0 2px #747474;
    -webkit-shadow:
            0 0 0 1px #CCC,
            0 0 0 2px #747474;
}


.nav-link-sys {
    color: black !important;
    font-weight: bold;
}
.nav-item-sys .active {
    /*border-bottom: 1px dotted rgba(var(--main-bg-color-rgb), .7) !important;*/
    border: none !important;
    border-radius: 0px !important;
    background: rgba(var(--main-bg-color-rgb), .7) !important;
    color: var(--main-color) !important;
}
.tab-content-sys {
    background: rgba(var(--main-bg-color-rgb), .7) !important;
    color: var(--main-color) !important;
}
.nav-tabs-sys {
    border: none !important;
}





.btn-xs {
    padding: 0.125rem 0.25rem !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    border-radius: 0.15rem !important;
}




.custom_modal {
    /*background-color: rgba(144, 157, 178, 0);*/
    position: fixed !important;
    top: 0px;
    left: 0px;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    /*background-color: white;*/
    touch-action: none;
}
#renderCanvas {
    width: 100% !important;
    height: 60% !important;
    touch-action: none;
}



/*Stage*/
#stages-container {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    height: calc(100% - 255px) !important;
    min-height: 300px;
    overflow-x: auto;
    width: 100%;
    display:flex;
}

#stages-board {
    display:flex;
}

.stage-container {
    display: inline-block;
    height: calc(100% - 40px);
    box-shadow: 0 0 0 !important;
}

.stage-container-body {
    overflow-y: auto;
    min-height: 300px;
    height: calc(100vh - 320px);
    padding-top: 5px;
}

#partMaterial-Img-div {
    width: 150px;
    height: 150px;
    /*margin: 5px 5px 5px 5px;*/
    background-image: url("/img/no-image.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.edg_case_grain {
    margin: 5px 5px 5px 5px;
    /*background-image: url("/img/grain.jpg");*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}







/* Lock screen spinner */
.screenFader {
    display: none;
    position: fixed;
    z-index: 1100;
    /*background: white;*/
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(56, 56, 56, 0.8);
}

#screenLocker {
    display: none;
    position: fixed;
    z-index: 20000;
    /*background: white;*/
    color: gray;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(56, 56, 56, 0.6);
}

.screenSpinner {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin:-30px 0 0 -30px;
    /*-webkit-animation:spin 5s linear infinite;*/
    /*-moz-animation:spin 5s linear infinite;*/
    /*animation:spin 5s linear infinite;*/
    opacity: 0.7;
}

.card-body{
    overflow-x: auto;
}

.flat {
    border-radius: 0 !important;
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    /*line-height: 1.428571429;*/
}


.printElementOn{
    display: none !important;
}


/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
@media print {
    .printElementOn{
        display: block !important;
    }
    .printElementOff{
        display: none !important;
    }
    .printOff{
        display: none !important;
    }
}