.logistics-console {
  --log-bg: #07111e;
  --log-bg-alt: #091726;
  --log-panel: #0e1d2d;
  --log-panel-alt: #112338;
  --log-line: #20364b;
  --log-line-strong: #315474;
  --log-text: #e8f1f8;
  --log-muted: #8298ab;
  --log-blue: #347fba;
  --log-blue-bright: #61a9df;
  --log-blue-soft: #102b43;
  --log-green: #55b79f;
  --log-green-dark: #347fba;
  --log-green-soft: #102b43;
  --log-amber: #d5a354;
  --log-amber-soft: #2b2113;
  --log-red: #d86572;
  --log-red-soft: #2d171d;
  --log-ink: #e8f1f8;
  --system-accent: var(--log-blue);
  --system-accent-bright: var(--log-blue-bright);
  --system-panel: var(--log-panel);
  --system-line: var(--log-line);
  --system-text: var(--log-text);
  --system-muted: var(--log-muted);
  min-height: 100vh;
}
.logistics-console .dashboard-shell { min-height: 100vh; background: var(--log-bg); }
.logistics-console .dashboard-sidebar { border-right: 1px solid var(--log-line); background: #06101b; box-shadow: none; }
.logistics-console .dashboard-logo { border-bottom-color: var(--log-line); color: var(--log-text); }
.logistics-console .dashboard-logo .logo-symbol { width: 45px; border: 1px solid var(--log-line-strong); border-radius: 8px; color: var(--log-blue-bright); background: #0d2235; box-shadow: none; font-size: 13px; letter-spacing: -.03em; }
.logistics-console .dashboard-logo strong { color: var(--log-text); }
.logistics-console .dashboard-logo small { color: var(--log-muted); }
.logistics-console .side-navigation a { border: 1px solid transparent; border-radius: 7px; color: #8da2b5; }
.logistics-console .side-navigation a:hover { border-color: var(--log-line); color: var(--log-text); background: #0c1b2a; }
.logistics-console .side-navigation a.is-active { border-color: #24445e; color: #dcedfb; background: #0d2438; box-shadow: inset 3px 0 0 var(--log-blue); }
.logistics-console .side-navigation a span { color: var(--log-blue-bright); }
.logistics-console .sidebar-account { border-top-color: var(--log-line); }
.logistics-console .account-avatar { border: 1px solid var(--log-line-strong); color: var(--log-blue-bright); background: #0d2235; }
.logistics-console .account-copy small { color: var(--log-muted); }
.logistics-console .account-copy strong { color: var(--log-text); }
.logistics-console .icon-logout { color: var(--log-muted); background: transparent; }

.logistics-console .dashboard-main { max-width: 1680px; background: var(--log-bg); }
.logistics-console .logistics-topbar h1 { color: var(--log-text); letter-spacing: -.035em; }
.logistics-console .dashboard-kicker,
.logistics-console .panel-overline { color: var(--log-blue-bright); }
.logistics-console .dashboard-intro { color: var(--log-muted); }
.logistics-console .dashboard-refresh { min-height: 42px; border: 1px solid #326d9b; border-radius: 7px; color: #fff; background: #286a9e; box-shadow: none; }
.logistics-console .dashboard-refresh:hover { background: #327eb8; }
.logistics-console .dashboard-status { border: 1px solid var(--log-line); border-radius: 7px; background: #0b1826; }
.logistics-console .dashboard-status-error { border-color: #573039; color: #ed9ba5; background: #241419; }
.logistics-console .loading-dot { background: var(--log-blue); }

.logistics-console .logistics-tabs { border: 1px solid var(--log-line); border-radius: 8px; background: #0a1826; box-shadow: none; }
.logistics-console .logistics-tabs button { border-radius: 6px; color: #849bae; background: transparent; }
.logistics-console .logistics-tabs button:hover { color: var(--log-text); background: #102337; }
.logistics-console .logistics-tabs button.is-active { color: #e8f5ff; background: #235f8c; }
.logistics-console .logistics-source-note { border: 1px solid #1e3a50; border-left: 3px solid var(--log-blue); border-radius: 7px; color: #8097aa; background: #0b1b2a; }
.logistics-console .logistics-source-note strong { color: #b9d9ef; }

.logistics-console .dashboard-panel,
.logistics-console .logistics-panel { border: 1px solid var(--log-line); border-radius: 9px; color: var(--log-text); background: var(--log-panel); box-shadow: none; }
.logistics-console .logistics-panel h2,
.logistics-console .logistics-section-heading h2,
.logistics-console .logistics-lines-heading h3 { color: var(--log-text); }
.logistics-console .logistics-panel p,
.logistics-console .logistics-section-heading p { color: var(--log-muted); }
.logistics-console .logistics-kpis article { border: 1px solid var(--log-line); border-radius: 8px; background: var(--log-panel); box-shadow: none; }
.logistics-console .logistics-kpis article::after { background: var(--log-blue); }
.logistics-console .logistics-kpis article.is-warning::after { background: var(--log-amber); }
.logistics-console .logistics-kpis article.is-danger::after { background: var(--log-red); }
.logistics-console .logistics-kpis strong { color: var(--log-text); }

.logistics-console .logistics-text-button { color: var(--log-blue-bright); }
.logistics-console .logistics-primary-button { border: 1px solid #326d9b; border-radius: 7px; color: #fff; background: #286a9e; box-shadow: none; }
.logistics-console .logistics-primary-button:hover { background: #327eb8; }
.logistics-console .logistics-secondary-button,
.logistics-console .secondary-button,
.logistics-console .logistics-row-button { border: 1px solid var(--log-line); border-radius: 7px; color: #b5c6d3; background: #0b1928; box-shadow: none; }
.logistics-console .logistics-secondary-button:hover,
.logistics-console .secondary-button:hover,
.logistics-console .logistics-row-button:hover { border-color: var(--log-line-strong); color: #fff; background: #102337; }
.logistics-console .logistics-reference-preview { border: 1px solid #24465f; border-radius: 6px; color: #a7d2ed; background: #10283c; }
.logistics-console .logistics-compact-item { border: 1px solid var(--log-line); border-radius: 7px; color: #c5d4df; background: #0a1927; }
.logistics-console .logistics-compact-item:hover { border-color: var(--log-line-strong); background: #102235; }
.logistics-console .logistics-compact-item small { color: var(--log-muted); }

.logistics-console .logistics-badge { border: 1px solid #273c4e; border-radius: 5px; color: #91a6b6; background: #162535; }
.logistics-console .logistics-badge[data-tone="success"] { border-color: #265347; color: #81cbb8; background: #122b25; }
.logistics-console .logistics-badge[data-tone="warning"] { border-color: #544225; color: #dfbb78; background: var(--log-amber-soft); }
.logistics-console .logistics-badge[data-tone="danger"] { border-color: #59303a; color: #e78e99; background: var(--log-red-soft); }
.logistics-console .logistics-row-button.is-stock-ready { border-color: #2d745f; color: #dff8f1; background: #286953; }
.logistics-console .logistics-row-button.is-danger { border-color: #59303a; color: #e78e99; background: #20141a; }
.logistics-console .logistics-results { color: var(--log-muted); }
.logistics-console .empty-state { color: var(--log-muted); }

.logistics-console input,
.logistics-console select,
.logistics-console textarea { border: 1px solid var(--log-line); border-radius: 6px; color: var(--log-text); background: #081522; box-shadow: none; }
.logistics-console input::placeholder,
.logistics-console textarea::placeholder { color: #526a7e; }
.logistics-console input:focus,
.logistics-console select:focus,
.logistics-console textarea:focus { border-color: var(--log-blue); outline: 0; box-shadow: 0 0 0 3px rgba(52,127,186,.13); }
.logistics-console option { background: #0a1826; }
.logistics-console .logistics-filters label > span,
.logistics-console .logistics-form-grid label > span,
.logistics-console .logistics-line label > span { color: var(--log-muted); }

.logistics-console .logistics-order-legend span { border: 1px solid var(--log-line); border-radius: 5px; color: #879dae; background: #0b1928; }
.logistics-console .logistics-sort-button.is-active { color: var(--log-blue-bright); }
.logistics-console .logistics-sort-button.is-active span { color: var(--log-blue); }
.logistics-console .table-scroll { border: 1px solid #c7d3dd; background: #f8fafc; }
.logistics-console .dashboard-table { color: #203443; background: #fff; }
.logistics-console .dashboard-table th { border-color: #cbd6df; color: #445d70; background: #eaf0f5; }
.logistics-console .dashboard-table td { border-color: #dce4ea; }
.logistics-console .dashboard-table tbody tr:hover { background: #eef5fa; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="critical"] td { color: #57212b; background: #fdebed; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="late"] td { color: #59401e; background: #fff5df; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="current"] td { color: #203f36; background: #eaf7f2; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="sleeping"] td { color: #63717d; background: #f0f2f4; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="neutral"] td { color: #334c60; background: #edf3f7; }
.logistics-console .logistics-orders-table th:last-child,
.logistics-console .logistics-orders-table td:last-child { background: #f8fafc; box-shadow: -7px 0 12px rgba(24,47,67,.09); }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="critical"] td:last-child { background: #fdebed; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="late"] td:last-child { background: #fff5df; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="current"] td:last-child { background: #eaf7f2; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="sleeping"] td:last-child { background: #f0f2f4; }
.logistics-console .logistics-orders-table tbody tr[data-order-tone="neutral"] td:last-child { background: #edf3f7; }
.logistics-console .logistics-order-article strong { color: #1b3040; }
.logistics-console .logistics-order-article small { color: #62798a; }

.logistics-console .logistics-table input,
.logistics-console .logistics-table select,
.logistics-console .bulk-orders-table input,
.logistics-console .bulk-orders-table select {
  border-color: #b9c8d4;
  color: #183043;
  background: #fff;
}
.logistics-console .logistics-table option,
.logistics-console .bulk-orders-table option { color: #183043; background: #fff; }
.logistics-console .logistics-table .logistics-badge { border-color: #cbd5dd; color: #536675; background: #eef2f5; }
.logistics-console .logistics-table .logistics-badge[data-tone="success"] { border-color: #b7ddcf; color: #246f5c; background: #e8f5f0; }
.logistics-console .logistics-table .logistics-badge[data-tone="warning"] { border-color: #ead39e; color: #8d5e18; background: #fff3d8; }
.logistics-console .logistics-table .logistics-badge[data-tone="danger"] { border-color: #e6b8bf; color: #a13d4b; background: #fce9ec; }
.logistics-console .logistics-table .logistics-express-72h {
  border-color: #991b1b;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,.14), 0 4px 10px rgba(127,29,29,.2);
  font-weight: 950;
  letter-spacing: .045em;
}
.logistics-console .logistics-promise-cell { min-width: 148px; }
.logistics-console .logistics-inline-date { width: 142px; min-height: 35px; padding: 5px 7px; }
.logistics-console .logistics-inline-feedback { display: block; margin-top: 4px; color: #718492; font-size: 8px; white-space: nowrap; }
.logistics-console .logistics-inline-feedback[data-tone="success"] { color: #23745f; }
.logistics-console .logistics-inline-feedback[data-tone="warning"] { color: #9a6518; }
.logistics-console .logistics-inline-feedback[data-tone="error"] { color: #b23e4d; white-space: normal; }
.logistics-console .logistics-inline-feedback[data-tone="loading"] { color: #2f75a9; }
.logistics-console .logistics-section-actions { display: flex; align-items: center; gap: 8px; }

.logistics-console .logistics-orders-export {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, .35fr) minmax(160px, .35fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #c9b7d7;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf8fd, #f3eef7);
}
.logistics-console .logistics-orders-export--promise {
  grid-template-columns: minmax(260px, 1fr) minmax(170px, .4fr) auto;
}
.logistics-console .logistics-orders-export-copy { display: grid; align-self: center; gap: 4px; }
.logistics-console .logistics-orders-export-copy strong { color: #3f2d4d; font-size: 15px; }
.logistics-console .logistics-orders-export-copy small { color: #716978; line-height: 1.4; }
.logistics-console .logistics-orders-export label { display: grid; gap: 5px; }
.logistics-console .logistics-orders-export label > span {
  color: #655d6b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.logistics-console .logistics-orders-export input,
.logistics-console .logistics-orders-export button { min-height: 42px; }
.logistics-console .logistics-orders-export-actions { display: flex; gap: 8px; }
.logistics-console .logistics-orders-export-actions button { white-space: nowrap; }
.logistics-console .logistics-orders-export > p {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  color: #716978;
  font-size: 12px;
}
.logistics-console .logistics-orders-export > p:empty { display: none; }
.logistics-console .logistics-orders-export > p[data-tone="loading"] { color: #2f75a9; }
.logistics-console .logistics-orders-export > p[data-tone="success"] { color: #23745f; }
.logistics-console .logistics-orders-export > p[data-tone="error"] { color: #b23e4d; }

@media (max-width: 1080px) {
  .logistics-console .logistics-orders-export { grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, .55fr)); }
  .logistics-console .logistics-orders-export--promise { grid-template-columns: minmax(240px, 1fr) minmax(170px, .6fr); }
  .logistics-console .logistics-orders-export-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 700px) {
  .logistics-console .logistics-orders-export { grid-template-columns: 1fr; }
  .logistics-console .logistics-orders-export--promise { grid-template-columns: 1fr; }
  .logistics-console .logistics-orders-export-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
}

.logistics-console .bulk-orders-dialog { width: min(1220px, calc(100% - 28px)); }
.logistics-console .bulk-orders-table-wrap { overflow: auto; border: 1px solid #c8d4de; border-radius: 8px; background: #fff; }
.logistics-console .bulk-orders-table { width: max-content; min-width: 100%; border-collapse: collapse; color: #203443; }
.logistics-console .bulk-orders-table th { padding: 9px; border-bottom: 1px solid #cbd6df; color: #506779; background: #eaf0f5; font-size: 9px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.logistics-console .bulk-orders-table td { padding: 6px; border-bottom: 1px solid #e0e7ec; background: #f9fbfc; }
.logistics-console .bulk-orders-table input,
.logistics-console .bulk-orders-table select { min-width: 135px; min-height: 37px; padding: 5px 7px; }
.logistics-console .bulk-orders-table [data-bulk-field="comments"] { min-width: 190px; }
.logistics-console .bulk-orders-table [data-bulk-field="promised_on"] { min-width: 145px; }
.logistics-console .bulk-orders-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; font-size: 10px; }

.logistics-console .logistics-lines-heading,
.logistics-console .logistics-submit-row { border-color: var(--log-line); }
.logistics-console .logistics-line { border: 1px solid var(--log-line); border-radius: 7px; background: #0a1927; }
.logistics-console .logistics-line-availability { color: var(--log-muted); background: #132536; }
.logistics-console .logistics-line-availability[data-tone="success"] { color: #81cbb8; background: #122b25; }
.logistics-console .logistics-line-availability[data-tone="danger"] { color: #e78e99; background: #2b171e; }
.logistics-console .logistics-remove-line { border-color: #59303a; border-radius: 7px; color: #e78e99; background: #20141a; }
.logistics-console .logistics-submit-row > span { color: var(--log-blue-bright); }
.logistics-console .logistics-stock-card { border: 1px solid var(--log-line); border-radius: 7px; background: #0a1927; }
.logistics-console .logistics-stock-card::before { background: var(--log-blue); }
.logistics-console .logistics-stock-card > div:first-child strong,
.logistics-console .logistics-stock-quantity strong { color: var(--log-text); }

.logistics-console .logistics-dialog,
.logistics-console .critical-dialog { border: 0; background: transparent; }
.logistics-console .logistics-dialog::backdrop,
.logistics-console .critical-dialog::backdrop { background: rgba(2,7,13,.82); backdrop-filter: none; }
.logistics-console .logistics-dialog-card,
.logistics-console .critical-dialog-card { border: 1px solid var(--log-line-strong); border-radius: 10px; color: var(--log-text); background: #0d1b2a; box-shadow: 0 28px 80px rgba(0,0,0,.46); }
.logistics-console .logistics-close-button { border: 1px solid var(--log-line); border-radius: 6px; color: var(--log-muted); background: #122438; }
.logistics-console .critical-dialog-icon { color: #ef9ca6; background: #2b171e; }
.logistics-console .critical-kicker { color: #ef9ca6; }
.logistics-console .critical-summary,
.logistics-console .critical-field small,
.logistics-console .critical-consent { color: var(--log-muted); }
.logistics-console .delete-button { border: 1px solid #59303a; border-radius: 7px; color: #f2b1ba; background: #8e3442; box-shadow: none; }

@media (max-width: 980px) {
  .logistics-console .dashboard-sidebar { margin: 0; border-radius: 0; }
}

@media (max-width: 720px) {
  .logistics-console .logistics-section-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .logistics-console .logistics-section-actions button { width: 100%; }
  .logistics-console .bulk-orders-footer { align-items: stretch; flex-direction: column; }
}

/* Circuit client : Attribution → Transit → Reçu client. */
.logistics-console .logistics-hub-card.logistics-hub-received {
  grid-column: 1 / -1;
  min-height: 204px;
  border-color: #2dd4bf !important;
  color: #134e4a !important;
  background: linear-gradient(135deg, #f0fdfa 0%, #99f6e4 100%) !important;
  box-shadow: 0 16px 36px rgba(13, 148, 136, .14) !important;
}
.logistics-console .logistics-hub-received .logistics-hub-icon {
  border-color: rgba(19, 78, 74, .22);
  background: linear-gradient(145deg, #2dd4bf 0%, #0f766e 100%) !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
}
.logistics-console .logistics-hub-received .logistics-hub-copy small,
.logistics-console .logistics-hub-received .logistics-hub-copy strong,
.logistics-console .logistics-hub-received .logistics-hub-copy > span,
.logistics-console .logistics-hub-received .logistics-hub-arrow { color: #134e4a !important; }
.logistics-console .logistics-hub-received .logistics-hub-arrow { border-color: rgba(19, 78, 74, .3); }
.logistics-console .logistics-hub-received .logistics-hub-arrow b { color: #fff; background: #0f766e; }
.logistics-console .received-clients-panel { display: grid; gap: 18px; }
.logistics-console .received-clients-heading { align-items: end; }
.logistics-console .received-clients-heading .logistics-inline-search { width: min(420px, 100%); }
.logistics-console .received-clients-heading input { min-height: 46px; }
.logistics-console .received-clients-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.logistics-console .received-clients-summary article {
  display: grid;
  gap: 6px;
  padding: 17px 19px;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  color: #134e4a;
  background: #f0fdfa;
}
.logistics-console .received-clients-summary span { color: #0f766e; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.logistics-console .received-clients-summary strong { font-size: 28px; line-height: 1.1; }
.logistics-console .received-clients-result { margin: 0; font-size: 13px; font-weight: 800; }
.logistics-console .received-client-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.logistics-console .received-client-card {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.logistics-console .received-client-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border-bottom: 1px solid #e2e8f0; }
.logistics-console .received-client-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.logistics-console .received-client-avatar { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: #fff; background: #0f766e; font-size: 18px; font-weight: 950; }
.logistics-console .received-client-card h3 { margin: 0; color: #0f172a; font-size: 18px; }
.logistics-console .received-client-card header p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.logistics-console .received-client-total { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #115e59; background: #ccfbf1; font-size: 12px; }
.logistics-console .received-client-contact { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 18px 0; }
.logistics-console .received-client-contact span { padding: 6px 9px; border-radius: 8px; color: #334155; background: #f1f5f9; font-size: 12px; font-weight: 700; }
.logistics-console .received-client-contact span[data-missing="true"] { color: #9a3412; background: #ffedd5; }
.logistics-console .received-client-items { display: grid; gap: 0; padding: 12px 18px; }
.logistics-console .received-client-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid #e2e8f0; }
.logistics-console .received-client-item:last-child { border-bottom: 0; }
.logistics-console .received-client-item strong,
.logistics-console .received-client-item small { display: block; }
.logistics-console .received-client-item strong { color: #0f172a; font-size: 14px; }
.logistics-console .received-client-item small { margin-top: 3px; color: #64748b; font-size: 11px; }
.logistics-console .received-client-item time { color: #0f766e; font-size: 12px; font-weight: 900; }
.logistics-console .received-client-item a { grid-column: 1 / -1; width: max-content; color: #2563eb; font-size: 11px; font-weight: 850; text-decoration: none; }
.logistics-console .received-client-card > footer { display: flex; justify-content: flex-end; padding: 0 18px 18px; }
.logistics-console .received-client-link { padding: 10px 13px; border-radius: 9px; color: #fff; background: #0f766e; font-size: 12px; font-weight: 900; text-decoration: none; }
.logistics-console .received-client-link:hover { background: #115e59; }
.logistics-console .received-clients-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed #64748b; border-radius: 14px; color: var(--log-muted); text-align: center; }
.logistics-console .allocation-export-heading { align-items: center; }
.logistics-console .allocation-export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.logistics-console .allocation-export-actions button { min-height: 42px; }
.logistics-console .allocation-email-preview {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #b8c7d3;
  border-radius: 10px;
  color: #183043;
  background: #f8fafc;
}
.logistics-console .allocation-email-preview summary { padding: 12px 14px; cursor: pointer; color: #1e3a5f; font-size: 12px; font-weight: 900; }
.logistics-console .allocation-email-preview[open] summary { border-bottom: 1px solid #d7e0e7; }
.logistics-console .allocation-email-preview label { display: block; padding: 12px 14px 7px; color: #475569; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.logistics-console .allocation-email-preview textarea {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 13px;
  border-color: #cbd5e1;
  color: #0f172a;
  background: #fff;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}
.logistics-console .allocation-export-message { min-height: 20px; margin: 0 0 10px !important; color: #8da2b5 !important; font-size: 12px !important; font-weight: 800; }
.logistics-console .allocation-export-message[data-tone="success"] { color: #55b79f !important; }
.logistics-console .allocation-export-message[data-tone="warning"] { color: #d5a354 !important; }
.logistics-console .allocation-export-message[data-tone="error"] { color: #e78e99 !important; }
@media (max-width: 900px) {
  .logistics-console .received-client-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .logistics-console .received-clients-heading { align-items: stretch; flex-direction: column; }
  .logistics-console .received-clients-summary { grid-template-columns: 1fr; }
  .logistics-console .received-client-card > header { align-items: flex-start; }
  .logistics-console .allocation-export-heading { align-items: stretch; flex-direction: column; }
  .logistics-console .allocation-export-actions { justify-content: stretch; }
  .logistics-console .allocation-export-actions button { flex: 1; }
}

/* Besoins par client — lecture nominative des commandes ouvertes par promesse. */
.logistics-console .logistics-hub-client-needs {
  --hub-card-accent: #0e7490;
  grid-column: 1 / -1;
  min-height: 220px;
  border-color: #a5d8e4;
  background: linear-gradient(135deg, #ecfeff 0%, #f5fbff 55%, #eef2ff 100%);
}
.logistics-console .logistics-hub-client-needs .logistics-hub-icon {
  border-color: #a5d8e4;
  color: #0e7490;
  background: #cffafe;
}
.logistics-console .logistics-hub-client-needs .logistics-hub-arrow {
  color: #155e75;
  background: rgba(207, 250, 254, .72);
}
.logistics-console .client-needs-panel { display: grid; gap: 18px; }
.logistics-console .client-needs-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(190px, .8fr) minmax(280px, 1.5fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b8c3d3;
  border-radius: 10px;
  background: #f7f9fc;
}
.logistics-console .client-needs-toolbar label { display: grid; gap: 7px; }
.logistics-console .client-needs-toolbar label > span {
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
}
.logistics-console .client-needs-toolbar input,
.logistics-console .client-needs-toolbar select,
.logistics-console .client-needs-toolbar button { min-height: 46px; }
.logistics-console .client-needs-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.logistics-console .client-needs-summary article {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid #b8c3d3;
  border-radius: 10px;
  background: #fff;
}
.logistics-console .client-needs-summary article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #0e7490;
  content: "";
}
.logistics-console .client-needs-summary span { color: #475569; font-size: 13px; font-weight: 800; }
.logistics-console .client-needs-summary strong { color: #0f172a; font-size: 34px; line-height: 1; }
.logistics-console .client-needs-result {
  margin: 0;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 800;
}
.logistics-console .client-needs-groups { display: grid; gap: 16px; }
.logistics-console .client-needs-category {
  overflow: hidden;
  border: 1px solid #b8c3d3;
  border-radius: 11px;
  background: #fff;
}
.logistics-console .client-needs-category > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #b8c3d3;
  background: linear-gradient(90deg, #eef2ff, #f8fafc);
}
.logistics-console .client-needs-category h3 { margin: 0; color: #0f172a; font-size: 20px; }
.logistics-console .client-needs-category header p { margin: 4px 0 0; color: #475569; font-size: 13px; font-weight: 750; }
.logistics-console .client-needs-category header > strong {
  display: grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0e7490;
  font-size: 20px;
}
.logistics-console .client-needs-table-wrap { border: 0 !important; border-radius: 0; }
.logistics-console .client-needs-table { min-width: 880px; }
.logistics-console .client-needs-table th:last-child,
.logistics-console .client-needs-table td:last-child { width: 92px; text-align: center; }
.logistics-console .client-needs-table td:first-child strong { display: block; color: #0f172a; font-size: 14px; }
.logistics-console .client-needs-table td:first-child small { display: block; margin-top: 3px; color: #64748b; font-size: 12px; }
.logistics-console .client-needs-clients { display: flex; flex-wrap: wrap; gap: 7px; }
.logistics-console .client-needs-client {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 9px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #172554;
  background: #eff6ff;
}
.logistics-console .client-needs-client strong { font-size: 13px; }
.logistics-console .client-needs-client small { grid-column: 1 / -1; color: #475569; font-size: 11px; font-weight: 750; }
.logistics-console .client-needs-client b {
  grid-column: 2;
  grid-row: 1;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: #0e7490;
  font-size: 10px;
}
.logistics-console .client-needs-quantity { color: #0e7490; font-size: 18px !important; font-weight: 950; }
.logistics-console .client-needs-empty {
  display: grid;
  gap: 6px;
  padding: 34px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
  text-align: center;
}
.logistics-console .client-needs-empty strong { color: #0f172a; font-size: 18px; }

@media (max-width: 980px) {
  .logistics-console .client-needs-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logistics-console .client-needs-search { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .logistics-console .client-needs-toolbar,
  .logistics-console .client-needs-summary { grid-template-columns: 1fr; }
  .logistics-console .client-needs-search { grid-column: auto; }
}

/* Stable light interface: warm lilac background, readable data and fixed actions. */
.logistics-console {
  --log-bg: #f5f2f7;
  --log-bg-alt: #faf8fb;
  --log-panel: #fff;
  --log-panel-alt: #faf8fb;
  --log-line: #ded7e4;
  --log-line-strong: #c7b7d5;
  --log-text: #2f2935;
  --log-muted: #706877;
  --log-blue: #7855a3;
  --log-blue-bright: #9673bc;
  --log-blue-soft: #eee7f5;
  --log-ink: #2f2935;
  font-size: 16px;
  color: var(--log-text);
  background: var(--log-bg);
}
.logistics-console .dashboard-shell,
.logistics-console .dashboard-main {
  color: var(--log-text);
  background-color: var(--log-bg);
  background-image: linear-gradient(rgba(120,85,163,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(120,85,163,.035) 1px,transparent 1px);
  background-size: 42px 42px;
}
.logistics-console .dashboard-sidebar { border-color: #40364b; background: #2a2430; }
.logistics-console .dashboard-logo { border-bottom-color: #463b51; color: #fff; }
.logistics-console .dashboard-logo .logo-symbol,
.logistics-console .account-avatar { border-color: #725b87; color: #eadcf6; background: #3b3047; }
.logistics-console .dashboard-logo strong,
.logistics-console .account-copy strong { color: #fff; }
.logistics-console .dashboard-logo small,
.logistics-console .account-copy small { color: #c1b5c9; }
.logistics-console .side-navigation a { color: #d2c7d9; font-size: 14px; }
.logistics-console .side-navigation a:hover { border-color: #574963; color: #fff; background: #352d3d; }
.logistics-console .side-navigation a.is-active { border-color: #765f8b; color: #fff; background: #443550; box-shadow: inset 4px 0 0 #b692d0; }
.logistics-console .side-navigation a span { color: #c7a6de; }
.logistics-console .sidebar-account { border-top-color: #463b51; }

.logistics-console .logistics-topbar h1,
.logistics-console .logistics-panel h2,
.logistics-console .logistics-section-heading h2,
.logistics-console .logistics-lines-heading h3 { color: #2f2935; }
.logistics-console .dashboard-kicker,
.logistics-console .panel-overline { color: #76539f; font-size: 12px; }
.logistics-console .dashboard-intro,
.logistics-console .logistics-panel p,
.logistics-console .logistics-section-heading p { color: var(--log-muted); font-size: 15px; line-height: 1.55; }
.logistics-console .dashboard-status { border-color: var(--log-line); color: var(--log-muted); background: #fff; font-size: 13px; }

.logistics-console .logistics-tabs,
.logistics-console .dashboard-panel,
.logistics-console .logistics-panel,
.logistics-console .logistics-kpis article { border-color: var(--log-line); color: var(--log-text); background: #fff; box-shadow: 0 10px 28px rgba(54,42,63,.055); }
.logistics-console .logistics-tabs button { min-height: 44px; color: #665d6c; font-size: 14px; }
.logistics-console .logistics-tabs button:hover { color: #4f386a; background: #f4eff8; }
.logistics-console .logistics-tabs button.is-active { color: #4d336c; background: #e9ddf3; }
.logistics-console .logistics-source-note { border-color: #d9cce3; border-left-color: #8863ad; color: #6d6274; background: #fbf8fd; font-size: 14px; }
.logistics-console .logistics-source-note strong { color: #503969; }
.logistics-console .logistics-kpis span,
.logistics-console .logistics-kpis small { color: var(--log-muted); font-size: 13px; }
.logistics-console .logistics-kpis strong { color: #302936; }

.logistics-console .logistics-primary-button,
.logistics-console .dashboard-refresh {
  min-height: 44px;
  border: 1px solid #cbb6dd;
  color: #4d3369;
  background: #e9ddf3;
  font-size: 14px;
  font-weight: 800;
}
.logistics-console .logistics-primary-button:hover,
.logistics-console .dashboard-refresh:hover { border-color: #b89bcf; color: #3d2757; background: #dfcdec; }
.logistics-console .logistics-secondary-button,
.logistics-console .secondary-button,
.logistics-console .logistics-row-button {
  min-height: 40px;
  border-color: #d3c9dc;
  color: #554b5c;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}
.logistics-console .logistics-secondary-button:hover,
.logistics-console .secondary-button:hover,
.logistics-console .logistics-row-button:hover { border-color: #bdaacb; color: #4a3261; background: #f3edf7; }
.logistics-console .logistics-row-button.is-stock-ready { border-color: #b7d9cd; color: #2d6757; background: #eaf5f1; }
.logistics-console .logistics-row-button.is-danger,
.logistics-console .delete-button { border-color: #e2bec4; color: #8c3947; background: #fbecef; }
.logistics-console .logistics-reference-preview,
.logistics-console .logistics-order-legend span { border-color: #d7cce0; color: #655a6d; background: #f2ecf6; font-size: 12px; }

.logistics-console input,
.logistics-console select,
.logistics-console textarea,
.logistics-console .logistics-table input,
.logistics-console .logistics-table select,
.logistics-console .bulk-orders-table input,
.logistics-console .bulk-orders-table select {
  min-height: 42px;
  border-color: #cec5d5;
  color: #302936;
  background: #fff;
  font-size: 14px;
}
.logistics-console input::placeholder,
.logistics-console textarea::placeholder { color: #918898; }
.logistics-console input:focus,
.logistics-console select:focus,
.logistics-console textarea:focus { border-color: #8863ad; box-shadow: 0 0 0 3px rgba(120,85,163,.14); }
.logistics-console option,
.logistics-console .logistics-table option,
.logistics-console .bulk-orders-table option { color: #302936; background: #fff; }
.logistics-console .logistics-filters label > span,
.logistics-console .logistics-form-grid label > span,
.logistics-console .logistics-line label > span { color: #655d6b; font-size: 13px; }

.logistics-console .table-scroll,
.logistics-console .bulk-orders-table-wrap { border-color: #d6cfdb; background: #fff; }
.logistics-console .dashboard-table,
.logistics-console .bulk-orders-table { color: #2c3033; background: #fff; }
.logistics-console .dashboard-table th,
.logistics-console .bulk-orders-table th { padding: 13px 12px; border-color: #d8d1dc; color: #564c5d; background: #f0ebf3; font-size: 12px; }
.logistics-console .dashboard-table td,
.logistics-console .bulk-orders-table td { padding: 12px; border-color: #e5e0e8; font-size: 14px; }
.logistics-console .logistics-order-article strong { color: #2f2935; font-size: 14px; }
.logistics-console .logistics-order-article small { color: #716978; font-size: 12px; }
.logistics-console .logistics-color-cell { color: #563a70; font-weight: 850; white-space: nowrap; }
.logistics-console .logistics-delivery-cell { min-width: 150px; color: #5f5665; font-size: 13px; }
.logistics-console .logistics-table .logistics-badge,
.logistics-console .logistics-badge { min-height: 28px; font-size: 12px; }
.logistics-console .logistics-promise-cell { min-width: 170px; }
.logistics-console .logistics-inline-date { width: 154px; min-height: 42px; }
.logistics-console .logistics-inline-feedback { display: flex; min-height: 20px; align-items: center; margin-top: 2px; font-size: 14px; }
.logistics-console .logistics-orders-table th:last-child,
.logistics-console .logistics-orders-table td:last-child { text-align: right; }
.logistics-console .logistics-order-actions,
.logistics-console .logistics-section-actions,
.logistics-console .critical-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-left: auto; }
.logistics-console .bulk-orders-footer { justify-content: flex-end; color: var(--log-muted); font-size: 13px; }

.logistics-console .logistics-line,
.logistics-console .logistics-stock-card,
.logistics-console .logistics-compact-item { border-color: var(--log-line); color: var(--log-text); background: #fff; }
.logistics-console .logistics-compact-item:hover { border-color: #c5b4d2; background: #f7f2fa; }
.logistics-console .logistics-line-availability { color: #655d6b; background: #f2edf5; }
.logistics-console .logistics-line-availability[data-tone="success"] { color: #2d6757; background: #eaf5f1; }
.logistics-console .logistics-line-availability[data-tone="danger"],
.logistics-console .logistics-remove-line { border-color: #e2bec4; color: #8c3947; background: #fbecef; }
.logistics-console .logistics-stock-card > div:first-child strong,
.logistics-console .logistics-stock-quantity strong { color: #2f2935; }
.logistics-console .logistics-stock-card > div:first-child span,
.logistics-console .logistics-stock-quantity span { color: var(--log-muted); font-size: 13px; }
.logistics-console .logistics-stock-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  align-items: start;
}
.logistics-console .logistics-stock-group-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 17px;
}
.logistics-console .logistics-stock-category-label {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #4f46e5 !important;
  background: #eef2ff;
  font-size: 10px !important;
  font-weight: 850;
}
.logistics-console .logistics-stock-variants {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid var(--log-line);
}
.logistics-console .logistics-stock-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
}
.logistics-console .logistics-stock-variant strong {
  color: var(--log-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.logistics-console .logistics-stock-variant .logistics-color-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logistics-console .logistics-stock-variant .logistics-row-button {
  grid-column: auto;
  justify-self: end;
}
.logistics-console .logistics-stock-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--log-line);
  border-radius: 14px;
  color: var(--log-muted);
  text-align: center;
  background: #fff;
}

.logistics-console .logistics-stock-actions { flex-wrap: wrap; }
.logistics-console .stock-reference-dialog {
  width: min(760px, calc(100% - 28px));
  max-width: none;
  padding: 0;
}
.logistics-console .stock-reference-card { width: 100%; max-width: none; }
.logistics-console .stock-reference-form-grid > .is-wide { grid-column: 1 / -1; }
.logistics-console .stock-reference-preview {
  padding: 12px 14px;
  border: 1px solid var(--log-line);
  border-radius: 8px;
  color: var(--log-muted);
  background: #f5f1f7;
  font-size: 13px;
  line-height: 1.45;
}
.logistics-console .stock-reference-preview strong { color: var(--log-text); }
.logistics-console .stock-reference-force {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d8c7e3;
  border-radius: 8px;
  color: #4f3d5c;
  background: #f5eef9;
}
.logistics-console .stock-reference-force input { width: 18px; height: 18px; margin: 0; }
.logistics-console .stock-reference-force span { margin: 0; color: inherit !important; font-size: 13px !important; }
.logistics-console .stock-reference-force[hidden],
.logistics-console .stock-reference-new-color[hidden] { display: none !important; }
.logistics-console .stock-reference-new-color {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8c7e3;
  border-radius: 8px;
  background: #fbf8fd;
}
.logistics-console .stock-reference-new-color label { display: grid; gap: 7px; }
.logistics-console .stock-reference-new-color label > span { color: var(--log-muted); font-size: 12px; font-weight: 850; }

.logistics-console .logistics-dialog::backdrop,
.logistics-console .critical-dialog::backdrop { background: rgba(34,27,40,.58); }
.logistics-console .logistics-dialog-card,
.logistics-console .critical-dialog-card { border-color: #d1c3dc; color: #302936; background: #fbf9fc; box-shadow: 0 28px 80px rgba(48,38,56,.22); }
.logistics-console .logistics-close-button { border-color: #d4cbdc; color: #655c6c; background: #fff; }
.logistics-console .critical-dialog-icon { color: #943d4b; background: #fbecef; }
.logistics-console .critical-summary,
.logistics-console .critical-field small,
.logistics-console .critical-consent { color: #6c6372; font-size: 14px; }

@media (max-width: 720px) {
  .logistics-console .logistics-section-actions { margin-left: 0; }
  .logistics-console .logistics-section-actions button { width: 100%; }
  .logistics-console .logistics-stock-grid { grid-template-columns: 1fr; }
  .logistics-console .logistics-stock-variant { grid-template-columns: minmax(0, 1fr) auto; }
  .logistics-console .logistics-stock-variant .logistics-row-button { grid-column: 1 / -1; justify-self: stretch; }
  .logistics-console .logistics-stock-actions { width: 100%; }
  .logistics-console .logistics-stock-actions > * { width: 100%; }
  .logistics-console .stock-reference-new-color { grid-template-columns: 1fr; }
}

/* Fenêtre de traçabilité complète des unités. */
.logistics-console .logistics-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.logistics-console .unit-movements-trigger { min-height: 44px; }
.logistics-console .unit-movements-dialog {
  width: min(1380px, calc(100% - 32px));
  max-width: none;
  padding: 0;
}
.logistics-console .unit-movements-card {
  width: 100%;
  max-width: none;
  max-height: min(92vh, 940px);
  overflow-y: auto;
  padding: 26px;
}
.logistics-console .unit-movements-heading { align-items: flex-start; }
.logistics-console .unit-movements-heading h2 { margin: 2px 0 6px; font-size: clamp(26px, 3vw, 38px); }
.logistics-console .unit-movement-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 16px;
}
.logistics-console .unit-movement-kpis article {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 112px;
  padding: 17px 19px;
  overflow: hidden;
  border: 1px solid #d9d1df;
  border-radius: 9px;
  background: #fff;
}
.logistics-console .unit-movement-kpis article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #7855a3;
  content: "";
}
.logistics-console .unit-movement-kpis article[data-tone="entry"]::before { background: #3f8b73; }
.logistics-console .unit-movement-kpis article[data-tone="exit"]::before { background: #b65361; }
.logistics-console .unit-movement-kpis span,
.logistics-console .unit-movement-kpis small { color: #716978; font-size: 13px; }
.logistics-console .unit-movement-kpis strong { color: #302936; font-size: 30px; line-height: 1; }
.logistics-console .unit-movement-kpis article[data-tone="entry"] strong { color: #2f745f; }
.logistics-console .unit-movement-kpis article[data-tone="exit"] strong { color: #a44251; }
.logistics-console .unit-movements-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(210px, 300px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.logistics-console .unit-movements-toolbar label { display: grid; gap: 6px; }
.logistics-console .unit-movements-toolbar label > span { color: #655d6b; font-size: 13px; font-weight: 800; }
.logistics-console .unit-movements-toolbar input,
.logistics-console .unit-movements-toolbar select { width: 100%; min-height: 46px; font-size: 15px; }
.logistics-console .unit-movements-toolbar button { min-height: 46px; }
.logistics-console .unit-movements-status {
  margin: 12px 0;
  padding: 18px;
  border: 1px solid #d9d1df;
  border-radius: 8px;
  color: #655d6b;
  background: #fff;
  font-size: 15px;
}
.logistics-console .unit-movements-status[data-tone="error"] { border-color: #e2bec4; color: #8c3947; background: #fbecef; }
.logistics-console .unit-movements-table-wrap {
  overflow-x: clip;
  border: 1px solid #d6cfdb;
  border-radius: 9px;
  background: #fff;
}
.logistics-console .unit-movements-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.logistics-console .unit-movements-table th,
.logistics-console .unit-movements-table td {
  padding: 14px 11px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.logistics-console .unit-movements-table th { font-size: 12px; }
.logistics-console .unit-movements-table td { font-size: 15px; line-height: 1.35; }
.logistics-console .unit-movements-table th:nth-child(1) { width: 8%; }
.logistics-console .unit-movements-table th:nth-child(2) { width: 10%; }
.logistics-console .unit-movements-table th:nth-child(3) { width: 10%; }
.logistics-console .unit-movements-table th:nth-child(4) { width: 14%; }
.logistics-console .unit-movements-table th:nth-child(5) { width: 13%; }
.logistics-console .unit-movements-table th:nth-child(6) { width: 8%; }
.logistics-console .unit-movements-table th:nth-child(7) { width: 11%; }
.logistics-console .unit-movements-table th:nth-child(8) { width: 26%; }
.logistics-console .unit-movements-table tr[data-movement-tone="entry"] td:first-child { box-shadow: inset 4px 0 0 #4b9a80; }
.logistics-console .unit-movements-table tr[data-movement-tone="exit"] td:first-child { box-shadow: inset 4px 0 0 #bd5b68; }
.logistics-console .unit-movements-table .is-positive { color: #28715a; font-size: 16px; font-weight: 900; }
.logistics-console .unit-movements-table .is-negative { color: #a33e4d; font-size: 16px; font-weight: 900; }
.logistics-console .unit-movements-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
}
.logistics-console .unit-movements-footer p { margin: 0; color: #716978; font-size: 14px; }

@media (max-width: 900px) {
  .logistics-console .logistics-topbar-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .logistics-console .unit-movement-kpis { grid-template-columns: 1fr; }
  .logistics-console .unit-movements-toolbar { grid-template-columns: 1fr; }
  .logistics-console .unit-movements-card { padding: 18px; }
  .logistics-console .unit-movements-table thead { display: none; }
  .logistics-console .unit-movements-table,
  .logistics-console .unit-movements-table tbody,
  .logistics-console .unit-movements-table tr,
  .logistics-console .unit-movements-table td { display: block; width: 100%; }
  .logistics-console .unit-movements-table tbody { display: grid; gap: 12px; padding: 12px; }
  .logistics-console .unit-movements-table tr { overflow: hidden; border: 1px solid #ddd5e2; border-radius: 9px; background: #fff; }
  .logistics-console .unit-movements-table td {
    display: grid;
    grid-template-columns: minmax(90px, 34%) 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #ece7ef;
  }
  .logistics-console .unit-movements-table td::before { color: #746a7a; font-size: 11px; font-weight: 850; text-transform: uppercase; content: attr(data-label); }
  .logistics-console .unit-movements-table td:last-child { border-bottom: 0; }
  .logistics-console .unit-movements-table .empty-state { display: block; }
  .logistics-console .unit-movements-table .empty-state::before { content: none; }
}

@media (max-width: 560px) {
  .logistics-console .unit-movements-dialog { width: calc(100% - 16px); }
  .logistics-console .unit-movements-footer { align-items: stretch; flex-direction: column; }
  .logistics-console .unit-movements-footer button { width: 100%; }
}
.logistics-console .logistics-order-product-edit {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f0b4b4;
  border-radius: 14px;
  background: #fff7f7;
}
.logistics-console .logistics-order-product-edit[hidden] {
  display: none;
}
.logistics-console .logistics-order-product-edit-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.logistics-console .logistics-order-product-edit-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #fff;
  background: #b42318;
  font-weight: 900;
}
.logistics-console .logistics-order-product-edit-heading h3 {
  margin: 2px 0 4px;
  color: #611a15;
  font-size: 16px;
}
.logistics-console .logistics-order-product-edit-heading p:last-child {
  margin: 0;
  color: #7a332d;
  font-size: 12px;
  line-height: 1.5;
}
.logistics-console .logistics-order-product-edit[data-locked="true"] {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.logistics-console .logistics-order-product-edit[data-locked="true"]
  .logistics-order-product-edit-heading > span {
  background: #64748b;
}
