:root {
  --bg: #0d1117;
  --bg-2: #111820;
  --surface: #161c25;
  --surface-2: #1c2430;
  --surface-3: #222c3a;
  --line: #2a3441;
  --line-2: #384556;
  --text: #e8eef5;
  --muted: #8d9dae;
  --muted-2: #64748b;
  --brand: #00bf63;
  --brand-2: #4ade80;
  --brand-dim: rgba(0, 191, 99, .12);
  --accent: #facc15;
  --info: #38bdf8;
  --warn: #f59e0b;
  --danger: #ef4444;
  --purple: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --ring: 0 0 0 3px rgba(0, 191, 99, .25);
  --sidebar-w: 248px;
  --header-h: 60px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", var(--font);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
table { border-collapse: collapse; width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* ============ LOGIN ============ */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(0,191,99,.10), transparent),
              radial-gradient(800px 400px at 100% 100%, rgba(56,189,248,.06), transparent), var(--bg);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-logo img { width: 40px; height: 40px; }
.login-logo div { font-family: var(--font-cond); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.login-logo small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.login-card h1 { font-size: 20px; margin-bottom: 6px; }
.login-card p.sub { color: var(--muted); margin: 0 0 24px; font-size: 13px; }
.login-hint {
  margin-top: 20px; padding: 12px 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; color: var(--muted);
}
.login-hint code { color: var(--brand-2); }

/* ============ LAYOUT ============ */
.app { display: none; min-height: 100vh; }
.app.on { display: block; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 40;
}
.sidebar-head {
  height: var(--header-h); display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.sidebar-head img { width: 30px; height: 30px; }
.sidebar-head b { font-family: var(--font-cond); font-size: 17px; text-transform: uppercase; letter-spacing: .4px; }
.sidebar-head small { display: block; font-size: 10px; color: var(--muted-2); text-transform: none; font-weight: 400; letter-spacing: 0; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-group { margin-top: 16px; }
.nav-group > span {
  display: block; padding: 0 10px 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted-2);
}
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px;
  margin-bottom: 1px; transition: background .12s, color .12s; cursor: pointer;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.on { background: var(--brand-dim); color: var(--brand-2); font-weight: 600; }
.nav a .ic { width: 17px; text-align: center; opacity: .85; flex-shrink: 0; }
.nav a .badge {
  margin-left: auto; background: var(--surface-3); color: var(--muted);
  font-size: 10.5px; padding: 1px 6px; border-radius: 9px; font-weight: 600;
}
.nav a .badge.hot { background: var(--danger); color: #fff; }
.nav a .badge.warn { background: var(--warn); color: #1a1200; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); flex-shrink: 0; }
.user-box { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); }
.user-box .av {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-dim);
  color: var(--brand-2); display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.user-box b { display: block; font-size: 13px; }
.user-box small { color: var(--muted-2); font-size: 11px; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: var(--header-h); background: var(--bg-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 17px; }
.topbar .crumb { color: var(--muted-2); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; color: var(--muted); font-size: 20px; }

.content { padding: 22px 24px 48px; flex: 1; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; margin-bottom: 3px; }
.page-head p { color: var(--muted); margin: 0; font-size: 13px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ COMPONENTES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500;
  transition: background .12s, border-color .12s, transform .08s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--muted-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #04220f; font-weight: 600; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.card-head h3 { font-size: 14px; }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }

/* KPIs */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.kpi.blue::after { background: var(--info); }
.kpi.yellow::after { background: var(--warn); }
.kpi.red::after { background: var(--danger); }
.kpi.purple::after { background: var(--purple); }
.kpi.gray::after { background: var(--muted-2); }
.kpi label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted-2); margin-bottom: 5px; font-weight: 600; }
.kpi .val { font-size: 22px; font-weight: 700; font-family: var(--font-cond); letter-spacing: .3px; line-height: 1.15; }
.kpi .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.data th {
  text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted-2); border-bottom: 1px solid var(--line);
  font-weight: 700; white-space: nowrap; background: var(--bg-2);
  position: sticky; top: 0; z-index: 2;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .nowrap { white-space: nowrap; }
.t-muted { color: var(--muted); }
.t-sm { font-size: 12px; }
.t-bold { font-weight: 600; }
.t-green { color: var(--brand-2); }
.t-red { color: var(--danger); }
.t-yellow { color: var(--warn); }
.t-blue { color: var(--info); }

.empty { padding: 46px 20px; text-align: center; color: var(--muted-2); }
.empty .big { font-size: 30px; margin-bottom: 10px; opacity: .5; }

/* Badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
  border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--surface-3); color: var(--muted);
}
.pill.green { background: rgba(0,191,99,.15); color: var(--brand-2); }
.pill.blue { background: rgba(56,189,248,.15); color: var(--info); }
.pill.yellow { background: rgba(245,158,11,.15); color: var(--warn); }
.pill.red { background: rgba(239,68,68,.15); color: var(--danger); }
.pill.purple { background: rgba(167,139,250,.15); color: var(--purple); }
.pill.gray { background: var(--surface-3); color: var(--muted); }
.pill.outline { background: transparent; border: 1px solid var(--line-2); }

/* Formulários */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.field > label .req { color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; padding: 8px 11px; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; transition: border-color .12s, box-shadow .12s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input:disabled { opacity: .55; }
.input.err { border-color: var(--danger); }
textarea.input { min-height: 74px; resize: vertical; }
select.input { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d9dae' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.hint { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(2, 1fr); }
.form-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-2);
  font-weight: 700; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.section-title:first-child { margin-top: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 140px; }
.filters .search { min-width: 240px; flex: 1; max-width: 380px; }
.filters .spacer { flex: 1; }

/* Modal */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.overlay.on { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); width: 100%; max-width: 620px; margin: auto;
  animation: pop .16s ease-out;
}
.modal.wide { max-width: 980px; }
.modal.xwide { max-width: 1240px; }
.modal.narrow { max-width: 460px; }
@keyframes pop { from { transform: translateY(-8px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.modal-head h3 { font-size: 15px; }
.modal-head .x {
  margin-left: auto; background: none; border: 0; color: var(--muted);
  font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.modal-head .x:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end; background: var(--bg-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  padding: 9px 14px; font-size: 13px; font-weight: 500; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--brand-2); border-bottom-color: var(--brand); font-weight: 600; }
.tab-content { display: none; }
.tab-content.on { display: block; }

/* Toast */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 11px 16px; box-shadow: var(--shadow);
  font-size: 13px; max-width: 380px; animation: slide .2s ease-out;
}
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes slide { from { transform: translateX(30px); opacity: 0 } to { transform: none; opacity: 1 } }

/* Listas auxiliares */
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 13px; }
.detail-list dt { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.detail-list dd { margin: 0; }
.kv-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv-line:last-child { border-bottom: 0; }
.kv-line.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 6px; padding-top: 11px; font-weight: 700; font-size: 15px; }
.kv-line .k { color: var(--muted); }
.kv-line .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Barra simples */
.bar { height: 7px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .3s; }
.bar > i.warn { background: var(--warn); }
.bar > i.danger { background: var(--danger); }
.bar > i.blue { background: var(--info); }
.bar > i.purple { background: var(--purple); }

/* Lista ordenada (fila) */
.queue-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); transition: background .1s;
}
.queue-item:hover { background: var(--surface-2); }
.queue-item:last-child { border-bottom: 0; }
.queue-pos {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3);
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-cond);
  font-size: 17px; flex-shrink: 0;
}
.queue-pos.top { background: var(--brand); color: #04220f; }
.queue-pos.urgent { background: var(--danger); color: #fff; }

/* Timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); border: 2px solid var(--surface);
}
.timeline-item time { display: block; font-size: 11px; color: var(--muted-2); }
.timeline-item b { font-size: 13px; display: block; }
.timeline-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* Kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col {
  min-width: 230px; flex: 1; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
}
.kanban-head { padding: 11px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.kanban-head b { font-size: 12.5px; }
.kanban-head .n { margin-left: auto; background: var(--surface-3); padding: 1px 7px; border-radius: 10px; font-size: 11px; color: var(--muted); }
.kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.kanban-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px; cursor: pointer; transition: border-color .12s, transform .08s;
}
.kanban-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kanban-card b { font-size: 13px; display: block; margin-bottom: 3px; }
.kanban-card small { color: var(--muted); font-size: 11.5px; display: block; }
.kanban-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* Chart bar */
.chart { display: flex; flex-direction: column; gap: 11px; }
.chart-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; font-size: 12.5px; }
.chart-row .lbl { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-row .val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 90px; text-align: right; }

/* Sparkline simples */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.spark > i { flex: 1; background: var(--brand-dim); border-radius: 2px 2px 0 0; min-height: 2px; transition: height .3s; }
.spark > i.hi { background: var(--brand); }

/* Loading */
.spin { width: 15px; height: 15px; border: 2px solid var(--line-2); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.loading { display: flex; align-items: center; justify-content: center; padding: 50px; gap: 10px; color: var(--muted); }

/* Overlay de carregamento */
.busy {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: busy 1s linear infinite; display: none;
}
.busy.on { display: block; }
@keyframes busy { from { background-position: -40% 0 } to { background-position: 140% 0 } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 12.5px; }

/* Pager */
.pager {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  padding: 10px 2px 0; font-size: 12px;
}

/* Chips de filtro rápidos */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 4px 11px; border-radius: 20px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font-size: 12px;
}
.chip.on { background: var(--brand-dim); border-color: var(--brand); color: var(--brand-2); font-weight: 600; }

.spacer { flex: 1; }

/* ============ WHATSAPP ============ */
.wpp-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 14px; margin-top: 14px; }
.wpp-lista { display: flex; flex-direction: column; overflow: hidden; }
.wpp-itens { overflow-y: auto; max-height: 560px; }
.wpp-item { padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.wpp-item:hover { background: var(--surface-3); }
.wpp-item.on {
  background: var(--brand-dim); border-left: 3px solid var(--brand);
  padding-left: 11px;
}
.wpp-item .l1 { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wpp-item .l2 { margin-top: 2px; }
.wpp-item .l3 { margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpp-badge {
  background: var(--brand); color: #04140b; font-size: 11px; font-weight: 700;
  border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.wpp-chat { display: flex; flex-direction: column; min-height: 480px; overflow: hidden; }
.wpp-msgs {
  flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px;
  overflow-y: auto; max-height: 520px;
}
.wpp-bolha {
  max-width: 74%; padding: 8px 12px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.wpp-bolha.in { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 4px; }
.wpp-bolha.out {
  align-self: flex-end; background: var(--brand-dim);
  border: 1px solid rgba(0, 191, 99, .35); border-bottom-right-radius: 4px;
}
.wpp-bolha .meta {
  display: flex; gap: 8px; font-size: 11px; color: var(--muted);
  margin-top: 4px; justify-content: flex-end; align-items: center;
}
.wpp-enviar {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end;
}
.wpp-enviar .wpp-input { flex: 1; min-height: 44px; max-height: 120px; }
.wpp-qrcode { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wpp-qrcode img {
  width: 268px; height: 268px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}

/* Responsivo */
@media (max-width: 1280px) {
  .g6 { grid-template-columns: repeat(3, 1fr); }
  .g5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 260px; }
  .sidebar.on { transform: none; box-shadow: var(--shadow); }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .g4, .g3, .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: repeat(2, 1fr); }
  .wpp-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .g2, .g3, .g4, .g5, .g6, .form-grid, .form-grid.g3, .form-grid.g4, .g-2-1, .g-1-2, .g-3-2 {
    grid-template-columns: 1fr;
  }
  .content { padding: 16px 14px 40px; }
  .page-head .actions { margin-left: 0; width: 100%; }
}
