/* Permanent dark semantic palette shared by operational modules. */
:root {
  --module-ok-bg: #172d37;
  --module-ok-border: #314e5b;
  --module-ok-text: #91c5dc;
  --module-danger-bg: #3a252b;
  --module-danger-border: #69424b;
  --module-danger-text: var(--ds-danger);
  --module-warn-bg: #372e20;
  --module-warn-border: #655232;
  --module-warn-text: var(--ds-warning);
  --module-info-bg: #1b2f41;
  --module-info-border: #35546e;
  --module-info-text: #9acbef;
  --module-purple-bg: #2a263d;
  --module-purple-border: #4a4266;
  --module-purple-text: #c4b3ef;
  --module-pink-bg: #382637;
  --module-pink-text: #e5a4cd;
}
/* Operation screens. These use the same surface, type and control language as
   the workspace shell; existing visibility and application state stay intact. */
:is(.history, .pricing, .settings, .scan, .finance, .upseller, #notificationsPanel, #kanbanPanel) {
  color: var(--ds-text);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
:is(.history__head, .pricing__head, .settings__head, .scan__head, .finance__header, .notifications-header, .kanban-header) {
  margin-bottom: 20px;
}
:is(.history__head, .pricing__head, .settings__head, .scan__head, .notifications-header, .kanban-header) h2,
.finance__title {
  color: var(--ds-text);
  font-size: clamp(21px, 1.6vw, 27px) !important;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 0 0 6px;
}
:is(.history__crumb, .scan__subtitle, .pricing__subtitle, .settings__subtitle, .settings__hint,
    .notifications-subtitle, .kanban-subtitle, .finance__subtitle, .pricing__box-head p,
    .pricing-card__label, .upseller__subtitle) {
  color: var(--ds-muted) !important;
  font-size: 13px;
  line-height: 1.55;
}
.history__crumb { font-size: 11px; letter-spacing: .015em; margin-bottom: 8px; }
:is(.pricing__box, .pricing-card, .pricing-admin__card, .settings__form, .scan-result,
    .history__table-wrap, .pricing__targets-wrap, .finance__chart-card, .finance__ranking,
    .finance-kpi, .finance-brk__group, .waste-form, .notification-item,
    .upseller-order, .bestseller-card, .finance-entry, .kanban-archived) {
  background: var(--ds-surface) !important;
  border: 1px solid var(--ds-border) !important;
  border-radius: 16px;
  box-shadow: 0 2px 4px #00000014;
  backdrop-filter: none;
}
:is(.history__toolbar, .finance__toolbar, .bestsellers__toolbar, .upseller__toolbar) {
  background: var(--ds-surface) !important;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 12px !important;
  box-shadow: none;
}
:is(.pricing, .settings, .scan, .finance, .upseller, .history) .input {
  background-color: var(--ds-surface) !important;
  color: var(--ds-text) !important;
  border-color: var(--ds-border) !important;
  box-shadow: none;
  min-height: 44px !important;
}
:is(.pricing, .settings, .scan, .finance, .upseller, .history) .input:focus {
  border-color: var(--ds-accent) !important;
  box-shadow: 0 0 0 3px #77b1cb24;
}
:is(.pricing, .settings, .scan, .finance, .upseller, .history) .input::placeholder {
  color: var(--ds-muted);
}
:is(.pricing, .settings, .scan, .finance, .upseller, .history) .btn--primary {
  background: var(--ds-action) !important;
  border-color: var(--ds-action) !important;
  color: var(--ds-on-action) !important;
}

/* Pricing and administration: distinct input and result areas. */
.pricing__split { gap: 20px !important; align-items: stretch; }
.pricing__box { padding: 22px !important; }
.pricing__box-head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--ds-border); }
.pricing__box-head h3 { font-size: 16px !important; font-weight: 700; color: var(--ds-text); letter-spacing: -.02em; }
.pricing__box-head p { margin: 5px 0 0; }
.pricing__grid { gap: 16px !important; }
.pricing__grid label, .pricing-admin__card label { font-size: 12px !important; font-weight: 600; color: var(--ds-muted); gap: 7px; }
.pricing__color-toggle { gap: 8px; padding: 4px; background: var(--ds-bg); border-radius: 11px; }
.pricing__radio { min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ds-text); }
.pricing__radio:has(input:checked) { background: var(--ds-surface); box-shadow: 0 1px 4px #00000026; }
.pricing__radio input { accent-color: var(--ds-accent); width: 18px; height: 18px; }
.pricing__photo { background: var(--ds-bg); border-color: var(--ds-border); border-radius: 10px; }
.pricing__box-actions { padding-top: 12px; }
.pricing__actions { margin-block: 16px; gap: 10px; }
.pricing__cards { gap: 12px !important; margin-block: 20px; }
.pricing-card { padding: 18px !important; min-width: 0; }
.pricing-card__label { font-size: 12px !important; font-weight: 600; }
.pricing-card__value { margin-top: 6px; font-size: clamp(22px, 1.8vw, 28px) !important; font-weight: 720; letter-spacing: -.045em; color: var(--ds-text); }
.pricing-card__value--ok { color: var(--module-ok-text); }
.pricing-card__value--bad { color: var(--module-danger-text); }
.pricing__targets-wrap { padding: 0 !important; overflow-x: auto; }
.pricing__targets-wrap h3 { margin: 0; padding: 18px; font-size: 15px !important; color: var(--ds-text); }
.pricing-admin__grid { gap: 18px; }
.pricing-admin__card { padding: 22px; gap: 14px; align-content: start; }
.pricing-admin__card h4 { font-size: 16px; margin-bottom: 4px; letter-spacing: -.02em; }
.pricing-admin__actions { flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.pricing-admin__actions .btn { flex: 1 1 100px; }
.pricing__msg, .settings__ok { background: var(--module-ok-bg); border: 1px solid var(--module-ok-border); color: var(--module-ok-text); border-radius: 10px; padding: 12px; }
.pricing__msg--error { background: var(--module-danger-bg); border-color: var(--module-danger-border); color: var(--module-danger-text); }
.settings__form { max-width: 720px; padding: 24px; gap: 16px; margin-bottom: 32px; }
.settings__checks { background: var(--ds-bg); border-color: var(--ds-border); padding: 14px 16px; border-radius: 12px; }
.settings__checks legend { padding-inline: 6px; color: var(--ds-muted); font-size: 12px; font-weight: 650; }
.settings__check { color: var(--ds-text); font-size: 14px; gap: 10px; }
.settings__check input, .finance-check input { accent-color: var(--ds-accent); flex-shrink: 0; }
.settings__actions { background: transparent !important; border: 0 !important; padding: 8px 0 0 !important; }
.settings__hint { margin-block: 0; }
.edit-prod-cost { background: var(--ds-bg); border: 1px solid var(--ds-border); border-radius: 12px; padding: 16px; }
.edit-prod-cost__title { color: var(--ds-text); font-size: 13px; }

/* Movement records retain semantic chips and easy-to-scan numerical columns. */
.history__filters label { color: var(--ds-muted); font-weight: 600; }
.history__table { color: var(--ds-text); }
.history__table th { background: var(--ds-elevated) !important; color: var(--ds-muted) !important; border-bottom: 1px solid var(--ds-border) !important; font-weight: 650; }
.history__table td { border-bottom-color: var(--ds-border); line-height: 1.5; }
.history__table tbody tr { background: var(--ds-surface); }
.history__table tbody tr:nth-child(even) { background: var(--ds-inset); }
.history__table tbody tr:hover { background: var(--ds-soft); }
.history__cell-product { font-weight: 600; color: var(--ds-text); }
.history__cell-when, .history__saldo-before, .history__saldo-arrow { color: var(--ds-muted); }
.history__user { color: var(--ds-muted); background: var(--ds-elevated); border-color: var(--ds-border); }
.history__qty--pos, .history__type-badge--add, .history__obs-tag--prod { background: var(--module-ok-bg); color: var(--module-ok-text); border-color: var(--module-ok-border); }
.history__qty--neg, .history__type-badge--remove { background: var(--module-danger-bg); color: var(--module-danger-text); border-color: var(--module-danger-border); }
.history__qty--neutral, .history__type-badge--other, .history__obs-tag--neutral { background: var(--ds-elevated); color: var(--ds-muted); border-color: var(--ds-border); }
.history__type-badge--transfer, .history__obs-tag--transfer, .history__obs-tag--exp { background: var(--module-info-bg); color: var(--module-info-text); border-color: var(--module-info-border); }
.history__type-badge--create { background: var(--module-warn-bg); color: var(--module-warn-text); border-color: var(--module-warn-border); }
.history__type-badge--edit { background: var(--module-purple-bg); color: var(--module-purple-text); border-color: var(--module-purple-border); }
.history__saldo-after { color: var(--ds-text); }
.history__obs-text { color: var(--ds-text); }
.history__obs-empty, .history__count { color: var(--ds-muted); }
.history__chips .chip--history { background: transparent !important; color: var(--ds-muted) !important; border-color: transparent !important; min-height: 44px; }
.history__chips .chip--history:hover { background: var(--ds-elevated) !important; color: var(--ds-text) !important; border-color: var(--ds-border) !important; }
.history__chips .chip--history.is-active { background: var(--ds-soft) !important; color: var(--module-ok-text) !important; border-color: var(--module-ok-border) !important; }
.history__chips .chip--history-add.is-active { background: var(--module-ok-bg) !important; color: var(--module-ok-text) !important; border-color: var(--module-ok-border) !important; }
.history__chips .chip--history-remove.is-active { background: var(--module-danger-bg) !important; color: var(--module-danger-text) !important; border-color: var(--module-danger-border) !important; }
.history__chips .chip--history-transfer.is-active { background: var(--module-info-bg) !important; color: var(--module-info-text) !important; border-color: var(--module-info-border) !important; }
.history__chips .chip--history-create.is-active { background: var(--module-warn-bg) !important; color: var(--module-warn-text) !important; border-color: var(--module-warn-border) !important; }
.history__chips .chip__dot { box-shadow: none; }
.history__chips .chip--history-add .chip__dot { background: #7bb3cb; }
.history__chips .chip--history-remove .chip__dot { background: #e08b91; }
.history__chips .chip--history-transfer .chip__dot { background: #77b5df; }
.history__chips .chip--history-create .chip__dot { background: #d1ad67; }

/* Finance: strong totals, calm chart surfaces and restrained status color. */
.finance__kpis { gap: 12px; margin-bottom: 20px; }
.finance-kpi { padding: 20px; gap: 8px; min-width: 0; }
.finance-kpi--primary { background: var(--module-ok-bg) !important; border-color: var(--module-ok-border) !important; }
.finance-kpi__label { color: var(--ds-muted); font-size: 11px; letter-spacing: .055em; }
.finance-kpi__value { color: var(--ds-text); font-size: clamp(22px, 2vw, 30px); font-weight: 730; letter-spacing: -.045em; overflow-wrap: anywhere; }
.finance-kpi__value--muted { color: var(--ds-muted); }
:is(.finance-kpi__value, .finance-rank__lucro, .finance-entry__amount, .finance-brk__val).is-pos { color: var(--module-ok-text); }
:is(.finance-kpi__value, .finance-rank__lucro, .finance-entry__amount, .finance-brk__val).is-neg { color: var(--module-danger-text); }
.finance-kpi__value.is-warn { color: var(--module-warn-text); }
.finance-kpi__value.is-info { color: var(--module-info-text); }
.finance__chart-card, .finance__ranking { padding: 22px; }
.finance__chart-title, .finance__ranking-title { color: var(--ds-text); font-size: 14px; text-transform: none; font-weight: 700; letter-spacing: -.01em; }
.finance__chart-days { height: 176px; gap: 5px; padding-top: 16px; }
.finance-bar__stack { height: 132px; }
.finance-bar__label { font-size: 10px; }
.finance-bar__fat { background: #3f5365; }
.finance-bar__lucro { background: #5297b6; }
.finance-bar__cost { background: #c8787e; }
.finance-donut__hole { background: var(--ds-surface); }
.finance-donut__legend { color: var(--ds-text); font-size: 12px; line-height: 1.5; }
.finance__chart-empty { opacity: 1; padding: 40px 16px; }
.finance-rank { background: var(--ds-bg); border-color: transparent; padding: 14px; }
.finance-rank__name { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.finance-rank__bar, .bestseller-card__bar, .fil-card__bar, .waste-printer__bar { background: var(--ds-inset); }
.finance-rank__bar-fill.is-pos, .bestseller-card__bar-fill, .fil-card__fill { background: #5297b6; }
.finance-rank__bar-fill.is-neg { background: #c8787e; }
.finance__breakdown { gap: 12px; margin-bottom: 20px; }
.finance-brk__group { padding: 18px; }
.finance-brk__group--result { background: var(--module-ok-bg) !important; border-color: var(--module-ok-border) !important; }
.finance-brk__head { color: var(--ds-text); border-color: var(--ds-border); font-size: 13px; }
.finance-brk__label { color: var(--ds-muted); font-size: 13px; }
.finance-brk__row { padding-block: 6px; }
.finance-brk__val { font-size: 14px; }
.finance__tabs { padding: 4px; background: var(--ds-inset); border: 0; border-radius: 12px; gap: 4px; margin-bottom: 20px; }
.finance__tab { padding: 10px 20px; border: 0; border-radius: 9px; font-weight: 650; color: var(--ds-muted); }
.finance__tab.is-active { background: var(--ds-surface); color: var(--ds-accent); box-shadow: 0 1px 4px #00000026; }
.finance-entry { padding: 16px; }
.finance-entry__desc { color: var(--ds-muted); }
.finance-entry__badge { color: var(--module-purple-text); background: var(--module-purple-bg); }
.finance-entry__badge.is-parc { color: var(--module-warn-text); background: var(--module-warn-bg); }
.fin-icon-btn { color: var(--ds-muted); background: var(--ds-bg); border-color: var(--ds-border); min-width: 44px; min-height: 44px; }
.fin-icon-btn:hover { color: var(--ds-text); background: var(--ds-elevated); }
.finance__entries-note { max-width: 780px; line-height: 1.6; }
.finance__warn, .finance-rank__flag, .filament__alert { background: var(--module-warn-bg); border-color: var(--module-warn-border); color: var(--module-warn-text); }
.waste-form { padding: 20px; margin-bottom: 20px; }
.waste-form__row { gap: 14px; }
.waste-form__row + .waste-form__row { margin-top: 16px; }
.waste-form__field > span { color: var(--ds-muted); font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.waste-printer__cost, .waste-item__cost { color: var(--module-danger-text); }
.waste-printer__fill { background: #c8787e; }
.waste-item { background: var(--ds-bg); border-color: var(--ds-border); border-radius: 12px; padding: 14px; }
.waste-item__name { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.waste-item__del, .waste-item__edit { color: var(--ds-muted); background: var(--ds-surface); border-color: var(--ds-border); min-width: 44px; min-height: 44px; }
.waste-item__del:hover { color: var(--module-danger-text); background: var(--module-danger-bg); }
.waste-item__edit:hover { color: var(--module-info-text); background: var(--module-info-bg); }
.combo__list { background: var(--ds-surface); border-color: var(--ds-border); box-shadow: 0 8px 28px #00000042; }
.combo__item { color: var(--ds-text); min-height: 44px; }
.combo__item:hover, .combo__item.is-active { background: var(--ds-soft); }

/* Supplies, alert inbox and barcode workflows. */
.filament__list { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.filament .fil-card { background: var(--ds-surface) !important; border: 1px solid var(--ds-border) !important; box-shadow: 0 2px 4px #00000014 !important; border-radius: 15px; overflow: hidden; }
.filament .fil-card.is-low { background: var(--ds-surface) !important; border-color: var(--module-warn-border) !important; }
.filament .fil-card.is-reorder { background: var(--ds-surface) !important; border-color: var(--module-danger-border) !important; }
.filament .fil-card.is-ordered { border-color: var(--module-info-border) !important; }
.filament .fil-card .card__body { padding: 12px; gap: 8px; }
.filament .fil-card .card__title { color: var(--ds-text) !important; font-size: 13px; font-weight: 650; line-height: 1.4; }
.filament .card__split { background: var(--ds-bg) !important; border-color: var(--ds-border) !important; padding: 10px; gap: 8px; }
.filament .card__split span { color: var(--ds-muted) !important; font-size: 12px; line-height: 1.45; align-items: baseline; gap: 6px; }
.filament .card__split span strong { color: var(--ds-text) !important; font-size: 14px; font-weight: 650; text-align: right; }
.filament .card__actions-inline .btn.btn--compact-remove { background: var(--ds-surface) !important; color: var(--module-danger-text) !important; border-color: var(--module-danger-border) !important; }
.filament .card__actions-inline .btn.btn--compact-remove:hover { background: var(--module-danger-bg) !important; border-color: var(--module-danger-border) !important; }
.fil-card__bar { height: 5px; margin: 10px 0 14px; }
.fil-card__buy, .fil-card__ordered-undo { color: var(--module-info-text); }
.fil-card__buy:hover { color: var(--module-info-text); }
.fil-card__ordered { color: var(--module-info-text); background: var(--module-info-bg); border-color: var(--module-info-border); }
.fil-card__order-btn { min-height: 44px; color: var(--module-info-text); background: var(--module-info-bg); border-color: var(--module-info-border); }
.fil-card__ordered-undo { min-height: 44px; }
.fil-chip { border-radius: 10px; color: var(--ds-muted); background: var(--ds-surface); border-color: var(--ds-border); }
.fil-chip.is-active { color: var(--ds-accent); background: var(--ds-soft); border-color: var(--module-ok-border); }
.fil-chip__n, .fil-chip.is-active .fil-chip__n { background: #0000000f; opacity: 1; }
.notification-item { padding: 16px; gap: 14px; }
.notification-item:hover { background: var(--ds-elevated) !important; border-color: #405568 !important; }
.notification-item__title { white-space: normal; line-height: 1.4; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.notification-item__img { border-color: var(--ds-border); background: var(--ds-bg); }
.notification-item__icon { color: var(--module-danger-text); background: var(--module-danger-bg); }
.scan__content { gap: 18px; }
.scan__manual { padding: 18px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 14px; }
.scan__manual > label { display: block; color: var(--ds-muted); font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.scan__hint { color: var(--ds-muted); line-height: 1.5; }
.scan__camera-wrap { background: var(--ds-inset); }
.scan__camera-wrap .scan__hint { color: var(--ds-text); }
.scan-result { padding: 20px; }
.bipagem__scan { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 18px; padding: 28px; gap: 12px; }
.bipagem__title { color: var(--ds-text); font-size: 18px; letter-spacing: -.025em; }
.bipagem__icon { filter: none; }
.bipagem__hint { color: var(--ds-muted); font-size: 13px; line-height: 1.55; }
.bipagem__camera-wrap { border-color: var(--ds-border); background: var(--ds-inset); }
.bipagem__input { color: var(--ds-text); background: var(--ds-surface); border: 1px solid var(--module-ok-border); min-height: 48px; caret-color: var(--ds-accent); }
.bipagem__input::placeholder { color: var(--ds-muted); }
.bipagem__input:focus { border-color: var(--ds-accent); box-shadow: 0 0 0 3px #77b1cb24; }
.bipagem__manual > summary { color: var(--ds-accent); min-height: 44px; display: flex; align-items: center; justify-content: center; }
.bipagem__status { background: var(--ds-surface); border-color: var(--ds-border); color: var(--ds-text); }
.bipagem__status--ok { background: var(--module-ok-bg); border-color: var(--module-ok-border); color: var(--module-ok-text); }
.bipagem__status--processed { background: var(--module-info-bg); border-color: var(--module-info-border); color: var(--module-info-text); }
.bipagem__status--error { background: var(--module-danger-bg); border-color: var(--module-danger-border); color: var(--module-danger-text); }
.bipagem__log-item { background: var(--ds-surface); border-color: var(--ds-border); padding: 12px; }

/* Orders use a single visual hierarchy from status to reference to line items. */
.upseller { gap: 18px !important; }
.upseller__header { padding-bottom: 0; }
.upseller__subtitle { font-size: 14px !important; }
.upseller__sync-status { font-size: 12px; padding: 10px 14px; background: var(--ds-elevated); color: var(--ds-muted); border-color: var(--ds-border); border-radius: 10px; }
.upseller__sync-status.is-ok { background: var(--module-ok-bg); color: var(--module-ok-text); border-color: var(--module-ok-border); }
.upseller__sync-status.is-error { background: var(--module-danger-bg); color: var(--module-danger-text); border-color: var(--module-danger-border); }
.upseller__state-counts-grid { gap: 12px; }
.upseller__state-count { background: var(--ds-surface) !important; border: 1px solid var(--ds-border) !important; border-radius: 14px !important; min-height: 104px !important; align-items: flex-start; text-align: left; padding: 16px 20px !important; box-shadow: none; }
.upseller__state-count:hover { background: var(--ds-elevated) !important; border-color: #405568 !important; transform: none; }
.upseller__state-count.is-active { border-color: var(--ds-accent) !important; background: var(--ds-soft) !important; box-shadow: 0 0 0 1px var(--ds-accent); transform: none; }
.upseller__state-count-label { font-size: 11px !important; color: var(--ds-muted); letter-spacing: .04em; font-weight: 650; }
.upseller__state-count-value { font-size: 29px !important; font-weight: 750; letter-spacing: -.04em; margin-block: 4px; }
.upseller__state-count[data-state="in_process"] .upseller__state-count-value { color: var(--module-info-text); }
.upseller__state-count[data-state="to_ship"] .upseller__state-count-value { color: var(--module-warn-text); }
.upseller__state-count[data-state="invoice_pending"] .upseller__state-count-value { color: var(--module-pink-text); }
.upseller__state-count[data-state="allocate"] .upseller__state-count-value { color: var(--module-purple-text); }
.upseller__state-count-progress { background: var(--ds-elevated); color: var(--ds-muted); border-color: var(--ds-border); font-size: 11px; padding: 2px 7px; }
.upseller__state-count.is-partial .upseller__state-count-progress { color: var(--module-warn-text); background: var(--module-warn-bg); border-color: var(--module-warn-border); }
.upseller__state-count.is-complete { background: var(--module-ok-bg) !important; border-color: var(--module-ok-border) !important; }
.upseller__state-count.is-complete .upseller__state-count-value, .upseller__state-count.is-complete .upseller__state-count-progress { color: var(--module-ok-text) !important; }
.upseller__state-count.is-complete .upseller__state-count-progress { background: var(--module-ok-bg); border-color: var(--module-ok-border); }
.upseller__tabs { padding: 5px !important; background: var(--ds-inset); border: 0; border-radius: 12px; gap: 4px; }
.upseller__tab { padding: 11px 16px !important; color: var(--ds-muted); font-weight: 650; border-radius: 9px; font-size: 13px !important; }
.upseller__tab.is-active { background: var(--ds-surface) !important; color: var(--ds-accent) !important; box-shadow: 0 1px 4px #00000026; }
.upseller__tab-count { background: var(--ds-elevated); color: var(--ds-muted); font-size: 11px; }
.upseller__tab.is-active .upseller__tab-count { background: var(--ds-soft); color: var(--ds-accent); }
.upseller__tab-icon { font-size: 15px; }
.upseller__toolbar { gap: 10px !important; margin-bottom: 16px; }
.upseller-order { padding: 18px !important; border-radius: 16px; }
.upseller-order:hover { border-color: #405568 !important; }
.upseller-order__head { gap: 8px 12px; padding-bottom: 12px !important; }
.upseller-order__number { color: var(--ds-text); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.upseller-order__time, .upseller-order__location { color: var(--ds-muted); font-size: 12px; }
.upseller-order__amount { color: var(--ds-text); font-size: 15px; font-weight: 700; }
.upseller-order__customer { color: var(--ds-text); border-color: var(--ds-border); font-size: 13px; }
.upseller-order__items { border-color: var(--ds-border); padding-top: 12px; gap: 8px; }
.upseller-order-item { background: var(--ds-bg); border-radius: 10px; padding: 10px !important; gap: 10px; }
.upseller-order-item__name { color: var(--ds-text); font-size: 13px; font-weight: 650; line-height: 1.45; }
.upseller-order-item__qty { color: var(--ds-accent); font-size: 14px; }
.upseller-order-item__sku { background: var(--ds-elevated); color: var(--ds-muted); }
.upseller-order-item__attr, .upseller-order-item__meta { color: var(--ds-muted); }
.upseller-order-item.is-unmapped, .upseller__unmapped { background: var(--module-warn-bg); border-color: var(--module-warn-border); }
.upseller__unmapped-details > summary { color: var(--module-warn-text); min-height: 44px; }
.upseller-unmapped-item { background: var(--ds-surface); border-color: var(--module-warn-border); }
.upseller-order__platform, .upseller-order__state, .upseller-order__deadline { border-radius: 6px; font-size: 10px; font-weight: 750; letter-spacing: .045em; padding: 4px 7px; }
.upseller-order__platform[data-platform="shopee"] { background: #3e2a22; color: #ffa67b; }
.upseller-order__platform[data-platform="mercado"] { background: #38321d; color: #e5ce74; }
.upseller-order__platform[data-platform="tiktok"] { background: var(--ds-elevated); color: var(--ds-text); }
.upseller-order__state.is-toship, .upseller-order__deadline.is-today, .upseller-order__deduction-flag { background: var(--module-warn-bg); color: var(--module-warn-text); border-color: var(--module-warn-border); }
.upseller-order__state.is-inprocess, .upseller-order__state.is-other, .upseller-order__deadline.is-tomorrow { background: var(--module-info-bg); color: var(--module-info-text); }
.upseller-order__state.is-shipped, .upseller-order__deadline.is-future { background: var(--module-ok-bg); color: var(--module-ok-text); }
.upseller-order__state.is-allocate { background: var(--module-purple-bg); color: var(--module-purple-text); }
.upseller-order__state.is-invoice { background: var(--module-pink-bg); color: var(--module-pink-text); }
.upseller-order__state.is-ignore, .upseller-order__state.is-unpaid { background: var(--ds-elevated); color: var(--ds-muted); }
.upseller-order__deadline.is-overdue { background: var(--module-danger-bg); color: var(--module-danger-text); border-color: var(--module-danger-border); }
.upseller-order.is-processed { border-left: 3px solid #7bb3cb !important; }
.upseller-order__processed-info { color: var(--module-ok-text); }
.upseller-order__deductions { background: var(--ds-inset); border-color: var(--ds-border); }
.upseller-order__deduction-qty { color: var(--module-danger-text); }
.upseller-order__deduction.is-override .upseller-order__deduction-qty { color: var(--module-warn-text); }
.upseller__pagination { background: var(--ds-surface); border-color: var(--ds-border); }

/* Production: visibly separate lanes with a consistent reading order. */
.kanban-column, #upsellerKanbanBoard .kanban-column { background: var(--ds-elevated) !important; border: 1px solid var(--ds-border) !important; border-radius: 16px; padding: 14px; }
.kanban-column__header { border-bottom: 1px solid var(--ds-border); padding: 4px 2px 14px; margin-bottom: 12px; }
.kanban-column__header h3 { color: var(--ds-text); font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.kanban-column__count { color: var(--ds-muted); background: var(--ds-elevated); border-radius: 7px; min-width: 25px; text-align: center; font-size: 12px; }
.kanban-column__dot--todo { background: #849fb1; }
.kanban-column__dot--progress { background: #77b5df; }
.kanban-column__dot--done { background: #7bb3cb; }
.kanban-card, #upsellerKanbanBoard .kanban-card { background: var(--ds-surface) !important; border: 1px solid var(--ds-border) !important; border-radius: 12px; box-shadow: 0 2px 3px #00000014; }
.kanban-card:hover, #upsellerKanbanBoard .kanban-card:hover { border-color: #405568 !important; box-shadow: 0 3px 10px #0000000f; }
.kanban-card__name, #upsellerKanbanBoard .kanban-card__name { color: var(--ds-text); font-size: 13px !important; line-height: 1.45; font-weight: 650; }
.kanban-card__stock, .kanban-card__history, .kanban-card__date { color: var(--ds-muted); }
.kanban-card__warn { color: var(--module-danger-text); background: var(--module-danger-bg); }
.kanban-card__stat, .kanban-proj-chip { background: var(--ds-elevated); border-color: var(--ds-border); color: var(--ds-muted); font-size: 11px; line-height: 1.5; }
.kanban-card__stat--min, .kanban-card__stat--exp.is-warn, .kanban-proj-chip.is-warn, .kanban-card__badge--low { background: var(--module-warn-bg); color: var(--module-warn-text); border-color: var(--module-warn-border); }
.kanban-card__stat--exp.is-ok, .kanban-proj-chip.is-ok, .kanban-card__badge--ok { background: var(--module-ok-bg); color: var(--module-ok-text); border-color: var(--module-ok-border); }
.kanban-card__stat--exp.is-danger, .kanban-proj-chip.is-danger, .kanban-card__badge--zero { background: var(--module-danger-bg); color: var(--module-danger-text); border-color: var(--module-danger-border); }
.kanban-proj-chip:is(.is-danger, .is-warn, .is-ok) strong { color: inherit; }
#upsellerKanbanBoard .kanban-card__badge--upseller { background: var(--module-warn-bg) !important; color: var(--module-warn-text) !important; border-color: var(--module-warn-border) !important; }
#upsellerKanbanBoard .kanban-card__badge:not(.kanban-card__badge--upseller) { background: var(--module-ok-bg); color: var(--module-ok-text); border-color: var(--module-ok-border); }
#upsellerKanbanBoard .kanban-card__make-badge.is-need { background: var(--module-danger-bg); color: var(--module-danger-text); border-color: var(--module-danger-border); }
#upsellerKanbanBoard .kanban-card__make-badge.is-ok { background: var(--module-info-bg); color: var(--module-info-text); border-color: var(--module-info-border); }
.kanban-card__qty-produced, #upsellerKanbanBoard .kanban-card__qty-produced { color: var(--module-ok-text) !important; background: var(--module-ok-bg) !important; border-color: var(--module-ok-border) !important; }
.kanban-card__move-btn, .kanban-proj-card__btn { min-height: 44px; color: var(--ds-on-action); background: var(--ds-action); border: 1px solid var(--ds-action); border-radius: 9px; font-weight: 650; }
.kanban-card__move-btn:hover, .kanban-proj-card__btn:hover { background: #0098db; border-color: #0098db; }
.kanban-card__move-btn--back, .kanban-card__archive-btn { color: var(--ds-muted); background: var(--ds-elevated); border-color: var(--ds-border); min-height: 44px; }
.kanban-card__move-btn--back:hover, .kanban-card__archive-btn:hover { background: var(--ds-elevated); color: var(--ds-text); border-color: #405568; }
.kanban-empty { padding: 28px 14px; border: 1px dashed #405568; border-radius: 12px; color: var(--ds-muted); background: var(--ds-inset); }
.kanban-proj-card { background: var(--module-purple-bg); border-color: var(--module-purple-border); border-radius: 12px; padding: 12px; }
.kanban-proj-divider { border-color: var(--module-purple-border); }
.kanban-proj-divider span, .kanban-proj-horizon__label { color: var(--ds-muted); }
.kanban-proj-card__n { color: var(--module-info-text); font-size: 24px; }
.kanban-proj-card__lbl { color: var(--ds-muted); font-size: 10px; }
.kanban-color-chip, .kanban-proj-horizon__chip { min-height: 44px; background: var(--ds-surface); border-color: #405568; color: var(--ds-muted); padding: 7px 10px; }
.kanban-color-chip.is-active, .kanban-proj-horizon__chip.is-active { color: var(--ds-accent); background: var(--ds-soft); border-color: var(--module-ok-border); }
.kanban-tabs { background: var(--ds-inset); border-color: var(--ds-border); }
.kanban-tab { color: var(--ds-muted); }
.kanban-tab.is-active { background: var(--ds-surface); color: var(--ds-accent); border-color: var(--module-ok-border); }
.kanban-archived__summary { min-height: 48px; display: flex; align-items: center; gap: 4px; color: var(--ds-muted); }
.kanban-archived__item { background: var(--ds-bg); border-color: var(--ds-border); }
.kanban-archived__name { white-space: normal; line-height: 1.4; font-size: 13px; }
.bestseller-card { padding: 16px; gap: 14px; }
.bestseller-card__name { white-space: normal; line-height: 1.45; font-size: 14px; }
.bestseller-card__rank { color: var(--ds-muted); }
.bestseller-card__stock-badge { color: var(--ds-muted); background: var(--ds-elevated); border-color: var(--ds-border); }
.bestseller-card__stock-badge.is-low { color: var(--module-danger-text); background: var(--module-danger-bg); border-color: var(--module-danger-border); }
select.bestsellers__period-select { background-image: none; appearance: auto; padding-right: 12px; }
select.bestsellers__period-select option { background: var(--ds-surface); color: var(--ds-text); }

/* Workflow-specific dialogs inherit shell structure but need readable details. */
.upseller-map__source, .upseller-process__summary, .upseller-process__insumo,
#upsellerProcessDialog .upseller-process__source-items { background: var(--ds-bg); border-color: var(--ds-border); }
.upseller-map__component-row { grid-template-columns: minmax(0, 1fr) 64px 44px; }
.upseller-map__component-remove { width: 44px; height: 44px; color: var(--module-danger-text); background: var(--module-danger-bg); border-color: var(--module-danger-border); }
.upseller-process__item { background: var(--ds-surface); border-color: var(--ds-border); }
.upseller-process__item.is-ok { background: var(--module-ok-bg); border-color: var(--module-ok-border); }
.upseller-process__item.is-insufficient { background: var(--module-danger-bg); border-color: var(--module-danger-border); }
.upseller-process__item.is-unmapped { background: var(--module-warn-bg); border-color: var(--module-warn-border); }
.upseller-process__item-name { white-space: normal; color: var(--ds-text); font-size: 13px; line-height: 1.45; }
.upseller-process__item-qty, .upseller-process__item.is-ok .upseller-process__item-qty,
.upseller-process__item.is-insufficient .upseller-process__item-qty,
.upseller-process__item-qty-sign, .upseller-process__warn { color: var(--module-danger-text); }
.upseller-process__item-qty-input { color: var(--module-danger-text); background: var(--ds-surface); border-color: var(--module-danger-border); height: 44px; font-size: 16px; }
.upseller-process__item.is-insufficient .upseller-process__item-qty-input { color: var(--module-danger-text); background: var(--module-danger-bg); border-color: var(--module-danger-border); }
.upseller-process__warning { background: var(--module-warn-bg); color: var(--module-warn-text); border-color: var(--module-warn-border); }
.upseller-process__done-banner { background: var(--module-info-bg); color: var(--module-info-text); border-color: var(--module-info-border); }
.upseller-process__item-qty-badge { background: var(--module-ok-bg); color: var(--module-ok-text); border-color: var(--module-ok-border); }
#upsellerProcessDialog .upseller-process__edit-map { min-width: 44px; min-height: 44px; border-color: var(--ds-border); color: var(--ds-muted); }
#upsellerProcessDialog .upseller-process__source-sku { color: var(--ds-muted); background: var(--ds-elevated); }
#upsellerProcessDialog .upseller-process__source-qty { color: var(--ds-accent); }
#upsellerProcessDialog .upseller-process__buyer { border-color: var(--ds-border); }

/* Deliberate platform adaptations; no data or lane is hidden to fit a screen. */
@media (min-width: 1200px) {
  .pricing__split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important; }
  .pricing-admin__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .notifications-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .history__filters { gap: 10px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .pricing__box { padding: 18px !important; }
  .pricing__split { gap: 14px !important; }
  .upseller__toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .upseller__toolbar .upseller__search { grid-column: 1 / -1; }
  .upseller__state-count { padding: 14px !important; }
  .finance-kpi { padding: 16px; }
  .finance__charts { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 767px) {
  :is(.history__head, .pricing__head, .settings__head, .scan__head, .finance__header, .notifications-header, .kanban-header) { margin-bottom: 16px; }
  :is(.history__head, .pricing__head, .settings__head, .scan__head, .notifications-header, .kanban-header) h2,
  .finance__title { font-size: 21px !important; }
  .pricing__box, .pricing-admin__card, .settings__form { padding: 18px !important; border-radius: 14px; }
  .pricing__box-head { padding-bottom: 12px; margin-bottom: 14px; }
  .pricing__grid { gap: 14px !important; }
  .pricing__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
  .pricing-card { padding: 14px !important; }
  .pricing-card__value { font-size: 23px !important; }
  .pricing-card__label { font-size: 11px !important; }
  .settings__form { max-width: none; gap: 14px; }
  .history__toolbar { padding: 8px !important; }
  #historyPanel .history__table-wrap { background: transparent !important; border: 0 !important; box-shadow: none; }
  #historyPanel .history__table tbody { padding: 0; gap: 12px; }
  #historyPanel .history__table tr { background: var(--ds-surface); border-color: var(--ds-border); padding: 12px; border-radius: 14px; }
  #historyPanel .history__table td::before { color: var(--ds-muted); font-size: 11px; font-weight: 600; }
  #historyPanel .history__table td { font-size: 13px !important; }
  .finance-kpi { padding: 16px; gap: 7px; }
  .finance-kpi__value { font-size: 23px; }
  .finance-kpi__label { font-size: 10px; }
  .finance__kpis { gap: 10px; }
  .finance__chart-card, .finance__ranking { padding: 16px; }
  .finance__tabs { gap: 2px; }
  .finance__tab { flex: 1; padding-inline: 12px; font-size: 13px; }
  .finance-entry { gap: 12px; padding: 14px; }
  .finance-rank { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .finance-rank__profit { margin-left: auto; }
  .waste-form { padding: 16px; }
  .waste-form__row { gap: 12px; }
  .waste-form__field { flex-basis: calc(50% - 6px); }
  .waste-form__field--grow { flex-basis: 100%; }
  .waste-form__add { flex: 1 1 140px; min-height: 44px; }
  .filament__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filament .card__actions-inline { grid-template-columns: minmax(0, 1fr); }
  .filament .card__actions-inline .btn { min-height: 44px; }
  .fil-card__notes, .fil-card__color { font-size: 12px; }
  .notification-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .notification-item__img, .notification-item__icon { width: 44px; height: 44px; }
  .notification-item__body { min-width: 0; }
  .notification-item__time { grid-column: 2; font-size: 11px; }
  .notification-item__action { grid-column: 3; grid-row: 1 / span 2; }
  .notification-item__title { font-size: 13px; }
  .notification-item__desc { font-size: 12px; }
  .scan__manual, .scan-result { padding: 14px; }
  .bipagem__scan { padding: 20px 14px; gap: 10px; }
  .bipagem__title { font-size: 17px; }
  .bipagem__manual-row { flex-wrap: wrap; gap: 8px; }
  .bipagem__manual-row .bipagem__input { width: 100%; flex-basis: 100%; min-width: 0; }
  .bipagem__manual-row .btn { flex: 1; }
  .bipagem__log-item { flex-wrap: wrap; }
  .bipagem__log-detail { flex-basis: calc(100% - 28px); white-space: normal; overflow-wrap: anywhere; }
  .upseller { gap: 14px !important; }
  .upseller__subtitle { font-size: 12px !important; }
  #upsellerRefresh { min-height: 44px !important; }
  .upseller__state-counts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .upseller__state-count { padding: 12px 14px !important; min-height: 86px !important; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; }
  .upseller__state-count-label { grid-column: 1 / -1; font-size: 10px !important; }
  .upseller__state-count-value { font-size: 27px !important; margin: 0 !important; text-align: left; }
  .upseller__state-count-progress { margin: 0; justify-self: end; font-size: 10px; }
  .upseller__tabs { border-radius: 11px; padding: 4px !important; }
  .upseller__tab { min-height: 44px; padding: 10px 12px !important; font-size: 12px !important; gap: 6px; }
  .upseller__toolbar { padding: 10px !important; gap: 8px !important; }
  .upseller__toolbar .input { min-height: 46px !important; height: auto !important; }
  .upseller__toolbar select.input { font-size: 16px !important; }
  .upseller-order { padding: 14px !important; }
  .upseller-order__number { font-size: 12px; }
  .upseller-order__time { font-size: 11px; }
  .upseller-order__amount { font-size: 14px; }
  .upseller-order__actions-inline .btn, .upseller-order-item > .btn { min-height: 44px !important; }
  .upseller-order-item__name { font-size: 13px !important; }
  .upseller-order__customer { gap: 4px 8px; line-height: 1.5; }
  #upsellerKanbanBoard .kanban-column { padding: 12px; border-radius: 14px; }
  #upsellerKanbanBoard .kanban-card { padding: 12px !important; }
  .kanban-column__header { padding-bottom: 12px; }
  .kanban-color-chip, .kanban-proj-horizon__chip { padding-inline: 9px; }
  .bestsellers__toolbar { gap: 8px; padding: 12px; }
  .bestsellers__period-info { width: 100%; margin-left: 0; font-size: 12px; }
  .bestseller-card { padding: 12px; gap: 10px; }
  .bestseller-card__rank { min-width: 24px; font-size: 12px; }
  .bestseller-card__img { width: 40px; height: 40px; }
  .bestseller-card__name { font-size: 13px; }
  .bestseller-card__meta { font-size: 11px; }
  .bestseller-card__stock-badge { margin-left: 0; }
  .upseller-map__source { grid-template-columns: 90px minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
  #upsellerProcessDialog .upseller-process__source-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) 44px; align-items: start; gap: 5px 8px; padding-block: 10px; }
  #upsellerProcessDialog .upseller-process__source-item + .upseller-process__source-item { border-top: 1px solid var(--ds-border); }
  #upsellerProcessDialog .upseller-process__source-qty { grid-column: 1; grid-row: 1; padding-top: 2px; min-width: 0; }
  #upsellerProcessDialog .upseller-process__source-name { grid-column: 2; grid-row: 1; font-size: 13px; line-height: 1.45; color: var(--ds-text); overflow-wrap: anywhere; }
  #upsellerProcessDialog .upseller-process__source-sku { grid-column: 2; grid-row: 2; justify-self: start; max-width: 100%; overflow-wrap: anywhere; font-size: 11px; }
  #upsellerProcessDialog .upseller-process__source-attr { grid-column: 2; grid-row: 3; overflow-wrap: anywhere; }
  #upsellerProcessDialog .upseller-process__edit-map { grid-column: 3; grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; align-self: start; }
  #upsellerProcessDialog .upseller-process__source-item:not(:has(.upseller-process__edit-map)) { grid-template-columns: 24px minmax(0, 1fr); }
  #upsellerProcessDialog .upseller-process__item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  #upsellerProcessDialog .upseller-process__item-img { width: 38px; height: 38px; }
  .upseller-process__item-qty-wrap { min-width: 56px; }
  .upseller-process__item-qty-input { width: 46px; }
}
@media (max-width: 360px) {
  .upseller__toolbar { grid-template-columns: minmax(0, 1fr) !important; }
  .pricing__cards, .filament__list { grid-template-columns: minmax(0, 1fr); }
  .notification-item { grid-template-columns: 38px minmax(0, 1fr); }
  .notification-item__action { grid-column: 2; grid-row: auto; justify-self: start; }
}

/* Screen ergonomics: compact work areas with controls next to their content.
   Production and dialog layout are maintained in their dedicated UI layers. */
#historyPanel, #pricingPanel, #pricingAdminPanel, #settingsPanel, #financePanel,
#filamentPanel, #wastePanel, #scanPanel, #notificationsPanel { padding-top: 16px !important; }
#historyPanel .history__head > div:first-child, #pricingPanel .pricing__head,
#pricingAdminPanel .pricing__head h2, #notificationsPanel .notifications-header h2,
#filamentPanel .finance__title, #wastePanel .finance__title { display: none; }
:is(#historyPanel, #pricingPanel, #pricingAdminPanel, #settingsPanel, #scanPanel) .history__crumb { display: none; }
#historyPanel .history__filters { margin-top: 0; }
#scanPanel .scan__head h2 { font-size: 17px !important; }
:is(#historyPanel, #pricingPanel, #pricingAdminPanel, #settingsPanel, #financePanel, #filamentPanel, #wastePanel, #scanPanel, #notificationsPanel)
:is(.history__head, .pricing__head, .settings__head, .finance__header, .scan__head, .notifications-header) { margin-bottom: 16px; }
#pricingPanel .pricing__split { align-items: start; gap: 16px !important; }
#pricingPanel .pricing__box { padding: 18px !important; }
#pricingPanel .pricing__box-head { padding-bottom: 12px; margin-bottom: 14px; }
#pricingPanel .pricing__grid { gap: 12px !important; }
#pricingPanel .pricing__color-toggle, #pricingPanel .pricing__product-field { grid-column: 1 / -1; }
#pricingPanel .pricing__photo--thumb { width: 44px; height: 44px; flex: 0 0 44px; }
#pricingPanel .pricing__photo--thumb img { width: 100%; height: 100%; object-fit: cover; }
#pricingPanel .pricing__product-row { gap: 10px; }
#pricingPanel .pricing__product-row select { flex: 1; width: 0; min-width: 0; }
#pricingPanel .pricing__box-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ds-border); }
#pricingPanel .pricing__cards { grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 10px !important; margin-block: 16px; }
#pricingPanel .pricing-card { padding: 14px !important; border-radius: 12px; }
#pricingPanel .pricing-card__value { font-size: 24px !important; line-height: 1.2; }
#pricingPanel .pricing-card:has(.pricing-card__value--ok) { background: var(--module-ok-bg) !important; border-color: var(--module-ok-border) !important; }
#pricingPanel .pricing-card:has(.pricing-card__value--bad) { background: var(--module-danger-bg) !important; border-color: var(--module-danger-border) !important; }
#pricingAdminPanel .pricing-admin > h3 { display: none; }
#pricingAdminPanel .pricing-admin__grid { align-items: start; gap: 16px; }
#pricingAdminPanel .pricing-admin__card { padding: 18px; gap: 12px; }
#pricingAdminPanel .pricing-admin__card h4 { padding-bottom: 12px; border-bottom: 1px solid var(--ds-border); }
#pricingAdminPanel .pricing-admin__actions { justify-content: flex-end; border-top: 1px solid var(--ds-border); margin-top: 4px; padding-top: 14px; }
#pricingAdminPanel .pricing-admin__actions .btn { flex: 0 1 auto; min-width: 88px; }

#settingsPanel .settings__head:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 18px; }
#settingsPanel .settings__head:first-child > :not(.settings__actions) { grid-column: 1; }
#settingsPanel .settings__head:first-child .settings__actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding: 0 !important; }
#settingsPanel .settings__head h2 { font-size: 20px !important; }
#settingsPanel .settings__subtitle { margin: 0; }
#settingsPanel #pushNotifSection { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 12px; }
#settingsPanel #pushNotifSection h2 { font-size: 15px !important; margin: 0; }
#settingsPanel #pushNotifSection .settings__subtitle { grid-column: 1; font-size: 12px; }
#settingsPanel #pushNotifSection .settings__actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 0 !important; }
#settingsPanel .settings__form { max-width: none; padding: 18px !important; margin: 0 0 20px; gap: 8px; border-radius: 14px; }
#settingsPanel .settings__form > label { font-size: 12px; font-weight: 600; margin-top: 6px; }
#settingsPanel .settings__hint { font-size: 11px; line-height: 1.5; padding-bottom: 4px; }
#settingsPanel .settings__checks { margin-top: 10px; padding: 10px 14px; }
#settingsPanel .settings__check { min-height: 44px; font-size: 13px; }
#settingsPanel .settings__form .settings__actions { margin-top: 10px; padding-top: 12px !important; border-top: 1px solid var(--ds-border) !important; }

#historyPanel .history__head { display: block; }
#historyPanel .history__filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) repeat(2, minmax(130px, .8fr)); width: 100%; gap: 12px; margin-top: 16px; }
#historyPanel .history__filters .input { width: 100%; max-width: none; }
#historyPanel .history__toolbar { padding: 6px 10px !important; margin-bottom: 12px; gap: 8px; }
#historyPanel .history__chips { flex: 1; gap: 2px; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
#historyPanel .history__chips .chip { padding-inline: 12px; font-size: 12px; border-radius: 8px; }
#historyPanel .history__toolbar__right { gap: 10px; }
#historyPanel .history__table :is(th, td) { padding: 10px 12px !important; }
#historyPanel .history__cell-product { max-width: 310px; line-height: 1.4; }

#financePanel .finance__toolbar, #wastePanel .finance__toolbar { padding: 8px 12px !important; margin-bottom: 12px; gap: 10px; }
#financePanel .finance__tabs { width: fit-content; max-width: 100%; margin-bottom: 16px; }
#financePanel .finance__kpis { margin-bottom: 14px; gap: 10px; }
#financePanel .finance-kpi { padding: 15px 16px; border-radius: 12px; }
#financePanel .finance-kpi__value { font-size: clamp(23px, 1.7vw, 28px); }
#financePanel .finance__breakdown { margin-bottom: 14px; gap: 10px; }
#financePanel .finance-brk__group { padding: 14px 16px; border-radius: 12px; }
#financePanel .finance-brk__row { padding-block: 4px; }
#financePanel .finance__chart-card, #financePanel .finance__ranking { padding: 18px; border-radius: 14px; }
#financePanel .finance-rank { padding: 12px; border-radius: 10px; }
#financePanel .finance-rank__bar { height: 3px; }
#financePanel .finance__entries-head { padding: 14px 16px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 12px; }
#financePanel .finance__entries-note { padding-inline: 4px; margin: 10px 0 16px; font-size: 12px; }
#financePanel .finance-entry { padding: 13px 16px; border-radius: 12px; }
#financePanel .finance-entry__amount { font-size: 17px; font-variant-numeric: tabular-nums; }
#financePanel .finance-entry__actions { gap: 6px; }
#wastePanel .waste-form { padding: 16px; margin-bottom: 16px; border-radius: 14px; }
#wastePanel .waste-form__row { gap: 12px; }
#wastePanel .waste-form__row + .waste-form__row { margin-top: 12px; }
#wastePanel .finance__charts { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 12px; }
#wastePanel .finance__chart-card { padding: 16px; }
#wastePanel .finance__ranking { padding: 16px; }
#wastePanel .waste-item { padding: 12px; gap: 10px; }

#filamentPanel .finance__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
#filamentPanel .finance-kpi { padding: 12px 14px; gap: 5px; border-radius: 12px; }
#filamentPanel .finance-kpi__value { font-size: 24px; }
#filamentPanel .filament__alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
#filamentPanel .filament__filters { gap: 6px; margin-bottom: 14px; }
#filamentPanel .fil-chip { min-height: 44px; padding: 8px 12px; font-size: 12px; }
#filamentPanel .filament__list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
#filamentPanel .fil-card .card__img { padding: 6px; min-height: 0; border: 0; border-radius: 0; background: transparent; aspect-ratio: auto; }
#filamentPanel .fil-card .card__img > img { width: 100%; height: 144px; aspect-ratio: auto; object-fit: cover; border-radius: 9px; }
#filamentPanel .fil-card .card__img > .fil-card__noimg { display: grid; place-items: center; height: 144px; background: var(--ds-inset); border-radius: 9px; }
#filamentPanel .fil-card .card__img::after { display: none; }
#filamentPanel .fil-card .card__title { min-height: 2.8em; margin: 0; }
#filamentPanel .fil-card .card__body { padding: 10px 12px 12px; gap: 8px; }
#filamentPanel .fil-card .card__split { margin: 0; padding: 10px; gap: 7px; border-radius: 9px; }
#filamentPanel .fil-card .card__split span { font-size: 11px; gap: 10px; }
#filamentPanel .fil-card .card__split strong { font-size: 12px; white-space: nowrap; }
#filamentPanel .fil-card__bar { margin: 0; height: 4px; }
#filamentPanel .fil-card__notes { margin: 0; font-size: 11px; line-height: 1.45; }
#filamentPanel .fil-card .card__footer { padding-top: 4px; }
#filamentPanel .fil-card .card__actions-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#filamentPanel .fil-card .card__actions-inline .btn { min-height: 44px; padding-inline: 8px; font-size: 12px; }
#filamentPanel .fil-card .card__img-top-right { top: 12px; right: 12px; gap: 6px; }
#filamentPanel .fil-card .card__img-top-right .btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 9px; }

body:not([data-upseller-tab="production"]) #upsellerPanel { gap: 14px !important; }
body:not([data-upseller-tab="production"]) #upsellerPanel > .upseller__header { justify-content: space-between !important; margin: 0; gap: 12px; }
body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__title-block { flex: 1; }
body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-counts-grid { width: 100% !important; max-width: none !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px !important; }
body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 72px !important; padding: 10px 14px !important; gap: 3px 10px; border-radius: 12px !important; }
body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count-label { grid-column: 1; font-size: 10px !important; }
body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count-value { grid-column: 2; grid-row: 1 / span 2; font-size: 26px !important; margin: 0 !important; }
body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count-progress { grid-column: 1; justify-self: start; margin: 0; }
body:is([data-upseller-tab="bipagem"], [data-upseller-tab="bestsellers"], [data-upseller-tab="produced"], [data-upseller-tab="processed"]) #upsellerStateCounts { display: none !important; }
#upsellerTabOrders .upseller__toolbar { padding: 10px !important; gap: 8px !important; margin-bottom: 12px; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller__orders-list { gap: 12px; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order { padding: 14px !important; border-radius: 12px; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__head { flex-wrap: wrap !important; gap: 6px 10px !important; padding-bottom: 10px !important; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__number { max-width: none !important; min-width: 150px !important; width: auto !important; overflow: visible; text-overflow: clip; white-space: normal; word-break: break-word; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__buyer { padding: 9px 0; font-size: 12px; margin: 0; gap: 4px 12px; border-color: var(--ds-border); }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__items { padding-top: 8px; gap: 6px; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order-item { border-radius: 9px; padding: 8px 10px !important; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order-item__name { line-height: 1.4 !important; display: block !important; -webkit-line-clamp: unset; }
:is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__actions-inline .btn { min-height: 44px !important; }
#upsellerTabBipagem .bipagem { max-width: 900px; margin: 0 auto; gap: 16px; }
#upsellerTabBipagem .bipagem__scan { padding: 20px; gap: 10px; border-radius: 14px; }
#upsellerTabBipagem .bipagem__icon { font-size: 28px; }
#upsellerTabBipagem .bipagem__hint { max-width: 520px; font-size: 13px; }
#upsellerTabBipagem .bipagem__camera-wrap { width: 100%; max-width: 680px; min-height: 180px; max-height: 320px; border-radius: 12px; }
#upsellerTabBipagem .bipagem__manual { width: 100%; max-width: 540px; margin-top: 0; padding-top: 4px; }
#upsellerTabBipagem .bipagem__manual-row { gap: 8px; }
#upsellerTabBipagem .bipagem__log-wrap { margin: 0; }
#upsellerTabBipagem .bipagem__log-item { padding: 10px 12px; gap: 8px; }
:is(#upsellerTabBestsellers, #upsellerTabProduced) .bestsellers__toolbar { padding: 8px 12px; margin-bottom: 12px; }
:is(#upsellerTabBestsellers, #upsellerTabProduced) .bestsellers__list { gap: 8px; }
:is(#upsellerTabBestsellers, #upsellerTabProduced) .bestseller-card { padding: 12px 14px; border-radius: 12px; gap: 12px; }
:is(#upsellerTabBestsellers, #upsellerTabProduced) .bestseller-card__bar { height: 3px; }
:is(#upsellerTabBestsellers, #upsellerTabProduced) .bestseller-card__name { margin-bottom: 6px; font-size: 13px; }
#notificationsPanel .notifications-list { gap: 10px; align-items: start; }
#notificationsPanel .notification-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; border-radius: 12px; }
#notificationsPanel .notification-item__img, #notificationsPanel .notification-item__icon { width: 44px; height: 44px; grid-column: 1; grid-row: 1 / span 2; }
#notificationsPanel .notification-item__body { grid-column: 2; grid-row: 1; }
#notificationsPanel .notification-item__time { grid-column: 2; grid-row: 2; font-size: 11px; }
#notificationsPanel .notification-item__action { grid-column: 3; grid-row: 1 / span 2; }
#notificationsPanel .notification-item__desc { font-size: 12px; line-height: 1.45; }
#scanPanel .scan__content { max-width: 900px; gap: 14px; }
#scanPanel .scan__camera-wrap { border-radius: 12px; }
#scanPanel .scan__manual { padding: 14px; }
#kanbanPanel .kanban-board { gap: 12px; }
#kanbanPanel .kanban-column { padding: 12px; border-radius: 12px; }
#kanbanPanel .kanban-column__header { margin-bottom: 10px; padding: 0 0 10px; }
#kanbanPanel .kanban-column__body { gap: 8px; }
#kanbanPanel .kanban-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 12px; gap: 8px 10px; }
#kanbanPanel .kanban-card__img { width: 44px; height: 44px; }
#kanbanPanel .kanban-card__info { min-width: 0; }
#kanbanPanel .kanban-card__name { white-space: normal; overflow-wrap: anywhere; }
#kanbanPanel .kanban-card__actions { grid-column: 1 / -1; }
#kanbanPanel .kanban-card__move-btn { flex: 1; }

@media (min-width: 1100px) {
  #settingsPanel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "intro intro" "notifications notifications" "manage createheading" "manage create"; grid-template-rows: auto auto auto 1fr; align-items: start; gap: 16px 20px; }
  #settingsPanel > .settings__head:first-child { grid-area: intro; margin: 0; }
  #settingsPanel > #pushNotifSection { grid-area: notifications; margin: 0; }
  #settingsPanel > #manageUserForm { grid-area: manage; }
  #settingsPanel > .settings__head:nth-of-type(3) { grid-area: createheading; margin: 0; padding-inline: 2px; }
  #settingsPanel > #createUserForm { grid-area: create; }
  #settingsPanel .settings__form { margin: 0; }
  #settingsPanel .settings__form > .input { margin-bottom: 4px; }
  #financePanel .finance__ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  #settingsPanel .settings__form { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; }
  #settingsPanel .settings__form > label { margin: 0; }
  #settingsPanel .settings__form > .settings__hint { grid-column: 2; }
  #settingsPanel .settings__form > :is(fieldset, .settings__actions, .login-error, .settings__ok) { grid-column: 1 / -1; }
  #settingsPanel .settings__checks { margin-top: 2px; }
  #wastePanel .finance__charts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #wastePanel .finance__chart-card:first-child { grid-column: 1 / -1; }
  #historyPanel .history__filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #historyPanel .history__filters > label:first-child { grid-column: 1 / span 2; }
  #historyPanel .history__filters > label:nth-child(2) { grid-column: 3 / span 2; }
  #historyPanel .history__filters > label:nth-child(n+3) { grid-column: span 2; }
}
@media (max-width: 1199px) {
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__head::before { display: none !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__number { order: 0 !important; flex: 1 1 calc(100% - 120px) !important; min-width: 0 !important; max-width: none !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__amount { order: 1 !important; flex: 0 0 auto; margin-left: auto !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) :is(.upseller-order__platform, .upseller-order__state, .upseller-order__deadline) { order: 2 !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__time { order: 3 !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__actions-inline { order: 4 !important; }
  #filamentPanel .finance__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  #filamentPanel .finance-kpi { padding: 12px 10px; }
  #filamentPanel .finance-kpi__label { font-size: 9px; letter-spacing: .035em; }
}
@media (max-width: 767px) {
  #historyPanel, #pricingPanel, #pricingAdminPanel, #settingsPanel, #financePanel, #filamentPanel, #wastePanel, #scanPanel, #notificationsPanel { padding-top: 12px !important; }
  #pricingPanel .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #pricingPanel .pricing__box--sim .pricing__grid > label:nth-child(-n+3) { grid-column: 1 / -1; }
  #pricingPanel .pricing__box { padding: 16px !important; }
  #pricingPanel .pricing__cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  #pricingPanel .pricing-card { padding: 12px !important; }
  #pricingPanel .pricing-card__value { font-size: 21px !important; }
  #pricingPanel .pricing__box-actions .btn { width: 100%; }
  #pricingAdminPanel .pricing-admin__card { padding: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pricingAdminPanel .pricing-admin__card > :is(h4, .pricing-admin__actions) { grid-column: 1 / -1; }
  #pricingAdminPanel .pricing-admin__card > label:nth-of-type(-n+2) { grid-column: 1 / -1; }
  #settingsPanel .settings__head:first-child { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #settingsPanel .settings__head:first-child .settings__actions { grid-column: 1; grid-row: auto; justify-self: start; padding-top: 6px !important; }
  #settingsPanel #pushNotifSection { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  #settingsPanel #pushNotifSection .settings__actions { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  #settingsPanel .settings__actions .btn { flex: 0 1 auto; }
  #settingsPanel .settings__form { padding: 16px !important; gap: 7px; }
  #settingsPanel .settings__form .settings__actions { justify-content: space-between; gap: 8px; }
  #settingsPanel .settings__form .settings__actions .btn--primary { flex: 1; }
  #historyPanel .history__filters { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; margin-top: 12px; }
  #historyPanel .history__filters > label:nth-child(-n+2) { grid-column: 1 / -1; }
  #historyPanel .history__toolbar { display: grid; grid-template-columns: minmax(0, 1fr); padding: 6px 8px !important; }
  #historyPanel .history__chips { width: 100%; }
  #historyPanel .history__toolbar__right { justify-content: space-between; padding-inline: 4px; }
  #historyPanel .history__table tbody { gap: 8px; }
  #historyPanel .history__table tr { padding: 10px; gap: 0 10px; }
  #historyPanel .history__table td:nth-child(4) { grid-column: 1 / -1; grid-row: 1; padding-bottom: 10px !important; border-bottom: 1px solid var(--ds-border); margin-bottom: 3px; }
  #historyPanel .history__table td:nth-child(7) { grid-column: 1 / -1; }
  #historyPanel .history__table td { padding: 5px 3px !important; }
  #financePanel .finance__tabs { width: 100%; }
  #financePanel .finance__toolbar, #wastePanel .finance__toolbar { display: flex !important; align-items: center; flex-wrap: wrap; }
  #financePanel .finance__period-select, #wastePanel .finance__period-select { flex: 1; min-width: 120px !important; width: auto !important; }
  #financePanel .finance__period-info, #wastePanel .finance__period-info { width: 100%; font-size: 11px; }
  #financePanel .finance-kpi { padding: 12px; }
  #financePanel .finance-kpi__value { font-size: 21px; }
  #financePanel .finance-brk__group { padding: 12px 14px; }
  #financePanel .finance-brk__head { margin-bottom: 6px; }
  #financePanel .finance__chart-card, #financePanel .finance__ranking { padding: 14px; }
  #financePanel .finance-rank { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
  #financePanel .finance-rank__pos { min-width: 0; font-size: 11px; }
  #financePanel .finance-rank__name { font-size: 12px; }
  #financePanel .finance-rank__lucro { font-size: 12px; }
  #financePanel .finance-rank__meta { font-size: 10px; gap: 3px 8px; }
  #financePanel .finance__entries-head { padding: 12px; }
  #financePanel .finance__entries-head .btn { width: 100%; }
  #financePanel .finance-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
  #financePanel .finance-entry__main { grid-column: 1; }
  #financePanel .finance-entry__amount { grid-column: 2; grid-row: 1; align-self: start; font-size: 15px; }
  #financePanel .finance-entry__actions { grid-column: 1 / -1; justify-self: end; }
  #wastePanel .finance__charts { grid-template-columns: minmax(0, 1fr) !important; }
  #wastePanel .waste-form__field--grow { flex-basis: 100%; }
  #filamentPanel .finance__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px; }
  #filamentPanel .finance-kpi { padding: 10px; min-height: 65px; }
  #filamentPanel .finance-kpi__value { font-size: 22px; }
  #filamentPanel .filament__list { grid-template-columns: minmax(0, 1fr) !important; }
  #filamentPanel .fil-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; }
  #filamentPanel .fil-card .card__img { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; overflow: visible; }
  #filamentPanel .fil-card .card__img > img, #filamentPanel .fil-card .card__img > .fil-card__noimg { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 8px; }
  #filamentPanel .fil-card .card__img-top { position: static; display: block; order: 1; padding: 0; }
  #filamentPanel .fil-card .card__stock { display: block; position: static; text-align: center; width: 100%; font-size: 12px; padding: 6px; background: var(--ds-inset); color: var(--ds-text); border: 1px solid var(--ds-border); }
  #filamentPanel .fil-card .fil-card__badge { position: static; order: 2; font-size: 9px; text-align: center; padding: 4px; border-radius: 6px; }
  #filamentPanel .fil-card .card__img-top-right { position: static; order: 3; display: grid; grid-template-columns: 44px 44px; gap: 4px; }
  #filamentPanel .fil-card .card__body { padding: 0; gap: 8px; }
  #filamentPanel .fil-card .card__title { min-height: 0; font-size: 13px; }
  #filamentPanel .fil-card .card__split { padding: 8px; gap: 6px; }
  #filamentPanel .fil-card .card__split span { font-size: 11px; }
  #filamentPanel .fil-card .card__split strong { font-size: 12px; }
  #filamentPanel .fil-card .card__actions-inline .btn { font-size: 12px; }
  body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-counts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count { min-height: 64px !important; padding: 8px 12px !important; }
  body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count-label { font-size: 9px !important; }
  body:not([data-upseller-tab="production"]) #upsellerPanel .upseller__state-count-value { font-size: 25px !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order { padding: 12px !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__actions-inline { width: 100% !important; margin: 4px 0 0 !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__actions-inline .btn { flex: 1; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order__number { font-size: 12px; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order-item { padding: 8px !important; column-gap: 6px !important; }
  :is(#upsellerTabOrders, #upsellerTabProcessed) .upseller-order-item__name { font-size: 12px !important; }
  #upsellerTabBipagem .bipagem__scan { padding: 16px 12px; }
  #upsellerTabBipagem .bipagem__camera-wrap { min-height: 160px; max-height: 260px; }
  #upsellerTabBipagem .bipagem__controls .btn { min-width: 160px; }
  #upsellerTabBipagem .bipagem__manual-row .bipagem__input { width: 0; flex: 1 1 160px; }
  #upsellerTabBipagem .bipagem__manual-row .btn { flex: 0 0 auto; }
  :is(#upsellerTabBestsellers, #upsellerTabProduced) .bestseller-card { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr); padding: 12px; gap: 8px; align-items: start; }
  :is(#upsellerTabBestsellers, #upsellerTabProduced) .bestseller-card__rank { min-width: 0; padding-top: 12px; }
  :is(#upsellerTabBestsellers, #upsellerTabProduced) .bestseller-card__img { width: 40px; height: 40px; }
  #notificationsPanel .notification-item { gap: 6px 10px; padding: 12px; }
  #kanbanPanel .kanban-tabs { margin-bottom: 12px; padding: 4px; gap: 4px; }
  #kanbanPanel .kanban-tab { flex: 1; min-height: 44px; padding: 8px; font-size: 11px; }
}
