/* =====================================================
   MOBILE
===================================================== */

@media (max-width:760px){

  .app{
    display:block;
    min-height:100vh;
  }

  /* SIDEBAR */

  .side{
    width:100% !important;
    min-height:auto !important;
    padding:0 !important;
    position:relative;
  }

  /* BRAND */

  .brand{
    margin:0 !important;
    padding:14px 16px !important;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .brand-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .brand-title{
    min-width:0;
  }

  .brand h1{
    font-size:20px;
    margin:3px 0 0;
  }

  .brand .mark{
    font-size:10px;
  }

  /* HAMBURGER */

  .mobile-menu-btn{
    display:block !important;
    width:42px;
    height:42px;
    flex-shrink:0;
    border:1px solid rgba(255,255,255,.16);
    border-radius:8px;
    background:rgba(255,255,255,.07);
    padding:10px;
    cursor:pointer;
  }

  .mobile-menu-btn span{
    display:block;
    width:100%;
    height:2px;
    background:#fff;
    border-radius:10px;
    margin:4px 0;
    transition:transform .2s ease, opacity .2s ease;
  }

  /* X ҳолати */

  .side.menu-open .mobile-menu-btn span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }

  .side.menu-open .mobile-menu-btn span:nth-child(2){
    opacity:0;
  }

  .side.menu-open .mobile-menu-btn span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }

  /* MENU CLOSED */

  .side .nav{
    display:none !important;
  }

  .side .user-box{
    display:none !important;
  }

  /* MENU OPEN */

  .side.menu-open .nav{
    display:flex !important;
    flex-direction:column !important;
    gap:4px;
    padding:12px 14px !important;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .side.menu-open .user-box{
    display:block !important;
    margin:0 !important;
    padding:14px 18px !important;
    border-top:0;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  /* NAV LINKS */

  .side .nav a{
    width:100%;
    padding:12px 14px !important;
    font-size:15px !important;
    border-radius:7px;
    white-space:normal !important;
  }

  /* USER */

  .user-info{
    margin-bottom:10px;
  }

  .user-avatar{
    width:38px;
    height:38px;
  }

  .logout-btn{
    display:inline-block;
    padding:8px 0 2px;
  }

  /* MAIN */

  .main{
    width:100% !important;
    padding:18px 14px 28px !important;
  }

  /* PAGE HEADER */

  .pagehead{
    align-items:flex-start;
    flex-direction:column;
    margin-bottom:14px;
  }

  .pagehead h2{
    font-size:20px;
  }

  /* CARDS */

  .cards{
    grid-template-columns:1fr;
    gap:10px;
  }

  /* GRAND */

  .grand{
    flex-direction:column;
    gap:18px;
    padding:16px;
  }

  .grand > div{
    width:100%;
  }

  .grand .v{
    font-size:20px;
  }

  /* PANEL */

  .panel{
    padding:15px 14px;
    border-radius:9px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  /* FORMS */

  .grid2{
    grid-template-columns:1fr;
  }

  .field input,
  .field select{
    min-height:46px;
    font-size:16px;
  }

  /* BUTTON */

  .btn{
    min-height:44px;
    padding:10px 16px;
  }

  /* FILTERS */

  .filters{
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }

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

  .filters a{
    flex:0 0 auto;
    white-space:nowrap;
  }

  /* TABLE */

  table{
    min-width:680px;
  }

  /* LOGIN */

  .login-wrap{
    padding:16px;
  }

  .login-box{
    width:100%;
    max-width:380px;
    padding:26px 20px;
  }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width:420px){

  .main{
    padding:16px 10px 24px !important;
  }

  .brand{
    padding:12px 14px !important;
  }

  .brand h1{
    font-size:19px;
  }

  .mobile-menu-btn{
    width:40px;
    height:40px;
  }

  .panel{
    padding:13px 12px;
  }

  .card{
    padding:14px;
  }

  .card .ctotal{
    font-size:18px;
  }

  .btn{
    width:100%;
  }
}