/* Brunx Operações (painel.brunxind.com) — peças próprias do painel no Brunx Design System.
   Carregado depois de tokens.css e bundle.css. Só tokens semânticos: funciona nos temas claro e escuro. */

[hidden] { display: none !important; }
code { font-family: var(--font-mono); }

/* ---------- Moldura ---------- */
.topbar__home { display: inline-flex; color: var(--public-ink); }
.topbar__home .brand-mark__logo { height: 12px; }
.topbar__home .brand-mark__name { font-size: 12px; }

.sidebar__footer { gap: var(--space-2); }
.sidebar__status { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px var(--space-2); }
.sidebar__status > span:last-child { display: flex; min-width: 0; flex-direction: column; line-height: 1.35; }
.sidebar__status strong { overflow: hidden; color: var(--frame-ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__status small { overflow: hidden; color: var(--frame-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.connection-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--frame-muted); }
.connection-dot.online { background: var(--ai-online); }
.connection-dot.error { background: var(--dot-danger); }
.sidebar__theme { display: grid; gap: 6px; padding: 2px var(--space-2) 0; }
.sidebar__theme-label { color: var(--frame-muted); font-size: 11px; font-weight: 500; }
.sidebar .theme-toggle { display: grid; grid-template-columns: repeat(3, 1fr); border-color: var(--frame-field-border); background: var(--frame-field); }
.sidebar .theme-toggle button { justify-content: center; padding: 5px 4px; color: var(--frame-ink); font-size: 11px; }
.sidebar .theme-toggle button:hover { background: var(--frame-hover); }
.sidebar .theme-toggle button[aria-pressed="true"] { background: var(--frame-ink); color: var(--frame); }

.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-6); color: var(--muted); font-size: 12px; }
.noscript { position: fixed; inset: auto 12px 12px; z-index: 1300; padding: var(--space-3); border-radius: var(--radius-card); background: var(--danger-soft); color: var(--danger); text-align: center; font-weight: 550; box-shadow: var(--shadow-float); }

/* ---------- Cabeçalho: estado da consulta ---------- */
.consult-status { display: flex; align-items: center; gap: var(--space-3); max-width: 360px; padding: 10px var(--space-4); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.consult-status > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.consult-status small { color: var(--muted); font-size: 12px; font-weight: 500; }
.consult-status strong { color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.35; }
.consult-status em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.pulse { position: relative; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--dot-info); }
.pulse::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--dot-info); border-radius: inherit; opacity: .5; animation: brunx-pulse 1.8s ease-out infinite; }
@keyframes brunx-pulse { 0% { transform: scale(.65); opacity: .7; } 75%, 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Painéis ---------- */
.search-panel, .table-card { overflow: visible; }
.panel__header > div { min-width: 0; padding: var(--space-3) 0; }
.panel__header > div > h2 { margin: 0; }
.search-statuses, .table-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; }
.table-heading { flex-wrap: wrap; }
.movement-section-copy { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.movement-form-intro { margin: 0 0 var(--space-4); }
.movement-result-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Selo de estado ao vivo (preenchido pelo JS) */
.live-status { display: inline-flex; align-items: center; gap: 6px; min-height: 20px; padding: 2px var(--space-2); border-radius: var(--radius-control); background: var(--neutral-soft); color: var(--ink); font-size: 12px; font-weight: 550; line-height: 16px; white-space: nowrap; }
.live-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.live-status.success { background: var(--success-soft); color: var(--success); }
.live-status.loading { background: var(--info-soft); color: var(--info); }
.live-status.warning { background: var(--warning-soft); color: var(--warning); }
.live-status:empty { display: none; }

/* ---------- Formulário de pesquisa ---------- */
.search-form { display: grid; grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(160px, .8fr)); align-items: end; gap: var(--space-4) var(--space-3); }
.search-form .form-actions { grid-column: 1 / -1; }
.search-field, .filter-field, .movement-field, .movement-query-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.search-field > label, .search-field > span:first-child, .filter-label { color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
.required-label::after { content: " *"; color: var(--danger); }

.input-shell { display: flex; height: 36px; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--surface); color: var(--muted); transition: border-color .14s ease, box-shadow .14s ease; }
.input-shell:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.input-shell svg { flex: 0 0 auto; }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.input-shell input::placeholder { color: var(--muted); }

