:root {
  --bg: #0b0d10;
  --surface: #151922;
  --surface-2: #1d2430;
  --surface-3: #242c38;
  --border: #2b3442;
  --border-soft: rgba(255,255,255,.07);
  --text: #f2f5f8;
  --muted: #99a3b3;
  --accent: #4f8cff;
  --accent-2: #20c7b5;
  --accent-3: #f2b84b;
  --accent-hover: #76a6ff;
  --ok: #2ecc71;
  --warn: #f1c40f;
  --err: #ff5a64;
  --success: var(--ok);
  --danger: var(--err);
  --text-muted: var(--muted);
  --radius: 8px;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(180deg, #10141b 0, var(--bg) 280px);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 24px;
  background: rgba(12, 15, 20, .88);
  border-bottom: 1px solid var(--border-soft);
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.03);
}
.topbar-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: max-content;
}
.brand:hover { color: var(--text); }
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: 16px;
  letter-spacing: .2px;
}
.brand-copy span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
.program-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, #1f74ff 0%, #20c7b5 58%, #f2b84b 100%);
  box-shadow: 0 12px 26px rgba(32, 199, 181, .20);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.5px;
}
.program-logo::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 5px;
}
.program-logo span { z-index: 1; }
.program-logo-mini {
  width: 24px;
  height: 24px;
  font-size: 9px;
  vertical-align: middle;
  margin-right: 6px;
}
.program-logo-xl {
  width: 72px;
  height: 72px;
  font-size: 24px;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  padding: 7px 10px 7px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.store-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.10);
}
.store-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--accent-3);
  font-weight: 800;
  font-size: 18px;
}
.store-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.store-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.store-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a,
.topbar nav .nav-button {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.topbar nav .nav-form { margin: 0; display: inline-flex; }
.topbar nav a:hover,
.topbar nav a.active,
.topbar nav .nav-button:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: var(--border-soft);
}

.badge {
  background: var(--err);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}

