/* ExecView – premium mock UI (no frameworks) */
:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --card:#0f1f38;
  --card2:#102543;
  --text:#e9eef7;
  --muted:#a7b4cc;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --accent:#60a5fa;
  --accent2:#22c55e;
  --danger:#fb7185;
  --warn:#fbbf24;
  --ok:#34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 700px at 20% 0%, #0f2a5a 0%, var(--bg) 60%);
  color:var(--text);
}

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

.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(96,165,250,.25), rgba(96,165,250,.05));
  border:1px solid var(--line2);
  box-shadow: var(--shadow);
  font-weight:900;
  letter-spacing:.5px;
}
.brand-title{font-weight:900; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted)}

.container{max-width:1160px; margin:0 auto; padding:18px}
.view{padding:12px 0}

.card{
  background: linear-gradient(180deg, rgba(16,37,67,.92), rgba(15,26,46,.92));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.hero{padding:22px}
.hero-top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.inner{background: linear-gradient(180deg, rgba(16,37,67,.75), rgba(15,26,46,.75))}
.card-title{font-weight:900; margin-bottom:8px}
h1{margin:0 0 8px; font-size:30px}
h2{margin:0 0 6px}
.muted{color:var(--muted)}
.mini{font-size:12px}
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.w100{width:100%}
.hidden{display:none !important}
.sep{border:none; border-top:1px solid var(--line); margin:14px 0}

.row{display:flex; align-items:center}
.space{justify-content:space-between}
.gap{gap:10px}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.grid3{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px}
.span2{grid-column: span 2}
@media (max-width: 980px){
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .span2{grid-column: auto}
  .hero-top{flex-direction:column; align-items:stretch}
}

.btn{
  appearance:none;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:800;
}
.btn:hover{background: rgba(255,255,255,.09)}
.btn.primary{
  border-color: rgba(96,165,250,.45);
  background: linear-gradient(135deg, rgba(96,165,250,.20), rgba(96,165,250,.06));
}
.btn.danger{
  border-color: rgba(251,113,133,.45);
  background: linear-gradient(135deg, rgba(251,113,133,.18), rgba(251,113,133,.06));
}
.btn.ghost{background: transparent;}

.input, .textarea, select{
  width:100%;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line2);
  color:var(--text);
  border-radius: 14px;
  padding:10px 12px;
  outline:none;
}
.textarea{resize:vertical}

.label{font-size:12px; color:var(--muted); margin:8px 0 6px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.05);
  font-size:12px;
}

.callout{
  margin-top:14px;
  padding:14px;
  border-radius: var(--radius);
  border:1px dashed rgba(96,165,250,.45);
  background: rgba(96,165,250,.06);
}
.callout-title{font-weight:900; margin-bottom:8px}

.tile-head{display:flex; gap:10px; align-items:flex-start; margin-bottom:10px}
.tile-ic{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
}

.seg{
  display:inline-flex;
  border:1px solid var(--line2);
  border-radius: 14px;
  overflow:hidden;
}
.seg-btn{
  border:none; cursor:pointer;
  background: transparent;
  color:var(--muted);
  padding:10px 12px;
  font-weight:900;
}
.seg-btn.active{color:var(--text); background: rgba(255,255,255,.08);}

.list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 460px;
  overflow:auto;
  padding-right:4px;
}
.item{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px 10px;
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.item:hover{background: rgba(255,255,255,.06)}
.item-top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.item-title{font-weight:950}
.item-sub{font-size:12px; color:var(--muted); margin-top:6px; line-height:1.3}
.dot{width:10px; height:10px; border-radius:999px; border:1px solid var(--line2)}
.dot.green{background: rgba(52,211,153,.9)}
.dot.amber{background: rgba(251,191,36,.9)}
.dot.red{background: rgba(251,113,133,.9)}
.dot.gray{background: rgba(167,180,204,.5)}

.status-btn{
  border:1px solid var(--line2);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:950;
}
.status-btn[data-status="Green"]{border-color: rgba(52,211,153,.35)}
.status-btn[data-status="Amber"]{border-color: rgba(251,191,36,.35)}
.status-btn[data-status="Red"]{border-color: rgba(251,113,133,.35)}
.status-btn.active{background: rgba(255,255,255,.09)}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  color:var(--muted);
  user-select:none;
}
.chip.active{
  color:var(--text);
  border-color: rgba(96,165,250,.45);
  background: rgba(96,165,250,.10);
}

.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 980px){ .kpi-grid{grid-template-columns: 1fr 1fr} }
@media (max-width: 560px){ .kpi-grid{grid-template-columns: 1fr} }

.kpi-label{color:var(--muted); font-size:12px; font-weight:900}
.kpi-value{font-size:26px; font-weight:950; margin-top:8px}
.kpi-foot{margin-top:6px}

.table-wrap{overflow:auto}
.table{width:100%; border-collapse:separate; border-spacing:0 8px}
.table th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  font-weight:950;
  padding:8px 10px;
}
.table td{
  padding:10px 10px;
  background: rgba(255,255,255,.04);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.table tr td:first-child{border-left:1px solid var(--line); border-top-left-radius:14px; border-bottom-left-radius:14px}
.table tr td:last-child{border-right:1px solid var(--line); border-top-right-radius:14px; border-bottom-right-radius:14px}
.table tbody tr{cursor:pointer}
.table tbody tr:hover td{background: rgba(255,255,255,.06)}

.pre{
  white-space: pre-wrap;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px;
  min-height: 62px;
}

.empty{
  display:grid; place-items:center;
  min-height: 360px;
  border:1px dashed var(--line2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.empty-title{font-weight:950; margin-bottom:6px}

.drawer{
  position:fixed; inset:0;
  background: rgba(0,0,0,.45);
  display:flex;
  justify-content:flex-end;
  padding:14px;
}
.drawer-card{
  width:min(580px, 100%);
  height:calc(100vh - 28px);
  overflow:auto;
}
.drawer-title{font-weight:950; font-size:18px}
.drawer-body{margin-top:10px}
