/* Windsor Prices - a wide sheet on screen.
 *
 * The table is the page, so it gets the room: the card scrolls sideways rather
 * than the columns being squeezed to fit, and the header row stays put while
 * the rows go past.
 */

.sheet-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.controls .grow { flex: 1 1 18rem; }
.controls label { display: block; }

.grid-scroll {
    overflow: auto;
    max-height: 70vh;
}

.sheet-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}

.sheet-table th,
.sheet-table td {
    border: 1px solid #d7dbd2;
    padding: 0.35rem 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.sheet-table thead th {
    position: sticky;
    top: 0;
    background: #2d5016;
    color: #fff;
    z-index: 1;
}

.sheet-table tbody tr:nth-child(even) td { background: #fafbf9; }

/* Anything read from the load list, so it is never mistaken for something this
 * page will write. */
.sheet-table .from-cost {
    background: #eef1ec;
    color: #3a4433;
}
.sheet-table thead th.from-cost { background: #55634a; }
.sheet-table th.price-col { background: #3f6b21; }

.sheet-table td.cell { cursor: text; }
.sheet-table td.cell:hover { outline: 2px solid #a8c08a; outline-offset: -2px; }
.sheet-table td.locked { cursor: not-allowed; color: #6b7363; font-style: italic; }
.sheet-table td.saving { background: #fff6d8; }
.sheet-table td.saved { background: #e6f4d9; }

/* A price at or under what the material costs landed. Not an error - a loss
 * leader is a decision somebody is allowed to make - but not something to find
 * out about later either. */
.sheet-table td.thin { color: #a3261b; font-weight: 600; }

/* A row whose handle found nothing on RawData: usually a handle typed one way
 * on one sheet and another way on the other. */
.sheet-table tr.unmatched td.cell { background: #fdf4f3; }

.cell-input {
    width: 100%;
    min-width: 6rem;
    font: inherit;
    padding: 0.1rem 0.2rem;
}
