:root{
  --bg: #f7f8fb;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0b1220;
  --line: #e6e8ef;
  --shadow: 0 10px 25px rgba(15, 23, 42, .08);

  /* Acento YEFF (ajuste se quiser exato do logo) */
  --yeff: #23d3b6;
  --yeffSoft: rgba(35, 211, 182, .12);

  --good: #16a34a;
  --warn: #f59e0b;
  --bad:  #ef4444;

  --r: 14px;
  --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:var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}

.app{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:100vh;
}

.side{
  background: #0b1220;
  color: #e5e7eb;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.brand{display:flex; gap:12px; align-items:center; padding:10px 8px; border-radius:12px;}
.brandMark{
  width:12px; height:12px; border-radius:999px;
  background:var(--yeff);
  box-shadow: 0 0 0 6px var(--yeffSoft);
  display:inline-block;
}
.brandName{font-weight:800; letter-spacing:.2px}
.brandSub{font-size:12px; color:rgba(229,231,235,.7)}

.nav{margin-top:16px; display:flex; flex-direction:column; gap:6px}
.navItem{
  padding:10px 12px;
  border-radius:12px;
  color:rgba(229,231,235,.85);
  border:1px solid rgba(255,255,255,.06);
}
.navItem:hover{border-color: rgba(35,211,182,.35)}
.navItem.active{
  background: rgba(35,211,182,.12);
  border-color: rgba(35,211,182,.45);
  color:#eafffb;
}
.sideFoot{margin-top:18px; display:flex; flex-wrap:wrap; gap:8px}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  color:rgba(229,231,235,.75);
}

.main{padding:22px 22px 16px}
.top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin-bottom:18px;
}
.title{font-size:20px; font-weight:800}
.subtitle{font-size:12px; color:var(--muted); margin-top:4px}
.topRight{display:flex; gap:10px; align-items:flex-end}
.field{display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted)}
select{
  height:36px; padding:0 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface);
  outline:none;
}

.btnPrimary{
  height:36px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(35,211,182,.55);
  background: var(--yeff);
  color:#06110f;
  font-weight:800;
  cursor:pointer;
}
.btnPrimary:hover{filter:brightness(.97)}
.btnGhost{
  height:34px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  color:var(--text);
}
.btnGhost:hover{border-color: rgba(35,211,182,.55)}

.grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:14px;
  align-items:stretch;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:14px;
  min-height:170px;
}
.cardWide{
  grid-column: 1 / span 2;
  min-height:220px;
}
.cardHead{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:12px;
}
.cardTitle{font-weight:800}
.cardHint{font-size:12px; color:var(--muted); margin-top:4px}

.statusPill{
  font-weight:800;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#f3f4f6;
}
.statusGreen{border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08)}
.statusYellow{border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.10)}
.statusRed{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.10)}

.kpis{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top:4px;
}
.kpi{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background: linear-gradient(180deg, rgba(35,211,182,.06), rgba(255,255,255,0));
}
.kpiLabel{font-size:12px; color:var(--muted)}
.kpiValue{font-weight:900; margin-top:6px}

.miniKpis{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  margin-bottom:12px;
}
.mini{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}
.miniLabel{font-size:12px; color:var(--muted)}
.miniValue{font-weight:900; margin-top:6px}

.placeholder{
  border:1px dashed rgba(107,114,128,.4);
  border-radius:12px;
  padding:12px;
  color:var(--muted);
  font-size:12px;
  margin:10px 0 12px;
  background: rgba(35,211,182,.05);
}

.cardFoot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.muted{color:var(--muted); font-size:12px}

.foot{margin-top:14px; padding:8px 2px}

.drawer{
  position:fixed; inset:0;
  display:none;
}
.drawer[aria-hidden="false"]{display:block}
.drawerBackdrop{
  position:absolute; inset:0;
  background: rgba(2,6,23,.35);
}
.drawerPanel{
  position:absolute;
  right:0; top:0; height:100%;
  width:min(520px, 92vw);
  background:var(--surface);
  border-left:1px solid var(--line);
  box-shadow: -10px 0 25px rgba(15, 23, 42, .18);
  display:flex; flex-direction:column;
}
.drawerHead{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.drawerTitle{font-weight:900}
.drawerBody{padding:14px}
@media (max-width: 1024px){
  .app{grid-template-columns: 1fr}
  .side{display:none}
  .grid{grid-template-columns:1fr}
  .cardWide{grid-column:auto}
  .kpis{grid-template-columns:1fr 1fr}
}
