/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Scoped layout rules — visual styles live in app.css (unscoped)
   so that NavLink elements receive them regardless of scope attributes. */

/* ── Error UI ────────────────────────────────── */
#blazor-error-ui[b-qyk1javg4z] {
    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-qyk1javg4z] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-qsdxc4p5ut],
.components-reconnect-repeated-attempt-visible[b-qsdxc4p5ut],
.components-reconnect-failed-visible[b-qsdxc4p5ut],
.components-pause-visible[b-qsdxc4p5ut],
.components-resume-failed-visible[b-qsdxc4p5ut],
.components-rejoining-animation[b-qsdxc4p5ut] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-retrying[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-failed[b-qsdxc4p5ut],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-qsdxc4p5ut] {
    display: block;
}


#components-reconnect-modal[b-qsdxc4p5ut] {
    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-qsdxc4p5ut 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-qsdxc4p5ut 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-qsdxc4p5ut 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-qsdxc4p5ut]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-qsdxc4p5ut 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-qsdxc4p5ut {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-qsdxc4p5ut {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-qsdxc4p5ut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-qsdxc4p5ut] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-qsdxc4p5ut] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-qsdxc4p5ut] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-qsdxc4p5ut] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-qsdxc4p5ut] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-qsdxc4p5ut] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-qsdxc4p5ut] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-qsdxc4p5ut 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-qsdxc4p5ut] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-qsdxc4p5ut {
    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;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ── Upload card ─────────────────────────────── */
.upload-card[b-ll46pawi1m] {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.upload-dropzone[b-ll46pawi1m] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 2px dashed #b0bec9;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

    .upload-dropzone:hover[b-ll46pawi1m],
    .upload-dropzone:focus-within[b-ll46pawi1m] {
        border-color: #2774AE;
        background: #eef5fb;
    }

    .upload-dropzone.processing[b-ll46pawi1m] {
        opacity: .6;
        pointer-events: none;
    }

.upload-icon[b-ll46pawi1m] {
    font-size: 1.7rem;
    flex-shrink: 0;
    line-height: 1;
}

.upload-label[b-ll46pawi1m] {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    font-size: .95rem;
    color: #444;
}

.upload-filename[b-ll46pawi1m] {
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-all;
}

.upload-filesize[b-ll46pawi1m] {
    font-size: .8rem;
    color: #777;
}

/* The InputFile renders as an <input>, overlay it over the whole dropzone */
.upload-input[b-ll46pawi1m] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ── Extract button ──────────────────────────── */
.upload-actions[b-ll46pawi1m] {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn-extract[b-ll46pawi1m] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #2774AE;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .5rem 1.4rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    .btn-extract:hover:not(:disabled)[b-ll46pawi1m] {
        background: #1d5f96;
    }

    .btn-extract:disabled[b-ll46pawi1m] {
        background: #90b8d8;
        cursor: default;
    }

/* Animated spinner for processing state */
.spinner[b-ll46pawi1m] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-b-ll46pawi1m .7s linear infinite;
    flex-shrink: 0;
}

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

/* ── Status log ──────────────────────────────── */
.status-panel[b-ll46pawi1m] {
    margin-bottom: 1.25rem;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    max-width: 800px;
}

.status-header[b-ll46pawi1m] {
    background: #2a2a2a;
    color: #ccc;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .3rem .75rem;
}

.status-log[b-ll46pawi1m] {
    font-family: Consolas, 'Cascadia Code', monospace;
    font-size: .82rem;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: .6rem .75rem;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
}

    .status-log li[b-ll46pawi1m] {
        list-style: none;
        line-height: 1.6;
    }

/* ── Result section ──────────────────────────── */
.result-section[b-ll46pawi1m] {
    margin-top: 1.5rem;
}

.result-title[b-ll46pawi1m] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .75rem;
}

.mt-4[b-ll46pawi1m] { margin-top: 1.5rem; }

/* Metadata key-value cards */
.result-meta-grid[b-ll46pawi1m] {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin-bottom: .5rem;
}

.meta-item[b-ll46pawi1m] {
    display: flex;
    flex-direction: column;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: .4rem .75rem;
    min-width: 140px;
}

.meta-label[b-ll46pawi1m] {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    margin-bottom: .1rem;
}

.meta-value[b-ll46pawi1m] {
    font-size: .95rem;
    color: #1a1a1a;
}

/* ── Verdict badges (used in both report header and table) ── */
.verdict-positive[b-ll46pawi1m] {
    color: #b02a37;
    font-weight: 600;
}

.verdict-negative[b-ll46pawi1m] {
    color: #1a7f37;
    font-weight: 600;
}

