/* Central de Ações › Entregas (centro 1.25.7): faturamento, filtros, busca, ícone por compra,
   observação, cancelamento e o lançamento de compra feita por fora da loja. Só a moderacao.html usa. */

/* 1.25.9: categorias numa barra só, da largura do bloco, com divisórias entre os grupos */
.ent-cats{ display:flex; align-items:stretch; gap:4px; padding:5px; margin:0 0 12px; background:var(--branco); border:1px solid var(--cl2); border-radius:14px; overflow-x:auto; scrollbar-width:none; }
.ent-cats::-webkit-scrollbar{ display:none; }
.ent-cat{ flex:1 1 0; min-width:max-content; display:inline-flex; align-items:center; justify-content:center; gap:6px; height:38px; padding:0 14px; border:0; border-radius:10px;
  background:transparent; color:var(--dim); font:inherit; font-size:14px; font-weight:700; cursor:pointer; white-space:nowrap; transition:background .15s, color .15s; }
.ent-cat:hover{ background:var(--cl); color:var(--txt); }
.ent-cat[aria-pressed="true"]{ background:var(--preto); color:#fff; }
.ent-cat em{ font-style:normal; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--verm); color:#fff; font-size:11px; line-height:18px; text-align:center; }
.ent-cats-div{ flex:none; width:1px; margin:8px 4px; background:var(--cl2); }

/* filtros numa linha só, todos da mesma altura e no mesmo desenho */
.ent-filtros{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px; margin:0 0 14px; background:var(--branco); border:1px solid var(--cl2); border-radius:14px; }
.ent-busca{ position:relative; flex:1 1 200px; min-width:180px; }
.ent-busca svg{ position:absolute; left:12px; top:50%; width:16px; height:16px; transform:translateY(-50%); fill:none; stroke:var(--dim); stroke-width:2; stroke-linecap:round; pointer-events:none; }
.ent-busca input{ width:100%; box-sizing:border-box; padding:0 12px 0 36px; }
.ent-filtros input, .ent-filtros select{ font:inherit; font-size:14px; height:40px; border:1px solid transparent; border-radius:10px; background:var(--cl); color:var(--txt); min-width:0; transition:border-color .15s, background .15s; }
.ent-filtros select{ flex:0 0 auto; width:auto; max-width:200px; padding:0 30px 0 12px; font-weight:600; color:var(--dim); cursor:pointer; appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:14px; }
.ent-filtros select.ligado{ background-color:var(--branco); border-color:var(--txt); color:var(--txt); }
.ent-filtros select[hidden]{ display:none; }
.ent-filtros input:hover, .ent-filtros select:hover{ border-color:var(--fio2); }
.ent-filtros input:focus, .ent-filtros select:focus{ outline:2px solid var(--verm); outline-offset:1px; background-color:var(--branco); }
.ent-datas{ display:inline-flex; align-items:center; gap:2px; flex:none; height:40px; padding:0 4px; border-radius:10px; background:var(--cl); }
.ent-datas[hidden]{ display:none; }
.ent-datas input{ height:34px; width:128px; padding:0 6px; background:transparent; font-size:13px; }
.ent-datas i{ font-style:normal; color:var(--dim); font-size:13px; }
.ent-limpar, .ent-mais{ flex:none; width:40px; height:40px; display:grid; place-items:center; border-radius:10px; cursor:pointer; padding:0; }
.ent-limpar{ border:1px solid var(--fio2); background:var(--branco); color:var(--dim); }
.ent-limpar:hover{ color:var(--txt); border-color:var(--txt); }
.ent-mais{ border:0; background:var(--verm); color:#fff; box-shadow:0 6px 16px -8px rgba(224,27,34,.8); transition:transform .15s, background .15s; }
.ent-mais:hover{ background:var(--verm-h, #C3121A); transform:translateY(-1px); }
.ent-limpar svg, .ent-mais svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }
.ent-limpar[hidden], .ent-mais[hidden]{ display:none; }
.ent-conta{ margin:0 0 4px; font-size:12.5px; color:var(--dim); }

/* faturamento: uma faixa só, que segue os filtros de cima */
.ent-fat-caixa{ margin:0 0 14px; background:var(--branco); border:1px solid var(--cl2); border-radius:14px; overflow:hidden; }
.ent-fat-caixa[hidden]{ display:none; }
.ent-fat-cab{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:12px 18px 0; }
.ent-fat-cab h3{ margin:0; font-family:var(--display); font-weight:400; font-size:15px; }
.ent-fat-filtro{ font-size:12.5px; color:var(--dim); }
.ent-fat{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); }
.ent-fat-item{ display:flex; flex-direction:column; gap:3px; padding:12px 18px 16px; min-width:0; border-left:1px solid var(--cl2); }
.ent-fat-item:first-child{ border-left:0; }
.ent-fat-rot{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--dim); }
.ent-fat-item strong{ font-family:var(--display); font-weight:400; font-size:clamp(15px, 1.5vw, 21px); line-height:1.15; color:var(--txt); overflow-wrap:anywhere; }
.ent-fat-item small{ font-size:12px; color:var(--dim); }
.ent-fat-item--verm strong{ color:var(--verm); }
.ent-fat-nada{ margin:0; padding:12px 18px 16px; font-size:13.5px; color:var(--dim); }

/* nome do VIP na cor do plano, num selo escuro */
.ent-vip{ display:inline-block; padding:1px 8px 2px; margin:0 1px; border-radius:6px; background:#121214; font-weight:800; letter-spacing:.03em;
  font-size:.92em; line-height:1.35; vertical-align:1px; box-shadow:0 0 0 1px rgba(255,255,255,.08) inset; }
.ent-vip--hero{ color:#4ADE80; } .ent-vip--elite{ color:#60A5FA; } .ent-vip--legend{ color:#C084FC; }
.ent-vip--prime{ color:#FACC15; } .ent-vip--builder{ color:#2DD4BF; }

/* linha da entrega */
.ent-linha.ent-linha--v2{ grid-template-columns:44px minmax(0,1fr) auto; gap:14px; align-items:start; padding:14px 0; }
.ent-linha.ent-linha--v2:last-child{ border-bottom:0; }
.ent-linha--apagada .ent-icone, .ent-linha--apagada .ent-tit b{ opacity:.5; }
.ent-linha--apagada .ent-tit b{ text-decoration:line-through; text-decoration-thickness:1px; }
.ent-icone{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; overflow:hidden; flex:none; }
.ent-icone--arte{ background:var(--preto); }
.ent-icone--arte img{ width:36px; height:36px; object-fit:contain; }
.ent-icone--desenho{ background:var(--cl); border:1px solid var(--cl2); }
.ent-icone svg{ width:20px; height:20px; fill:none; stroke:var(--verm); stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ent-linha--v2 .ent-txt{ gap:3px; }
.ent-tit{ display:flex !important; flex-direction:row !important; flex-wrap:wrap; gap:6px 8px; align-items:center; }
.ent-tit b{ font-size:15px; }
.ent-selo{ display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.02em; background:var(--cl); color:var(--dim); border:1px solid var(--cl2); white-space:nowrap; }
.ent-selo--manual{ background:#FFF4E5; color:#8A4B00; border-color:#F5D9AE; }
.ent-selo--manual::before{ content:""; width:6px; height:6px; border-radius:50%; background:#E08A00; margin-right:5px; }
.ent-meta a{ color:var(--txt); font-weight:700; }
.ent-obs{ margin:6px 0 0; padding:8px 10px; border-left:3px solid var(--verm); background:var(--cl); border-radius:0 8px 8px 0; font-size:13.5px; color:var(--txt); display:flex; flex-direction:column; gap:2px; overflow-wrap:anywhere; }
.ent-obs small{ font-size:11.5px !important; }
.ent-lado{ display:flex !important; flex-direction:column; align-items:flex-end; gap:8px; }
.ent-acoes{ display:flex !important; flex-direction:row !important; gap:4px; }
.ent-acao{ font:inherit; font-size:12.5px; font-weight:700; height:28px; padding:0 10px; border-radius:8px; border:1px solid var(--fio2); background:var(--branco); color:var(--txt); cursor:pointer; white-space:nowrap; }
.ent-acao:hover{ border-color:var(--txt); }
.ent-acao--perigo{ color:var(--verm); }
.ent-acao--perigo:hover{ border-color:var(--verm); background:#FFF3F3; }
.ent-editor{ grid-column:2 / -1; display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:2px; }
.ent-editor input{ flex:1 1 240px; min-width:0; font:inherit; font-size:14px; height:36px; padding:0 10px; border:1px solid var(--fio2); border-radius:9px; }
.ent-editor input:focus{ outline:2px solid var(--verm); outline-offset:1px; border-color:transparent; }
.ent-editor-erro{ flex-basis:100%; color:var(--verm) !important; }
.ent-editor-erro:empty{ display:none; }

/* lançar compra */
.ent-lancar{ margin:0 0 14px; }
.ent-lancar[hidden]{ display:none; }
.ent-lancar-cab{ display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:14px; }
.ent-lancar-cab h3{ margin:0 0 4px; font-family:var(--display); font-weight:400; font-size:18px; }
.ent-lancar-cab p{ margin:0; font-size:13.5px; color:var(--dim); max-width:640px; }
.ent-x{ font:inherit; font-size:22px; line-height:1; width:34px; height:34px; border-radius:9px; border:1px solid var(--fio2); background:none; cursor:pointer; color:var(--dim); flex:none; }
.ent-x:hover{ color:var(--txt); border-color:var(--txt); }
.ent-lancar-grade{ display:grid; grid-template-columns:1.3fr 1.2fr 1fr 1fr; gap:10px; }
.ent-lancar label{ display:flex; flex-direction:column; gap:5px; font-size:12.5px; font-weight:700; color:var(--dim); }
.ent-lancar input, .ent-lancar select, .ent-lancar textarea{ font:inherit; font-size:14px; font-weight:400; color:var(--txt); border:1px solid var(--fio2); border-radius:10px; background:var(--branco); }
.ent-lancar input, .ent-lancar select{ height:40px; padding:0 10px; width:100%; min-width:0; box-sizing:border-box; }
.ent-lancar textarea{ padding:8px 10px; resize:vertical; min-height:56px; }
.ent-lancar input:focus, .ent-lancar select:focus, .ent-lancar textarea:focus{ outline:2px solid var(--verm); outline-offset:1px; border-color:transparent; }
.ent-produtos{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:10px; margin:14px 0; }
.ent-prod-grupo{ margin:0; padding:10px 12px 6px; border:1px solid var(--cl2); border-radius:12px; min-width:0; }
.ent-prod-grupo legend{ padding:0 6px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--dim); }
.ent-lancar .ent-prod{ display:grid; grid-template-columns:minmax(0,1fr) 64px; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:6px 0; border-bottom:1px solid var(--cl2); font-weight:400; color:var(--txt); font-size:14px; }
.ent-prod:last-child{ border-bottom:0; }
.ent-prod-nome{ grid-column:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ent-prod small{ grid-column:1; color:var(--dim); font-size:12px; }
.ent-lancar .ent-prod input{ grid-column:2; grid-row:1 / span 2; height:34px; text-align:center; padding:0 4px; }
.ent-lancar-obs{ margin-bottom:12px; }
.ent-lancar-pe{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ent-lancar-pe .aviso{ margin:0; flex:1 1 260px; padding:10px 12px; }
.ent-total{ font-weight:700; font-size:14px; }
.ent-lancar-pe .btn{ margin-left:auto; }

.ent-lancar .ent-prod input{ width:64px; }
@media (max-width:960px){
  .ent-filtros{ flex-wrap:wrap; }
  .ent-busca{ flex-basis:100%; }
  .ent-fat{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .ent-fat-item:nth-child(4){ border-left:0; }
  .ent-fat-item:nth-child(n+4){ border-top:1px solid var(--cl2); }
}
@media (max-width:760px){
  .ent-fat{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .ent-fat-item{ border-left:0; border-top:1px solid var(--cl2); }
  .ent-fat-item:nth-child(even){ border-left:1px solid var(--cl2); }
  .ent-lancar-grade{ grid-template-columns:1fr 1fr; }
  .ent-linha.ent-linha--v2{ grid-template-columns:40px minmax(0,1fr); }
  .ent-icone{ width:40px; height:40px; }
  .ent-lado{ grid-column:2; flex-direction:row !important; align-items:center; justify-content:space-between; }
}
@media (max-width:480px){ .ent-lancar-grade{ grid-template-columns:1fr; } }

/* 1.26.1: ficha da conta › "VIPs da conta" e "Compras pendentes" (js/central-vips.js), e a busca aproximada */
.cv{ display:grid; gap:14px; margin:14px 0 0; }
.cv-card{ padding:16px 18px; }
.cv-cab{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:0 0 6px; }
.cv-cab h3{ margin:0; font-family:var(--display); font-weight:400; font-size:17px; }
.cv-sub{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--dim); }
.cv-lista{ display:flex; flex-direction:column; }
.cv-linha{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--cl2); }
.cv-lista > .cv-linha:last-child{ border-bottom:0; }
.cv-txt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.cv-tit{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.cv-tit b{ font-size:15px; }
.cv-meta{ font-size:13px; color:var(--dim); overflow-wrap:anywhere; }
.cv-resp{ font-size:12.5px; color:var(--txt); }
.cv-valor{ font-weight:700; }
.cv-cupom{ display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:999px; font-size:11px; font-weight:700; background:var(--cl); border:1px solid var(--cl2); color:var(--dim); }
.cv-lado{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.cv-pil{ display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap;
  background:var(--cl); color:var(--dim); border:1px solid var(--cl2); }
.cv-pil::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.cv-pil--na_fila, .cv-pil--entregue, .cv-pil--aguardando{ color:var(--txt); background:var(--branco); border-color:var(--txt); }
.cv-pil--cancelando, .cv-pil--transferindo{ color:#8A4B00; background:#FFF4E5; border-color:#F5D9AE; }
.cv-pil--cancelado, .cv-pil--transferido{ color:var(--verm-cl); background:var(--verm-suave); border-color:#F5C2C4; }
.cv-pil--ativo{ color:#fff; background:var(--preto); border-color:var(--preto); }
.cv-pil--vencido, .cv-pil--recusado{ color:var(--dim); }
.cv-pil--devolver{ color:#fff; background:var(--verm-cl); border-color:var(--verm-cl); }
.cv-cancelar{ white-space:nowrap; }
.cv-cancelar:hover{ border-color:var(--verm); color:var(--verm-cl); }
.cv-vazio{ margin:4px 0 0; font-size:14px; color:var(--dim); }
.cv-aviso{ margin:6px 0 4px; padding:9px 12px; border-radius:10px; font-size:14px; background:var(--cl); color:var(--txt); }
.cv-aviso[hidden]{ display:none; }
.cv-aviso--ok{ background:var(--preto); color:#fff; }
.cv-aviso--erro{ background:var(--verm-suave); color:#5E0B10; }
.cv-aviso--espera{ background:#FFF4E5; color:#8A4B00; }
.cv-conf{ display:flex; flex-direction:column; gap:8px; margin:0 0 12px; padding:14px; border:1px solid var(--txt); border-left:3px solid var(--verm); border-radius:12px; background:var(--branco); }
.cv-conf-pergunta{ margin:0; font-weight:700; font-size:14.5px; }
.cv-conf-rot{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--dim); }
.cv-conf input{ font:inherit; font-size:14px; height:40px; padding:0 12px; border:1px solid var(--fio2); border-radius:10px; background:var(--branco); color:var(--txt); }
.cv-conf input:focus{ outline:2px solid var(--verm); outline-offset:1px; }
.cv-conf input[aria-invalid="true"]{ border-color:var(--verm); }
.cv-conf-acoes{ display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.cv-hist{ margin:10px 0 0; font-size:13px; }
.cv-hist summary{ cursor:pointer; font-weight:700; color:var(--dim); }
.cv-hist ul{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.cv-hist li{ display:grid; grid-template-columns:120px minmax(0,1fr); gap:10px; padding:8px 0 0; border-top:1px solid var(--cl2); }
.cv-hist-quando{ color:var(--dim); font-variant-numeric:tabular-nums; }
.cv-hist-txt{ display:flex; flex-direction:column; gap:2px; overflow-wrap:anywhere; }
.cv-hist-motivo, .cv-hist-resp{ color:var(--dim); }
.cv-sugestoes{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:10px 0 0; }
.cv-sugestoes[hidden]{ display:none; }
.cv-sug-rot{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--dim); margin-right:4px; }
.cv-sug{ display:inline-flex; align-items:baseline; gap:6px; height:32px; padding:0 12px; border-radius:999px; border:1px solid var(--cl2); background:var(--branco); color:var(--txt); font:inherit; font-size:13.5px; cursor:pointer; }
.cv-sug:hover{ border-color:var(--txt); }
.cv-sug small{ color:var(--dim); font-size:11.5px; }
@media (max-width:640px){
  .cv-linha{ grid-template-columns:1fr; }
  .cv-lado{ justify-content:flex-start; }
  .cv-hist li{ grid-template-columns:1fr; gap:2px; }
}
/* 1.26.1: nome do Discord na ficha da Central (embaixo do e-mail) */
.ficha-nome .ficha-discord{ display:block; margin-top:2px; }

/* Central › Anti-cheat (1.26.2) */
.ac-filtro { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.ac-filtro input { width: 8rem; padding: .45rem .6rem; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.ac-lista { display: grid; gap: .9rem; }
.ac-item { border: 1px solid #e5e5e5; border-radius: 12px; padding: .9rem 1rem; background: #fff; }
.ac-item.ac-fechou { border-left: 4px solid #E01B22; }
.ac-topo { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ac-camada { font-family: 'Archivo Black', sans-serif; font-weight: 400; }
.ac-selo { font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: #f2f2f2; }
.ac-fechou .ac-selo { background: #E01B22; color: #fff; }
.ac-quando { margin-left: auto; font-size: .8rem; color: #666; }
.ac-quem { margin: .35rem 0 .2rem; font-size: .9rem; }
.ac-versao { color: #777; }
.ac-detalhe { margin: .2rem 0 .6rem; font-size: .9rem; word-break: break-word; }
.ac-print { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid #eee; }
.ac-sem-print { font-size: .85rem; color: #888; }
.ac-mais { margin-top: 1rem; text-align: center; }
.ac-motivos { margin: .4rem 0 .6rem 1.1rem; font-size: .9rem; }
.ac-minuto { border-top: 1px solid #eee; padding: .4rem 0; font-size: .85rem; }
.ac-json { white-space: pre-wrap; font-size: .75rem; background: #fafafa; padding: .5rem; border-radius: 6px; max-height: 260px; overflow: auto; }
#ac-horas { padding: .4rem .5rem; border: 1px solid #ddd; border-radius: 8px; font: inherit; }

/* 1.26.6: descartar detecção e backup do mês */
.ac-descartar { margin-left: auto; border: 1px solid #ddd; background: #fff; color: #555; border-radius: 99px; min-width: 1.9rem; height: 1.9rem; padding: 0 .55rem; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.ac-descartar:hover, .ac-descartar:focus-visible { border-color: #E01B22; color: #E01B22; }
.ac-descartar--armado { background: #E01B22; border-color: #E01B22; color: #fff; font-size: .8rem; }
.ac-descartar--armado:hover { color: #fff; }
.ac-descartar:disabled { opacity: .5; cursor: default; }
#ac-backup-nota:empty { display: none; }
.ac-backup-apagar { margin-left: .4rem; }
