:root{
  --bg0:#050816;
  --bg1:#0b1027;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.12);
  --txt:#e8eeff;
  --muted:rgba(232,238,255,.7);
  --accent:#7c3aed;
  --accent2:#22d3ee;
  --good:#34d399;
  --warn:#fb7185;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--txt);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(34,211,238,.25), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(52,211,153,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.bg-glow{
  position:fixed; inset:-200px;
  background: conic-gradient(from 180deg at 50% 50%, rgba(124,58,237,.12), rgba(34,211,238,.10), rgba(52,211,153,.10), rgba(251,113,133,.10), rgba(124,58,237,.12));
  filter: blur(60px);
  opacity:.35;
  pointer-events:none;
  z-index:-1;
}

.top{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(18px);
  background: rgba(5,8,22,.55);
  border-bottom:1px solid var(--line);
}
.top-inner{
  max-width:1100px;
  margin:0 auto;
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand .title{
  font-weight:950;
  letter-spacing:.2px;
  font-size:18px;
}
.brand .sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.06);
}
.dot{
  width:8px;height:8px;border-radius:999px;
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(52,211,153,.14);
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 40px;
}

.notice{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius:18px;
  padding:14px 14px;
  margin-bottom:14px;
}
.notice.warn{border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08)}
.notice-title{font-weight:900}
.notice-sub{color:var(--muted);font-size:13px;margin-top:4px}

.panel{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.panel-head{
  padding:14px 14px 12px;
  border-bottom:1px solid var(--line);
}
.controls{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.lbl{display:flex;flex-direction:column;gap:6px}
.lbl span{font-size:12px;color:var(--muted);font-weight:700}

.input{
  height:40px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--txt);
  outline:none;
}
.input:focus{
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}

.kpi{
  padding:10px 12px;
  border:1px solid rgba(34,211,238,.25);
  background: rgba(34,211,238,.08);
  border-radius:16px;
}
.kpi-label{font-size:11px;color:var(--muted);font-weight:800}
.kpi-val{
  font-family:var(--mono);
  font-size:18px;
  font-weight:950;
  margin-top:2px;
}

.status{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-weight:900;
  font-size:12px;
}
.chip.saving{border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.10)}
.chip.ok{border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.10)}
.chip.err{border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.10)}
.muted{color:var(--muted);font-size:12px}

.panel-body{padding:12px 14px 10px}

.table-wrap{
  overflow:auto;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.14);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  white-space:nowrap;
}
.table thead th{
  position:sticky;
  top:0;
  z-index:2;
  text-align:left;
  font-size:12px;
  color:rgba(232,238,255,.85);
  background: rgba(5,8,22,.72);
  backdrop-filter: blur(10px);
}
.table tbody tr:hover td{background: rgba(255,255,255,.04)}

.col-date{min-width:120px}
.col-total{min-width:90px;text-align:center}

.num{
  width:92px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  font-family:var(--mono);
  font-weight:900;
  text-align:center;
  outline:none;
}
.num:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,.16);
}

.cell-total{
  font-family:var(--mono);
  font-weight:950;
  text-align:center;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(52,211,153,.25);
  background: rgba(52,211,153,.10);
  min-width:64px;
}

.panel-foot{
  padding:12px 14px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  height:40px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid rgba(124,58,237,.45);
  background: rgba(124,58,237,.18);
  color:var(--txt);
  font-weight:950;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{background: rgba(124,58,237,.24)}
.btn.ghost{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.btn.ghost:hover{background: rgba(255,255,255,.09)}
