/* Logistics Control Tower. All selectors are scoped so the legacy freight ledger remains unchanged. */
.lct-page { min-height: calc(100vh - 76px); padding: 22px 24px 34px; color: #172b4d; background: #f7f9fc; font-family: Inter, system-ui, sans-serif; }
.lct-page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.lct-page-head h1, .lct-panel h2, .lct-panel h3 { margin: 0; color: #152a4a; }
.lct-page-head h1 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.04em; }
.lct-page-head p, .lct-detail-head p, .lct-history-head p { margin: 6px 0 0; color: #667b98; font-size: 13px; }
.lct-eyebrow { display: block; margin-bottom: 7px; color: #3d6d95; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lct-page-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lct-page-stats span { display: flex; gap: 7px; align-items: baseline; padding: 9px 12px; border: 1px solid #d9e3ef; border-radius: 10px; background: #fff; color: #667b98; font-size: 11px; }
.lct-page-stats strong { color: #163657; font-size: 16px; }
.lct-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.lct-page-search, .lct-history-search { display: flex; gap: 9px; align-items: center; border: 1px solid #cbd8e7; border-radius: 10px; background: #fff; color: #69809c; }
.lct-page-search { flex: 1 1 370px; min-width: 200px; padding: 0 13px; }
.lct-page-search svg, .lct-history-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lct-page-search input, .lct-history-search input { min-width: 0; width: 100%; height: 40px; border: 0; outline: 0; color: #172b4d; background: transparent; font: inherit; font-size: 12px; }
.lct-page-search input::placeholder, .lct-history-search input::placeholder { color: #8ca0b8; }
.lct-status-pills, .lct-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.lct-status-pills { justify-content: flex-end; }
.lct-filter { border: 1px solid #d4dfeb; border-radius: 999px; padding: 8px 11px; background: #fff; color: #536b87; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; }
.lct-filter span { margin-left: 4px; color: #8ca0b8; font-weight: 500; }
.lct-filter:hover, .lct-filter.is-active { border-color: #126f78; background: #e8f6f5; color: #0f626b; }
.lct-layout { display: grid; grid-template-columns: minmax(240px, 28%) minmax(330px, 38%) minmax(350px, 34%); gap: 12px; align-items: start; }
.lct-panel { min-width: 0; border: 1px solid #dbe4ee; border-radius: 13px; background: #fff; box-shadow: 0 5px 20px rgba(27, 58, 91, .045); }
.lct-list-panel, .lct-center-panel, .lct-history-panel { overflow: hidden; }
.lct-panel-title, .lct-history-head, .lct-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 17px 17px 15px; border-bottom: 1px solid #e3eaf2; }
.lct-panel-title h2, .lct-history-head h2 { font-size: 17px; letter-spacing: -.02em; }
.lct-panel-title > span { padding-top: 4px; color: #8aa0b9; font-size: 11px; font-variant-numeric: tabular-nums; }
.lct-record-list { max-height: calc(100vh - 250px); overflow: auto; }
.lct-record { display: grid; grid-template-columns: 50px minmax(0, 1fr) minmax(92px, 31%); gap: 10px; width: 100%; padding: 13px 12px; border: 0; border-bottom: 1px solid #edf1f5; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.lct-record:hover { background: #f5fbfb; }
.lct-record.is-selected { background: #eaf7f6; box-shadow: inset 3px 0 #11828b; }
.lct-record-carrier { display: flex; min-width: 0; justify-content: center; align-items: flex-start; min-height: 30px; overflow: hidden; padding-top: 3px; }
.lct-record-carrier .lct-carrier-mark { width: 48px; min-width: 0; }
.lct-record-carrier .lct-carrier-match-note { display: none; }
.lct-record-carrier .dash2-mark { width: 45px; height: 30px; }
.lct-record-carrier .dash2-mark img { max-width: 42px; max-height: 22px; }
.lct-record-carrier .dash2-mark svg { width: 24px; height: 24px; }
.lct-carrier-fallback { display: grid; place-items: center; width: 38px; height: 30px; border: 1px solid #cbd8e7; border-radius: 8px; color: #607a95; font-size: 9px; font-weight: 800; text-align: center; }
.lct-record-main, .lct-record-meta { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.lct-record-main strong { overflow: hidden; color: #183656; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lct-record-main small, .lct-record-meta small { overflow: hidden; color: #6f839c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lct-record-main .lct-record-next { overflow: visible; color: #8b5d15; font-size: 9px; font-weight: 900; letter-spacing: .02em; }
.lct-record-main .lct-record-next.is-overdue { color: #b33c2f; }
.lct-record-main .lct-record-next.is-missing { color: #9aa9b9; font-weight: 700; }
.lct-record-meta { align-items: flex-end; }
.lct-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; border: 1px solid; border-radius: 999px; padding: 4px 7px; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.lct-good { border-color: #a8dfc7; background: #edfbf3; color: #16764d; }
.lct-neutral { border-color: #c9d8e9; background: #f2f7fc; color: #4d6986; }
.lct-danger { border-color: #f4c0b9; background: #fff1ef; color: #b33c2f; }
.lct-detail-head h2 { max-width: 100%; overflow-wrap: anywhere; font-size: 22px; letter-spacing: -.035em; }
.lct-detail-head .lct-status { margin-top: 2px; }
.lct-action-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 17px; border-bottom: 1px solid #e3eaf2; }
.lct-button, .lct-top-btn { display: inline-flex; gap: 7px; align-items: center; justify-content: center; border: 1px solid #cbd9e7; border-radius: 8px; padding: 8px 10px; background: #fff; color: #375372; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.lct-button:hover, .lct-top-btn:hover { border-color: #126f78; color: #0d6570; background: #f2fbfa; }
.lct-button-primary, .lct-top-primary { border-color: #147b78; background: #147b78; color: #fff; }
.lct-button-primary:hover, .lct-top-primary:hover { border-color: #0e625f; background: #0e625f; color: #fff; }
.lct-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 14px 17px; }
.lct-summary-cell { min-width: 0; padding: 10px; border: 1px solid #e0e8f0; border-radius: 9px; background: #f8fafc; }
.lct-summary-cell span, .lct-details span, .lct-event-values small { display: block; color: #7a8da4; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lct-summary-cell strong { display: block; min-height: 28px; margin-top: 5px; color: #1d3859; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.lct-section-heading { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 13px 17px 9px; border-top: 1px solid #e3eaf2; }
.lct-section-heading h3 { font-size: 13px; }
.lct-section-heading span { color: #8294aa; font-size: 10px; }
.lct-milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 6px 17px 17px; }
.lct-milestone { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; color: #91a2b5; text-align: center; }
.lct-milestone:not(:last-child)::after { position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: #dbe4ec; content: ''; }
.lct-milestone.is-done:not(:last-child)::after { background: #9ed7cb; }
.lct-milestone i { z-index: 1; width: 12px; height: 12px; border: 3px solid #d8e2ec; border-radius: 50%; background: #fff; }
.lct-milestone.is-done i { border-color: #1a8b83; background: #bce8df; }
.lct-milestone.is-current i { box-shadow: 0 0 0 4px #e6f6f3; }
.lct-milestone b { color: #526b87; font-size: 9px; font-weight: 800; }
.lct-milestone small { color: #8ca0b8; font-size: 9px; }
.lct-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 17px; padding: 0 17px 15px; }
.lct-details > div { min-width: 0; padding: 9px 0; border-bottom: 1px solid #edf1f5; }
.lct-details strong { display: block; overflow-wrap: anywhere; margin-top: 4px; color: #294463; font-size: 11px; font-weight: 700; }
.lct-note { margin: 0 17px 17px; padding: 10px 11px; border: 1px solid #c6e5e3; border-radius: 8px; background: #f1fbfa; color: #39727a; font-size: 11px; line-height: 1.45; }
.lct-history-panel { min-height: 400px; }
.lct-history-head { align-items: center; }
.lct-history-head p { font-size: 11px; }
.lct-export-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.lct-export-actions .lct-button { padding: 7px 8px; font-size: 10px; }
.lct-leg-scope { display: flex; gap: 9px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #edf1f5; background: #fbfcfe; }
.lct-leg-scope label { color: #71859c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.lct-leg-scope select { min-width: 0; flex: 1; border: 1px solid #d4dfeb; border-radius: 7px; padding: 7px 8px; background: #fff; color: #3d5876; font: inherit; font-size: 11px; }
.lct-history-tools { display: grid; gap: 9px; padding: 12px 14px; border-bottom: 1px solid #edf1f5; }
.lct-history-search { padding: 0 9px; }
.lct-history-search input { height: 34px; font-size: 11px; }
.lct-filter-pills { overflow: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.lct-filter-pills .lct-filter { padding: 6px 9px; font-size: 10px; }
.lct-reports { margin: 12px 14px 0; border: 1px solid #cde4e3; border-radius: 9px; background: #f4fbfb; }
.lct-reports summary { padding: 9px 10px; color: #276e76; cursor: pointer; font-size: 11px; font-weight: 800; }
.lct-reports summary span { display: inline-grid; place-items: center; min-width: 18px; margin-left: 4px; border-radius: 999px; background: #ccece8; color: #1d6c70; font-size: 9px; }
.lct-reports > div { display: grid; gap: 7px; padding: 0 10px 10px; }
.lct-reports > div > div { display: grid; gap: 2px; padding-top: 7px; border-top: 1px solid #d8eeec; }
.lct-reports strong { color: #24626b; font-size: 10px; }
.lct-reports span, .lct-reports small { color: #607e96; font-size: 10px; line-height: 1.3; }
.lct-reports small { color: #8498aa; }
.lct-event-list { max-height: calc(100vh - 380px); overflow: auto; padding: 6px 14px 16px; }
.lct-event { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 9px; position: relative; padding: 13px 0 5px; }
.lct-event:not(:last-child)::before { position: absolute; top: 34px; bottom: -7px; left: 11px; width: 1px; background: #d8e2ec; content: ''; }
.lct-event-dot { z-index: 1; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #c9dde2; border-radius: 50%; background: #edfaf8; color: #197b7c; }
.lct-event-dot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lct-event-legacy_activity .lct-event-dot { border-color: #dbe1ea; background: #f4f6f9; color: #7b8da5; }
.lct-event-document .lct-event-dot { border-color: #e6d7bb; background: #fff8eb; color: #a26a20; }
.lct-event-body { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid #edf1f5; }
.lct-event-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lct-event-top strong { overflow-wrap: anywhere; color: #2d4764; font-size: 11px; }
.lct-event-top time { flex: 0 0 auto; color: #8193aa; font-size: 9px; white-space: nowrap; }
.lct-event-body p { margin: 4px 0 6px; color: #5f7590; font-size: 10px; line-height: 1.4; }
.lct-event-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; color: #8397ad; font-size: 9px; }
.lct-event-meta span:first-child { color: #35757b; font-weight: 800; }
.lct-event-values { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.lct-event-values > div { min-width: 0; padding: 7px; border: 1px solid #e5ebf1; border-radius: 6px; background: #fafcfd; }
.lct-event-values span { display: block; overflow-wrap: anywhere; margin-top: 3px; color: #4c637d; font-size: 10px; }
.lct-not-recorded { color: #9aa9b9; font-style: italic; }
.lct-provenance { display: block; overflow-wrap: anywhere; margin-top: 7px; color: #9aa7b6; font-size: 9px; line-height: 1.35; }
.lct-empty { display: grid; place-items: center; gap: 6px; min-height: 160px; padding: 20px; color: #7489a2; text-align: center; }
.lct-empty strong { color: #38536f; font-size: 12px; }
.lct-empty span { max-width: 280px; font-size: 11px; line-height: 1.45; }
.lct-top-btn { height: 34px; padding: 7px 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Status and history controls are tabs, not interchangeable pills.  Their
   colors carry the same meaning as the selected shipment cards below. */
.lct-page-stats .lct-stat-card { position: relative; min-width: 112px; overflow: hidden; }
.lct-page-stats .lct-stat-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #9aafc5; content: ''; }
.lct-page-stats .lct-stat-card-total::before { background: #1c7e8b; }
.lct-page-stats .lct-stat-card-risk { border-color: #f0c9c3; background: #fff8f6; color: #a54a3d; }
.lct-page-stats .lct-stat-card-risk::before { background: #d95b4e; }
.lct-page-stats .lct-stat-card-risk strong { color: #b44134; }
.lct-status-pills { align-items: stretch; gap: 5px; padding: 4px; border: 1px solid #dbe4ee; border-radius: 12px; background: #eef3f8; }
.lct-status-tab { display: inline-flex; gap: 6px; align-items: center; border-color: transparent; border-radius: 8px; padding: 7px 9px; background: transparent; color: #5b7089; }
.lct-status-tab .lct-tab-icon, .lct-history-tab .lct-tab-icon { display: inline-flex; width: 14px; height: 14px; margin: 0; align-items: center; justify-content: center; }
.lct-status-tab .lct-tab-icon svg, .lct-history-tab .lct-tab-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lct-status-tab > span:not(.lct-tab-icon) { margin: 0; color: inherit; font-weight: 800; }
.lct-status-tab b, .lct-history-tab b { display: inline-grid; min-width: 18px; height: 18px; margin-left: 1px; place-items: center; border-radius: 999px; background: rgba(73, 101, 130, .12); color: #5d7692; font-size: 9px; font-weight: 800; }
.lct-status-tab:hover { border-color: transparent; background: #fff; color: #294a6b; }
.lct-status-tab-all.is-active { border-color: #183b5c; background: #183b5c; color: #fff; box-shadow: 0 2px 6px rgba(24, 59, 92, .18); }
.lct-status-tab-all.is-active b { background: rgba(255, 255, 255, .18); color: #fff; }
.lct-status-tab-transit.is-active { border-color: #238d9a; background: #e1f5f3; color: #126f78; }
.lct-status-tab-scheduled.is-active { border-color: #d49b35; background: #fff4dc; color: #956319; }
.lct-status-tab-risk.is-active { border-color: #d95b4e; background: #ffe9e5; color: #a83f34; }
.lct-status-tab-arrived.is-active { border-color: #5b72c8; background: #edf0ff; color: #425aa7; }
.lct-status-tab-delivered.is-active { border-color: #36966b; background: #e7f8ef; color: #24714e; }
.lct-status-tab-transit.is-active b, .lct-status-tab-scheduled.is-active b, .lct-status-tab-risk.is-active b, .lct-status-tab-arrived.is-active b, .lct-status-tab-delivered.is-active b { background: rgba(255, 255, 255, .72); color: inherit; }
.lct-record { position: relative; border-left: 4px solid transparent; padding-left: 8px; }
.lct-record-risk { --lct-accent: #d95b4e; border-left-color: var(--lct-accent); background: #fffafa; }
.lct-record-transit { --lct-accent: #238d9a; border-left-color: var(--lct-accent); background: #fbffff; }
.lct-record-scheduled { --lct-accent: #d49b35; border-left-color: var(--lct-accent); background: #fffdf8; }
.lct-record-arrived { --lct-accent: #5b72c8; border-left-color: var(--lct-accent); background: #fcfcff; }
.lct-record-delivered { --lct-accent: #36966b; border-left-color: var(--lct-accent); background: #fbfffd; }
.lct-record.is-selected { background: #eaf7f6; box-shadow: inset 4px 0 var(--lct-accent, #11828b), 0 0 0 1px rgba(17, 130, 139, .08); }
.lct-record-kind { color: #2d7b83 !important; font-size: 9px !important; font-weight: 800; letter-spacing: .02em; }
.lct-status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.lct-center-risk .lct-detail-head { border-top: 4px solid #d95b4e; background: #fff8f6; }
.lct-center-transit .lct-detail-head { border-top: 4px solid #238d9a; background: #f3fcfb; }
.lct-center-scheduled .lct-detail-head { border-top: 4px solid #d49b35; background: #fffaf0; }
.lct-center-arrived .lct-detail-head { border-top: 4px solid #5b72c8; background: #f7f8ff; }
.lct-center-delivered .lct-detail-head { border-top: 4px solid #36966b; background: #f3fcf7; }
.lct-history-tools { gap: 10px; }
.lct-filter-pills { gap: 3px; padding: 4px; border: 1px solid #dbe4ee; border-radius: 11px; background: #f4f7fa; }
.lct-history-tab { display: inline-flex; gap: 5px; align-items: center; border-color: transparent; border-radius: 7px; padding: 7px 8px; background: transparent; color: #60758e; }
.lct-history-tab > span:not(.lct-tab-icon) { margin: 0; color: inherit; font-size: 10px; font-weight: 800; }
.lct-history-tab b { height: 16px; min-width: 16px; background: #e4ebf2; font-size: 8px; }
.lct-history-tab:hover { border-color: transparent; background: #fff; color: #315270; }
.lct-history-tab.is-active { border-color: #c5d8e5; background: #fff; color: #126f78; box-shadow: 0 1px 4px rgba(38, 65, 94, .1); }
.lct-history-tab-report_change.is-active { border-color: #b9dcd8; background: #ecf8f6; color: #16766e; }
.lct-history-tab-milestone.is-active { border-color: #c8d3ef; background: #f0f3ff; color: #4c62a6; }
.lct-history-tab-document.is-active { border-color: #ead8b9; background: #fff8ea; color: #94601d; }
.lct-history-tab-legacy_activity.is-active { border-color: #d9e0e9; background: #f5f7fa; color: #64778e; }
.lct-event-report_change .lct-event-dot { border-color: #b9dcd8; background: #ecf8f6; color: #16766e; }

/* The application shell reserves a legacy toolbar offset for older pages. The
   Control Tower owns its own toolbar, so keeping that offset creates the large
   empty band visible above the page heading. */
#content:has(.lct-page) { margin-top: 0; padding-top: 0; }

/* Keep the search glyph aligned with the text field instead of inheriting the
   old SVG stroke rules. */
.lct-search-icon { display: inline-block; width: 14px; color: #6b819b; font-size: 13px; line-height: 1; text-align: center; }

/* Audit events read as a before/after comparison. Warm red is the old value;
   green is the persisted current value. */
.lct-history-head-tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lct-audit-legend { display: inline-flex; gap: 5px; align-items: center; color: #788ca4; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.lct-audit-legend b { color: #8ba0b6; font-size: 13px; line-height: 1; }
.lct-legend-old, .lct-legend-new { padding: 4px 6px; border: 1px solid; border-radius: 5px; }
.lct-legend-old { border-color: #efc6c0; background: #fff3f1; color: #b14c41; }
.lct-legend-new { border-color: #b7dfce; background: #eefaf4; color: #247352; }
.lct-event-title { display: flex; min-width: 0; gap: 7px; align-items: center; flex-wrap: wrap; }
.lct-change-badge { padding: 2px 6px; border: 1px solid #b9dcd8; border-radius: 999px; background: #eaf8f5; color: #17756d; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lct-event-body { padding: 11px 12px 12px; border: 1px solid #e2eaf1; border-radius: 11px; background: #fff; box-shadow: 0 2px 7px rgba(27, 58, 91, .045); }
.lct-event-report_change .lct-event-body { border-color: #b9dcd8; background: linear-gradient(135deg, #f9fffd 0%, #fff 66%); }
.lct-event-document .lct-event-body { border-color: #ead8b9; background: #fffdfa; }
.lct-event-legacy_activity .lct-event-body { border-color: #e1e6ed; background: #fafbfc; }
.lct-event-values { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 6px; align-items: stretch; }
.lct-event-values > div { padding: 9px 10px; border-radius: 8px; }
.lct-value-old { border-color: #efc6c0 !important; background: #fff4f2 !important; }
.lct-value-new { border-color: #b7dfce !important; background: #effbf5 !important; }
.lct-value-old small { color: #b14c41 !important; }
.lct-value-new small { color: #247352 !important; }
.lct-event-values strong { display: block; overflow-wrap: anywhere; margin-top: 5px; color: #344f6b; font-size: 11px; line-height: 1.35; }
.lct-value-arrow { display: grid !important; place-items: center; margin: 0 !important; color: #7690a7 !important; font-size: 18px !important; font-weight: 800; line-height: 1; }
.lct-not-recorded { display: inline-block; margin-top: 5px; }

/* Milestones distinguish recorded facts from dates that are only planned. */
.lct-milestone-date { color: #247a73 !important; font-size: 9px !important; font-weight: 800 !important; }
.lct-milestone-date.is-planned { color: #9a6b22 !important; }
.lct-milestone-date.is-missing { color: #9aa9b9 !important; font-style: italic; font-weight: 600 !important; }
.lct-milestone.has-actual i { border-color: #168a7e; background: #bce8df; }
.lct-milestone.has-plan i { border-color: #d8a142; background: #fff1c9; }
.lct-milestone.is-missing i { border-color: #d8e2ec; background: #fff; }
.lct-milestone.is-current.has-plan i { box-shadow: 0 0 0 4px #fff1c9; }
.lct-milestone.is-next b { color: #8b5d15; }
.lct-milestone-next { align-self: center; padding: 2px 5px; border: 1px solid #e3b65f; border-radius: 999px; background: #fff1c9; color: #8b5d15; font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.lct-next-milestone { display: flex; gap: 10px; align-items: center; margin: 0 17px 3px; padding: 10px 12px; border: 1px solid #e3b65f; border-radius: 10px; background: linear-gradient(100deg, #fff8e8 0%, #fffdf7 100%); color: #7b551c; }
.lct-next-milestone-icon { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #f1c76f; color: #70470d; font-size: 17px; font-weight: 900; }
.lct-next-milestone > div { display: grid; min-width: 0; gap: 2px; }
.lct-next-label { color: #9a6b22; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lct-next-milestone strong { overflow-wrap: anywhere; color: #62450f; font-size: 12px; }
.lct-next-milestone small { color: #946f2f; font-size: 10px; font-weight: 700; }
.lct-next-milestone > b { margin-left: auto; padding: 6px 8px; border-radius: 7px; background: #f1c76f; color: #68440d; font-size: 10px; white-space: nowrap; }
.lct-milestone-relative { color: #8b5d15 !important; font-size: 8px !important; font-weight: 900 !important; letter-spacing: .02em; }
.lct-milestone.is-next .lct-milestone-relative { padding: 2px 4px; border-radius: 4px; background: #fff1c9; }
.lct-next-milestone-overdue { border-color: #e6aaa1; background: linear-gradient(100deg, #fff3f1 0%, #fffafa 100%); color: #a54135; }
.lct-next-milestone-overdue .lct-next-milestone-icon, .lct-next-milestone-overdue > b { background: #f2b5ad; color: #8e342b; }
.lct-next-milestone-overdue .lct-next-label, .lct-next-milestone-overdue strong, .lct-next-milestone-overdue small { color: #a54135; }
.lct-next-milestone-actual { border-color: #a8dfc7; background: linear-gradient(100deg, #eefbf4 0%, #fbfffd 100%); color: #20744f; }
.lct-next-milestone-actual .lct-next-milestone-icon, .lct-next-milestone-actual > b { background: #bce8d2; color: #1b6747; }
.lct-next-milestone-actual .lct-next-label, .lct-next-milestone-actual strong, .lct-next-milestone-actual small { color: #20744f; }
.lct-next-milestone-complete { border-color: #c9d8e9; background: #f6f9fc; color: #5b7089; }
.lct-next-milestone-complete .lct-next-milestone-icon { background: #dce8f2; color: #41617e; font-size: 13px; }
.lct-next-milestone-complete .lct-next-label, .lct-next-milestone-complete strong, .lct-next-milestone-complete small { color: #5b7089; }
.lct-event-impact { display: flex; gap: 7px; align-items: baseline; margin: 0 0 8px; padding: 6px 8px; border-left: 3px solid #4ab59b; border-radius: 5px; background: #f0fbf7; }
.lct-event-impact span { color: #4d8c7e; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.lct-event-impact strong { color: #1c705b; font-size: 10px; }
.lct-milestone-badge { border-color: #e3b65f; background: #fff1c9; color: #8b5d15; }
.lct-event-milestone .lct-event-dot { border-color: #e3b65f; background: #fff6dc; color: #9a6b22; }
.lct-event-milestone .lct-event-body { border-color: #ead8b9; background: #fffdfa; }
.lct-identity-strip { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 17px 3px; }
.lct-identity-chip { display: flex; min-width: 0; min-height: 44px; flex-direction: column; justify-content: center; gap: 4px; padding: 7px 8px; border: 1px solid #dce7ef; border-radius: 8px; background: #fbfdfe; }
.lct-identity-chip > span { overflow: hidden; color: #7b90a7; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lct-identity-chip > strong { display: flex; min-width: 0; align-items: center; overflow: hidden; color: #294866; font-size: 10px; line-height: 1.15; overflow-wrap: anywhere; word-break: break-word; text-overflow: clip; white-space: normal; }
.lct-identity-chip.is-missing { border-style: dashed; background: #fcfdff; }
.lct-identity-chip.is-missing > strong { color: #9aa9b9; font-weight: 600; }
.lct-identity-chip:first-child { border-color: #c9e1e4; background: #f4fbfb; }
.lct-identity-chip:first-child > span { color: #4b7e86; }
.lct-identity-chip:first-child > strong { overflow: visible; }
.lct-identity-chip .lct-carrier-mark, .lct-identity-chip .lct-carrier-fallback { flex: 0 0 auto; transform: scale(.76); transform-origin: left center; }
.lct-history-empty { min-height: 225px; border: 1px dashed #d8e2ec; border-radius: 10px; background: #fbfcfe; }
.lct-history-empty-icon { display: grid !important; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #edf3f8; color: #7890a8; }
.lct-history-empty-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lct-carrier-mark, .lct-carrier-mark .dash2-mark { display: grid; place-items: center; width: 45px; height: 30px; }
.lct-carrier-mark .dash2-mark { padding: 3px; border: 1px solid #e1e8ef; border-radius: 8px; background: #fff; }
.lct-carrier-mark .dash2-mark img { max-width: 39px; max-height: 20px; }
.lct-carrier-fallback { display: grid; width: 38px; height: 30px; place-items: center; border: 1px solid #bbd2e1; border-radius: 8px; background: linear-gradient(145deg, #edf6fa, #dcebf1); color: #3f6e8b; font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.lct-carrier-fallback b { font-size: 10px; }

/* A prefix match is useful context, but it is not allowed to masquerade as a
   persisted booking carrier. Keep the code and the inference visible next to
   the logo so an operator can verify it against the booking. */
.lct-carrier-mark { display: flex; width: 55px; min-height: 37px; height: auto; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.lct-carrier-mark > .dash2-mark { flex: 0 0 auto; width: 45px; height: 28px; }
.lct-carrier-mark .dash2-mark-text { width: auto; min-width: 42px; padding: 3px 4px; color: #1d7079; font-size: 8px; line-height: 1.1; white-space: nowrap; }
.lct-carrier-mark .dash2-mark-oocl { border-color: #edc3c0; background: #fff7f6; color: #b33b35; }
.lct-carrier-mark .dash2-mark-cosco { border-color: #c7d8ef; background: #f5f8ff; color: #315a9a; }
.lct-carrier-mark .dash2-mark-yang-ming { border-color: #c7d8ef; background: #f5f8ff; color: #2b5c93; }
.lct-carrier-mark .dash2-mark-hmm { border-color: #c8e0ef; background: #f2fbff; color: #276d8e; }
.lct-carrier-mark .dash2-mark-text b { overflow: hidden; max-width: 75px; text-overflow: ellipsis; }
.lct-carrier-match-note { display: block; max-width: 78px; overflow: hidden; color: #277b83; font-size: 7px; font-weight: 900; letter-spacing: .02em; line-height: 1.1; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lct-record-main .lct-record-carrier-note { display: block; max-width: 100%; overflow: hidden; color: #277b83; font-size: 9px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.lct-record-main .lct-record-carrier-note.is-lessor { color: #9a6b22; }
.lct-record-main .lct-record-carrier-note.is-unknown { color: #7b8c9d; }
.lct-identity-chip.has-prefix-match { border-color: #a9d8d6; background: linear-gradient(135deg, #f0fbfa 0%, #fbfefe 100%); }
.lct-identity-chip.has-prefix-match > span { color: #277b83; }
.lct-identity-chip.has-prefix-match > strong { overflow: visible; }

@media (max-width: 1240px) {
  .lct-page { padding-inline: 16px; }
  .lct-layout { grid-template-columns: minmax(220px, 27%) minmax(310px, 38%) minmax(320px, 35%); }
  .lct-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lct-page-search { flex-basis: 300px; }
}
@media (max-width: 980px) {
  .lct-toolbar { align-items: stretch; flex-direction: column; }
  .lct-status-pills { justify-content: flex-start; overflow: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .lct-layout { grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); }
  .lct-history-panel { grid-column: 1 / -1; }
  .lct-event-list { max-height: none; }
}
@media (max-width: 640px) {
  .lct-page { padding: 14px 10px 25px; }
  .lct-page-head { align-items: flex-start; flex-direction: column; }
  .lct-page-stats { justify-content: flex-start; }
  .lct-layout { display: flex; flex-direction: column; }
  .lct-list-panel, .lct-center-panel, .lct-history-panel { width: 100%; }
  .lct-record-list { max-height: 310px; }
  .lct-detail-head h2 { font-size: 19px; }
  .lct-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 12px; }
  .lct-action-row, .lct-panel-title, .lct-detail-head { padding-inline: 12px; }
  .lct-details { padding-inline: 12px; }
  .lct-section-heading { padding-inline: 12px; }
  .lct-milestones { padding-inline: 12px; }
  .lct-identity-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 12px; }
  .lct-next-milestone { margin-inline: 12px; }
  .lct-note { margin-inline: 12px; }
  .lct-event-top { align-items: flex-start; flex-direction: column; gap: 2px; }
  .lct-event-values { grid-template-columns: 1fr; }
  #content:has(.lct-page) { padding-top: 0; }
  .lct-history-head-tools { width: 100%; align-items: flex-start; justify-content: space-between; }
  .lct-value-arrow { min-height: 14px; transform: rotate(90deg); }
}

/* Dispatch-board composition: one scan surface and one selected-PO inspection panel. */
.lct-page { padding: 24px 24px 36px; background: #f6f8fb; }
.lct-page-head { align-items: center; margin-bottom: 16px; }
.lct-page-head h1 { font-size: clamp(25px, 2.2vw, 34px); }
.lct-page-head p { max-width: 620px; }
.lct-page-head-meta { display: flex; gap: 14px; align-items: center; color: #7890a8; font-size: 11px; white-space: nowrap; }
.lct-date-chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid #c9dbe8; border-radius: 9px; background: #fff; color: #294866; font-size: 12px; font-weight: 800; }
.lct-date-chip i { color: #197b83; }
.lct-updated { display: inline-flex; gap: 7px; align-items: center; }
.lct-updated i { color: #5e7d96; }
.lct-toolbar { gap: 12px; margin-bottom: 14px; }
.lct-page-search { min-height: 42px; padding-inline: 12px; }
.lct-page-search input { height: 40px; font-size: 12px; }
.lct-status-select { position: relative; display: flex; min-width: 168px; align-items: center; }
.lct-status-select select { width: 100%; height: 42px; appearance: none; border: 1px solid #cbd8e7; border-radius: 10px; padding: 0 34px 0 12px; background: #fff; color: #2b4968; font: inherit; font-size: 12px; font-weight: 700; outline: 0; }
.lct-status-select select:focus { border-color: #13818a; box-shadow: 0 0 0 3px rgba(19, 129, 138, .12); }
.lct-status-select i { position: absolute; right: 12px; pointer-events: none; color: #6f879f; font-size: 11px; }
.lct-layout { grid-template-columns: minmax(0, 1.8fr) minmax(375px, .82fr); gap: 14px; align-items: start; }
.lct-board-panel, .lct-inspection-panel { min-width: 0; overflow: hidden; }
.lct-board-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; padding: 16px 17px 13px; border-bottom: 1px solid #e3eaf2; }
.lct-board-head h2 { margin: 0; color: #152a4a; font-size: 18px; letter-spacing: -.025em; }
.lct-board-count { color: #8195aa; font-size: 11px; font-variant-numeric: tabular-nums; }
.lct-board-scroll { min-width: 0; overflow-x: auto; }
.lct-board-columns, .lct-record { grid-template-columns: minmax(86px, .82fr) minmax(112px, 1.12fr) minmax(56px, .55fr) minmax(100px, 1fr) minmax(105px, 1.02fr) minmax(145px, 1.4fr) minmax(86px, .85fr) 78px; gap: 8px; }
.lct-board-columns { display: grid; align-items: center; padding: 10px 12px 8px; border-bottom: 1px solid #e3eaf2; color: #71869d; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.lct-record-list { max-height: calc(100vh - 265px); overflow: auto; }
.lct-record-group { min-width: 0; }
.lct-record-group + .lct-record-group { border-top: 1px solid #e2eaf1; }
.lct-record-group-head { display: flex; min-height: 38px; justify-content: space-between; gap: 12px; align-items: center; margin: 8px 10px 0; padding: 7px 12px; border-radius: 8px; }
.lct-record-group-head > span { display: inline-flex; gap: 9px; align-items: center; }
.lct-record-group-head strong { color: #163657; font-size: 14px; }
.lct-record-group-head b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #48647f; font-size: 10px; }
.lct-record-group-head small { color: #6f839c; font-size: 10px; }
.lct-group-icon { display: inline-grid; width: 22px; height: 22px; place-items: center; color: #267b82; font-style: normal; }
.lct-group-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.lct-record-group-risk .lct-record-group-head { background: #fff0ee; }
.lct-record-group-risk .lct-group-icon, .lct-record-group-risk .lct-record-group-head strong { color: #ad3b32; }
.lct-record-group-transit .lct-record-group-head { background: #e9f8f2; }
.lct-record-group-scheduled .lct-record-group-head { background: #eef5fb; }
.lct-record-group-delivered .lct-record-group-head { background: #eaf7f2; }
.lct-record { display: grid; align-items: center; min-height: 64px; padding: 9px 12px; border: 0; border-bottom: 1px solid #edf1f5; border-radius: 0; background: #fff; }
.lct-record:hover { background: #f4fbfb; }
.lct-record.is-selected { background: #eaf7f6; box-shadow: inset 3px 0 #13818a; }
.lct-record > span { min-width: 0; }
.lct-record-carrier { display: flex; min-width: 0; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 2px; overflow: hidden; padding: 0; }
.lct-record-carrier .lct-carrier-mark { width: 52px; min-width: 0; min-height: 30px; height: 30px; }
.lct-record-carrier .lct-carrier-match-note { display: none; }
.lct-record-carrier .dash2-mark { width: 46px; height: 29px; }
.lct-record-carrier .dash2-mark img { max-width: 41px; max-height: 21px; }
.lct-record-carrier .lct-carrier-fallback { width: 44px; height: 29px; }
.lct-carrier-code { max-width: 58px; overflow: hidden; color: #287a82; font-size: 7px; font-weight: 900; letter-spacing: .02em; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lct-carrier-code.is-lessor { color: #9a6b22; }
.lct-carrier-code.is-unknown { color: #7b8c9d; }
.lct-record-po, .lct-record-supplier, .lct-record-container, .lct-record-route, .lct-record-date { overflow: hidden; }
.lct-record-po, .lct-record-date-value { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.lct-record-po strong { overflow: hidden; color: #183656; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lct-record-po small, .lct-record-supplier, .lct-record-container, .lct-record-route, .lct-record-date-value small { overflow: hidden; color: #6f839c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lct-record-supplier, .lct-record-container, .lct-record-route { color: #294866; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.lct-record-container { font-variant-numeric: tabular-nums; }
.lct-record-date-value strong { color: #294866; font-size: 10px; font-weight: 800; white-space: nowrap; }
.lct-record-date-value small { color: #8497ab; font-size: 8px; }
.lct-record-next-cell { display: flex; min-width: 0; }
.lct-mini-milestone { display: flex; min-width: 0; width: 100%; flex-direction: column; gap: 2px; }
.lct-mini-track { position: relative; display: flex; width: 100%; height: 12px; align-items: center; justify-content: space-between; }
.lct-mini-track::before { position: absolute; right: 5px; left: 5px; height: 2px; background: #d7e1eb; content: ''; }
.lct-mini-dot { z-index: 1; width: 9px; height: 9px; border: 2px solid #c5d3df; border-radius: 50%; background: #fff; }
.lct-mini-dot.is-actual { border-color: #1a8b83; background: #1a8b83; }
.lct-mini-dot.is-planned, .lct-mini-dot.is-next { border-color: #d79b2f; background: #fff8e4; }
.lct-mini-dot.is-overdue { border-color: #d95b4e; background: #fff0ee; }
.lct-mini-dot.is-missing { border-color: #cbd8e5; background: #fff; }
.lct-mini-milestone small { overflow: hidden; color: #715314; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.lct-mini-milestone small.is-overdue { color: #b33c2f; }
.lct-record-status { display: flex; justify-content: flex-end; }
.lct-record-status .lct-status { padding: 4px 6px; font-size: 8px; }
.lct-inspection-panel { position: sticky; top: 12px; max-height: calc(100vh - 130px); overflow: auto; }
.lct-inspection-panel .lct-detail-head { padding: 18px 18px 15px; }
.lct-inspection-panel .lct-detail-head h2 { font-size: 24px; }
.lct-inspection-panel .lct-detail-head p { max-width: 280px; line-height: 1.35; }
.lct-inspection-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 11px 17px; border-bottom: 1px solid #e3eaf2; }
.lct-inspection-actions .lct-button { padding: 7px 9px; font-size: 10px; }
.lct-inspection-panel .lct-identity-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 11px 17px 3px; }
.lct-inspection-panel .lct-identity-chip { min-height: 50px; }
.lct-inspection-panel .lct-identity-chip:first-child > strong { overflow: visible; }
.lct-inspection-panel .lct-next-milestone { margin: 12px 17px 6px; padding: 11px 12px; }
.lct-inspection-panel .lct-next-milestone-icon { width: 30px; height: 30px; }
.lct-inspection-panel .lct-next-milestone strong { font-size: 13px; }
.lct-route-section { border-top: 1px solid #e3eaf2; }
.lct-route-section .lct-section-heading { padding-bottom: 7px; }
.lct-route-legend { display: flex; gap: 12px; justify-content: flex-end; padding: 0 17px 4px; color: #73879d; font-size: 9px; }
.lct-route-legend span { display: inline-flex; gap: 5px; align-items: center; }
.lct-route-legend i { width: 8px; height: 8px; border: 2px solid #cbd8e5; border-radius: 50%; background: #fff; }
.lct-route-legend i.is-actual { border-color: #1a8b83; background: #1a8b83; }
.lct-route-legend i.is-planned { border-color: #d79b2f; background: #fff8e4; }
.lct-route-timeline { display: flex; padding: 5px 17px 12px; flex-direction: column; }
.lct-route-timeline .lct-milestone { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-rows: auto auto; min-height: 43px; align-items: center; gap: 0 8px; padding: 4px 0; text-align: left; }
.lct-route-timeline .lct-milestone:not(:last-child)::after { top: 19px; left: 6px; width: 2px; height: calc(100% - 3px); background: #dbe4ec; }
.lct-route-timeline .lct-milestone.is-done:not(:last-child)::after { background: #9ed7cb; }
.lct-route-timeline .lct-milestone i { grid-column: 1; grid-row: 1 / span 2; width: 13px; height: 13px; }
.lct-route-timeline .lct-milestone b { grid-column: 2; grid-row: 1; color: #294866; font-size: 10px; }
.lct-route-timeline .lct-milestone-date { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: #6f839c; font-size: 9px; text-align: right; }
.lct-route-timeline .lct-milestone-date.is-planned { color: #9a6b22; }
.lct-route-timeline .lct-milestone-date.is-missing { color: #9aa9b9; }
.lct-route-timeline .lct-milestone-next { grid-column: 2; grid-row: 2; width: fit-content; margin-top: 2px; padding: 2px 5px; border-radius: 999px; background: #fff0c8; color: #8b5d15; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.lct-route-timeline .lct-milestone-relative { grid-column: 2; grid-row: 2; margin-left: 38px; color: #9a6b22; font-size: 8px; }
.lct-inspection-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0 17px; padding: 4px 0 8px; border-top: 1px solid #e3eaf2; }
.lct-inspection-details > div { min-width: 0; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.lct-inspection-details span { display: block; color: #7a8da4; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.lct-inspection-details strong { display: block; overflow: hidden; margin-top: 3px; color: #294463; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lct-audit-summary { margin: 9px 17px 12px; padding-top: 12px; border-top: 1px solid #e3eaf2; }
.lct-audit-summary-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.lct-audit-summary-head h3 { margin: 0; color: #152a4a; font-size: 14px; }
.lct-audit-summary-head > span { color: #7a8da4; font-size: 9px; }
.lct-audit-columns, .lct-audit-row { display: grid; grid-template-columns: minmax(68px, 1.1fr) minmax(70px, 1fr) 16px minmax(70px, 1fr) 82px; gap: 6px; align-items: center; }
.lct-audit-columns { padding: 0 0 5px; color: #7a8da4; font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.lct-audit-row { min-height: 42px; border-top: 1px solid #edf1f5; color: #294866; font-size: 9px; }
.lct-audit-row > strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.lct-audit-row > b { color: #8397ab; text-align: center; }
.lct-audit-row time { color: #7a8da4; font-size: 8px; line-height: 1.25; }
.lct-audit-value { display: block; overflow: hidden; padding: 4px 5px; border-radius: 6px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.lct-audit-previous { background: #fff0ee; color: #b33c2f; }
.lct-audit-current { background: #e9f8ee; color: #19754f; }
.lct-audit-empty { padding: 12px 0 4px; color: #71859c; }
.lct-audit-empty strong, .lct-audit-empty span { display: block; }
.lct-audit-empty strong { color: #526b87; font-size: 10px; }
.lct-audit-empty span { margin-top: 3px; font-size: 9px; }
.lct-history-disclosure { margin: 0 17px 17px; border: 1px solid #dbe6ef; border-radius: 9px; background: #fbfcfe; }
.lct-history-disclosure > summary { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 11px; color: #286d76; cursor: pointer; font-size: 10px; font-weight: 900; list-style-position: inside; }
.lct-history-disclosure > summary span { color: #7a8da4; font-size: 9px; font-weight: 700; }
.lct-history-disclosure[open] > summary { border-bottom: 1px solid #dbe6ef; }
.lct-history-disclosure .lct-history-panel { min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.lct-history-disclosure .lct-history-head { padding: 13px 12px 11px; }
.lct-history-disclosure .lct-leg-scope, .lct-history-disclosure .lct-history-tools { padding-inline: 12px; }
.lct-history-disclosure .lct-event-list { max-height: 430px; }

@media (max-width: 1240px) {
  .lct-layout { grid-template-columns: minmax(0, 1.55fr) minmax(350px, .9fr); }
  .lct-board-columns, .lct-record { grid-template-columns: 78px minmax(95px, 1fr) 52px minmax(82px, .9fr) minmax(92px, 1fr) minmax(125px, 1.2fr) 78px 72px; }
  .lct-record-group { min-width: 0; }
  .lct-page-head-meta { gap: 8px; }
  .lct-updated { display: none; }
}
@media (max-width: 980px) {
  .lct-layout { grid-template-columns: 1fr; }
  .lct-inspection-panel { position: static; max-height: none; }
  .lct-record-list { max-height: 620px; }
  .lct-page-search { flex-basis: auto; }
}
@media (max-width: 640px) {
  .lct-page { padding: 14px 10px 24px; }
  .lct-page-head { align-items: flex-start; flex-direction: column; }
  .lct-page-head-meta { width: 100%; }
  .lct-toolbar { align-items: stretch; flex-direction: column; }
  .lct-status-select { width: 100%; }
  .lct-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
  .lct-board-panel, .lct-inspection-panel { width: 100%; max-width: 100%; }
  .lct-board-scroll { width: 100%; }
  .lct-board-columns, .lct-record { min-width: 840px; }
  .lct-record-group { min-width: 840px; }
  .lct-page-search { flex-basis: auto; }
  .lct-inspection-panel .lct-identity-strip { grid-template-columns: 1fr 1fr; }
  .lct-inspection-panel .lct-identity-chip:last-child { grid-column: 1 / -1; }
  .lct-audit-columns, .lct-audit-row { grid-template-columns: minmax(62px, 1fr) minmax(62px, 1fr) 12px minmax(62px, 1fr) 65px; gap: 4px; }
}

/* Typography pass: preserve the dense operational layout while making the
   hierarchy readable at a normal browser zoom. Inter remains the workhorse
   face (the same font as AP Bills). Headings use Inter too, so the page reads as one face. */
.lct-page button, .lct-page input, .lct-page select, .lct-page textarea { font-family: inherit; }
.lct-page {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lct-page-head h1,
.lct-board-head h2,
.lct-record-group-head strong,
.lct-inspection-panel .lct-detail-head h2,
.lct-section-heading h3,
.lct-audit-summary-head h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}
.lct-page-head h1 { font-size: clamp(28px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.lct-page-head p { font-size: 14px; line-height: 1.5; }
.lct-eyebrow { font-size: 10px; letter-spacing: .15em; }
.lct-date-chip { font-size: 13px; }
.lct-page-search input, .lct-status-select select { font-size: 13px; }
.lct-board-head h2 { font-size: 20px; letter-spacing: -.025em; }
.lct-board-count { font-size: 12px; }
.lct-board-columns { font-size: 10px; letter-spacing: .07em; }
.lct-record-group-head strong { font-size: 15px; }
.lct-record-group-head small { font-size: 11px; }
.lct-record-group-head b { font-size: 11px; }
.lct-record-po strong { font-size: 13px; }
.lct-record-po small { font-size: 10px; }
.lct-record-supplier, .lct-record-container, .lct-record-route { font-size: 11px; }
.lct-record-date-value strong { font-size: 11px; }
.lct-record-date-value small { font-size: 9px; }
.lct-mini-milestone small { font-size: 10px; }
.lct-record-status .lct-status { font-size: 9px; }
.lct-inspection-panel .lct-detail-head h2 { font-size: 26px; line-height: 1.1; }
.lct-inspection-panel .lct-detail-head p { font-size: 14px; }
.lct-inspection-actions .lct-button { font-size: 11px; }
.lct-inspection-panel .lct-next-milestone strong { font-size: 14px; }
.lct-inspection-panel .lct-next-milestone small { font-size: 11px; }
.lct-inspection-panel .lct-next-milestone > b { font-size: 11px; }
.lct-section-heading h3 { font-size: 15px; }
.lct-section-heading span { font-size: 11px; }
.lct-route-legend { font-size: 10px; }
.lct-route-timeline .lct-milestone b { font-size: 11px; }
.lct-route-timeline .lct-milestone-date { font-size: 10px; }
.lct-route-timeline .lct-milestone-relative { font-size: 9px; }
.lct-inspection-details span { font-size: 9px; }
.lct-inspection-details strong { font-size: 11px; }
.lct-audit-summary-head h3 { font-size: 15px; }
.lct-audit-summary-head > span { font-size: 10px; }
.lct-audit-columns { font-size: 9px; }
.lct-audit-row { font-size: 10px; }
.lct-audit-row > strong { font-size: 10px; }
.lct-audit-row time { font-size: 9px; }
.lct-audit-value { font-size: 10px; }
.lct-history-disclosure > summary { font-size: 11px; }
.lct-history-disclosure > summary span { font-size: 10px; }

/* PO History read-model presentation. The badges make source, category and
   leg context scannable without turning the timeline into a rainbow table. */
.lct-history-search-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; align-items: center; }
.lct-history-source { display: flex; min-width: 0; gap: 6px; align-items: center; color: #71859c; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.lct-history-source select { min-width: 0; width: 100%; height: 34px; border: 1px solid #d4dfeb; border-radius: 7px; padding: 0 7px; background: #fff; color: #3d5876; font: inherit; font-size: 10px; font-weight: 700; text-transform: none; }
.lct-history-source select:focus { border-color: #13818a; outline: 0; box-shadow: 0 0 0 3px rgba(19, 129, 138, .12); }
.lct-history-head h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 19px; letter-spacing: -.025em; }
.lct-field-badge, .lct-change-badge, .lct-source-badge, .lct-event-scope { display: inline-flex; align-items: center; min-height: 18px; border-radius: 999px; padding: 2px 6px; font-size: 8px; font-weight: 800; letter-spacing: .03em; line-height: 1.15; white-space: nowrap; }
.lct-field-badge { border: 1px solid #d6e0eb; background: #f3f6fa; color: #627993; text-transform: uppercase; }
.lct-change-badge { border-color: #b9dcd8; background: #eaf8f5; color: #17756d; text-transform: uppercase; }
.lct-update-badge { border-color: #cbd8e7; background: #f2f7fc; color: #4d6986; }
.lct-source-badge { border: 1px solid transparent; letter-spacing: 0; }
.lct-source-afl { border-color: #bfd8ef; background: #eaf4ff; color: #27659a; }
.lct-source-mishlei { border-color: #d6c7ef; background: #f4efff; color: #6946a0; }
.lct-source-manual { border-color: #edd4a8; background: #fff7e8; color: #96631e; }
.lct-source-warehouse { border-color: #bfe2ca; background: #ecfaf0; color: #28734b; }
.lct-source-system { border-color: #d8e0e9; background: #f4f6f9; color: #63768c; }
.lct-event-scope { border: 1px solid #d8e5ed; background: #f7fafc; color: #607994; letter-spacing: 0; }
.lct-event-report_sync .lct-event-dot { border-color: #cbd8e7; background: #f2f7fc; color: #4d6986; }
.lct-event-report_sync .lct-event-values > div { background: #f8fafc; border-style: dashed; }
.lct-event-report_sync .lct-event-body p { color: #607994; }
.lct-event-document .lct-field-badge { border-color: #ead8b9; background: #fff8ea; color: #94601d; }
.lct-event-milestone .lct-field-badge { border-color: #c8d3ef; background: #f0f3ff; color: #4c62a6; }
.lct-event-legacy_activity .lct-field-badge { border-color: #d9e0e9; background: #f5f7fa; color: #64778e; }
.lct-audit-columns, .lct-audit-row { grid-template-columns: minmax(94px, 1.05fr) minmax(78px, .86fr) minmax(68px, .75fr) minmax(70px, 1fr) minmax(70px, 1fr); gap: 6px; }
.lct-audit-row { min-height: 46px; }
.lct-audit-row > span, .lct-audit-row > strong { min-width: 0; }
.lct-audit-row > span:not(.lct-source-badge) { overflow: hidden; }
.lct-audit-row .lct-source-badge { width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lct-audit-row .lct-audit-value { width: 100%; }
.lct-audit-row time { overflow-wrap: anywhere; }
.lct-audit-row > b { display: none; }

@media (max-width: 640px) {
  .lct-history-search-row { grid-template-columns: 1fr; }
  .lct-history-source { width: 100%; }
  .lct-audit-columns, .lct-audit-row { grid-template-columns: minmax(78px, .9fr) minmax(68px, .8fr) minmax(62px, .72fr) minmax(62px, 1fr) minmax(62px, 1fr); gap: 4px; }
  .lct-audit-row { min-height: 48px; }
}

/* Exception signals are intentionally compact: amber is actionable, red is
   reserved for a future critical rule, and the shipment card itself keeps its
   status color. */
.lct-exception-head-chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid #d7e1eb; border-radius: 9px; background: #f7fafc; color: #6d829a; font-size: 11px; font-weight: 800; }
.lct-exception-head-chip i { color: #8196aa; }
.lct-exception-head-chip.has-exceptions { border-color: #e8c98d; background: #fff8e8; color: #8b601e; }
.lct-exception-head-chip.has-exceptions i { color: #c48624; }
.lct-record-exception-badges { display: flex; min-width: 0; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
.lct-exception-badge, .lct-exception-overflow { display: inline-flex; max-width: 100%; align-items: center; overflow: hidden; border: 1px solid; border-radius: 999px; padding: 2px 5px; font-size: 8px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.lct-exception-warning { border-color: #e7c47e; background: #fff5d9; color: #95631a; }
.lct-exception-critical { border-color: #efb2aa; background: #fff0ee; color: #b43c31; }
.lct-exception-info { border-color: #c5d8ec; background: #f0f6fd; color: #4b6e96; }
.lct-exception-overflow { border-color: #d6e0e9; background: #f4f7fa; color: #607993; }
.lct-exceptions { margin: 2px 17px 14px; padding: 13px 0 0; border-top: 1px solid #e3eaf2; }
.lct-exceptions-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.lct-exceptions-head h3 { margin: 0; color: #152a4a; font-size: 15px; }
.lct-exceptions-count { display: inline-flex; align-items: center; border: 1px solid #d7e1eb; border-radius: 999px; padding: 4px 7px; background: #f6f8fb; color: #71859b; font-size: 9px; font-weight: 900; }
.lct-exceptions-count.has-exceptions { border-color: #e7c47e; background: #fff5d9; color: #95631a; }
.lct-exception-list { display: grid; gap: 7px; }
.lct-exception-card { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid #e7c47e; border-radius: 10px; background: linear-gradient(135deg, #fffaf0, #fff); }
.lct-exception-card-critical { border-color: #efb2aa; background: linear-gradient(135deg, #fff5f3, #fff); }
.lct-exception-card-info { border-color: #c5d8ec; background: linear-gradient(135deg, #f6faff, #fff); }
.lct-exception-card-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #f3cf85; color: #80530e; font-size: 12px; }
.lct-exception-card-critical .lct-exception-card-icon { background: #f3b6ae; color: #9e332b; }
.lct-exception-card-info .lct-exception-card-icon { background: #d8e7f6; color: #4b6e96; }
.lct-exception-card-body { min-width: 0; }
.lct-exception-card-top { display: flex; gap: 7px; align-items: flex-start; justify-content: space-between; }
.lct-exception-card-top strong { color: #62450f; font-size: 11px; line-height: 1.3; }
.lct-exception-card-critical .lct-exception-card-top strong { color: #9e332b; }
.lct-exception-card-info .lct-exception-card-top strong { color: #4b6e96; }
.lct-exception-severity { flex: 0 0 auto; border: 1px solid #e7c47e; border-radius: 999px; padding: 2px 5px; color: #95631a; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.lct-exception-card-critical .lct-exception-severity { border-color: #efb2aa; color: #b43c31; }
.lct-exception-card-info .lct-exception-severity { border-color: #c5d8ec; color: #4b6e96; }
.lct-exception-card p { margin: 4px 0 6px; color: #6f5d38; font-size: 10px; line-height: 1.35; }
.lct-exception-card-critical p { color: #76504b; }
.lct-exception-card-info p { color: #5d7692; }
.lct-exception-card-meta { display: flex; gap: 7px; flex-wrap: wrap; color: #8c7a57; font-size: 9px; }
.lct-exception-card-meta time { color: #9b8967; }
.lct-exception-card-action { margin-top: 7px; }
.lct-exception-evidence { display: inline-flex; gap: 5px; align-items: center; border: 0; padding: 0; background: transparent; color: #8b601e; cursor: pointer; font: inherit; font-size: 9px; font-weight: 900; }
.lct-exception-evidence:hover { color: #126f78; text-decoration: underline; }
.lct-exception-evidence.is-static { color: #8f9cac; cursor: default; font-weight: 700; }
.lct-exceptions-empty { display: flex; gap: 7px; align-items: center; padding: 9px 10px; border: 1px solid #d8e8df; border-radius: 8px; background: #f5fbf7; color: #5e806d; font-size: 10px; line-height: 1.35; }
.lct-exceptions-empty i { color: #2b8a61; }
.lct-event.is-focused .lct-event-body { border-color: #d5a13d; box-shadow: 0 0 0 3px rgba(213, 161, 61, .2), 0 5px 16px rgba(83, 61, 18, .1); }

@media (max-width: 640px) {
  .lct-page-head-meta { align-items: flex-start; flex-wrap: wrap; white-space: normal; }
  .lct-exception-head-chip { padding: 7px 9px; }
  .lct-exceptions { margin-inline: 12px; }
}
