/* app.css — Estilos do ONE-CLICK HUB */
:root {
  --bg: #f2f8fd;
  --surface: #ffffff;
  --sidebar: #163a5c;
  --primary: #3d9be0;
  --primary-hover: #2b7fc4;
  --baby: #8ecdf4;
  --baby-light: #e6f3fc;
  --deep: #1f4e79;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(226, 232, 240, 0.8);
  --green: #16a34a;
  --green-bg: #dcfce7;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  --glass-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { display: block; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.15); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

aside { width: 260px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; padding: 24px 16px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; box-shadow: 4px 0 25px rgba(0,0,0,0.05); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; }
.brand-badge { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 17px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); }
.brand h1 { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.brand span { font-size: 11px; color: #94a3b8; display: block; margin-top: 2px; }

.nav-btn { width: 100%; text-align: left; text-decoration: none; background: transparent; border: none; color: #94a3b8; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; transform: translateX(3px); }
.nav-btn.active { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35); }

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 10px; }
.btn-side { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #cbd5e1; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.2s; }
.btn-side:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

main { padding: 84px 32px 40px; max-width: 1480px; margin: 0 auto; overflow-x: clip; animation: fadeIn 0.4s ease-out; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.topbar h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.btn { padding: 10px 18px; border-radius: 10px; border: none; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary { background: linear-gradient(135deg, #4aa8ea 0%, #2b7fc4 100%); color: #fff; box-shadow: 0 4px 12px rgba(43, 127, 196, 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, #3d9be0 0%, #1f6aa8 100%); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border: 1px solid var(--border); color: var(--text); backdrop-filter: blur(10px); }
.btn-outline:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.6), transparent); opacity: 0; transition: opacity 0.3s; }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow); border-color: rgba(37, 99, 235, 0.25); }
.kpi:hover::before { opacity: 1; }
.kpi-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.kpi-val { font-size: 28px; font-weight: 800; margin-top: 10px; letter-spacing: -0.5px; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.secret-box { cursor: pointer; user-select: none; transition: all 0.2s; }
.secret-box .masked-val { filter: blur(6px); opacity: 0.4; transition: filter 0.3s, opacity 0.3s; }
.secret-box.revealed .masked-val { filter: blur(0); opacity: 1; }
.secret-hint { font-size: 10.5px; font-weight: 700; color: var(--primary); margin-top: 6px; display: inline-block; background: rgba(37, 99, 235, 0.08); padding: 2px 8px; border-radius: 99px; }

.toolbar { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
input, select { padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px; background: rgba(255,255,255,0.9); color: var(--text); transition: all 0.2s; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); background: #fff; }
.search-box { flex: 1; min-width: 220px; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; box-shadow: var(--shadow); margin-bottom: 28px; backdrop-filter: blur(12px); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead { background: var(--deep); color: #fff; }
th { padding: 12px 10px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; font-weight: 700; }
td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; transition: background 0.15s; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
td.day-no { font-weight: 700; color: var(--muted); }
td.col-comment { max-width: 220px; overflow-wrap: anywhere; }
tr.day-start td { border-top: 2px solid #cbd5e1; }
tr:hover td { background: rgba(248, 250, 252, 0.8); }
tr.neutralized td { opacity: 0.65; background: #fefce8; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-block; white-space: nowrap; }
.b-aprovado { background: var(--green-bg); color: var(--green); }
.b-reem { background: var(--red-bg); color: var(--red); }
.b-outro { background: var(--amber-bg); color: var(--amber); }
/* Selo de reembolso em duas partes: [Reembolso | Tipo] */
.badge-split { display: inline-flex; padding: 0; overflow: hidden; border: 1px solid #fecaca; }
.badge-split .bs-main { padding: 4px 8px; background: var(--red); color: #fff; }
.badge-split .bs-sub { padding: 4px 9px; background: var(--red-bg); color: var(--red); }

.tag-btn { border: 1px solid var(--border); background: #fff; padding: 5px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.tag-btn:hover { background: #f1f5f9; }
.tag-btn.done { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3); }
.action-icons { display: flex; gap: 8px; align-items: center; justify-content: center; }
.icon-btn { background: #f1f5f9; border: 1px solid var(--border); cursor: pointer; font-size: 13px; padding: 6px 10px; border-radius: 8px; transition: all 0.2s; }
.icon-btn:hover { background: #e2e8f0; transform: scale(1.05); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 28px; }
.store-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: transform 0.2s; }
.store-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.store-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 14px; }
.store-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.store-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.split-box { padding: 12px 14px; border-radius: 10px; }
.split-loss { background: var(--red-bg); color: var(--red); }
.split-gain { background: var(--green-bg); color: var(--green); }
.split-box span { font-size: 11px; font-weight: 700; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.split-box strong { font-size: 17px; display: block; margin-top: 4px; font-weight: 800; }

.dropzone { border: 2px dashed #cbd5e1; background: var(--surface); border-radius: 16px; padding: 28px; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 24px; }
.dropzone:hover { border-color: var(--primary); background: rgba(37, 99, 235, 0.02); }

.modal-bg { position: fixed; inset: 0; background: rgba(9, 13, 22, 0.6); backdrop-filter: blur(8px); display: none; place-items: center; padding: 16px; z-index: 70; animation: fadeIn 0.2s; }
.modal-bg.open { display: grid; }
.modal { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 580px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.2); animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.4px; padding-right: 40px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: #f1f5f9; color: var(--muted); font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.modal-close:hover { background: #e2e8f0; color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }

.imei-alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-top: 12px; display: none; line-height: 1.4; }
.imei-alert.success { background: var(--green-bg); color: var(--green); border: 1px solid #bbf7d0; }
.imei-alert.danger { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }
.imei-alert.neutral { background: #f1f5f9; color: var(--muted); border: 1px solid var(--border); }
.imei-alert.warning { background: var(--amber-bg); color: #92400e; border: 1px solid #fde68a; }
.fmi-stage { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.75; margin-bottom: 4px; }
.fmi-error { margin-top: 8px; color: var(--red); }
.fmi-raw { margin-top: 6px; max-height: 140px; overflow: auto; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 11px; white-space: pre-wrap; word-break: break-all; }
.fmi-history { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 12px; font-weight: 500; color: var(--text); }
.fmi-history ul { list-style: none; margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.fmi-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.fmi-badge.on { background: var(--red-bg); color: var(--red); }
.fmi-badge.off { background: var(--green-bg); color: var(--green); }
.fmi-badge.none { background: #f1f5f9; color: var(--muted); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.stage-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.final-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: none; cursor: pointer; }
.final-tag:hover { filter: brightness(0.95); }
.final-tag.pending { background: var(--amber-bg); color: #92400e; border: 1px solid #fde68a; }
.final-tag.done { background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3); }
.stage-switch label { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--text); cursor: pointer; background: #fff; }
.stage-switch label:has(input:checked) { border-color: var(--primary); background: rgba(37, 99, 235, 0.06); color: var(--primary); }
.user-box { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.user-box span { font-size: 11px; color: #94a3b8; word-break: break-all; text-align: center; }
.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, #1e3a8a 0%, #090d16 60%); }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.login-card h2 { text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.login-sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: -8px; }
.login-msg { min-height: 18px; font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); }
.login-msg.error { color: var(--red); }

.hidden { display: none !important; }

/* ---- Menu lateral com módulos ---- */
#sideNav { display: flex; flex-direction: column; }
.nav-btn .nav-caret { font-size: 11px; opacity: 0.7; display: inline-block; transition: transform 0.3s ease; }
.nav-btn.open .nav-caret { transform: rotate(90deg); }
.nav-btn.group-active { color: #fff; }
/* Acordeão: a lista desliza para abrir/fechar (0fr → 1fr anima a altura real) */
.nav-children { display: grid; grid-template-rows: 0fr; opacity: 0; margin: 0 0 0 14px; transition: grid-template-rows 0.3s ease, opacity 0.25s ease, margin 0.3s ease; }
.nav-children.open { grid-template-rows: 1fr; opacity: 1; margin: -2px 0 8px 14px; }
.nav-children-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.1); }
.nav-children:not(.open) .nav-sub { visibility: hidden; transition: visibility 0s 0.3s; }
@media (prefers-reduced-motion: reduce) { .nav-children, .nav-btn .nav-caret { transition: none; } }
.nav-sub { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #94a3b8; text-decoration: none; transition: all 0.2s; }
.nav-sub:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-sub.active { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35); }
.nav-soon { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,0.08); color: #64748b; white-space: nowrap; }
.nav-btn.active .nav-soon, .nav-sub.active .nav-soon { background: rgba(255,255,255,0.2); color: #fff; }
.side-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Página "Em breve" ---- */
.soon-card { max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); }
.soon-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.soon-badge { background: #0f172a; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; padding: 4px 10px; border-radius: 99px; }
.soon-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.soon-pill.wait { background: var(--amber-bg); color: #92400e; }
.soon-pill.ready { background: var(--green-bg); color: var(--green); }
.soon-desc { font-size: 14.5px; line-height: 1.55; color: var(--text); margin-bottom: 16px; }
.soon-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 8px; }
.soon-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ---- Página inicial: Resumo ---- */
.home-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: capitalize; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,163,74,0.5); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.segmented { display: inline-flex; background: #e2e8f0; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented .seg { border: none; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.segmented .seg.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.kpi-foot { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.blurred { filter: blur(7px); opacity: 0.5; }
.home-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin: 4px 0 12px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 28px; }
.shortcut { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: left; font-size: 13.5px; font-weight: 700; color: var(--text); transition: all 0.2s; }
.shortcut:hover { transform: translateY(-2px); border-color: rgba(37,99,235,0.35); box-shadow: var(--glass-shadow); }
.shortcut.dim { opacity: 0.7; }
.sc-icon { font-size: 20px; }
.sc-label { flex: 1; }
.sc-count { min-width: 28px; text-align: center; padding: 3px 9px; border-radius: 99px; background: #e2e8f0; font-size: 12.5px; font-weight: 800; }
.sc-count.alert { background: var(--red); color: #fff; }
.sc-tag { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 7px; border-radius: 99px; background: var(--amber-bg); color: #92400e; white-space: nowrap; }
.home-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 12px; font-weight: 600; }
.empty { color: var(--muted); font-size: 13.5px; padding: 18px 0; text-align: center; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: #5fb4ee; }
.chart .bar.neg { fill: var(--red); }
.chart .hit { fill: transparent; }
.chart .bar-g:hover .bar { fill: #2b7fc4; }
.chart .bar-g:hover .hit { fill: rgba(37,99,235,0.06); }
.chart .axis { font-size: 10.5px; fill: #64748b; }
.chart .peak { font-size: 11px; font-weight: 700; fill: #0f172a; }
.chart .baseline { stroke: #cbd5e1; stroke-width: 1; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-table thead { background: transparent; color: var(--muted); }
.mini-table th { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.mini-table td { padding: 10px 6px; }
.feed { list-style: none; display: flex; flex-direction: column; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13.5px; border-radius: 6px; }
.feed li:last-child { border-bottom: none; }
.feed li:hover { background: #f1f5f9; }
.feed-date { font-size: 12px; font-weight: 700; color: var(--muted); width: 42px; flex-shrink: 0; }
.feed-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Categoria com subpáginas: fica azul quando uma página dela está aberta */
.nav-btn.group-active { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35); }
.nav-btn.group-active + .nav-children .nav-sub.active { background: rgba(255,255,255,0.12); box-shadow: none; color: #fff; border-left: 3px solid #60a5fa; }

/* ---- Produtos ---- */
.prod-muted { color: var(--muted); font-size: 12.5px; }
.prod-warn { color: var(--amber); font-size: 12px; font-weight: 700; }
.prod-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.prod-setup { background: var(--amber-bg); border: 1px solid #fcd34d; color: #78350f; border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-size: 13px; }
.prod-setup p { margin-top: 4px; }
.prod-setup code, .prod-sub code { background: rgba(0,0,0,0.06); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
.prod-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.prod-bulk strong { margin-right: auto; color: var(--primary); font-size: 13px; }
.prod-bulk .btn:disabled, .icon-btn:disabled { cursor: not-allowed; opacity: 0.4; transform: none; }
.prod-table td { vertical-align: middle; }
.prod-check { width: 36px; text-align: center; }
.prod-check input { width: 16px; height: 16px; cursor: pointer; }
.prod-thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--border); background: #f1f5f9; display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: 0; font-size: 22px; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-vid-tag { position: absolute; bottom: 2px; right: 2px; background: rgba(15,23,42,0.75); color: #fff; font-size: 9px; padding: 1px 4px; border-radius: 4px; }
.prod-name { font-weight: 700; font-size: 13.5px; }
.prod-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.prod-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; background: #e2e8f0; color: var(--muted); padding: 1px 6px; border-radius: 99px; vertical-align: middle; }
.prod-inactive td { opacity: 0.55; }
.prod-empty { text-align: center; color: var(--muted); padding: 28px !important; }
.stock-pill { display: inline-block; min-width: 34px; text-align: center; font-weight: 800; padding: 3px 8px; border-radius: 99px; font-size: 12.5px; }
.stock-ok { background: var(--green-bg); color: var(--green); }
.stock-low { background: var(--amber-bg); color: var(--amber); }
.stock-zero { background: var(--red-bg); color: var(--red); }
.fiscal-pill { font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 3px 8px; border-radius: 99px; }
.fiscal-pill.ok { background: var(--green-bg); color: var(--green); }
.fiscal-pill.bad { background: var(--amber-bg); color: var(--amber); }

.prod-modal { max-width: 760px; }
.prod-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 18px; overflow-x: auto; }
.prod-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.prod-tab:hover { color: var(--text); }
.prod-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.prod-modal textarea { width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13.5px; }
.field-hint { font-size: 11.5px; color: var(--muted); }
.field-hint.bad { color: var(--red); font-weight: 700; }
.prod-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px !important; color: var(--text) !important; font-weight: 600 !important; }
.prod-drop { margin-bottom: 0; padding: 22px; }
.prod-drop.drag { border-color: var(--primary); background: rgba(37, 99, 235, 0.06); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #f1f5f9; }
.media-item.main { border: 2px solid var(--primary); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-main-tag, .media-new-tag, .media-type { position: absolute; top: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: #fff; }
.media-main-tag { left: 6px; background: var(--primary); }
.media-new-tag { right: 6px; background: var(--green); }
.media-type { left: 6px; bottom: 34px; top: auto; background: rgba(15,23,42,0.75); }
.media-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 5px; background: linear-gradient(transparent, rgba(15,23,42,0.7)); }
.media-actions button { border: none; background: rgba(255,255,255,0.92); border-radius: 6px; font-size: 11px; padding: 4px 7px; cursor: pointer; }
.media-actions button:hover { background: #fff; }
@media (max-width: 640px) {
  .prod-modal .form-grid { grid-template-columns: 1fr; }
  .prod-bulk strong { width: 100%; }
}

/* =====================================================================
   REDESENHO 2026-11 — barra no topo, menu ☰ de tela cheia, Resumo e Produtos
   ===================================================================== */
input, select, textarea { font-family: inherit; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-danger-outline { background: #fff; border: 1px solid #fecaca; color: var(--red); }
.btn-danger-outline:hover { background: var(--red-bg); }
.link-btn { background: none; border: none; color: var(--primary-hover); font-weight: 700; cursor: pointer; font-size: inherit; text-decoration: underline; }
.wait-tag { display: inline-block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 7px; border-radius: 99px; background: var(--amber-bg); color: #92400e; white-space: nowrap; vertical-align: middle; }
.ok-txt { color: var(--green); font-weight: 700; }

/* ---- Barra do topo ---- */
.appbar { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: linear-gradient(90deg, #1f4e79 0%, #2b7fc4 55%, #5fb4ee 100%); color: #fff; box-shadow: 0 2px 14px rgba(31, 78, 121, 0.25); }
.appbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.appbar-brand strong { font-size: 15px; letter-spacing: 0.4px; }
.appbar .brand-badge { width: 34px; height: 34px; font-size: 15px; background: rgba(255,255,255,0.18); box-shadow: none; border: 1px solid rgba(255,255,255,0.35); }
.appbar-title { flex: 1; font-size: 14px; font-weight: 600; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-user { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.appbar-user span { opacity: 0.9; }
.btn-top { border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-top:hover { background: rgba(255,255,255,0.25); }
.menu-btn { width: 42px; height: 38px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.85); background: transparent; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; flex-shrink: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.menu-btn:hover { background: rgba(255,255,255,0.15); }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Menu de tela cheia ---- */
.menu-overlay { position: fixed; inset: 60px 0 0 0; z-index: 55; background: rgba(15, 40, 66, 0.35); backdrop-filter: blur(3px); display: none; padding: 14px; }
.menu-overlay.open { display: block; animation: fadeIn 0.18s ease-out; }
.menu-panel { background: #fff; border-radius: 16px; height: 100%; display: grid; grid-template-columns: 250px 1fr; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(15,40,66,0.35); }
.menu-cats { background: #f4f9fd; border-right: 1px solid #dbeaf6; padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.menu-cat { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 10px; border: none; background: transparent; text-align: left; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.menu-cat .mc-label { flex: 1; }
.menu-cat .mc-arrow { font-size: 18px; color: var(--muted); }
.menu-cat:hover, .menu-cat.focus { background: var(--baby-light); }
.menu-cat.active { background: var(--deep); color: #fff; }
.menu-cat.active .mc-arrow { color: #fff; }
.menu-cat .nav-soon { background: #e2e8f0; color: var(--muted); }
.menu-pages { padding: 22px 26px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 22px; align-content: start; }
.menu-block { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.menu-block.focus { background: #f6fbff; border-color: #cfe6f7; }
.menu-block-title { font-weight: 800; font-size: 14.5px; color: var(--deep); text-decoration: none; margin-bottom: 6px; display: flex; gap: 6px; }
.menu-block-title:hover { text-decoration: underline; }
.menu-link { font-size: 13px; color: #334155; text-decoration: none; padding: 5px 8px; border-radius: 7px; }
.menu-link:hover { background: var(--baby-light); color: var(--deep); }
.menu-link.active { background: var(--primary); color: #fff; }
.menu-link.active .nav-soon { background: rgba(255,255,255,0.25); color: #fff; }

/* ---- Cartões de indicador coloridos ---- */
.kpi { background: #fff; border-top: 4px solid var(--baby); }
.kc-blue { border-top-color: #3d9be0; } .kc-blue .kpi-val { color: #1f6aa8; }
.kc-sky { border-top-color: #8ecdf4; } .kc-sky .kpi-val { color: #2b7fc4; }
.kc-green { border-top-color: #34c38f; } .kc-green .kpi-val { color: #15803d; }
.kc-violet { border-top-color: #a78bfa; } .kc-violet .kpi-val { color: #6d28d9; }
.kc-orange { border-top-color: #fb923c; } .kc-orange .kpi-val { color: #c2410c; }
.home-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.home-kpis .kpi { padding: 18px 20px; }
.home-kpis .kpi-val { font-size: 26px; }

/* ---- Resumo ---- */
.home-top { margin-bottom: 20px; }
.home-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.segmented { background: #dcecf8; }
.segmented .seg.on { color: var(--deep); }
.acc-picker { position: relative; }
.acc-btn { background: #fff; border: 1px solid #cfe2f1; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--deep); cursor: pointer; min-width: 190px; text-align: left; display: flex; align-items: center; gap: 8px; }
.acc-btn .acc-caret { margin-left: auto; color: var(--muted); }
.acc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 270px; background: #fff; border: 1px solid #cfe2f1; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(15,40,66,0.3); padding: 10px; }
.acc-menu input[type=text] { width: 100%; margin-bottom: 8px; }
.acc-menu label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.acc-menu label:hover { background: var(--baby-light); }
.acc-all { border-bottom: 1px solid var(--border); border-radius: 0 !important; margin-bottom: 4px; }
.acc-list { max-height: 280px; overflow-y: auto; }
.home-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.home-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.home-main .shortcut-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.shortcut { background: #fff; min-height: 64px; }
.shortcut:hover { border-color: var(--baby); }
.tab-row { display: flex; gap: 4px; }
.tab-btn { border: none; background: none; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tab-btn.on { color: var(--primary-hover); border-bottom-color: var(--primary); }
.blurred-chart { filter: blur(8px); opacity: 0.5; pointer-events: none; }
.home-orders { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.order-list { list-style: none; overflow-y: auto; margin: 0 -8px; }
.order-list li { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-bottom: 1px solid #edf2f7; cursor: pointer; border-radius: 8px; }
.order-list li:hover { background: var(--baby-light); }
.order-list li.returned { opacity: 0.6; }
.order-thumb { width: 44px; height: 44px; border-radius: 8px; background: #f1f5f9; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-size: 18px; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.order-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-val { font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.acc-chip { display: inline-block; width: fit-content; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--baby-light); color: var(--deep); }

/* ---- Produtos: pesquisa ---- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.page-head h2 { font-size: 20px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 10px; }
.ph-ico { color: var(--primary); }
.filter-card { background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.filter-title { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.filter-main, .filter-more-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.filter-main .fl-wide { grid-column: span 2; }
.fl { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fl input, .fl select { width: 100%; }
.minmax { display: flex; gap: 6px; }
.minmax > * { flex: 1; min-width: 0; }
.filter-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.filter-more.open { grid-template-rows: 1fr; }
.filter-more-inner { overflow: hidden; min-height: 0; }
.filter-more.open .filter-more-inner { padding-top: 12px; }
.filter-actions { display: flex; gap: 10px; margin-top: 14px; }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; padding: 10px 16px; margin-bottom: 12px; font-size: 13px; }
.list-bar-bottom { background: transparent; border: none; justify-content: space-between; }
.sel-all { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.sel-all input, .pcard-head input { width: 17px; height: 17px; cursor: pointer; }
.pager { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pager button { border: none; background: #8ecdf4; color: #fff; font-weight: 800; width: 30px; height: 28px; border-radius: 6px; cursor: pointer; }
.pager button:hover:not(:disabled) { background: var(--primary-hover); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager span { font-weight: 700; padding: 0 8px; color: var(--muted); }
.empty-card { background: #fff; border: 1px dashed #cfe2f1; border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); }

/* ---- Produtos: cartões ---- */
.pcard { background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; margin-bottom: 12px; overflow: visible; transition: border-color 0.15s, box-shadow 0.15s; }
.pcard:hover { border-color: var(--baby); box-shadow: 0 6px 18px -10px rgba(31,78,121,0.25); }
.pcard.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(61,155,224,0.2); }
.pcard.inactive { opacity: 0.6; }
.pcard-head { background: #f4f9fd; border-bottom: 1px solid #e3eef8; padding: 8px 14px; border-radius: 12px 12px 0 0; display: flex; gap: 10px; align-items: center; }
.pcard-body { display: grid; grid-template-columns: 96px minmax(200px, 1.4fr) minmax(190px, 1fr) minmax(180px, 0.9fr) 190px; gap: 18px; padding: 14px 16px; align-items: start; }
.pc-photo { width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--border); background: #f8fafc; display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: 0; font-size: 34px; }
.pc-photo img { width: 100%; height: 100%; object-fit: contain; }
.pc-main { display: flex; flex-direction: column; gap: 5px; font-size: 13px; min-width: 0; }
.pc-name { font-weight: 800; font-size: 14.5px; color: var(--text); text-decoration: none; }
.pc-name:hover { color: var(--primary-hover); text-decoration: underline; }
.pc-stock { font-weight: 700; }
.stock-badge { display: inline-block; min-width: 26px; text-align: center; padding: 1px 6px; border-radius: 5px; color: #fff; font-weight: 800; font-size: 12px; margin-right: 2px; }
.stock-badge.ok { background: var(--primary); } .stock-badge.low { background: var(--amber); } .stock-badge.zero { background: var(--red); }
.pc-type { font-weight: 800; color: #334155; }
.pc-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sku-chip { border: 1px solid var(--primary); color: var(--primary-hover); background: #f0f8fe; border-radius: 99px; padding: 1px 9px; font-weight: 800; font-size: 12px; }
.copy-btn { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 0 2px; }
.copy-btn:hover { color: var(--primary-hover); }
.pc-sec { font-size: 13px; font-weight: 800; color: #334155; border-bottom: 1px solid #e3eef8; padding-bottom: 5px; margin-bottom: 6px; }
.pc-info { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-ads { display: flex; flex-direction: column; gap: 10px; }
.ml-wrap { position: relative; width: fit-content; }
.ml-logo { display: inline-grid; place-items: center; width: 40px; height: 28px; border-radius: 14px; background: #e5e7eb; color: #9ca3af; font-weight: 900; font-size: 12px; letter-spacing: -0.5px; cursor: default; border: 2px solid #d1d5db; user-select: none; }
.ml-logo.on { background: #ffe600; color: #2d3277; border-color: #f5d800; }
.ml-logo.sm { width: 30px; height: 20px; font-size: 10px; border-width: 1px; }
.ml-pop { position: absolute; left: calc(100% + 10px); top: -10px; z-index: 20; width: 190px; background: #fff; border: 1px solid #dbeaf6; border-radius: 10px; box-shadow: 0 14px 30px -10px rgba(15,40,66,0.35); padding: 10px 12px; font-size: 12.5px; display: none; }
.ml-wrap:hover .ml-pop, .ml-logo:focus + .ml-pop { display: block; }
.ml-pop-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 8px; }
.ml-pop-row { display: flex; justify-content: space-between; padding: 3px 0; }
.ml-pop-row.total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; font-weight: 800; }
.pc-ready { font-size: 11.5px; font-weight: 700; padding: 5px 8px; border-radius: 8px; line-height: 1.35; }
.pc-ready.ok { background: var(--green-bg); color: var(--green); }
.pc-ready.bad { background: var(--amber-bg); color: #92400e; }
.pc-actions { display: flex; flex-direction: column; gap: 8px; }
.pc-actions .btn, .pc-actions .dd, .pc-actions .dd-btn { width: 100%; justify-content: center; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; min-width: 250px; background: #fff; border: 1px solid #dbeaf6; border-radius: 10px; box-shadow: 0 14px 30px -10px rgba(15,40,66,0.35); padding: 6px; }
.dd.open .dd-menu { display: block; }
.dd-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: none; padding: 9px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.dd-menu button:hover { background: var(--baby-light); }
.dd-menu button.danger { color: var(--red); }
.sku-chip.zero { opacity: 0.5; }
.sku-dd { display: inline-block; position: relative; }
.sku-dd .dd-btn { cursor: pointer; font: inherit; font-weight: 700; }
.sku-dd .dd-menu { min-width: 280px; padding: 6px; left: 0; right: auto; }
.sku-dd-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; font-size: 12.5px; }
.sku-dd-row.zero { opacity: 0.5; }
.fmt-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 99px; padding: 1px 8px; cursor: help; }
.an-ic-btn { font: inherit; border: 1px solid #c7ddf2; cursor: pointer; color: var(--text); }
.an-ic-btn:hover { background: var(--baby-light); border-color: var(--baby); }
.dd-menu button:disabled { opacity: 0.45; cursor: not-allowed; background: none; }
.dd-menu button.danger:hover { background: var(--red-bg); }

/* ---- Janelinha de seleção (direita) e painel lateral ---- */
.bulk-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 250px; background: #fff; border: 1px solid #bfdff5; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(15,40,66,0.4); padding: 14px; display: flex; flex-direction: column; gap: 6px; animation: fadeIn 0.2s; }
.bf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--deep); font-size: 13.5px; }
.bf-x { border: none; background: #f1f5f9; border-radius: 7px; width: 26px; height: 26px; cursor: pointer; color: var(--muted); }
.bf-sub { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 4px 0 2px; }
.bf-opt { border: 1px solid #dbeaf6; background: #f6fbff; border-radius: 9px; padding: 9px 10px; text-align: left; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text); }
.bf-opt:hover { background: var(--baby-light); border-color: var(--baby); }
.side-panel-bg { position: fixed; inset: 0; z-index: 70; background: rgba(15,40,66,0.35); display: none; }
.side-panel-bg.open { display: block; }
.side-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; padding: 22px; overflow-y: auto; box-shadow: -10px 0 30px rgba(15,40,66,0.2); animation: slideIn 0.22s ease-out; display: flex; flex-direction: column; gap: 12px; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-head { display: flex; justify-content: space-between; align-items: center; }
.sp-head h3 { font-size: 18px; font-weight: 800; }
.sp-head .modal-close { position: static; }
.sp-count { margin-top: -6px; }
.sp-note { font-size: 12.5px; color: #475569; background: #f4f9fd; border: 1px solid #dbeaf6; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.sp-note.warn { background: var(--amber-bg); border-color: #fde68a; color: #78350f; }
.sp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 12px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }

/* ---- Janelas (estoque, criar anúncio) ---- */
.prod-dialog { max-width: 680px; }
.prod-dialog.wide { max-width: 1020px; }
.prod-dialog h3 { display: flex; align-items: center; gap: 10px; }
.table-wrap.flat { box-shadow: none; margin-bottom: 0; border-radius: 10px; }
.est-table td { vertical-align: middle; }
.est-thumb { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; background: #f8fafc; }
.est-thumb img { width: 100%; height: 100%; object-fit: cover; }
.est-qty { width: 90px; }
.ca-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ca-left { display: flex; flex-direction: column; gap: 10px; }
.ca-prod { display: flex; gap: 12px; align-items: center; background: #f4f9fd; border-radius: 10px; padding: 10px; font-size: 13px; }
.ca-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); flex-shrink: 0; font-size: 24px; }
.ca-img img { width: 100%; height: 100%; object-fit: contain; }
.ca-sec { font-size: 12.5px; font-weight: 800; color: #334155; margin: 8px 0 6px; }
.ca-accounts { max-height: 220px; overflow-y: auto; border: 1px solid #dbeaf6; border-radius: 10px; }
.ca-accounts label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #edf2f7; font-size: 13px; font-weight: 700; cursor: pointer; }
.ca-accounts label:last-child { border-bottom: none; }
.ca-accounts label:hover { background: var(--baby-light); }
.ca-row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.ca-info { background: #f0f8fe; border: 1px solid #cfe6f7; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.ca-warn { background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #78350f; margin-bottom: 12px; }
.ca-warn ul { margin: 6px 0 0 18px; }
.ca-table td { vertical-align: top; font-size: 12.5px; }
.ca-pill { background: var(--baby-light); color: var(--deep); font-weight: 800; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; white-space: nowrap; }
.ca-frete { color: var(--green); font-weight: 700; min-width: 120px; }
.ca-title { min-width: 240px; }
.ca-title input { width: 100%; }
.ca-title-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ai-btn { border: 1px dashed #c4b5fd; background: #f5f3ff; color: #6d28d9; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 3px 8px; cursor: not-allowed; opacity: 0.8; }
.ca-vals { min-width: 130px; }
.ca-price { width: 110px; text-align: right; }
.ca-json { margin-top: 12px; font-size: 12px; }
.ca-json summary { cursor: pointer; font-weight: 700; color: var(--primary-hover); }
.ca-json pre { margin-top: 8px; max-height: 260px; overflow: auto; background: #0f2a44; color: #d6ecfb; border-radius: 10px; padding: 12px; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; }

/* ---- Página de cadastro / edição ---- */
.editor { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.ed-side { position: sticky; top: 76px; background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ed-side h3 { font-size: 16px; font-weight: 800; }
.back-link { font-size: 12.5px; font-weight: 700; color: var(--primary-hover); text-decoration: none; }
.ed-thumb { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border); background: #f8fafc; display: grid; place-items: center; overflow: hidden; font-size: 42px; }
.ed-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ed-side-sku { text-align: center; font-weight: 800; color: var(--deep); font-size: 13px; }
.ed-save { width: 100%; justify-content: center; text-decoration: none; }
.ed-check { border-top: 1px solid var(--border); padding-top: 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.ed-check-title { font-weight: 800; margin-bottom: 4px; color: var(--deep); }
.ed-check .ok { color: var(--green); } .ed-check .bad { color: #92400e; }
.ed-main { background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; padding: 0 22px 24px; min-width: 0; }
.ed-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #e3eef8; margin: 0 -22px 20px; padding: 10px 14px 0; background: #fff; border-radius: 12px 12px 0 0; }
.ed-tab { border: none; background: none; padding: 10px 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); border-radius: 9px 9px 0 0; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
.ed-tab:hover { color: var(--text); background: #f6fbff; }
.ed-tab.active { color: var(--deep); background: var(--baby-light); border-bottom-color: var(--primary); }
.ed-pane textarea { width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; }
.ed-h { font-size: 14px; font-weight: 800; color: var(--deep); margin: 20px 0 10px; }
.ed-h:first-child { margin-top: 0; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.ed-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #78350f; margin-bottom: 16px; }
.ed-note ul { margin: 6px 0 0 18px; }
.var-card { border: 1px solid #dbeaf6; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.var-head { display: flex; justify-content: space-between; align-items: center; background: #f4f9fd; padding: 8px 14px; font-size: 13px; }
.var-del { border: none; background: #fca5a5; color: #fff; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-weight: 800; }
.var-del:hover { background: var(--red); }
.var-body { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; }
.var-photo { width: 90px; height: 90px; border: 1px solid var(--border); border-radius: 10px; display: grid; place-items: center; overflow: hidden; font-size: 30px; background: #f8fafc; }
.var-photo img { width: 100%; height: 100%; object-fit: contain; }
.var-pics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 14px 14px; font-size: 12px; }
.var-pic { width: 46px; height: 46px; border-radius: 8px; border: 2px solid var(--border); padding: 0; overflow: hidden; cursor: pointer; background: #fff; opacity: 0.55; }
.var-pic.on { border-color: var(--primary); opacity: 1; }
.var-pic img { width: 100%; height: 100%; object-fit: cover; }
.kv-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.ai-box { margin-top: 18px; border: 1px dashed #c4b5fd; background: #faf8ff; border-radius: 12px; padding: 14px 16px; }
.ai-head { font-weight: 800; color: #5b21b6; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-actions { display: flex; gap: 8px; margin-top: 10px; }
.soon-filter { background: var(--baby-light); border: 1px solid #cfe6f7; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 13.5px; color: var(--deep); max-width: 760px; }

/* ---- Telas menores ---- */
@media (max-width: 1100px) {
  .pcard-body { grid-template-columns: 96px 1fr 1fr; }
  .pc-ads { grid-column: 2 / 3; }
  .pc-actions { grid-column: 3 / 4; }
  .home-main { grid-template-columns: 1fr; }
  .home-orders { position: static; max-height: 520px; }
}
@media (max-width: 760px) {
  main { padding: 76px 16px 32px; }
  .appbar { padding: 0 12px; gap: 10px; }
  .appbar-brand strong, .appbar-user span, .appbar-title { display: none; }
  .menu-overlay { padding: 8px; }
  .menu-panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .menu-cats { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid #dbeaf6; padding: 8px; }
  .menu-cat { width: auto; white-space: nowrap; }
  .menu-cat .mc-arrow { display: none; }
  .menu-pages { padding: 14px; grid-template-columns: 1fr; }
  .home-main .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard-body { grid-template-columns: 72px 1fr; }
  .pc-photo { width: 72px; height: 72px; }
  .pc-info, .pc-ads, .pc-actions { grid-column: 1 / -1; }
  .filter-main .fl-wide { grid-column: auto; }
  .editor { grid-template-columns: 1fr; }
  .ed-side { position: static; }
  .ed-thumb { width: 120px; margin: 0 auto; }
  .form-grid, .form-grid.three, .form-grid.four, .ca-grid, .ca-row2 { grid-template-columns: 1fr; }
  .var-body { grid-template-columns: 1fr; }
  .bulk-float { left: 16px; right: 16px; width: auto; }
  .acc-menu { right: auto; left: 0; }
}

/* =====================================================================
   AJUSTES 2026-11-16 — menu por categoria, atalhos 3D, pedidos com rolagem
   ===================================================================== */
/* Menu: categoria clicada fica azul-escuro; à direita só as páginas dela */
.menu-cat:hover { background: var(--baby-light); }
.menu-cat.focus { background: var(--deep); color: #fff; box-shadow: 0 6px 16px -6px rgba(31,78,121,0.6); }
.menu-cat.current:not(.focus) { color: var(--primary-hover); font-weight: 800; }
.menu-pages { display: block; padding: 20px; background: #fff; }
.menu-detail { background: var(--baby-light); border: 1px solid #cfe6f7; border-radius: 14px; padding: 20px 22px; min-height: 100%; animation: fadeIn 0.18s ease-out; }
.menu-detail-title { font-size: 18px; font-weight: 800; color: var(--deep); margin-bottom: 16px; }
.menu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.menu-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #cfe6f7; border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text);
  box-shadow: 0 3px 0 #cfe6f7, 0 8px 18px -12px rgba(31,78,121,0.35); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.menu-tile:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 5px 0 #a9d4f2, 0 14px 24px -14px rgba(31,78,121,0.45); }
.menu-tile.active { border-color: var(--primary); background: #f6fbff; }
.mt-label { font-weight: 800; font-size: 14.5px; color: var(--deep); }
.mt-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Resumo: quadrados de atalho em 3D, "vivos" */
.home-main .shortcut {
  position: relative; border: 1px solid #cfe2f1; border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8fe 100%);
  box-shadow: 0 4px 0 #bcdcf3, 0 10px 20px -10px rgba(31,78,121,0.35), inset 0 1px 0 #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-main .shortcut:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #a9d4f2, 0 16px 26px -12px rgba(31,78,121,0.45), inset 0 1px 0 #fff; }
.home-main .shortcut:active { transform: translateY(3px); box-shadow: 0 1px 0 #bcdcf3, 0 4px 10px -6px rgba(31,78,121,0.35); }
.home-main .shortcut .sc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 6px rgba(31,78,121,0.15); flex-shrink: 0; }
.home-main .shortcut.dim { opacity: 1; }
.home-main .shortcut.dim .sc-label { color: #475569; }
.sc-count.alert { animation: scPulse 1.8s infinite; }
@keyframes scPulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); } 70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
@media (prefers-reduced-motion: reduce) { .sc-count.alert { animation: none; } }

/* Resumo: últimos pedidos em caixa com rolagem (altura fixa) */
.home-orders { position: static; height: 640px; max-height: none; }
.order-list { flex: 1; min-height: 0; overflow-y: scroll; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #8ecdf4 #eef6fc; }
.order-list::-webkit-scrollbar { width: 8px; }
.order-list::-webkit-scrollbar-track { background: #eef6fc; border-radius: 8px; }
.order-list::-webkit-scrollbar-thumb { background: #8ecdf4; border-radius: 8px; }
@media (max-width: 1100px) { .home-orders { height: 520px; } }

/* Resumo: botões ▲ ▼ para subir/descer a lista de pedidos */
.order-scroll { width: 100%; border: 1px solid #cfe2f1; background: var(--baby-light); color: var(--deep); font-size: 12px; font-weight: 800; padding: 6px 0; border-radius: 9px; cursor: pointer; flex-shrink: 0; }
.order-scroll.up { margin-bottom: 8px; }
.order-scroll.down { margin-top: 8px; }
.order-scroll:hover { background: var(--baby); color: #fff; }

/* Ajustes 2026-11-16 (2) */
.home-main { grid-template-columns: minmax(0, 1fr) 320px; }
.home-main .shortcut { min-width: 0; padding: 12px 12px; gap: 10px; }
.home-main .sc-label { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.home-main .sc-label small { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.home-main .sc-tag { font-size: 8.5px; padding: 2px 6px; }
.sc-count { background: #e2e8f0; color: #475569; }
.btn-home { color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.45); background: rgba(255,255,255,0.14); white-space: nowrap; }
.btn-home:hover { background: rgba(255,255,255,0.28); }
.btn-home.on { background: #fff; color: var(--deep); }
@media (max-width: 1100px) { .home-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .btn-home { padding: 6px 10px; font-size: 12px; } }

/* =====================================================================
   ERP lojas e Controle contábil
   ===================================================================== */
.btn-success { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(21,128,61,0.25); }
.btn-success:hover { filter: brightness(1.05); }
.btn-dark { background: #1e293b; color: #fff; text-decoration: none; }
.btn-dark:hover { background: #0f172a; }
.nowrap { white-space: nowrap; }
.erp-table td { vertical-align: middle; }
.erp-table td .muted { font-size: 11.5px; margin-top: 2px; }
.erp-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ebtn { display: inline-flex; align-items: center; gap: 4px; border: none; border-radius: 7px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter 0.15s, transform 0.15s; }
.ebtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.e-blue { background: #3d9be0; color: #fff; }
.e-dark { background: #1e293b; color: #fff; }
.e-grey { background: #64748b; color: #fff; }
.e-yellow { background: #fcd34d; color: #3f2d00; }
.e-purple { background: #4338ca; color: #fff; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.warn { background: var(--amber-bg); color: #92400e; border: 1px solid #fde68a; }
.pill.blue { background: #1f6aa8; color: #fff; margin: 2px 0; }
.erp-form { background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.erp-h { font-size: 16px; font-weight: 800; color: var(--deep); margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #e3eef8; }
.erp-form > .erp-h:first-child { margin-top: 0; }
.erp-form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.erp-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.erp-logo { width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--border); background: #f8fafc; display: grid; place-items: center; overflow: hidden; font-size: 30px; }
.erp-logo img { width: 100%; height: 100%; object-fit: contain; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cert-card { background: linear-gradient(135deg, #2b7fc4, #1f6aa8); color: #fff; border-radius: 12px; text-align: center; padding: 0 0 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; overflow: hidden; }
.cert-card .cert-head { font-weight: 800; padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.25); margin-bottom: 6px; }
.cert-card.none { background: #e2e8f0; color: #334155; }
.cert-card.none .cert-head { border-color: #cbd5e1; }
.cert-card.expired { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.nf-sit { font-weight: 800; font-size: 12.5px; }
.nf-sit.emitida { color: var(--green); }
.nf-sit.gerada { color: var(--primary-hover); }
.nf-sit.cancelada, .nf-sit.rejeitada { color: var(--red); }
.cont-filters { grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr)); }
.cont-card { background: #fff; border: 1px solid #dbeaf6; border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.cont-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: #f4f9fd; border-bottom: 1px solid #e3eef8; font-size: 14px; }
.cont-tot { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.cont-scroll { max-height: 320px; overflow: auto; }
.cont-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cont-table thead th { position: sticky; top: 0; background: var(--deep); color: #fff; z-index: 1; }
.cont-table tr.zero td { color: #94a3b8; }
.cont-table tfoot td { position: sticky; bottom: 0; background: var(--baby-light); font-weight: 800; color: var(--deep); border-top: 2px solid #cfe6f7; }
@media (max-width: 900px) { .cont-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .cont-filters { grid-template-columns: 1fr; }
  .erp-form { padding: 16px; }
  .erp-actions { justify-content: flex-start; }
}
a.btn { text-decoration: none; }

/* Contábil: envio de XMLs em 2 passos */
.xml-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.xml-step { display: flex; gap: 14px; border: 1px solid #dbeaf6; border-radius: 12px; padding: 14px 16px; background: #fafdff; }
.xml-step.off { opacity: 0.55; }
.xml-num { width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.xml-body { flex: 1; min-width: 0; }
.xml-actions { margin-top: 10px; }
.xml-result { margin-top: 12px; background: var(--baby-light); border: 1px solid #cfe6f7; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 13px; }

/* Contas Mercado Pago */
.mp-alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.mp-alert.ok { background: var(--green-bg); color: #14532d; border: 1px solid #bbf7d0; }
.mp-alert.bad { background: var(--red-bg); color: #7f1d1d; border: 1px solid #fecaca; }
.mp-how { background: var(--baby-light); border: 1px solid #cfe6f7; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-size: 13.5px; color: var(--deep); }
.mp-how ol, .mp-list { margin: 8px 0 0 20px; display: flex; flex-direction: column; gap: 4px; }
.ebtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.e-sky { background: #00b1ea; color: #fff; }
.mp-cell { display: flex; flex-direction: column; gap: 2px; }
.apelido-edit { display: flex; gap: 6px; align-items: center; min-width: 190px; }
.apelido-edit input { flex: 1; min-width: 0; padding: 7px 10px; font-weight: 700; }
.apelido-edit input.saved { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }

/* Anúncios */
.an-table td { vertical-align: middle; }
.an-thumb { width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 22px; }
.an-thumb img { width: 100%; height: 100%; object-fit: contain; }
.an-main { min-width: 280px; }
.an-title { font-weight: 700; color: var(--text); text-decoration: none; font-size: 13.5px; }
.an-title:hover { color: var(--primary-hover); text-decoration: underline; }
.an-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: 12px; }
.an-link { color: var(--green); font-weight: 700; text-decoration: none; }
.an-link:hover { text-decoration: underline; }
.an-old { font-size: 11px; color: var(--muted); text-decoration: line-through; font-weight: 500; }
.pill.off { background: #e2e8f0; color: var(--muted); }
.sync-box { margin-bottom: 14px; }
.sync-progress { background: var(--baby-light); border: 1px solid #cfe6f7; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--deep); }

/* Anúncios v2 — cartões */
.an-card .pcard-head { flex-wrap: wrap; }
.an-body { grid-template-columns: 96px minmax(240px, 1.5fr) minmax(260px, 1.2fr) 290px; }
.pc-pair { display: flex; gap: 6px; }
.pc-pair > * { flex: 1 1 0; min-width: 0; }
.an-body .pc-actions { gap: 6px; }
.an-body .pc-actions > .btn-outline { padding-top: 5px; padding-bottom: 5px; }
.an-status { margin-left: auto; border: none; border-radius: 99px; padding: 5px 14px; font-size: 12px; font-weight: 800; cursor: pointer; transition: filter 0.15s, transform 0.15s; }
.an-status:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.an-status.on { background: #16a34a; color: #fff; box-shadow: 0 2px 8px rgba(22,163,74,0.35); }
.an-status.off { background: #facc15; color: #422006; box-shadow: 0 2px 8px rgba(202,138,4,0.35); }
.an-status.other { background: #e2e8f0; color: var(--muted); cursor: default; }
.an-camp { background: #fef3c7; color: #92400e; }
.an-virt { margin-left: 6px; font-size: 11px; font-weight: 800; color: #6d28d9; background: #f5f3ff; padding: 1px 7px; border-radius: 99px; }
.an-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.an-ic { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #f1f5f9; color: #475569; }
.an-ic.ok { background: var(--green-bg); color: var(--green); }
.an-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.an-metrics > div { background: #f6fbff; border: 1px solid #e3eef8; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.an-metrics span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.an-metrics strong { font-size: 15px; color: var(--text); }
.an-metrics em { font-style: normal; font-size: 11px; color: var(--muted); }
.an-lucro.pos { background: var(--green-bg); border-color: #bbf7d0; } .an-lucro.pos strong { color: var(--green); }
.an-lucro.warn { background: var(--amber-bg); border-color: #fde68a; } .an-lucro.warn strong { color: #b45309; }
.an-lucro.neg { background: var(--red-bg); border-color: #fecaca; } .an-lucro.neg strong { color: var(--red); }
.bulk-log { max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.bulk-log .ok { color: var(--green); } .bulk-log .bad { color: var(--red); }
.bf-opt:disabled { opacity: 0.5; cursor: not-allowed; }
.estr-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; }
@media (max-width: 1100px) { .an-body { grid-template-columns: 96px 1fr; } .an-metrics, .an-body .pc-actions { grid-column: 1 / -1; } }

/* Ficha técnica pela categoria do ML */
.cat-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cat-row > div:first-child { flex: 1 1 320px; }
.cat-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-empty, .cat-chosen { background: #f6fbff; border: 1px solid #e3eef8; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.cat-empty.bad { background: var(--red-bg); border-color: #fecaca; }
.cat-chosen { background: var(--green-bg); border-color: #bbf7d0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat-sugs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cat-sug { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.cat-sug:hover { border-color: var(--primary); background: var(--baby-light); }
.cat-sug.on { border-color: #16a34a; background: var(--green-bg); }
.attr-block { border: 1px solid var(--border); border-radius: 12px; margin-top: 12px; background: #fff; }
.attr-block > summary { cursor: pointer; padding: 10px 14px; font-weight: 800; display: flex; justify-content: space-between; gap: 10px; list-style: none; }
.attr-block > summary::-webkit-details-marker { display: none; }
.attr-block[open] > summary { border-bottom: 1px solid var(--border); }
.attr-block > .form-grid, .attr-block > .kv-list { padding: 12px 14px; }
.attr-block.g-obr { border-left: 4px solid #dc2626; }
.attr-block.g-rec { border-left: 4px solid #f59e0b; }
.attr-block.g-opc { border-left: 4px solid #cbd5e1; }
.attr-block.g-old { border-left: 4px solid #a78bfa; }
.attr-count { font-size: 12px; color: var(--muted); font-weight: 700; }
.attr-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.attr-miss input, .attr-miss select { border-color: #f87171; background: #fff7f7; }
.req { color: #dc2626; }
.ed-check-det { font-size: 11.5px; color: var(--muted); margin: 2px 0 0 22px; }
.ca-val { min-width: 180px; font-size: 12.5px; }
.ca-val-bad { color: var(--red); }
.ca-val-bad ul { margin: 4px 0 0 14px; padding: 0; color: var(--text); }
.ca-val-bad li.warn { color: #b45309; }

/* Criar produto a partir do link do anúncio */
.import-card { background: linear-gradient(135deg, #fffbe6 0%, #fff 70%); border: 1px solid #fde68a; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(15,23,42,0.05); }
.import-title { font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--deep); }
.import-row { display: flex; gap: 8px; }
.import-row input { flex: 1; min-width: 0; }
.import-card .muted { margin-top: 8px; font-size: 12.5px; }
.import-card .mp-alert { margin-top: 8px; }
@media (max-width: 640px) { .import-row { flex-direction: column; } }

/* Origem do produto: catálogo × tradicional */
.orig-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.orig-tag.tradicional { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.orig-tag.catalogo { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.orig-tag.sm { font-size: 10px; padding: 1px 6px; margin-left: 4px; }
.ed-side-orig { text-align: center; font-size: 12px; margin: -4px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; }

.copy-chip { border: 1px dashed #93c5fd; background: #f0f7ff; color: var(--deep); font-weight: 800; font-size: 12px; border-radius: 99px; padding: 1px 9px; cursor: pointer; font-family: inherit; }
.copy-chip:hover { background: #dbeafe; border-style: solid; }
.copy-chip.ok { background: var(--green-bg); border-color: #86efac; color: var(--green); }

.var-sku { background: #f1f5f9 !important; color: var(--deep); font-weight: 800; cursor: default; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; }
.mp-alert.ok { background: var(--green-bg); color: var(--green); border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; }

/* Marketplaces no cartão do produto */
.mk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-row .ml-wrap { display: flex; align-items: center; gap: 4px; }
.mk-count { font-size: 11px; font-weight: 800; background: var(--deep); color: #fff; border-radius: 99px; padding: 1px 7px; }
.mk-logo { display: inline-grid; place-items: center; width: 40px; height: 26px; border-radius: 99px; background: #e5e7eb; color: #9ca3af; font-weight: 900; font-size: 12px; border: 1px solid #d1d5db; cursor: default; filter: grayscale(1); }
.mk-logo.amazon { font-family: Georgia, serif; font-size: 15px; }
.ml-pop { width: 270px; }
.ml-pop::before { content: ''; position: absolute; left: -14px; top: 0; width: 14px; height: 100%; }
.ml-pop-list { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
.ml-pop-list a { font-size: 12px; color: var(--deep); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.ml-pop-list a:hover { text-decoration: underline; }
.ml-pop-list .dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex: none; }
.ml-pop-list .dot.active { background: #16a34a; } .ml-pop-list .dot.paused { background: #facc15; }
/* Associar anúncios */
.assoc-bar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.assoc-bar input { flex: 1 1 260px; min-width: 0; }
.assoc-table { max-height: 50vh; overflow: auto; }
.assoc-table td { vertical-align: middle; }
.assoc-img { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.assoc-img img { width: 100%; height: 100%; object-fit: cover; }
.assoc-ok { background: #f0fdf4; }

.ca-up-note { background: #f5f3ff; border: 1px solid #ddd6fe; color: #4c1d95; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0 10px; }
.ca-up-var { font-size: 12px; margin-bottom: 4px; }

.ca-up-name { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.ca-up-name label { font-size: 12.5px; font-weight: 800; color: var(--deep); }
.ca-up-name input { font-size: 14px; font-weight: 700; }
.ca-up-name .muted { font-size: 11.5px; align-self: flex-end; }
.ca-avisos { margin: 4px 0 0 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted); }

.tog-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-top: 6px; font-size: 13px; }
.tog-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tog-list .dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; flex: none; }
.tog-list .dot.active { background: #16a34a; } .tog-list .dot.paused { background: #facc15; }

/* Anúncio associado ou não a um produto */
.assoc-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; border: 1px solid; font-family: inherit; }
.assoc-chip.ok { background: var(--green-bg); color: var(--green); border-color: #bbf7d0; }
.assoc-chip.no { background: #fff7ed; color: #c2410c; border-color: #fed7aa; cursor: pointer; }
.assoc-chip.no:hover { background: #ffedd5; }
#anBulkDd .dd-menu { min-width: 220px; }

/* Logos oficiais: coloridos = tem anúncio; cinza = sem anúncio / em breve */
.mk-img { width: 30px; height: 30px; object-fit: contain; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--border); filter: grayscale(1); opacity: 0.45; transition: filter 0.15s, opacity 0.15s; }
.mk-img.on { filter: none; opacity: 1; border-color: #fde68a; box-shadow: 0 2px 6px rgba(234,179,8,0.25); }
.mk-img:hover { opacity: 0.85; }
.ml-wrap .mk-img { cursor: pointer; }
.ml-wrap .mk-img:focus + .mk-count + .ml-pop, .ml-wrap .mk-img:focus + .ml-pop { display: block; }

.hd-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; background: #f6fbff; border: 1px dashed #93c5fd; border-radius: 10px; }
.hd-box .muted { font-size: 12px; }

/* Qualidade (nota do ML) e concorrência no catálogo */
.an-metrics > .an-qual { cursor: pointer; }
.an-metrics > .an-qual:hover { box-shadow: 0 0 0 2px rgba(59,143,219,0.25); }
.qd-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.qd-score strong { font-size: 34px; } .qd-score span { color: var(--muted); font-weight: 700; }
.qd-score em { font-style: normal; margin-left: 8px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #eef5fc; }
.qd-score.q-ok strong { color: #16a34a; } .qd-score.q-mid strong { color: #d97706; } .qd-score.q-bad strong { color: #dc2626; }
.qd-h { margin: 6px 0 8px; font-size: 14px; }
.qd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.qd-list li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #fde68a; background: #fffbeb; font-size: 13px; line-height: 1.4; }
.qd-list li.ok { border-color: #bbf7d0; background: #f0fdf4; }
.qd-done { margin-top: 12px; } .qd-done summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.an-qual.q-ok strong { color: #16a34a; } .an-qual.q-mid strong { color: #d97706; } .an-qual.q-bad strong { color: #dc2626; }
.an-qual.q-ok { border-color: #bbf7d0; } .an-qual.q-mid { border-color: #fde68a; } .an-qual.q-bad { border-color: #fecaca; }
.cat-status { font-size: 11px; font-weight: 900; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 99px; color: #fff; }
.cat-status.cs-win { background: #16a34a; } .cat-status.cs-share { background: #2563eb; } .cat-status.cs-lose { background: #dc2626; } .cat-status.cs-off { background: #94a3b8; }
.cat-ganhar { font-size: 11.5px; font-weight: 800; color: #dc2626; }

/* Concorrentes do catálogo e Ganhar */
.conc-resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.conc-resumo > div { background: #f6fbff; border: 1px solid #e3eef8; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.conc-resumo span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.conc-resumo strong { font-size: 16px; }
.conc-resumo em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.conc-resumo .bad strong { color: var(--red); } .conc-resumo .ok strong { color: var(--green); }
.conc-eu { background: #eff6ff; } .conc-meu { background: #f8fafc; }
.ganhar-params { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.ganhar-params input { width: 90px; margin-left: 6px; }
@media (max-width: 700px) { .conc-resumo { grid-template-columns: repeat(2, 1fr); } }

/* Escudo de lucro e 🤖 Auto ganhar */
.escudo-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.escudo-box p { margin: 2px 0 0; font-size: 12.5px; }
.escudo-in { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.escudo-in input { width: 80px; }
.auto-sw { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 800; border: 1px dashed #c4b5fd; border-radius: 10px; padding: 6px 10px; cursor: pointer; color: #5b21b6; background: #faf5ff; }
.auto-sw.on { border-style: solid; background: #ede9fe; box-shadow: 0 0 0 2px rgba(139,92,246,0.15); }
.lucro-min-in { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: #9f1239; border: 1px solid #fecdd3; background: #fff1f2; border-radius: 10px; padding: 4px 8px; }
.lucro-min-in input { width: 50px; padding: 3px 6px; font-size: 12.5px; font-weight: 700; text-align: right; border: 1px solid #fda4af; border-radius: 6px; background: #fff; }
.auto-ult { font-size: 11px; color: var(--muted); line-height: 1.3; max-width: 210px; }
.robo-box { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: #faf5ff; border: 1px solid #ddd6fe; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.robo-box .muted { font-size: 12px; margin-top: 2px; }
.robo-acts { display: flex; gap: 8px; }

/* Produtos em massa + mídia */
.lote-colar { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.lote-colar textarea { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #dbeaf6; border-radius: 9px; resize: vertical; }
.lote-wrap { max-height: 55vh; overflow: auto; }
.lote-table input[type=text], .lote-table input[type=number] { font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid #dbeaf6; border-radius: 7px; width: 100%; min-width: 0; }
.lote-table td:nth-child(2) { min-width: 240px; }
.lote-table tr.ok { background: #f0fdf4; } .lote-table tr.erro { background: #fef2f2; }
.lote-midia { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 220px; }
.lote-thumb { position: relative; width: 36px; height: 36px; }
.lote-thumb img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid #dbeaf6; }
.lote-thumb button { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: none; background: #ef4444; color: #fff; font-size: 9px; line-height: 16px; padding: 0; cursor: pointer; }
.lote-add { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; border: 1px dashed #93c5fd; border-radius: 7px; padding: 6px 8px; cursor: pointer; color: var(--deep); background: #f6fbff; white-space: nowrap; }
.lote-vid { font-size: 12px; white-space: nowrap; } .lote-vid button { border: none; background: none; cursor: pointer; color: var(--red); }
.media-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.media-orig-tag { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,0.92); color: #1e3a5f; border: 1px solid #dbeaf6; }
.media-orig-tag.ia { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }

/* Fotos por cor */
label.var-photo { cursor: pointer; display: flex; align-items: center; justify-content: center; }
label.var-photo span { display: flex; flex-direction: column; align-items: center; font-size: 24px; color: var(--muted); }
label.var-photo small { font-size: 11px; font-weight: 700; }
label.var-photo:hover { box-shadow: 0 0 0 2px var(--baby); }
.var-pic { position: relative; }
.var-pic em { position: absolute; left: 2px; bottom: 2px; font-style: normal; font-size: 9px; font-weight: 800; background: #fef3c7; color: #92400e; border-radius: 4px; padding: 0 3px; }
.var-add { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--deep); border: 1px dashed #93c5fd !important; background: #f6fbff; cursor: pointer; }

.sel-tudo { font-weight: 700; white-space: nowrap; }

.var-sku-in { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 8px; border: 1px solid #c7ddf2; border-radius: 7px; width: 140px; }
.var-sku-in:focus { outline: 2px solid var(--baby); }

.var-sku-in[readonly] { background: #f1f5f9; color: var(--muted); cursor: not-allowed; }

.ae-prod { padding: 9px 10px; border: 1px solid #dbeaf6; border-radius: 9px; background: #f6fbff; font-size: 13px; }

.fin-box { text-align: center; font-size: 12.5px; font-weight: 800; color: #64748b; background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px; }

/* ===== Mais vendidos & Curva ABC ===== */
:root { --cv-a: #10b981; --cv-b: #f59e0b; --cv-c: #64748b; --cv-line: #1d4ed8; }
.cv-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.cv-filtros input, .cv-filtros select { width: 100%; }
.cv-nota { margin: 8px 0 12px; font-size: 12.5px; }
.cv-tabs { display: flex; gap: 6px; border-bottom: 2px solid #dbeaf6; margin-bottom: 14px; flex-wrap: wrap; }
.cv-tabs button { font: inherit; font-weight: 800; font-size: 14px; border: none; background: none; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.cv-tabs button.on { color: var(--deep); border-bottom-color: var(--baby, #3b8fdb); }
.cv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cv-cls { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #dbeaf6; border-radius: 14px; padding: 14px 16px; border-top: 4px solid var(--cv-c); }
.cv-cls.cv-A { border-top-color: var(--cv-a); } .cv-cls.cv-B { border-top-color: var(--cv-b); }
.cv-cls-ico { font-size: 22px; width: 42px; height: 42px; border-radius: 10px; background: #f6fbff; display: grid; place-items: center; }
.cv-cls-t { font-weight: 800; font-size: 15px; } .cv-cls-n { font-size: 13px; margin-top: 2px; } .cv-cls-n strong { font-size: 18px; }
.cv-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; font-weight: 900; font-size: 12px; color: #fff; background: var(--cv-c); }
.cv-badge.cv-A { background: var(--cv-a); } .cv-badge.cv-B { background: var(--cv-b); }
.cv-matriz-card, .cv-pareto-card { background: #fff; border: 1px solid #dbeaf6; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.cv-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cv-sec-h h3 { margin: 0; font-size: 15px; }
.cv-matriz { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 8px; }
.cv-mh { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); text-align: center; }
.cv-mr { display: grid; place-items: center; }
.cv-box { font: inherit; text-align: left; border: 1px solid #e2e8f0; border-left: 4px solid var(--cv-c); background: #f8fafc; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.cv-box.cv-A { border-left-color: var(--cv-a); background: #f0fdf7; } .cv-box.cv-B { border-left-color: var(--cv-b); background: #fffbeb; }
.cv-box:hover { box-shadow: 0 0 0 2px rgba(59,143,219,.25); } .cv-box.on { box-shadow: 0 0 0 2px var(--deep); }
.cv-box-t { font-weight: 800; font-size: 14px; } .cv-box-n { font-size: 12.5px; } .cv-box-a { font-size: 12px; color: var(--muted); }
.cv-box-f, .cv-freio { font-size: 11.5px; font-weight: 700; color: var(--red); }
.cv-svg-wrap { overflow-x: auto; } .cv-svg-wrap svg { width: 100%; min-width: 560px; height: auto; display: block; }
.cv-grid { stroke: #e8eef5; stroke-width: 1; } .cv-corte { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 4 4; }
.cv-ax { font-size: 11px; fill: #64748b; }
.cv-leg { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cv-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; } .cv-leg i.ln { width: 14px; height: 2px; background: var(--cv-line); border-radius: 0; }
.cv-busca { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid #dbeaf6; border-radius: 9px; min-width: 220px; }
.cv-table td { vertical-align: top; } .cv-table tfoot td { background: #1e3a5f; color: #fff; } .cv-table tfoot .muted { color: #cbd5e1; }
.cv-prod { display: flex; gap: 8px; align-items: flex-start; min-width: 240px; }
.cv-prod img, .cv-noimg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid #e2e8f0; display: grid; place-items: center; flex: 0 0 40px; }
.cv-tit { font-size: 12.5px; margin-top: 2px; }
.cv-warn { color: #b45309; font-weight: 700; }
.cv-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--deep, #1e3a5f); color: #fff; font-weight: 800; font-size: 12px; }
.cv-row-repor { background: #fffbeb; }
@media (max-width: 700px) { .cv-matriz { grid-template-columns: 28px 1fr; } .cv-matriz > .cv-mh, .cv-matriz > div:first-child { display: none; } }

.cv-graf-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cv-graf-grid { grid-template-columns: 1fr; } }
.cv-destaque { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; background: #f0fdf7; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 14px; }
.cv-destaque strong { font-size: 16px; }
.cv-faixa { opacity: .07; } .cv-fA { fill: var(--cv-a); } .cv-fB { fill: var(--cv-b); } .cv-fC { fill: var(--cv-c); }
.cv-faixa-t { font-size: 11px; font-weight: 800; fill: #475569; }
.cv-marca { stroke: var(--cv-a); stroke-width: 2; stroke-dasharray: 5 4; }
.cv-bar { cursor: pointer; } .cv-bar:hover { opacity: .8; }
.cv-rosca { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cv-rosca svg { width: 180px; height: 180px; } .cv-rosca path { cursor: pointer; } .cv-rosca path:hover { opacity: .85; }
.cv-rosca-v { font-size: 14px; font-weight: 800; fill: var(--text, #0f172a); }
.cv-rosca-leg { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.cv-rosca-leg > div { display: flex; gap: 8px; align-items: flex-start; }
.cv-tip { position: fixed; z-index: 9999; pointer-events: none; background: #0f172a; color: #fff; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); max-width: 280px; }
.cv-tip strong { font-size: 12.5px; }

/* ===== Curva ABC v2 (cartões clicáveis) ===== */
.cv-box-card { background: #fff; border: 1px solid #dbeaf6; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.cv-perfil-h { margin-bottom: 8px; font-size: 14px; }
.cv-perfis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.cv-perfil { font: inherit; display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1px solid #dbe3ee; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.cv-perfil:hover { border-color: #93c5fd; }
.cv-perfil.on { border: 2px solid #3b82f6; background: #eff6ff; }
.cv-perfil-ico { width: 40px; height: 40px; border-radius: 10px; background: #e0ecff; display: grid; place-items: center; font-size: 20px; flex: 0 0 40px; }
.cv-perfil.on .cv-perfil-ico { background: #2563eb; }
.cv-perfil-n { display: block; font-size: 18px; font-weight: 800; color: var(--text, #0f172a); }
.cv-perfil.on .cv-perfil-n { color: #1d4ed8; }
.cv-perfil-s { display: block; font-size: 12.5px; color: var(--muted); }
.cv-radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; flex: 0 0 18px; }
.cv-perfil.on .cv-radio { border-color: #2563eb; box-shadow: inset 0 0 0 4px #fff; background: #2563eb; }
.cv-perfil-txt { font-size: 13.5px; line-height: 1.55; margin: 10px 0 12px; }
.cv-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.cv-card { background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; border-top: 4px solid #94a3b8; overflow: hidden; }
.cv-card-azul { border-top-color: #3b82f6; background: #f5f9ff; }
.cv-card-vermelho { border-top-color: #ef4444; background: #fff5f5; }
.cv-card-clsA { border-top-color: var(--cv-a); background: #effcf6; }
.cv-card-clsB { border-top-color: var(--cv-b); background: #fffbeb; }
.cv-card-clsC { border-top-color: var(--cv-c); background: #f6f8fb; }
.cv-card-h { font: inherit; width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 14px 16px; cursor: pointer; text-align: left; }
.cv-card-ico { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.8); display: grid; place-items: center; font-size: 20px; flex: 0 0 44px; }
.cv-card-tt { display: flex; flex-direction: column; min-width: 0; }
.cv-card-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #334155; }
.cv-card-clsA .cv-card-t, .cv-card-clsB .cv-card-t, .cv-card-clsC .cv-card-t { font-size: 16px; text-transform: none; letter-spacing: 0; }
.cv-card-v { font-size: 22px; font-weight: 800; color: var(--text, #0f172a); }
.cv-card-v small { font-size: 13px; font-weight: 600; color: var(--muted); }
.cv-card-vermelho .cv-card-v { color: #dc2626; }
.cv-card-s { font-size: 12px; color: var(--muted); }
.cv-card-seta { margin-left: auto; color: #475569; font-size: 14px; }
.cv-card-b { padding: 0 16px 14px; border-top: 1px solid rgba(0,0,0,.06); font-size: 13.5px; line-height: 1.55; }
.cv-card-b p { margin: 10px 0; }
.cv-card-b ul { margin: 4px 0 8px; padding-left: 20px; }
.cv-avanc { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #475569; border-top: 1px dashed #cbd5e1; padding-top: 8px; margin-top: 6px; }
.cv-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.cv-cls-ico2 { font-size: 20px; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cv-chip { font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 4px 8px; border-radius: 7px; border: 1px solid #bfdbfe; background: #fff; color: #1e3a8a; cursor: pointer; text-decoration: none; }
.cv-chip:hover { background: #eff6ff; }
.cv-chip.ruim { border-color: #fecaca; color: #b91c1c; }
.cv-leg-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cv-leg-b { font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: #334155; }
.cv-leg-b i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cv-leg-b i.ln { width: 16px; height: 2px; background: var(--cv-line); }
.cv-leg-b.on { font-weight: 800; text-decoration: underline; }
.cv-leg-b.off { opacity: .4; }
.cv-leg-b:hover { background: #f1f5f9; }
.cv-info { margin-top: 10px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.cv-corte-A { stroke: var(--cv-a); }
.cv-corte-B { stroke: var(--cv-b); }
.cv-corte-t-A { fill: #047857; }
.cv-corte-t-B { fill: #b45309; }
.cv-dot { fill: var(--cv-line); stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.cv-pizza svg { min-width: 0; max-width: 300px; margin: 0 auto; }
.cv-fatia { cursor: pointer; }
.cv-fatia:hover { opacity: .85; }
.cv-pz-l { font-size: 13px; font-weight: 800; fill: #334155; }
.cv-col { background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; padding: 12px; transition: opacity .2s; }
.cv-col.apagada { opacity: .45; }
.cv-col-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cv-col-h select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #94a3b8; border-radius: 8px; }
.cv-col-l { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow: auto; }
.cv-it { font: inherit; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; background: #fff; border: 1px solid #edf1f6; border-radius: 10px; padding: 8px; cursor: pointer; }
.cv-it:hover { border-color: #93c5fd; background: #f8fbff; }
.cv-it img, .cv-it .cv-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 52px; background: #f1f5f9; display: grid; place-items: center; }
.cv-it-t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 12.5px; gap: 2px; }
.cv-it-n { font-weight: 600; color: #1e293b; white-space: normal; }
.cv-it-v { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; white-space: nowrap; }
.cv-tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #fff; }
.cv-tag.aviso { background: #d97706; }
.cv-tag.ruim { background: #dc2626; }
.cv-mais { margin-top: 8px; }
.cv-ins { border: 1px solid #dbe3ee; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; background: #fff; }
.cv-ins p { margin: 6px 0; }
.cv-ins-azul { background: #f5f9ff; border-color: #bfdbfe; }
.cv-ins-amarelo { background: #fffbeb; border-color: #fde68a; }
.cv-ins-vermelho { background: #fff5f5; border-color: #fecaca; }
.cv-ins-verde { background: #effcf6; border-color: #a7f3d0; }
.cv-ins-cinza { background: #f6f8fb; }
.cv-ins-h { display: flex; align-items: center; gap: 8px; }
.cv-ins-h strong { font-size: 14px; }
.cv-ins-ico { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.9); display: grid; place-items: center; flex: 0 0 30px; }
.cv-ins-n { margin-left: auto; font-size: 11.5px; font-weight: 700; background: #fff; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.cv-barra { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.cv-barra i { display: block; height: 100%; background: #f59e0b; }
.cv-det-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding-right: 30px; }
.cv-det-h img, .cv-det-h .cv-noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 64px; display: grid; place-items: center; background: #f1f5f9; }
.cv-det-dec { border-left: 4px solid var(--cv-c); background: #f6f8fb; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; }
.cv-det-dec.cv-A { border-left-color: var(--cv-a); background: #effcf6; }
.cv-det-dec.cv-B { border-left-color: var(--cv-b); background: #fffbeb; }
.cv-det-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cv-det-l { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }

.org-table td { vertical-align: top; }
.org-table select, .org-cod { font: inherit; font-size: 12.5px; padding: 5px 7px; border: 1px solid #c7ddf2; border-radius: 7px; }
.org-cod { width: 120px; font-weight: 700; }
.org-duvida { background: #fffbeb; }

.org-cod-w { display: inline-flex; gap: 4px; align-items: center; }
.org-nav-b { font: inherit; border: 1px solid #c7ddf2; background: #f6fbff; border-radius: 7px; padding: 4px 8px; cursor: pointer; }
.org-nav-b:hover { background: var(--baby-light, #e0f2fe); }
.org-nav { max-height: 55vh; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 10px; }
.org-nav-l { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; }
.org-nav-l.livre { background: #f0fdf4; } .org-nav-l.meu { background: #dbeafe; }
.org-nav-n { min-width: 0; }

/* SKU → NCM: códigos de um prefixo */
.sn-link { text-decoration: none; cursor: pointer; } .sn-link:hover { background: #dbeafe; }
.sn-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sn-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sn-tab { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid #c7ddf2; background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.sn-tab.on { background: var(--deep, #1e3a5f); color: #fff; border-color: transparent; }
.sn-scroll { flex: 1; overflow-y: auto; min-height: 0; border: 1px solid #e2e8f0; border-radius: 10px; }
.sn-scroll thead th { position: sticky; top: 0; z-index: 1; }
.sn-livre td { background: #f0fdf4; }

/* Painel de códigos por cima da página (igual ao menu ☰) */
.sn-painel-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15,40,66,.35); display: none; }
.sn-painel-bg.open { display: block; animation: fadeIn .15s; }
.sn-painel { position: absolute; top: 0; right: 0; bottom: 0; width: min(980px, 100%); background: var(--bg, #f4f9ff); box-shadow: -18px 0 40px -12px rgba(15,40,66,.45); display: flex; flex-direction: column; padding: 18px max(16px, 2vw); animation: snEntra .2s ease-out; }
@keyframes snEntra { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.sn-head h2 { margin: 0 0 4px; font-size: 20px; } .sn-head .modal-close { position: static; }
button.sn-link { font: inherit; font-weight: 800; border: 1px solid #93c5fd; background: #fff; }
.sn-pai td { background: #fff; font-weight: 600; }
.sn-cor td { background: #f8fbff; font-size: 12.5px; border-top: none; }
.sn-seta { color: #94a3b8; margin: 0 6px 0 8px; }
@media (prefers-reduced-motion: reduce) { .sn-painel, .sn-painel-bg.open { animation: none; } }

.sn-sku { white-space: nowrap; width: 1%; }

.sn-velho { opacity: .6; text-decoration: line-through; }
.sn-painel .modal-actions { margin-top: 10px; }

.org-tab td { vertical-align: top; }
.org-tab select { font: inherit; font-size: 12.5px; padding: 5px 7px; border: 1px solid #c7ddf2; border-radius: 7px; }
.org-entra td { background: #f0fdf4; }
.org-duvida td { background: #fffbeb; }

.ro-regra { background: #f1f5f9; color: #334155; cursor: not-allowed; }

.cor-chip { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #fdf4ff; color: #86198f; border: 1px solid #f5d0fe; vertical-align: middle; }

.sku-edit { font: inherit; font-weight: 700; cursor: pointer; } .sku-edit:hover { background: #dbeafe; }

/* Selo de trabalho em segundo plano */
.bg-job { font: inherit; position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 260px; max-width: 340px; background: #0f2a44; color: #fff; border: none; border-radius: 12px; padding: 10px 14px 12px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); cursor: pointer; overflow: hidden; }
.bg-job strong { font-size: 13.5px; } .bg-job span { font-size: 12px; opacity: .85; }
.bg-job i { position: absolute; left: 0; bottom: 0; height: 4px; background: #38bdf8; transition: width .3s; }
.bg-job.fim { background: #14532d; }

/* Ações em massa: opções em pílula com borda (como o "● Ativo") */
#anBulkDd .dd-menu, #prodBulkDd .dd-menu { display: none; padding: 8px; min-width: 270px; }
#anBulkDd.open .dd-menu, #prodBulkDd.open .dd-menu { display: flex; flex-direction: column; gap: 6px; }
#anBulkDd .dd-menu button, #prodBulkDd .dd-menu button { border: 1.5px solid #bfdbfe; background: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13px; color: #1e3a5f; }
#anBulkDd .dd-menu button:hover, #prodBulkDd .dd-menu button:hover { background: #eff6ff; border-color: #3b82f6; }
#anBulkDd .dd-menu button.danger, #prodBulkDd .dd-menu button.danger { border-color: #fecaca; color: #b91c1c; }
#anBulkDd .dd-menu button.danger:hover, #prodBulkDd .dd-menu button.danger:hover { background: #fef2f2; border-color: #ef4444; }
.aviso-chip { font: inherit; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; cursor: pointer; vertical-align: middle; }
.dup-contas { display: flex; flex-wrap: wrap; gap: 8px; }
.dup-conta { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #bfdbfe; border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* Ações em massa: texto no meio */
#anBulkDd .dd-menu button, #prodBulkDd .dd-menu button { justify-content: center; text-align: center; }
/* Editar anúncio: abas */
.ae-tabs { display: flex; gap: 6px; border-bottom: 2px solid #dbeaf6; margin-bottom: 14px; flex-wrap: wrap; }
.ae-tab { font: inherit; font-weight: 800; font-size: 13.5px; border: none; background: none; padding: 9px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ae-tab.on { color: var(--deep, #1e3a5f); border-bottom-color: #3b82f6; }
.ae-sec { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fbfdff; }
.ae-sec > summary { cursor: pointer; }
.ae-sec-h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.ae-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ae-foto { position: relative; aspect-ratio: 1; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.ae-foto img { width: 100%; height: 100%; object-fit: contain; }
.ae-foto.principal { border: 2px solid #3b82f6; }
.ae-tag { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 800; background: #1e3a5f; color: #fff; border-radius: 6px; padding: 1px 6px; }
.ae-tag.nova { left: auto; right: 4px; background: #f59e0b; }
.ae-foto-a { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 4px; background: rgba(255,255,255,.9); }
.ae-foto-a button { border: 1px solid #dbeaf6; background: #fff; border-radius: 6px; cursor: pointer; font-size: 11px; padding: 2px 6px; }
.ae-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 22px; color: var(--muted); border-style: dashed; cursor: pointer; }
.ae-add span { font-size: 12px; font-weight: 700; }
.ae-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.ae-desc { width: 100%; font: inherit; font-size: 13px; line-height: 1.5; padding: 10px 12px; border: 1px solid #dbeaf6; border-radius: 10px; resize: vertical; }
/* Duplicar */
.dup-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-right: 36px; }
.dup-ico { width: 46px; height: 46px; border-radius: 12px; background: #eff6ff; display: grid; place-items: center; font-size: 22px; }
.dup-sec { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.dup-sec-t { font-weight: 800; font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.dup-n { width: 22px; height: 22px; border-radius: 50%; background: #1e3a5f; color: #fff; display: grid; place-items: center; font-size: 12px; }
.dup-conta .dup-av { width: 24px; height: 24px; border-radius: 50%; background: #3b82f6; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.dup-conta:has(input:checked) { background: #eff6ff; border-color: #3b82f6; }
.dup-seg { display: inline-flex; border: 1.5px solid #bfdbfe; border-radius: 99px; overflow: hidden; }
.dup-seg button { font: inherit; font-weight: 700; font-size: 13px; border: none; background: #fff; padding: 8px 16px; cursor: pointer; color: #1e3a5f; }
.dup-seg button + button { border-left: 1.5px solid #bfdbfe; }
.dup-seg button.on { background: #1e3a5f; color: #fff; }
.dup-preco { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dup-preco button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #bfdbfe; background: #fff; font-weight: 800; cursor: pointer; }
.dup-preco input { width: 70px; text-align: center; font: inherit; font-weight: 800; padding: 6px; border: 1px solid #bfdbfe; border-radius: 8px; }
.dup-sw { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dup-sw input { display: none; }
.dup-sw-ui { width: 38px; height: 22px; border-radius: 99px; background: #cbd5e1; position: relative; flex: 0 0 38px; transition: background .2s; }
.dup-sw-ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.dup-sw input:checked + .dup-sw-ui { background: #16a34a; }
.dup-sw input:checked + .dup-sw-ui::after { left: 19px; }
.dup-aviso { font-size: 12.5px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
/* Produto: ficha só leitura */
.ficha-ro { opacity: .85; }

.cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cf-box { font: inherit; text-align: left; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.cf-box strong { font-size: 26px; } .cf-box span { font-size: 12.5px; color: var(--muted); }
.cf-box.ok { border-left: 4px solid #16a34a; } .cf-box.ruim { border-left: 4px solid #dc2626; } .cf-box.aviso { border-left: 4px solid #f59e0b; }

.tipo-ico { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.tipo-ico.cat { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }
.tipo-ico.trad { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }

/* filtro ligado (fora do padrão) */
.filter-card label.fl.fl-on > span { color: #1d4ed8; font-weight: 800; }
.filter-card label.fl.fl-on > span::before { content: '● '; color: #2563eb; }
.filter-card label.fl.fl-on select,
.filter-card label.fl.fl-on input { border-color: #2563eb !important; background: #eff6ff !important; box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); font-weight: 700; }
.fl-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fl-chip { font: inherit; font-size: 12px; color: #1e3a8a; background: #eff6ff; border: 1px solid #93c5fd; border-radius: 99px; padding: 3px 6px 3px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.fl-chip:hover { background: #dbeafe; border-color: #2563eb; }
.fl-chip .fl-x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 10px; font-weight: 800; }
.fl-chip:hover .fl-x { background: #dc2626; }

/* Botões de categoria (prefixo do SKU): borda azul, texto de apoio em cinza */
.pref-chip { font: inherit; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: #fff; border: 1.5px solid #93c5fd; border-radius: 10px; padding: 7px 12px; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.pref-chip strong { color: #1d4ed8; font-size: 14px; font-weight: 800; letter-spacing: .3px; }
.pref-chip small { color: #64748b; font-size: 11.5px; line-height: 1.3; }
.pref-chip:hover { border-color: #2563eb; background: #eff6ff; }
.pref-chip.on { border-color: #2563eb; background: #dbeafe; box-shadow: 0 0 0 2px rgba(37, 99, 235, .2); }
.pref-ov { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 10000; padding: 16px; }
.pref-box { background: #fff; border-radius: 16px; padding: 18px; width: min(640px, 100%); max-height: 85vh; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.pref-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pref-h .modal-close { position: static; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pref-grid .pref-chip { width: 100%; }
.cv-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.cv-cats-l { font-size: 12px; font-weight: 700; color: #475569; margin-right: 4px; }
.cv-A-t { color: #16a34a; } .cv-B-t { color: #d97706; } .cv-C-t { color: #dc2626; }

.pref-chip.warn { border-color: #fdba74; } .pref-chip.warn strong { color: #c2410c; } .pref-chip.warn.on { background: #fff7ed; border-color: #ea580c; box-shadow: 0 0 0 2px rgba(234, 88, 12, .2); }

/* ===== Publicidade (Mercado Ads) ===== */
.pub-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.pub-dias { display: inline-flex; background: #eef2ff; border-radius: 10px; padding: 3px; gap: 2px; }
.pub-dias button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: #475569; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.pub-dias button.on { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pub-tabs { margin: 0 0 0 auto; }
.pub-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pub-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden; }
.pub-kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.pub-kpi.bom::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.pub-kpi.ruim::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.pub-kpi-h { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: #64748b; display: flex; gap: 6px; align-items: center; }
.pub-kpi-v { font-size: 24px; font-weight: 800; color: #0f172a; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pub-kpi-s { font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pub-d { font-weight: 800; border-radius: 99px; padding: 1px 7px; font-size: 11.5px; }
.pub-d.bom { color: #15803d; background: #dcfce7; }
.pub-d.ruim { color: #b91c1c; background: #fee2e2; }
.pub-d.neutro { color: #475569; background: #f1f5f9; }
.pub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pub-span2 { grid-column: span 2; }
@media (max-width: 1100px) { .pub-grid { grid-template-columns: 1fr; } .pub-span2 { grid-column: auto; } .pub-tabs { margin-left: 0; } }
.pub-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; min-width: 0; }
.pub-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-card-h strong { font-size: 15px; color: #0f172a; }
.pub-card-h .muted { font-size: 12px; }
.pub-chart { min-height: 320px; }
.pub-chart-sm { min-height: 230px; }
.pub-tip { padding: 8px 10px; font-size: 12.5px; line-height: 1.5; }
.pub-funil { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; }
.pub-funil-l { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #fff; padding: 12px 16px; border-radius: 10px; background: linear-gradient(90deg, #1d4ed8, #3b82f6); min-width: 150px; font-size: 13px; }
.pub-funil-l:nth-of-type(2) { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.pub-funil-l:nth-of-type(3) { background: linear-gradient(90deg, #15803d, #22c55e); }
.pub-funil-l strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.pub-funil-t { font-size: 11.5px; font-weight: 800; color: #475569; background: #f1f5f9; border-radius: 99px; padding: 2px 10px; }
.pub-camps { display: flex; flex-direction: column; gap: 12px; }
.pub-camp { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 14px; padding: 14px 16px; }
.pub-camp.off { border-left-color: #94a3b8; opacity: .85; }
.pub-camp-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pub-camp-n { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.pub-camp-n strong { font-size: 15.5px; }
.pub-camp-n .muted { font-size: 12.5px; }
.pub-camp-acts { display: flex; gap: 6px; }
.pub-camp-m { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; align-items: end; }
.pub-camp-m div span { display: block; font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; }
.pub-camp-m div strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.pub-spark { grid-column: span 2; min-height: 46px; }
.pub-switch { position: relative; width: 42px; height: 24px; flex: none; }
.pub-switch input { opacity: 0; width: 0; height: 0; }
.pub-switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; cursor: pointer; transition: .2s; }
.pub-switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pub-switch input:checked + span { background: #16a34a; }
.pub-switch input:checked + span::before { transform: translateX(18px); }
.ok-txt { color: #15803d; }
.bad-txt { color: #dc2626; }
.pub-ads-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.pub-bulk { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pub-danger { color: #b91c1c !important; border-color: #fecaca !important; }
.pub-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.pub-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pub-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: #64748b; padding: 10px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; position: sticky; top: 0; white-space: nowrap; }
.pub-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.pub-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pub-table tr.sel td { background: #eff6ff; }
.pub-table tr:hover td { background: #f8fafc; }
.pub-ad { display: flex; gap: 10px; align-items: center; min-width: 280px; }
.pub-ad img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; }
.pub-ad-t { font-weight: 600; color: #0f172a; }
.pub-st { font-size: 12px; font-weight: 700; }
.pub-st.active { color: #15803d; }
.pub-st.paused { color: #b45309; }
.pub-tag { font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.pub-tag.bom { background: #dcfce7; color: #15803d; }
.pub-tag.ruim { background: #fee2e2; color: #b91c1c; }
.pub-ins { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; margin-top: 8px; border: 1px solid #e2e8f0; background: #f8fafc; }
.pub-ins.bom { background: #f0fdf4; border-color: #bbf7d0; }
.pub-ins.ruim { background: #fef2f2; border-color: #fecaca; }
.pub-ins.aviso { background: #fffbeb; border-color: #fde68a; }
.pub-ins > div { flex: 1; }
.pub-ins p { margin: 2px 0 0; font-size: 13px; color: #475569; }
.pub-ins-i { font-size: 22px; }
.pub-glossario { margin-top: 16px; font-size: 13px; color: #475569; background: #f8fafc; border-radius: 12px; padding: 12px 14px; }
.pub-form { display: grid; gap: 12px; }
.pub-form small { display: block; margin-top: 4px; }
.pub-estr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 700px) { .pub-estr { grid-template-columns: 1fr; } }
.pub-estr-o { display: flex; gap: 8px; border: 1.5px solid #93c5fd; border-radius: 10px; padding: 10px; cursor: pointer; }
.pub-estr-o:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.pub-estr-o strong { display: block; color: #1d4ed8; }
.pub-estr-o small { color: #64748b; font-size: 11.5px; }
.pub-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pa-l { display: block; padding: 6px 4px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 13px; }

.cv-mg { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; letter-spacing: 0; }
.cv-mg.bom { background: #dcfce7; color: #15803d; } .cv-mg.medio { background: #e0f2fe; color: #0369a1; } .cv-mg.baixo { background: #fef3c7; color: #b45309; } .cv-mg.neg { background: #fee2e2; color: #b91c1c; }

.pub-piloto { background: #fff; border: 2px solid #cbd5e1; border-radius: 16px; padding: 18px; }
.pub-piloto.on { border-color: #16a34a; background: linear-gradient(180deg, #f0fdf4, #fff 60%); }
.pub-piloto-h { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pub-piloto-h > div { flex: 1; min-width: 260px; }
.pub-piloto-st { font-size: 20px; font-weight: 800; color: #0f172a; }
.pub-piloto-btn { font-size: 16px; padding: 12px 22px; }
.pub-piloto-regras { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.pub-piloto-regras div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.pub-piloto-regras strong { display: block; color: #1d4ed8; margin-bottom: 2px; }
.pub-piloto-regras span { color: #475569; }
.pub-piloto-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pub-piloto-form small { display: block; margin-top: 3px; font-size: 11.5px; }
.pub-in { display: flex; align-items: center; gap: 6px; }
.pub-in i { font-style: normal; font-weight: 700; color: #64748b; }
.pub-ins.info { background: #eff6ff; border-color: #bfdbfe; }

.home-ads { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: linear-gradient(90deg, #eff6ff, #fff); border: 1px solid #bfdbfe; border-radius: 14px; padding: 12px 16px; margin: 14px 0; font: inherit; font-size: 13.5px; color: #334155; cursor: pointer; text-align: left; }
.home-ads:hover { border-color: #2563eb; }
.home-ads-t { font-weight: 800; color: #1d4ed8; }
.home-ads-p { font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 99px; padding: 2px 10px; }
.home-ads-p.on { color: #15803d; background: #dcfce7; }
.home-ads-go { margin-left: auto; font-weight: 800; color: #1d4ed8; }

.pub-st-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pub-camp-n .acc-chip { font-size: 11px; vertical-align: 2px; margin-left: 4px; }

.pub-ia-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.pub-ia-op { display: flex; gap: 12px; align-items: flex-start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; cursor: pointer; }
.pub-ia-op strong { display: block; color: #0f172a; }
.pub-ia-op small { color: #475569; font-size: 12.5px; }
.pub-chave { font-size: 12px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 99px; padding: 2px 10px; }
.pub-chave.ok { color: #15803d; background: #dcfce7; }
.pub-ins.vetada { background: #f1f5f9; border-color: #cbd5e1; opacity: .85; }

.pub-modo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-weight: 700; }
.pub-modo .muted { font-weight: 400; font-size: 12.5px; }
.pub-sug { border: 2px solid #93c5fd; margin-bottom: 16px; }
.pub-sug-l { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; margin-top: 8px; cursor: pointer; background: #fff; }
.pub-sug-l input { margin-top: 4px; width: 18px; height: 18px; }
.pub-sug-l small { display: block; color: #475569; font-size: 12.5px; margin-top: 2px; }
.pub-sug-l.feito { opacity: .6; background: #f0fdf4; }
.pub-sug-l.feito strong { text-decoration: line-through; }

.home-ads-ia { font-weight: 700; color: #6d28d9; background: #ede9fe; border-radius: 99px; padding: 2px 10px; }

.pub-tar-exp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pub-tar-exp div { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #475569; }
.pub-tar-exp strong { display: block; color: #0f172a; font-size: 13.5px; margin-bottom: 2px; }
.pub-tar-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pub-tar td { vertical-align: top; }
.pub-tar tr.feito td { opacity: .5; }
.pub-tar tr.feito strong { text-decoration: line-through; }
.pub-tar input[type=checkbox] { width: 18px; height: 18px; }
.pub-fonte { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.pub-fonte.p { background: #dbeafe; color: #1d4ed8; }
.pub-fonte.i { background: #ede9fe; color: #6d28d9; }

/* ===== Objetivos ===== */
.obj-lista { display: flex; flex-direction: column; gap: 14px; }
.obj-card { background: #fff; border: 1px solid #e2e8f0; border-left: 5px solid #7c3aed; border-radius: 16px; padding: 16px; }
.obj-card.off { opacity: .7; border-left-color: #94a3b8; }
.obj-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.obj-nome { font-size: 17px; color: #0f172a; }
.obj-pri { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: #f1f5f9; color: #475569; vertical-align: 2px; }
.obj-pri.alta { background: #fee2e2; color: #b91c1c; }
.obj-st { font-size: 13px; font-weight: 800; border-radius: 99px; padding: 4px 12px; }
.obj-st.ok { background: #dcfce7; color: #15803d; } .obj-st.ruim { background: #fef3c7; color: #b45309; }
.obj-barra { position: relative; height: 26px; background: #f1f5f9; border-radius: 99px; margin: 12px 0; overflow: hidden; }
.obj-barra i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7c3aed, #a78bfa); border-radius: 99px; }
.obj-barra span { position: relative; display: block; text-align: center; line-height: 26px; font-size: 13px; font-weight: 800; color: #1e1b4b; }
.obj-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.obj-nums span { display: block; font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; }
.obj-nums strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.obj-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.obj-plano { margin-top: 14px; border-top: 1px dashed #cbd5e1; padding-top: 12px; }
.obj-prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.obj-form-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.home-obj { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: linear-gradient(90deg, #f5f3ff, #fff); border: 1px solid #ddd6fe; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font: inherit; font-size: 13.5px; color: #334155; cursor: pointer; text-align: left; }
.home-obj .home-ads-t { color: #6d28d9; }
.home-obj-i { display: inline-flex; align-items: center; gap: 6px; }
.obj-mini { position: relative; display: inline-block; width: 70px; height: 8px; background: #ede9fe; border-radius: 99px; overflow: hidden; }
.obj-mini i { position: absolute; inset: 0 auto 0 0; background: #7c3aed; }

/* ===== Otimizador ===== */
.ot-nota { display: inline-block; min-width: 34px; text-align: center; font-weight: 800; border-radius: 8px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.ot-nota.bom { background: #dcfce7; color: #15803d; } .ot-nota.medio { background: #dbeafe; color: #1d4ed8; } .ot-nota.fraco { background: #ffedd5; color: #c2410c; } .ot-nota.ruim { background: #fee2e2; color: #b91c1c; }
.ot-fx { cursor: pointer; text-align: left; font: inherit; }
.ot-fx.on { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .2); }
.ot-tipos { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.ot-tab tr.ot-l { cursor: pointer; }
.ot-tab tr.ot-det td { background: #f8fafc; }
.ot-partes { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #475569; margin-bottom: 6px; }

.ot-mkts { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ot-mkt { font: inherit; font-size: 12px; font-weight: 700; border: 1.5px solid #93c5fd; background: #fff; color: #1d4ed8; border-radius: 99px; padding: 3px 10px; cursor: pointer; }
.ot-mkt.on { background: #2563eb; color: #fff; border-color: #2563eb; }

.ot-conc-box { background: #fff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.ot-conc { margin-top: 6px; font-size: 12.5px; }

/* Concorrência: lista rápida */
.cq-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.cq-f { font: inherit; font-size: 12.5px; font-weight: 700; border: 1.5px solid #cbd5e1; background: #fff; color: #334155; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.cq-f.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.cq-list { display: flex; flex-direction: column; gap: 6px; }
.cq-row { display: grid; grid-template-columns: 26px 54px minmax(160px, 1.4fr) 110px minmax(180px, 1.5fr) 120px auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; }
.cq-row.ok { background: #f0fdf4; border-color: #bbf7d0; }
@media (max-width: 1000px) { .cq-row { grid-template-columns: 26px 48px 1fr; } .cq-row > .cq-hide { display: none; } }
.cq-row img, .cq-noimg { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; display: grid; place-items: center; }
.cq-t { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.25; }
.cq-preco { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cq-acao { font-size: 13.5px; font-weight: 800; color: #1d4ed8; }
.cq-dif { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.cq-dif.caro { background: #fee2e2; color: #b91c1c; } .cq-dif.barato { background: #dcfce7; color: #15803d; } .cq-dif.na { background: #f1f5f9; color: #64748b; }
.cq-btns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cq-det { grid-column: 1 / -1; border-top: 1px dashed #cbd5e1; padding-top: 8px; margin-top: 4px; }
.cq-quando { font-size: 11px; color: #64748b; }
.cq-quando.vencida { color: #b45309; font-weight: 700; }

/* painel fixo no topo ao rolar + linhas do médico */
.ot-sticky { position: sticky; top: 62px; z-index: 30; background: #f4f8ff; padding: 8px 0 4px; margin: 0 -4px 6px; padding-left: 4px; padding-right: 4px; border-bottom: 1px solid #dbe6f5; box-shadow: 0 6px 10px -8px rgba(15, 23, 42, .25); }
.dr-diag { font-size: 12.5px; font-weight: 800; color: #b45309; }
.cq-row.dr { grid-template-columns: 26px 54px minmax(180px, 1.5fr) 120px minmax(200px, 1.6fr) auto; }
@media (max-width: 1000px) { .cq-row.dr { grid-template-columns: 26px 48px 1fr; } }

.cq-row.cq-head { background: transparent; border: 0; padding: 0 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: #64748b; }
@media (max-width: 1000px) { .cq-row.cq-head { display: none; } }

/* alinhamento profissional: mesma grade no título e nas linhas */
.cq-row { grid-template-columns: 26px 54px minmax(220px, 2fr) 120px minmax(240px, 2.2fr) 150px 150px; }
.cq-row.dr, .cq-row.bar { grid-template-columns: 26px 54px minmax(220px, 2fr) 120px minmax(260px, 2.6fr) 190px; }
.cq-row .cq-preco { white-space: nowrap; }
.ot-sticky .cq-head { margin-top: 6px; padding-top: 6px; border-top: 1px solid #dbe6f5; }
.cq-btns { justify-content: flex-end; }
.ot-monbtn.on { background: #ede9fe; border-color: #a78bfa; color: #6d28d9; font-weight: 800; }
.ot-pin { background: #fef3c7; border-color: #fbbf24; }
.mon-links { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.mon-l { display: grid; grid-template-columns: 1fr 110px 120px 32px; gap: 8px; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.mon-regra { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 12px; padding: 10px 12px; }
.ot-pick { display: grid; grid-template-columns: 24px 44px 1fr 90px; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid #f1f5f9; font-size: 13px; cursor: pointer; }
.ot-pick img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; border: 1px solid #e2e8f0; }

.mon-l { grid-template-columns: 1fr 120px 130px 32px; }

/* 🌡️ termômetro */
.termo { display: inline-block; font-size: 12.5px; font-weight: 800; border-radius: 99px; padding: 3px 10px; }
.termo.vermelho { background: #fee2e2; color: #b91c1c; } .termo.verde, .termo.ok { background: #dcfce7; color: #15803d; } .termo.amarelo { background: #fef3c7; color: #b45309; }
.cq-row.termo-vermelho { border-left: 4px solid #ef4444; } .cq-row.termo-verde, .cq-row.termo-ok { border-left: 4px solid #22c55e; } .cq-row.termo-amarelo { border-left: 4px solid #f59e0b; }
.termo-btn { font-weight: 800; color: #fff; border: 0; }
.termo-btn.vermelho { background: #dc2626; } .termo-btn.verde, .termo-btn.ok { background: #16a34a; } .termo-btn.amarelo { background: #d97706; }
.pesq-nova { background: #fee2e2; color: #b91c1c; border: 1.5px solid #fca5a5; font-weight: 800; }
.ot-est { display: inline-block; font-size: 11px; font-weight: 800; background: #ede9fe; color: #6d28d9; border-radius: 99px; padding: 1px 8px; }

/* coluna de ações igual em todas as linhas: ⚡ em cima, ícones embaixo */
.acts2 { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.acts2 .acts-top { min-height: 30px; display: flex; justify-content: flex-end; }
.acts2 .acts-top .btn { min-width: 112px; }
.acts2 .acts-ico { display: flex; gap: 6px; justify-content: flex-end; }
.cq-link { display: block; color: #0f172a; text-decoration: none; }
.cq-link:hover { color: #1d4ed8; text-decoration: underline; }

.pp-on { background: #16a34a; color: #fff; border: 0; font-weight: 800; }
label.ot-mkt { display: inline-block; }


/* abas do Otimizador: a ativa fica com borda (pílula) */
#view-otimizador .cv-tabs { gap: 8px; border-bottom: 0; }
#view-otimizador .cv-tabs button { border: 1.5px solid transparent; border-radius: 10px; padding: 8px 16px; }
#view-otimizador .cv-tabs button.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; box-shadow: 0 1px 4px rgba(37, 99, 235, .18); }
#view-otimizador .cv-tabs button.on::after { display: none; }

/* 📡 Monitor e Saúde: 3 quadros de ação */
.cq-row.ms2 { grid-template-columns: 26px 54px minmax(200px, 1.7fr) 105px minmax(170px, 1.3fr) minmax(150px, 1.2fr) 120px 190px; }
.cq-row.ms2 { grid-template-columns: 26px 50px minmax(160px, 1.6fr) 90px minmax(140px, 1.2fr) minmax(130px, 1.1fr) 100px 170px; gap: 10px; }
@media (max-width: 1000px) { .cq-row.ms2 { grid-template-columns: 26px 48px 1fr; } .cq-row.ms2 > .quadros { grid-column: 1 / -1; flex-direction: row; } }
.quadros { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.quadro { font: inherit; font-size: 12.5px; font-weight: 800; border-radius: 8px; padding: 6px 10px; cursor: pointer; text-align: center; border: 1.5px solid transparent; width: 100%; }
.quadro.verde { background: #16a34a; color: #fff; box-shadow: 0 2px 6px rgba(22, 163, 74, .25); }
.quadro.verde:hover { background: #15803d; }
.quadro.verde-claro { background: #dcfce7; color: #15803d; border-color: #86efac; }
.quadro.vermelho { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.quadro.est { background: #fff; color: #475569; border-color: #cbd5e1; text-align: left; }
.quadro.est.on { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }

/* janela de concorrentes: manuais × IA */
.mon-sec { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.mon-sec.manual { border-color: #93c5fd; background: #f8fbff; }
.mon-sec.ia { border-color: #86efac; background: #f7fef9; }
.quadro .qd-n { display: block; font-size: 11px; font-weight: 700; opacity: .9; }

/* ===================== 🏷️ Descontos ===================== */
.dc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .dc-tiles { grid-template-columns: repeat(2, 1fr); } }
.dc-tile { display: flex; gap: 12px; align-items: center; border-radius: 16px; padding: 16px 18px; color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.dc-tile > span { font-size: 30px; }
.dc-tile b { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.dc-tile small { opacity: .92; font-size: 12.5px; font-weight: 600; }
.dc-tile input { width: 64px; font: inherit; font-size: 26px; font-weight: 900; border: 0; border-radius: 8px; padding: 0 6px; color: #92400e; }
.dc-tile.azul { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.dc-tile.verde { background: linear-gradient(135deg, #16a34a, #4ade80); }
.dc-tile.roxo { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.dc-tile.ouro { background: linear-gradient(135deg, #d97706, #fbbf24); }
.dc-cats { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; }
.dc-cat { flex: 0 0 auto; min-width: 140px; text-align: left; font: inherit; background: #fff; border: 2px solid #dbeafe; border-radius: 14px; padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: .15s; }
.dc-cat:hover { border-color: #93c5fd; transform: translateY(-1px); }
.dc-cat strong { font-size: 16px; color: #1e3a8a; }
.dc-cat small { color: #64748b; font-size: 11.5px; }
.dc-cat-n { font-size: 11.5px; color: #475569; margin-top: 3px; }
.dc-cat.on { border-color: #2563eb; background: #eff6ff; box-shadow: 0 4px 14px rgba(37, 99, 235, .2); }
.dc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.dc-tabs button { font: inherit; font-weight: 800; font-size: 14px; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 9px 18px; cursor: pointer; color: #475569; }
.dc-tabs button.on { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; box-shadow: 0 2px 8px rgba(37, 99, 235, .18); }
.dc-ctrl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; position: sticky; top: 64px; z-index: 5; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.dc-slider { display: flex; flex-direction: column; min-width: 220px; }
.dc-slider label { font-size: 13px; color: #475569; }
.dc-slider label b { font-size: 22px; color: #1d4ed8; }
.dc-slider input { accent-color: #2563eb; }
.dc-dias input { width: 64px; }
.dc-resumo { font-size: 14px; }
.dc-resumo b { font-size: 18px; }
.dc-big { font-size: 15px; padding: 10px 20px; margin-left: auto; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dc-card { position: relative; background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: .15s; }
.dc-card:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, .1); }
.dc-card.ok { border-color: #86efac; }
.dc-card.nao { border-color: #fecaca; }
.dc-card.dentro { border-color: #4ade80; background: #f7fef9; }
.dc-card.feito { border-color: #16a34a; background: #f0fdf4; }
.dc-card.sel { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.dc-chk { position: absolute; top: 10px; left: 10px; z-index: 2; }
.dc-chk input { width: 20px; height: 20px; accent-color: #2563eb; }
.dc-badge { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11px; font-weight: 800; background: #dbeafe; color: #1d4ed8; border-radius: 99px; padding: 3px 9px; }
.dc-badge.verde { background: #dcfce7; color: #15803d; }
.dc-foto { height: 120px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 12px; font-size: 40px; }
.dc-foto img { max-height: 110px; max-width: 100%; object-fit: contain; }
.dc-tit { font-weight: 700; font-size: 13px; color: #0f172a; line-height: 1.3; min-height: 34px; text-decoration: none; }
.dc-tit:hover { text-decoration: underline; }
.dc-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11.5px; }
.dc-precos { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-precos s { color: #94a3b8; font-size: 14px; }
.dc-precos b { font-size: 22px; font-weight: 900; color: #0f172a; }
.dc-precos small { color: #64748b; font-size: 11px; }
.dc-lucros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f8fafc; border-radius: 10px; padding: 8px; }
.dc-lucros small { display: block; color: #64748b; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.dc-lucros strong { font-size: 13px; }
.dc-bar { height: 6px; background: #e2e8f0; border-radius: 99px; margin-top: 4px; overflow: hidden; }
.dc-bar i { display: block; height: 100%; border-radius: 99px; }
.dc-rodape { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; margin-top: auto; }
.dc-max { font-weight: 700; color: #475569; }
.dc-max b { color: #1d4ed8; font-size: 14px; }
.dc-acts { display: flex; gap: 4px; }
.dc-ml-paga { font-size: 11px; font-weight: 800; background: #dcfce7; color: #15803d; border-radius: 99px; padding: 2px 8px; }
.dc-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dc-camp { font: inherit; text-align: left; display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid #e2e8f0; border-left: 6px solid var(--c); border-radius: 14px; padding: 14px; cursor: pointer; transition: .15s; }
.dc-camp:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.dc-camp-ic { font-size: 30px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, white); flex: 0 0 auto; }
.dc-camp-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dc-camp-txt strong { font-size: 15px; }
.dc-camp-txt small { color: var(--c); font-weight: 800; font-size: 12px; }
.dc-camp-txt span { font-size: 12px; color: #475569; }
.dc-camp-go { font-size: 26px; color: #94a3b8; }
.dc-camp-topo { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid #e2e8f0; border-left: 6px solid var(--c); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.dc-camp-topo small { display: block; color: var(--c); font-weight: 800; }
.dc-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #fdf2f8, #eff6ff); border: 2px solid #f5d0fe; border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.dc-hero-ex { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 14px; padding: 10px 18px; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.dc-hero-ex s { color: #94a3b8; }
.dc-hero-ex b { font-size: 26px; font-weight: 900; }
.dc-hero-ex span { background: #16a34a; color: #fff; font-weight: 900; border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.dc-piloto { background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 16px 18px; }
.dc-piloto.on { border-color: #16a34a; background: linear-gradient(180deg, #f0fdf4, #fff 120px); }
.dc-pil-topo { display: flex; gap: 14px; align-items: center; }
.dc-switch { flex: 0 0 auto; width: 58px; height: 32px; border-radius: 99px; border: 0; background: #cbd5e1; position: relative; cursor: pointer; transition: .2s; }
.dc-switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.dc-switch.on { background: #16a34a; }
.dc-switch.on i { left: 30px; }
.dc-regras { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.dc-regra { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; }
.dc-regra.on { border-color: #86efac; background: #f7fef9; }
.dc-regra input[type=number] { width: 56px; }
.dc-tipos { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-tipo { border: 1.5px solid #e2e8f0; border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.dc-tipo.on { border-color: #16a34a; background: #f0fdf4; font-weight: 700; }

/* 🏪 barra de contas */
.acc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.acc-bar-t { font-weight: 800; color: #475569; font-size: 13px; }

/* Descontos: filtros Parados / Sem vendas */
.dc-vf { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.dc-vf-b { position: relative; font: inherit; text-align: left; display: flex; gap: 10px; align-items: center; background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; cursor: pointer; min-width: 260px; transition: .15s; }
.dc-vf-b > span { font-size: 26px; }
.dc-vf-b b { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.dc-vf-b small { color: #475569; font-size: 12px; }
.dc-vf-b:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.dc-vf-b.parado.on { border-color: #0891b2; background: #ecfeff; box-shadow: 0 4px 14px rgba(8, 145, 178, .2); }
.dc-vf-b.nunca.on { border-color: #dc2626; background: #fef2f2; box-shadow: 0 4px 14px rgba(220, 38, 38, .18); }
.dc-vf-b i { position: absolute; top: 6px; right: 10px; font-style: normal; font-weight: 900; color: #64748b; }

/* Descontos: caixa do lucro mínimo parece editável */
.dc-edit { cursor: text; outline: 2px dashed rgba(255,255,255,.75); outline-offset: -7px; }
.dc-edit input { box-shadow: inset 0 0 0 2px #fde68a; cursor: text; }
.dc-edit input:focus { outline: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.5); }
.dc-lapis { font-style: normal; font-size: 16px; margin-left: 6px; background: #fff; border-radius: 99px; padding: 3px 6px; vertical-align: middle; }
.dc-edit small u { text-decoration-style: dotted; }

.dc-vf-b.semdesc.on { border-color: #7c3aed; background: #f5f3ff; box-shadow: 0 4px 14px rgba(124, 58, 237, .2); }

.dc-desm { border-color: #fca5a5; color: #b91c1c; background: #fef2f2; }

.dc-datas { font-weight: 600; font-size: 11.5px; color: #475569; margin-top: 3px; }
.dc-datas b { color: #b45309; }

.dc-delta { display: block; font-style: normal; font-size: 11px; font-weight: 800; }
.dc-delta.menos { color: #b45309; }
.dc-delta.mais { color: #15803d; }
.dc-cat-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 800; background: #ede9fe; color: #6d28d9; border-radius: 99px; padding: 1px 7px; vertical-align: middle; }

.dc-regra-txt { font-size: 12.5px; color: #6d28d9; background: #f5f3ff; border-radius: 99px; padding: 4px 10px; }

.dc-hero-ex { flex: 0 0 auto; }
.dc-hero-ex b, .dc-hero-ex s { white-space: nowrap; }

/* ===================== 🤖 Uso da IA ===================== */
.iu-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .iu-tiles { grid-template-columns: repeat(2, 1fr); } }
.iu-tile { border-radius: 16px; padding: 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 18px rgba(15, 23, 42, .12); animation: iuSobe .5s ease both; }
.iu-tile small { opacity: .9; font-weight: 700; }
.iu-tile b { font-size: 28px; font-weight: 900; }
.iu-tile span { font-size: 12px; opacity: .9; }
.iu-tile.t1 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.iu-tile.t2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); animation-delay: 60ms; }
.iu-tile.t3 { background: linear-gradient(135deg, #0f766e, #2dd4bf); animation-delay: 120ms; }
.iu-tile.t4 { background: linear-gradient(135deg, #d97706, #fbbf24); animation-delay: 180ms; }
.iu-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .iu-grid { grid-template-columns: 1fr; } }
.iu-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; }
.iu-card h4 { margin: 0 0 10px; }
.iu-dias { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.iu-dia { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.iu-dia i { width: 100%; height: var(--h); min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8b5cf6, #6366f1); transform-origin: bottom; animation: iuCresce .6s ease both; }
.iu-dia small { font-size: 10.5px; color: #64748b; }
.iu-g { width: 100%; font: inherit; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; background: none; border: 1.5px solid transparent; border-radius: 10px; padding: 7px 8px; cursor: pointer; }
.iu-g:hover { background: #f8fafc; }
.iu-g.on { border-color: #8b5cf6; background: #f5f3ff; }
.iu-g-n small { color: #64748b; font-weight: 600; }
.iu-g-bar { grid-column: 1 / -1; height: 7px; background: #eef2ff; border-radius: 99px; overflow: hidden; }
.iu-g-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #6366f1, #a855f7); transform-origin: left; animation: iuEstica .7s ease both; }
.iu-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.iu-tabela { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.iu-row { display: grid; grid-template-columns: 110px minmax(200px, 1.4fr) minmax(160px, 1.4fr) 170px 80px 100px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #f1f5f9; font-size: 13px; animation: iuEntra .45s ease both; }
.iu-row:hover { background: #f8fafc; }
.iu-row .r { text-align: right; }
.iu-head { background: #f8fafc; font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .03em; border-top: 0; animation: none; }
.iu-ic { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 8px; }
.iu-custo { background: #ecfdf5; color: #047857; border-radius: 99px; padding: 2px 9px; }
.iu-custo.alto { background: #fef3c7; color: #b45309; }
@media (max-width: 900px) { .iu-row { grid-template-columns: 1fr auto; } .iu-row > span:nth-child(3), .iu-row > span:nth-child(4), .iu-row > span:nth-child(5) { display: none; } }
@keyframes iuEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes iuSobe { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes iuCresce { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes iuEstica { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.mon-sec.mlauto { border-color: #c4b5fd; background: #faf5ff; }
.mon-sec.mlauto.on { border-color: #16a34a; background: #f0fdf4; }
.ml-seg { display: inline-block; font-size: 11px; font-weight: 800; background: #dcfce7; color: #15803d; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }

/* 📸 Conferência das fotos (IA) */
.foto-chip { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; margin-left: 4px; }
.foto-chip.ok { background: #dcfce7; color: #15803d; } .foto-chip.meio { background: #fef3c7; color: #b45309; } .foto-chip.ruim { background: #fee2e2; color: #b91c1c; }
.foto-check { border: 2px solid #ddd6fe; background: #faf5ff; border-radius: 14px; padding: 12px 14px; }
.foto-check .ae-sec-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fc-res { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; }
.fc-nota { flex: 0 0 auto; width: 78px; height: 78px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .15); }
.fc-nota b { font-size: 28px; font-weight: 900; line-height: 1; } .fc-nota small { font-size: 11px; opacity: .9; }
.fc-nota.ok { background: linear-gradient(135deg, #16a34a, #4ade80); } .fc-nota.meio { background: linear-gradient(135deg, #d97706, #fbbf24); } .fc-nota.ruim { background: linear-gradient(135deg, #dc2626, #f87171); }
.fc-acoes { margin: 6px 0; padding-left: 20px; font-size: 13px; }
.fc-falta { font-size: 12.5px; margin: 4px 0; } .fc-falta span { display: inline-block; background: #fff; border: 1px solid #e9d5ff; border-radius: 99px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.fc-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.fc-foto { position: relative; background: #fff; border: 2px solid #e2e8f0; border-radius: 10px; padding: 6px; }
.fc-foto.ok { border-color: #86efac; } .fc-foto.ruim { border-color: #fca5a5; }
.fc-foto img { width: 100%; height: 90px; object-fit: contain; }
.fc-n { position: absolute; top: 4px; left: 6px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.9); border-radius: 6px; padding: 0 5px; }
.fc-st { position: absolute; top: 4px; right: 6px; }
.fc-prob { font-size: 11px; color: #b91c1c; font-weight: 600; margin-top: 4px; line-height: 1.25; } .fc-prob.ok { color: #64748b; font-weight: 500; }

/* 🎬 Studio de vídeos */
.vd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 900px) { .vd-tiles { grid-template-columns: repeat(2, 1fr); } }
.vd-tile { font: inherit; text-align: left; display: flex; gap: 12px; align-items: center; border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(15, 23, 42, .1); transition: .15s; }
.vd-tile > span { font-size: 28px; } .vd-tile b { display: block; font-size: 26px; font-weight: 900; line-height: 1; } .vd-tile small { font-weight: 700; opacity: .92; }
.vd-tile.vermelho { background: linear-gradient(135deg, #dc2626, #f87171); } .vd-tile.amarelo { background: linear-gradient(135deg, #d97706, #fbbf24); }
.vd-tile.verde { background: linear-gradient(135deg, #16a34a, #4ade80); } .vd-tile.azul { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.vd-tile.on { border-color: #0f172a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .2); }
.vd-lista { display: flex; flex-direction: column; gap: 8px; }
.vd-row { display: grid; grid-template-columns: 64px minmax(220px, 1fr) 150px auto; gap: 12px; align-items: center; background: #fff; border: 1.5px solid #e2e8f0; border-left: 5px solid #f87171; border-radius: 14px; padding: 10px 12px; animation: iuEntra .35s ease both; }
.vd-row.pronto { border-left-color: #fbbf24; } .vd-row.enviado { border-left-color: #4ade80; }
@media (max-width: 1000px) { .vd-row { grid-template-columns: 56px 1fr; } .vd-row > .vd-st, .vd-row > .vd-acts { grid-column: 1 / -1; } }
.vd-foto { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 10px; font-size: 26px; }
.vd-foto img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vd-st { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 4px 10px; text-align: center; }
.vd-st.pendente { background: #fee2e2; color: #b91c1c; } .vd-st.pronto { background: #fef3c7; color: #b45309; } .vd-st.enviado { background: #dcfce7; color: #15803d; }
.vd-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vd-up { cursor: pointer; } .vd-ok { background: #16a34a; color: #fff; border: 0; font-weight: 800; }
.vd-rot { grid-column: 1 / -1; background: #faf5ff; border: 1.5px solid #e9d5ff; border-radius: 12px; padding: 10px 14px; }
.vd-rot-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vd-cenas { margin: 8px 0; padding-left: 22px; font-size: 13.5px; } .vd-cenas li { margin: 4px 0; }
.vd-tt { background: #fff; border: 1px solid #ddd6fe; border-radius: 6px; padding: 1px 6px; font-size: 12px; color: #6d28d9; }
.vd-dicas { font-size: 12.5px; color: #475569; }

/* ✨ Limpar fotos */
.lp-prog { margin-top: 10px; background: #eff6ff; border: 1.5px dashed #93c5fd; border-radius: 10px; padding: 10px 12px; font-weight: 700; color: #1d4ed8; }
.lp-box { margin-top: 10px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 8px 0; }
.lp-item { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px; }
.lp-item.on { border-color: #16a34a; }
.lp-par { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; text-align: center; }
.lp-par img { width: 100%; height: 110px; object-fit: contain; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 14px 14px; border-radius: 8px; }
.lp-par small { display: block; font-size: 10.5px; color: #64748b; }
.lp-erro { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: #b91c1c; }
.lp-usar { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; }

/* 🎨 Recriar fotos */
.rc-box { border-color: #f5d0fe; background: #fdf4ff; }
.rc-sec { margin: 8px 0; }
.rc-refs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.rc-ref { position: relative; width: 84px; height: 84px; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; }
.rc-ref.on { border-color: #c026d3; box-shadow: 0 0 0 3px rgba(192, 38, 211, .18); }
.rc-ref img { width: 100%; height: 100%; object-fit: contain; }
.rc-ref input { position: absolute; top: 4px; left: 4px; } .rc-ref span { position: absolute; bottom: 2px; right: 6px; font-size: 11px; font-weight: 800; }
.rc-tipos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.rc-tipo { font: inherit; font-size: 13px; font-weight: 700; background: #fff; border: 2px solid #e2e8f0; border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.rc-tipo.on { border-color: #c026d3; background: #fae8ff; color: #86198f; }

/* recriar: modo + texto livre */
.rc-modos { display: flex; gap: 8px; margin: 6px 0 10px; flex-wrap: wrap; }
.rc-txt { width: 100%; min-height: 64px; margin-top: 6px; border: 2px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; box-sizing: border-box; }
.rc-txt:focus { outline: none; border-color: #c026d3; }
.rc-ex { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rc-ex button { font: inherit; font-size: 11px; background: #fff; border: 1px dashed #d8b4fe; border-radius: 99px; padding: 3px 10px; cursor: pointer; color: #6b21a8; }
.rc-chk { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 8px; }

/* limpar/melhorar + foto modelo */
.lp-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lp-modos > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.lp-modos small { display: block; color: #64748b; margin-top: 2px; }
@media (max-width: 640px) { .lp-modos { grid-template-columns: 1fr; } }
.rc-mod { width: 110px; height: 130px; }
.rc-mod img { height: 100px; }
.rc-mod em { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; font-style: normal; font-weight: 700; background: rgba(255,255,255,.92); padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-mod-x { position: absolute; top: 3px; right: 3px; border: 0; background: rgba(15,23,42,.65); color: #fff; border-radius: 99px; width: 20px; height: 20px; font-size: 11px; cursor: pointer; }
.rc-mod-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 22px; border-style: dashed; width: 110px; height: 130px; }
.rc-mod-add span { position: static; font-size: 11px; font-weight: 700; }

/* bateria + caixa */
.cx-box { border-color: #bae6fd; background: #f0f9ff; }
.cx-linha { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-top: 8px; }
.cx-col { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; }
.cx-img { width: 100%; height: 180px; object-fit: contain; background: #fff; }
.cx-vazio { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; color: #94a3b8; border: 2px dashed #e2e8f0; border-radius: 10px; font-size: 13px; }
.cx-mais { align-self: center; font-size: 28px; font-weight: 800; color: #0284c7; }
.cx-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-mini img { width: 48px; height: 48px; object-fit: contain; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; background: #fff; }
.cx-mini img.on { border-color: #0284c7; }

/* aviso sem pop-up + salvar pendente + toast */
.ae-nota { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.ae-pendente { animation: aePisca 1.2s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); }
@keyframes aePisca { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.ae-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 100000; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); transition: opacity .5s; }
.ae-toast.sai { opacity: 0; }

/* 🎞️ criar/variar vídeo */
.vg-box { grid-column: 1 / -1; width: 100%; margin-top: 10px; border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 14px; padding: 12px 14px; box-sizing: border-box; }
.vg-h { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.vg-corpo { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.vg-previa canvas, .vg-video { width: 200px; height: 356px; border-radius: 12px; background: #000; box-shadow: 0 8px 24px rgba(15,23,42,.18); }
.vg-acoes { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 360px; }
.vg-txt { width: 100%; max-width: 520px; border: 2px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font: inherit; margin-top: 6px; box-sizing: border-box; }
.vg-sel { border: 2px solid #e2e8f0; border-radius: 10px; padding: 6px 8px; font: inherit; margin: 0 8px; }

.vg-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.vg-grade > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 13px; }
.vg-grade input[type=range] { width: 140px; }

.vg-curva { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }

/* Uso da IA por empresa */
.iu-provs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.iu-provcard { text-align: left; font: inherit; cursor: pointer; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border: 2px solid #e2e8f0; background: #fff; }
.iu-provcard.claude { border-color: #fed7aa; background: #fff7ed; } .iu-provcard.gemini { border-color: #bfdbfe; background: #eff6ff; }
.iu-provcard.on { box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.iu-pc-h { font-size: 14px; } .iu-pc-h small { color: #64748b; } .iu-pc-v { font-size: 22px; }
.iu-provcard a { font-size: 12px; font-weight: 700; color: #2563eb; text-decoration: none; }
.iu-prov { font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 8px; margin-right: 4px; white-space: nowrap; }
.iu-prov.claude { background: #ffedd5; color: #9a3412; } .iu-prov.gemini { background: #dbeafe; color: #1e40af; }

/* 🧾 Pedidos */
.pd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.pd-tile { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; cursor: pointer; border-radius: 14px; padding: 10px 12px; border: 2px solid transparent; color: #fff; }
.pd-tile span { font-size: 22px; } .pd-tile b { font-size: 22px; line-height: 1; display: block; } .pd-tile small { font-size: 12px; font-weight: 700; opacity: .95; }
.pd-tile.vermelho { background: linear-gradient(135deg, #ef4444, #f87171); } .pd-tile.amarelo { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.pd-tile.azul { background: linear-gradient(135deg, #2563eb, #60a5fa); } .pd-tile.roxo { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.pd-tile.laranja { background: linear-gradient(135deg, #ea580c, #fb923c); }
.pd-tile.zero { filter: saturate(.25); opacity: .75; } .pd-tile.on { border-color: #0f172a; box-shadow: 0 6px 18px rgba(15,23,42,.25); transform: translateY(-1px); }
.pd-lista { display: flex; flex-direction: column; gap: 8px; }
.pd-row { display: grid; grid-template-columns: 64px minmax(240px, 1fr) 140px auto; gap: 12px; align-items: center; background: #fff; border: 1.5px solid #e2e8f0; border-left: 5px solid #93c5fd; border-radius: 14px; padding: 10px 12px; }
.pd-row.preparar { border-left-color: #f59e0b; } .pd-row.pronto { border-left-color: #2563eb; } .pd-row.caminho { border-left-color: #8b5cf6; } .pd-row.entregue { border-left-color: #22c55e; } .pd-row.cancelado, .pd-row.nao_entregue { border-left-color: #94a3b8; } .pd-row.full { border-left-color: #14b8a6; }
.pd-row.canc { opacity: .7; }
.pd-foto { position: relative; width: 64px; height: 64px; border-radius: 10px; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.pd-foto img { width: 100%; height: 100%; object-fit: contain; } .pd-qtd { position: absolute; bottom: 2px; right: 2px; background: #0f172a; color: #fff; font-size: 11px; border-radius: 6px; padding: 0 5px; }
.pd-tit { font-weight: 700; font-size: 14px; } .pd-semsku { font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 1px 6px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pd-log, .pd-st, .pd-desp, .pd-nf { font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 2px 9px; background: #f1f5f9; color: #334155; white-space: nowrap; }
.pd-log.flex { background: #ede9fe; color: #6d28d9; } .pd-log.coleta { background: #dbeafe; color: #1d4ed8; } .pd-log.agencia { background: #ffedd5; color: #c2410c; } .pd-log.full { background: #ccfbf1; color: #0f766e; }
.pd-desp.atrasado { background: #fee2e2; color: #b91c1c; } .pd-desp.hoje { background: #fef3c7; color: #92400e; } .pd-desp.amanha { background: #e0f2fe; color: #0369a1; }
.pd-nf.com { background: #dcfce7; color: #15803d; } .pd-nf.ag { background: #ffedd5; color: #c2410c; } .pd-nf.erro { background: #fee2e2; color: #b91c1c; }
.pd-val { text-align: right; } .pd-val b { display: block; font-size: 16px; } .pd-val small { font-size: 12px; font-weight: 700; } .pd-val .pos { color: #15803d; } .pd-val .neg { color: #b91c1c; }
.pd-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pd-det { grid-column: 1 / -1; border-top: 1px dashed #e2e8f0; padding-top: 8px; }
.pd-itens { width: 100%; border-collapse: collapse; font-size: 12.5px; } .pd-itens th { text-align: left; color: #64748b; font-weight: 700; padding: 4px 6px; } .pd-itens td { padding: 4px 6px; border-top: 1px solid #f1f5f9; }
.pd-det-g { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: 12.5px; color: #475569; }
@media (max-width: 900px) { .pd-row { grid-template-columns: 56px 1fr; } .pd-val, .pd-acts { grid-column: 2; text-align: left; justify-content: flex-start; } }

/* ============================================================================
   Moldura dourada 3D (2026-11-21): quadros do menu, quadros e cartoes de Pedidos
   Truque: borda transparente + 2 fundos (miolo no padding-box, ouro no border-box)
   ============================================================================ */
:root {
  --gold-grad: linear-gradient(145deg, #fbeab0 0%, #d4a845 20%, #8a6118 40%, #d4a845 58%, #fbeab0 72%, #8a6118 100%);
  --gold-glow: 0 0 20px -8px rgba(212, 168, 69, 0.55);
}
@keyframes goldShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }

/* Menu: quadros das paginas */
.menu-tile { position: relative; overflow: hidden; border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 3px 0 rgba(138, 97, 24, 0.35), 0 10px 20px -12px rgba(31, 78, 121, 0.45), inset 0 1px 0 #fff, inset 0 -2px 4px rgba(31, 78, 121, 0.06); }
.menu-tile::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 38%; transform: rotate(25deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75) 50%, transparent); opacity: 0; }
.menu-tile:hover { border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(138, 97, 24, 0.45), 0 18px 28px -14px rgba(31, 78, 121, 0.5), var(--gold-glow), inset 0 1px 0 #fff; }
.menu-tile:hover::after { opacity: 1; animation: goldShine 1.1s ease-out 1 forwards; }
.menu-tile.active { border-color: transparent; background: linear-gradient(180deg, #eef7ff 0%, #e1f0fc 100%) padding-box, var(--gold-grad) border-box; }
@media (prefers-reduced-motion: reduce) { .menu-tile:hover::after { animation: none; opacity: 0; } }

/* Pedidos: quadros coloridos de cima */
.pd-tile { border: 2px solid transparent; background: var(--tb, linear-gradient(#64748b, #64748b)) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 3px 0 rgba(138, 97, 24, 0.4), 0 10px 18px -12px rgba(15, 23, 42, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform .15s, box-shadow .15s; }
.pd-tile:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(138, 97, 24, 0.45), 0 14px 22px -12px rgba(15, 23, 42, 0.5), var(--gold-glow); }
.pd-tile.vermelho { --tb: linear-gradient(135deg, #ef4444, #f87171); } .pd-tile.amarelo { --tb: linear-gradient(135deg, #f59e0b, #fbbf24); }
.pd-tile.azul { --tb: linear-gradient(135deg, #2563eb, #60a5fa); } .pd-tile.roxo { --tb: linear-gradient(135deg, #7c3aed, #a78bfa); }
.pd-tile.laranja { --tb: linear-gradient(135deg, #ea580c, #fb923c); }
.pd-tile.on { border-color: transparent; transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.55), 0 10px 20px -10px rgba(15, 23, 42, 0.5); }

/* Pedidos: filtros Nota fiscal / Envio */
.pd-menus { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pd-menu { position: relative; }
.pd-mbtn { display: flex; align-items: center; gap: 9px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--deep); cursor: pointer; padding: 9px 14px; border-radius: 10px;
  border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 2px 0 rgba(138, 97, 24, 0.35), 0 6px 12px -8px rgba(31, 78, 121, 0.4); }
.pd-mbtn.on { background: linear-gradient(var(--baby-light), var(--baby-light)) padding-box, var(--gold-grad) border-box; }
.pd-mbtn b { color: var(--primary-hover); }
.pd-bars { display: grid; gap: 3px; } .pd-bars i { display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.pd-car { color: var(--muted); font-size: 11px; }
.pd-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 240px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.3); }
.pd-pop button { display: flex; justify-content: space-between; gap: 16px; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: #334155; cursor: pointer; text-align: left; }
.pd-pop button:hover { background: var(--baby-light); } .pd-pop button.on { background: var(--baby-light); color: var(--deep); font-weight: 700; }
.pd-pop button span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-pop hr { border: 0; border-top: 1px solid #e2e8f0; margin: 4px 0; }

/* Pedidos: cartao de cada venda */
.pd-lista { gap: 14px; }
.pd-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 76px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) 180px; gap: 18px; align-items: center;
  padding: 14px 16px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafe 100%) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 3px 0 rgba(138, 97, 24, 0.3), 0 14px 26px -16px rgba(31, 78, 121, 0.45), inset 0 1px 0 #fff, inset 0 -2px 5px rgba(31, 78, 121, 0.05); }
.pd-card.att::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 30%; transform: rotate(25deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8) 50%, transparent); animation: goldShine 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pd-card.att::after { animation: none; opacity: 0; } }
.pd-card.canc { opacity: .72; }
.pd-card .pd-foto { width: 76px; height: 76px; }
.pd-info { min-width: 0; display: grid; gap: 5px; }
.pd-meta { font-size: 12px; }
.pd-mid { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pd-eb { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-hl { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 21px; line-height: 1.12; color: var(--deep); }
.pd-hl.err { color: var(--red); }
.pd-erro { font-size: 12.5px; color: #b91c1c; background: var(--red-bg); border-radius: 8px; padding: 6px 9px; line-height: 1.4; }
.pd-selos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 9px 3px 4px; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; }
.pd-lg i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08); }
.pd-lg img { width: 20px; height: 20px; border-radius: 50%; }
.pd-lg.coleta { background: #eef6ff; border-color: #bcdcf6; color: #1f5f99; }
.pd-lg.flex { background: #f3efff; border-color: #d8ccfb; color: #6d28d9; }
.pd-lg.agencia { background: #fff4e8; border-color: #fbd3a8; color: #c2410c; }
.pd-lg.full { background: #e8fbf6; border-color: #a7ecdc; color: #0f766e; }
.pd-lg.ml { background: #fff9db; border-color: #f2dd7a; color: #5c4a00; }
.pd-pend { font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 3px 9px; }
.pd-pend.a { background: var(--amber-bg); color: #b45309; } .pd-pend.g { background: var(--green-bg); color: #15803d; }
.pd-pend.r { background: var(--red-bg); color: #b91c1c; } .pd-pend.n { background: #f1f5f9; color: #475569; }
.pd-warn { color: #b45309; font-weight: 700; }

.pd-vals { display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: 13.5px; font-variant-numeric: tabular-nums; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.pd-vals > div { padding: 4px 10px; border-bottom: 1px solid #f1f5f9; }
.pd-vals .k { text-align: right; color: var(--muted); background: #f8fbfe; border-right: 1px solid #e2e8f0; }
.pd-vals .v { color: var(--primary-hover); font-weight: 700; }
.pd-vals .tot { border-top: 1px solid #cbd5e1; border-bottom: 0; font-size: 15px; padding-block: 6px; }
.pd-vals .v.pos { color: #15803d; } .pd-vals .v.neg { color: #b91c1c; } .pd-vals .v.baixo { color: #b45309; }

.pd-btns { display: grid; gap: 7px; }
.pdb { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 800;
  cursor: pointer; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 3px 7px rgba(15, 23, 42, 0.18); transition: filter .12s, transform .12s; }
.pdb:hover { filter: brightness(1.07); } .pdb:active { transform: translateY(1px); } .pdb:disabled { opacity: .6; cursor: progress; }
.pdb.navy { background: linear-gradient(180deg, #2d3e5c, #141f38); border-color: #0c1427; color: #fff; }
.pdb.blue { background: linear-gradient(180deg, #45a8ef, #1f78c8); border-color: #18649f; color: #fff; }
.pdb.green { background: linear-gradient(180deg, #3ccd72, #1e9a4c); border-color: #17803e; color: #fff; }
.pdb.red { background: linear-gradient(180deg, #e56a70, #b8323a); border-color: #8f2229; color: #fff; justify-content: space-between; }
.pdb.white { background: linear-gradient(180deg, #ffffff, #e9eef5); border-color: #8392a8; color: #334155; }
.pdb.white.ic { justify-content: space-between; }
.pdb-ic { font-size: 15px; } .pdb-ic.i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 11px; font-weight: 900; font-family: Georgia, serif; }

/* Pedidos: gaveta Mais Detalhes */
.pd-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); z-index: 60; }
.pd-gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 61; overflow-y: auto; display: grid; gap: 14px; align-content: start; padding: 22px;
  border-left: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: -20px 0 40px -20px rgba(15, 23, 42, 0.45); animation: fadeIn .18s ease-out; }
.pd-x { position: absolute; top: 14px; right: 14px; }
.pd-g-head { display: grid; gap: 6px; padding-right: 90px; }
.pd-g-head h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; color: var(--deep); line-height: 1.2; }
.pd-sec { display: grid; gap: 10px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; background: #f8fbfe; font-size: 13.5px; line-height: 1.45; }
.pd-sec.err { border-color: #fecaca; background: #fff7f7; }
.pd-sec h4 { font-size: 13px; font-weight: 800; color: #8a6118; letter-spacing: .04em; text-transform: uppercase; }
.pd-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; }
.pd-kv span { color: var(--muted); } .pd-kv b { font-weight: 700; overflow-wrap: anywhere; } .pd-kv .neg { color: #b91c1c; } .pd-kv .pos { color: #15803d; }
.pd-tw { overflow-x: auto; }

@media (max-width: 1150px) {
  .pd-card { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); }
  .pd-card .pd-vals { grid-column: 2; } .pd-card .pd-btns { grid-column: 3; grid-row: 2; align-self: end; }
}
@media (max-width: 700px) {
  .pd-card { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .pd-card .pd-foto { width: 60px; height: 60px; }
  .pd-card .pd-mid, .pd-card .pd-vals, .pd-card .pd-btns { grid-column: 1 / -1; grid-row: auto; }
}

/* ============================================================================
   Pedidos v3 (2026-11-21): cabecalho, quadros com icone, cartao azul-claro,
   aba 3D da situacao, forma de envio, barra de selecao
   ============================================================================ */
.pd-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 22px 26px; margin-bottom: 14px; border-radius: 18px;
  border: 2px solid transparent; background: linear-gradient(180deg, #ffffff, #f6fafe) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 3px 0 rgba(138, 97, 24, 0.3), 0 16px 30px -18px rgba(31, 78, 121, 0.45); }
.pd-hero-ic { position: relative; z-index: 1; width: 62px; height: 62px; color: #1d6fd8; padding-right: 22px; border-right: 1px solid #dbe4ee; box-sizing: content-box; }
.pd-hero-ic svg { width: 62px; height: 62px; stroke-width: 1.8; }
.pd-hero-t { position: relative; z-index: 1; min-width: 0; }
.pd-hero-t h2 { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: #0f172a; line-height: 1.05; }
.pd-hero-t p { margin-top: 6px; color: #475569; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pd-upd { border: 0; background: none; color: #1d6fd8; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.pd-upd span { text-decoration: none; font-size: 17px; }
.pd-hero::before { content: ""; position: absolute; right: -6%; top: -60%; width: 58%; height: 220%; border-radius: 50%;
  background: radial-gradient(ellipse at 70% 40%, rgba(37, 120, 235, 0.95) 0%, rgba(96, 165, 250, 0.75) 35%, rgba(191, 219, 254, 0.45) 60%, transparent 72%); }
.pd-hero::after { content: ""; position: absolute; right: 18%; top: -30%; width: 40%; height: 170%; border-radius: 50%; background: radial-gradient(ellipse, rgba(219, 234, 254, 0.7) 0%, transparent 65%); }
.pd-hero-art { position: absolute; right: 30px; bottom: 16px; display: flex; align-items: flex-end; gap: 8px; z-index: 1; }
.pd-hero-art i { display: block; width: 18px; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, 0.55); }
.pd-hero-art i:nth-child(1) { height: 26px; } .pd-hero-art i:nth-child(2) { height: 42px; } .pd-hero-art i:nth-child(3) { height: 60px; } .pd-hero-art i:nth-child(4) { height: 80px; }

.pd-tiles2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 12px 0 16px; }
.pd-t2 { --c: #16a34a; --cbg: #dcfce7; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 20px; cursor: pointer; font: inherit; text-align: center;
  border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff 55%, color-mix(in srgb, var(--cbg) 55%, #fff)) padding-box, var(--gold-grad) border-box;
  box-shadow: inset 0 -6px 0 var(--c), 0 3px 0 rgba(138, 97, 24, 0.3), 0 12px 22px -14px rgba(15, 23, 42, 0.45); transition: transform .15s, box-shadow .15s; }
.pd-t2:hover { transform: translateY(-3px); box-shadow: inset 0 -6px 0 var(--c), 0 6px 0 rgba(138, 97, 24, 0.35), 0 18px 26px -14px rgba(15, 23, 42, 0.5), var(--gold-glow); }
.pd-t2-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--cbg); color: var(--c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7); }
.pd-t2-ic svg { width: 30px; height: 30px; }
.pd-t2 b { font-size: 34px; font-weight: 900; line-height: 1; color: #0f172a; font-variant-numeric: tabular-nums; }
.pd-t2 small { font-size: 13.5px; font-weight: 700; color: #1e293b; line-height: 1.25; }
.pd-t2.zero b { color: #94a3b8; }
.pd-t2.on { transform: translateY(-3px); box-shadow: inset 0 -6px 0 var(--c), 0 0 0 3px var(--c), 0 14px 24px -12px rgba(15, 23, 42, 0.5); }
.pd-t2.verde { --c: #16a34a; --cbg: #d1fae5; } .pd-t2.azul { --c: #1d6fd8; --cbg: #dbeafe; } .pd-t2.roxo { --c: #7c3aed; --cbg: #ede9fe; }
.pd-t2.laranja { --c: #f97316; --cbg: #ffedd5; } .pd-t2.vermelho { --c: #e11d48; --cbg: #ffe4e6; } .pd-t2.marinho { --c: #1e3a8a; --cbg: #e0e7ff; }

/* barra de selecao */
.pd-bulk { position: sticky; top: 64px; z-index: 30; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-bottom: 14px; border-radius: 14px;
  border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 3px 0 rgba(138, 97, 24, 0.25), 0 12px 24px -16px rgba(15, 23, 42, 0.4); }
.pd-bulk > * { padding: 10px 16px; }
.pd-bulk > * + * { border-left: 1px solid #e2e8f0; }
.pd-bk-sel { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pd-bk-sel input { width: 22px; height: 22px; accent-color: #1d6fd8; cursor: pointer; }
.pd-bk-sel small, .pd-bk-g > small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #64748b; }
.pd-bk-sel b { font-size: 17px; font-weight: 900; color: #0f172a; }
.pd-bk-g { display: grid; gap: 6px; align-content: center; }
.pd-bk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-bk-x, .pd-bk-dica { align-self: center; margin-left: auto; }
.pd-bk-dica { font-size: 12.5px; border-left: 0 !important; }
.pdk { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 3px 6px rgba(15, 23, 42, 0.15); }
.pdk svg { width: 17px; height: 17px; }
.pdk:disabled { opacity: .45; cursor: not-allowed; }
.pdk.blue { background: linear-gradient(180deg, #3b82f6, #1d4ed8); color: #fff; border-color: #1e40af; }
.pdk.navy { background: linear-gradient(180deg, #2d3e5c, #141f38); color: #fff; border-color: #0c1427; }
.pdk.green { background: linear-gradient(180deg, #3ccd72, #1e9a4c); color: #fff; border-color: #17803e; }
.pdk.outline { background: linear-gradient(180deg, #fff, #eef4fb); color: #1e3a8a; border: 2px solid #1e3a8a; }
.pd-pop-h { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #64748b; padding: 8px 10px 4px; }
.pd-pop button b { color: #1d6fd8; } .pd-pop button:disabled { opacity: .5; cursor: not-allowed; background: none; }
.pd-pop button:disabled span { font-size: 11px; background: #f1f5f9; border-radius: 99px; padding: 1px 7px; }
.pd-pop-r { left: auto; right: 0; }
.pd-pop button > span { color: inherit; }
.pd-pop button > i { font-style: normal; font-size: 11px; color: var(--muted); background: #f1f5f9; border-radius: 99px; padding: 1px 8px; align-self: center; white-space: nowrap; }
.pd-pop-fis { min-width: 270px; }

/* cartao azul-claro */
.pd-card { grid-template-columns: 96px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr) 180px;
  background: linear-gradient(180deg, #f5faff 0%, #e8f3fd 100%) padding-box, var(--gold-grad) border-box; }
.pd-card.sel { box-shadow: 0 0 0 3px rgba(29, 111, 216, 0.55), 0 14px 26px -16px rgba(31, 78, 121, 0.45); }
.pd-card.canc { opacity: .55; filter: saturate(.55); }
.pd-card.canc .pd-stab { filter: saturate(1.6); }
.pd-c1 { position: relative; }
.pd-ck { position: absolute; top: -4px; left: -4px; z-index: 2; width: 20px; height: 20px; accent-color: #1d6fd8; cursor: pointer; }
.pd-foto2 { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(180deg, #ffffff, #e6f3fc); border: 1px solid #b9dcf5; box-shadow: inset 0 1px 0 #fff, 0 3px 8px -4px rgba(31, 78, 121, 0.35); }
.pd-foto2 img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-mk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 800; color: #5c4a00; }
.pd-mk img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.pd-mlb { font-size: 11.5px; color: #64748b; font-family: ui-monospace, Consolas, monospace; }

/* meio: forma de envio + aba 3D */
.pd-forma { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #1f5f99; }
.pd-forma svg { width: 18px; height: 18px; }
.pd-forma.flex { color: #6d28d9; } .pd-forma.full { color: #0f766e; } .pd-forma.correios { color: #a16207; } .pd-forma.outro { color: #64748b; }
.pd-stab { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; max-width: 100%;
  background: linear-gradient(180deg, #fdfdfe 0%, #e6eaf0 100%); border: 1px solid #cbd3de;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(15, 23, 42, 0.07), 0 3px 6px rgba(15, 23, 42, 0.13); }
.pd-stab-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.2); }
.pd-stab-ic svg { width: 18px; height: 18px; stroke-width: 2.4; }
.pd-stab-t { display: grid; min-width: 0; }
.pd-stab-t b { font-size: 15px; font-weight: 900; color: #1e293b; line-height: 1.15; }
.pd-stab-t small { font-size: 11.5px; color: #64748b; font-weight: 600; }
.pd-stab.y .pd-stab-ic { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.pd-stab.b .pd-stab-ic { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.pd-stab.g .pd-stab-ic { background: linear-gradient(180deg, #4ade80, #16a34a); }
.pd-stab.r .pd-stab-ic { background: linear-gradient(180deg, #f87171, #dc2626); }
.pd-stab.t .pd-stab-ic { background: linear-gradient(180deg, #2dd4bf, #0f766e); }
.pd-stab.s .pd-stab-ic { background: linear-gradient(180deg, #94a3b8, #475569); }
.pd-nfm .pd-pop { min-width: 210px; }
.pd-nf-acts { display: flex; flex-wrap: wrap; gap: 8px; } .pd-nf-acts .pdb { width: auto; }

@media (max-width: 1150px) {
  .pd-card { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pd-hero { padding: 16px; gap: 14px; } .pd-hero-ic { width: 44px; height: 44px; padding-right: 14px; } .pd-hero-ic svg { width: 44px; height: 44px; }
  .pd-hero-t h2 { font-size: 26px; } .pd-hero-art { display: none; }
  .pd-bulk { position: static; } .pd-bulk > * + * { border-left: 0; border-top: 1px solid #e2e8f0; } .pd-bulk > * { width: 100%; }
}
@media (max-width: 700px) {
  .pd-card { grid-template-columns: 72px minmax(0, 1fr); }
  .pd-foto2 { width: 72px; height: 72px; }
}

/* ============================================================================
   Cabecalho 3D de todas as paginas (.page-head / .topbar recebem .ph3d via js/app.js)
   Mesmo desenho do cabecalho de Pedidos: moldura dourada, branco -> azul, icone e barras
   ============================================================================ */
.ph3d { position: relative; overflow: hidden; display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: auto; column-gap: 22px; row-gap: 0; align-items: center;
  padding: 22px 26px !important; margin-bottom: 16px; border-radius: 18px !important; border: 2px solid transparent !important;
  background: linear-gradient(180deg, #ffffff, #f6fafe) padding-box, var(--gold-grad) border-box !important;
  box-shadow: 0 3px 0 rgba(138, 97, 24, 0.3), 0 16px 30px -18px rgba(31, 78, 121, 0.45) !important; }
.ph3d::before { content: ""; position: absolute; right: -6%; top: -60%; width: 58%; height: 220%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, rgba(37, 120, 235, 0.95) 0%, rgba(96, 165, 250, 0.75) 35%, rgba(191, 219, 254, 0.45) 60%, transparent 72%); }
.ph3d::after { content: ""; position: absolute; right: 18%; top: -30%; width: 40%; height: 170%; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse, rgba(219, 234, 254, 0.7) 0%, transparent 65%); }
.ph3d > * { position: relative; z-index: 1; grid-column: 2; min-width: 0; }
.ph3d > .ph3d-ic { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 62px; height: 62px; padding-right: 22px; border-right: 1px solid #dbe4ee; box-sizing: content-box; color: #1d6fd8; }
.ph3d > .ph3d-ic svg { width: 62px; height: 62px; filter: drop-shadow(0 2px 2px rgba(29, 111, 216, 0.18)); }
.ph3d > .ph3d-art { position: absolute; right: 30px; bottom: 16px; z-index: 0; display: flex; align-items: flex-end; gap: 8px; grid-column: auto; }
.ph3d > .ph3d-art i { display: block; width: 18px; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, 0.55); }
.ph3d > .ph3d-art i:nth-child(1) { height: 26px; } .ph3d > .ph3d-art i:nth-child(2) { height: 42px; } .ph3d > .ph3d-art i:nth-child(3) { height: 60px; } .ph3d > .ph3d-art i:nth-child(4) { height: 80px; }
.ph3d h2 { font-size: 30px !important; font-weight: 900 !important; letter-spacing: -0.8px; color: #0f172a !important; line-height: 1.1; }
.ph3d h2 .ph-ico { display: none; }
.ph3d p, .ph3d .muted { color: #475569; }
.ph3d .link-btn { color: #1d6fd8; font-weight: 700; }
/* botoes do cabecalho: linha de baixo, por cima do azul */
.ph3d > .side-actions, .ph3d > .ph-actions, .ph3d > div:nth-of-type(3) { margin-top: 12px; }
.ph3d .side-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ph3d .side-actions .btn, .ph3d .side-actions button, .ph3d .side-actions a { box-shadow: 0 2px 0 rgba(138, 97, 24, 0.25), 0 6px 12px -8px rgba(15, 23, 42, 0.35); }
@media (max-width: 760px) {
  .ph3d { padding: 16px !important; column-gap: 14px; }
  .ph3d > .ph3d-ic { width: 40px; height: 40px; padding-right: 12px; } .ph3d > .ph3d-ic svg { width: 40px; height: 40px; }
  .ph3d h2 { font-size: 23px !important; } .ph3d > .ph3d-art { display: none; }
}

/* Pedidos: piloto de NF */
.pd-pil-btn { margin-top: 10px; border: 2px solid transparent; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 800; color: #475569; cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #eef2f7) padding-box, var(--gold-grad) border-box; box-shadow: 0 2px 0 rgba(138, 97, 24, 0.3), 0 6px 12px -8px rgba(15, 23, 42, 0.35); }
.pd-pil-btn.on { color: #15803d; background: linear-gradient(180deg, #f0fdf4, #dcfce7) padding-box, var(--gold-grad) border-box; }
.pd-pil-ban { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: #1e293b;
  border: 2px solid transparent; background: linear-gradient(180deg, #f0fdf4, #e0f2fe) padding-box, var(--gold-grad) border-box; box-shadow: 0 3px 0 rgba(138, 97, 24, 0.25); }
.pd-pil-ck { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pd-pil-ck input, .pd-pil-dias input { width: 17px; height: 17px; accent-color: #1d6fd8; }
.pd-pil-f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: #475569; }
.pd-pil-f input[type="text"] { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; color: #0f172a; }
.pd-pil-dias { display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 600; color: #1e293b; }
.pd-pil-dias label { display: flex; align-items: center; gap: 5px; cursor: pointer; }

/* Pedidos: Mais Detalhes completo (gaveta ao lado) */
.pd-gaveta.pdg { width: min(820px, 100%); background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%) padding-box, var(--gold-grad) border-box; }
.pdg-vals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pdg-vals > div { display: grid; gap: 1px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid #dbe7f3; box-shadow: 0 2px 0 rgba(138, 97, 24, 0.18); font-variant-numeric: tabular-nums; }
.pdg-vals span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.pdg-vals b { font-size: 15px; color: #1d6fd8; } .pdg-vals .tot b.pos { color: #15803d; } .pdg-vals .tot b.neg { color: #b91c1c; }
.pdg-item { display: grid; grid-template-columns: auto 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #dbe7f3; }
.pdg-item + .pdg-item { margin-top: 8px; }
.pdg-q { font-size: 26px; font-weight: 900; color: #0f172a; } .pdg-q small { font-size: 14px; color: #64748b; margin-left: 2px; }
.pdg-foto { width: 72px !important; height: 72px !important; }
.pdg-it { display: grid; gap: 5px; min-width: 0; }
.pdg-tit { font-weight: 700; color: #1d4ed8; line-height: 1.3; }
.pdg-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.pdg-preco { text-align: right; font-size: 18px; font-weight: 900; color: #15803d; font-variant-numeric: tabular-nums; display: grid; }
.pdg-preco small { font-size: 11.5px; font-weight: 600; color: #64748b; }
.pdg-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pdg-2 .pd-sec { align-content: start; }
.pdg-btn { width: auto !important; justify-self: start; }
.pdg-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 12px; border-radius: 10px; background: #fff; border: 1px dashed #93c5fd; }
.pdg-form label { display: grid; gap: 3px; font-size: 11.5px; font-weight: 700; color: #475569; }
.pdg-form input { border: 1px solid #cbd5e1; border-radius: 7px; padding: 7px 9px; font: inherit; font-size: 13.5px; font-weight: 500; color: #0f172a; }
.pdg-form .pd-nf-acts { grid-column: 1 / -1; }
.pdg-obs { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; background: #fff; }
.pdg-datas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pdg-datas > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #dbe7f3; }
.pdg-datas span { font-size: 11px; font-weight: 700; color: #64748b; } .pdg-datas b { font-size: 13.5px; font-variant-numeric: tabular-nums; } .pdg-datas b.neg { color: #b91c1c; }
.pd-kv b svg { width: 15px; height: 15px; vertical-align: -3px; }
@media (max-width: 760px) {
  .pdg-2, .pdg-form { grid-template-columns: minmax(0, 1fr); }
  .pdg-datas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdg-item { grid-template-columns: auto 56px minmax(0, 1fr); } .pdg-foto { width: 56px !important; height: 56px !important; }
  .pdg-preco { grid-column: 1 / -1; text-align: left; }
}

/* Aviso de versão nova (js/app.js) */
.versao-nova { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #0f172a;
  border: 2px solid transparent; background: linear-gradient(180deg, #ffffff, #eaf4fd) padding-box, var(--gold-grad) border-box; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.45); }
.versao-nova button { border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(180deg, #45a8ef, #1f78c8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }

/* Gaveta de detalhes: cor do texto fixa (não herda de nada) */
.pd-gaveta, .pd-gaveta .pd-sec, .pd-gaveta .pd-kv b, .pd-gaveta p { color: #0f172a; }
.pd-gaveta .pd-kv span, .pd-gaveta .muted { color: #64748b; }

/* ============================================================================
   Onda de luz em todas as paginas (js/app.js vivoMarcar)
   ============================================================================ */
/* cabecalho 3D: brilho que atravessa a cada 8 s */
.ph3d > .ph3d-luz { position: absolute; top: -40%; bottom: -40%; left: -40%; width: 28%; z-index: 2; pointer-events: none; transform: skewX(-22deg); grid-column: auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 50%, transparent); animation: vivoLuz 8s ease-in-out infinite; }
@keyframes vivoLuz { 0%, 64% { left: -40%; opacity: 0; } 66% { opacity: 1; } 100% { left: 125%; opacity: 1; } }

/* cartoes das listas: onda que desce a lista (cada cartao comeca um pouco depois do anterior) */
.pcard, .dc-card, .cv-card, .pub-card, .iu-card, .store-card {
  background-image: linear-gradient(105deg, transparent 40%, rgba(142, 205, 244, 0.28) 47%, rgba(255, 255, 255, 0.9) 50%, rgba(142, 205, 244, 0.28) 53%, transparent 60%);
  background-size: 320% 100%; background-repeat: no-repeat; background-position: 150% 0;
  animation: vivoOnda 10s ease-in-out infinite; animation-delay: calc(var(--vi, 0) * 0.22s);
}
@keyframes vivoOnda { 0%, 68% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

/* Pedidos: a onda passa em todos os cartoes, mais forte nos que pedem atencao */
.pd-card::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 26%; transform: rotate(25deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 50%, transparent); animation: goldShine 10s ease-in-out infinite; }
.pd-lista > .pd-card:nth-child(1)::after { animation-delay: 0s; } .pd-lista > .pd-card:nth-child(2)::after { animation-delay: .22s; }
.pd-lista > .pd-card:nth-child(3)::after { animation-delay: .44s; } .pd-lista > .pd-card:nth-child(4)::after { animation-delay: .66s; }
.pd-lista > .pd-card:nth-child(5)::after { animation-delay: .88s; } .pd-lista > .pd-card:nth-child(6)::after { animation-delay: 1.1s; }
.pd-lista > .pd-card:nth-child(7)::after { animation-delay: 1.32s; } .pd-lista > .pd-card:nth-child(8)::after { animation-delay: 1.54s; }
.pd-card.att::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 50%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .ph3d > .ph3d-luz, .pd-card::after { animation: none; opacity: 0; }
  .pcard, .dc-card, .cv-card, .pub-card, .iu-card, .store-card { animation: none; background-image: none; }
}

/* ============================================================================
   Moldura dourada 3D em cada item de Produtos e Anuncios (.pcard)
   camadas: onda de luz | miolo branco (padding-box) | ouro (border-box)
   ============================================================================ */
.pcard { border: 2px solid transparent !important; border-radius: 14px; margin-bottom: 14px;
  background-color: transparent;
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(142, 205, 244, 0.28) 47%, rgba(255, 255, 255, 0.9) 50%, rgba(142, 205, 244, 0.28) 53%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6fafe 100%),
    var(--gold-grad);
  background-origin: padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, border-box;
  background-size: 320% 100%, auto, auto;
  background-repeat: no-repeat;
  background-position: 150% 0, 0 0, 0 0;
  animation-name: vivoOndaOuro;
  box-shadow: 0 3px 0 rgba(138, 97, 24, 0.3), 0 14px 26px -16px rgba(31, 78, 121, 0.45), inset 0 1px 0 #fff; }
@keyframes vivoOndaOuro { 0%, 68% { background-position: 150% 0, 0 0, 0 0; } 100% { background-position: -50% 0, 0 0, 0 0; } }
.pcard:hover { box-shadow: 0 5px 0 rgba(138, 97, 24, 0.4), 0 18px 30px -16px rgba(31, 78, 121, 0.5), 0 0 20px -8px rgba(212, 168, 69, 0.55); }
.pcard.selected { box-shadow: 0 0 0 3px rgba(29, 111, 216, 0.55), 0 14px 26px -16px rgba(31, 78, 121, 0.45); }
.pcard .pcard-head { border-radius: 12px 12px 0 0; }
@media (prefers-reduced-motion: reduce) { .pcard { animation: none; background-image: linear-gradient(transparent, transparent), linear-gradient(180deg, #ffffff 0%, #f6fafe 100%), var(--gold-grad); } }

/* ============================================================================
   Devolucoes e Imprimir checklist (mesmo desenho de Pedidos)
   ============================================================================ */
.dv-card { grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1.05fr) minmax(0, 1fr) 190px; }
.dv-cod { font-size: 12.5px; color: #475569; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dv-cod b { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: #0f172a; letter-spacing: .3px; }
.dv-copiar { border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: 13px; }
.dv-mot { font-weight: 600 !important; color: #334155 !important; font-size: 12.5px; line-height: 1.3; }

.ck-box { display: grid; gap: 12px; margin-bottom: 14px; padding: 16px 18px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff, #f6fafe) padding-box, var(--gold-grad) border-box; box-shadow: 0 3px 0 rgba(138, 97, 24, 0.25), 0 12px 24px -16px rgba(15, 23, 42, 0.4); }
.ck-h { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ck-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-cat { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #dbe7f3; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: #1e3a8a; cursor: pointer;
  box-shadow: 0 2px 0 rgba(138, 97, 24, 0.2); }
.ck-cat i { font-style: normal; font-size: 11.5px; background: #eef4fb; color: #475569; border-radius: 999px; padding: 1px 8px; }
.ck-cat.on { border-color: #1d6fd8; background: linear-gradient(180deg, #eaf4fd, #d6eafb); }
.ck-cat.on i { background: #1d6fd8; color: #fff; }
.ck-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ck-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ck-seg > span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-right: 4px; }
.ck-seg button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; }
.ck-seg button.on { background: #1d6fd8; border-color: #1d6fd8; color: #fff; }
.ck-busca { flex: 1 1 220px; min-width: 0; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; }
.ck-bar { position: sticky; }
.ck-item { grid-template-columns: 96px minmax(0, 1fr) 120px 120px; cursor: pointer; }
.ck-item .ck-ck { top: 10px; left: 10px; width: 22px; height: 22px; }
.ck-qtd { display: grid; justify-items: center; text-align: center; }
.ck-qtd b { font-size: 28px; font-weight: 900; color: #0f172a; line-height: 1; font-variant-numeric: tabular-nums; }
.ck-qtd small { font-size: 12px; color: #64748b; font-weight: 600; }
@media (max-width: 1150px) { .dv-card { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 700px) {
  .dv-card { grid-template-columns: 72px minmax(0, 1fr); }
  .ck-item { grid-template-columns: 72px minmax(0, 1fr) 80px; } .ck-item .ck-qtd:last-child { display: none; }
}

/* FMI nos celulares (categoria CEL) — faixa dentro do cartao de Pedidos / Devolucoes */
.pd-card > .pd-fmi { grid-column: 1 / -1 !important; grid-row: auto !important; }
.fmi-faixa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 12px; border-radius: 12px; font-size: 13px; color: #1e293b;
  border: 1px solid #cbd5e1; background: #f8fafc; }
.fmi-faixa.success { background: #f0fdf4; border-color: #86efac; }
.fmi-faixa.warning { background: #fffbeb; border-color: #fcd34d; }
.fmi-faixa.danger { background: #fef2f2; border-color: #fca5a5; }
.fmi-faixa.video { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35); }
.fmi-tag { font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #475569; white-space: nowrap; }
.fmi-imei { width: 170px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 9px; font: 600 13.5px ui-monospace, Consolas, monospace; background: #fff; color: #0f172a; }
.fmi-btn { width: auto !important; padding: 6px 12px !important; }
.fmi-msg { flex: 1 1 260px; min-width: 0; line-height: 1.35; }

/* Checklist: anuncios (MLB) de cada SKU */
.ck-mlbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ck-mlb { font-size: 11.5px; color: #475569; background: #fff; border: 1px solid #dbe7f3; border-radius: 7px; padding: 2px 8px; }
.ck-mlb b { font-family: ui-monospace, Consolas, monospace; color: #1d4ed8; font-weight: 700; }

/* Pedidos: quadros em grupos (prazo | etiqueta e NF | problema de NF | forma de envio) */
.pd-tgrupos { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 12px 0 16px; }
.pd-tg { flex-basis: 0; min-width: min(100%, 300px); display: grid; gap: 6px; align-content: start; }
.pd-tg-h { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8a6118; padding-left: 4px; }
.pd-tiles2.pd-tg-row { margin: 0; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }

/* ============================================================================
   Devolucoes v2: fita VERMELHA (afeta reputacao), provas, revisao; Atendimento → Impactos
   ============================================================================ */
:root { --red-grad: linear-gradient(145deg, #fecaca 0%, #ef4444 22%, #7f1d1d 42%, #dc2626 60%, #fecaca 74%, #7f1d1d 100%); }
.pd-card.dv-impacto { background: linear-gradient(180deg, #fff7f7 0%, #fdeeee 100%) padding-box, var(--red-grad) border-box;
  box-shadow: 0 3px 0 rgba(127, 29, 29, 0.35), 0 14px 26px -16px rgba(127, 29, 29, 0.45), 0 0 22px -10px rgba(239, 68, 68, 0.5); }
.dv-caso { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; background: #f1f5f9; border: 1px solid #cbd5e1; }
.dv-caso.a { background: #fef2f2; border-color: #fca5a5; } .dv-caso.b { background: #eff6ff; border-color: #93c5fd; }
.dv-provas { display: flex; flex-wrap: wrap; gap: 10px; }
.dv-prova { position: relative; width: 150px; display: grid; gap: 4px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid #dbe7f3; }
.dv-prova img, .dv-prova video { width: 100%; height: 110px; object-fit: cover; border-radius: 7px; background: #0f172a; display: block; }
.dv-prova-i { font-size: 11.5px; line-height: 1.3; color: #334155; overflow-wrap: anywhere; }
.dv-prova-sel { font-size: 11.5px; font-weight: 700; color: #475569; display: flex; gap: 4px; align-items: center; }
.dv-prova-x { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 50%; width: 22px; height: 22px; background: rgba(15, 23, 42, 0.7); color: #fff; cursor: pointer; font-size: 11px; }
.dv-up { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dv-up input[type="text"] { flex: 1 1 240px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
.dv-up .pdb { width: auto; }
.pd-card > .im-ctrl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 14px; align-items: start; padding-top: 10px; border-top: 1px dashed #fca5a5; }
.im-provas .dv-prova { width: 130px; } .im-provas .dv-prova img, .im-provas .dv-prova video { height: 95px; }
.im-form { display: grid; gap: 8px; }
.im-form label { display: grid; gap: 3px; font-size: 11.5px; font-weight: 800; color: #475569; }
.im-form select, .im-form textarea { border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13.5px; font-weight: 500; background: #fff; }
@media (max-width: 760px) { .pd-card > .im-ctrl { grid-template-columns: minmax(0, 1fr); } }

/* Devolucoes: previsao de chegada e codigo para o entregador */
.dv-chega-l { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-chega { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 10px; background: #eef2f7; color: #334155; }
.dv-chega.hoje { background: #dcfce7; color: #15803d; box-shadow: 0 0 0 2px #86efac; } .dv-chega.amanha { background: #dbeafe; color: #1d4ed8; } .dv-chega.atrasada { background: #fef3c7; color: #92400e; }
.dv-codent { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #5c4a00; background: #fff9db; border: 1px solid #f2dd7a; border-radius: 10px; padding: 3px 10px; }
.dv-codent b { font: 800 15px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #0f172a; }
.dv-codent small { font-weight: 600; color: #64748b; }

.dv-prazo { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 8px 12px; font-size: 13px; }

/* Devolucoes: relatorio de perdas */
.dv-rel { gap: 14px; }
.dv-rel .pdg-vals b.pos { color: #15803d; } .dv-rel .pdg-vals b.neg { color: #b91c1c; }
.dv-rel-t { display: grid; gap: 6px; overflow-x: auto; } .dv-rel-t b { font-size: 13.5px; color: #1e3a8a; }

/* Reputacao (Atendimento → Impactos / Reputacao) */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.rep-box { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff, #f6fafe) padding-box, var(--gold-grad) border-box; box-shadow: 0 3px 0 rgba(138, 97, 24, 0.25), 0 12px 24px -16px rgba(15, 23, 42, 0.4); }
.rep-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.rep-termo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; } .rep-termo i { height: 10px; border-radius: 99px; }
.rep-nivel { font-weight: 900; font-size: 14px; }
.rep-ls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rep-l { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #dbe7f3; }
.rep-l span { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .04em; } .rep-l b { font-size: 19px; color: #0f172a; } .rep-l small { font-size: 11.5px; color: #64748b; }
.rep-cruz { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13px; line-height: 1.45; }
.rep-proj { font-size: 12.5px; color: #1e3a8a; }

.rep-det { gap: 10px; overflow-x: auto; } .rep-h { font-size: 13.5px; font-weight: 800; color: #1e3a8a; margin: 6px 0 0; }
.rep-det .pd-itens a { color: #1d4ed8; font-weight: 700; }

.dv-codent-b { font: 800 18px ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.dv-codbusca { display: grid; gap: 6px; } .dv-codbusca details { border: 1px solid #dbe7f3; border-radius: 8px; padding: 6px 10px; background: #fff; }
.dv-cods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dv-cods span { font-size: 12px; background: #f1f5f9; border-radius: 6px; padding: 2px 7px; } .dv-cods b { font-family: ui-monospace, Consolas, monospace; } .dv-cods small { color: #64748b; margin-left: 4px; }

.dv-hoje-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.dv-hoje-c { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 2px solid #dbe7f3; }
.dv-hoje-c.ok { border-color: #86efac; background: #f0fdf4; } .dv-hoje-c.falta { border-color: #fcd34d; background: #fffbeb; }
.dv-hoje-n { font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .05em; }
.dv-hoje-v { font: 900 28px ui-monospace, Consolas, monospace; letter-spacing: 3px; color: #0f172a; }
.dv-hoje-c .pd-nf-acts .pdb { width: auto; }

.rep-mesmo td { background: #f0fdf4; } .rep-mesmo td:last-child { color: #15803d; }

/* ============================================================================
   Atendimento: perguntas, mensagens, reclamacoes, infracoes, sino de avisos
   ============================================================================ */
.at-card { grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr) 200px; }
.at-card > .at-full { grid-column: 1 / -1; display: grid; gap: 10px; }
.at-card > .at-q { min-width: 0; }
.at-conv { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; padding: 8px; border-radius: 12px; background: #f8fbfe; border: 1px solid #dbe7f3; }
.at-b { max-width: 80%; display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; }
.at-b small { font-size: 11px; color: #64748b; }
.at-b.comprador { background: #fff; border: 1px solid #dbe7f3; justify-self: start; }
.at-b.voce { background: #dbeafe; border: 1px solid #93c5fd; justify-self: end; }
.at-b.ml { background: #fef9c3; border: 1px solid #fde047; justify-self: center; }
.at-resp { display: grid; gap: 8px; }
.at-resp .pdb { width: auto; }
.at-para { border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; }
.at-piloto { border: 2px solid transparent; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; color: #475569;
  background: linear-gradient(180deg, #ffffff, #eef2f7) padding-box, var(--gold-grad) border-box; box-shadow: 0 2px 0 rgba(138, 97, 24, 0.3); }
.at-piloto.on { color: #15803d; background: linear-gradient(180deg, #f0fdf4, #dcfce7) padding-box, var(--gold-grad) border-box; }
.at-dica { font-size: 12.5px; margin: -4px 0 12px; }
.mt-badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11.5px; font-weight: 900; text-align: center; margin-left: 6px; }
.at-sino { position: relative; margin-left: 8px; }
.at-sino-b { position: relative; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 17px; cursor: pointer; }
.at-sino-b b { position: absolute; top: -6px; right: -6px; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 900; }
.at-sino-b.tem { animation: atPulse 2.4s ease-in-out infinite; }
@keyframes atPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0); } 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.35); } }
.at-sino-m { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; min-width: 280px; background: #fff; border-radius: 12px; padding: 6px; border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.35); }
.at-sino.open .at-sino-m { display: grid; }
.at-sino-m a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: #1e293b; text-decoration: none; font-size: 14px; }
.at-sino-m a:hover { background: #eaf4fd; } .at-sino-m a b { color: #94a3b8; } .at-sino-m a b.tem { color: #dc2626; }
.at-sino-m small { padding: 4px 10px; color: #94a3b8; font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .at-sino-b.tem { animation: none; } }
@media (max-width: 1150px) { .at-card { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); } }

/* Atendimento: explicação nos quadros, destaque do principal e prazo grande */
.pd-t2 .at-expl { display: block; font-style: normal; font-size: 11px; font-weight: 500; color: #64748b; line-height: 1.3; margin-top: 2px; }
.pd-t2.at-destaque { box-shadow: inset 0 -6px 0 var(--c), 0 0 0 3px rgba(220, 38, 38, 0.35), 0 12px 22px -14px rgba(15, 23, 42, 0.45); }
.at-card > .at-prazo { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 17px; font-weight: 800; color: #92400e; background: #fffbeb; border: 2px solid #fcd34d; }
.at-card > .at-prazo b { font-size: 21px; font-variant-numeric: tabular-nums; }
.at-card > .at-prazo.perto { background: #fff7ed; border-color: #fb923c; color: #9a3412; }
.at-card > .at-prazo.urg { background: #fef2f2; border-color: #ef4444; color: #b91c1c; animation: atPulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .at-card > .at-prazo.urg { animation: none; } }
.at-full > .at-prazo { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 800; background: #fff7ed; border: 2px solid #fb923c; color: #9a3412; }
.at-full > .at-prazo.urg { background: #fef2f2; border-color: #ef4444; color: #b91c1c; }

/* Reputacao v2: termometro com o nivel atual, metricas explicadas */
.rep-grid { grid-template-columns: minmax(0, 1fr); }
.rep-conta { font-size: 18px; }
.rep-nivel2 { color: #fff; font-weight: 900; font-size: 13px; border-radius: 99px; padding: 3px 12px; }
.rep-termo2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rep-seg { display: grid; justify-items: center; gap: 3px; opacity: .35; }
.rep-seg i { width: 100%; height: 12px; border-radius: 99px; background: var(--cor); }
.rep-seg small { font-size: 11px; font-weight: 700; color: #475569; }
.rep-seg.on { opacity: 1; } .rep-seg.on i { height: 18px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cor); }
.rep-seg b { font-size: 12px; color: var(--cor); font-weight: 900; }
.rep-ls3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rep-l em { font-style: normal; font-size: 11px; color: #94a3b8; line-height: 1.3; }
@media (max-width: 760px) { .rep-ls3 { grid-template-columns: minmax(0, 1fr); } }

.at-iasel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #475569; border: 2px solid transparent; border-radius: 999px; padding: 4px 6px 4px 12px;
  background: linear-gradient(180deg, #ffffff, #eef2f7) padding-box, var(--gold-grad) border-box; box-shadow: 0 2px 0 rgba(138, 97, 24, 0.3); }
.at-iasel select { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: #1e3a8a; cursor: pointer; }

/* Reputacao: medidores circulares */
.rep-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rep-g { display: grid; justify-items: center; gap: 2px; padding: 10px 8px 14px; border-radius: 16px; border: 2px solid transparent;
  background: radial-gradient(ellipse at 50% 0%, #ffffff 0%, #f1f6fc 70%) padding-box, var(--gold-grad) border-box; box-shadow: 0 3px 0 rgba(138, 97, 24, 0.25), 0 12px 22px -14px rgba(15, 23, 42, 0.45); }
.rep-g svg { width: 100%; max-width: 280px; filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.18)); }
.rep-g-v { font-size: 30px; font-weight: 900; line-height: 1; margin-top: -6px; font-variant-numeric: tabular-nums; }
.rep-g-n { font-size: 14px; font-weight: 800; color: #1e293b; }
.rep-g-s { font-size: 12px; color: #64748b; } .rep-g-s span { color: #fff; font-weight: 800; border-radius: 99px; padding: 1px 9px; margin-right: 4px; }
.rep-lim { margin-bottom: 10px; } .rep-lim .ck-box { margin-top: 8px; }
.rep-lim-l { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; } .rep-lim-l b { min-width: 170px; }
.rep-lim-l input { width: 70px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 6px; font: inherit; }
@media (max-width: 760px) { .rep-gauges { grid-template-columns: minmax(0, 1fr); } }

/* Pedidos: situação do estoque em cada venda */
.pd-est { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 9px; justify-self: start; width: fit-content; }
.pd-est.ok { background: #f0fdf4; color: #15803d; } .pd-est.pend { background: #fffbeb; color: #92400e; } .pd-est.erro { background: #fef2f2; color: #b91c1c; }
.pd-est.dev { background: #eff6ff; color: #1d4ed8; } .pd-est.full { background: #f1f5f9; color: #475569; }
.pd-itens td.neg { color: #b91c1c; font-weight: 800; } .pd-itens td.pos { color: #15803d; font-weight: 800; }

/* Perguntas: quadro + medidor de progresso */
.at-perg-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; margin: 12px 0 8px; }
.at-prog svg { width: 100%; max-width: 230px; }
.at-prog > b { font-size: 34px !important; margin-top: -10px; }
.at-sub { margin-bottom: 12px; }
@media (max-width: 700px) { .at-perg-top { grid-template-columns: minmax(0, 1fr); } }
.rep-nota { font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fcd34d; margin: 4px 0; }
.rep-nota.ok { background: #f0fdf4; border-color: #86efac; } .rep-nota.erro { background: #fef2f2; border-color: #fca5a5; }

/* Pedidos: 3 blocos de quadros (prazo | NF e etiqueta | forma de envio), 2 por linha */
.pd-tgrupos.pd-tg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.pd-tg3 .pd-tg { min-width: 0; }
.pd-tg3 .pd-tiles2.pd-tg-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-tg3 .pd-t2-largo { grid-column: 1 / -1; }
@media (max-width: 1000px) { .pd-tgrupos.pd-tg3 { grid-template-columns: minmax(0, 1fr); } }
.pd-tg3 .pd-tg-h { text-align: center; padding-left: 0; font-size: 12px; }


/* Atividades: cabeçalho de dia (como no Mercado Pago) */
tr.ativ-dia td { background: #f1f5f9; font-weight: 800; color: #334155; font-size: 13px; padding: 8px 12px; border-top: 2px solid #cbd5e1; }
.ativ-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 24px; font-size: 14px; color: #475569; }
.concil-toggle { display: block; margin-top: 6px; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 700; color: #1d6fd8; cursor: pointer; }
.concil-toggle:hover { text-decoration: underline; }
#view-resumo .kpi-grid { align-items: start; }

/* Atividades: os três quadros abrem e fecham juntos (botão embaixo) */
#view-resumo .kpi-grid { align-items: stretch; }
#view-resumo .kpi-mais { display: none; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #cbd5e1; font-size: 12.5px; text-align: left; }
#view-resumo .kpi-grid.kpi-aberto .kpi-mais { display: block; }
#view-resumo .kpi-mais-t { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
#view-resumo .kpi-mais-l { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid #f1f5f9; color: #334155; }
#view-resumo .kpi-mais-l b { white-space: nowrap; }
.kpi-toggle { display: block; margin: 6px auto 16px; padding: 6px 18px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #1d6fd8; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.kpi-toggle:hover { background: #eff6ff; }
.rep-dia { margin: 8px 0; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; background: #fff; }
.rep-dia summary { cursor: pointer; font-size: 13px; line-height: 1.5; }
.rep-dia[open] summary { margin-bottom: 8px; }

/* Reputação: abas Reclamações · Cancelamentos · Atrasos */
.rep-abas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; position: sticky; top: 64px; z-index: 5; background: inherit; padding: 4px 0; }
.rep-aba { display: grid; gap: 2px; text-align: center; padding: 10px 8px; border-radius: 12px; border: 2px solid #dbe7f3; background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: #1e3a5f; cursor: pointer; }
.rep-aba b { font-size: 22px; color: #1d6fd8; }
.rep-aba small { font-size: 11.5px; font-weight: 600; color: #64748b; }
.rep-aba.on { border-color: transparent; background: linear-gradient(180deg, #eff6ff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 4px 14px rgba(29, 111, 216, .18); }
.rep-aba:hover { background: #f8fafc; }
@media (max-width: 640px) { .rep-abas { grid-template-columns: 1fr; position: static; } }
.rep-atr-filtro { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.rep-atr-filtro button { padding: 6px 12px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: #334155; }
.rep-atr-filtro button.on { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
tr.rep-removido td { background: #f1f5f9; color: #94a3b8; }
.rep-atr-total { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; }
.rep-atr-n { font-size: 44px; font-weight: 900; color: #b91c1c; min-width: 80px; text-align: center; }

/* ⛓️ Vendedores Blockchain */
.vb-card { background: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.vb-card.on { background: linear-gradient(180deg, #f0fdf4, #fff) padding-box, var(--gold-grad) border-box; }
.vb-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vb-dot { font-size: 26px; }
.vb-contas { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cbd5e1; display: grid; gap: 6px; }
.vb-sub { font-weight: 800; color: #1e3a5f; margin-bottom: 4px; }
.vb-conta { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid #e2e8f0; cursor: pointer; }
.vb-conta:hover { background: #f8fafc; }
.vb-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.vb-tab { width: 100%; border-collapse: collapse; }
.vb-tab th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: 8px 10px; border-bottom: 2px solid #e2e8f0; }
.vb-tab td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.vb-nome { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid #cbd5e1; font: inherit; font-weight: 800; letter-spacing: .03em; }
.vb-nome:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
.vb-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 4px 2px 0; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12.5px; font-weight: 800; }
.vb-chip button { border: 0; background: none; cursor: pointer; color: #6366f1; font-size: 15px; line-height: 1; padding: 0 0 0 2px; }
.vb-chip.conta { background: #ecfeff; color: #0e7490; }
.vb-chip.livre { background: #fff7ed; color: #c2410c; }
.vb-add { padding: 5px 8px; border-radius: 999px; border: 1px dashed #94a3b8; background: #fff; font: inherit; font-size: 12.5px; color: #475569; cursor: pointer; }
.vb-acoes { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.vb-livres { margin: 12px 0 0; font-size: 13px; } .vb-livres.ok { color: #15803d; }

/* edição compacta dos lançamentos do Mercado Pago */
#modalBg .modal { overflow-x: hidden; }
#modalBg .modal .form-group { min-width: 0; }
#modalBg .modal input, #modalBg .modal select { max-width: 100%; min-width: 0; box-sizing: border-box; }
#modalBg .modal.travado { max-width: 440px; }
#modalBg .modal.travado .grp-trava { display: none; }
#modalBg .modal.travado .form-grid { grid-template-columns: 1fr; }
.f-resumo { display: none; }
#modalBg .modal.travado .f-resumo { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 700; }
.f-resumo .neg { color: #b91c1c; } .f-resumo .pos { color: #15803d; }

/* 📊 Métricas */
.viz-root { --surface-1: #fcfcfb; --text-primary: #0b0b0b; --text-secondary: #52514e; --text-muted: #8a8984; --grid: #e7e6e2; --series-1: #2a78d6; --series-1-soft: rgba(42, 120, 214, .14); --good: #008300; --bad: #d03b3b; }
.mt-abas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.mt-abas button { display: grid; gap: 2px; padding: 12px; border-radius: 14px; border: 2px solid #dbe7f3; background: #fff; font: inherit; font-size: 16px; font-weight: 900; color: #1e3a5f; cursor: pointer; }
.mt-abas button small { font-size: 12px; font-weight: 600; color: #64748b; }
.mt-abas button.on { border-color: transparent; background: linear-gradient(180deg, #eff6ff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 6px 18px rgba(29, 111, 216, .16); }
.mt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.mt-tile { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 16px; background: var(--surface-1); border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 4px 14px rgba(15, 23, 42, .05); }
.mt-rot { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.mt-val { font-size: 26px; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.mt-delta { font-size: 12.5px; font-weight: 800; } .mt-delta small { font-weight: 600; color: var(--text-muted); }
.mt-delta.bom { color: var(--good); } .mt-delta.ruim { color: var(--bad); } .mt-delta.neu { color: var(--text-secondary); }
.mt-dica { font-size: 11.5px; color: var(--text-muted); }
.mt-card { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.mt-card h3 { margin: 0 0 10px; font-size: 15px; color: #1e3a5f; }
.mt-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mt-leg { font-size: 12px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.mt-leg .sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 6px; }
.mt-leg .sw.bar { background: var(--series-1); opacity: .55; } .mt-leg .sw.line { height: 2px; background: var(--series-1); }
.mt-leg .sw.dash { height: 0; border-top: 2px dashed var(--series-1); } .mt-leg .sw.band { background: var(--series-1-soft); }
.mt-svg { width: 100%; height: auto; display: block; }
.mt-grid { stroke: var(--grid); stroke-width: 1; } .mt-ax { font-size: 10.5px; fill: var(--text-muted); }
.mt-bar { fill: var(--series-1); opacity: .55; }
.mt-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; } .mt-line.proj { stroke-dasharray: 5 4; }
.mt-band { fill: var(--series-1-soft); } .mt-hoje { stroke: #94a3b8; stroke-dasharray: 3 3; }
.mt-nota { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.mt-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.mt-rank { display: grid; gap: 8px; }
.mt-rank-l { display: grid; grid-template-columns: 70px 1fr 96px; gap: 10px; align-items: center; font-size: 13px; }
.mt-rank-n { font-weight: 800; color: var(--text-primary); } .mt-rank-v { text-align: right; font-weight: 700; color: var(--text-secondary); }
.mt-rank-b { height: 12px; background: #f1f5f9; border-radius: 4px; overflow: hidden; } .mt-rank-b i { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.mt-acoes { display: grid; gap: 8px; }
.mt-acao { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.mt-acao.ruim { background: #fff7ed; border: 1px solid #fed7aa; } .mt-acao.bom { background: #f0fdf4; border: 1px solid #bbf7d0; }
.mt-acao div { display: grid; gap: 2px; } .mt-acao small { color: var(--text-secondary); }
.mt-tip { position: fixed; display: none; z-index: 9999; pointer-events: none; background: #0f172a; color: #fff; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); max-width: 230px; }
@media (max-width: 640px) { .mt-abas { grid-template-columns: 1fr; } .mt-rank-l { grid-template-columns: 56px 1fr 80px; } }

/* ERP: botões das empresas numa linha */
.erp-actions.erp-linha { flex-wrap: nowrap; justify-content: center; }
.erp-actions.erp-linha .ebtn { padding: 6px 9px; }
/* Natureza da operação (página completa) */
.nat-card { background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.nat-card h3 { margin: 0 0 12px; font-size: 15px; color: #1e293b; }
.nat-linha { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nat-lbl { font-weight: 800; color: #334155; font-size: 13px; }
.nat-in { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 8px; border: 1px solid #94a3b8; font: inherit; font-size: 14px; background: #fff; }
.nat-in:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
.nat-desc { max-width: 420px; }
.nat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.nat-campo { display: grid; gap: 5px; font-size: 13px; font-weight: 800; color: #334155; }
.nat-larga { grid-column: span 2; }
.nat-toggles { display: flex; gap: 28px; flex-wrap: wrap; margin: 14px 0 6px; }
.nat-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; cursor: pointer; }
.nat-switch input { display: none; }
.nat-switch span { width: 34px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; flex: none; }
.nat-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.nat-switch input:checked + span { background: #2563eb; } .nat-switch input:checked + span::after { left: 18px; }
.nat-padrao { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 13px; }
.nat-abas { display: flex; gap: 2px; border-bottom: 1px solid #e2e8f0; margin-bottom: 12px; flex-wrap: wrap; }
.nat-abas button { border: 1px solid transparent; border-bottom: 0; background: none; padding: 8px 14px; font: inherit; font-size: 13.5px; color: #2563eb; cursor: pointer; border-radius: 8px 8px 0 0; }
.nat-abas button.on { border-color: #e2e8f0; background: #fff; color: #0f172a; margin-bottom: -1px; }
.nat-tab { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.nat-tab th { text-align: left; font-size: 13px; color: #0f172a; padding: 8px; border-bottom: 2px solid #e2e8f0; }
.nat-tab td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; font-size: 13.5px; }
.nat-ufs { word-break: break-word; }
.nat-lixo { border: 1px solid #fca5a5; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.nat-aviso { font-size: 12.5px; color: #c2410c; margin: 4px 0 10px; }
.nat-ufs-esc { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid #bfdbfe; background: #eff6ff; display: grid; gap: 10px; }
.nat-uf-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.nat-uf { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 8px; background: #fff; border: 1px solid #cbd5e1; font-size: 13px; font-weight: 700; cursor: pointer; }
.nat-uf.outra { opacity: .55; }
.nat-acoes { display: flex; justify-content: center; gap: 12px; margin: 10px 0 30px; }
.nat-voltar { color: #dc2626 !important; border-color: #fca5a5 !important; }
@media (max-width: 760px) { .nat-grid { grid-template-columns: 1fr 1fr; } .nat-larga { grid-column: span 2; } .erp-actions.erp-linha { flex-wrap: wrap; } }
#view-erp .page-head a.btn, #view-erp .page-head button.btn { width: auto !important; max-width: max-content; align-self: flex-start; }

.nat-edit { border: 1px solid #93c5fd; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.nat-estados { background: #e5e7eb; border-radius: 10px; padding: 14px 16px; margin: 6px 0 14px; }
.nat-estados-t { text-align: center; color: #2563eb; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
#prodDialog .nat-uf-lista { grid-template-columns: repeat(7, minmax(0, 1fr)); }
#prodDialog .nat-uf { background: transparent; border: 0; font-weight: 500; }
.nat-sub { font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.nat-regra-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 8px; }
.nat-regra-campos .nat-cheia { grid-column: 1 / -1; }
.nat-outros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: end; }
.nat-inline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: #334155; }
.nat-mini { width: auto; min-width: 72px; }
@media (max-width: 640px) { #prodDialog .nat-uf-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nat-regra-campos, .nat-outros { grid-template-columns: 1fr; } }

/* CFOP com busca */
.cfop-box { position: relative; }
.cfop-seta { position: absolute; right: 10px; top: 9px; color: #1d4ed8; pointer-events: none; font-size: 13px; }
.cfop-lista { position: absolute; left: 0; top: 40px; z-index: 50; width: min(520px, 80vw); max-height: 320px; overflow-y: auto; background: #fff; border-radius: 8px; box-shadow: 0 12px 30px rgba(15, 23, 42, .22); }
.cfop-lista:empty { display: none; }
.cfop-op { display: grid; gap: 2px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.cfop-op:hover { background: #eff6ff; } .cfop-op b { font-size: 13.5px; color: #0f172a; } .cfop-op small { font-size: 12px; color: #475569; }
.cfop-op.vazio { cursor: default; color: #64748b; font-size: 12.5px; }
.cfop-desc { font-size: 11.5px; color: #64748b; margin-top: 4px; min-height: 14px; }
.nat-regra-campos { align-items: start; }
.nat-regra-campos .nat-campo { align-content: start; }

/* 🧾 Central de impressão da NF-e */
.nfc-topo { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; margin: 4px 0 14px; }
.nfc-topo > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.nfc-topo span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.nfc-topo b { font-size: 20px; color: #0f172a; } .nfc-topo small { font-size: 11.5px; color: #64748b; }
.nfc-chave code { font-size: 12.5px; font-weight: 700; color: #1e3a5f; word-break: break-all; }
.nfc-sec { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin: 10px 0 8px; }
.nfc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nfc-grid.nfc-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nfc-op { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 12px; border-radius: 14px; cursor: pointer; font: inherit;
  border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; box-shadow: 0 3px 10px rgba(15, 23, 42, .06); transition: transform .12s, box-shadow .12s; }
.nfc-op:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(29, 111, 216, .18); }
.nfc-op .nfc-ic { grid-row: span 2; font-size: 26px; text-align: center; }
.nfc-op b { font-size: 14px; color: #0f172a; } .nfc-op small { font-size: 11.5px; color: #64748b; }
.nfc-op.off { opacity: .45; cursor: not-allowed; background: #f8fafc; box-shadow: none; transform: none; }
@media (max-width: 620px) { .nfc-topo, .nfc-grid, .nfc-grid.nfc-mini { grid-template-columns: 1fr; } }
.pd-teste { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #a5b4fc; background: #eef2ff; display: grid; gap: 4px; }
.pd-teste small { color: #4338ca; font-size: 12px; }
.pdb-mini { display: inline-flex; align-items: center; gap: 4px; margin: 6px 6px 0 0; padding: 5px 10px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.pdb-mini.green { background: #dcfce7; color: #166534; border-color: #86efac; }
.pdb-mini.blue { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.pdb-mini:hover { filter: brightness(.97); }

/* 🎬 Studio por produto: versões (V1, V2…) e anúncios por conta */
.vd-vlista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; font-size: 12px; }
.vd-vchip { display: inline-flex; align-items: center; gap: 4px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.vd-vchip a, .vd-vchip button { background: none; border: 0; padding: 0 1px; cursor: pointer; text-decoration: none; font-size: 12px; color: inherit; }
.vd-vchip button:hover { color: #dc2626; }
.vd-contas { grid-column: 1 / -1; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.vd-contas-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.vd-conta-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #fbbf24; border-radius: 10px; padding: 6px 10px; }
.vd-conta-l.ok { border-left-color: #4ade80; }
.vd-conta-t { flex: 1; min-width: 160px; font-size: 13px; color: #334155; }
.vg-estilo-box { background: linear-gradient(135deg, #faf5ff, #eff6ff); border: 1px solid #ddd6fe; border-radius: 12px; padding: 10px 12px; }
.vg-estilo { font-size: 12px; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px; padding: 6px 8px; color: #4c1d95; }
.vg-estilo small { display: block; color: #7c3aed; font-weight: 700; }

/* ⭐ Resumo: régua horizontal da reputação */
.hr-tile { align-items: flex-start; }
.hr-list { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; font-weight: 600; }
.hr-row { display: grid; grid-template-columns: minmax(0, 70px) 1fr; gap: 8px; align-items: center; font-size: 11px; }
.hr-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #64748b); }
.hr-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #dc2626 0 20%, #f97316 20% 40%, #eab308 40% 60%, #84cc16 60% 80%, #16a34a 80% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.hr-pin { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c); transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hr-sem { position: absolute; inset: -3px 0 0; text-align: center; font-size: 10px; color: #fff; }

/* 📞 Impactos: provas da devolução para quem liga ao ML */
.im-prov-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.im-rev { font-size: 12.5px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }

/* ============================================================================
   Resumo 3D (2026-11-22): moldura dourada, luz que passa e entrada "saindo da tela"
   ============================================================================ */
#view-home .kpi, #view-home .shortcut, #view-home .panel, #view-home .home-ads {
  position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 4px 0 rgba(138, 97, 24, 0.38), 0 14px 26px -14px rgba(31, 78, 121, 0.5), inset 0 1px 0 #fff;
  transition: transform .2s, box-shadow .2s; }
#view-home.h3d-in .kpi, #view-home.h3d-in .shortcut, #view-home.h3d-in .panel, #view-home.h3d-in .home-ads { animation: h3dSai .7s cubic-bezier(.2, .9, .3, 1.25) both; }
#view-home .home-orders { overflow: visible; }
/* faixa de cor do card (o dourado ocupa a borda) */
#view-home .kpi { --kc: #3d9be0; box-shadow: inset 0 5px 0 var(--kc), 0 4px 0 rgba(138, 97, 24, 0.38), 0 14px 26px -14px rgba(31, 78, 121, 0.5); }
#view-home .kc-sky { --kc: #8ecdf4; } #view-home .kc-green { --kc: #34c38f; } #view-home .kc-violet { --kc: #a78bfa; } #view-home .kc-orange { --kc: #fb923c; }
/* luz que atravessa (cada card no seu tempo) */
#view-home .kpi::after, #view-home .shortcut::after, #view-home .panel::after, #view-home .home-ads::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 34%; transform: rotate(25deg); pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8) 50%, transparent); animation: goldShine 6s ease-in-out infinite; }
#view-home .home-orders::after { display: none; }
#view-home .home-orders { background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%) padding-box, var(--gold-grad) border-box; }
#view-home .home-orders .panel-head { position: relative; overflow: hidden; border-radius: 10px; }
#view-home .home-orders .panel-head::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: -60%; width: 30%; transform: rotate(25deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 50%, transparent); animation: goldShine 6s ease-in-out 2.5s infinite; }
/* passa um card depois do outro */
#view-home .home-kpis .kpi:nth-child(2), #view-home .shortcut:nth-child(2) { animation-delay: .06s; }
#view-home .home-kpis .kpi:nth-child(3), #view-home .shortcut:nth-child(3) { animation-delay: .12s; }
#view-home .home-kpis .kpi:nth-child(4), #view-home .shortcut:nth-child(4) { animation-delay: .18s; }
#view-home .home-kpis .kpi:nth-child(5), #view-home .shortcut:nth-child(5) { animation-delay: .24s; }
#view-home .shortcut:nth-child(6) { animation-delay: .3s; } #view-home .shortcut:nth-child(7) { animation-delay: .36s; }
#view-home .shortcut:nth-child(8) { animation-delay: .42s; } #view-home .shortcut:nth-child(9) { animation-delay: .48s; }
#view-home .home-kpis .kpi:nth-child(2)::after, #view-home .shortcut:nth-child(2)::after { animation-delay: .4s; }
#view-home .home-kpis .kpi:nth-child(3)::after, #view-home .shortcut:nth-child(3)::after { animation-delay: .8s; }
#view-home .home-kpis .kpi:nth-child(4)::after, #view-home .shortcut:nth-child(4)::after { animation-delay: 1.2s; }
#view-home .home-kpis .kpi:nth-child(5)::after, #view-home .shortcut:nth-child(5)::after { animation-delay: 1.6s; }
#view-home .shortcut:nth-child(6)::after { animation-delay: 2s; } #view-home .shortcut:nth-child(7)::after { animation-delay: 2.4s; }
#view-home .shortcut:nth-child(8)::after { animation-delay: 2.8s; } #view-home .shortcut:nth-child(9)::after { animation-delay: 3.2s; }
#view-home .panel::after { animation-delay: 3.6s; }
#view-home .kpi:hover, #view-home .shortcut:hover, #view-home .home-ads:hover { transform: translateY(-4px) scale(1.015);
  box-shadow: 0 7px 0 rgba(138, 97, 24, 0.45), 0 22px 32px -14px rgba(31, 78, 121, 0.55), var(--gold-glow); }
#view-home .kpi:hover { box-shadow: inset 0 5px 0 var(--kc), 0 7px 0 rgba(138, 97, 24, 0.45), 0 22px 32px -14px rgba(31, 78, 121, 0.55), var(--gold-glow); }
/* pedidos novos chegando "ao vivo" */
#view-home .order-list li.novo { animation: h3dLinha .6s ease-out both; background: #fef9c3; }
#view-home .order-list li { transition: background 2s; }
@keyframes h3dSai { from { opacity: 0; transform: perspective(800px) translateZ(-120px) translateY(14px) rotateX(10deg); } to { opacity: 1; transform: none; } }
@keyframes h3dLinha { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #view-home .kpi, #view-home .shortcut, #view-home .panel, #view-home .home-ads, #view-home .order-list li { animation: none; }
  #view-home .kpi::after, #view-home .shortcut::after, #view-home .panel::after, #view-home .home-ads::after, #view-home .home-orders .panel-head::after { display: none; }
}

/* Quadros (Devoluções, Impactos, Pedidos): a última linha incompleta fica centralizada */
.pd-tiles2 { display: flex; flex-wrap: wrap; justify-content: center; }
.pd-tiles2 > .pd-t2 { flex: 1 1 150px; max-width: 172px; }

/* 🏪 barra de contas: várias contas somadas */
.acc-bar-soma { font-size: 12.5px; font-weight: 800; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 99px; padding: 3px 10px; }
.acc-bar-dica { font-size: 11px; }
#ativContaBar .acc-bar { margin: 0 0 10px; }

/* 🔄 Integração de conta: medidor no canto da tela */
.int-painel { position: fixed; right: 18px; bottom: 18px; z-index: 9999; width: min(380px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(180deg, #fff, #f4f9fe) padding-box, var(--gold-grad) border-box; box-shadow: 0 6px 0 rgba(138, 97, 24, .35), 0 22px 40px -16px rgba(15, 23, 42, .55); font-size: 13px; }
.int-t { font-size: 14.5px; margin-bottom: 8px; }
.int-bar { position: relative; display: block; height: 16px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.int-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3b82f6, #22c55e); border-radius: 99px; transition: width .6s; }
.int-bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 800; line-height: 16px; color: #0f172a; }
.int-bar.mini { display: inline-block; width: 140px; height: 8px; vertical-align: middle; margin-left: 8px; }
.int-etapas { margin: 10px 0 6px; display: grid; gap: 3px; color: #94a3b8; }
.int-etapas .ok { color: #15803d; } .int-etapas .agora { color: #1d4ed8; font-weight: 700; } .int-etapas small { font-weight: 500; color: #64748b; }
.int-aviso { font-size: 12px; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 5px 8px; }
.int-erro { font-size: 12px; color: #b91c1c; margin: 4px 0; }
.int-faixa { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: 13.5px; }


/* Vendedores Blockchain: conta clicável → janela com as categorias */
.vb-chip.vb-clica { cursor: pointer; }
.vb-chip.vb-clica:hover { box-shadow: 0 0 0 2px rgba(37, 99, 235, .25); }
.vb-inteira { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 4px 0 10px; border-radius: 10px; background: #ecfeff; border: 1px solid #a5f3fc; font-size: 14px; cursor: pointer; }
.nat-estados.vb-off { opacity: .4; pointer-events: none; }
#prodDialog .vb-cats-lista { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { #prodDialog .vb-cats-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Checklist: produto que já entrou num checklist impresso */
.ck-feito { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; border: 1px solid #86efac; }

/* Checklist: título de cada grupo de envio (Flex / Agência e Correios / Coleta) */
.ck-envio-h { margin: 14px 0 6px; padding: 8px 14px; border-radius: 10px; background: #1e3a5f; color: #fff; font-weight: 800; font-size: 15px; }
.ck-envio-h span { font-weight: 500; font-size: 12.5px; opacity: .85; margin-left: 8px; }

/* Resumo: Reputação numa caixa só com a largura das 3 colunas (cresce com as contas); linha do meio um pouco mais alta */
.home-main .shortcut-grid .hr-tile { grid-column: 1 / -1; }
.hr-tile .sc-label { flex: 1; min-width: 0; }
.hr-tile .hr-list { display: flex; flex-direction: column; gap: 7px; width: 100%; }   /* uma conta embaixo da outra; a caixa cresce com as contas */
.hr-tile .hr-row { grid-template-columns: minmax(0, 130px) 1fr; font-size: 12px; }
.home-main .shortcut.sc-alta { min-height: 86px; }

/* Resumo › Desempenho: passar o mouse (ou tocar) num dia mostra o valor daquele dia; o rótulo do maior dia some enquanto isso */
.chart .val { font-size: 11.5px; font-weight: 800; fill: #0f172a; opacity: 0; pointer-events: none; }
.chart .bar-g:hover .val { opacity: 1; }
.chart svg:hover .peak { opacity: 0; }

/* 🎯 Concorrência › Copia anúncio */
.cp-hero { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.cp-hero-ico { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #dbeafe, #eff6ff); border: 1px solid #bfdbfe; }
.cp-hero-body { flex: 1; min-width: 0; }
.cp-lbl { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.cp-busca { display: flex; gap: 10px; }
.cp-busca input { flex: 1; min-width: 0; padding: 13px 15px; border-radius: 12px; border: 1.5px solid #cbd5e1; font-size: 14.5px; background: #f8fafc; transition: border-color .15s, background .15s; }
.cp-busca input:focus { outline: none; border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.cp-go { padding: 0 22px; font-size: 14.5px; white-space: nowrap; }
.cp-msg { min-height: 20px; margin-top: 8px; font-size: 13px; } .cp-msg .bad { color: #dc2626; font-weight: 600; }
.cp-passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cp-passo { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.cp-passo b { display: block; font-size: 13.5px; } .cp-passo small { color: var(--muted, #64748b); font-size: 12px; }
.cp-pn { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, #2563eb, #1e40af); }
.cp-sub { margin: 2px 0 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-steps { display: flex; align-items: center; gap: 0; margin: 14px 0 16px; }
.cp-step { display: flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; font-size: 13.5px; color: #94a3b8; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.cp-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: #e2e8f0; color: #64748b; }
.cp-step.on { color: #1e3a8a; } .cp-step.on span { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.cp-step.ok { color: #15803d; } .cp-step.ok span { background: #16a34a; color: #fff; }
.cp-linha { flex: 1; height: 2px; background: #e2e8f0; margin: 0 10px; min-width: 20px; }
.cp-orig { display: flex; gap: 14px; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.cp-orig img, .cp-orig-sem { width: 74px; height: 74px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid #e2e8f0; flex: 0 0 74px; display: grid; place-items: center; font-size: 26px; }
.cp-orig-i { min-width: 0; } .cp-orig-cat { font-size: 11.5px; color: #64748b; } .cp-orig-t { font-weight: 800; font-size: 14.5px; margin: 2px 0 6px; }
.cp-orig-m { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; align-items: center; }
.cp-orig-m span { background: #fff; border: 1px solid #e2e8f0; border-radius: 99px; padding: 2px 9px; font-weight: 600; }
.cp-orig-m span.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cp-sec-t { font-weight: 800; font-size: 14px; margin: 6px 0 10px; }
.cp-dica { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.cp-linha2 { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-sku { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-sku select { flex: 1 1 240px; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid #cbd5e1; }
.cp-sku input { flex: 0 1 160px; padding: 9px 10px; border-radius: 10px; border: 1px solid #cbd5e1; font-weight: 700; }
.cp-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cp-resumo div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.cp-resumo small { display: block; color: #64748b; font-size: 11.5px; } .cp-resumo b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-rodape { justify-content: space-between; }
.cp-feito { text-align: center; padding: 18px 10px; } .cp-feito-ico { font-size: 44px; } .cp-feito h3 { margin: 6px 0; } .cp-feito .warn { color: #b45309; font-weight: 700; }
@media (max-width: 720px) { .cp-hero { flex-direction: column; } .cp-busca { flex-direction: column; } .cp-passos, .cp-grid3, .cp-resumo { grid-template-columns: 1fr 1fr; } .cp-step { font-size: 12px; } }
.cp-nota { margin: 6px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.55; } .cp-nota code { background: #eef2ff; padding: 1px 5px; border-radius: 5px; font-size: 12px; }

/* 🧩 Copia anúncio: cartão da extensão do Chrome */
.cp-ext { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(135deg, #eff6ff 0%, #fff 60%); border: 1px solid #bfdbfe; border-radius: 18px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.cp-ext-ico { flex: 0 0 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #2563eb, #1e3a8a); box-shadow: 0 0 0 3px rgba(212,175,55,.55); }
.cp-ext-body { flex: 1; min-width: 0; } .cp-ext-body p { margin: 4px 0 10px; font-size: 13.5px; color: #334155; }
.cp-ext-t { font-weight: 800; font-size: 15px; } .cp-ext-st { font-size: 12px; color: #15803d; margin-left: 6px; }
.cp-ext-a { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-ext-passos { margin: 12px 0 0; padding-left: 20px; font-size: 13px; color: #334155; } .cp-ext-passos li { margin: 4px 0; } .cp-ext-passos code { background: #eef2ff; padding: 1px 5px; border-radius: 5px; }
@media (max-width: 720px) { .cp-ext { flex-direction: column; } }

.cp-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .cp-grid4 { grid-template-columns: 1fr 1fr; } }

/* 📦 Fila de cópias */
.fl-barra { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.fl-barra input { flex: 1 1 260px; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid #cbd5e1; }
.fl-barra select { padding: 9px 10px; border-radius: 10px; border: 1px solid #cbd5e1; }
.fl-sel { display: flex; gap: 6px; align-items: center; margin-left: auto; } .fl-sel .fl-del { color: #dc2626; }
.fl-lista { display: flex; flex-direction: column; gap: 8px; }
.fl-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.fl-item.on { border-color: #93c5fd; background: #f8fbff; }
.fl-foto { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 22px; }
.fl-foto img { width: 100%; height: 100%; object-fit: contain; }
.fl-info { flex: 1; min-width: 0; } .fl-tit { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: #475569; margin-top: 3px; }
.fl-st { font-weight: 700; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; }
.fl-novo { background: #eff6ff; color: #1d4ed8; } .fl-pub { background: #f0fdf4; color: #15803d; } .fl-err { background: #fef2f2; color: #b91c1c; } .fl-ign { background: #f1f5f9; color: #64748b; }
.fl-erro { color: #b91c1c; font-size: 12px; margin-top: 3px; }
.fl-acoes { flex: 0 0 auto; }
@media (max-width: 720px) { .fl-item { flex-wrap: wrap; } .fl-acoes { width: 100%; } .fl-acoes .btn { width: 100%; } }
/* Copia anúncio: título com IA + opções das contas extras */
.cp-tit { display: flex; gap: 8px; } .cp-tit input { flex: 1; min-width: 0; } .cp-tit .btn { white-space: nowrap; }
.cp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cp-opt { display: flex; gap: 9px; align-items: flex-start; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; background: #fff; cursor: pointer; }
.cp-opt input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; }
.cp-opt b { display: block; font-size: 13px; } .cp-opt small { display: block; color: #64748b; font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.cp-opt:has(input:checked) { border-color: #93c5fd; background: #f8fbff; }
@media (max-width: 720px) { .cp-opts { grid-template-columns: 1fr; } .cp-tit { flex-direction: column; } }
.cp-pct { display: flex; gap: 4px; margin-top: 6px; } .cp-pct button { flex: 1; padding: 4px 0; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; font-weight: 700; font-size: 12px; cursor: pointer; } .cp-pct button:hover { border-color: #3b82f6; color: #1d4ed8; }
.cp-alerta { color: #b45309 !important; font-weight: 700; }
/* ⚙️ Regras para vários anúncios */
.cp-regras-resumo { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-top: 10px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.cp-regras-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .cp-regras-chips span { background: #fff; border: 1px solid #bfdbfe; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.cp-reg-ov { position: fixed; inset: 0; z-index: 3000; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 16px; }
.cp-reg-box { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 30px 60px -20px rgba(15,23,42,.5); }
.cp-reg-h { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.cp-reg-h b { font-size: 16px; } .cp-reg-h small { display: block; color: #64748b; font-size: 12.5px; margin-top: 3px; } .cp-reg-h .modal-close { position: static; flex: 0 0 auto; }
.cp-reg-sec { border-top: 1px solid #e2e8f0; padding: 12px 0; } .cp-reg-t { font-weight: 800; font-size: 13.5px; margin-bottom: 8px; }
.cp-reg-l { font-weight: 700; font-size: 12.5px; margin: 10px 0 6px; color: #334155; }
.cp-opts2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.cp-reg-preco { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .cp-reg-preco .dup-preco input { width: 80px; }
@media (max-width: 720px) { .cp-opts2 { grid-template-columns: 1fr; } .cp-regras-resumo { flex-direction: column; } }

.cp-guia { background: linear-gradient(135deg, #fffbeb, #fff); border: 1px solid #fcd34d; color: #78350f; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 10px 0 0; }
.cp-guia a { color: #1d4ed8; font-weight: 700; }
.cp-lote { margin-top: 14px; border: 1px solid #bfdbfe; background: #f8fbff; border-radius: 14px; padding: 12px 14px; text-align: left; }
.cp-lote-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cp-lote-h .btn { margin-left: auto; }
.cp-bar { height: 8px; background: #e2e8f0; border-radius: 99px; margin: 10px 0 6px; overflow: hidden; } .cp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #16a34a); transition: width .3s; }
.cp-lote-n { font-size: 13px; margin-bottom: 4px; } .cp-lote-l { font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid #e2e8f0; }

/* Fila: custo por linha + janela Publicar marcados */
.fl-custo { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #64748b; font-weight: 700; flex: 0 0 110px; }
.fl-custo input { width: 100%; padding: 7px 8px; border-radius: 9px; border: 1px solid #cbd5e1; font-size: 13.5px; font-weight: 700; color: #0f172a; }
.fl-custo.vazio input { border-color: #fca5a5; background: #fff7f7; }
.fl-est { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; } .fl-est input { width: 70px; padding: 7px 8px; border-radius: 9px; border: 1px solid #cbd5e1; }
.cp-reg-in { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid #cbd5e1; font-size: 14px; margin-bottom: 4px; }
.cp-reg-ex { font-size: 12.5px; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 7px 10px; }
@media (max-width: 720px) { .fl-custo { flex: 1 1 100%; } }

/* 🤖 piloto + ⚙️ ícone na Fila */
.fl-cfg { font-size: 18px; padding: 6px 12px; }
.fl-piloto { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.fl-piloto.on { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.cp-piloto.on { background: #f8fffa; } .cp-mini { width: 56px; padding: 3px 6px; border-radius: 7px; border: 1px solid #cbd5e1; font-weight: 700; }
.cp-reg-sel { padding: 7px 9px; border-radius: 9px; border: 1px solid #cbd5e1; max-width: 240px; }
/* 📊 progresso da Fila */
.fl-prog { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
.fl-prog.rodando { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.08), var(--shadow); }
.fl-prog-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .fl-prog-h b { font-size: 15px; } .fl-prog-pct { margin-left: auto; font-weight: 900; font-size: 18px; color: #1e3a8a; }
.fl-prog-bar { height: 12px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.fl-prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #16a34a); border-radius: 99px; transition: width .6s; }
.fl-prog.rodando .fl-prog-bar i { background-image: linear-gradient(90deg, #2563eb, #16a34a), repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 10px, transparent 10px 20px); background-blend-mode: overlay; animation: flAnda 1s linear infinite; background-size: 100% 100%, 28px 28px; }
@keyframes flAnda { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 28px 0; } }
.fl-prog-n { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #475569; } .fl-prog-n .err { color: #b91c1c; } .fl-prog-n .agora { color: #1d4ed8; font-weight: 700; }
.cp-reg-ritmo { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; margin: 8px 0 2px; color: #334155; }

.fl-cat { flex: 0 0 96px; } .fl-cat select { width: 100%; padding: 7px 6px; border-radius: 9px; border: 1px solid #cbd5e1; font-weight: 700; font-size: 13px; background: #fff; }
.fl-cat.vazio select { border-color: #e2e8f0; color: #64748b; }
.cp-inline { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; cursor: pointer; } .cp-inline input { width: 15px; height: 15px; }
.cp-todas { margin-bottom: 8px; } .dup-contas.off { opacity: .45; pointer-events: none; }

.cp-salvar-fila { border-color: #93c5fd; color: #1d4ed8; font-weight: 700; }
.fl-editado { display: block; text-align: center; font-size: 11px; font-weight: 700; color: #1d4ed8; margin-top: 4px; }

/* 📸 Estúdio de fotos */
.es-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #93c5fd; border-radius: 18px; background: #f8fbff; cursor: pointer; margin-bottom: 14px; text-align: center; transition: background .15s, border-color .15s; }
.es-drop:hover, .es-drop.over { background: #eff6ff; border-color: #2563eb; } .es-drop-ico { font-size: 28px; } .es-drop b { font-size: 15px; } .es-drop small { color: #64748b; }
.es-barra { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .es-sel-n { margin-left: auto; font-size: 13px; color: #475569; }
.es-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .es-acoes small { opacity: .75; font-weight: 500; } .es-acoes .es-del { color: #dc2626; }
.es-prog { background: #fff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.es-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.es-foto { position: relative; display: block; background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.es-foto.on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.es-foto input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; z-index: 2; }
.es-foto img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: #fff; }
.es-foto .es-tag { position: absolute; top: 6px; right: 6px; background: rgba(15,23,42,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.es-foto small { display: block; padding: 5px 8px; font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid #f1f5f9; }
.es-ia { background: #fff; border: 1px solid #c4b5fd; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.es-ia-h { margin-bottom: 8px; } .es-ia-tipos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.es-chip { border: 1px solid #e2e8f0; border-radius: 99px; padding: 5px 10px; background: #fff; } .es-chip.on { border-color: #8b5cf6; background: #f5f3ff; }
.es-pick { width: min(900px, 100%); } .es-grade-p { max-height: 60vh; overflow: auto; padding: 4px; }
.es-grade .empty-card { grid-column: 1 / -1; }

.pd-ck-junto { display: flex; gap: 6px; align-items: center; padding: 8px 12px; font-size: 12.5px; color: #334155; border-top: 1px solid #e2e8f0; cursor: pointer; }

.pd-datas { order: 99; margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff; border: 1.5px solid #c9a24a; border-radius: 10px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: #1e3a6e; }
.pd-datas input[type=date] { border: 1px solid #cbd5e1; border-radius: 6px; padding: 3px 6px; font: inherit; font-weight: 500; color: #0f172a; }
.pd-datas button { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 6px; padding: 2px 7px; cursor: pointer; font-weight: 700; }

.pd-t2-sub { display: block; font-style: normal; font-weight: 600; font-size: 11px; color: #6b21a8; margin-top: 2px; }
.pd-t2-sub.az { color: #1e40af; }
.es-ed { max-width: 980px; width: 96vw; }
.es-ed-tela { display: flex; justify-content: center; background: repeating-conic-gradient(#eef2f7 0% 25%, #fff 0% 50%) 50% / 20px 20px; border-radius: 10px; padding: 2px; }
.es-ed-tela canvas { max-width: 100%; touch-action: none; cursor: crosshair; border-radius: 8px; }
.es-ed-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.es-ed-ctl label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.es-ed-msg { font-size: 12.5px; color: #334155; flex: 1 1 220px; }
/* 👥 Usuários */
.us-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.us-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid #e2c77a; border-radius: 12px; padding: 12px 14px; }
.us-card.off { opacity: .6; }
.us-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.us-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.us-info small { color: #64748b; overflow: hidden; text-overflow: ellipsis; }
.us-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.us-tag { font-size: 11.5px; font-weight: 700; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 3px 9px; }
.us-tag.adm { background: #fef3c7; color: #92400e; } .us-tag.off { background: #fee2e2; color: #b91c1c; }
.us-box { max-width: 860px; width: 96vw; max-height: 92vh; overflow: auto; }
.us-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.us-campos label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: #334155; }
.us-campos input { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 500; }
.us-opts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.us-acessos-h { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font-size: 13.5px; }
.us-acessos-h a { font-size: 12.5px; }
.us-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.us-grupo { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; background: #f8fafc; }
.us-grupo-h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.us-grupo-h small { margin-left: auto; color: #64748b; }
.us-pag { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 0 3px 22px; cursor: pointer; }
.us-msg { margin-top: 10px; font-size: 13px; min-height: 18px; }
/* 👋 boas-vindas */
.us-saudacao { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; border: 2px solid #e2c77a; border-radius: 16px; padding: 14px 18px; box-shadow: 0 14px 40px rgba(15, 23, 42, .35); animation: usSdEntra .5s ease-out; max-width: calc(100vw - 32px); }
.us-saudacao b { display: block; font-size: 18px; }
.us-saudacao small { display: block; opacity: .9; font-size: 13px; margin-top: 2px; }
.us-sd-ic { font-size: 30px; }
.us-saudacao button { background: transparent; border: 0; color: #fff; font-size: 16px; cursor: pointer; opacity: .8; margin-left: 6px; }
.us-saudacao.sai { opacity: 0; transform: translateX(-50%) translateY(-12px); transition: all .7s; }
@keyframes usSdEntra { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.us-tipo { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 13px; }
.us-vend { margin-top: 10px; } .us-vend label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; max-width: 320px; } .us-vend select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; }
.us-tag.vend { background: #dcfce7; color: #166534; }

/* ===== Resumo: comparação com o período anterior ===== */
.h-delta { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; }
.h-delta small { font-weight: 600; opacity: .75; }
.h-delta.up { color: var(--good, #15803d); } .h-delta.down { color: var(--bad, #b91c1c); } .h-delta.neu { color: var(--text-secondary, #64748b); }
/* Resumo: Próximas ações + Para onde vai o faturamento */
.h-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; }
.h-duo .panel { margin: 0; }
.ha-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ha-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; cursor: pointer; transition: background .15s; }
.ha-lista li:hover { background: #eef4ff; }
.ha-t { display: grid; gap: 2px; min-width: 0; } .ha-t b { font-size: 13px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ha-t small { font-size: 11.5px; color: #64748b; }
.ha-n { flex: none; font-size: 10.5px; font-weight: 900; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.ha-crit { background: #fee2e2; color: #b91c1c; } .ha-alto { background: #ffedd5; color: #c2410c; } .ha-medio { background: #e0e7ff; color: #4338ca; }
.hc-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #f1f5f9; margin: 4px 0 12px; }
.hc-bar i { display: block; height: 100%; }
.hc-tar { background: #f59e0b; } .hc-fre { background: #94a3b8; } .hc-cus { background: #8b5cf6; } .hc-luc { background: #10b981; }
.hc-lista { display: grid; gap: 6px; }
.hc-l { display: grid; grid-template-columns: 1fr auto 56px; gap: 10px; align-items: center; font-size: 13px; }
.hc-l span { display: inline-flex; align-items: center; gap: 7px; color: #334155; font-weight: 700; } .hc-l small { text-align: right; color: #64748b; font-weight: 700; }
.hc-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hc-nota { font-size: 11.5px; color: #64748b; margin: 10px 0 0; line-height: 1.45; }

/* ===== Financeiro → Recebimentos ===== */
.rb-bar-lib { fill: #10b981; } .rb-bar-prev { fill: #93c5fd; }
.mt-leg .sw.rb-sw-lib { background: #10b981; } .mt-leg .sw.rb-sw-prev { background: #93c5fd; }
.rb-busca { padding: 8px 11px; border-radius: 9px; border: 1px solid #cbd5e1; font: inherit; font-size: 13px; min-width: 240px; }
.rb-filtros { margin: 10px 0; flex-wrap: wrap; }
.rb-filtros .seg small { opacity: .7; font-weight: 700; }
.rb-tab td { vertical-align: top; }
.rb-s { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.rb-s-lib { background: #dcfce7; color: #15803d; } .rb-s-prev { background: #dbeafe; color: #1d4ed8; } .rb-s-ret { background: #fef3c7; color: #b45309; } .rb-s-est { background: #fee2e2; color: #b91c1c; } .rb-s-out { background: #f1f5f9; color: #475569; }
.rb-pag { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 13px; color: #475569; }

/* ===== Produtos → Estoque e giro ===== */
.eq-riscos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.eq-risco { text-align: left; display: grid; gap: 3px; padding: 11px 13px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; font: inherit; }
.eq-risco b { font-size: 24px; line-height: 1.1; } .eq-risco small { font-size: 11.5px; opacity: .85; }
.eq-risco-t { font-size: 12px; font-weight: 800; }
.eq-risco.on { border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30, 58, 138, .15); }
.eq-r-rup { background: #fee2e2; color: #991b1b; } .eq-r-bx { background: #ffedd5; color: #9a3412; } .eq-r-exc { background: #fef9c3; color: #854d0e; }
.eq-r-par { background: #e0f2fe; color: #075985; } .eq-r-rec { background: #dcfce7; color: #166534; } .eq-r-ok { background: #f0fdf4; color: #15803d; } .eq-r-sem { background: #f1f5f9; color: #475569; }
.eq-tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.eq-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eq-warn { color: #b45309; font-weight: 700; }
.eq-matriz td, .eq-matriz th { white-space: nowrap; }
@media (max-width: 640px) { .rb-busca { min-width: 0; width: 100%; } .hc-l { grid-template-columns: 1fr auto 48px; } }
.eq-tab td.num, .rb-tab td.num { white-space: nowrap; }

/* ===== Posição na busca / Garimpador / Análise de catálogo ===== */
.ps-an { display: flex; gap: 9px; align-items: center; min-width: 220px; }
.ps-an img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; flex: none; }
.ps-an div { display: grid; gap: 2px; } .ps-an b { font-size: 12.5px; }
.ps-termo { display: inline-block; background: #eef4ff; color: #1e3a8a; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.ps-poscel { white-space: nowrap; } .ps-poscel small { display: block; font-size: 11px; color: #64748b; }
.ps-pos { display: inline-block; min-width: 38px; text-align: center; font-size: 15px; font-weight: 900; padding: 3px 8px; border-radius: 9px; }
.ps-pos.top { background: #dcfce7; color: #15803d; } .ps-pos.ok { background: #dbeafe; color: #1d4ed8; } .ps-pos.baixo { background: #ffedd5; color: #c2410c; } .ps-pos.fora { background: #fee2e2; color: #b91c1c; font-size: 12px; }
.ps-pat { color: #a16207 !important; font-weight: 700; }
.ps-spark { width: 110px; height: 30px; } .ps-spark polyline { fill: none; stroke: #2563eb; stroke-width: 2; } .ps-spark circle { fill: #2563eb; }
.ps-novo .ps-lista { display: grid; gap: 6px; margin-top: 10px; max-height: 360px; overflow: auto; }
.ps-novo .ps-lista button { display: flex; gap: 9px; align-items: center; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 7px 9px; cursor: pointer; font: inherit; }
.ps-novo .ps-lista button:hover { background: #eef4ff; }
.ps-novo .ps-lista img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: #fff; }
.ps-novo .ps-lista span { display: grid; gap: 2px; } .ps-novo .ps-lista small { color: #64748b; font-size: 11.5px; }
.ps-l { display: grid; gap: 5px; font-weight: 700; font-size: 13px; margin: 8px 0 10px; max-width: 520px; }
.gm-termos { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1; font: inherit; font-size: 14px; resize: vertical; }
.gm-acoes { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.gm-l { cursor: pointer; } .gm-l:hover { background: #f8fafc; }
.gm-det > td { background: #f8fafc; padding: 10px !important; }
.gm-foto { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; margin-right: 7px; border-radius: 6px; background: #fff; }
.gm-nosso { background: #ecfdf5; }
.ca-cards { margin-bottom: 14px; }
.ca-st { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.ca-win { background: #dcfce7; color: #15803d; } .ca-share { background: #dbeafe; color: #1d4ed8; } .ca-lose { background: #fee2e2; color: #b91c1c; } .ca-off { background: #f1f5f9; color: #475569; }
.ca-tab td.num, .gm-tab td.num, .ps-tab td { white-space: nowrap; }
.ps-tab td:first-child { white-space: normal; }

/* ===== Catálogo: abas, busca e oportunidades ===== */
.ca-abas { margin-bottom: 14px; }
.cb-form { display: flex; gap: 10px; margin-bottom: 12px; } .cb-form .rb-busca { flex: 1; font-size: 15px; padding: 11px 13px; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.cb-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: #fff; }
.cb-card.meu { border-color: #86efac; background: #f0fdf4; }
.cb-top { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; }
.cb-top img, .cb-semfoto { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f8fafc; display: grid; place-items: center; font-size: 26px; }
.cb-top b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; }
.cb-preco { display: block; font-size: 18px; font-weight: 900; margin-top: 3px; }
.cb-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; } .cb-tags small { color: #64748b; font-size: 11px; }
.cb-fg { font-style: normal; background: #3b82f6; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.cb-full { font-style: normal; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.cb-copy { font-size: 16px; }
.cb-meu { font-size: 12px; font-weight: 700; color: #15803d; }
.cb-acoes { display: flex; gap: 8px; } .cb-acoes > * { flex: 1; text-align: center; }
.cb-id { font-size: 11px; }
.op-tab td { vertical-align: top; }
.op-cand { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
.op-cand:last-child { border-bottom: 0; }
.op-cand img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #f8fafc; }
.op-cand a { font-size: 12.5px; font-weight: 700; } .op-cand small { display: block; font-size: 11.5px; color: #64748b; }
.ca-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1000; display: grid; place-items: center; padding: 16px; }
.ca-modal-c { background: #fff; border-radius: 16px; padding: 16px 18px; width: min(720px, 100%); max-height: 86vh; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.ca-esc { max-height: 52vh; }
@media (max-width: 640px) { .cb-form { flex-direction: column; } }
.mt-abas.ca-abas { grid-template-columns: repeat(3, 1fr); } @media (max-width: 640px) { .mt-abas.ca-abas { grid-template-columns: 1fr; } }
/* Posição na busca: lista de todos os anúncios */
.ps-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; } .ps-ctl .rb-busca { flex: 1; min-width: 240px; }
.ps-termo-in { width: 210px; padding: 6px 9px; border-radius: 999px; border: 1px solid #bfdbfe; background: #eef4ff; color: #1e3a8a; font: inherit; font-size: 12.5px; font-weight: 700; }
.ps-termo-in:focus { outline: 2px solid #93c5fd; background: #fff; }
.ps-tab tr.ps-sel td { background: #eff6ff; }
.ps-ajuda { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; margin: 8px 0 10px; font-size: 13px; }
.ps-ajuda summary { cursor: pointer; font-weight: 800; color: #1e3a8a; }
.ps-ajuda ul { margin: 8px 0 2px; padding-left: 18px; display: grid; gap: 4px; color: #334155; }
.pp-num { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; } .pp-num span { background: #f1f5f9; padding: 6px 10px; border-radius: 8px; }
.pp-log { max-height: 240px; overflow: auto; display: grid; gap: 6px; } .pp-log pre { margin: 2px 0 0; white-space: pre-wrap; font: inherit; font-size: 12.5px; }

/* ===== ⛏️ Garimpador (raio-X da busca) ===== */
.gm-busca { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #c7d2fe; border-radius: 18px; padding: 8px 8px 8px 18px; box-shadow: 0 8px 24px rgba(37, 99, 235, .10); margin-bottom: 10px; }
.gm-busca > span { font-size: 20px; opacity: .6; }
.gm-busca input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 19px; font-weight: 700; color: #4338ca; background: transparent; min-width: 0; }
.gm-busca .btn { padding: 12px 24px; font-size: 16px; border-radius: 12px; }
.gm-varios { margin: 0 0 12px; font-size: 13px; } .gm-varios summary { cursor: pointer; color: #475569; font-weight: 700; } .gm-varios textarea { margin: 8px 0; }
.gm-vazio { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; } .gm-vazio div { font-size: 46px; } .gm-vazio b { display: block; margin: 8px 0 4px; font-size: 16px; }
.gm-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: linear-gradient(135deg, #eef2ff, #f8fafc); border: 1px solid #e0e7ff; border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.gm-nota { position: relative; width: 92px; height: 92px; display: grid; place-items: center; text-align: center; }
.gm-nota svg { position: absolute; inset: 0; transform: rotate(-90deg); } .gm-nota circle { fill: none; stroke-width: 3.2; } .gm-nota .t { stroke: #e2e8f0; } .gm-nota .v { stroke: var(--c); stroke-linecap: round; }
.gm-nota b { font-size: 28px; font-weight: 900; color: var(--c); line-height: 1; margin-top: 8px; } .gm-nota small { font-size: 9.5px; font-weight: 800; color: #64748b; text-transform: uppercase; margin-top: -18px; }
.gm-hero-t h3 { margin: 0 0 4px; font-size: 20px; color: #1e1b4b; } .gm-hero-t p { margin: 2px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.gm-cat { background: #dbeafe; color: #1d4ed8; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; }
.gm-voce { font-weight: 600; } .gm-hero-a { display: grid; gap: 6px; }
.gm-ks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.gm-k { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px 30px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); transition: transform .15s, box-shadow .15s; }
.gm-k:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.gm-k-h { display: flex; justify-content: space-between; gap: 8px; } .gm-k-h b { display: block; font-size: 14px; color: #0f172a; } .gm-k-h small { color: #94a3b8; font-size: 12px; }
.gm-k-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--c) 14%, #fff); flex: none; }
.gm-k-v { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .gm-k-v span { font-size: 26px; font-weight: 900; color: #0f172a; line-height: 1; }
.gm-pill { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.gm-k-bar { height: 5px; background: #f1f5f9; border-radius: 99px; margin-top: 10px; overflow: hidden; } .gm-k-bar i { display: block; height: 100%; border-radius: 99px; }
.gm-selo { position: absolute; right: 10px; bottom: 8px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.gm-box .gm-selo { position: static; }
.gm-selo.g { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; } .gm-selo.p { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.gm-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.gm-box-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .gm-box-h b { font-size: 15px; color: #1e293b; }
.gm-sub { font-size: 12.5px; margin: 2px 0 10px; }
.gm-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.gm-preco-n { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.gm-preco-n div { background: #f8fafc; border-radius: 12px; padding: 10px 12px; } .gm-preco-n small { display: block; color: #64748b; font-size: 11.5px; font-weight: 700; } .gm-preco-n b { font-size: 18px; color: #0f172a; }
.gm-preco-faixa { grid-column: span 2; background: #eef2ff !important; } .gm-preco-faixa b { font-size: 15px !important; color: #4338ca !important; }
.gm-hist { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 6px; }
.gm-hist div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.gm-hist i { width: 100%; background: linear-gradient(180deg, #818cf8, #4f46e5); border-radius: 6px 6px 2px 2px; } .gm-hist small { font-size: 10.5px; color: #94a3b8; }
.gm-pals { display: flex; flex-wrap: wrap; gap: 7px; }
.gm-pals span { position: relative; overflow: hidden; font-weight: 800; font-size: 13.5px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); background: color-mix(in srgb, var(--c) 7%, #fff); padding: 6px 11px; border-radius: 10px; text-transform: capitalize; }
.gm-pals span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--c); opacity: .5; }
.gm-pals b { font-size: 11.5px; background: #fff; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.gm-trends { display: flex; flex-wrap: wrap; gap: 7px; }
.gm-trends button { border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.gm-trends button:hover { border-color: #818cf8; background: #eef2ff; } .gm-trends i { font-style: normal; font-size: 11px; color: #94a3b8; }
.gm-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 10px; }
.gm-top { position: relative; display: grid; gap: 5px; text-decoration: none; color: inherit; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; background: #fff; transition: transform .15s, box-shadow .15s; }
.gm-top:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .1); }
.gm-top.seu { border-color: #86efac; background: #f0fdf4; }
.gm-top img, .gm-top-sf { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc; border-radius: 10px; display: grid; place-items: center; font-size: 30px; }
.gm-top b { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-top-p { font-size: 17px; font-weight: 900; } .gm-top-p s { font-size: 11px; color: #94a3b8; font-weight: 600; }
.gm-top-tags { display: flex; flex-wrap: wrap; gap: 4px; } .gm-top-tags i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: #f1f5f9; color: #475569; }
.gm-top-tags i.f { background: #dcfce7; color: #15803d; } .gm-top-tags i.g { background: #dbeafe; color: #1d4ed8; } .gm-top-tags i.o { background: #ede9fe; color: #6d28d9; }
.gm-top small { font-size: 11px; color: #64748b; }
.gm-top-pos { position: absolute; top: 8px; left: 8px; z-index: 1; background: #1e1b4b; color: #fff; font-weight: 900; font-size: 13px; padding: 3px 9px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.gm-top-seu { position: absolute; top: 8px; right: 8px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 9px; }
.gm-lojas { display: grid; gap: 8px; margin-top: 10px; }
.gm-lojas div { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8fafc; }
.gm-lojas b { font-size: 13px; } .gm-lojas small { grid-column: 2; color: #64748b; font-size: 11.5px; }
.gm-loja-i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: #e0e7ff; display: grid; place-items: center; }
.gm-tab tr.on td { background: #eef2ff; }
@media (max-width: 640px) { .gm-hero { grid-template-columns: 1fr; text-align: center; } .gm-nota { margin: 0 auto; } .gm-hero-t p { justify-content: center; } .gm-busca input { font-size: 16px; } .gm-preco-faixa { grid-column: auto; } }
.gm-nota { display: flex; flex-direction: column; justify-content: center; align-items: center; } .gm-nota b { margin-top: 0; } .gm-nota small { margin-top: 2px; font-size: 8.5px; letter-spacing: .02em; }

/* ===== 🔢 Gerador de EAN ===== */
.ean-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ean-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ean-form .fl { display: grid; gap: 4px; } .ean-form .fl span { font-size: 12px; font-weight: 800; color: #475569; }
.ean-form select, .ean-form input { padding: 9px 11px; border-radius: 9px; border: 1px solid #cbd5e1; font: inherit; } .ean-form input { width: 110px; }
.ean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ean-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; background: #fff; display: grid; gap: 8px; }
.ean-card.ok { border-color: #86efac; background: #f0fdf4; }
.ean-svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 6px; }
.ean-tab .ean-svg { width: 130px; }
.ean-card-c { display: flex; justify-content: space-between; align-items: center; }
.ean-cod { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .06em; }
.ean-assoc-f { display: flex; gap: 6px; } .ean-assoc-f input { flex: 1; min-width: 0; padding: 6px 9px; border-radius: 8px; border: 1px solid #cbd5e1; font: inherit; font-size: 13px; }
.ean-dl { display: flex; gap: 12px; } .ean-assoc { font-size: 13px; }

/* ===== 😴 Índice de inatividade ===== */
.in-kpis { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.in-k { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); display: grid; gap: 2px; align-content: start; }
.in-k b { font-size: 15px; color: #0f172a; } .in-k small { color: #94a3b8; font-size: 12px; }
.in-k-big { font-size: 34px; font-weight: 900; color: #0f172a; line-height: 1.1; } .in-k-big span { color: #94a3b8; font-size: 22px; }
.in-k-red, .in-k-yel { cursor: pointer; transition: transform .15s; } .in-k-red:hover, .in-k-yel:hover { transform: translateY(-2px); }
.in-k-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; margin-bottom: 6px; }
.in-k-red .in-k-ico { background: #f43f5e; } .in-k-yel .in-k-ico { background: #facc15; color: #713f12; }
.in-amarelo { color: #ca8a04 !important; }
.in-mm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.in-mm span { font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 9px; } .in-mm .r { background: #fff1f2; color: #e11d48; border: 1px dashed #fecdd3; } .in-mm .g { background: #f0fdf4; color: #16a34a; border: 1px dashed #bbf7d0; }
.in-taxa { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #334155; font-weight: 700; } .in-taxa b { color: #6d28d9; }
.in-bar { height: 8px; background: #ede9fe; border-radius: 99px; overflow: hidden; margin-top: 4px; } .in-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #4f46e5); border-radius: 99px; }
.in-abas { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 10px; flex-wrap: wrap; }
.in-abas button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 14px; font: inherit; font-weight: 700; color: #64748b; cursor: pointer; }
.in-abas button.on { color: #1e3a8a; border-bottom-color: #2563eb; } .in-abas small { background: #f1f5f9; border-radius: 99px; padding: 1px 7px; font-size: 11.5px; }
.in-ord { font-size: 13px; color: #475569; font-weight: 700; } .in-ord select { padding: 7px 9px; border-radius: 8px; border: 1px solid #cbd5e1; font: inherit; }
.in-lista { display: grid; gap: 6px; margin-top: 8px; }
.in-l { display: grid; grid-template-columns: 5px 44px minmax(240px, 1fr) 150px repeat(6, 82px); gap: 10px; align-items: center; padding: 9px 10px 9px 0; border: 1px solid #eef2f7; border-radius: 12px; background: #fff; }
.in-l:hover { background: #f8fafc; }
.in-barra { align-self: stretch; border-radius: 12px 0 0 12px; }
.in-l img, .in-sf { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #f8fafc; display: grid; place-items: center; }
.in-t { display: grid; gap: 2px; min-width: 0; } .in-t a { color: inherit; text-decoration: none; } .in-t b { font-size: 13px; } .in-t small { color: #64748b; font-size: 11.5px; }
.in-acao { font-size: 12px; } .in-acao a { color: #2563eb; font-weight: 700; text-decoration: none; }
.in-tag { font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 9px; text-align: center; }
.in-n { display: grid; text-align: center; } .in-n b { font-size: 14px; } .in-n small { font-size: 10.5px; color: #94a3b8; }
.in-g-crit .in-barra { background: #e11d48; } .in-g-crit .in-tag { background: #ffe4e6; color: #be123c; }
.in-g-prej .in-barra { background: #f97316; } .in-g-prej .in-tag { background: #ffedd5; color: #c2410c; }
.in-g-rep .in-barra { background: #facc15; } .in-g-rep .in-tag { background: #fef9c3; color: #a16207; }
.in-g-ale .in-barra { background: #eab308; } .in-g-ale .in-tag { background: #fef3c7; color: #a16207; }
.in-g-bai .in-barra { background: #8b5cf6; } .in-g-bai .in-tag { background: #ede9fe; color: #6d28d9; }
.in-g-ok .in-barra { background: #22c55e; } .in-g-ok .in-tag { background: #dcfce7; color: #15803d; }
@media (max-width: 1100px) { .in-kpis { grid-template-columns: 1fr 1fr; } .in-l { grid-template-columns: 5px 44px 1fr; } .in-l .in-tag, .in-l .in-n { grid-column: 3; text-align: left; } .in-n { display: flex; gap: 6px; align-items: baseline; } }
.in-g-rec .in-barra { background: #38bdf8; } .in-g-rec .in-tag { background: #e0f2fe; color: #0369a1; }
.mon-sec.iclick { border-color: #fcd34d; background: #fffdf5; }
.btn.mon-on { background: #dcfce7; color: #15803d; border: 1.5px solid #86efac; font-weight: 700; }
.btn.mon-on:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
/* anúncios pausados ou produto sem estoque: só o ícone do marketplace fica cinza */
.mk-img.pausado { filter: grayscale(1); opacity: .5; border-color: #cbd5e1; }
.mk-img.pausado + .mk-count { background: #94a3b8; }
/* 📏 estratégia do anúncio: nome bem visível */
.an-metrics > .an-estr-m.on { background: #eef2ff; border-color: #a5b4fc; }
.an-metrics > .an-estr-m.on strong { color: #3730a3; }
.an-metrics > .an-estr-m { min-width: 0; }
.an-metrics > .an-estr-m strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-metrics > .an-estr-m em { font-style: normal; font-size: 11px; color: #6366f1; }
/* 🏷️ catálogo: modo do Auto ganhar (mudar preço × desconto) */
.an-modo { width: 100%; margin-top: 4px; padding: 5px 8px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: #fff; }
.an-modo.desc { border-color: #f59e0b; background: #fffbeb; color: #92400e; }

/* 🕵️ Concorrentes */
.cc-add { display: flex; gap: 10px; margin-bottom: 14px; }
.cc-add input { flex: 1; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 14px; }
.cc-vends { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cc-vend { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.cc-vend.on { border-color: #3b82f6; background: #eff6ff; }
.cc-vend b { display: block; font-size: 13.5px; color: #1e3a8a; } .cc-vend small { color: #64748b; font-size: 11.5px; }
.cc-av { width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.cc-barra { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; }
.cc-resumo a { margin-left: 8px; font-size: 12.5px; } .cc-acts { display: flex; gap: 6px; }
.cc-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cc-filtros input[type=search] { flex: 1; min-width: 200px; padding: 8px 10px; border: 1.5px solid #cbd5e1; border-radius: 8px; }
.cc-filtros select { padding: 8px; border: 1.5px solid #cbd5e1; border-radius: 8px; }
.cc-sel { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cc-tab { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.cc-row { display: grid; grid-template-columns: 34px 64px 1fr 110px 90px 170px; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; }
.cc-row.sel { background: #eff6ff; } .cc-head { background: #f8fafc; font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; }
.cc-row img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid #f1f5f9; }
.cc-tit a { color: #1e3a8a; font-weight: 600; text-decoration: none; } .cc-tit small { display: block; color: #94a3b8; font-size: 11.5px; margin-top: 2px; }
.cc-preco { font-weight: 800; color: #b91c1c; } .cc-preco small { display: block; font-weight: 500; font-size: 11px; }
.cc-desc { color: #15803d; } .cc-sub { color: #b45309; } .cc-novo { color: #7c3aed; }
.cc-vend-n { font-weight: 700; color: #334155; }
.cc-temos { color: #15803d; font-weight: 700; font-size: 12.5px; } .cc-temos small { display: block; color: #64748b; font-weight: 500; }
.cc-nao { color: #94a3b8; font-size: 12.5px; }
.cc-pags { display: flex; gap: 6px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.cc-ocupado { background: #fffbeb; border-color: #fcd34d; }
@media (max-width: 760px) { .cc-row { grid-template-columns: 28px 48px 1fr 80px; } .cc-row > :nth-child(5), .cc-row > :nth-child(6) { display: none; } .cc-add { flex-direction: column; } }
/* 🕵️ cartão do concorrente (medalha + termômetro) */
.cc-vends { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cc-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: transform .12s, box-shadow .12s; }
.cc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.10); }
.cc-card.on { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.cc-card-top { display: flex; align-items: center; gap: 10px; }
.cc-card .cc-av { width: 46px; height: 46px; font-size: 15px; flex-shrink: 0; overflow: hidden; }
.cc-card .cc-av img { width: 100%; height: 100%; object-fit: cover; }
.cc-card-nome b { display: block; font-size: 15px; color: #0f172a; word-break: break-word; } .cc-of { color: #2563eb; font-size: 11.5px; font-weight: 700; }
.cc-med { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 8px; width: fit-content; }
.cc-med.plat { background: #ede9fe; color: #5b21b6; } .cc-med.gold { background: #fef3c7; color: #92400e; } .cc-med.silver { background: #f1f5f9; color: #475569; } .cc-med.sem { background: #f8fafc; color: #94a3b8; font-weight: 600; }
.cc-termo { display: flex; gap: 3px; } .cc-termo i { flex: 1; height: 7px; border-radius: 4px; }
.cc-card-info { font-size: 12.5px; color: #334155; line-height: 1.6; }
.cc-cat { color: #15803d; font-weight: 700; } .cc-trad { color: #1d4ed8; font-weight: 700; }
.cc-lido { color: #94a3b8; font-size: 11px; }
.cc-tipo { display: inline-block; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-size: 11px; margin-right: 4px; }
.cc-tipo.cat { background: #dcfce7; color: #15803d; } .cc-tipo.trad { background: #dbeafe; color: #1d4ed8; }
/* 🏆 Mais vendidos do ML */
.mv-sec { margin: 18px 0 10px; font-size: 16px; color: #0f172a; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mv-grid.mini { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.mv-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; text-align: center; transition: transform .12s, box-shadow .12s, border-color .12s; }
.mv-cat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.10); border-color: #93c5fd; }
.mv-cat-img { width: 96px; height: 96px; display: grid; place-items: center; }
.mv-grid.mini .mv-cat-img { width: 72px; height: 72px; }
.mv-cat-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mv-cat-ic { font-size: 40px; opacity: .5; }
.mv-cat b { font-size: 13.5px; color: #1e293b; line-height: 1.25; } .mv-cat small { color: #94a3b8; font-size: 11px; }
.mv-cat.grande { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); }
.mv-trilha { margin: 4px 0 6px; font-size: 13.5px; color: #475569; } .mv-trilha a { color: #2563eb; text-decoration: none; }
.mv-rank { display: grid; gap: 10px; }
.mv-item { display: grid; grid-template-columns: 54px 130px 1fr; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.mv-pos { font-size: 22px; font-weight: 900; color: #94a3b8; text-align: center; }
.mv-pos.p1 { color: #d4a017; } .mv-pos.p2 { color: #94a3b8; } .mv-pos.p3 { color: #b45309; }
.mv-foto { width: 130px; height: 130px; display: grid; place-items: center; background: #fff; border-radius: 10px; border: 1px solid #f1f5f9; font-size: 40px; }
.mv-foto img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mv-selo { background: #b7791f; color: #fff; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.mv-nome { display: block; margin: 6px 0; font-size: 16px; font-weight: 600; color: #1e293b; text-decoration: none; line-height: 1.3; }
.mv-nome:hover { color: #2563eb; }
.mv-preco b { font-size: 20px; color: #0f172a; } .mv-preco s { color: #94a3b8; font-size: 13px; }
.mv-full { color: #15803d; font-weight: 800; font-size: 12px; }
.mv-acts { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .mv-item { grid-template-columns: 40px 90px 1fr; } .mv-foto { width: 90px; height: 90px; } .mv-nome { font-size: 14px; } }
/* 🕵️ abas: 💲 Alterações de preços · 📊 Vendas estimadas */
.cc-abas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 12px; border-bottom: 2px solid #e2e8f0; }
.cc-aba { padding: 9px 14px; border: none; background: none; font-weight: 700; font-size: 14px; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.cc-aba.on { color: #1d4ed8; border-bottom-color: #3b82f6; }
.cc-abas-dir { margin-left: auto; padding-bottom: 6px; }
.cc-per { display: flex; gap: 4px; }
.cc-row.cc-pr { grid-template-columns: 62px 64px 1fr 130px 120px 200px; }
.cc-row.cc-pr.alerta { background: #fff7ed; box-shadow: inset 4px 0 0 #f97316; }
.cc-dia { font-weight: 800; color: #475569; font-size: 13px; }
.cc-pct { font-weight: 800; font-size: 13.5px; } .cc-pct.desc { color: #15803d; } .cc-pct.sub { color: #b45309; }
.cc-al { color: #c2410c; } .cc-temos.al { color: #c2410c; }
.cc-vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.cc-vcard { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 14px; }
.cc-vcard b { font-size: 15px; color: #0f172a; } .cc-vcard small { color: #64748b; font-size: 12px; }
.cc-vnum { font-size: 26px; font-weight: 900; color: #1d4ed8; margin-top: 6px; } .cc-vnum small { font-size: 13px; color: #64748b; font-weight: 600; }
.cc-vfat { font-size: 15px; font-weight: 800; color: #15803d; margin-bottom: 4px; }
@media (max-width: 760px) { .cc-row.cc-pr { grid-template-columns: 50px 48px 1fr 90px; } .cc-abas-dir { margin-left: 0; } }
/* ✕ remover concorrente (canto do cartão) */
.cc-card { position: relative; }
.cc-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #94a3b8; font-size: 13px; font-weight: 700; }
.cc-x:hover { background: #fee2e2; color: #b91c1c; }

/* 🎛️ Editor em lote do Estúdio */
.el-linha { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.el-linha > b { min-width: 120px; font-size: 13px; }
.el-linha .es-chip { border: 1px solid #d6e0ec; background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.el-linha .es-chip.on { border-color: #2f80ed; background: #eef5ff; font-weight: 700; }
.el-linha .es-chip input[type=color] { width: 26px; height: 20px; border: 0; padding: 0; background: none; }
.el-cor { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #c9d3df; display: inline-block; }
.el-prev { display: flex; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.el-prev > div { display: flex; flex-direction: column; gap: 4px; }
.el-prev img { width: 220px; height: 220px; object-fit: contain; border: 1px solid #dde6f0; border-radius: 10px; background: #fff; }
