/* Explain: Styles for the statement reconciliation interface and its tables. */
/* ---------- Statement column pickers ---------- */
.map-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.4rem; }

@media (min-width: 640px) {
    .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .map-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.preview-table { font-size: .82rem; }
.preview-table th,
.preview-table td { white-space: nowrap; }
.preview-table .num { font-variant-numeric: tabular-nums; }

/* ---------- Statement file picker ---------- */
[data-rec-file] {
    padding: .5rem .7rem;
    background: var(--surface-color);
    border-style: dashed;
    cursor: pointer;
    min-height: 44px;
}

[data-rec-file]::file-selector-button {
    margin-right: .7rem;
    padding: .45rem .85rem;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
}

[data-rec-file]:hover { border-color: var(--primary-light); }

/* ---------- Reconciliation sheet ---------- */
.recon-table { font-size: .8rem; }
.recon-table th { font-size: .63rem; }
.recon-table td { padding: .45rem .55rem; }
.recon-table .recon-batch { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.recon-status {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.recon-status--matched { color: var(--success-color); }
.recon-status--short { color: var(--danger-color); }
.recon-status--excess { color: var(--warning-color); }
.recon-status--missing { color: var(--danger-color); }
.recon-status--extra { color: var(--primary-light); }

.recon-short { color: var(--danger-color); }
.recon-excess { color: var(--warning-color); }

@media print {
    .recon-table { font-size: .66rem; }
    .recon-table th,
    .recon-table td { padding: .26rem .3rem; }
    .recon-table th { line-height: 1.2; }
}

/* ---------- Credit slip reconciliation ---------- */
.csr-filters { display: grid; gap: 1rem; grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .csr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .csr-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.csr-lock { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.csr-item { font-family: var(--font-heading); font-weight: 600; }
.csr-sub { display: block; font-size: .76rem; color: var(--text-muted); font-weight: 400; }
.csr-readonly { background: var(--surface-color); color: var(--text-muted); cursor: not-allowed; }