:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface2:#fbfbfd;

  --text:#0f172a;
  --muted:#64748b;

  --brand:#6d28d9;     /* roxo sofisticado */
  --brand2:#2563eb;    /* azul */
  --ok:#16a34a;
  --warn:#f59e0b;
  --bad:#ef4444;

  --border: rgba(2,6,23,.10);
  --shadow: 0 18px 60px rgba(2,6,23,.10);

  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(900px 700px at 15% 10%, rgba(109,40,217,.10), transparent 60%),
    radial-gradient(900px 650px at 85% 20%, rgba(37,99,235,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button, input, select, textarea{font:inherit}
.container{max-width:var(--max); margin:0 auto; padding:28px 18px}

.hidden{display:none !important}
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.grid{display:grid; gap:14px}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(246,247,251,.75);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand .logo{
  width:38px;
  height:38px;
  border-radius:14px;
  box-shadow: 0 12px 30px rgba(109,40,217,.18);
  object-fit: contain;     /* ✅ importante para IMG */
  background: transparent; /* ✅ não força gradiente no IMG */
}
.brand .name{font-weight:900; letter-spacing:.2px; line-height:1.1}
.brand .tag{display:block; font-size:12px; color:var(--muted); font-weight:700; margin-top:2px;}
.nav{display:flex; gap:8px; flex-wrap:wrap}
.nav a{
  padding:9px 12px;
  border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{border-color:var(--border); background: rgba(2,6,23,.03); color:var(--text)}
.nav a.active{border-color: rgba(109,40,217,.28); background: rgba(109,40,217,.08); color: var(--text);}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(2,6,23,.06);
  padding:16px;
}

.btn{
  border:1px solid transparent;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:900;
  letter-spacing:.2px;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(109,40,217,.98), rgba(37,99,235,.95));
  color:#fff;
  box-shadow: 0 16px 40px rgba(109,40,217,.16);
}
.btn.primary:hover{filter:brightness(1.02)}
.btn.ghost{
  background: rgba(2,6,23,.03);
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover{background: rgba(2,6,23,.05)}
.btn.success{background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.25); color: #14532d;}
.btn.danger{background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); color: #7f1d1d;}
.btn.small{padding:9px 11px; border-radius:12px; font-size:14px}

.h1{margin:0; font-size: clamp(28px, 3.2vw, 44px); letter-spacing:-.7px; line-height:1.07}
.lead{margin:10px 0 0; color:var(--muted); line-height:1.65; max-width:64ch}

hr.sep{border:none; border-top:1px solid var(--border); margin:14px 0}

.sectionTitle{
  margin:26px 0 12px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
}
.sectionTitle .t{font-weight:900; letter-spacing:.2px}
.sectionTitle small{display:block; color:var(--muted); font-weight:700; margin-top:4px}

label{font-size:13px; color:var(--muted); font-weight:900}
.field{display:grid; gap:8px}
.form{display:grid; gap:12px}
input, select, textarea{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(109,40,217,.35);
  box-shadow: 0 0 0 4px rgba(109,40,217,.12);
}
.hint{color:var(--muted); font-size:12px; line-height:1.45}

.two{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.three{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px}
@media (max-width: 860px){ .two,.three{grid-template-columns:1fr} }

.tableWrap{overflow:auto; border-radius:16px; border:1px solid var(--border); background: var(--surface)}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 920px;
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{
  background: rgba(2,6,23,.02);
  color: var(--muted);
  font-weight:900;
}
.table tr:hover td{background: rgba(2,6,23,.02)}

.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid var(--border);
  background: rgba(2,6,23,.03);
}
.badge.wait{border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.10); color:#92400e}
.badge.ok{border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.10); color:#14532d}

.footer{
  margin-top:26px;
  padding:18px;
  color: var(--muted);
  font-size:12px;
  text-align:center;
  border-top:1px solid var(--border);
}
