/* Módulo SINTER separado da Central de Exportação */
#sinter-panel{width:640px}
.sinter-history-card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:10px;
  padding:10px;margin-bottom:8px;cursor:pointer;transition:.15s
}
.sinter-history-card:hover{border-color:var(--border-light);background:#172540}
.sinter-history-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.sinter-history-title{font-size:12px;font-weight:800;color:#fff}
.sinter-history-meta{font-size:10px;color:var(--text-muted);line-height:1.45}
.sinter-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase}
.sinter-status.gerado,.sinter-status.rascunho{background:rgba(29,106,245,.16);color:#84b6ff}
.sinter-status.enviado,.sinter-status.concluido{background:rgba(34,197,94,.16);color:#86efac}
.sinter-status.processando{background:rgba(245,158,11,.16);color:#fcd34d}
.sinter-status.rejeitado,.sinter-status.erro{background:rgba(239,68,68,.16);color:#fca5a5}
.sinter-status.erro_envio,.sinter-status.rejeitado_validacao,.sinter-status.rejeitado_sinter{background:rgba(239,68,68,.16);color:#fca5a5}
.sinter-status.enviado_com_alertas,.sinter-status.pendente{background:rgba(245,158,11,.16);color:#fcd34d}
.sinter-history-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.sinter-mini-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800}
.sinter-mini-badge.ok{background:rgba(34,197,94,.14);color:#86efac}
.sinter-mini-badge.warn{background:rgba(245,158,11,.14);color:#fcd34d}
.sinter-mini-badge.neutral{background:rgba(148,163,184,.14);color:#cbd5e1}
.sinter-detail{display:flex;flex-direction:column;gap:12px}
.sinter-detail-hero{
  border:1px solid var(--border);background:linear-gradient(180deg, rgba(29,106,245,.16), rgba(15,23,42,.18));
  border-radius:8px;padding:12px
}
.sinter-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.sinter-detail-title{font-size:16px;font-weight:900;color:#fff;line-height:1.2}
.sinter-detail-sub{font-size:11px;color:var(--text-muted);line-height:1.45;margin-top:4px}
.sinter-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sinter-kpi{border:1px solid var(--border);background:rgba(2,6,23,.20);border-radius:8px;padding:9px;min-width:0}
.sinter-kpi-label{font-size:9px;color:var(--text-muted);font-weight:800;text-transform:uppercase;margin-bottom:5px}
.sinter-kpi-value{font-size:14px;color:#fff;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sinter-detail-section{border:1px solid var(--border);background:var(--bg-card);border-radius:8px;padding:12px}
.sinter-detail-section-title{font-size:12px;font-weight:900;color:#fff;margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sinter-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sinter-info{border:1px solid rgba(148,163,184,.18);border-radius:7px;padding:8px;background:rgba(15,23,42,.24);min-width:0}
.sinter-info-label{font-size:9px;color:var(--text-muted);font-weight:800;text-transform:uppercase;margin-bottom:4px}
.sinter-info-value{font-size:12px;color:#e5e7eb;line-height:1.35;word-break:break-word}
.sinter-alert-list{display:flex;flex-direction:column;gap:7px}
.sinter-alert-item{border:1px solid rgba(245,158,11,.36);background:rgba(245,158,11,.10);border-radius:8px;padding:9px}
.sinter-alert-field{font-size:11px;font-weight:900;color:#fcd34d;margin-bottom:3px}
.sinter-alert-msg{font-size:11px;color:#fde68a;line-height:1.4}
.sinter-item-card{border:1px solid var(--border);background:rgba(15,23,42,.18);border-radius:8px;padding:10px;margin-bottom:8px}
.sinter-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}
.sinter-item-title{font-size:12px;font-weight:900;color:#fff}
.sinter-item-sub{font-size:10px;color:var(--text-muted);margin-top:2px}
.sinter-status-pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase}
.sinter-status-pill.ok{background:rgba(34,197,94,.14);color:#86efac}
.sinter-status-pill.warn{background:rgba(245,158,11,.14);color:#fcd34d}
.sinter-status-pill.danger{background:rgba(239,68,68,.14);color:#fca5a5}
.sinter-selected-request{margin-bottom:10px}
.sinter-ready-card{border:1px solid rgba(59,130,246,.42);background:linear-gradient(180deg,rgba(30,64,175,.24),rgba(15,23,42,.28));border-radius:8px;padding:12px}
.sinter-ready-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.sinter-ready-title{font-size:14px;font-weight:900;color:#fff;line-height:1.25}
.sinter-ready-sub{font-size:11px;color:var(--text-muted);line-height:1.4;margin-top:3px}
.sinter-ready-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.sinter-ready-grid>div{border:1px solid rgba(148,163,184,.18);background:rgba(2,6,23,.22);border-radius:7px;padding:8px;min-width:0}
.sinter-ready-grid strong{display:block;color:#fff;font-size:16px;line-height:1;margin-bottom:4px}
.sinter-ready-grid span{display:block;color:var(--text-muted);font-size:10px;line-height:1.25}
.sinter-ready-actions{display:flex;flex-wrap:wrap;gap:8px}
.sinter-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sinter-timeline{display:flex;flex-direction:column;gap:8px}
.sinter-timeline-item{display:grid;grid-template-columns:82px 1fr;gap:8px;border-left:2px solid rgba(29,106,245,.45);padding-left:9px}
.sinter-timeline-date{font-size:10px;color:var(--text-muted);line-height:1.35}
.sinter-timeline-body{font-size:11px;color:#e5e7eb;line-height:1.4}
.sinter-raw-details summary{cursor:pointer;color:var(--text-muted);font-size:11px;font-weight:800}
.sinter-raw-details .json-box{margin-top:8px;max-height:260px}
@media (max-width:720px){
  .sinter-kpi-grid,.sinter-info-grid{grid-template-columns:1fr 1fr}
  .sinter-timeline-item{grid-template-columns:1fr}
}
