/* Orderlijsten: één ontwerp voor Purchaser Europe (leidend) en Purchasing Asia (wens Arrya 4 nov).
   Gedeeld door EuropeBuyer/AttentionList en AsiaBuyer/AttentionPanel en EtdOutlook: kop, filterchips, tabel,
   rij die openklapt met een chevron, signalen als stip met tekst en kleine grijze regels onder een datum.
   Rustig: geen gekleurde randen of hoofdletterlabels. Alles valt onder .olist, zodat de globale tabelstijl niet meedoet. */
.olist { margin-top: 18px; padding: 20px 22px; scroll-margin-top: 64px; }
.olist .mono { font-family: inherit; font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Kop: titel links, telling en uitleg rechts in grijs */
.olist .a-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.olist .a-head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.olist .a-head h2:focus { outline: none; }
.olist .a-head p { margin: 0; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Filterchips */
.olist .filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.olist .f-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; background: transparent; border: 1px solid transparent; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.olist .f-chip .mono { color: var(--faint); }
.olist .f-chip:hover { background: var(--slate-tint); color: var(--ink); }
.olist .f-chip.on { background: var(--card); border-color: var(--border); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(46, 40, 101, .06); }
.olist .f-chip.on .mono { color: var(--indigo); }

/* Tabel */
.olist .table-wrap { overflow-x: auto; }
.olist table { width: 100%; border-collapse: collapse; font-size: 13px; }
.olist th { text-align: left; font-weight: 500; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.olist td { padding: 10px; border-bottom: 1px solid var(--hair); vertical-align: top; font-size: 13px; }
.olist tr:last-child td { border-bottom: 1px solid var(--hair); }
.olist td.prod { min-width: 220px; }
.olist td.mono { white-space: nowrap; }

/* Signalen en status: stip of icoon met tekst, 12px */
.olist .sig-row { display: inline-flex; flex-wrap: wrap; gap: 2px 12px; }
.olist .sig { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; color: var(--ink); }
.olist .sig::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.olist .sig.crit::before { background: var(--crit); }

/* Rij die openklapt: klik op de rij of het ordernummer, het detail opent eronder */
.olist .row { cursor: pointer; transition: background .15s; }
.olist .row:hover td { background: #faf9fd; }
.olist .row.open td { background: #f6f5fb; border-bottom-color: transparent; }
.olist .row-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.olist .chev { display: inline-flex; color: var(--faint); transition: transform .2s var(--ease-out); transform: rotate(-90deg); }
.olist .row.open .chev { transform: none; color: var(--indigo); }
.olist .detail-row td { padding: 0 0 6px; border-bottom: 1px solid var(--hair); background: none; }

/* Kleine grijze regel onder een waarde: oude datum, verschuiving, fabriek */
.olist .was { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.olist .sub { display: block; font-size: 12px; color: var(--muted); }
.olist .stock { color: var(--muted); }

.olist .more { margin-top: 12px; background: none; border: 0; color: var(--indigo); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 4px 0; }
.olist .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.olist .row-btn:focus-visible, .olist .f-chip:focus-visible, .olist .more:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .olist .chev, .olist .row { transition: none; } }

@media (max-width: 700px) {
    .olist { padding: 16px 14px; }
    .olist .table-wrap { overflow: visible; }
    .olist table, .olist tbody { display: block; }
    .olist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .olist tr.row { display: grid; gap: 2px 12px; padding: 10px 4px 12px; border-bottom: 1px solid var(--hair); border-radius: var(--r-sm); }
    .olist tr.row td { display: block; padding: 0; border: 0; min-width: 0; background: none !important; }
    .olist tr.row.open { background: #f6f5fb; border-bottom-color: transparent; }
    .olist td.prod { min-width: 0; }
    .olist .row-btn { min-height: 36px; font-weight: 500; }
    .olist tr.detail-row { display: block; }
    .olist tr.detail-row td { display: block; padding: 0 0 8px; }
    .olist .more { min-height: 36px; }
}