.movement-control { width: 100%; height: 36px; padding: 0 var(--space-3); border: 1px solid var(--control-border); border-radius: var(--radius-control); outline: 0; background-color: var(--surface); color: var(--ink); font-size: 13px; transition: border-color .14s ease, box-shadow .14s ease; }
.movement-control:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.movement-select { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.movement-control::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
[data-theme="dark"] .movement-control::-webkit-calendar-picker-indicator { filter: invert(1); }

/* Seleção múltipla (details/summary) */
.multi-select { position: relative; z-index: 40; }
.multi-select[open] { z-index: 120; }
.multi-select summary { display: flex; height: 36px; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 10px 0 var(--space-3); list-style: none; cursor: pointer; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-size: 13px; transition: border-color .14s ease, box-shadow .14s ease; }
.multi-select summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary svg { flex: 0 0 auto; color: var(--muted); transition: transform .14s ease; }
.multi-select[open] summary { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.multi-select[open] summary svg { transform: rotate(180deg); }
.multi-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 140; width: min(380px, 88vw); max-height: 360px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-item); background: var(--surface-raised); box-shadow: var(--shadow-float); scrollbar-width: thin; }
.compact-menu { width: min(260px, 88vw); }
.movement-multiselect .multi-menu { right: auto; left: 0; }
.movement-types-menu { width: min(420px, 88vw); }
.multi-menu-actions, .column-multi-actions { display: flex; justify-content: flex-end; gap: var(--space-1); padding: 2px 2px 6px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.column-multi-actions { justify-content: space-between; }
.multi-menu-actions button, .column-multi-actions button { padding: 4px var(--space-2); border: 0; border-radius: 6px; background: transparent; color: var(--link); font-size: 12px; font-weight: 600; }
.multi-menu-actions button:hover, .column-multi-actions button:hover { background: var(--action-soft); }

.check-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px var(--space-2); cursor: pointer; border-radius: var(--radius-control); color: var(--ink); }
.check-option:hover { background: var(--surface-sunken); }
.check-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-mark { position: relative; display: grid; width: 16px; height: 16px; flex: 0 0 auto; place-items: center; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); }
.check-option input:checked + .check-mark { border-color: var(--action); background: var(--action); }
.check-option input:checked + .check-mark::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid var(--on-action); border-bottom: 2px solid var(--on-action); transform: rotate(-45deg); }
.check-option input:focus-visible + .check-mark { outline: 2px solid var(--focus); outline-offset: 1px; }
.check-option > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.check-option strong { font-size: 13px; font-weight: 550; line-height: 1.35; }
.check-option small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.check-option[hidden], .column-option[hidden] { display: none !important; }

/* Pesquisa dentro das listas de cor */
.option-search-shell { position: sticky; top: -6px; z-index: 3; margin: -6px -6px 4px; padding: 6px 6px 6px; background: var(--surface-raised); }
.option-search-shell input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-control); outline: 0; background: var(--surface); color: var(--ink); font-size: 13px; }
.option-search-shell input::placeholder { color: var(--muted); }
.option-search-shell input:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.option-search-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 6px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-item); background: var(--surface); }
.option-search-mode { min-height: 26px; padding: 0 var(--space-2); border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 550; transition: background .14s ease; }
.option-search-mode:hover { background: var(--action-soft); }
.option-search-mode.is-active { background: var(--action); color: var(--on-action); }
.option-search-empty, .movement-empty-options { margin: 0; padding: var(--space-3) var(--space-2); color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Sugestões de produto */
.product-search-field { position: relative; z-index: 130; }
.product-suggestions { position: absolute; top: calc(100% + 6px); left: 0; z-index: 180; width: 100%; min-width: min(520px, calc(100vw - 46px)); max-height: 360px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-item); background: var(--surface-raised); box-shadow: var(--shadow-float); scrollbar-width: thin; }
.product-suggestion { display: grid; width: 100%; grid-template-columns: minmax(82px, auto) minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: var(--space-2) 10px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); text-align: left; }
.product-suggestion:hover, .product-suggestion.is-active { background: var(--surface-sunken); }
.product-suggestion:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.product-suggestion-code { font: 600 12px/1.3 var(--font-mono); white-space: nowrap; }
.product-suggestion-name { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.product-suggestion-state { padding: var(--space-3) 10px; color: var(--muted); font-size: 12px; text-align: center; }
.product-suggestion-state strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 600; }

/* Ações do formulário */
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; }
.primary-button.is-loading { cursor: progress; opacity: .75; }
.primary-button.is-loading svg { animation: brunx-search-pulse .8s ease-in-out infinite alternate; }
@keyframes brunx-search-pulse { to { transform: scale(.8); opacity: .6; } }
.discount-toggle { display: none !important; }

/* Movimentações: grade do formulário */
.movements-form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: var(--space-4) var(--space-3); }
.movement-field { grid-column: span 3; }
.movement-query-field { grid-column: span 4; }
.movement-field-date { grid-column: span 2; }
.movement-field-wide { grid-column: span 4; }
.movement-multiselect { width: 100%; }
.movement-help { color: var(--muted); font-size: 12px; line-height: 1.45; }
.movement-disabled-select { display: flex; height: 36px; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 10px 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-sunken); color: var(--muted); font-size: 13px; opacity: .8; cursor: not-allowed; }
.movement-disabled-select svg { flex: 0 0 auto; }
.movement-form-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: var(--space-1) calc(var(--space-5) * -1) calc(var(--space-5) * -1); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--divider); }
.movement-form-footer > p { margin: 0; color: var(--muted); font-size: 12px; }

