/* Parou de vender */
#stoppedView .stopped-head h2 { margin: 0; font-size: 1.1rem; }
#stoppedView .stopped-head p { margin: 2px 0 12px; color: var(--muted); font-size: .86rem; max-width: 100ch; }
#stoppedView .stopped-form { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
#stoppedView .stopped-field { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; color: var(--muted); }
#stoppedView .stopped-field > span { font-weight: 700; color: var(--ink); }
#stoppedView .stopped-refs { flex: 1 1 100%; }
#stoppedView .stopped-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
#stoppedView .stopped-chips em { color: var(--muted); }
#stoppedView .stopped-chip { border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
#stoppedView .stopped-chip b { margin-left: 4px; }
#stoppedView .stopped-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#stoppedView input[type=date], #stoppedView input[type=search] { height: 35px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
#stoppedView .stopped-check { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--ink); }
#stoppedView .stopped-check small { color: var(--muted); }
#stoppedView .stopped-actions { display: flex; gap: 8px; margin-left: auto; }
#stoppedView .stopped-actions a.button { text-decoration: none; display: inline-flex; align-items: center; }
#stoppedView .stopped-summary { margin: 12px 2px 0; font-size: .9rem; }
#stoppedView .stopped-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 12px 0; }
#stoppedView .stopped-kpi { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 2px; }
#stoppedView button.stopped-kpi { cursor: pointer; }
#stoppedView button.stopped-kpi:hover, #stoppedView button.stopped-kpi:focus-visible { border-color: var(--blue); outline: none; }
#stoppedView .stopped-kpi span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
#stoppedView .stopped-kpi strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
#stoppedView .stopped-kpi small { font-size: .74rem; color: var(--muted); }
#stoppedView .stopped-warn { color: var(--amber-dark, #8a5a00); background: var(--amber-soft, #fff6e0); border: 1px solid var(--amber, #d99a00); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: .84rem; }
#stoppedView .stopped-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
#stoppedView .stopped-tabs button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .84rem; }
#stoppedView .stopped-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#stoppedView .stopped-tabs button span { margin-left: 6px; font-size: .74rem; opacity: .8; }
#stoppedView .stopped-body { padding: 0; overflow: hidden; }
#stoppedView .stopped-list-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 10px 12px; font-size: .8rem; color: var(--muted); }
#stoppedView .stopped-list-head label { display: flex; flex-direction: column; gap: 4px; }
#stoppedView .stopped-table-wrap { overflow-x: auto; max-height: 70vh; }
#stoppedView .stopped-table { border-collapse: collapse; width: 100%; font-size: .8rem; }
#stoppedView .stopped-items { min-width: 1100px; }
#stoppedView .stopped-table th, #stoppedView .stopped-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
#stoppedView .stopped-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
#stoppedView .stopped-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#stoppedView .stopped-table small { display: block; color: var(--muted); font-size: .72rem; }
#stoppedView .stopped-table .stopped-target { background: var(--red-soft); }
#stoppedView .stopped-click { cursor: pointer; }
#stoppedView .stopped-table tr.stopped-total-row td, #stoppedView .stopped-table tr.stopped-total-row th { background: var(--blue-soft); font-weight: 700; border-bottom: 1px solid var(--line-strong); }
#stoppedView .stopped-table tr.stopped-total-row.grand td, #stoppedView .stopped-table tr.stopped-total-row.grand th { border-top: 2px solid var(--navy); background: var(--surface-muted); }
#stoppedView .stopped-table tr.stopped-total-row td { white-space: nowrap; }
#stoppedView .stopped-list-head label.stopped-group { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; align-self: center; color: var(--ink); }
#stoppedView .stopped-cell-link { all: unset; cursor: pointer; color: var(--blue-dark, var(--blue)); text-decoration: underline; text-underline-offset: 2px; font-variant-numeric: tabular-nums; }
#stoppedView .stopped-cell-link:focus-visible { outline: 2px solid var(--blue); border-radius: 3px; }
#stoppedView [data-stopped-open] { cursor: pointer; }
/* Janela suspensa com os produtos do cartão/linha clicada */
#stoppedView .stopped-dialog { width: min(1500px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 15px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgba(7, 21, 38, .32); }
#stoppedView .stopped-dialog::backdrop { background: rgba(6, 18, 32, .64); }
#stoppedView .stopped-dialog-shell { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 16px; }
#stoppedView .stopped-dialog-head { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; margin: 0 -18px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
#stoppedView .stopped-dialog-head h3 { margin: 0; font-size: 1.05rem; }
#stoppedView .stopped-dialog-head p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
#stoppedView .stopped-dialog-actions { display: flex; gap: 8px; align-items: center; }
#stoppedView .stopped-dialog-actions a.button { text-decoration: none; display: inline-flex; align-items: center; }
#stoppedView .stopped-dialog-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
#stoppedView .stopped-dialog-stats > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-muted); display: flex; flex-direction: column; gap: 2px; }
#stoppedView .stopped-dialog-stats span { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
#stoppedView .stopped-dialog-stats strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
#stoppedView .stopped-dialog-body { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#stoppedView .stopped-dialog-body .stopped-table-wrap { max-height: calc(100vh - 300px); }
@media (max-width: 640px) { #stoppedView .stopped-dialog { width: 100vw; max-height: 100vh; border-radius: 0; } }
#stoppedView .stopped-click:hover, #stoppedView .stopped-click:focus-visible { background: var(--surface-muted); outline: none; }
#stoppedView .stopped-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: .68rem; }
#stoppedView .stopped-signal { font-size: .74rem; white-space: nowrap; }
#stoppedView .stopped-signal.estoque-zerado { color: var(--red); font-weight: 700; }
#stoppedView .stopped-signal.embalagem-ve { color: var(--muted); }
#stoppedView .stopped-empty { color: var(--muted); padding: 16px; }
#stoppedView .stopped-note { color: var(--muted); font-size: .78rem; margin: 10px 2px; max-width: 110ch; }
@media (max-width: 640px) {
  #stoppedView .stopped-actions { margin-left: 0; width: 100%; }
}
#stoppedView .stopped-multi { flex: 0 1 260px; min-width: 220px; }
#stoppedView .stopped-multi .recovery-multi { max-width: none; }
#stoppedView .stopped-multi .recovery-multi-label { font-size: .78rem; font-weight: 700; color: var(--ink); }
#stoppedView .stopped-multi .recovery-multi-menu { left: 0; right: auto; }
#stoppedView #stoppedDepartmentFilter .recovery-multi-menu { left: auto; right: 0; }
#stoppedView .stopped-actions span { display: inline-flex; gap: 8px; }
@media (max-width: 640px) { #stoppedView .stopped-multi { flex-basis: 100%; } #stoppedView #stoppedDepartmentFilter .recovery-multi-menu { left: 0; right: auto; } }
@media (max-width: 640px) { #stoppedView .stopped-field { width: 100%; min-width: 0; } }
/* Padrão de grade (report-grid.mjs): título ordenável + linha de filtros */
#stoppedView .report-grid .grid-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; width: 100%; justify-content: inherit; }
#stoppedView .report-grid th.num .grid-sort { justify-content: flex-end; }
#stoppedView .report-grid .grid-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
#stoppedView .report-grid .grid-sort.active { color: var(--blue-dark, var(--blue)); }
#stoppedView .report-grid .sort-balloon { display: inline-flex; flex-direction: column; font-size: 7px; line-height: 7px; opacity: .45; }
#stoppedView .report-grid .grid-sort.active .sort-balloon { opacity: 1; }
#stoppedView .report-grid .sort-arrow { font-style: normal; color: var(--muted); }
#stoppedView .report-grid .sort-arrow.selected { color: var(--blue); }
#stoppedView .report-grid thead tr.grid-filters th { top: 30px; padding: 4px 4px 6px; text-transform: none; letter-spacing: 0; background: var(--surface-muted); }
#stoppedView .report-grid .grid-filters input, #stoppedView .report-grid .grid-filters select { width: 100%; min-width: 54px; height: 26px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: .74rem; }
#stoppedView .report-grid .grid-filters input[aria-invalid="true"] { border-color: var(--red); }
/* Calendário de seleção múltipla (dias em que vendeu) */
#stoppedView .stopped-cal-wrap { position: relative; }
#stoppedView .stopped-cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 30, 60, .18); padding: 10px; color: var(--ink); }
#stoppedView .stopped-cal[hidden] { display: none; }
#stoppedView .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
#stoppedView .cal-head strong { font-size: .9rem; }
#stoppedView .cal-nav { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; width: 30px; height: 28px; cursor: pointer; font-size: 1.05rem; line-height: 1; }
#stoppedView .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
#stoppedView .cal-wd { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
#stoppedView .cal-day { height: 32px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: .82rem; cursor: pointer; font-variant-numeric: tabular-nums; }
#stoppedView .cal-day:hover:not(:disabled) { border-color: var(--blue); }
#stoppedView .cal-day.out { color: var(--muted); opacity: .6; }
#stoppedView .cal-day.today { border-color: var(--line-strong); }
#stoppedView .cal-day.picked { background: var(--blue); color: #fff; font-weight: 700; opacity: 1; }
#stoppedView .cal-day.added { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; opacity: 1; }
#stoppedView .cal-day.target { background: var(--red-soft); color: var(--red); font-weight: 700; opacity: 1; }
#stoppedView .cal-day:disabled { cursor: not-allowed; }
#stoppedView .cal-day:disabled:not(.added):not(.target) { color: var(--muted); opacity: .35; }
#stoppedView .cal-hint { margin: 8px 0 6px; font-size: .72rem; color: var(--muted); line-height: 1.4; }
#stoppedView .cal-legend { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; }
#stoppedView .cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 4px; }
#stoppedView .cal-legend i.added { background: var(--blue-soft); border: 1px solid var(--blue); }
#stoppedView .cal-legend i.target { background: var(--red-soft); border: 1px solid var(--red); }
#stoppedView .cal-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
#stoppedView .cal-foot span { flex: 1 1 100%; font-size: .78rem; font-weight: 700; }
#stoppedView .cal-foot .button { padding: 6px 10px; font-size: .8rem; }
#stoppedView .cal-foot .button.primary { margin-left: auto; }

/* Filtro de lista com seleção múltipla no título da coluna (report-grid.mjs) */
#stoppedView .report-grid details.grid-multi { position: relative; }
#stoppedView .report-grid details.grid-multi > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 70px; height: 26px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .74rem; cursor: pointer; white-space: nowrap; }
#stoppedView .report-grid details.grid-multi > summary::-webkit-details-marker { display: none; }
#stoppedView .report-grid details.grid-multi > summary span { overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#stoppedView .report-grid details.grid-multi[open] > summary { border-color: var(--blue); }
#stoppedView .report-grid .grid-multi-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 230px; max-width: 320px; max-height: 300px; overflow: auto; padding: 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px rgba(15, 30, 60, .18); display: flex; flex-direction: column; gap: 4px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
#stoppedView .report-grid .grid-multi-menu label { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem; cursor: pointer; white-space: normal; }
#stoppedView .report-grid .grid-multi-menu .grid-multi-all { font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
#stoppedView .report-grid .grid-multi-menu footer { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
#stoppedView .report-grid .grid-multi-menu footer small { color: var(--muted); font-size: .7rem; }
#stoppedView .report-grid .grid-multi-menu footer .button { align-self: flex-end; padding: 5px 10px; font-size: .78rem; }
#stoppedView .report-grid th.num details.grid-multi .grid-multi-menu { left: auto; right: 0; }
#stoppedView .report-grid th:last-child details.grid-multi .grid-multi-menu, #stoppedView .report-grid th:nth-last-child(2) details.grid-multi .grid-multi-menu { left: auto; right: 0; }
#stoppedView .stopped-table tr.stopped-total-row.subtotal.outer td { background: #ece8fb; border-bottom: 2px solid var(--purple); }
html[data-theme="dark"] #stoppedView .stopped-table tr.stopped-total-row.subtotal.outer td { background: #2a2346; }
#stoppedView .stopped-sections { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; padding: 0 12px 10px; font-size: .78rem; color: var(--muted); }
#stoppedView .stopped-sections > span { align-self: center; }
#stoppedView .stopped-section { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 8px; background: var(--surface-muted); color: var(--ink); }
#stoppedView .stopped-section strong { font-size: .8rem; }
/* Correção 22/10: as caixas do filtro de lista herdavam o estilo dos campos de filtro (100% de largura, 26px de altura) */
#stoppedView .report-grid .grid-filters .grid-multi-menu { text-align: left; }
#stoppedView .report-grid .grid-filters .grid-multi-menu label { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; padding: 4px 2px; border-radius: 6px; text-align: left; line-height: 1.3; }
#stoppedView .report-grid .grid-filters .grid-multi-menu label:hover { background: var(--surface-muted); }
#stoppedView .report-grid .grid-filters .grid-multi-menu input[type=checkbox] { width: 15px; height: 15px; min-width: 0; margin: 1px 0 0; padding: 0; border: 0; border-radius: 3px; accent-color: var(--blue); flex: none; cursor: pointer; }
#stoppedView .report-grid .grid-filters .grid-multi-menu .grid-multi-all { padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); border-radius: 0; }
#stoppedView .report-grid .grid-filters .grid-multi-menu span { white-space: normal; }
#stoppedView .report-grid .grid-filters details.grid-multi > summary b { font-weight: 400; font-size: .7rem; color: var(--muted); }
#stoppedView .report-grid .grid-filters .grid-multi-menu { max-height: min(380px, 60vh); padding-bottom: 0; }
#stoppedView .report-grid .grid-filters .grid-multi-menu footer { position: sticky; bottom: 0; margin: 4px -8px 0; padding: 6px 8px 8px; background: var(--surface); }
