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

html, body {
    font-family: var(--bs-font-sans-serif);
    background: whitesmoke;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    --primary-color: #2a3042;
    --secondary-color: #3E4761;
    --white-color: #fff;
    --disabled-color: #95a9e0;
}

.app {
    height: 100%;
    width: 100%;
}

.page {
    height: 100%;
    padding: 75px;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.page-link {
    color: var(--primary-color);
}

.btn-primary, .page-item.active .page-link {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

    .btn-primary:hover {
        color: #fff;
        background-color: var(--secondary-color);
        border-color: var(--primary-color);
    }

    .btn-primary.disabled, .btn-primary:disabled, .btn-secondary.disabled, .btn-secondary:disabled {
        color: #fff;
        background-color: var(--disabled-color);
        border-color: var(--disabled-color);
    }

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
}

    .btn-secondary:hover {
        color: #fff;
        background-color: var(--primary-color);
    }

.btn-steel {
    font-weight: bold;
}

.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-color: indianred;
    color: white;
    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;
    }

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

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

.spinner_loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.source-select-page {
    background: whitesmoke;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    height: 100%;
    padding: 0 20px;
}

.canvas-container {
    padding: 10px;
    position: absolute;
    top: 20px;
    -webkit-box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
}

.canvas-img {
    max-width: 100%;
    max-height: 100%;
}

img.specification-img {
    max-width: 30vw;
}

.canvas-items {
    display: flex;
    flex-direction: column;
    height: 610px;
    width: 310px;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 5px 5px 5px 5px;
    margin-right: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.35);
}

    .canvas-items h4 {
        border-top: 3px solid gray;
        width: 100%;
        text-align: center;
        margin-block-start: 0px;
        margin-block-end: 0px;
    }

    .canvas-items .details-button {
        margin-top: 2rem;
    }

.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

    .modal-content-container h3 {
        margin-bottom: 20px;
        text-align: center;
        white-space: nowrap;
    }

.modal-button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

    .modal-button:disabled {
        background: var(--disabled-color);
        cursor: default !important;
    }

        .modal-button:disabled:hover {
            background: var(--disabled-color) !important;
        }

    .modal-button:hover {
        background: #0056b3;
    }