/* Avisos */
.reconciliation-note { margin: 0 0 var(--space-4); }
.movement-notice { display: block; margin: 0 0 var(--space-4); padding: 10px var(--space-3); border-radius: var(--radius-control); background: var(--info-soft); color: var(--info); font-size: 13px; font-weight: 550; line-height: 1.45; }
.movement-notice.error { background: var(--danger-soft); color: var(--danger); }
.movement-notice.warning { background: var(--warning-soft); color: var(--warning); }

/* ---------- Resumo (KPIs) ---------- */
.metrics-section { margin-top: var(--space-6); }
.metrics-section .section-title { margin-top: 0; }
.stats-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card code { padding: 1px 5px; border-radius: 5px; background: var(--neutral-soft); color: var(--ink); font: 600 11px/1.3 var(--font-mono); }
.movement-metrics-section .metric-card.is-loading strong { opacity: .5; }
.movement-metrics-section .metric-card.is-partial > small::after { content: " · parcial"; color: var(--warning); font-weight: 650; }
.movement-balance-card.movement-balance-positive > strong { color: var(--success); }
.movement-balance-card.movement-balance-negative > strong { color: var(--danger); }
.movement-flow-values { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--space-4); }
.movement-flow-value { min-width: 0; }
.movement-flow-value > small { display: block; margin: 0 0 2px; color: var(--muted); font-size: 12px; }
.movement-flow-value > strong { margin: 0; }
.movement-flow-entry > strong { color: var(--success); }
.movement-flow-exit > strong { color: var(--danger); }
.movement-flow-divider { width: 1px; height: 36px; background: var(--divider); }

/* ---------- Tabelas ---------- */
.table-card { margin-top: var(--space-6); overflow: hidden; }
.table-scroll { overflow: auto; max-height: 70vh; scrollbar-width: thin; }
.movement-table-scroll { max-height: 66vh; }
.table-scroll .data-table { min-width: 1080px; border-collapse: separate; border-spacing: 0; white-space: nowrap; }
.movement-table { min-width: 1960px !important; }
.data-table thead { position: sticky; top: 0; z-index: 5; }
.data-table .column-headings th { color: var(--muted); }
.data-table th.number, .data-table td.number { text-align: right; font-variant-numeric: tabular-nums; }
.data-table th.number .sort-button { flex-direction: row; }
.sort-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.sort-button span { color: var(--muted); font-size: 11px; opacity: .7; }
.sort-button:hover, .sort-button.active { color: var(--ink); }
.sort-button.active span { color: var(--link); opacity: 1; }
.column-filters th { padding: 6px 10px; background: var(--surface); border-bottom: 1px solid var(--divider); font-weight: 400; }
.column-filters input { width: 100%; min-width: 80px; height: 30px; padding: 0 var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-control); outline: 0; background: var(--surface); color: var(--ink); font-size: 12px; }
.column-filters input::placeholder { color: var(--muted); }
.column-filters input:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.no-column-filter { display: block; color: var(--muted); text-align: center; font-size: 12px; opacity: .6; }
.column-multi-select { position: relative; min-width: 132px; }
.column-multi-select > summary { display: flex; height: 30px; align-items: center; justify-content: space-between; gap: 6px; padding: 0 var(--space-2); list-style: none; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; }
.column-multi-select > summary::-webkit-details-marker { display: none; }
.column-multi-select > summary svg { flex: 0 0 auto; color: var(--muted); }
.column-multi-select[open] > summary { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.column-multi-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: max(100%, 230px); max-height: 300px; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-item); background: var(--surface-raised); box-shadow: var(--shadow-float); scrollbar-width: thin; }
.column-option { display: flex; align-items: center; gap: var(--space-2); padding: 6px; border-radius: 6px; color: var(--ink); cursor: pointer; white-space: normal; font-size: 12px; font-weight: 400; }
.column-option:hover { background: var(--surface-sunken); }
.column-filters .column-option input { width: 16px; min-width: 16px; height: 16px; margin: 0; padding: 0; flex: 0 0 auto; border-radius: 4px; box-shadow: none; }

