:root{
  --green:#2f8427;
  --green-dark:#1f7419;
  --soft:#f5f6f4;
  --line:#e5e5e5;
  --text:#151515;
  --muted:#777;
  --yellow:#ffd95c;
  --red:#f36c63;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  min-height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#f4f4f4;
  color:var(--text);

}

body{
  display:flex;
  justify-content:center;
}

.phone{
  width:100%;
  max-width:430px;
  min-height:100vh;
  background:#fff;
}

.screen{

  background:#fff;
  position:relative;
  padding-bottom:86px;

}

.topbar{
  height:64px;
  display:grid;
  grid-template-columns:48px 1fr 88px;
  align-items:center;
  padding:8px 14px 0;
    position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  
}
.topbar.noicons{
  grid-template-columns:48px 1fr;
}

.topbar h1{
  margin:0;
  text-align:center;
  font-size:22px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.3px;
}

.iconBtn{
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  color:#111;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.iconBtn span{
  width:19px;
  height:2px;
  background:#111;
  display:block;
  position:absolute;
  left:9px;
  border-radius:2px;
}

.iconBtn span:nth-child(1){ top:11px; }
.iconBtn span:nth-child(2){ top:18px; }
.iconBtn span:nth-child(3){ top:25px; }

.topIcons{
  display:flex;
  justify-content:flex-end;
  gap:6px;
}

.filterIcon:before{
  content:"";
  width:18px;
  height:18px;
  border:2px solid #111;
  border-bottom:0;
  clip-path:polygon(0 0,100% 0,60% 52%,60% 100%,40% 100%,40% 52%);
}

.gridIcon{
  background:
    radial-gradient(circle,#111 2px,transparent 3px) 10px 10px/13px 13px no-repeat,
    radial-gradient(circle,#111 2px,transparent 3px) 23px 10px/13px 13px no-repeat,
    radial-gradient(circle,#111 2px,transparent 3px) 10px 23px/13px 13px no-repeat,
    radial-gradient(circle,#111 2px,transparent 3px) 23px 23px/13px 13px no-repeat;
}

.zones{
  display:flex;
  gap:10px;
  padding:4px 14px 14px;
  overflow-x:auto;
  scrollbar-width:none;
    position:sticky;
  top:64px;
  z-index:50;
  background:#fff;
}

.zones::-webkit-scrollbar{ display:none; }

.zone{
  flex:0 0 auto;
  border:0;
  min-width:120px;
  padding:9px 16px;
  border-radius:999px;
  background:#f0f0f0;
  color:#202020;
  font-weight:700;
  font-size:14px;
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.04);
}

.zone.is-active{
  color:#fff;
  background:linear-gradient(180deg,#3e952f,#2d801f);
  box-shadow:0 5px 10px rgba(45,128,31,.2);
}

.mapBox{
  margin:0 10px;
  padding:18px;
  background:#f3f1ec;
  border:1px solid #ddd6cc;
  border-radius:12px;
  overflow:hidden;
  position:relative;
  min-height:auto;
  height:auto;
}

.mapBox:before,
.mapBox:after{
  display:none;
}

.tablesMap{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  height:auto;
}

.table{
  position:relative;
  left:auto !important;
  top:auto !important;
  transform:none !important;

  width:100%;
  aspect-ratio:1/1;
  height:auto;
border:1px solid silver;
  border-radius:18px;
}

.table .num{ line-height:1; font-size:20px;font-weight:bold; }

.table .time{
  margin-top:3px;
  font-size:9px;
  line-height:1.05;
  font-weight:800;
  display:block;
}

.table.booked{
  background:linear-gradient(180deg,#ffe86a,#ffd23b);
  color:#111;
}

.table.empty{
  color:#111;
  background:linear-gradient(180deg,#f9f9f9,#e7e7e7);
}

.table.reserved{

    background:linear-gradient(180deg,#ff7770,#ee5d56);
  color:#111;

}

.table.danger{
}

.table.is-selected{
  outline:3px solid rgba(47,132,39,.35);
  outline-offset:3px;
}



.selectedPanel{
  position:fixed;
  left:50%;
  bottom:65px;
  transform:translateX(-50%) translateY(120%);
  width:100%;
  max-width:430px;
  background:#fff;
  border-radius:24px 24px 0 0;
  padding:19px 16px 17px;
  box-shadow:0 -8px 24px rgba(0,0,0,.13);
  z-index:5;
  transition:transform .22s ease;
  pointer-events:none;
}

.selectedPanel.is-open{
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

.selectedInfo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px;
}

.selectedInfo strong{
  font-size:23px;
  letter-spacing:-.3px;
  margin-right:12px;
}

.guests{
  color:#333;
  font-size:14px;
}

.opened{
  color:var(--green-dark);
  font-size:14px;
  font-weight:700;
}

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

.panelBtn{
  height:50px;
  border-radius:9px;
  border:0;
  font-weight:800;
  font-size:14px;
}

.panelBtn.secondary{
  background:#fff;
  border:1px solid #d7d7d7;
  color:#222;
}

.panelBtn.primary{
  color:#fff;
  background:linear-gradient(180deg,#338b29,#24761b);
  box-shadow:0 5px 12px rgba(36,118,27,.22);
}

.bottomNav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:100%;
  max-width:430px;
  height:66px;
  background:#fff;
  border-top:1px solid #e7e7e7;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  z-index:99;
}

.navItem{
  border:0;
  background:#fff;
  color:#777;
  font-size:11px;
  font-weight:700;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
}

.navIcon{
  font-size:18px;
  line-height:1;
}

.navItem.active{
  color:var(--green);
}

@media (max-width:360px){
  .table{
    width:52px;
    height:52px;
    font-size:20px;
    border-radius:13px;
  }

  .zone{
    min-width:auto;
    padding:8px 13px;
    font-size:13px;
  }

  .mapBox{
    margin:0 8px;
    min-height:400px;
  }
}
