/* ===========================================================================
   Re-export task board — v2 additions (owner rules 2026-10-10)
   ---------------------------------------------------------------------------
   Linked from index.html straight after css/table.css, so a rule here wins a
   specificity TIE against table.css and themes.css. css/enhancements.css loads
   later and its grid hover / row-selection / range-selection block is
   (0,5,3)-(0,6,3) with !important: those interaction states deliberately
   still win over the soft row tint and the NOA hatch below. The customs-scan
   cargo cell is ID-scoped so its yellow survives hover and selection, the
   same way the register's own `#tableBody td.customs-scan-flagged` does.
   Applies to BOTH board tables (#reexportTable and the Loaded view
   #rxLoadedTable): they share `.reexport-table` and the column classes.
   =========================================================================== */

/* -- 5. File column: wider, never wraps (owner rule 2026-10-10) ----------- */
.reexport-table .reexport-col-file { width: 115px; }
.reexport-table td.reexport-col-file { white-space: nowrap; }

/* -- WHS Plan not yet arrived (owner rule 2026-10-10) ---------------------
   Same grey as the register's WHS cell, as a background — replaces the old
   italic muted text (css/table.css .rx-whs-muted). White once arrived. */
.reexport-table.reexport-table tbody tr td.rx-whs-muted {
    background: #d0cece !important;
    color: #1f2937 !important;
    font-style: normal;
}

/* -- 7. Capitals on screen (owner rule 2026-10-10) ------------------------
   The JS also stores free text upper-case on commit, so exports and the WMS
   tab match; this rule covers older lowercase values and read-only cells. */
.reexport-table td,
.reexport-table td input,
.reexport-table td select,
.reexport-table td option {
    text-transform: uppercase;
}
.reexport-table td input::placeholder {
    text-transform: none;
}

/* -- 2. Customs scan SELECTED (owner rule 2026-10-10) ---------------------
   Row: soft tint on every non-first cell. (0,4,3) — ties and, loading later,
   beats the zebra rule `[data-theme="light"] .reexport-table tbody
   tr:nth-child(even) td:not(:first-child)`. */
.reexport-table.reexport-table tbody tr.rx-scan td:not(:first-child) {
    background: #fff7d6 !important;
}

/* Cargo Reference / Container cell: the exact WMS look (pages/wms.html, the
   re-export tab's container cell), as a class instead of inline style. */
#reexportTable.reexport-table tbody tr.rx-scan td.rx-scan-cell,
#rxLoadedTable.reexport-table tbody tr.rx-scan td.rx-scan-cell {
    position: relative;
    background: #ffd43b !important;
    box-shadow: inset 0 0 0 1px #b8860b !important;
    color: #7c2d12 !important;
    padding-top: 15px !important;
}
.reexport-table td.rx-scan-cell .cs-scan-corner {
    position: absolute;
    top: 2px;
    right: 5px;
    color: #7c2d12;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    opacity: .96;
    pointer-events: none;
}

/* -- 4d. NOA = not applicable (owner rule 2026-10-10) ---------------------
   Hatched grey, a slightly bolder grey value. Declared after the scan tint so
   a NOA cell on a scanned row still reads as NOA. */
.reexport-table.reexport-table tbody tr td.rx-noa {
    background: repeating-linear-gradient(135deg, #f1f5f9 0 6px, #e9eef3 6px 12px) !important;
}
.reexport-table td.rx-noa,
.reexport-table td.rx-noa input,
.reexport-table td.rx-noa .rx-val {
    color: #64748b;
    font-weight: 600;
}