/* ── Sample table ────────────────────────────── */
.reports-table-wrap[b-ll46pawi1m] {
    border: 1px solid #e3e6ea;
    border-radius: 7px;
    overflow: hidden;
}

.reports-table[b-ll46pawi1m] {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.reports-table thead tr[b-ll46pawi1m] {
    background: #f7f8fa;
    border-bottom: 2px solid #e3e6ea;
}

.reports-table th[b-ll46pawi1m],
.reports-table td[b-ll46pawi1m] {
    padding: .7rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.reports-table tbody tr:hover td[b-ll46pawi1m] {
    background: #fafbfc;
}

.sort-header[b-ll46pawi1m] {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0;
    cursor: pointer;
}

.sort-header:hover[b-ll46pawi1m] {
    color: #1f2937;
}
/* /Components/Pages/Reports.razor.rz.scp.css */
/* ── Page header ──────────────────────────────── */
.page-header[b-7j74eroe3h] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title[b-7j74eroe3h] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .25rem;
}

.page-subtitle[b-7j74eroe3h] {
    font-size: .875rem;
    color: #666;
    margin: 0;
}

.btn-refresh[b-7j74eroe3h] {
    flex-shrink: 0;
    background: none;
    border: 1px solid #c8cdd4;
    border-radius: 5px;
    padding: .4rem .9rem;
    font-size: .875rem;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    margin-top: .25rem;
}

    .btn-refresh:hover:not(:disabled)[b-7j74eroe3h] {
        background: #f0f2f5;
        border-color: #aab0b9;
    }

    .btn-refresh:disabled[b-7j74eroe3h] {
        opacity: .55;
        cursor: default;
    }

/* ── Table wrapper ────────────────────────────── */
.reports-table-wrap[b-7j74eroe3h] {
    border: 1px solid #e3e6ea;
    border-radius: 7px;
    overflow: hidden;
}

/* ── Table ────────────────────────────────────── */
.reports-table[b-7j74eroe3h] {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.reports-table thead tr[b-7j74eroe3h] {
    background: #f7f8fa;
    border-bottom: 2px solid #e3e6ea;
}

.reports-table th[b-7j74eroe3h] {
    padding: .65rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    white-space: nowrap;
    text-align: left;
}

.reports-table td[b-7j74eroe3h] {
    padding: .7rem 1rem;
    color: #222;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
}

.reports-table tbody tr:last-child td[b-7j74eroe3h] {
    border-bottom: none;
}

.reports-table tbody tr:hover td[b-7j74eroe3h] {
    background: #fafbfc;
}

/* ── Column widths ────────────────────────────── */
.col-report[b-7j74eroe3h]   { width: 35%; }
.col-building[b-7j74eroe3h] { width: 25%; }
.col-date[b-7j74eroe3h]     { width: 12%; white-space: nowrap; }
.col-vendor[b-7j74eroe3h]   { width: 20%; }
.col-actions[b-7j74eroe3h]  { width: 8%;  text-align: right; white-space: nowrap; }

/* ── Report name link ─────────────────────────── */
.report-link[b-7j74eroe3h] {
    color: #2774AE;
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
}

    .report-link:hover[b-7j74eroe3h] {
        text-decoration: underline;
        color: #1d5f96;
    }

/* ── Action buttons ───────────────────────────── */
.action-btn[b-7j74eroe3h] {
    border: none;
    border-radius: 4px;
    padding: .28rem .6rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

    .action-btn:disabled[b-7j74eroe3h] {
        opacity: .5;
        cursor: default;
    }

.pdf-btn[b-7j74eroe3h] {
    background: #eaf1fb;
    color: #2774AE;
    margin-right: .3rem;
}

    .pdf-btn:hover:not(:disabled)[b-7j74eroe3h] {
        background: #d4e6f7;
    }

.delete-btn[b-7j74eroe3h] {
    background: #fff0f0;
    color: #c0392b;
}

    .delete-btn:hover:not(:disabled)[b-7j74eroe3h] {
        background: #fde0de;
    }
/* /Components/Pages/Vendors.razor.rz.scp.css */
/* Column widths specific to the vendors table */
.col-vendor-name[b-463ldebxhm]  { width: 35%; }
.col-inspector[b-463ldebxhm]    { width: 25%; }
.col-contact[b-463ldebxhm]      { width: 25%; }
.col-report-count[b-463ldebxhm] { width: 8%; text-align: center; }
.col-actions[b-463ldebxhm]      { width: 7%; text-align: right; white-space: nowrap; }

/* Center the report count cell data */
.col-report-count a[b-463ldebxhm],
.col-report-count span[b-463ldebxhm] {
    display: block;
    text-align: center;
}