table, th, td, tr {
    border: 1px solid black;
    border-collapse: collapse;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.modal-body {
    padding: 10px;
    height: 30rem;
}

.modal-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: right;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.drop-zone {
    border: 2px dashed #007bff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .drop-zone p {
        font-size: 22px;
        font-weight: 500;
        position: absolute;
        color: rgba(0,0,0,0.6);
    }

.hidden {
    display: none !important;
}

.imported-preview-page {
    margin-top: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.imported-list-page {
    /*margin-top: 20px;*/
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.imported-edit-page {
    margin-top: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.table {
    width: 90%;
}

    .table thead {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        background-color: var(--primary-color);
        color: white;
    }

    .table tbody {
        border: 1px rgba(0,0,0,0.1);
    }

    .table th {
        text-align: center;
        padding: 10px;
        border: 1px solid rgba(0,0,0,0.3);
        border-top: 0px black solid;
        border-bottom: 2px solid rgba(0,0,0,0.3);
    }

        .table th:first-child {
            padding-left: 10px;
            border-left: 0px;
        }

        .table th:last-child {
            border-right: 0px;
        }

    .table td {
        padding: 8px 5px 8px 15px;
        border-bottom: 1.5px solid rgba(0,0,0,0.3);
        width: 5%;
    }

        .table td:first-child {
            padding-left: 20px;
            width: auto;
        }

.table-imported-list td:not(:first-child) {
    width: 20%;
    text-align: center;
}

.table tbody tr:nth-child(odd) {
    background-color: white;
}

.table tr:last-child {
    border-bottom: 1px solid rgba(0,0,0,0);
}

.table-positions {
    text-align: center;
    width: 100%;
}

    .table-positions td:first-child {
        width: 1%;
    }


.table-imported-edit {
    width: 100%;
}

    .table-imported-edit td:nth-last-child(-n+3) {
        text-align: center;
    }

    .table-imported-edit td:first-child {
        width: 5%;
    }

    .table-imported-edit td:last-child {
        width: 10%;
    }

    .table-positions th, .table-imported-edit th {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background-color: var(--primary-color);
        color: white;
    }

.error-text {
    color: white;
    background-color: rgba(255, 0, 0, 1);
}

.verticalstack-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.verticalstack-box {
    position: relative;
    margin: 0px;
    padding: 5px;
    height: 50px;
    width: 100%;
}

.verticalstack-box-image {
    position: relative;
    margin: 0px;
    padding: 5px;
    width: 100%;
    height: 500px;
}

.imported-table-row {
    background-color: ghostwhite;
    border-bottom: 1px solid #ddd;
}

    .imported-table-row td {
        padding: 8px
    }

    .imported-table-row .preview-span {
        font-weight: bold;
        font-size: 24px;
        color: black;
        padding: 9px;
    }

    .imported-table-row span {
        font-weight: bold;
        font-size: 12px;
        color: darkmagenta;
        padding: 9px;
    }

    .imported-table-row .oi {
        color: var(--white-color);
    }


    .imported-table-row input {
        width: 90px;
        height: 32px;
        font-size: 20px;
        padding: 5px;
        margin-top: 5px;
    }

        .imported-table-row input:hover {
            background-color: snow;
        }

th {
    position: sticky;
    top: 85px;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    background: var(--primary-color);
}

.datatable th {
    top: 0;
}

.shape-action-button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .shape-action-button:hover {
        background: #0056b3;
    }

.modal-cont .modal-button {
    padding: 25px 25px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

    .modal-cont .modal-button:hover {
        background: #0056b3;
    }

.complex-shape-preview td:first-child {
    padding-left: 8px !important;
}

.complex-shape-preview .rgb-legend {
    padding: 5px;
    text-align: center;
}

.complex-shape-preview span {
    font-weight: bold;
    color: black;
}

.complex-shape-preview div {
    height: 23px;
    width: 50px;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.green {
    background: seagreen !important;
}

.modal-button.green:hover {
    background: mediumseagreen !important;
}

.popup-container {
    max-height: 100%;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    overflow-y: auto;
}

    .popup-container::-webkit-scrollbar {
        width: 0;
    }

.popup-box {
    margin-bottom: 10px;
    padding: 10px;
    width: 250px;
    border-radius: 5px;
    color: white;
    text-align: left;
    animation-name: example;
    animation-duration: 0.4s;
    animation-timing-function: ease-in;
    opacity: 0.9
}

@keyframes example {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.85
    }
}

.popup-box.information {
    background-color: dodgerblue;
}

.popup-box.warning {
    background-color: darkorange;
}

.popup-box.error {
    background-color: indianred;
}

.popup-box.success {
    background-color: mediumseagreen;
}

.close {
    background-color: inherit;
    padding: 0;
    border: none;
}

    .close span {
        color: white;
    }

.complex-shape td {
    padding: 5px;
}

.complex-shape .element-order {
    font-weight: bold;
}

.complex-shape-rgb {
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
}

.complex-shape-value {
    width: 50px;
    padding: 5px;
    margin-top: 5px;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
}

.drawing-canvas-container {
    padding: 10px;
    position: absolute;
    top: 20px;
    -webkit-box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    box-shadow: 2px 3px 6px 0px rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-image {
    position: relative;
}

#drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.rectangle-drawing-container {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.image-container-ac {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specification-img-ac {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.navContainer {
    position: fixed;
    width: 100%;
    height: 86px;
    background: var(--primary-color);
    color: var(--white-color);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    flex-wrap: nowrap;
}


.navSpan {
    margin-left: 30px;
}


.navButtons {
    display: flex;
    align-items: center;
    padding-right: 15px;
}


    .navButtons .modal-button {
        padding: 10px 15px;
        font-size: 14px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        margin: 0 5px;
        transition: background-color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }


        .navButtons .modal-button:disabled {
            background-color: #cccccc;
            cursor: default !important;
        }

            .navButtons .modal-button:disabled:hover {
                background-color: #cccccc !important;
                cursor: default !important;
            }

        .navButtons .modal-button:hover {
            background-color: #0056b3 !important;
        }

.error-box {
    background-color: indianred;
    color: white;
    padding: 10px;
    width: 99.9%;
    z-index: 10000;
    position: absolute;
}

.warning-box {
    border: 1px solid orange;
    padding: 20px;
    background-color: #fff3cd;
    color: #856404;
    display: flex;
    align-items: center;
}

.warning-icon {
    font-size: 24px;
    margin-right: 10px;
}

.warning-text {
    font-size: 16px;
    margin-right: 10px;
}

.styled-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

    .styled-button:hover {
        background-color: #0056b3;
    }

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
    }

    .slider::-moz-range-thumb {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: #007bff;
        cursor: pointer;
    }

.controls {
    padding: 30px;
    position: fixed;
    top: 50%;
    left: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: flex-end
}


.slidecontainer {
    width: 100%;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

    .controls button {
        margin: 80px;
    }

.font-weight-normal {
    font-weight: normal;
}

.dt-container {
    width: 100%;
}
