:root{
  --bg:#0b0f14;
  --card:#121924;
  --card2:#0f151f;
  --text:#e8eef7;
  --muted:#a7b4c6;
  --line:#233041;
  --primary:#2dd4bf;
  --warn:#f59e0b;
  --danger:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  background: radial-gradient(1200px 600px at 20% 0%, #122033 0%, var(--bg) 55%);
  color:var(--text);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  position:sticky;
  top:0;
  background: rgba(11,15,20,.72);
  z-index:10;
}

.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(45,212,191,.25), rgba(99,102,241,.18));
  border:1px solid rgba(45,212,191,.35);
  color:var(--primary);
  font-weight:800;
}
.title{font-weight:800;letter-spacing:.3px}
.subtitle{font-size:12px;color:var(--muted)}

.top-actions{display:flex;gap:10px}

.container{max-width:1200px;margin:0 auto;padding:18px}
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}

@media(min-width:980px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
  #cardCustomer{
    grid-column: 1 / span 2;
  }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:14px;
}

.card-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:12px;
}
h2,h3{margin:0}
h2{font-size:16px}
h3{font-size:14px}

.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(45,212,191,.12);
  border:1px solid rgba(45,212,191,.25);
  color: var(--primary);
}
.badge.ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: var(--muted);
}

.kpis{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
  margin-bottom:10px;
}
@media(min-width:520px){
  .kpis{grid-template-columns: repeat(4, 1fr);}
}

.kpi{
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  padding:10px;
}
.kpi-label{font-size:12px;color:var(--muted)}
.kpi-value{font-size:20px;font-weight:800;margin-top:2px}

.muted{color:var(--muted)}
.small{font-size:12px}

.searchbar{display:flex;gap:10px;margin-bottom:10px}
input{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
input:focus{border-color: rgba(45,212,191,.45)}

.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}
.btn.primary{
  background: rgba(45,212,191,.14);
  border-color: rgba(45,212,191,.35);
  color: var(--primary);
  font-weight:700;
}
.btn.ghost{ text-decoration:none; display:inline-flex; align-items:center; }

.table-wrap{overflow:auto;border-radius:14px;border:1px solid rgba(255,255,255,.06)}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{padding:10px 10px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:top}
th{color:var(--muted);text-align:left;background: rgba(0,0,0,.18);position:sticky;top:0}
tr:hover td{background: rgba(255,255,255,.03)}
.row-click{cursor:pointer}

.customer-box{
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
}

.split{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  margin-bottom:14px;
}
@media(min-width:980px){
  .split{grid-template-columns: 1fr 1fr;}
}

.subcard{
  background: rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:12px;
}
.subhead{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;
}

.footer{
  display:flex;
  justify-content:space-between;
  margin-top:14px;
  padding:10px 2px;
  border-top:1px solid rgba(255,255,255,.06);
}