:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#111827;
  --primary-2:#1f2937;
  --shadow:0 10px 25px rgba(17,24,39,.08);
  --radius:16px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

/* container */

.container{
  max-width:1100px;
  margin:auto;
  padding:16px;
}

/* HEADER */

header{
  position:sticky;
  top:0;
  background:rgba(246,247,251,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  z-index:100;
}

.header-inner{
  max-width:1100px;
  margin:auto;
  padding:12px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.brand h2{
  margin:0;
  font-size:18px;
}

.brand .sub{
  font-size:12px;
  color:var(--muted);
}

nav{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

nav a{
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:white;
  font-size:13px;
  color:var(--text);
}

/* CARD */

.card{
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:16px;
  margin:14px 0;
}

/* KPI */

.kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

@media (max-width:700px){
  .kpis{grid-template-columns:1fr}
}

.kpi{
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}

.kpi .label{
  font-size:12px;
  color:var(--muted);
}

.kpi .value{
  font-size:18px;
  font-weight:700;
}

/* TABLE */

.table-wrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--line);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:600px;
}

th,td{
  padding:10px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

th{
  background:#fafafa;
}

/* FORM */

label{
  font-size:13px;
  color:var(--muted);
}

input,select,textarea{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--line);
  font-size:15px;
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width:700px){
  .grid{grid-template-columns:1fr}
}

/* BUTTONS */

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--primary);
  background:var(--primary);
  color:white;
  text-decoration:none;
  font-size:14px;
  cursor:pointer;
}

.btn.secondary{
  background:white;
  color:var(--text);
}

/* FLASH */

.flash{
  padding:12px;
  border-radius:12px;
  margin-bottom:10px;
}

.flash.success{background:#e9f7ef;}
.flash.error{background:#fdecec;}
