:root{
  --bg:#f3f6f2;
  --card:#ffffff;
  --card-soft:#f7faf6;
  --ink:#142117;
  --muted:#667364;
  --line:#dde6da;
  --line-strong:#cfdccd;
  --brand:#1e8a4e;
  --brand-dark:#17693b;
  --brand-soft:#eaf6ef;
  --accent:#d83a2e;
  --accent-soft:#fff0ee;
  --pill:#eef7e5;
  --shadow:0 18px 44px rgba(18,33,23,.08);
  --shadow-lg:0 28px 70px rgba(18,33,23,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:
  radial-gradient(circle at top left, rgba(30,138,78,.07), transparent 20%),
  linear-gradient(180deg,#f7faf6 0%,#f2f6f1 100%);color:var(--ink)}
body.admin-ui,
body.admin-ui button,
body.admin-ui input,
body.admin-ui select,
body.admin-ui textarea,
body.admin-ui table,
body.admin-ui .field,
body.admin-ui .btn,
body.admin-ui .pill,
body.admin-ui .alert{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
}
a{color:inherit}
.wrap{display:flex;min-height:100vh;background:#f6f7f9}
.side{
  width:256px;
  background:#f5f6f8;
  color:#111827;
  border-right:1px solid #e5e7eb;
  padding:18px 8px 18px 12px;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  box-shadow:none;
  scrollbar-width:thin;
  scrollbar-color:#d1d5db transparent;
}
.side::-webkit-scrollbar{width:8px}
.side::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:999px}
.side::-webkit-scrollbar-track{background:transparent}
.side-brand{
  padding:4px 4px 22px;
  border-bottom:0;
  margin-bottom:6px;
}
.side .logo{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:18px;
  font-weight:800;
  margin-bottom:6px;
  letter-spacing:-.02em;
  color:#111827;
}
.side .logo img{
  height:28px;
  width:auto;
  max-width:96px;
  object-fit:contain;
}
.nav{
  display:grid;
  gap:8px;
  margin-top:0;
}
.nav-group{
  display:grid;
  gap:3px;
  padding:0;
  border-radius:0;
  background:transparent;
  border:0;
}
.nav-group-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:14px 2px 8px;
  background:transparent;
  border:0;
  color:#969ba3;
  cursor:pointer;
  text-align:left;
}
.nav-group-title{
  font-size:14px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
}
.nav-group--root{
  padding:0;
  background:transparent;
  border:0;
}
.nav-group-caret{
  width:14px;
  height:14px;
  color:#9ca3af;
  transition:transform .16s ease,color .16s ease;
}
.nav-group.is-open .nav-group-caret{
  transform:rotate(90deg);
  color:rgba(232,243,232,.72);
}
.nav-list{
  display:grid;
  gap:2px;
}
.nav-group.is-collapsed .nav-list{
  display:none;
}
.nav a{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:40px;
  padding:9px 12px;
  border-radius:8px;
  text-decoration:none;
  color:#171a1f;
  font-size:15px;
  font-weight:500;
  border:1px solid transparent;
  transition:all .16s ease;
  position:relative;
}
.nav a:hover{
  background:#fff;
  color:#0f172a;
  border-color:#e5e7eb;
}
.nav a.active{
  background:#fff;
  color:#050505;
  border-color:#e3e5e8;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  font-weight:800;
}
.nav a.active::before{display:none}
.nav-icon{
  width:19px;
  height:19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 19px;
  color:currentColor;
}
.nav-icon svg{
  width:19px;
  height:19px;
  display:block;
  stroke-width:2;
}
.side-meta{
  color:#8f959e;
  font-size:12px;
  line-height:1.5;
  padding-left:43px;
}
.main{flex:1;padding:24px 24px 34px;max-width:1540px;margin:0 auto}
.top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px;flex-wrap:wrap}
.top h1{margin:0;font-size:28px;line-height:1.04;letter-spacing:-.02em;font-weight:700}
.muted{color:var(--muted);font-size:13px;line-height:1.5}
.card{
  background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.field{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:#fbfdfb;
  color:var(--ink);
  font:inherit;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field:focus{
  outline:none;
  border-color:rgba(30,138,78,.45);
  box-shadow:0 0 0 4px rgba(30,138,78,.10);
  background:#fff;
}
textarea.field{resize:vertical;min-height:110px}
label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px;letter-spacing:.02em;text-transform:uppercase}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:10px;
  padding:10px 14px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;
  background:#f3f6f1;
  color:var(--ink);
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
  box-shadow:none;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(18,33,23,.06);border-color:#d8e1d6}
.btn.primary{background:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(30,138,78,.16)}
.btn.primary:hover{background:var(--brand-dark);border-color:transparent}
.btn.danger{background:#fcecea;color:#a3382f;border-color:#f4c8c3}
.btn.small{padding:7px 10px;font-size:12px;border-radius:8px}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  margin:0;
  font-size:14px;
  color:#000;
}
.table th,.table td{
  padding:14px 10px;
  border-bottom:1px solid #d9d9d9;
  text-align:left;
  vertical-align:middle;
  font-weight:400;
}
.table th{
  background:#000;
  color:#fff;
  font-size:15px;
  font-weight:400;
  border:0;
  white-space:nowrap;
  vertical-align:middle;
  text-transform:none;
  letter-spacing:0;
  position:static;
}
.table th:first-child{border-top-left-radius:14px;padding-left:24px}
.table th:last-child{border-top-right-radius:14px;padding-right:24px}
.table th a{color:#fff;text-decoration:none}
.table td{background:#fff}
.table tbody td:first-child{padding-left:8px}
.table tr:hover td{background:#fcfcfc}
.pill{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:var(--pill);
  color:#245234;
  font-size:12px;
  font-weight:600;
  border:1px solid #d9e9d3;
}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.alert{padding:12px 14px;border-radius:14px;background:#fff7e6;border:1px solid #ffdca8;margin-bottom:12px}
.public-shell{max-width:1180px;margin:0 auto;padding:18px}
.hero{background:#14351f;color:#fff;border-radius:18px;padding:26px;margin-bottom:16px}
.branch-card,.item-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.item-img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin-bottom:10px;background:#eef2ea;border:1px solid var(--line)}
.item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.sticky-order{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:30;width:min(420px,calc(100vw - 28px));background:var(--accent);color:#fff;text-decoration:none;border-radius:999px;padding:14px 18px;text-align:center;font-weight:900;box-shadow:0 16px 40px rgba(0,0,0,.25)}

.stat-card{
  position:relative;
  overflow:hidden;
  min-height:146px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
}
.stat-card::after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border-radius:50%;
  right:-34px;
  top:-34px;
  background:radial-gradient(circle, rgba(30,138,78,.16), rgba(30,138,78,0));
}
.stat-label{
  color:#61715f;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.stat-value{
  font-size:42px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.03em;
}
.stat-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#61715f;
  font-size:13px;
}
.section-panel{
  display:grid;
  gap:16px;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.panel-head h3,.card h3{
  margin:0;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.02em;
}
.metric-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.metric-tile{
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#f8fbf7 100%);
}
.metric-tile strong{display:block;font-size:28px;line-height:1;font-weight:700;margin-top:10px}
.metric-tile span{color:var(--muted);font-size:13px}
.page-note{
  padding:15px 16px;
  border:1px solid #dfe8d8;
  background:linear-gradient(180deg,#fbfdfb 0%,#f5f9f4 100%);
  border-radius:18px;
}
.table-wrap{overflow:auto;border-radius:14px 14px 0 0;border:0;background:#fff}
.toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.price-card-lite{
  border:1px solid #e6ece4;
  border-radius:18px;
  padding:16px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfb 100%);
}
@media(max-width:1024px){
  .side{width:224px}
}
@media(max-width:760px){
  .wrap{display:block;min-height:100vh}
  .side{
    position:fixed;
    top:0;
    left:0;
    z-index:1001;
    width:min(84vw,304px);
    height:100vh;
    border-right:1px solid #e5e7eb;
    border-bottom:0;
    box-shadow:22px 0 70px rgba(17,24,39,.22);
    transform:translateX(-105%);
    transition:transform .22s ease;
    padding-top:76px;
  }
  body.admin-sidebar-open .side{transform:translateX(0)}
  body.admin-sidebar-open{overflow:hidden}
  .nav-group{gap:3px}
  .nav-list{grid-template-columns:1fr;gap:3px}
  .main{padding:78px 14px 18px}
  .top h1{font-size:26px}
  .table{font-size:13px}
  .table th{position:static}
}
