/* Weekly Yard Stock Check — lines table */
.sc-table-wrap {
    overflow-x: auto;
}
.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.sc-table th,
.sc-table td {
    border: 1px solid #e2e8f0;
    padding: 6px;
    vertical-align: middle;
}
.sc-table th {
    background: #0C1248;
    color: #fff;
    font-weight: 700;
    text-align: left;
    font-size: 0.8rem;
}
.sc-table input[type="number"],
.sc-table input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
    font: inherit;
}
.sc-table td.sc-num {
    width: 5.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.sc-table td.sc-code {
    width: 6.5rem;
    font-weight: 600;
    white-space: nowrap;
}
.sc-table td.sc-family {
    width: 9rem;
    color: #475569;
    font-size: 0.85rem;
}
.sc-table td.sc-variance {
    width: 5.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.sc-table tr.sc-var-nonzero {
    background: #fef3c7;
}
.sc-table tr.sc-var-nonzero td.sc-variance {
    color: #b91c1c;
}
.sc-table .sc-sys {
    color: #64748b;
}
.sc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.sc-toolbar select {
    margin-left: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font: inherit;
}
.sc-pool-list {
    margin: 8px 0 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}
.sc-pool-list li {
    margin: 2px 0;
}
.sc-family-head td {
    background: #f1f5f9;
    font-weight: 700;
    color: #0C1248;
    font-size: 0.85rem;
    border-top: 2px solid #cbd5e1;
}
.sc-code-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
}
.sc-img-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sc-img-modal.open { display: flex; }
.sc-img-panel {
    background: #fff;
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.sc-img-panel h3 { margin: 0 0 6px; color: #0C1248; }
.sc-img-panel img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 10px 0;
}
