#mobileMenuBtn,
#mobileOverlay,
#mobileSide{
  display:none;
}

@media(max-width:768px){

  body{
    margin:0!important;
    overflow-x:hidden!important;
  }

  #mobileMenuBtn{
    display:block!important;
    position:fixed;
    top:10px;
    left:10px;
    z-index:99999;
    background:#d88be8;
    color:#000;
    border:0;
    border-radius:10px;
    padding:8px 12px;
    font-size:26px;
    font-weight:900;
  }

  #mobileOverlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:99998;
  }

  #mobileSide{
    display:block;
    position:fixed;
    top:0;
    left:-320px;
    width:300px;
    height:100vh;
    background:#111;
    color:#fff;
    z-index:99999;
    transition:.25s;
    overflow-y:auto;
  }

  .mobileHeader{
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px;
    border-bottom:1px solid #333;
  }

  .mobileLink{
    display:block;
    padding:15px 20px;
    color:#fff;
    text-decoration:none;
    border-bottom:1px solid #333;
    font-weight:700;
  }

  .mobileLink:hover{
    background:#d88be8;
    color:#000;
  }

  header.top .links,
  header.top .head-tools{
    display:none!important;
  }

  header.top{
    padding-left:70px!important;
  }
}

.ksSwitch{
  position:relative;
  display:inline-block;
  width:54px;
  height:30px;
}
.ksSwitch input{
  display:none;
}
.ksSwitch span{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#bdbdbd;
  border-radius:30px;
  transition:.2s;
}
.ksSwitch span:before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:3px;
  top:3px;
  background:white;
  border-radius:50%;
  transition:.2s;
}
.ksSwitch input:checked + span{
  background:#d88be8;
}
.ksSwitch input:checked + span:before{
  transform:translateX(24px);
}

@media(max-width:768px){
  div:has(> #e_price){
    display:grid!important;
    grid-template-columns:44px 1fr 44px 86px!important;
    gap:6px!important;
    align-items:center!important;
  }

  div:has(> #e_price) button{
    min-width:0!important;
    height:44px!important;
    padding:6px!important;
    font-size:18px!important;
    border-radius:10px!important;
  }

  #e_price{
    display:block!important;
    width:100%!important;
    min-width:70px!important;
    height:44px!important;
    padding:8px!important;
    font-size:16px!important;
    text-align:center!important;
    background:white!important;
    color:#111!important;
    border:1px solid #ccc!important;
    border-radius:10px!important;
  }

  div:has(> #e_price) button:last-child{
    font-size:13px!important;
    line-height:15px!important;
  }
}

@media(max-width:768px){
  input[type="password"]{
    width:100%!important;
    height:56px!important;
    padding:12px 16px!important;
    font-size:18px!important;
    border:1px solid #ddd!important;
    border-radius:14px!important;
    background:white!important;
    color:#111!important;
    box-sizing:border-box!important;
  }

  input[type="password"] + button,
  button:has(+ input[type="password"]),
  .auth-grid button,
  .panel button{
    min-height:52px!important;
  }
}

@media(max-width:768px){

.password-wrap{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
}

.password-wrap input{
  flex:1!important;
  width:auto!important;
  min-width:0!important;
  height:56px!important;
  background:#fff!important;
  border:1px solid #ddd!important;
  border-radius:14px!important;
  padding:0 16px!important;
  font-size:16px!important;
}

.password-wrap .show-pass{
  width:90px!important;
  min-width:90px!important;
  height:56px!important;
  border-radius:14px!important;
}

}

@media(max-width:768px){
  #productEditBox{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:999999!important;
    background:rgba(0,0,0,.65)!important;
    padding:18px!important;
    overflow:auto!important;
    margin:0!important;
    border:0!important;
  }

  #productEditBox::before{
    content:"×";
    position:fixed;
    top:14px;
    right:18px;
    width:44px;
    height:44px;
    background:#111;
    color:#fff;
    border-radius:50%;
    font-size:34px;
    line-height:40px;
    text-align:center;
    font-weight:bold;
    z-index:1000000;
  }

  #productEditBox > *{
    max-width:560px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  #productEditBox{
    padding-top:75px!important;
  }
}

#editCloseBtn{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  width:54px!important;
  height:54px!important;
  border-radius:50%!important;
  border:0!important;
  background:#111!important;
  color:white!important;
  font-size:38px!important;
  font-weight:bold!important;
  line-height:60px!important;
  z-index:10000000!important;
}

#productEditBox::before{
  display:none!important;
}


#editPopupCloseOnly{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  width:58px!important;
  height:58px!important;
  border-radius:50%!important;
  border:0!important;
  background:#111!important;
  color:#fff!important;
  font-size:42px!important;
  font-weight:900!important;
  line-height:52px!important;
  z-index:2147483647!important;
}


.miniPriceSaveBtn{
  width:60px!important;
  min-width:60px!important;
  height:60px!important;
  padding:0!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:0!important;
  font-size:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}


.miniPriceStepBtn{
  width:60px!important;
  min-width:60px!important;
  height:54px!important;
  padding:0!important;
  font-size:24px!important;
}

.miniPriceStepBtn:disabled{
  opacity:.35!important;
}

.miniPriceSaveBtn{
    width:72px !important;
    min-width:72px !important;
    height:72px !important;
    font-size:48px !important;
}

.miniPriceSaveBtn *{
    font-size:48px !important;
}


.miniPriceSaveBtn{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    outline:none !important;

    width:80px !important;
    min-width:80px !important;
    height:80px !important;

    padding:0 !important;
    margin:0 !important;

    font-size:60px !important;
    line-height:1 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.miniPriceSaveBtn *{
    font-size:60px !important;
    border:none !important;
    box-shadow:none !important;
    background:transparent !important;
}



#adminLogoutBtn{
  display:none!important;
}

#adminSidebarLogoutItem{
  width:100%!important;
  background:transparent!important;
  color:#ff6b6b!important;
  border:0!important;
  border-bottom:1px solid #2a2a2a!important;
  padding:18px 32px!important;
  text-align:left!important;
  font-size:18px!important;
  font-weight:800!important;
  border-radius:0!important;
}

tr button{
  min-width:54px!important;
  min-height:54px!important;
}

tr input[type="number"][readonly]{
  background:#f5f5f5!important;
  color:#111!important;
}

.priceReallyLocked{
  pointer-events:none!important;
  background:#f3f3f3!important;
  color:#111!important;
  border:1px solid #ddd!important;
}


.tablePriceLocked{
  pointer-events:none!important;
  background:#f3f3f3!important;
  color:#111!important;
}

.priceReallyLocked{
  pointer-events:none!important;
  background:#f3f3f3!important;
  color:#111!important;
  border:1px solid #ddd!important;
}


/* Move logo/name close to menu button */
.top{
  justify-content:flex-start!important;
  gap:14px!important;
}

.top .brand{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}

.top .brand img{
  width:48px!important;
  height:48px!important;
}

.top .brand span{
  font-size:24px!important;
  white-space:nowrap!important;
}
