/* Painel da loja e administração Beem */
:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --ink: #15181c;
  --ink-2: #3a4049;
  --muted: #69717b;
  --line: #dde0e5;
  --line-2: #eceef1;
  --good: #11744a;
  --good-bg: #e3f4ec;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --warn: #8a4d00;
  --warn-bg: #fff3dc;
  --radius: 6px;
  --radius-l: 10px;
  --side: 248px;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink, #0a3290); }
button, input, select, textarea { font: inherit; color: inherit; }
.i { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grow { flex: 1; }
.warn { color: var(--warn); display: block; margin-top: .25rem; }
code { font-size: .9em; background: var(--line-2); padding: .1em .35em; border-radius: 4px; }

.h2 { font-size: 1.15rem; font-weight: 700; font-stretch: 110%; margin: 0 0 1rem; letter-spacing: -.005em; }
.h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }

/* ---------- Botões ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: 0 1rem;
  border-radius: var(--radius); border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(.96); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-bd: var(--accent); }
.btn-ghost { --b-bg: transparent; }
.btn-ghost:hover { --b-bd: var(--ink); filter: none; }
.btn-danger { --b-bg: var(--surface); --b-fg: var(--bad); --b-bd: #f1b8b2; }
.btn-sm { min-height: 36px; padding: 0 .75rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.linkish { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: .2rem 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--ink); text-decoration-color: currentColor; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.upl { position: relative; overflow: hidden; }
.upl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Estrutura ---------- */
.pn { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; gap: .4rem; padding: 1rem .8rem 1rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.side-store { display: flex; align-items: center; gap: .65rem; min-width: 0; flex: 1; text-decoration: none; color: var(--ink); }
.side-store img { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.side-mono { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-stretch: 125%; flex: none; }
.side-name { font-weight: 700; font-stretch: 110%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-store img + .side-name { display: none; }
.side-view { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--muted); }
.side-view:hover { background: var(--line-2); color: var(--ink); }
.side-nav { display: grid; gap: 2px; padding: .8rem .6rem; align-content: start; flex: 1; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: var(--line-2); color: var(--ink); }
.side-nav a.mob-only { display: none; }
.side-nav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.pill { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: .78rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.side-user { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem .8rem .9rem 1.1rem; border-top: 1px solid var(--line-2); }
.side-user div { display: grid; min-width: 0; line-height: 1.3; }
.side-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user a { color: var(--ink); text-decoration: none; }
.side-user span { color: var(--muted); font-size: .85rem; }

.main { padding: 1.6rem clamp(16px, 3vw, 40px) 6rem; min-width: 0; max-width: 1360px; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1rem; margin-bottom: 1.4rem; }
.page-t { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 122%; letter-spacing: -.015em; line-height: 1.05; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .pn { grid-template-columns: minmax(0, 1fr); }
  .side-nav a.mob-only { display: flex; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { border-bottom: 0; padding: .7rem 1rem .3rem; }
  .side-nav { display: flex; overflow-x: auto; padding: .2rem .6rem .5rem; gap: .2rem; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; padding: .5rem .7rem; }
  .side-user { display: none; }
  .main { padding-top: 1.2rem; }
}

/* ---------- Mensagens ---------- */
.flash { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-weight: 500; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-erro { background: var(--bad-bg); color: var(--bad); }

/* ---------- Cartões e grades ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.3rem; }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.card-head .h2 { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.cols > .card + .card { margin-top: 0; }
.cols-team { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .cols, .cols-team { grid-template-columns: 1fr; } }
.narrow { max-width: 480px; }
.narrow-l { max-width: 760px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.stat { display: grid; gap: .1rem; padding: 1.1rem 1.2rem; background: var(--surface); text-decoration: none; color: var(--ink); }
a.stat:hover { background: #fafbfc; }
.stat-n { font-size: 2rem; font-weight: 800; font-stretch: 118%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-l { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.onboard { margin-bottom: 1rem; border-color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1.5rem; }
.steps li { display: flex; align-items: center; gap: .6rem; }
.steps li.done { color: var(--muted); text-decoration: line-through; }
.steps li.done .i { color: var(--good); }
.steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }

.empty-s { color: var(--muted); margin: .3rem 0 0; }
.empty-b { padding: 3rem 1.5rem; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-l); display: grid; gap: .6rem; justify-items: center; }
.empty-t { font-size: 1.15rem; font-weight: 650; margin: 0; }

/* ---------- Tabelas ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.card .tbl { border: 0; border-radius: 0; }
.tbl th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #fafbfc; }
.card .tbl th { background: none; padding-inline: 0 .9rem; }
.tbl td { padding: .75rem .9rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.card .tbl td { padding-inline: 0 .9rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .sub { display: block; color: var(--muted); font-size: .88rem; }
.tbl .strong { font-weight: 650; color: var(--ink); text-decoration: none; }
.tbl .strong:hover { text-decoration: underline; }
.tbl tr.off td { opacity: .55; }
.tbl-compact td { padding-block: .55rem; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl .actions > * + * { margin-left: .9rem; }
.tbl .actions form { display: inline; }
.c-ph { width: 112px; }
.c-ph img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }
.noph { display: grid; place-items: center; width: 96px; height: 72px; border-radius: 4px; background: var(--line-2); color: var(--muted); }
.c-chk { width: 40px; }
.tag-feat { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--warn); margin-top: .2rem; }
@media (max-width: 760px) {
  .hide-s { display: none; }
  .c-ph { width: 72px; }
  .c-ph img, .noph { width: 64px; height: 48px; }
}

.st, .ls { border: 1px solid var(--line); border-radius: 999px; padding: .3rem 1.8rem .3rem .75rem; font-size: .88rem; font-weight: 600; background-color: var(--surface); cursor: pointer; }
.st-disponivel, .ls-convertido { background-color: var(--good-bg); color: var(--good); border-color: transparent; }
.st-reservado, .ls-atendimento { background-color: var(--warn-bg); color: var(--warn); border-color: transparent; }
.st-vendido { background-color: var(--line-2); color: var(--ink-2); border-color: transparent; }
.st-rascunho, .ls-perdido { color: var(--muted); }
.ls-novo { background-color: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
select.is-free { color: var(--muted); }
.inline-status { margin: 0; }
.inline-status select { max-width: 100%; }

/* Abas e barra de ferramentas */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: .5rem .8rem; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.tabs a span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .2rem; }
.tabs a:hover { background: var(--line-2); }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a.on span { color: rgba(255, 255, 255, .7); }
.tb-search { display: flex; gap: .5rem; align-items: center; }
.search-s { display: flex; align-items: center; gap: .5rem; padding: 0 .7rem; height: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.search-s input { border: 0; outline: 0; background: none; min-width: 200px; color: var(--ink); }

/* ---------- Formulários ---------- */
.stack { display: grid; gap: 1rem; }
.grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .g2 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: .3rem; align-content: start; }
.card > .fld + .fld, .card > .fld + .chk, .card > .chk + .fld { margin-top: 1rem; }
.fld-l { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.fld-l em { font-style: normal; font-weight: 400; color: var(--muted); }
.fld-h { font-size: .82rem; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 42px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.fld textarea { resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld input:user-invalid { border-color: #e9a29b; }
.fld-narrow { max-width: 220px; }
.fld-inline { display: flex; align-items: center; gap: .6rem; }
.fld-inline .fld-l { white-space: nowrap; }
.fld-inline select { width: auto; }
.chk { display: inline-flex; align-items: flex-start; gap: .55rem; cursor: pointer; line-height: 1.35; padding: .25rem 0; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2rem 1.2rem; }
.optgroup { border: 0; padding: 0; margin: 0 0 1.2rem; }
.optgroup legend { font-weight: 650; padding: 0; margin-bottom: .4rem; color: var(--ink-2); }
.row-form { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; }
.row-form .fld { flex: 1; min-width: 160px; }
.color-row { display: flex; align-items: center; gap: .7rem; }
.color-row input[type="color"] { width: 56px; height: 42px; padding: 3px; cursor: pointer; }
.color-row output { font-variant-numeric: tabular-nums; color: var(--muted); }

.savebar { position: sticky; bottom: 0; z-index: 20; margin-top: 1rem; }
.savebar-in { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; padding: .8rem 1rem; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 -8px 24px -16px rgba(10, 14, 20, .25); }
.settings .card { scroll-margin-top: 80px; }
.anchors { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.anchors a { padding: .35rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.anchors a:hover { border-color: var(--ink); }
.logo-row { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.logo-prev { display: grid; place-items: center; min-width: 160px; height: 80px; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius); background: repeating-conic-gradient(#f3f4f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.logo-prev img { max-height: 60px; width: auto; }
.dns { margin-top: 1rem; padding: .9rem 1rem; background: var(--line-2); border-radius: var(--radius); }
.dns p { margin: 0 0 .4rem; }
.dns ul { margin: 0 0 .6rem; padding-left: 1.2rem; }

/* ---------- Cadastro do veículo ---------- */
.vf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 1rem; align-items: start; }
.vf-main .card + .card { margin-top: 1rem; }
.vf-side { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.vf-side .card + .card { margin-top: 0; }
@media (max-width: 1100px) {
  .vf { grid-template-columns: 1fr; }
  .vf-side { position: static; grid-row: 1; }
}
.fipe-box { padding: 1rem; margin: 0 0 1.2rem; border-radius: var(--radius); background: var(--accent-soft); }
.fipe-box p { margin: 0 0 .7rem; }
.fipe-box .grid { margin-bottom: 0; }
.fipe-box [data-fipe-msg]:empty { display: none; }
.fipe-box [data-fipe-msg] { margin: .7rem 0 0; }

.photos { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--line-2); cursor: grab; user-select: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo.dragging { opacity: .35; }
.photo.over { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-cover { display: none; position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 3px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; }
.photo:first-child .photo-cover { display: block; }
.photo-grip { position: absolute; left: 4px; bottom: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; background: rgba(255, 255, 255, .85); color: var(--ink-2); }
.photo-del { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--bad); cursor: pointer; opacity: 0; transition: opacity .15s; }
.photo:hover .photo-del, .photo:focus-within .photo-del { opacity: 1; }
@media (hover: none) { .photo-del { opacity: 1; } }
.photo.uploading { display: grid; place-items: center; color: var(--muted); font-size: .8rem; cursor: default; }
.photo.uploading::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 10%); background: var(--accent); transition: width .2s; }
.photo.failed { color: var(--bad); padding: 6px; text-align: center; }
.drop { display: grid; justify-items: center; gap: .3rem; margin-top: .8rem; padding: 1.2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.drop p { margin: 0; font-size: .9rem; }
.drop.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
[data-photos].has-photos .drop { padding: .7rem; }
[data-photos].has-photos .drop .i { display: none; }

.taglist { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.taglist li { display: flex; align-items: center; gap: .6rem; }
.taglist form { margin-left: auto; }
.code { font-weight: 700; font-stretch: 112%; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.copy { margin-left: .6rem; }
.danger { border-color: #f1d2ce; }

/* Etiquetas */
.explain-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: end; }
.explain p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.explain + .toolbar { margin-top: 1.5rem; }
@media (max-width: 860px) { .explain-in { grid-template-columns: 1fr; } }
.howto { margin-top: 1.2rem; }
.nums { margin: 0 0 .8rem; padding-left: 1.3rem; display: grid; gap: .4rem; }

/* Contatos */
.leads { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.lead.is-new { border-left: 3px solid var(--accent); }
.lead-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lead-name { margin: .4rem 0 .1rem; font-weight: 700; font-size: 1.08rem; }
.lead-phone { margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.lead-phone a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.lead-car { margin: .4rem 0 0; }
.lead-det { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: .5rem 0 0; }
.lead-det dt { font-size: .82rem; color: var(--muted); }
.lead-det dd { margin: 0; font-weight: 600; }
.lead-msg { margin: .6rem 0 0; padding: .6rem .8rem; background: var(--line-2); border-radius: var(--radius); white-space: pre-line; }
.lead-st { display: grid; gap: .3rem; justify-items: end; align-content: start; }
@media (max-width: 600px) { .lead { grid-template-columns: 1fr; } .lead-st { justify-items: start; } }
.lt { display: inline-block; padding: .12rem .5rem; border-radius: 4px; font-size: .8rem; font-weight: 650; background: var(--line-2); color: var(--ink-2); }
.lt-proposta { background: var(--accent-soft); color: var(--accent-ink); }
.lt-visita { background: var(--good-bg); color: var(--good); }
.lt-troca { background: var(--warn-bg); color: var(--warn); }
.lt-chamada { background: var(--ink); color: #fff; }
.src-nfc { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.feed-i:last-child { border-bottom: 0; }
.feed-b { display: grid; min-width: 0; line-height: 1.3; }
.feed-b span { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-i time { font-size: .85rem; white-space: nowrap; }

.roles { margin: 1.2rem 0 0; display: grid; gap: .4rem; }
.roles div { display: flex; gap: .6rem; }
.roles dt { font-weight: 650; min-width: 70px; }
.roles dd { margin: 0; color: var(--muted); }

/* ---------- Alerta ao vivo: cliente chamou no showroom ---------- */
.calls { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: .6rem; width: min(380px, calc(100vw - 32px)); }
.call {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; padding: .8rem; border-radius: var(--radius-l);
  background: var(--ink); color: #fff; box-shadow: 0 20px 48px -12px rgba(0, 0, 0, .45);
  animation: callin .35s cubic-bezier(.2, .8, .2, 1);
}
.call img, .call .call-ph { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: #2a2f36; }
.call-t { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: .3rem; }
.call-v { margin: .1rem 0 0; font-weight: 700; font-stretch: 110%; line-height: 1.2; }
.call-d { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.call-a { grid-column: 1 / -1; display: flex; gap: .5rem; }
.call-a .btn { flex: 1; min-height: 38px; }
.call .btn-ghost { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .3); }
.call.is-lead { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.call.is-lead .call-t, .call.is-lead .call-d { color: var(--muted); }
.call.is-lead .btn-ghost { --b-fg: var(--ink); --b-bd: var(--line); }
@keyframes callin { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Telas simples (login, impressão) ---------- */
.bare { min-height: 100vh; }
.bare-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(400px, 100%); }
.login-brand { margin-bottom: 1.6rem; }
.login-brand img { max-height: 56px; width: auto; }
.login-name { font-size: 1.8rem; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.login-t { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0 0 1.2rem; }
.login-foot { color: var(--muted); font-size: .85rem; margin-top: 2rem; }
.bare-main > .flash { width: min(400px, 100%); position: fixed; top: 16px; }

/* Administração Beem */
.adm-top { display: flex; align-items: center; justify-content: space-between; padding: .8rem clamp(16px, 3vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); }
.adm-brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -.01em; }
.adm-brand span { font-weight: 500; font-stretch: 100%; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.adm-main { padding: 1.6rem clamp(16px, 3vw, 40px) 4rem; max-width: 1280px; margin: 0 auto; }
.adm .stats { margin-bottom: 1.2rem; }

/* Impressão das etiquetas */
.bare:has(.labels) .bare-main { display: block; }
.print-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 21cm; margin: 0 auto 1rem; }
.print-bar p { margin: 0; color: var(--muted); }
.labels { display: grid; grid-template-columns: repeat(3, 6cm); gap: .4cm; justify-content: center; max-width: 21cm; margin: 0 auto; }
.label { position: relative; width: 6cm; height: 8cm; padding: .45cm .4cm .4cm; border: 1px solid #c9cdd3; border-radius: 4mm; background: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; break-inside: avoid; }
.label-top { height: .9cm; display: grid; place-items: center; max-width: 100%; }
.label-top img { max-height: .85cm; width: auto; max-width: 4.6cm; }
.label-top strong { font-size: 11pt; font-stretch: 120%; font-weight: 800; }
.label-qr { width: 3.9cm; height: 3.9cm; margin: .25cm 0 .2cm; }
.label-qr svg { width: 100%; height: 100%; }
.label-cta { margin: 0; font-size: 9.5pt; font-weight: 700; line-height: 1.2; }
.label-sub { margin: .1cm 0 0; font-size: 8pt; color: #555; }
.label-code { position: absolute; bottom: .25cm; right: .35cm; font-size: 7pt; letter-spacing: .08em; color: #777; font-weight: 600; }
.label::before { content: ""; position: absolute; left: .35cm; bottom: .3cm; width: .45cm; height: .45cm; border: 1.5px solid var(--accent); border-radius: 50%; }
@media print {
  @page { size: A4; margin: 1cm; }
  body { background: #fff; }
  .noprint { display: none !important; }
  .bare-main { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.tbl .inline-status select { min-height: 36px; padding: .3rem 2rem .3rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); max-width: 360px; width: 100%; }
.tbl .inline-status select.st, .tbl .inline-status select.ls { width: auto; border-radius: 999px; }
