/* Painel do Vendedor: /vendedor (ferramentas por etapa e resumo da loja) e /vendedor/produtos (produtos e estoque).
   Usa expedicao.css (ex-card, ex-table, ex-stats…) e os tokens de styles.css. */
.vd-hero { padding-top: 18px; }
.vd-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(32px, 5vw, 52px); margin: 0; text-wrap: balance; }
.vd-hero .lead { margin: 14px 0 0; max-width: 62ch; }
.vd-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.vd-money { font-size: 24px !important; }
.vd-stats a { color: var(--accent); }
.vd-upsell { margin: 0; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--lime) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--lime) 55%, var(--line)); font-size: 14.5px; line-height: 1.5; }
.vd-upsell a { color: var(--ink); font-weight: 600; }
.vd-feature { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vd-feature h2 { margin: 0 0 6px; font-family: var(--display); font-size: 21px; display: flex; align-items: center; gap: 8px; }
.vd-feature h2 .ic { color: var(--accent); }
.vd-feature p { margin: 0; max-width: 70ch; }

.vd-group { display: grid; gap: 12px; margin-top: 10px; }
.vd-group-h h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.015em; }
.vd-group-h p { margin: 4px 0 0; font-size: 14.5px; }
.vd-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.vd-tool { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.vd-tool:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.vd-tool-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); color: var(--accent); }
.vd-tool-ic .ic { width: 20px; height: 20px; }
.vd-tool-t { display: grid; gap: 3px; min-width: 0; }
.vd-tool-t b { font-size: 14.5px; line-height: 1.3; }
.vd-tool-t small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .vd-tool { transition: none; } .vd-tool:hover { transform: none; } }

/* ---------- Produtos e estoque ---------- */
.vd-file { cursor: pointer; }
.vd-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.vd-toolbar input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.vd-canal { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.vd-canal select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; }
.vd-table td.num, .vd-table th.num { white-space: nowrap; }
.vd-table .vd-sku { font: 600 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.vd-table .vd-nome { min-width: 180px; }
.vd-table .vd-nome small { display: block; color: var(--muted); font-size: 12px; }
.vd-table .neg { color: var(--ex-bad); font-weight: 600; }
.vd-table .pos { color: var(--ex-ok); font-weight: 600; }
.vd-est { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.vd-est.low { color: var(--ex-warn); }
.vd-est.out { color: var(--ex-bad); }
.vd-act { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.vd-act .btn { padding: 6px 10px; font-size: 13px; }

.vd-dlg { border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); }
.vd-dlg::backdrop { background: rgba(15, 12, 25, .45); }
.vd-dlg-in { padding: 22px; display: grid; gap: 14px; }
.vd-dlg h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.vd-dlg [data-prod] { margin: -8px 0 0; }
.vd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vd-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.vd-fields label.wide { grid-column: 1 / -1; }
.vd-fields input { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 400; min-width: 0; }
.vd-fields input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.vd-dlg-a { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.vd-dlg-a .vd-del { margin-right: auto; color: var(--ex-bad); }
.vd-hist-h { margin: 6px 0 0; font-size: 14px; }
.vd-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; font-size: 13px; }
.vd-hist li { display: grid; grid-template-columns: 118px 56px 1fr auto; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); align-items: baseline; }
.vd-hist li:last-child { border-bottom: 0; }
.vd-hist .q.neg { color: var(--ex-bad); }
.vd-hist .q { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.vd-hist .m { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-hist .s { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .vd-stats { grid-template-columns: 1fr 1fr; }
  .vd-feature { flex-direction: column; align-items: flex-start; }
  .vd-fields { grid-template-columns: 1fr; }
  .vd-hist li { grid-template-columns: 80px 56px 1fr; }
  .vd-hist .s { display: none; }
}
.ex-msg.ok { background: color-mix(in srgb, var(--ex-ok) 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ex-ok) 35%, transparent); }
