/* Minimal, clean admin styling */
:root{
  --bg:#0f1115; --text:#eef1f6; --muted:#b7bfd3; --card:#141821; --border:#2a3142;
  --accent:#4ea1ff; --ok:#daf5dc; --warn:#fff6cc; --err:#ffe1e1;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial}

.wrap{max-width:1200px;margin:0 auto;padding:16px}
.head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.head__title{display:flex;gap:10px;align-items:center}
.head__logo{width:40px;height:40px;border-radius:10px;background:#1a2030;display:grid;place-items:center;font-size:20px}
.head h1{margin:0;font-size:24px}
.head p{margin:0;color:var(--muted);font-size:12px}
.head__controls{display:flex;gap:8px;align-items:center}
.head__controls select,.head__controls input{background:#0f131e;color:var(--text);border:1px solid var(--border);border-radius:10px;padding:8px 10px}

.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 12px}
@media (max-width:900px){ .kpis{grid-template-columns:1fr 1fr} }
@media (max-width:520px){ .kpis{grid-template-columns:1fr} }
.kpi{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:12px}
.kpi__label{font-size:12px;color:var(--muted)}
.kpi__value{font-size:22px;font-weight:800}
.kpi__sub{font-size:12px;color:var(--muted)}

.tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;position:sticky;top:0;background:var(--bg);padding:8px 0;z-index:5}
@media (max-width:900px){ .tabs{grid-template-columns:repeat(3,1fr)} }
@media (max-width:520px){ .tabs{grid-template-columns:repeat(2,1fr)} }
.tab{padding:12px;border-radius:12px;background:var(--card);border:1px solid var(--border);cursor:pointer;font-weight:700;text-align:center}
.tab.active{outline:2px solid var(--accent)}

.panel{display:none;margin-top:8px}
.panel.active{display:block}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px;margin-bottom:10px}
.card__title{font-weight:800;margin-bottom:8px}
.list{margin:0;padding-left:18px;line-height:1.6}
.list.small{font-size:13px}
.ai{margin-top:8px;color:var(--muted);font-size:13px}
.divider{height:1px;background:var(--border);margin:12px 0}

.grid.two{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.grid.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
@media (max-width:900px){ .grid.two{grid-template-columns:1fr} .grid.three{grid-template-columns:1fr} }

.btn{background:var(--accent);color:#fff;border:none;border-radius:12px;padding:10px 12px;font-weight:800;text-decoration:none;text-align:center;display:inline-block}
.btn.outline{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn.full{width:100%}
.row{display:flex;align-items:center}
.gap{gap:8px}
.mt{margin-top:8px}

.product{background:#1a2030;border:1px solid var(--border);border-radius:14px;padding:10px}
.product__name{font-weight:700}
.product__meta{color:var(--muted);font-size:12px}
.product__stock{font-size:12px;margin:6px 0}

.orders{display:flex;flex-direction:column;gap:8px}
.order{display:flex;justify-content:space-between;align-items:center;background:#1a2030;border:1px solid var(--border);border-radius:14px;padding:10px}
.order .right{text-align:right}
.pill{padding:2px 8px;border-radius:999px;font-weight:700;color:#111;font-size:12px}
.pill.paid{background:var(--ok)}
.pill.waiting{background:var(--warn)}

.note{margin-top:6px;color:var(--muted);font-size:12px}
.col-actions .btn{margin-bottom:8px}

.foot{text-align:center;color:var(--muted);font-size:12px;padding:16px 0}