.data-table td { background: var(--surface); }
.data-table tbody tr:hover > td { background: var(--surface-sunken); }
.code-cell { font: 500 12px/1.3 var(--font-mono); }
.pill { display: inline-flex; min-width: 28px; justify-content: center; padding: 2px var(--space-2); border-radius: var(--radius-control); background: var(--neutral-soft); color: var(--ink); font-size: 12px; font-weight: 550; line-height: 16px; }
.product-name-cell { display: block; min-width: 220px; max-width: 360px; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; }
.color-name-cell { display: inline-flex; align-items: center; gap: var(--space-2); }
.sku-cell, .warehouse-cell { display: flex; min-width: 160px; flex-direction: column; }
.sku-cell code { align-self: flex-start; }
.sku-cell small, .warehouse-cell small { margin-top: 2px; max-width: 240px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.warehouse-cell strong { font-weight: 600; }
.reserved-value { color: var(--ink); }
.available-value { color: var(--ink); font-weight: 650; }
.negative-value { color: var(--danger) !important; font-weight: 650; }
.row-status { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--ai-online); vertical-align: middle; }
.row-status.inactive { background: var(--muted); }

.state-message { margin: var(--space-5); padding: var(--space-10) var(--space-6); border: 1px dashed var(--border-strong); border-radius: var(--radius-item); background: var(--surface-subtle); color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5; }
.state-message.error { border-color: transparent; background: var(--danger-soft); color: var(--danger); font-weight: 550; }

.loading-row td { height: 52px; }
.loading-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-shine) 50%, var(--skeleton) 100%); background-size: 200% 100%; animation: skeleton-shine 1.3s ease-in-out infinite; }
.loading-width-1 { width: 56%; }
.loading-width-2 { width: 66%; }
.loading-width-3 { width: 76%; }
.loading-width-4 { width: 86%; }

/* Movimentações: células */
.movement-table th, .movement-table td { vertical-align: top; }
.movement-table tbody tr.is-reversal > td { background: color-mix(in srgb, var(--warning-soft) 40%, var(--surface)); }
.movement-table tbody tr.is-reversal:hover > td { background: color-mix(in srgb, var(--warning-soft) 65%, var(--surface)); }
.movement-cell-code { font: 500 12px/1.45 var(--font-mono); }
.movement-cell-wrap { min-width: 180px; max-width: 280px; white-space: normal; }
.movement-product-name { min-width: 220px; max-width: 320px; white-space: normal; font-weight: 600; }
.movement-qty { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.movement-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px var(--space-2); border-radius: var(--radius-control); background: var(--neutral-soft); color: var(--ink); font-size: 12px; font-weight: 550; line-height: 16px; white-space: nowrap; }
.movement-badge.in { background: var(--success-soft); color: var(--success); }
.movement-badge.out { background: var(--danger-soft); color: var(--danger); }
.movement-badge.neutral { background: var(--neutral-soft); color: var(--ink); }
.movement-badge.warning { background: var(--warning-soft); color: var(--warning); }
.movement-cell-subtle { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: normal; }
.data-table td.movement-empty-row { height: 140px; color: var(--muted); text-align: center; vertical-align: middle; }

/* Paginação */
.table-pagination { position: relative; }
.pagination-actions { align-items: center; }
#page-label { min-width: 96px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.table-pagination__controls button:hover:not(:disabled) { background: var(--surface-sunken); }
.table-pagination__controls button:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }

/* ---------- Telas menores ---------- */
@media (max-width: 1450px) {
    .movement-query-field { grid-column: span 6; }
    .movement-field { grid-column: span 3; }
    .movement-field-wide { grid-column: span 6; }
    .movement-field-date { grid-column: span 3; }
}
@media (max-width: 1180px) {
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-form .product-search-field { grid-column: 1 / -1; }
    .search-form .filter-field:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
    .stats-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .movement-query-field { grid-column: 1 / -1; }
    .movement-field, .movement-field-wide, .movement-field-date { grid-column: span 6; }
}
@media (max-width: 760px) {
    .consult-status { max-width: none; }
    .search-form, .movements-form { grid-template-columns: 1fr; }
    .search-form > *, .movements-form > * { grid-column: 1 / -1 !important; }
    .form-actions > .btn { flex: 1; }
    .multi-menu, .movement-multiselect .multi-menu { right: auto; left: 0; width: min(380px, calc(100vw - 46px)); }
    .product-suggestions { width: min(520px, calc(100vw - 46px)); min-width: 0; }
    .product-suggestion { grid-template-columns: 1fr; gap: 2px; }
    .stats-grid--3 { grid-template-columns: 1fr; }
    .movement-form-footer { align-items: stretch; flex-direction: column; }
    .movement-form-footer .form-actions { width: 100%; }
    .table-heading-actions, .movement-result-actions { justify-content: flex-start; padding-bottom: var(--space-3); }
    .table-pagination { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .pulse::after, .loading-bar, .primary-button.is-loading svg { animation: none; }
}
