/* /Components/BomApp/MatrixSheetView.razor.rz.scp.css */
/* Scoped styles for the standalone Matrix sheet — same rules as MatrixView.razor.css
   so the Component Part Detail looks identical. Scoped CSS doesn't cross components,
   so these are duplicated here rather than shared. */
.mtx-wrap[b-4qne7oeazu] { display: flex; flex-direction: column; height: 100%; }

.mtx-toolbar[b-4qne7oeazu] {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: #fff; border-bottom: 1px solid #e6ebf2;
}
.mtx-mini[b-4qne7oeazu] { font-weight: 700; color: #334155; font-size: 14px; }
.mtx-spacer[b-4qne7oeazu] { flex: 1; }
.mtx-msg[b-4qne7oeazu] { font-size: 12px; color: #64748b; }
.mtx-pending[b-4qne7oeazu] {
    font-size: 11px; font-weight: 700; color: #b45309;
    background: #fef3c7; border: 1px solid #fde68a; border-radius: 20px; padding: 2px 10px;
}

.mtx-scroll[b-4qne7oeazu] { flex: 1; overflow: auto; padding: 18px; background: #eef1f6; }

/* Proportions, fills and borders below are taken from the customer's form
   "Mastrix component part 582D.xlsx" (sheet "581D conponent part new"):
   col widths A=18.7 B=25.3 C=26.6 D=20.3 E=45.7 F=81.7 G..=80.7 (≈1.09px per unit),
   every header cell white, MS Gothic throughout, medium outer borders. */
.mtx-paper[b-4qne7oeazu] {
    background: #fff; margin: 0 auto; padding: 18px 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1); border: 1px solid #d0d7e3;
    width: max-content; min-width: 100%; box-sizing: border-box;
    font-family: "MS Gothic", "MS PGothic", "Osaka-Mono", monospace;
}

.mtx-head[b-4qne7oeazu] { display: flex; align-items: stretch; gap: 12px; margin-bottom: 10px; }
.mtx-doc-title[b-4qne7oeazu] {
    flex: 1; display: flex; align-items: center; justify-content: flex-start;
    font-size: 20px; font-weight: 700; letter-spacing: .5px; color: #000;
}
.mtx-appr[b-4qne7oeazu] { border-collapse: collapse; border: 2px solid #000; }
.mtx-appr td[b-4qne7oeazu] {
    border: 1px solid #000; width: 86px; height: 16px; text-align: center;
    font-size: 8px; font-weight: 700; padding: 1px 2px;
}
.mtx-appr-sign td[b-4qne7oeazu] { height: 30px; font-weight: 400; padding: 1px; }
.mtx-appr-name[b-4qne7oeazu] { font-size: 9px; font-weight: 600; line-height: 1.15; }
.mtx-appr-date[b-4qne7oeazu] { font-size: 7px; color: #333; line-height: 1.1; }

/* Names are typed straight onto the sheet — the inputs have to read as cells, not
   as form fields, so no border until the cell is being used. */
.mtx-appr-input[b-4qne7oeazu], .mtx-rev-input[b-4qne7oeazu] {
    width: 100%; border: none; outline: none; background: transparent;
    font-family: inherit; text-align: center; color: #000;
    padding: 0 2px; box-sizing: border-box;
}
.mtx-appr-input[b-4qne7oeazu] { font-size: 9px; font-weight: 600; line-height: 1.15; }

/* A signature drawn on the approval page, printed in the cell in place of the name. */
.mtx-appr-sign td[b-4qne7oeazu] { position: relative; }
.mtx-appr-sig[b-4qne7oeazu] {
    display: block;
    max-width: 100%;
    max-height: 22px;
    margin: 0 auto;
    object-fit: contain;
}
.mtx-sig-del[b-4qne7oeazu] {
    position: absolute; top: 0; right: 0;
    width: 13px; height: 13px; line-height: 11px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(220,38,38,.9); color: #fff; font-size: 8px; font-weight: 700;
    cursor: pointer; display: none;
}
.mtx-appr-sign td:hover .mtx-sig-del[b-4qne7oeazu] { display: block; }
.mtx-rev-input[b-4qne7oeazu] { font-size: 8px; }
.mtx-appr-input[b-4qne7oeazu]::placeholder, .mtx-rev-input[b-4qne7oeazu]::placeholder { color: #cbd5e1; }
.mtx-appr-input:hover[b-4qne7oeazu], .mtx-rev-input:hover[b-4qne7oeazu] { background: #f1f5f9; }
.mtx-appr-input:focus[b-4qne7oeazu], .mtx-rev-input:focus[b-4qne7oeazu] { background: #eff6ff; box-shadow: inset 0 -1.5px 0 0 #3b82f6; }
.mtx-rev-detail .mtx-rev-input[b-4qne7oeazu] { text-align: left; }

/* What replaces those inputs for the instant the PDF snapshot is taken: same metrics,
   plain text, so the picture shows the names instead of empty boxes. */
.mtx-rev-text[b-4qne7oeazu] {
    display: block; width: 100%; padding: 0 2px; box-sizing: border-box;
    font-size: 8px; text-align: center; color: #000; min-height: 10px;
}
.mtx-rev-detail .mtx-rev-text[b-4qne7oeazu] { text-align: left; }

.mtx-tbl[b-4qne7oeazu] { border-collapse: collapse; width: 100%; border: 2px solid #000; }
.mtx-tbl th[b-4qne7oeazu], .mtx-tbl td[b-4qne7oeazu] {
    border: 1px solid #000; padding: 2px 4px; font-size: 9px;
    text-align: center; vertical-align: middle;
}
/* The header block is exactly 4 rows — the form closes it with a medium line. */
.mtx-tbl tbody tr:nth-child(4) th[b-4qne7oeazu], .mtx-tbl tbody tr:nth-child(4) td[b-4qne7oeazu] { border-bottom: 2px solid #000; }
.mtx-stub[b-4qne7oeazu] { font-weight: 700; font-size: 8px; }
.mtx-no[b-4qne7oeazu]   { width: 20px; }
.mtx-type[b-4qne7oeazu] { width: 22px; }
.mtx-v[b-4qne7oeazu] {
    width: 28px; padding: 2px 0;
    writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
/* Snapshot-only: html2canvas draws `writing-mode` + rotate(180deg) mirrored, so for the
   picture the label is a plain -90° rotation instead. Absolutely positioned so the
   rotated text cannot change the column's width. */
.mtx-v--print[b-4qne7oeazu] {
    writing-mode: horizontal-tb;
    transform: none;
    position: relative;
}
.mtx-v--print > span[b-4qne7oeazu] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
}
.mtx-lbl[b-4qne7oeazu]  { font-weight: 700; font-size: 8px; text-align: center; white-space: nowrap; }
.mtx-cpn[b-4qne7oeazu]  { font-size: 8px; min-width: 88px; }
.mtx-oldpn[b-4qne7oeazu] { text-decoration: line-through; color: #c0392b; opacity: .85; font-size: 7.5px; }
.mtx-nm[b-4qne7oeazu]   { font-size: 8px; }
/* Part no. and name are two stacked cells in the form (F12:F13 / F14:F15). */
.mtx-apn[b-4qne7oeazu]  { text-align: left; white-space: nowrap; width: 89px; padding: 0 !important; }
.mtx-apn-pn[b-4qne7oeazu] { font-size: 8.5px; font-weight: 600; padding: 2px 4px; }
.mtx-apn-nm[b-4qne7oeazu] { font-size: 8px; color: #000; padding: 2px 4px; border-top: 1px solid #000; }
/* Component with no qty on this variant: dash on 50% gray. */
.mtx-none[b-4qne7oeazu] { background: #808080; }
.mtx-pic[b-4qne7oeazu]  { height: 56px; width: 84px; position: relative; }
.mtx-pic img[b-4qne7oeazu] { max-height: 52px; max-width: 80px; object-fit: contain; display: block; margin: 0 auto; }
.mtx-pic--row[b-4qne7oeazu] { width: 50px; }
.mtx-pic--row img[b-4qne7oeazu] { max-width: 46px; }
.mtx-pic-drop[b-4qne7oeazu] { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer; }
.mtx-pic-add[b-4qne7oeazu] { color: #94a3b8; font-size: 15px; border: 1px dashed #cbd5e1; border-radius: 4px; padding: 3px 9px; }
.mtx-pic-drop:hover .mtx-pic-add[b-4qne7oeazu] { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.mtx-pic-del[b-4qne7oeazu] {
    position: absolute; top: 1px; right: 1px; width: 15px; height: 15px;
    line-height: 13px; padding: 0; border: none; border-radius: 50%;
    background: rgba(220,38,38,.92); color: #fff; font-size: 9px; font-weight: 700;
    cursor: pointer; display: none; z-index: 2;
}
.mtx-pic:hover .mtx-pic-del[b-4qne7oeazu] { display: block; }
.mtx-pic-del:hover[b-4qne7oeazu] { background: #b91c1c; }
.mtx-arow td[b-4qne7oeazu] { height: 44px; }
/* Blank rows are full height in the form (every unused row is a 4-row merge). */
.mtx-arow--empty td[b-4qne7oeazu] { height: 44px; }

/* Only as wide as columns A–K of the form, not the whole sheet. */
.mtx-rev[b-4qne7oeazu] { border-collapse: collapse; width: auto; table-layout: fixed; margin-top: 12px; border: 2px solid #000; }
.mtx-rev td[b-4qne7oeazu] {
    border: 1px solid #000; padding: 1px 3px; font-size: 8px; height: 16px;
    text-align: center; overflow: hidden; text-overflow: ellipsis;
}
.mtx-rev-hdr td[b-4qne7oeazu] { font-weight: 700; }
.mtx-rev-detail[b-4qne7oeazu] { min-width: 0; }

/* Inline editable cell input (INT.CODE / Type columns) */
.mtx-cell-input[b-4qne7oeazu] {
    width: 100%; height: 100%; min-width: 0;
    border: none; outline: none; background: transparent;
    font-size: 9px; font-family: inherit; text-align: center;
    padding: 0 2px; box-sizing: border-box;
}
.mtx-cell-input:focus[b-4qne7oeazu] {
    background: #eff6ff; border-bottom: 1.5px solid #3b82f6;
}

/* /Components/BomApp/MatrixView.razor.rz.scp.css */
.mtx-wrap[b-bixf12mz2l] { display: flex; flex-direction: column; height: 100%; }

.mtx-toolbar[b-bixf12mz2l] {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: #fff; border-bottom: 1px solid #e6ebf2;
}
.mtx-mini[b-bixf12mz2l] { font-weight: 700; color: #334155; font-size: 14px; }
.mtx-spacer[b-bixf12mz2l] { flex: 1; }
.mtx-msg[b-bixf12mz2l] { font-size: 12px; color: #64748b; }
.mtx-pending[b-bixf12mz2l] {
    font-size: 11px; font-weight: 700; color: #b45309;
    background: #fef3c7; border: 1px solid #fde68a; border-radius: 20px; padding: 2px 10px;
}

.mtx-scroll[b-bixf12mz2l] { flex: 1; overflow: auto; padding: 18px; background: #eef1f6; }

.mtx-paper[b-bixf12mz2l] {
    background: #fff; margin: 0 auto; padding: 18px 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1); border: 1px solid #d0d7e3;
    width: max-content; min-width: 100%; box-sizing: border-box;
}

.mtx-head[b-bixf12mz2l] { display: flex; align-items: stretch; gap: 12px; margin-bottom: 10px; }
.mtx-doc-title[b-bixf12mz2l] {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; letter-spacing: 1px; color: #0f172a;
}
.mtx-appr[b-bixf12mz2l] { border-collapse: collapse; }
.mtx-appr td[b-bixf12mz2l] {
    border: 1px solid #000; width: 46px; height: 18px; text-align: center;
    font-size: 8px; font-weight: 700; padding: 1px 2px;
}
.mtx-appr-sign td[b-bixf12mz2l] { height: 26px; }

.mtx-tbl[b-bixf12mz2l] { border-collapse: collapse; width: 100%; }
.mtx-tbl th[b-bixf12mz2l], .mtx-tbl td[b-bixf12mz2l] {
    border: 1px solid #000; padding: 2px 4px; font-size: 9px;
    text-align: center; vertical-align: middle;
}
.mtx-stub[b-bixf12mz2l] { background: #f5f7fa; font-weight: 700; font-size: 8px; }
.mtx-v[b-bixf12mz2l] {
    width: 16px; padding: 2px 0;
    writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
.mtx-lbl[b-bixf12mz2l]  { background: #f5f7fa; font-weight: 700; font-size: 8px; text-align: right; white-space: nowrap; min-width: 120px; }
.mtx-cpn[b-bixf12mz2l]  { font-family: monospace; font-size: 8px; min-width: 88px; }
.mtx-nm[b-bixf12mz2l]   { font-size: 8px; }
.mtx-apn[b-bixf12mz2l]  { text-align: left; white-space: nowrap; min-width: 120px; }
.mtx-apn-pn[b-bixf12mz2l] { font-family: monospace; font-size: 8.5px; font-weight: 600; }
.mtx-apn-nm[b-bixf12mz2l] { font-size: 8px; color: #333; }
.mtx-pic[b-bixf12mz2l]  { height: 56px; width: 84px; position: relative; }
.mtx-pic img[b-bixf12mz2l] { max-height: 52px; max-width: 80px; object-fit: contain; display: block; margin: 0 auto; }
.mtx-pic-drop[b-bixf12mz2l] { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer; }
.mtx-pic-add[b-bixf12mz2l] { color: #94a3b8; font-size: 15px; border: 1px dashed #cbd5e1; border-radius: 4px; padding: 3px 9px; }
.mtx-pic-drop:hover .mtx-pic-add[b-bixf12mz2l] { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
/* Remove-image button — only on hover, so it stays out of the printed/exported sheet. */
.mtx-pic-del[b-bixf12mz2l] {
    position: absolute; top: 1px; right: 1px; width: 15px; height: 15px;
    line-height: 13px; padding: 0; border: none; border-radius: 50%;
    background: rgba(220,38,38,.92); color: #fff; font-size: 9px; font-weight: 700;
    cursor: pointer; display: none; z-index: 2;
}
.mtx-pic:hover .mtx-pic-del[b-bixf12mz2l] { display: block; }
.mtx-pic-del:hover[b-bixf12mz2l] { background: #b91c1c; }
.mtx-arow td[b-bixf12mz2l] { height: 44px; }
.mtx-arow--empty td[b-bixf12mz2l] { height: 22px; }

.mtx-rev[b-bixf12mz2l] { border-collapse: collapse; width: 100%; margin-top: 12px; }
.mtx-rev td[b-bixf12mz2l] {
    border: 1px solid #000; padding: 2px 5px; font-size: 8px; height: 16px;
    text-align: center;
}
.mtx-rev-hdr td[b-bixf12mz2l] { background: #f5f7fa; font-weight: 700; }
.mtx-rev-detail[b-bixf12mz2l] { text-align: left !important; min-width: 260px; }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-fxd16eyekq] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-fxd16eyekq] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-cbb4k7rly5],
.components-reconnect-repeated-attempt-visible[b-cbb4k7rly5],
.components-reconnect-failed-visible[b-cbb4k7rly5],
.components-pause-visible[b-cbb4k7rly5],
.components-resume-failed-visible[b-cbb4k7rly5],
.components-rejoining-animation[b-cbb4k7rly5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-retrying[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-failed[b-cbb4k7rly5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-cbb4k7rly5] {
    display: block;
}


#components-reconnect-modal[b-cbb4k7rly5] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-cbb4k7rly5 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-cbb4k7rly5 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-cbb4k7rly5 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-cbb4k7rly5]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-cbb4k7rly5 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-cbb4k7rly5 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-cbb4k7rly5 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-cbb4k7rly5 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-cbb4k7rly5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-cbb4k7rly5] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-cbb4k7rly5] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-cbb4k7rly5] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-cbb4k7rly5] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-cbb4k7rly5] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-cbb4k7rly5] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-cbb4k7rly5 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-cbb4k7rly5] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-cbb4k7rly5 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
