:root{
  --primary:#0637B7;   /* cor principal (mude aqui) */
  --primary-dark:#2E7AFF;
  --ok:#16a34a;        /* verde */
  --warn:#f59e0b;      /* amarelo */
  --crit:#dc2626;      /* vermelho */
}

*{box-sizing:border-box}
body{font-family:Arial,Helvetica,sans-serif;max-width:1200px;margin:20px auto;background:#f5f6f8;color:#333}
.topbar{display:flex;justify-content:space-between;align-items:center}
.logo img{max-width:160px}
.toolbar .ghost{display:inline-block;padding:8px 12px;border-radius:6px;background:#eef1f4;color:#333;border:1px solid #d6dbe0}

h2{text-align:center;margin:10px 0 20px}
.container{display:flex;gap:22px}
.left{flex:0 0 35%}
.right{flex:1 1 65%}
.left,.right{background:#fff;padding:20px;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.08)}

form{border-bottom:1px solid #eee;padding-bottom:15px;margin-bottom:20px}
form:last-child{border:none;margin-bottom:0}

input,button,.ghost{display:block;width:100%;padding:10px;margin:6px 0;border-radius:6px;border:1px solid #cfd3d6;font-size:14px}
button{background:var(--primary);color:#fff;border:none;cursor:pointer;font-weight:700;transition:.2s}
button:hover{background:var(--primary-dark)}
.ghost{background:#eef1f4;color:#333;text-align:center;border:1px solid #d6dbe0;cursor:pointer}
.row{display:flex;gap:8px;align-items:center}
.unit{background:#eef1f4;border:1px solid #d6dbe0;border-radius:6px;padding:10px 12px;white-space:nowrap}
.label-sm{font-size:12px;color:#555;margin-top:4px}
.alert{padding:10px;margin:10px auto;border-radius:6px;text-align:center;font-weight:700;max-width:800px;background:#e2e3e5}

.right-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.tools{display:flex;gap:8px;align-items:center}

.table-wrap{overflow:auto;max-height:60vh;border:1px solid #e5e7eb;border-radius:8px}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{border-bottom:1px solid #e5e7eb;padding:10px;text-align:left;vertical-align:middle;background:#fff}
thead th{position:sticky;top:0;background:#f3f4f6;cursor:pointer}
thead th[data-sort]:after{content:" ↕";opacity:.4;font-weight:normal}
thead th.asc:after{content:" ↑"}
thead th.desc:after{content:" ↓"}
.numcol{min-width:110px;width:120px}
.num{text-align:right}
.emailcell{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chip{display:inline-block;padding:6px 8px;border-radius:20px;font-size:12px}
.mini{display:inline-block;width:auto;padding:8px 10px;margin:2px;border-radius:6px}
.mini.danger{background:#ef4444}
.actions{white-space:nowrap}
.meter{height:8px;border-radius:6px;background:#eef2f7;margin-top:6px;overflow:hidden}
.meter .fill{display:block;height:100%}
.meter .fill.ok{background:var(--ok)}
.meter .fill.warn{background:var(--warn)}
.meter .fill.crit{background:var(--crit)}
.highlight{background:#eef8ff}

@media(max-width:980px){
  .container{flex-direction:column}
  .left,.right{flex:1 1 auto}
  .tools{flex-direction:column;align-items:stretch}
  table{min-width:100%}
}
