/* Serialized Pallet Inventory - web portal (Phase 1) */

.pallets-view,
.pallet-detail-view {
    padding: 18px 24px 60px;
    font-size: 14px;
    color: #1b2129;
}

.pallets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    border-bottom: 1px solid #e2ded4;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.pallets-header h2,
.pallet-detail-view h2 { margin: 0; font-size: 22px; font-weight: 600; }

/* status counts: the cards share the row so it lines up with the filter bar */
.pallet-count-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pallet-count-card {
    flex: 1 1 0; min-width: 96px; max-width: 180px; padding: 10px 14px;  /* max: a card wrapped onto its own line stays card-sized */
    border: 1px solid #e2ded4; border-radius: 8px; background: #fff;
    display: flex; flex-direction: column;
}
.pallet-count-n { font-size: 22px; font-weight: 700; line-height: 1.1; }
.pallet-count-k { font-size: 12px; color: #5c6470; }
.pallet-count-card.status-warehouse { border-left: 3px solid #3e7d4f; }
.pallet-count-card.status-transit   { border-left: 3px solid #1e6e9e; }
.pallet-count-card.status-shipped   { border-left: 3px solid #7a7a7a; }
.pallet-count-card.status-closed    { border-left: 3px solid #b0453b; }
/* deck System Inventory Audit status buckets */
.pallet-count-card.stage-packing      { border-left: 3px solid #b87514; }
.pallet-count-card.stage-cooling      { border-left: 3px solid #3e7d4f; }
.pallet-count-card.stage-transferring { border-left: 3px solid #1e6e9e; }
.pallet-count-card.stage-shipped      { border-left: 3px solid #7a7a7a; }
.pallet-count-card.stage-closed       { border-left: 3px solid #b0453b; }

/* tabs */
.pallets-tabs { display: flex; flex-wrap: wrap; gap: 4px 2px; border-bottom: 1px solid #e2ded4; margin-bottom: 16px; }
.pallets-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 8px 14px; font-size: 14px; color: #5c6470; cursor: pointer;
}
.pallets-tab.active { color: #1b2129; border-bottom-color: #1e6e9e; font-weight: 600; }
a.pallets-tab-link { text-decoration: none; line-height: 1.2; margin-left: auto; }
a.pallets-tab-link:hover { color: #1b2129; }

/* "fix this" vs "read-only" cue on the tab label itself */
.tab-badge {
    display: inline-block; margin-left: 5px; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; padding: 1px 5px; border-radius: 4px;
    vertical-align: middle;
}
.tab-badge-fix { color: #8a5a12; background: #f8f0e0; border: 1px solid #d9bd8c; }
.tab-badge-ro  { color: #5c6470; background: #f2f2f2; border: 1px solid #cfcabb; }
.pallets-tab.active .tab-badge-fix { color: #8a5a12; }
.pallets-tab.active .tab-badge-ro  { color: #1e6e9e; background: #ecf4f8; border-color: #a7cbdd; }

/* filters */
.pallet-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pallet-filters input[type=text] { padding: 5px 8px; border: 1px solid #cfcabb; border-radius: 4px; min-width: 150px; }
.pallet-filter-check { font-size: 13px; color: #5c6470; font-weight: normal; margin: 0; }
.pallet-btn-link { background: none; border: none; color: #1e6e9e; cursor: pointer; padding: 0; }

.pallet-tab-intro { 
    color: #5c6470; 
    /* max-width: 70ch;  */
    margin: 0 0 14px; 
}
.pallet-loading, .pallet-empty { color: #5c6470; padding: 20px 0; }

/* tables */
.pallet-table-wrap { overflow-x: auto; border: 1px solid #e2ded4; border-radius: 8px; }
.pallet-table { width: 100%; border-collapse: collapse; background: #fff; }
.pallet-table th, .pallet-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eee7da; vertical-align: top; }
.pallet-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5c6470; background: #f5f2ea; white-space: nowrap; }
.pallet-table thead th.pallet-sortable { cursor: pointer; user-select: none; }
.pallet-table thead th.pallet-sortable:hover { color: #1e6e9e; }
.pallet-table thead th.pallet-sorted { color: #1b2129; }
.pallet-table thead th.pallet-sorted:after { content: ' \25BE'; }
.pallet-table.pallet-sort-asc thead th.pallet-sorted:after { content: ' \25B4'; }
.pallet-table tbody tr:last-child td { border-bottom: none; }
.pallet-table td.num, .pallet-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pallet-row { cursor: pointer; }
.pallet-row:hover { background: #f7f9fb; }
.pallet-code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap; }
.pallet-code a { color: #1e6e9e; }
.pallet-contents { font-size: 13px; }
.pallet-line-qty { color: #5c6470; }
.pallet-muted { color: #5c6470; }
.pallet-created { white-space: nowrap; font-size: 12px; }

.pallet-row-flag, .pallet-row-flag:hover { background: #fdf6ec; }
.pallet-flag-text { color: #b0453b; font-weight: 600; }

/* ---- inventory rollup tree ---- */

/* card + toolbar */
.pallet-inv-card { background: #fff; border: 1px solid #e2ded4; border-radius: 8px; padding: 14px 16px; }
.pallet-inv-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.pit-group { display: flex; align-items: center; gap: 7px; }
.pit-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #5c6470; font-weight: 700; }
.pit-input { width: 150px; }
/* Bootstrap 2's input[type=...] rules outrank a bare class: text/date inputs 20px tall (selects 30px), all with a 10px bottom margin */
input.pit-input, select.pit-input {
    height: 30px; margin: 0; padding: 4px 8px; border: 1px solid #cfcabb; border-radius: 4px; background-color: #fff;
    font: inherit; font-size: 13px; line-height: 20px;
}
.pit-input-date { width: 118px; }
.pit-input-wide { width: 180px; }
.pallet-seg-group { display: inline-flex; }
.pallet-inv-spacer { flex: 1 1 auto; }
.pallet-inv-expand { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }
.pallet-inv-card .pallet-table-wrap { border: 0; border-radius: 0; }
.pallet-inv-card .pallet-loading, .pallet-inv-card .pallet-empty { padding: 14px 2px; }
.pallet-inv-card .pallet-empty a { color: #1e6e9e; cursor: pointer; }

/* dig date pill, coloured by days since the dig (local dates): 0-3 green,
   4-5 amber, 6+ red - thresholds from the mobile mockup. A dig line leads with
   its date; a row above dig lines follows its name with their span, coloured
   only when every dig in it shares the colour. */
.inv-date-pill {
    display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px;
    border: 1px solid transparent; font-size: 12px; font-weight: 700; line-height: 20px;
    white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums;
}
.pallet-tree-name .inv-date-pill { margin-right: 8px; }
.pallet-tree-name .inv-date-range { margin: 0 0 0 10px; }
.inv-age-green  { color: #155b35; background: #dcefe3; }
.inv-age-yellow { color: #694900; background: #fff0c2; }
.inv-age-red    { color: #8b3027; background: #fde1dd; }
/* a span of digs across age colours: no colour of its own */
.inv-age-mixed  { color: #3b4350; background: #fff; border-color: #c9cdd3; }

.pallet-seg {
    background: #fff; border: 1px solid #cfcabb; color: #5c6470;
    padding: 4px 12px; font-size: 13px; cursor: pointer;
}
.pallet-seg:first-of-type { border-radius: 4px 0 0 4px; }
.pallet-seg:last-of-type { border-radius: 0 4px 4px 0; }
.pallet-seg + .pallet-seg { margin-left: -1px; }  /* shared 1px borders, also in 3-button groups */
.pallet-seg.active { position: relative; background: #1e6e9e; border-color: #1e6e9e; color: #fff; font-weight: 600; }

.pallet-tree td { border-bottom-color: #f0ece1; }
.pallet-tree-row.is-branch > .pallet-tree-name { cursor: pointer; }
.pallet-tree-row.lvl-0 > td { border-top: 1px solid #e2ded4; }
.pallet-tree-row.lvl-0 .pallet-tree-label { font-weight: 700; }
.pallet-tree-row.lvl-1 .pallet-tree-label { font-weight: 600; }
.pallet-tree-row.is-leaf .pallet-tree-label { font-weight: normal; }
.pallet-tree-row:hover > td { background: #f7f9fb; }

.pallet-tree-name { white-space: nowrap; }
.pallet-tree-indent { display: inline-block; width: 0; }
.pallet-tree-caret {
    display: inline-block; width: 12px; height: 12px; margin-right: 6px;
    position: relative; vertical-align: middle; cursor: pointer;
}
.pallet-tree-caret::before {
    content: ""; position: absolute; left: 2px; top: 2px;
    border: 4px solid transparent; border-left-color: #8a8f98;
    transition: transform .12s ease;
}
.pallet-tree-caret.open::before { transform: rotate(90deg); left: 0; top: 4px; }
.pallet-tree-caret.empty::before { display: none; }

.pallet-tree-label { vertical-align: middle; }
.pallet-tree-drill { margin-left: 10px; font-size: 12px; color: #1e6e9e; cursor: pointer; }
td.pallet-muted a.pallet-tree-drill { margin-left: 0; font-size: inherit; }
.pallet-tree-row.is-leaf:hover .pallet-tree-drill { text-decoration: underline; }

.pallet-neg-qty { color: #b0453b; font-weight: 700; }

/* ---- exceptions worklist ---- */
.pallet-count-card.pallet-count-zero { opacity: .55; }
.exc-row.exc-sev-error > td { background: #fdf4f3; }
.exc-row.exc-sev-error:hover > td { background: #fbeceb; }
.exc-title { font-weight: 600; }
.exc-offset { color: #5c6470; white-space: nowrap; }

/* exceptions table - fixed column layout so "Problem" isn't crushed */
.pallet-table--exc { table-layout: fixed; min-width: 880px; }
.pallet-table--exc .exc-col-sev     { width: 96px; }
.pallet-table--exc .exc-col-problem { width: 32%; }
.pallet-table--exc .exc-col-product { width: 16%; }
.pallet-table--exc .exc-col-loc     { width: 15%; }
.pallet-table--exc .exc-col-boxes   { width: 60px; }
.pallet-table--exc .exc-col-age     { width: 50px; }
.pallet-table--exc .exc-col-action  { width: 25%; }
.pallet-table--exc td { overflow-wrap: anywhere; }
.pallet-table--exc .exc-title,
.pallet-table--exc .exc-detail,
.pallet-table--exc .exc-action-cell { overflow-wrap: normal; }
.exc-detail { font-size: 12px; line-height: 1.35; margin-top: 2px; }
.exc-reason { color: #3a3f47; }
.exc-warning { color: #8a5a12; border-left: 2px solid #d9bd8c; padding-left: 6px; margin-top: 4px; }
.exc-product-code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.exc-product { line-height: 1.4; }
.exc-product-head { font-weight: 600; color: #1b2129; }
.exc-product-spec { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; color: #6b7280; overflow-wrap: anywhere; }
.exc-pallets { font-size: 12px; line-height: 1.45; margin-top: 4px; }
.exc-pallet { display: inline-block; margin-right: 8px; white-space: nowrap; }
.exc-pallet .pallet-code { cursor: pointer; }
.exc-loc { line-height: 1.35; }
.exc-loc .exc-offset { white-space: normal; }
.pallet-table--exc .pallet-flag-text { white-space: normal; }
.pallet-status-chip.exc-chip-error { color: #b0453b; border-color: #d8a7a1; background: #f8ecea; }
.pallet-status-chip.exc-chip-warn  { color: #8a5a12; border-color: #d9bd8c; background: #f8f0e0; }
.pallet-status-chip.exc-chip-info  { color: #5c6470; border-color: #cfcabb; background: #f2f2f2; }

/* worklist filter bar */
.exc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 14px; }
.exc-controls select {
    padding: 5px 8px; border: 1px solid #cfcabb; border-radius: 4px; background: #fff;
    font-size: 13px; max-width: 230px;
}
.exc-controls .exc-count { font-size: 12px; }
.exc-controls .exc-count .pallet-btn-link { font-size: 12px; margin-left: 6px; }

/* grouping + dismiss */
.pallet-table--exc tr.exc-group-first > td { border-top: 2px solid #c9c2b0; }
.exc-row-dismissed > td { opacity: .48; }
.exc-row-dismissed:hover > td { opacity: .72; }
.exc-action-cell .pallet-btn-link[disabled] { opacity: .5; cursor: default; }
.exc-empty-filtered { margin-top: 10px; }

/* one primary action + a "More" menu for everything else in the row */
.exc-action-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.exc-primary { width: 100%; min-width: 0; }
.exc-primary .pallet-btn-link, .exc-primary > a {
    display: block; text-align: left; white-space: normal; line-height: 1.35; padding: 2px 0 5px;
}
.exc-primary .btn { white-space: normal; text-align: left; margin-bottom: 4px; }
.exc-menu-wrap { position: relative; flex: none; }
.exc-menu-btn {
    border: 1px solid #cfcabb; background: #fff; border-radius: 4px; padding: 3px 8px;
    font-size: 11.5px; color: #5c6470; cursor: pointer; white-space: nowrap;
}
.exc-menu-btn:hover { background: #f5f2ea; }
.exc-menu-pop {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; min-width: 190px;
    background: #fff; border: 1px solid #cfcabb; border-radius: 6px; padding: 5px;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.25);
}
.exc-menu-pop a {
    display: block; padding: 5px 8px; border-radius: 4px; font-size: 12.5px;
    color: #1b2129; cursor: pointer; white-space: nowrap;
}
.exc-menu-pop a:hover { background: #f5f2ea; text-decoration: none; color: #1e6e9e; }
.exc-menu-pallet-row {
    padding: 5px 8px; font-size: 12px; line-height: 1.5; white-space: normal;
    border-bottom: 1px solid #f0ece1; margin-bottom: 2px;
}
.exc-menu-pallet-row:last-of-type { border-bottom: none; }
.exc-menu-sep { border-top: 1px solid #f0ece1; margin: 4px 0; }
.exc-menu-head { padding: 4px 8px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a8272; }
.exc-menu-pallet-row > a { color: #1e6e9e; cursor: pointer; }
.exc-menu-pallet-row > a + a { margin-left: 8px; font-size: 12px; }

/* Inventory-tab place actions: the "⋯" button opens them in a row of their
   own under the place, so the table-wrap can't clip them */
.pallet-row-more {
    width: 28px; height: 24px; padding: 0; border: 1px solid transparent; border-radius: 4px;
    background: transparent; color: #5c6470; font-size: 16px; line-height: 14px; cursor: pointer;
}
.pallet-row-more:hover, .pallet-row-more.active { border-color: #cfcabb; background: #fff; color: #1b2129; }
.pallet-leaf-menu-row > td { background: #fbfaf6; padding: 7px 12px 9px; }
.pallet-tree .pallet-leaf-menu-row:hover > td { background: #fbfaf6; }
.pallet-leaf-menu { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-left: 40px; }
.pallet-leaf-menu a { font-size: 12.5px; color: #1e6e9e; cursor: pointer; white-space: nowrap; }
.pallet-leaf-menu a:hover { text-decoration: underline; }

/* ---- resolve-orphan modal ---- */
/* The app's global .modal-body caps height at 400px with overflow:visible, so
   tall content spills under the footer. Make the modal a flex column capped to
   the viewport: header and footer fixed, body scrolls. */
.orphan-modal { display: flex; flex-direction: column; max-height: 88vh; }
.orphan-modal .modal-header, .orphan-modal .modal-footer { flex: 0 0 auto; }
.orphan-modal .modal-body { flex: 1 1 auto; max-height: none; overflow-y: auto; background: #fff; padding: 16px 18px; }
.orphan-modal .modal-header h4 { font-size: 16px; }
.orphan-lead { margin: 0 0 14px; color: #5c6470; font-size: 13px; line-height: 1.45; }
.orphan-summary { background: #f5f2ea; border-radius: 6px; padding: 9px 12px; margin-bottom: 14px; font-size: 13px; }
.orphan-summary strong { display: block; }
.orphan-summary span { color: #5c6470; }
.orphan-field { margin-bottom: 12px; }
.orphan-field > label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5c6470; margin-bottom: 4px; }
.orphan-field select, .orphan-field input, .orphan-field textarea {
    width: 100%; box-sizing: border-box; padding: 6px 8px;
    border: 1px solid #cfcabb; border-radius: 4px; font: inherit;
}
.orphan-field textarea { resize: vertical; }
.orphan-field-inline input { width: 120px; }
/* Radios and checkboxes must not take the text-input treatment above: a 100%-wide
   radio inside a flex option card (.cp-opt) starves the text span to zero width. */
.orphan-field input[type=radio], .orphan-field input[type=checkbox] {
    width: auto; padding: 0; border: 0; border-radius: 0; box-sizing: content-box;
}
.orphan-hint, .orphan-note { display: block; margin-top: 4px; font-size: 12px; color: #5c6470; }
.orphan-req { text-transform: none; letter-spacing: 0; color: #b0453b; font-weight: 600; }
.orphan-error { color: #b0453b; font-size: 13px; margin: 8px 0 0; }
.orphan-modal .modal-footer .btn { width: 110px; }
.orphan-modal .modal-footer .btn-primary { background: #1e6e9e; border-color: #1e6e9e; color: #fff; }
.orphan-modal .modal-footer .btn-primary[disabled] { opacity: .5; }

/* ---- transaction history (inventory ledger) modal ---- */
/* Wider than the margin-left:-half-width trick used elsewhere so it can't
   clip off-screen on a narrower window: transform-based centering re-derives
   the offset from the element's actual (possibly max-width-clamped) size. */
.ledger-modal { width: 1000px; max-width: 95vw; margin-left: 0; transform: translateX(-50%); }
.ledger-body { font-size: 13px; }
.ledger-wrap { border-radius: 6px; }
.ledger-table { font-size: 12.5px; }
.ledger-table th, .ledger-table td { padding: 6px 10px; }
.ledger-table .ledger-when { white-space: nowrap; }
.ledger-table .ledger-who { white-space: nowrap; }
.ledger-table .ledger-notes { max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.ledger-kind {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 1px 7px; border-radius: 10px; border: 1px solid #cfcabb; color: #5c6470; background: #f5f2ea;
}
.ledger-kind-receipt        { color: #3e7d4f; border-color: #a9cbb2; background: #e7f1e9; }
.ledger-kind-transfer_in    { color: #1e6e9e; border-color: #a7c6d7; background: #e6eff4; }
.ledger-kind-transfer_out   { color: #8a5a12; border-color: #d9bd8c; background: #f8f0e0; }
.ledger-kind-shipment       { color: #6b3fa0; border-color: #c3b0d9; background: #efe9f6; }
.ledger-kind-vessel_receive,
.ledger-kind-vessel_send    { color: #1e6e9e; border-color: #a7c6d7; background: #e6eff4; }
.ledger-kind-adjustment     { color: #b0453b; border-color: #d8a7a1; background: #f8ecea; }
.ledger-opening > td { border-top: 2px solid #cfcabb; font-style: italic; background: #f9f7f1; }

.pallet-tree-total > td { border-top: 2px solid #cfcabb; font-weight: 700; background: #f5f2ea; }

/* status chip */
.pallet-status-chip {
    display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 8px; border-radius: 999px; border: 1px solid #cfcabb; white-space: nowrap;
}
/* one status vocabulary (the stage bucket) per row; the legacy value is a
   small aside for admins troubleshooting a specific pallet, never a second chip */
.status-pair { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.pallet-status-legacy {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10px; color: #8a8f98;
}
.pallet-status-chip.status-warehouse   { color: #3e7d4f; border-color: #9cc4a9; background: #eef6f0; }
.pallet-status-chip.status-in_transit  { color: #1e6e9e; border-color: #a7cbdd; background: #ecf4f8; }
.pallet-status-chip.status-shipped     { color: #555; border-color: #ccc; background: #f2f2f2; }
.pallet-status-chip.status-deactivated { color: #8a5a12; border-color: #d9bd8c; background: #f8f0e0; }
.pallet-status-chip.status-voided      { color: #b0453b; border-color: #d8a7a1; background: #f8ecea; }
.pallet-status-chip.status-unknown     { color: #777; border-color: #ccc; background: #f2f2f2; }
.pallet-status-chip.stage-packing      { color: #8a5a12; border-color: #d9bd8c; background: #f8f0e0; }
.pallet-status-chip.stage-cooling      { color: #3e7d4f; border-color: #9cc4a9; background: #eef6f0; }
.pallet-status-chip.stage-transferring { color: #1e6e9e; border-color: #a7cbdd; background: #ecf4f8; }
.pallet-status-chip.stage-shipped      { color: #555; border-color: #ccc; background: #f2f2f2; }
.pallet-status-chip.stage-closed       { color: #b0453b; border-color: #d8a7a1; background: #f8ecea; }
.pallet-status-chip.stage-unknown      { color: #777; border-color: #ccc; background: #f2f2f2; }

.pallet-loc-site {
    display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
    letter-spacing: .04em; color: #8a8272; vertical-align: middle;
}

/* age band */
.pallet-age-band { font-weight: 600; font-variant-numeric: tabular-nums; }
.pallet-age-band.band-green  { color: #3e7d4f; }
.pallet-age-band.band-yellow { color: #b87514; }
.pallet-age-band.band-red    { color: #b0453b; }

/* ============================ pallet detail ============================ */
.pallet-detail-view { max-width: 1060px; }

/* ---- find a pallet ---- */
.pallets-lookup-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; margin: -8px 0 12px; }  /* under the header's scan box */
.pallet-detail-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 6px; }
.pallet-detail-back-link { color: #1e6e9e; cursor: pointer; white-space: nowrap; }
.pallet-lookup {
    display: flex; align-items: stretch; border: 1px solid #cfc9ba; border-radius: 7px;
    overflow: hidden; background: #fff; max-width: 460px; flex: 1 1 320px;
}
.pallet-lookup-ic { display: flex; align-items: center; padding: 0 10px; color: #8a8272; border-right: 1px solid #ece7da; }
.pallet-lookup input { flex: 1; border: 0; padding: 8px 10px; font: inherit; font-size: 13px; background: transparent; color: #1b2129; min-width: 0; box-shadow: none; }
.pallet-lookup input:focus { outline: none; }
.pallet-lookup .btn {
    border: 0; border-radius: 0; padding: 0 16px; box-shadow: none; text-shadow: none;
    background: #1e6e9e; background-image: none; color: #fff; font-size: 13px;
}
.pallet-lookup .btn:hover { background: #185a82; }
.pallet-lookup .btn[disabled] { opacity: .55; }
.pallet-lookup-inline { max-width: 420px; }
.pallet-lookup-error { color: #b0453b; font-size: 12.5px; margin-bottom: 12px; }
.pallets-lookup-row .pallet-lookup-error { margin-bottom: 0; }

/* ---- section cards ---- */
.pd-card {
    background: #fff; border: 1px solid #e2ded4; border-radius: 8px;
    padding: 16px 18px; margin-bottom: 14px;
}
.pd-card h3 { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0 0 12px; }
.pallet-detail-view .pd-card .pallet-table-wrap { border: 0; border-radius: 0; }
.pallet-detail-view .pd-card .pallet-empty { padding: 6px 0; }

/* ---- summary card: id + meta + QR + actions ---- */
.pd-summary { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: flex-start; }
.pd-summary-body { flex: 1 1 300px; min-width: 0; }
.pd-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pallet-detail-view .pd-id h2 { font-size: 19px; line-height: 1.2; margin: 0; }

.pd-meta { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; }
.pallet-detail-view .pd-meta dt,
.pallet-detail-view .pd-meta dd {
    float: none; width: auto; margin: 0; padding: 0; line-height: 1.5;
    text-align: left; white-space: normal; overflow: visible;
}
.pallet-detail-view .pd-meta dt { color: #5c6470; font-weight: 400; }
.pallet-detail-view .pd-meta dd { color: #1b2129; overflow-wrap: anywhere; }

.pd-qr { flex: 0 0 auto; text-align: center; }
.pd-qr-box { display: inline-block; line-height: 0; padding: 8px; background: #fff; border: 1px solid #d7d1c2; border-radius: 6px; }
.pd-qr-code { margin-top: 6px; font-size: 10px; color: #8a8272; max-width: 150px; word-break: break-all; }

/* ---- action rail (Bootstrap-proof) ---- */
.pd-rail { display: flex; flex-direction: column; gap: 7px; flex: 0 0 190px; align-self: flex-start; }
.pd-rail-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #8a8272; font-weight: 700; }
.pd-rail-sep { height: 1px; background: #e6e0d2; margin: 3px 0; }
.pallet-detail-view .pd-rail .btn,
.pallet-detail-view .pd-rail .btn:focus {
    display: block; width: 100%; margin: 0; text-align: left;
    padding: 7px 11px; border-radius: 5px;
    font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.35;
    border: 1px solid #cfc9ba; background: #fff; background-image: none; color: #3b414a;
    text-shadow: none; box-shadow: none; cursor: pointer;
}
.pallet-detail-view .pd-rail .btn:hover { background: #f5f2ea; }
.pallet-detail-view .pd-rail .btn.btn-primary { border-color: #1e6e9e; background: #1e6e9e; color: #fff; }
.pallet-detail-view .pd-rail .btn.btn-primary:hover { background: #185a82; }
.pallet-detail-view .pd-rail .btn.pallet-btn-danger { border-color: #d8a7a1; color: #a2352b; }
.pallet-detail-view .pd-rail .btn.pallet-btn-danger:hover { background: #fbeeec; }

@media (max-width: 720px) {
    .pd-rail { flex-basis: 100%; }
}

/* ---- closed banner ---- */
.pallet-closed-banner {
    display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline;
    background: #f8f0e0; border: 1px solid #e2cfa6; border-radius: 8px;
    padding: 11px 14px; margin: 0 0 14px; font-size: 13px; color: #7a5a1c;
}
.pallet-closed-banner strong { color: #6a4a10; }
.pallet-closed-banner-note { color: #9a8256; }
.pallet-closed-banner.voided { background: #fbeeec; border-color: #e6c4bf; color: #7a2f27; }
.pallet-closed-banner.voided strong { color: #6a241d; }
.pallet-closed-banner.voided .pallet-closed-banner-note { color: #a86a60; }

/* ---- reprint modal ---- */
.reprint-preview { display: flex; gap: 16px; align-items: center; margin: 12px 0 14px; padding: 12px; background: #fdfbe6; border: 1px solid #e6e0c8; border-radius: 8px; }
.reprint-help a { color: #1e6e9e; cursor: pointer; }

/* ---- Exception Report tab ---- */
.pallet-excr .excr-temp { width: 66px; }
.pallet-excr .pallet-new-btn {
    padding: 5px 14px; background: #1e6e9e; background-image: none; border: 1px solid #1e6e9e;
    color: #fff; text-shadow: none; box-shadow: none;
}
.pallet-excr .pallet-new-btn:hover { background: #185a82; }
.pallet-excr .pallet-new-btn[disabled] { opacity: .55; }
.pallet-excr .orphan-error { margin: 0 0 12px; }

.excr-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.excr-chip {
    font: inherit; font-size: 12px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
    border: 1px solid #cfc9ba; background: #fff; color: #3b414a; display: inline-flex; gap: 6px; align-items: center;
    text-shadow: none; box-shadow: none;
}
.excr-chip:hover { background: #f5f2ea; }
.excr-chip.on { background: #1b2129; border-color: #1b2129; color: #fff; }
.excr-ct { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; color: #8a8272; }
.excr-chip.on .excr-ct { color: #c9c2b0; }

.excr-table td, .excr-table th { vertical-align: top; }
.excr-table .excr-col-when { width: 108px; }
.excr-table .excr-col-class { width: 190px; }
.excr-table .excr-col-pallet { width: 116px; }
.excr-table .excr-col-where { width: 130px; }
.excr-table .excr-col-by { width: 110px; }
.excr-when { white-space: nowrap; font-size: 12px; color: #5c6470; }
.excr-class { white-space: nowrap; }
.excr-detail { overflow-wrap: anywhere; }
.excr-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 7px; vertical-align: middle; background: #9aa0a6;
}
.excr-dot.exc-chip-error { background: #b0453b; }
.excr-dot.exc-chip-warn  { background: #c98a2c; }
.excr-dot.exc-chip-info  { background: #9aa0a6; }
.excr-row.exc-chip-error > td:first-child { box-shadow: inset 3px 0 0 #b0453b; }
.excr-row.exc-chip-warn  > td:first-child { box-shadow: inset 3px 0 0 #d9b04a; }
.excr-row:hover > td { background: #f7f9fb; }

/* ---- replace-label modal ---- */
.replace-label-modal .modal-body { min-width: 420px; }
.rl-modeswitch { display: flex; gap: 8px; margin: 0 0 14px; }
.rl-modeswitch label {
    flex: 1; display: flex; gap: 7px; align-items: center; cursor: pointer;
    font-size: 12.5px; padding: 7px 10px; border: 1px solid #cfc9ba; border-radius: 6px; background: #fff;
}
.rl-modeswitch label.active { border-color: #1e6e9e; background: #eef4f8; }
.rl-modeswitch input { margin: 0; }
.rl-scan { display: flex; gap: 8px; }
.rl-scan input { flex: 1; }
.rl-scan .btn { white-space: nowrap; box-shadow: none; text-shadow: none; }
.rl-preview {
    display: flex; gap: 14px; align-items: center; margin: 12px 0 6px;
    padding: 11px 12px; background: #fdfbe6; border: 1px solid #e6e0c8; border-radius: 8px;
}
.rl-confirm { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 4px; font-size: 12.5px; cursor: pointer; }
.rl-confirm input { margin-top: 3px; }
.rl-confirm.disabled { opacity: .5; cursor: default; }

.pallet-lineage { display: flex; flex-direction: column; gap: 6px; }

/* timeline */
.pallet-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e2ded4; }
.pallet-timeline li { position: relative; padding: 8px 0 12px 18px; }
.pallet-timeline li::before {
    content: ""; position: absolute; left: -6px; top: 12px;
    width: 10px; height: 10px; border-radius: 50%; background: #cfcabb;
}
.pallet-timeline li.pallet-event-exception::before { background: #b0453b; }
.pallet-timeline li.pallet-event-manual::before { background: #b87514; }
.pallet-timeline-when { font-size: 12px; color: #5c6470; }
.pallet-timeline-type { font-weight: 600; }
.pallet-timeline-reason { margin-left: 8px; font-size: 12px; color: #5c6470; }
.pallet-timeline-vessel { margin-top: 3px; font-size: 13px; }
.pallet-timeline-badge { margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; }
.pallet-timeline-badge.exception { color: #b0453b; border: 1px solid #d8a7a1; }
.pallet-timeline-badge.manual { color: #b87514; border: 1px solid #d9bd8c; }
.pallet-timeline-lines { font-size: 13px; margin-top: 4px; }
.pallet-timeline-exception-detail { margin-top: 6px; padding: 7px 9px; border-left: 3px solid #b0453b; background: #fdf4f3; color: #71352f; font-size: 13px; }
.pallet-timeline-exception-detail > div { margin-top: 2px; }
.pallet-timeline-note { font-size: 13px; color: #5c6470; margin-top: 4px; }

/* table row emphasis in events tab */
.pallet-table tr.pallet-event-exception td { background: #fbf0ef; }
.pallet-table tr.pallet-event-manual td { background: #fdf6ec; }

/* ---- header actions: find a pallet / Build pallet / Labels ---- */
.pallets-header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.pallets-header-actions > .btn {
    padding: 5px 14px; border-radius: 4px; font: inherit; font-size: 13px; line-height: 20px;
    white-space: nowrap; cursor: pointer; text-shadow: none; box-shadow: none; background-image: none;
}
.pallets-header-actions .pallet-lookup { flex: 0 1 300px; height: 32px; margin: 0; }
.pallets-header-actions .pallet-lookup input { height: auto; margin: 0; padding: 0 10px; }
.pallet-new-btn { background: #1e6e9e; border: 1px solid #1e6e9e; color: #fff; }
.pallet-new-btn:hover, .pallet-new-btn:focus { background: #185a82; color: #fff; }
.pallet-sec-btn { background: #fff; border: 1px solid #cfcabb; color: #1b2129; }
.pallet-sec-btn:hover, .pallet-sec-btn:focus { background: #f5f2ea; color: #1b2129; }
.pallet-seed-btn { background: #fff; border: 1px solid #cfcabb; color: #5c6470; }
.pallet-seed-btn[disabled] { opacity: .6; cursor: default; }

/* ========================================================================
   Pallet Labels screen (apps.palletLabels)
   ======================================================================== */
.pallet-labels-view .pallets-header-actions .btn {
    padding: 5px 12px; border-radius: 4px; font: inherit; cursor: pointer;
    background: #fff; border: 1px solid #cfcabb; color: #5c6470; text-decoration: none;
}

.pl-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pl-form-col { flex: 1 1 420px; min-width: 340px; }
.pl-preview-col { flex: 0 1 280px; min-width: 240px; }

.pl-panel {
    background: #fff; border: 1px solid #e2ded4; border-radius: 8px;
    padding: 16px 18px; margin-bottom: 16px;
}
.pl-panel h3 { margin: 0 0 12px; font-size: 14px; }

.pl-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pl-inline .orphan-field { margin-bottom: 8px; }
.pl-inline .orphan-field-inline input { width: 96px; }

.pl-confirm {
    margin-top: 12px; padding: 12px 14px; border-radius: 6px;
    background: #f5f2ea; border: 1px solid #e2ded4; font-size: 13px;
}
.pl-confirm-btns { margin-top: 10px; display: flex; gap: 8px; align-items: center; }

/* ---- printer status badge + connection help ---- */
.pl-printer { margin: 4px 0 18px; }
.pl-printer-badge {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    background: #fff; border: 1px solid #cfcabb; border-radius: 999px;
    padding: 6px 14px 6px 10px; font: inherit; text-align: left;
}
.pl-printer-text { display: flex; flex-direction: column; line-height: 1.25; }
.pl-printer-label { font-size: 13px; }
.pl-printer-sub { font-size: 11px; }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; background: #b0b0b0; flex: none; }
.pl-printer-badge.lp-printer-ready .pl-dot { background: #3e7d4f; }
.pl-printer-badge.lp-printer-searching .pl-dot { background: #d9a441; }
.pl-printer-badge.lp-printer-notfound .pl-dot { background: #b0453b; }
.pl-printer-badge.lp-printer-notinstalled .pl-dot { background: #b0453b; }
.pl-printer-pick { margin-left: 8px; max-width: 220px; }

.pl-help {
    margin-top: 10px; padding: 12px 14px; border-radius: 6px; font-size: 13px;
    background: #fdf6ec; border: 1px solid #e6d6b8; max-width: 640px; line-height: 1.5;
}
.pl-help ol, .pl-help ul { margin: 8px 0 8px 20px; }
.pl-help-note { margin-top: 8px; color: #5c6470; }
.pl-help-links { margin-top: 8px; }
.pl-help .btn-small { padding: 3px 9px; margin: 8px 6px 0 0; font-size: 12px; }

/* ---- label preview card ---- */
.pl-label-card {
    position: relative;
    border: 2px solid #1b2129; border-radius: 6px; padding: 16px 28px;
    text-align: center; background: #fdfbe6;
}
.pl-label-card-short { padding: 10px 28px; }
.pl-label-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5c6470; }
.pl-label-code { font-size: 20px; font-weight: 700; margin: 2px 0 10px; letter-spacing: .02em; }
.pl-label-card qr canvas, .pl-label-card qr img { display: inline-block; }
.pl-label-foot { margin-top: 10px; font-size: 12px; color: #5c6470; }
/* backup copies of the code on the left (bottom-up), right (top-down) and bottom edges */
.pl-label-side {
    position: absolute; top: 50%; font-size: 11px; font-weight: 700; white-space: nowrap;
    writing-mode: vertical-rl; transform: translateY(-50%);
}
.pl-label-side-left { left: 6px; transform: translateY(-50%) rotate(180deg); }
.pl-label-side-right { right: 6px; }
.pl-label-bottom { margin-top: 4px; font-size: 12px; font-weight: 700; }

/* ---- new-pallet modal ---- */
.create-pallet-modal .modal-body { min-width: 460px; }
.create-pallet-code-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.create-pallet-code-row .orphan-field { margin-bottom: 0; }
.create-pallet-abbr { width: 110px !important; text-transform: uppercase; }
.create-pallet-year { width: 90px !important; }
.create-pallet-code-row .orphan-hint { flex-basis: 100%; margin-top: 0; }
.create-pallet-lines { margin-top: 4px; }
.add-inventory-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.add-inventory-filters .orphan-field { flex: 1 1 200px; }
.create-pallet-lines td, .create-pallet-lines th { padding: 6px 10px; }
.create-pallet-lines tfoot td { font-weight: 600; border-top: 2px solid #e2ded4; }
.create-pallet-take { width: 72px !important; padding: 4px 6px !important; text-align: right; }
.create-pallet-lines tr.create-pallet-over .create-pallet-take { border-color: #b0453b; }
.create-pallet-over-msg { color: #b0453b; }
.create-pallet-qty-note { color: #8a5a12; }

.cp-segtabs { display: inline-flex; border: 1px solid #cfcabb; border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.cp-segtabs button {
    background: #fff; border: none; padding: 6px 14px; font: inherit; font-size: 12.8px;
    color: #5c6470; cursor: pointer; border-right: 1px solid #cfcabb;
}
.cp-segtabs button:last-child { border-right: 0; }
.cp-segtabs button.active { background: #1e6e9e; color: #fff; font-weight: 600; }
.cp-rd-order-hint { margin-top: 10px; }
.cp-rd-order-hint a { color: #1e6e9e; cursor: pointer; }

/* ---- Pack-out reconciliation tab ---- */
.pallet-pkr .pallet-new-btn {
    padding: 5px 14px; background: #1e6e9e; background-image: none; border: 1px solid #1e6e9e;
    color: #fff; text-shadow: none; box-shadow: none;
}
.pallet-pkr .pallet-new-btn:hover { background: #185a82; }
.pallet-pkr .pallet-new-btn[disabled] { opacity: .55; }
.pallet-pkr .orphan-error { margin: 0 0 12px; }
.pkr-harvest { font-weight: 600; color: #1b2129; }
.pkr-asof { font-size: 12px; color: #8a8272; margin-right: 12px; }

.pkr-recon {
    max-width: 460px; margin: 4px 0 20px;
    border: 1px solid #e2ded4; border-radius: 8px; padding: 6px 14px 14px; background: #fcfbf7;
}
.pkr-recon-line {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 7px 0; border-bottom: 1px solid #eee9dd;
}
.pkr-recon-line:last-of-type { border-bottom: 0; }
.pkr-recon-head { border-bottom: 2px solid #e2ded4; }
.pkr-recon-head .pkr-k, .pkr-recon-head .pkr-n { font-weight: 700; color: #1b2129; }
.pkr-recon-total { border-top: 2px solid #e2ded4; border-bottom: 0; margin-top: 2px; padding-top: 9px; }
.pkr-recon-total .pkr-k, .pkr-recon-total .pkr-n { font-weight: 700; }
.pkr-k { color: #4b515b; }
.pkr-n { font-variant-numeric: tabular-nums; font-weight: 600; color: #1b2129; white-space: nowrap; }
.pkr-sub { display: block; font-size: 11px; font-weight: 400; color: #8a8272; }
.pkr-recon-line.pkr-flag .pkr-k { color: #9a5a12; }
.pkr-recon-line.pkr-flag .pkr-n { color: #9a5a12; }
.pkr-recon-total.pkr-flag { background: #f8ecea; margin: 2px -14px 0; padding: 9px 14px 4px; border-radius: 0 0 8px 8px; }
.pkr-recon-total.pkr-flag .pkr-k, .pkr-recon-total.pkr-flag .pkr-n { color: #b0453b; }

.pkr-bar {
    display: flex; height: 8px; width: 100%; border-radius: 999px; overflow: hidden;
    background: #ece7db; margin: 12px 0 6px;
}
.pkr-bar > span { display: block; height: 100%; }
.pkr-bar-pal { background: #3e7d4f; }
.pkr-bar-flo { background: #b9b09a; }
.pkr-bar-key { font-size: 11px; color: #5c6470; }
.pkr-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.pkr-sw-pal { background: #3e7d4f; }

.pkr-stage-wrap { max-width: 460px; margin-bottom: 18px; }
.pkr-stage-table { table-layout: fixed; }
.pkr-stage-table tfoot td {
    font-weight: 700; border-top: 2px solid #e2ded4; background: none;
    text-shadow: none; box-shadow: none;
}
.pkr-lot-table td, .pkr-lot-table th { vertical-align: top; }
.pkr-lot-vty { display: block; font-weight: 600; color: #1b2129; }
.pkr-lot-dig { display: block; font-size: 11.5px; color: #6b7280; }
.pkr-lot-delta { font-variant-numeric: tabular-nums; }
.pkr-lot-flag > td { background: #fbf3f2; }
.pkr-lot-flag .pkr-lot-delta { color: #b0453b; font-weight: 700; }
.pkr-lot-table td.pkr-neg { color: #b0453b; font-weight: 700; }
.pkr-recon-line.pkr-neg .pkr-n { color: #b0453b; }

/* every pack-out figure opens its detail: numbers keep their own colour,
   underline on hover only */
a.pkr-go { text-decoration: none; border-bottom: 1px dotted #b9b09a; cursor: pointer; }
.pkr-lot-table a.pkr-go, .pkr-lot-table a.pkr-go:visited { color: inherit; }
a.pkr-go:hover, a.pkr-go:focus { color: #1e6e9e; border-bottom-color: #1e6e9e; text-decoration: none; }
.pkr-sortable { cursor: pointer; user-select: none; }
.pkr-sortable:hover { color: #1e6e9e; }
.pkr-sorted { color: #1b2129; }
.pkr-sorted:after { content: ' \25BE'; }
.pkr-sort-asc .pkr-sorted:after { content: ' \25B4'; }

/* pack-out lot detail modal */
.pkd-sub { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
/* the tabs sit at the foot of the header, so they stay put while the body scrolls */
.pkd-tabs { display: flex; flex-wrap: wrap; margin: 8px -15px -10px; padding: 0 9px; border-top: 1px solid #eee7da; }
.pkd-tab {
    font: inherit; font-size: 12.5px; padding: 7px 9px 6px; border: 0; border-bottom: 3px solid transparent;
    background: none; color: #5c6470; white-space: nowrap; cursor: pointer;
}
.pkd-tab b { margin-left: 5px; color: #6b7280; font-weight: 400; font-variant-numeric: tabular-nums; }
.pkd-tab:hover { color: #1e6e9e; }
.pkd-tab-on { border-bottom-color: #1e6e9e; color: #1e6e9e; font-weight: 700; }
.pkd-tab-neg b { color: #b0453b; }
.pkd-intro { color: #5c6470; margin: 0 0 10px; }
.pkd-h { font-size: 13px; margin: 16px 0 6px; color: #4b515b; }
.pkd-mismatch { background: #f8f0e0; border: 1px solid #d9bd8c; color: #8a5a12; border-radius: 6px; padding: 6px 10px; }
.pkd-total > td { border-top: 2px solid #cfcabb; font-weight: 700; background: #f9f7f1; }
.pkd-kind-vessel { color: #1e6e9e; border-color: #a7c6d7; background: #e6eff4; }
.pkd-kind-move   { color: #8a5a12; border-color: #d9bd8c; background: #f8f0e0; }
.pkd-kind-adjust { color: #b0453b; border-color: #d8a7a1; background: #f8ecea; }
.pkd-spec { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 400; color: #6b7280; }
.pkd-acts a { margin-right: 10px; white-space: nowrap; }
.pkd-coolers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pkd-cooler { border: 1px solid #cfcabb; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; color: #4b515b; }
.pkd-cooler-on { border-color: #1e6e9e; background: #e6eff4; color: #1e6e9e; font-weight: 600; }
.pkd-cooler-short { color: #b0453b; }
.pkd-cooler-short.pkd-cooler-on { border-color: #b0453b; background: #f8ecea; }
.pkd-verdict { border: 1px solid #a9cbb2; background: #eef6f0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.pkd-verdict-short { border-color: #d8a7a1; background: #fbf3f2; }
.pkd-verdict p { margin: 0 0 6px; line-height: 1.45; }
.pkd-verdict-acts a { margin-right: 14px; font-weight: 600; }
.pkd-trace-wrap { max-height: 46vh; overflow-y: auto; }
.pkd-trace td.num { white-space: nowrap; }
.pkd-bal { display: inline-block; min-width: 44px; margin-left: 8px; color: #8a8272; font-size: 11.5px; }
.pkd-free { font-weight: 700; }
.pkd-over > td { background: #fdf5f4; }
.pkd-over .pkd-free { color: #b0453b; }
.pkd-suspect > td { background: #f8e3e0; }
.pkd-window-start > td { border-top: 2px solid #b0453b; }
.pkd-flag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #b0453b; border: 1px solid #d8a7a1; border-radius: 10px; padding: 0 7px; background: #fff; }
.pkd-note { font-size: 11.5px; }
.pkd-cands { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.pkd-cand { border: 1px solid #e2ded4; background: #fff; border-radius: 6px; padding: 3px 8px; font-size: 12px; white-space: nowrap; }
.pkd-cand a + span { margin: 0 6px 0 4px; }
.pkd-cand-suspect { border-color: #b0453b; }
.pkd-cand-gone { opacity: .6; }
.pkd-earlier > td { background: #f9f7f1; font-size: 12px; }

/* ---- 2026-09 rework: scope switch, shared filter bar, split bar, build/label modal ---- */
/* filter bar: harvest + scope on the first row, narrowing filters on the second; labels sit above their controls */
.pallet-filterbar {
    display: flex; flex-direction: column; gap: 12px;
    background: #fff; border: 1px solid #e2ded4; border-radius: 8px; padding: 12px 14px; margin: 0 0 14px;
}
.pallet-filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.pallet-filter-row + .pallet-filter-row { border-top: 1px solid #efebe2; padding-top: 12px; }
.pallet-filterbar .pit-group { flex-direction: column; align-items: flex-start; gap: 4px; }
.pallet-filterbar .pit-input-harvest { width: auto; min-width: 220px; max-width: 320px; }
.pallet-filterbar .pit-input[disabled] { background-color: #f5f2ea; color: #8a8272; cursor: default; }
.pallet-filterbar .pallet-filter-check { display: inline-flex; align-items: center; gap: 6px; height: 30px; }
.pallet-filterbar .pallet-filter-check input { margin: 0; }
.pallet-filterbar .pallet-btn-link { line-height: 30px; font-size: 13px; }
.pallet-count-lead { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7079; align-self: center; margin-right: 4px; }
/* packed ahead of the trim count: on pallets at a trim shed, not yet posted by the open trim */
.pallet-await-n { display: block; font-size: 11.5px; color: #8a5a0f; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pallet-trim-tag {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: middle;
    color: #7a4f0c; background: #fbecc8; cursor: pointer; white-space: nowrap;
}
.pallet-trim-tag:hover { text-decoration: underline; color: #7a4f0c; }

/* in transit: on a transfer vessel, not received yet (the "transferring" blue) */
.pallet-transit-n { display: block; margin-top: 3px; font-size: 11.5px; color: #1e6e9e; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pallet-transit-qty, td.pallet-transit-qty, td.pallet-transit-qty a.pallet-tree-drill { color: #1e6e9e; }

/* inventory tree: Boxes = on pallets + floating - short - awaiting trim. The
   chips are the on-pallet boxes pallet by size; floating and short add up from
   the bottom rows, never netted. */
.pallet-tree td.num, .pallet-tree th.num { padding-left: 8px; padding-right: 8px; }
.pallet-tree th.pt-boxes { width: 80px; }
.pallet-tree th.pt-onpal { width: 92px; }
.pallet-tree th.pt-chips { width: 34%; }
.pallet-tree th.pt-chips, .pallet-tree td.pt-chips { padding-left: 18px; }
.pallet-tree th.pt-float { width: 96px; }
.pallet-tree th.pt-short { width: 112px; }
.pallet-tree th.pt-act { width: 40px; }
.pallet-tree td.pt-act { text-align: right; white-space: nowrap; }
.pallet-tree td.num a.pallet-tree-drill { margin-left: 0; font-size: inherit; }
.pallet-tree td.num a.pallet-tree-drill:hover { text-decoration: underline; }
.pallet-tree td.pt-chips a.pallet-tree-drill { margin-left: 0; font-size: inherit; font-weight: 400; }
.pallet-tree a.psz-list { text-decoration: none; cursor: pointer; }
.pallet-tree a.psz-list .psz { cursor: pointer; }
.pallet-tree-row:not(.is-open) a.psz-list:hover .psz,
.pallet-tree-row:not(.is-open) a.psz-list:focus .psz { box-shadow: 0 0 0 2px #a7cbdd; }
/* a branch row's chips stay on one line: three and "+N more" past four */
.pallet-tree-row.is-branch .psz-list { flex-wrap: nowrap; }
.psz.psz-more { background: #fff; color: #3b4350; border-color: #c9cdd3; font-size: 12px; font-weight: 600; }
.pallet-tree .psz-loose .psz-n { font-weight: 700; }
.pallet-tree td.num .pallet-neg-qty { font-weight: 700; }

/* an opened branch row: the rows under it carry the figures, so its own go
   quiet - grey numbers, chips as plain text, the dig-date span as an outline */
.pallet-tree-row.is-open > td.num,
.pallet-tree .pallet-tree-row.is-open td.num .pallet-neg-qty,
.pallet-tree-row.is-open .pallet-transit-qty { color: #6b7280; font-weight: 400; }
.pallet-tree-row.is-open .psz-list { gap: 0; }
.pallet-tree-row.is-open .psz { background: none; border-color: transparent; padding: 0; color: #6b7280; font-size: 13px; }
.pallet-tree-row.is-open .psz-n { font-size: 13px; color: #4b5563; }
.pallet-tree-row.is-open .psz-per { opacity: 1; font-size: 12px; }
.pallet-tree-row.is-open .psz + .psz::before { content: "\00b7"; margin: 0 6px; color: #9aa0a8; font-weight: 400; }
.pallet-tree-row.is-open .psz-loose .psz-n { font-weight: 400; color: #6b7280; }
.pallet-tree-row.is-open .inv-date-range { background: #fff; color: #6b7280; border-color: #d5d8dd; font-weight: 600; }

/* one legend line under the table */
.inv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 12px 2px 0; font-size: 12px; color: #5c6470; }
.inv-legend-k { display: inline-flex; align-items: center; gap: 5px; }
.inv-legend .inv-date-pill { font-size: 11px; line-height: 18px; padding: 0 7px; }
/* pallet size pills, "56 ×36" = 56 pallets of 36 boxes: the pallet count
   large, the boxes per pallet small with the × against them. Slate is a full
   pallet (the product's largest size), violet a partial one - colours the
   dig-date pills and links don't use. Pallets > Inventory and
   Inventory > By Location. */
.psz-list { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.psz {
    display: inline-flex; align-items: baseline; padding: 1px 7px; border-radius: 10px;
    border: 1px solid transparent; line-height: 18px; white-space: nowrap;
    font-variant-numeric: tabular-nums; cursor: default;
}
.psz-n { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.psz-per { font-size: 11px; font-weight: 500; margin-left: 3px; opacity: .85; }
.psz-per i { font-style: normal; font-size: 10px; opacity: .75; margin-right: 1px; }
.psz-full { background: #3d4655; color: #fff; }
.psz-part { background: #f2edfa; color: #5b3f8f; border-color: #cbbde6; }
/* loose boxes, on no pallet: sand, dashed for no pallet under them */
.psz-loose { background: #fff; color: #6e4f12; border: 1px dashed #c9a85c; }
/* a negative count (short - pallets claim more than the count) is no pill,
   just the red .pallet-neg-qty number */
.psz-list .pallet-neg-qty { align-self: center; margin-left: 2px; }
.psz-cell .psz { vertical-align: middle; }

/* Pallets tab narrowed to one inventory row */
.pallet-drill-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    margin: 0 0 12px; padding: 8px 12px; border-radius: 6px;
    background: #ecf4f8; border: 1px solid #a7cbdd; font-size: 13px;
}
.pallet-drill-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5c6470; font-weight: 700; }
.pallet-drill-path { color: #1b2129; }
.pallet-drill-miss { font-size: 12px; font-weight: 600; color: #8a5a0f; }
.pallet-transit-ic { color: #1e6e9e; margin-right: 6px; }
.pallet-transit-tag {
    display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: middle;
    color: #1e6e9e; background: #ecf4f8; border: 1px solid #a7cbdd; white-space: nowrap;
}
a.pallet-transit-tag:hover, a.pallet-transit-tag:focus { color: #15506f; background: #d9eaf3; text-decoration: none; }
.pallet-leaf-note { display: inline-block; margin-left: 10px; font-size: 11.5px; color: #6b7079; white-space: normal; }
.pallet-leaf-em { font-weight: 600; color: #1e6e9e; }
.pallet-exc-modes { margin-bottom: 10px; }
.pallet-btn-mini { padding: 2px 9px; font-size: 12px; border-radius: 4px; text-shadow: none; box-shadow: none; background-image: none; }
.cp-label-opts { display: flex; flex-direction: column; gap: 6px; }
.cp-opt { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid #DAD3C4; border-radius: 5px; cursor: pointer; font-weight: normal; margin: 0; }
.cp-opt.on { border-color: #1e6e9e; background: #e7f0f6; }
.cp-opt input[type=radio] { margin: 3px 0 0; }
.cp-scan { display: flex; max-width: 320px; margin: 4px 0 0; }  /* block-level so the check result sits under it */
.cp-scan input { width: 200px; }
.cp-scan .btn { border: 0; border-radius: 0; box-shadow: none; text-shadow: none; background-image: none; }
.cp-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cp-qr { border: 1px solid #DAD3C4; border-radius: 4px; padding: 4px; background: #fff; }
.cp-details { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.cp-details input { margin: 0 4px; }
.cp-parent .pallet-btn-link { margin-left: 6px; }

/* ---- review fixes 2026-09-12 (rendered in the harness) ---- */
.pallet-exc-modes { flex-wrap: wrap; }
.pallet-exc-modes > .pallet-muted { flex: 1 1 320px; min-width: 0; }
.cp-opt > input[type=radio] { flex: none; }
.cp-opt > span { flex: 1; text-align: left; min-width: 0; }
.create-pallet-modal.modal { width: 640px; margin-left: -320px; }
.create-pallet-modal .modal-footer .btn { width: auto; min-width: 110px; white-space: nowrap; }  /* "Build SM-26N00042 · 12 boxes" outgrows the fixed 110px */
.orphan-field .cp-hint-plain { text-transform: none; letter-spacing: 0; font-weight: normal; }

/* Reconcile-with-another-lot modal: the sibling-lot picker */
.lot-list { border: 1px solid #e3ded2; border-radius: 6px; max-height: 240px; overflow-y: auto; }
.lot-option { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0; cursor: pointer; border-bottom: 1px solid #efebe2; font-size: 13px; font-weight: normal; text-transform: none; letter-spacing: 0; color: inherit; }
.lot-option:last-child { border-bottom: none; }
.lot-option:hover { background: #faf8f3; }
.lot-option.lot-option-on { background: #eef5fa; }
.lot-option input[type=radio] { margin: 0; flex: none; }
.lot-option-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lot-option-name { overflow-wrap: anywhere; }
.lot-option-tags { font-size: 11px; }
.lot-option-qty { flex: none; font-variant-numeric: tabular-nums; color: #2a7a3b; font-weight: 600; }

/* ---- batch move: Pallets tab selection + move-pallets modal ---- */
.pallet-sel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 13px; }
.pallet-sel-col { width: 28px; text-align: center; }
.pallet-sel-col input[type=checkbox] { margin: 0; }
.pallet-row.pallet-row-sel > td { background: #eef5fa; }
.move-pallets-modal.modal { width: 680px; margin-left: -340px; }
.move-pallets-modal .modal-footer .btn { width: auto; min-width: 110px; white-space: nowrap; }
.mps-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 6px; font-size: 13px; }
.mps-all { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.mps-all input { margin: 0; }
.mps-list { max-height: 320px; overflow-y: auto; border: 1px solid #e2ded4; border-radius: 6px; margin-bottom: 12px; }
.mps-table { margin: 0; }
.mps-table td { vertical-align: top; padding: 6px 8px; font-size: 12.5px; }
.mps-table td.mps-cb { width: 22px; }
.mps-table td.mps-cb input { margin: 2px 0 0; }
.mps-contents { font-size: 11.5px; }
.mps-status { width: 150px; font-size: 12px; }
.mps-status-ok { color: #3e7d4f; font-weight: 700; }
.mps-table tr.mps-there > td { color: #8a8f98; }
.mps-table tr.mps-ok > td { background: #f1f8f3; }
.mps-table tr.mps-fail > td { background: #fbf3f2; }
.mps-progress { font-size: 13px; color: #1b2129; margin: 4px 0 0; }

/* --- Pallet Labels: label stock by roll ------------------------------------ */
.pl-stock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pl-stock-head h3 { margin: 0; }
.pl-year-pick .btn.active { background: #4a2c17; border-color: #4a2c17; color: #fff; text-shadow: none; }
.pl-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pl-tile { flex: 1 1 150px; border: 1px solid #e3ddd2; border-radius: 6px; padding: 10px 12px; background: #fff; }
.pl-tile-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5d544b; }
.pl-tile-num { font-size: 22px; font-weight: 700; line-height: 1.3; }
.pl-tile-sub { font-size: 12px; color: #6b6259; }
.pl-tile-warn .pl-tile-num { color: #8a4b00; }
.pl-roll-table .pl-roll-row { cursor: pointer; }
.pl-roll-table .pl-roll-row:hover td { background: #faf7f1; }
.pl-roll-table .pl-roll-open td { background: #f7f2e8; }
.pl-chev-col { width: 18px; color: #6b6259; }
.pl-mono { font-family: Menlo, Consolas, monospace; font-size: 12px; }
.pl-reprinted { font-size: 12px; color: #8a4b00; }
.pl-bar { display: flex; width: 170px; height: 10px; border-radius: 5px; overflow: hidden; background: #efe9dd; margin: 3px 0 4px; }
.pl-seg-claimed { background: #6b4423; }
.pl-seg-unclaimed { background: #e2d6c1; }
.pl-seg-void { background: #b3261e; }
.pl-flag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin: 0 4px 4px 0; white-space: nowrap; background: #efece6; color: #5d544b; }
.pl-flag-warn { background: #fdf0dc; color: #8a4b00; }
.pl-flag-ok { background: #e6f1e6; color: #2c5e2e; }
.pl-flag-bad { background: #fbe9e7; color: #b3261e; }
.pl-roll-detail-row > td { background: #fbf8f2; }
.pl-roll-detail { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 6px 0; }
.pl-strip-col { flex: 1 1 520px; min-width: 300px; }
.pl-side-col { flex: 0 1 280px; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; margin-bottom: 8px; }
.pl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pl-legend .pl-cell { width: 12px; height: 12px; padding: 0; }
.pl-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-cell { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: 33px; height: 30px; padding: 0; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 1;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; }
a.pl-cell:hover { text-decoration: none; }
.pl-cell-claimed { background: #6b4423; color: #fff; }
a.pl-cell-claimed, a.pl-cell-claimed:hover { color: #fff; }
.pl-cell-unclaimed { background: #fff; border-color: #b9ab94; color: #6b6259; }
.pl-cell-void { background: #fbe9e7; border-color: #b3261e; color: #b3261e; text-decoration: line-through; }
.pl-cell-unprinted { background: #efece6; border: 1px dashed #9a8f81; color: #8a8076; }
.pl-cell-sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2f6db5; }
.pl-cell-focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d4f8a; }
.pl-rdot, .pl-rdot-legend { width: 7px; height: 7px; border-radius: 50%; background: #e08a00; }
.pl-rdot { position: absolute; top: 2px; right: 2px; border: 1px solid #fff; }
.pl-rdot-legend { display: inline-block; }
.pl-strip-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #ece7de; font-size: 12px; }
.pl-side-card { background: #fff; border: 1px solid #e3ddd2; border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.6; }
.pl-side-focus { border-color: #2f6db5; }
.pl-side-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 4px; }
.pl-side-title .pl-mono { font-size: 13px; }
.pl-side-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5d544b; margin-bottom: 4px; }
.pl-look { color: #8a4b00; }
.pl-warn { background: #fdf0dc; color: #8a4b00; padding: 8px 10px; border-radius: 4px; font-size: 12px; }

/* --- Pallet detail: Label card --------------------------------------------- */
.pd-label-tl { margin: 4px 0 0; padding: 0; list-style: none; }
.pd-label-tl li { position: relative; padding: 0 0 14px 22px; }
.pd-label-tl li:before { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #6b4423; }
.pd-label-tl li:after { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: #e3ddd2; }
.pd-label-tl li:last-child:after { display: none; }
.pd-label-tl li.k-PRINT:before, .pd-label-tl li.k-PRE_LOG:before { background: #2f6db5; }
.pd-label-tl li.k-REPRINT:before { background: #e08a00; }
.pd-label-tl li.k-VOID:before { background: #b3261e; }
.pd-label-tl .tl-when { font-size: 12px; color: #6b6259; }
.pd-label-tl .tl-title { font-weight: 700; }
.pd-label-tl .tl-who { font-size: 12px; color: #6b6259; }
.pd-label-tl .tl-detail { font-size: 12px; }
.pl-nowrap, .pl-roll-table .pl-mono { white-space: nowrap; }

/* ---- lot timeline (the lot detail window's first tab; docs/inventory-trace-lot-timeline.md) ---- */
.lt { font-size: 12.5px; color: #1b2129; }
.lt-verdict { border: 1px solid #e2ded4; background: #faf9f6; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
.lt-verdict h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.35; font-weight: 700; text-transform: none; letter-spacing: 0; color: #1b2129; font-family: inherit; }
.lt-verdict p { margin: 0; line-height: 1.5; }
.lt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.lt-acts a { font-weight: 600; }
.lt-btn { font: inherit; font-weight: 600; padding: 5px 12px; border-radius: 5px; border: 1px solid #1e6e9e; background: #1e6e9e; color: #fff; cursor: pointer; }
.lt-btn:hover { background: #174f72; border-color: #174f72; }
.lt-verdict p.lt-also { margin-top: 8px; color: #5c6470; font-size: 12px; }
.lt-also a { margin-left: 8px; font-weight: 600; }
.lt-ok { margin: 0 0 16px; color: #3e7d4f; font-weight: 600; }
.lt-sec h5 { margin: 0; font-size: 14px; line-height: 1.3; text-transform: none; letter-spacing: 0; color: #1b2129; font-family: inherit; }
.lt-sec p { margin: 2px 0 8px; color: #5c6470; }
.lt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 11px; color: #4b515b; margin-bottom: 8px; }
.lt-legend b { color: #1b2129; font-weight: 700; }
.lt-lgl { color: #6b7280; }
.lt-lsep { display: inline-block; width: 1px; height: 12px; background: #cfcabb; }
.lt-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.lt-sw-transit { background: repeating-linear-gradient(135deg, #F89225 0 2px, #FFEBCD 2px 5px); }
.lt-sw-shipped { background: repeating-linear-gradient(45deg, #4F273B 0 1.5px, #dcd2e6 1.5px 5px); }
.lt-chart { border: 1px solid #e2ded4; border-radius: 8px; padding: 10px 6px 4px; margin-bottom: 16px; }
.lt-chart svg { display: block; }
.lt-chart .lt-hit { cursor: pointer; }
.lt-chart .lt-hit:hover { fill-opacity: .04; }
.lt-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lt-ctrl-l { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lt-field, .lt-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #4b515b; font-size: 12.5px; }
.lt select { width: auto; height: auto; margin: 0; font: inherit; color: #1b2129; padding: 3px 6px; border: 1px solid #cfcabb; border-radius: 5px; background: #fff; }
.lt-check input[type=checkbox] { margin: 0; }
.lt-muted, .lt-d { color: #6b7280; font-weight: 400; }
.lt-wrap { border: 1px solid #e2ded4; border-radius: 8px; overflow: hidden; }
/* column widths sit on the header cells (box-sizing) so the What column takes the rest */
table.lt-t { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; }
.lt-t th, .lt-t td { padding: 5px 8px; border-bottom: 1px solid #eee7da; text-align: left; white-space: nowrap; line-height: 18px; vertical-align: top; }
.lt-t thead th { box-sizing: border-box; font-size: 11px; color: #5c6470; background: #f5f2ea; font-weight: 700; }
.lt-t thead abbr { text-decoration: none; border: 0; cursor: help; }
.lt-t th.n, .lt-t td.n { padding-left: 6px; padding-right: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.lt-t td.lt-what { white-space: normal; }
.lt-t td.lt-who { overflow: hidden; text-overflow: ellipsis; }
.lt-step { display: inline-block; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; text-align: center; font-size: 11px; font-weight: 400; color: #5c6470; background: #efece5; margin: 1px 8px 0 1px; vertical-align: top; }
.lt-step-none { background: none; }
.lt-step-bad { background: #fbecea; color: #b0453b; }
.lt-t td.run { color: #6b7280; }
.lt-t td.run b { color: #1b2129; }
.lt-t td.neg, .lt-t td.run b.neg { color: #b0453b; }
.lt-t .run-first { border-left: 1px solid #e2ded4; }
.lt-t .grp { border-left: 1px solid #e2ded4; }
.lt-t tr.lt-day td { background: #f9f7f1; font-weight: 700; font-size: 11px; color: #4b515b; padding: 3px 8px; }
.lt-t tr.lt-pal td { font-size: 11px; padding-top: 3px; padding-bottom: 3px; color: #6b7280; }
.lt-t tr.lt-entry td { font-size: 11px; padding-top: 1px; padding-bottom: 1px; color: #6b7280; background: #fcfbf8; }
.lt-t tr.lt-entry td.lt-what { padding-left: 33px; }
.lt-t tr.lt-hidden td { font-size: 11px; line-height: 15px; padding: 2px 8px 2px 82px; color: #6b7280; background: #fbfaf7; white-space: normal; }
.lt-t tr.lt-hidden a { font-weight: 600; margin-left: 6px; }
.lt-t tr.lt-bad td { background: #fbf0ee; }
.lt-t tr.lt-flash td { background: #fff6d6; transition: background .6s; }
.lt-flag, .lt-warn { float: right; margin-left: 8px; font-size: 11px; font-weight: 700; line-height: 16px; border-radius: 8px; padding: 0 7px; background: #fff; white-space: nowrap; }
.lt-flag { color: #b0453b; border: 1px solid #d8a7a1; }
.lt-warn { color: #8a5a12; border: 1px solid #d9bd8c; }
.lt-t tfoot td { background: #f9f7f1; border-top: 2px solid #cfcabb; border-bottom: 0; font-weight: 700; }