.flash {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.flash-success { background: rgba(46, 204, 113, .12); border-color: var(--ok); color: #d3f7e0; }
.flash-error   { background: rgba(231, 76, 60, .12); border-color: var(--err); color: #fbd6d2; }

h1 { margin: 0 0 16px; font-size: 22px; font-weight: 600; }
h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
h2 { margin: 26px 0 12px; font-size: 17px; font-weight: 700; color: var(--text); }
h3 { margin: 16px 0 8px; font-size: 15px; color: var(--muted); font-weight: 500; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-head h1 { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.card:hover {
  border-color: rgba(79, 140, 255, .28);
  transform: translateY(-1px);
}
.card .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 800; }
.card .value { font-size: 24px; font-weight: 750; margin-top: 4px; }
.card .value-sm { font-size: 18px; }
.card .value-code { font-size: 20px; }
.card .sub   { color: var(--muted); font-size: 12px; margin-top: 4px; }

.pedido-contadores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.pedido-contador {
  min-width: 0;
  padding: 0 9px;
  border-left: 1px solid var(--border-soft);
}
.pedido-contador:first-child {
  border-left: 0;
  padding-left: 0;
}
.pedido-contador span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.pedido-contador strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.periodo-switch {
  display: inline-flex;
  gap: 2px;
  margin-top: 8px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.periodo-switch a {
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.periodo-switch a:hover,
.periodo-switch a.active {
  background: var(--accent);
  color: #fff;
}
.pedidos-dia-nav {
  margin-bottom: 14px;
}
.pedidos-data-form {
  align-items: end;
}
.pedidos-data-form label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.pedidos-resumo {
  margin-top: 14px;
}
.pedidos-lista {
  display: grid;
  gap: 12px;
}
.pedido-aprovado {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.pedido-aprovado summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  list-style: none;
}
.pedido-aprovado summary::-webkit-details-marker {
  display: none;
}
.pedido-aprovado[open] summary {
  border-bottom: 1px solid var(--border-soft);
}
.pedido-aprovado-main,
.pedido-aprovado-meta,
.pedido-aprovado-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pedido-aprovado-main {
  min-width: 0;
}
.pedido-aprovado-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  justify-content: flex-end;
  min-width: max-content;
}
.pedido-aprovado-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 15px;
}
.pedido-aprovado-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.pedido-aprovado-sem-foto {
  min-height: 180px;
}
.pedido-aprovado-info {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.config-tabs {
  position: sticky;
  top: 80px;
  z-index: 9;
  margin: 0 0 20px;
  padding: 5px;
  background: rgba(21, 25, 34, .92);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.config-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.config-tab-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 11px;
}
.config-tab-button:hover,
.config-tab-button[aria-selected="true"] {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.config-tab-button[aria-selected="true"] {
  box-shadow: inset 0 -2px 0 var(--accent-2);
}
.config-tab-panel[hidden] {
  display: none;
}
.config-tab-panel > h2:first-child {
  margin-top: 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(21, 25, 34, .86);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { background: rgba(255,255,255,.045); color: var(--muted); font-size: 11px;
     text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--surface-2);
  color: var(--muted);
}
.tag-entrada { background: rgba(46, 204, 113, .15); color: var(--ok); }
.tag-saida   { background: rgba(231, 76, 60, .15); color: var(--err); }
.tag-ajuste  { background: rgba(241, 196, 15, .15); color: var(--warn); }
.tag-baixo   { background: rgba(231, 76, 60, .15); color: var(--err); }

form .field { margin-bottom: 14px; }
form label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
form input, form select, form textarea {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  color-scheme: dark;
}
form select option {
  background: var(--surface);
  color: var(--text);
}
form select option:checked {
  background: var(--accent);
  color: #fff;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .14);
}
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), #3a72df);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(79, 140, 255, .18);
}
.btn:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); color: white; }
.btn:disabled,
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-sec { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-sec:hover { background: var(--border); color: var(--text); }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #c0392b; }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #27ae60; }
.btn:disabled:hover,
.btn[disabled]:hover {
  background: linear-gradient(135deg, var(--accent), #3a72df);
  color: white;
}
.btn-sec:disabled:hover,
.btn-sec[disabled]:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn-danger:disabled:hover,
.btn-danger[disabled]:hover {
  background: var(--err);
  color: white;
}
.btn-ok:disabled:hover,
.btn-ok[disabled]:hover {
  background: var(--ok);
  color: white;
}
.btn-sm { padding: 4px 10px; font-size: 12px; }

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar form { display: flex; gap: 8px; align-items: center; flex: 1; }
.toolbar form.toolbar-action { flex: 0 0 auto; }
.toolbar form.toolbar-action .btn {
  max-width: 290px;
  white-space: normal;
  line-height: 1.2;
}
.toolbar input, .toolbar select { width: auto; }
.marketplace-status-check {
  align-items: center;
  gap: 8px;
}
.marketplace-check-progress {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 245px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.marketplace-check-progress[hidden] { display: none; }
.marketplace-check-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22);
  border-top-color: var(--accent-2);
  animation: marketplace-check-spin .8s linear infinite;
}
.marketplace-check-progress[data-status="concluido"] .marketplace-check-dot {
  background: var(--ok);
  border-color: var(--ok);
  animation: none;
}
.marketplace-check-progress[data-status="erro"] .marketplace-check-dot {
  background: var(--err);
  border-color: var(--err);
  animation: none;
}
.marketplace-check-pct {
  min-width: 34px;
  color: var(--text);
  font-weight: 800;
}
.marketplace-check-bar {
  width: 72px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}
.marketplace-check-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s ease;
}
.marketplace-check-meta {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marketplace-check-eta {
  color: var(--accent-3);
  font-weight: 700;
}
@keyframes marketplace-check-spin {
  to { transform: rotate(360deg); }
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form input[type="file"] {
  max-width: 360px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.marketplace-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}
.marketplace-title {
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
  margin: 2px 0 6px;
}
.marketplace-health {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 220px;
}
.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  gap: 14px;
  align-items: start;
}
.marketplace-renew-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(46, 204, 113, .34);
  border-radius: var(--radius);
  background: rgba(46, 204, 113, .08);
}
.marketplace-renew-card strong {
  display: block;
  font-size: 16px;
}
.marketplace-renew-card form {
  flex: 0 0 auto;
  margin: 0;
}
.marketplace-renew-card .btn {
  min-width: 190px;
  text-align: center;
}
.marketplace-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  padding: 14px;
}
.marketplace-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.marketplace-panel p {
  margin: 0;
  color: var(--muted);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}
.status-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.credential-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.credential-strip > div {
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.portal-actions,
.workflow-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.portal-actions form,
.workflow-actions form {
  margin: 0;
}
.portal-actions .btn,
.workflow-actions .btn {
  width: 100%;
  text-align: center;
}
.marketplace-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  min-height: 244px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,.025);
}
.channel-card-head {
  display: grid;
  gap: 5px;
  min-height: 58px;
}
.channel-card-head strong {
  overflow-wrap: anywhere;
}
.channel-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.channel-metrics div {
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.035);
}
.channel-metrics strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}
.channel-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1.15;
}
.snapshot-line {
  min-height: 58px;
  color: var(--muted);
}
.channel-card .inline-actions {
  margin-top: auto;
}
.channel-card .inline-actions form {
  margin: 0;
}
.status-channel-list {
  display: grid;
  gap: 7px;
  min-width: 280px;
}
.status-channel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.status-channel > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.status-channel .small {
  grid-column: 1 / -1;
}
.status-channel-ativo {
  border-color: rgba(46, 204, 113, .28);
}
.status-channel-pausado {
  border-color: rgba(255, 90, 100, .30);
}
.status-channel-misto {
  border-color: rgba(241, 196, 15, .34);
}
.status-divergencias-table td {
  vertical-align: top;
}
.status-divergencia-actions {
  min-width: 190px;
}
.status-divergencia-actions form {
  margin: 0 0 8px;
}
.status-divergencia-actions .btn {
  width: 100%;
  text-align: center;
}
.status-resolve-progress {
  min-width: 170px;
  margin-top: 6px;
}
.status-resolve-progress .marketplace-check-bar {
  width: 54px;
}
.marketplace-details {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,.02);
}
.marketplace-details summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--text);
}
code {
  padding: 1px 5px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}

