:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#0b5b57;
  --brand2:#0a4a46;
  --danger:#b91c1c;
  --ok:#166534;
  --shadow:0 10px 25px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky;
  top:0;
  background:linear-gradient(90deg, #ffffff, #f5fffe);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  z-index:10;
}

.hamburger{
  border:0;
  background:transparent;
  font-size:22px;
  cursor:pointer;
  margin-right:10px;
}

.drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  z-index:80;
}
.drawer-overlay.show{ display:block; }

.drawer{
  position:fixed;
  top:0;
  left:-280px;
  width:280px;
  height:100%;
  background:#fff;
  z-index:90;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:left .2s ease;
}
.drawer.open{ left:0; }

.drawer a{
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  background:#f6f7f8;
}
.drawer a:hover{ background:#eaecee; }

.top-right .chip{
  background:#eaf4f3;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}

@media (min-width: 900px){
  /* desktop: drawer default hidden but accessible via hamburger */
}


.brand{display:flex; gap:10px; align-items:center}
.logo{
  font-weight:900;
  color:var(--brand);
  font-size:18px;
}
.sub{color:var(--muted); font-size:12px}

.nav{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.nav a{
  text-decoration:none;
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{background:#eef7f6}

.container{max-width:1200px; margin:18px auto; padding:0 14px}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
}
.card.mini{padding:12px}
.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.grid{display:grid; gap:12px; grid-template-columns:repeat(3, minmax(0,1fr))}
.grid2{display:grid; gap:12px; grid-template-columns:repeat(2, minmax(0,1fr))}
.full{grid-column:1/-1}
.mt{margin-top:12px}
.gap{gap:8px}

@media(max-width:900px){
  .grid{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
}

.kpi{display:flex; flex-direction:column; gap:6px}
.kpi-label{color:var(--muted); font-size:12px}
.kpi-value{font-size:34px; font-weight:900; color:var(--brand)}
.kpi-sub{color:var(--muted); font-size:12px}

.form{display:flex; flex-direction:column; gap:10px}
.form label{font-size:12px; color:var(--muted)}
input,select,textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  background:#fff;
}
input:focus,select:focus,textarea:focus{border-color:#b7d9d7}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
}
.btn-sm{padding:7px 10px; border-radius:10px; font-weight:700}
.btn-primary{
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
  border:none;
}
.btn-ghost{background:#fff}
.btn-ghost:hover{background:#f3f4f6}

.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  margin-bottom:10px;
}
.alert-danger{border-color:#f0b4b4; background:#fff5f5; color:var(--danger)}
.alert-ok{border-color:#bde5c6; background:#f4fff7; color:var(--ok)}

.table-wrap{overflow:auto; border:1px solid var(--line); border-radius:14px}
.table{width:100%; border-collapse:collapse; min-width:900px}
.table th,.table td{padding:10px 10px; border-bottom:1px solid var(--line); text-align:left; font-size:13px}
.table thead th{font-size:12px; color:var(--muted); background:#fafafa}

.chip{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#f1faf9;
  color:var(--brand);
  font-size:12px;
  font-weight:800;
}

.filters{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr auto;
  gap:10px;
}
@media(max-width:1000px){
  .filters{grid-template-columns:1fr; }
}

.muted{color:var(--muted)}
.footer{
  border-top:1px solid var(--line);
  margin-top:18px;
  padding:14px 16px;
  color:var(--muted);
  text-align:center;
}
.logout{margin:0}
.auth-card{max-width:460px; margin:40px auto}
.row{display:flex; align-items:center}


.req{color:#b91c1c;font-weight:700}

.barWrap{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.barRow{display:grid;grid-template-columns: 240px 1fr 60px;gap:10px;align-items:center}
.barLabel{font-size:12px;color:#111;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.barTrack{height:14px;background:#eef2f2;border-radius:999px;overflow:hidden}
.barFill{height:14px;background:#0b5b57;border-radius:999px}
.barVal{font-weight:700;text-align:right}



.table-wrap{overflow:auto}
.orderBox{width:70px}
.alert.ok{background:#eaf4f3;border:1px solid #cfe7e5;padding:8px;border-radius:10px;margin:10px 0}
.alert.err{background:#fee2e2;border:1px solid #fecaca;padding:8px;border-radius:10px;margin:10px 0}
