/* HANBIT ERP RESPONSIVE V42 */

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

#hb-ui-prototype-root,
#hb-ui-prototype-root .hb-proto-shell,
#hb-ui-prototype-root .hb-workspace,
#hb-ui-prototype-root .hb-main,
#hb-ui-prototype-root .hb-content{
  min-width:0;
  max-width:100%;
}

.hb-mobile-menu-button{
  display:none;
  position:fixed;
  top:10px;
  left:10px;
  z-index:12060;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border:1px solid #dce5ee;
  border-radius:9px;
  background:#fff;
  color:#18334f;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(20,45,70,.12);
}

.hb-mobile-nav-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:12030;
  background:rgba(8,25,42,.42);
}

#hb-ui-prototype-root .hb-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

@media (max-width:1199px){

  #hb-ui-prototype-root .hb-content{
    padding-left:16px;
    padding-right:16px;
  }

  #hb-ui-prototype-root .hb-action-ribbon-buttons{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
  }

  #hb-ui-prototype-root .hb-action-ribbon-buttons button{
    flex:0 0 auto;
  }

  #hb-ui-prototype-root .hb-my-work-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .hb-plus-excel-options{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #hb-ui-prototype-root .hb-table{
    min-width:900px;
  }
}

@media (max-width:1024px){

  .hb-mobile-menu-button{
    display:flex;
  }

  .hb-mobile-nav-backdrop{
    display:block;
    opacity:0;
    visibility:hidden;
    transition:.2s ease;
  }

  html.hb-mobile-nav-open .hb-mobile-nav-backdrop{
    opacity:1;
    visibility:visible;
  }

  #hb-ui-prototype-root .hb-responsive-sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(82vw,300px)!important;
    height:100dvh!important;
    z-index:12050!important;
    overflow-y:auto;
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:20px 0 40px rgba(8,28,48,.20);
  }

  html.hb-mobile-nav-open
  #hb-ui-prototype-root .hb-responsive-sidebar{
    transform:translateX(0);
  }

  #hb-ui-prototype-root .hb-workspace,
  #hb-ui-prototype-root .hb-main,
  #hb-ui-prototype-root main{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
  }

  #hb-ui-prototype-root .hb-content{
    width:100%;
    padding:66px 14px 20px!important;
  }

  .hb-plus-drawer{
    width:min(92vw,480px)!important;
  }
}

@media (max-width:767px){

  #hb-ui-prototype-root .hb-content{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  #hb-ui-prototype-root .hb-content-head{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  #hb-ui-prototype-root .hb-action-ribbon{
    display:block;
    padding:9px;
  }

  #hb-ui-prototype-root .hb-action-ribbon-left{
    min-width:0;
    margin-bottom:8px;
    padding:0 0 8px;
    border-right:0;
    border-bottom:1px solid #e7edf3;
  }

  #hb-ui-prototype-root .hb-action-ribbon-buttons{
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
  }

  #hb-ui-prototype-root .hb-action-ribbon-buttons button{
    flex:0 0 auto;
    min-height:40px;
    padding:0 12px;
  }

  #hb-ui-prototype-root .hb-my-work-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:8px;
  }

  #hb-ui-prototype-root .hb-plus-bulkbar{
    flex-direction:column;
    align-items:flex-start;
  }

  #hb-ui-prototype-root .hb-plus-bulkbar > div:last-child{
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
  }

  #hb-ui-prototype-root .hb-plus-bulkbar button{
    flex:0 0 auto;
    min-height:38px;
  }

  #hb-ui-prototype-root .hb-table{
    min-width:820px;
  }

  #hb-ui-prototype-root .hb-table th,
  #hb-ui-prototype-root .hb-table td{
    white-space:nowrap;
  }

  #hb-ui-prototype-root .hb-row-actions{
    min-width:175px;
  }

  #hb-ui-prototype-root .hb-row-actions button{
    min-height:34px;
  }

  #hb-ui-prototype-root .hb-form-grid,
  #hb-ui-prototype-root .hb-field-grid,
  #hb-ui-prototype-root .hb-filter-grid{
    grid-template-columns:1fr!important;
  }

  #hb-ui-prototype-root .hb-form-bottom-actions{
    position:sticky;
    bottom:0;
    z-index:20;
    margin-left:-10px;
    margin-right:-10px;
    padding:9px 10px;
    background:#fff;
    box-shadow:0 -5px 16px rgba(20,45,70,.08);
  }

  #hb-ui-prototype-root .hb-form-bottom-actions button{
    min-height:42px;
  }

  .hb-plus-drawer{
    width:100vw!important;
    max-width:none!important;
  }

  .hb-plus-modal{
    width:calc(100vw - 20px)!important;
    max-width:none!important;
    max-height:90dvh!important;
  }

  .hb-plus-excel-options{
    grid-template-columns:1fr!important;
  }

  .hb-plus-detail-summary{
    grid-template-columns:1fr!important;
  }
}

@media (max-width:480px){

  #hb-ui-prototype-root .hb-my-work-grid{
    grid-template-columns:1fr;
  }

  #hb-ui-prototype-root .hb-content{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  .hb-plus-drawer-body{
    padding:12px;
  }

  .hb-plus-section dl{
    grid-template-columns:85px 1fr;
  }
}

@media (hover:none) and (pointer:coarse){

  #hb-ui-prototype-root button{
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
}