@media (max-width: 900px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .marketplace-hero,
  .marketplace-renew-card,
  .status-row,
  .panel-head {
    flex-direction: column;
  }
  .marketplace-renew-card {
    align-items: stretch;
  }
  .marketplace-renew-card .btn {
    width: 100%;
  }
  .marketplace-health {
    justify-content: flex-start;
    min-width: 0;
  }
  .credential-strip,
  .channel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-actions,
  .workflow-actions {
    grid-template-columns: 1fr;
  }
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(79, 140, 255, .08);
}

.miniatura {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 6px; background: var(--surface-2);
}

.produto-estoque-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 118px;
}
.produto-estoque-input {
  width: 72px;
  padding: 5px 7px;
  text-align: right;
  font-weight: 700;
}
.produto-estoque-baixo {
  border-color: rgba(255, 90, 100, .72);
  color: var(--err);
  background: rgba(255, 90, 100, .08);
}
.produto-estoque-form .btn {
  box-shadow: none;
}

.loja-status-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 118px;
}

.loja-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.loja-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(255,255,255,.05);
}

.loja-status-ativo .loja-dot { background: var(--ok); }
.loja-status-pausado .loja-dot { background: var(--err); }
.loja-status-desconhecido .loja-dot { background: var(--warn); }
.loja-status-sem .loja-dot { background: #5e6878; }

.foto-grande {
  max-width: 480px; max-height: 480px;
  border-radius: var(--radius); border: 1px solid var(--border);
}

.foto-placeholder {
  width: 100%;
  min-height: 240px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.foto-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.foto-candidato {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255,255,255,.03);
}

.foto-candidato img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-soft);
}

.foto-candidato-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0 6px;
}

.foto-candidato-nome {
  min-height: 38px;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}

.produto-merge-card {
  cursor: pointer;
}

.produto-merge-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.flex-0 { flex: 0; }
.flex-1 { flex: 1; }
.maxw-260 { max-width: 260px; }
.maxw-200 { max-width: 200px; }
.maxw-520 { max-width: 520px; }
.maxw-640 { max-width: 640px; }
.maxw-780 { max-width: 780px; }
.maxw-860 { max-width: 860px; }
.maxw-920 { max-width: 920px; }
.maxw-980 { max-width: 980px; }
.w-80 { width: 80px; }
.w-40 { width: 40px; }
.w-120 { width: 120px; }
.w-130 { width: 130px; }
.w-150 { width: 150px; }
.w-160 { width: 160px; }
.w-200 { width: 200px; }
.mt-neg-8 { margin-top: -8px; }
.mt-neg-6 { margin-top: -6px; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-1rem { margin-top: 1rem; }
.mt-2rem { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-1rem { margin-bottom: 1rem; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.small { font-size: 12px; }
.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fw-400 { font-weight: 400; }
.text-inherit { color: inherit; }
.link-card { text-decoration: none; color: inherit; }
.money-ok { color: var(--ok); }
.money-err { color: var(--err); }
.border-ok { border: 1px solid var(--ok); }
.border-err { border: 1px solid var(--err); }
.legend-box {
  margin-top: 8px;
  font-size: 13px;
  background: var(--surface-2);
  padding: 8px;
  border-radius: 6px;
}
.field-compact { margin-bottom: 0; }

.rodape {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
}

.auth-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  box-shadow: var(--shadow);
}
.auth-panel-centered { margin: 0 auto; }

.auth-brand {
  margin-bottom: 20px;
}

.pendente-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .pendente-card { grid-template-columns: 1fr; } }
.pendente-card img { width: 100%; border-radius: var(--radius); }
.pendente-sem-foto {
  min-height: 190px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    var(--surface-2);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pendente-sem-foto span {
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: 1.8px;
}
.pendente-sem-foto strong {
  color: var(--text);
  font-size: 13px;
}
.pendente-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.pendente-card .acoes { display: flex; gap: 8px; margin-top: 12px; }
.pedido-dia-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(242, 184, 75, .55);
  border-radius: 6px;
  background: rgba(242, 184, 75, .16);
  color: #ffd88a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.pendentes-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 0;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pendentes-tab-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 34px;
  padding: 7px 11px;
}
.pendentes-tab-button span {
  display: inline-block;
  min-width: 22px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 11px;
  text-align: center;
}
.pendentes-tab-button:hover,
.pendentes-tab-button[aria-pressed="true"],
.pendentes-tab-button[aria-current="page"],
.pendentes-tab-button.is-active {
  background: var(--surface-3);
  border-color: var(--border-soft);
  color: var(--text);
}
.pendentes-tab-button[aria-pressed="true"],
.pendentes-tab-button[aria-current="page"],
.pendentes-tab-button.is-active {
  box-shadow: inset 0 -2px 0 var(--accent-2);
}
.pendentes-filtro {
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  gap: 12px;
  align-items: end;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.pendentes-filtro .field { margin-bottom: 0; }

.confianca-alta { color: var(--ok); }
.confianca-media { color: var(--warn); }
.confianca-baixa { color: var(--err); }
.confianca-manual { color: var(--accent-2); }

.saida-tool {
  margin-top: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.saida-tool summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  user-select: none;
}
.saida-tool summary:hover {
  background: rgba(255,255,255,.035);
}
.saida-tool form {
  padding: 12px;
  border-top: 1px solid var(--border-soft);
}
.saida-itens-lista {
  display: grid;
  gap: 8px;
}
.saida-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.saida-item-info {
  min-width: 0;
}
.saida-item-info strong,
.saida-item-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saida-item-info span {
  color: var(--muted);
  font-size: 12px;
}
.saida-item-row input[type="number"] {
  min-width: 72px;
  text-align: right;
}
.produto-resultados {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.produto-resultado {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.produto-resultado:hover {
  border-color: rgba(79, 140, 255, .36);
  background: var(--surface-3);
}
.produto-resultado strong,
.produto-resultado span {
  display: block;
}
.produto-resultado span {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.brand-studio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.brand-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.brand-preview-title {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .9px;
  font-weight: 800;
}
.store-logo-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.store-logo-preview-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--accent-3);
  font-size: 30px;
  font-weight: 900;
}

/* alertas (dashboard) */
.alerta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alerta-aviso     { background: rgba(241, 196, 15, .08); border-color: var(--warn); color: #fdf2c5; }
.alerta-critico   { background: rgba(231, 76, 60, .10); border-color: var(--err);  color: #fbd6d2; }
.alerta-sem_chaves{ background: rgba(79, 140, 255, .08); border-color: var(--accent); color: #d4e2ff; }
.alerta-icone {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.alerta-corpo { flex: 1; }
.alerta-corpo strong { display: block; margin-bottom: 4px; }
.alerta-corpo .btn { margin-top: 8px; }

/* barra de uso de quota */
.bar {
  width: 100%; height: 6px;
  background: var(--surface-2);
  border-radius: 3px; overflow: hidden;
  margin-bottom: 2px;
}
progress.bar {
  display: block;
  appearance: none;
  border: 0;
}
progress.bar::-webkit-progress-bar {
  background: var(--surface-2);
  border-radius: 3px;
}
progress.bar::-webkit-progress-value {
  border-radius: 3px;
  transition: width .3s;
}
progress.bar::-moz-progress-bar {
  border-radius: 3px;
}
.bar-fill { height: 100%; transition: width .3s; }
.bar-fill.bar-ok,
progress.bar-ok::-webkit-progress-value,
progress.bar-ok::-moz-progress-bar { background: var(--ok); }
.bar-fill.bar-aviso,
progress.bar-aviso::-webkit-progress-value,
progress.bar-aviso::-moz-progress-bar { background: var(--warn); }
.bar-fill.bar-critico,
progress.bar-critico::-webkit-progress-value,
progress.bar-critico::-moz-progress-bar { background: var(--err); }

/* galeria de fotos do produto */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.galeria-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.galeria-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}
.galeria-item form { margin: 0; }
.galeria-item .btn { width: 100%; }

/* details (toggle "Uso por chave hoje") */
.quota-details {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.quota-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}
.quota-details summary:hover { color: var(--text); }

.qr-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.qr-box {
  margin: 0;
  padding: 8px;
  overflow: auto;
  background: #fff;
  color: #000;
  border-radius: 6px;
  line-height: .92;
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  width: fit-content;
  max-width: 100%;
  max-height: 360px;
}
@media (max-width: 800px) {
  .qr-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-main {
    width: 100%;
    justify-content: space-between;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
  }
  .config-tabs { position: static; }
}

@media (max-width: 560px) {
  .container { padding: 18px 14px 28px; }
  .topbar { padding: 10px 14px; }
  .topbar-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .store-chip { max-width: 100%; width: 100%; }
  .topbar nav a { padding: 7px 9px; }
  form .row,
  form .row-3 { grid-template-columns: 1fr; }
  .pendentes-filtro { grid-template-columns: 1fr; }
  .pedido-contadores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }
  .pedido-contador:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .pedido-aprovado summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .pedido-aprovado-meta {
    justify-content: flex-start;
  }
  .pedido-aprovado-body {
    grid-template-columns: 1fr;
  }
  .inline-form input[type="file"] { max-width: 100%; }
  .saida-item-row { grid-template-columns: 1fr; }
  .saida-item-row input[type="number"] {
    width: 100%;
    text-align: left;
  }
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* editor unificado de saidas pendentes -------------------------------- */
.saida-editor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.saida-aviso-ia {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 13px;
}
.saida-tabela { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.saida-tabela th {
  text-align: left; padding: 8px 6px;
  font-size: 11px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.saida-tabela td {
  padding: 8px 6px; border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.saida-tabela tbody tr:hover td { background: rgba(255,255,255,.02); }
.saida-tabela tfoot td {
  border-top: 1px solid var(--border);
  border-bottom: none; padding-top: 10px;
}

.saida-thumb { width: 56px; }
.saida-thumb img,
.saida-thumb-vazia {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 700;
}
.saida-nome strong { font-size: 14px; }

.qtd-control {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.qtd-btn {
  width: 28px; height: 28px;
  background: transparent; color: var(--text);
  border: none; cursor: pointer;
  font-size: 16px; font-weight: 600;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.qtd-btn:hover { background: var(--border); }
.qtd-input {
  width: 56px; text-align: center;
  background: transparent; color: var(--text);
  border: none; outline: none;
  font-size: 14px; font-weight: 600;
  -moz-appearance: textfield;
}
.qtd-input::-webkit-outer-spin-button,
.qtd-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qtd-aviso { font-size: 11px; margin-top: 4px; min-height: 14px; }
.qtd-aviso-warn { color: var(--warn); }
.qtd-aviso-erro { color: var(--err); }

.saida-empty {
  text-align: center; padding: 20px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 6px;
  margin: 8px 0;
}
.saida-busca {
  background: var(--surface-2);
  padding: 10px;
  border-radius: 6px;
  margin: 12px 0;
}
.saida-busca label { display: block; margin-bottom: 4px; font-size: 12px; }
.saida-busca input[type="search"] {
  width: 100%; padding: 8px 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px;
}
.saida-busca input[type="search"]:focus {
  outline: none; border-color: var(--accent);
}

.produto-resultados {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 4px;
  max-height: 300px; overflow-y: auto;
}
.produto-resultado {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; text-align: left;
  color: var(--text); font: inherit;
  transition: background .1s;
}
.produto-resultado:hover { background: var(--surface-3, var(--surface-2)); }
.produto-resultado-thumb {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--surface-2); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 700; font-size: 14px;
  overflow: hidden;
}
.produto-resultado-thumb img { width: 100%; height: 100%; object-fit: cover; }
.produto-resultado-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.produto-resultado-info strong {
  font-size: 13px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.produto-resultado-info span { font-size: 11px; color: var(--muted); }
.produto-resultado-add {
  font-size: 18px; font-weight: 700;
  color: var(--accent); padding: 0 8px;
}
.produto-resultado-vazio {
  color: var(--muted); padding: 8px; font-size: 13px; text-align: center;
}

.pendentes-auto-refresh-aviso {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
}

.pendentes-auto-refresh-aviso[hidden] {
  display: none;
}

.pendentes-auto-refresh-texto {
  font-size: 13px;
}

.saida-nao-id {
  background: rgba(241, 196, 15, .08);
  border: 1px solid var(--warn);
  border-radius: 6px;
  padding: 10px; margin: 12px 0;
  font-size: 13px; color: var(--text);
}
.saida-nao-id strong { color: var(--warn); }
.saida-nao-id ul { margin: 4px 0 8px 18px; }

.acoes-principais {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.compact-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-grande { padding: 10px 22px; font-size: 15px; font-weight: 600; }

.saida-tool { margin-top: 12px; }
.saida-tool summary {
  cursor: pointer; color: var(--muted);
  font-size: 13px; padding: 6px 0;
}

@media (max-width: 700px) {
  .saida-tabela thead { display: none; }
  .saida-tabela, .saida-tabela tbody, .saida-tabela tr,
  .saida-tabela td, .saida-tabela tfoot { display: block; width: 100%; }
  .saida-tabela tr {
    border: 1px solid var(--border);
    border-radius: 6px; padding: 8px; margin-bottom: 8px;
  }
  .saida-tabela td { border: none; padding: 4px 0; text-align: left; }
  .saida-thumb { display: inline-block; vertical-align: middle; }
  .saida-thumb + .saida-nome { display: inline-block; vertical-align: middle; margin-left: 8px; }
}

/* tela funcionario (acesso restrito por token) ---------------------- */
.func-body { background: var(--bg); min-height: 100vh; }
.func-topbar {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.func-brand {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.func-brand strong { font-size: 16px; color: var(--text); }
.func-tag {
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.func-container { max-width: 980px; padding-top: 16px; padding-bottom: 32px; }
.func-rodape { padding: 16px; }
.func-info-token {
  background: var(--surface-2); padding: 8px 12px; border-radius: 6px;
  font-family: monospace; font-size: 12px; word-break: break-all;
  border: 1px dashed var(--border);
}

/* status do robo iFood ao vivo --------------------------------------- */
.ifood-bot-live {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
}
.ifood-bot-live-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 6px;
}
.ifood-bot-live-line {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.ifood-bot-log {
  margin-top: 10px;
  background: #0d1117; color: #c9d1d9;
  padding: 10px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.45;
  max-height: 320px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
