body {
  font-size: .875rem;
  max-height: 100vh;
  overflow-x: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/* for every change grid, anitmation */
.row [class*='col-'] {
    transition: all 0.5s ease-in-out;
}

.clickable {
    cursor: pointer;
}

.come-from-modal.left .modal-dialog,
.come-from-modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 450px;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.come-from-modal.left .modal-content,
.come-from-modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0px;
}

.come-from-modal.left .modal-body,
.come-from-modal.right .modal-body {
    padding: 15px 15px 80px;
}
.come-from-modal.right.fade .modal-dialog {
    right: 0px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.come-from-modal.right.fade.in .modal-dialog {
    right: 0;
}

/*
 * Sidebar
 */

#sidebarMenu{
}

.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  background-color: #FFFFFF;
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 0rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  padding-top:3vh;
  padding-bottom:3vh;
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  background-color: #EBF6FE;
  color: #229BE6;
  border-right: 2px solid #229BE6; 
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

#sidebarMenu > .position-sticky > .nav > .nav-item > .nav-link > i {
  font-size: 1.5rem;
}

@media (max-width: 767.98px) {
  #sidebarMenu > .position-sticky > .nav > .nav-item > .nav-link > i {
    font-size: 1.25rem;
  }
  #sidebarMenu > .position-sticky > .nav > .nav-item > .nav-link {
    padding: 1rem 0 1rem 0;
  }

}
/*
 * Navbar
 */

.navbar {
  background-color: #FFFFFF;
}

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}


.nav-bar-text{
  display:none;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;

  padding-left: 1rem;
}

/*
 * top nav
 */
.top-nav{
  font-size: 1.25rem;
}

/*
 * Main
 */

#main{
  max-height: 90vh;
}


/*
 * data-table
 */

.data-table-container{

}

.data-table-background{
  background-color: white;
}

tr {
   line-height: 3rem;
   min-height: 3rem;
   height: 3rem;
   font-size: 1rem;
}

tr > td > i{
  font-size:2rem;
}

.bi-toggle-on{
  color:green;
}

.bi-toggle-off{
  color:red;
}

.status-green{
  color: green;
  border-radius: .25rem;
  border: 1px solid green;
  padding: .25rem;
}

.status-red{
  color: red;
  border-radius: .25rem;
  border: 1px solid red;
  padding: .25rem;
}


/*
 * card
 */
.card-hide-content{
  margin-top:1rem;
  border: 0px;
}

.card-hide-content > .card-body > .card-content{
  display:none;
}


/*
 * Counter
 */

.counter-card{
  border-left: 2px solid #49CB5F;
}

.counter-card.opening{
  border-left: 2px solid #DF3535;
  opacity: 0.7;
}

.counter-card.current{
  border-left: 2px solid #DF3535;
}

.counter-number{
  font-size:2rem;
}

.card-title{
  max-height: 95px;
  line-height: 95px;
  padding-left: 0.75rem;
  font-size: 1.25rem;
}

.counter-open-btn{
  max-height: 105px;
  line-height: 105px;
  font-size: 1.25rem;
  background-color: #F8F8F8;
  text-align: center;
  cursor: pointer; 
}

.counter-open-btn:hover{
  background-color: #F0F0F0;
}

.counter-opening-info {
  padding-top:15px;
  max-height: 105px;
  font-size: 1rem;
  background-color: #F8F8F8;
  text-align: center;
  cursor: pointer;
}

.counter-serving-ticket{
  display:block;
  height:52px;
}

.counter-serving-user{
  display:block;
  height:53px;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

/*
 * Operation
 */

#operation-right-cover{
  position:absolute; 
  right:0px; 
  /* top 48px is the menu bar height, it is fixed.*/
  top:48px; 
  min-height: 93%;
  z-index: 1010;
}


.extend-ticket-list-btn{
  position: absolute;
  left: -4rem;
  width: 4rem;
  font-size: 1.9rem;
  border-bottom: 1px solid #dee2e6;
  border-left: 1px solid #dee2e6;
  background-color: white;
  padding: 1rem;
  cursor: pointer;

}

.extend-ticket-list-btn:active{
  background-color: #F0F0F0;
}

.waiting-ticket-container{
  overflow-y: hidden;
  overflow-x: hidden; 
}


#waiting-ticket-list{
  max-height:90vh;
  overflow-y: auto;
  overflow-x: auto; 
}

#waiting-ticket-list > table > tbody > tr{
  font-size: 1.25rem;
}

.waiting-ticket-list-extend-item{
  display:none;
}

.waiting-ticket-list-extend-item > button{
  font-size:1.25rem;
  margin-top: .25rem;
}

.waiting-ticket-list-ticketno {
  background-color: #F0F0F0;
  height:.5rem;
  width: .5rem;
  padding: .25rem;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 2;
  color: grey;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
  border: 1px solid grey;
  cursor: pointer;
}

.operation-ticket-info-container{
  max-height:90vh;
  overflow-y: auto;
  overflow-x: hidden; 
}

#operation-idle, #operation-calling, #operation-serving{
  margin-top:-4.5vh;
}

.current-counter{
  position: relative;
  top: -8vh;
}

.counter-close-btn{
    max-height: 105px;
    line-height: 105px;
    font-size: 1.5rem;
    background-color: #f8d7da;
    text-align: center;
    cursor: pointer;
    color: #dc3545;
    padding-top:2vh;
}

.counter-close-btn:hover{
   background-color: #F4ABB2;
}


.reprint-btn, 
.next-call-btn, 
.manual-call-btn, 
.insert-ticket-btn,
.start-ticket-btn,
.recall-ticket-btn,
.store-ticket-btn,
.close-ticket-btn,
.transfer-ticket-btn
{
  cursor: pointer;
}

.reprint-btn-card-title, 
.next-call-btn-card-title, 
.manual-call-btn-card-title, 
.insert-ticket-btn-card-title, 
.start-ticket-btn-card-title,
.recall-ticket-btn-card-title,
.store-ticket-btn-card-title,
.close-ticket-btn-card-title,
.transfer-ticket-btn-card-title
{
  padding: 2.5rem 0 1.5rem 1.5rem;
  line-height: 10rem;
  font-size: 1.5rem;
}

.reprint-ticket-btn-style,
.next-call-btn-style, 
.manual-call-btn-style, 
.insert-ticket-btn-style, 
.start-ticket-btn-style,
.recall-ticket-btn-style,
.store-ticket-btn-style,
.close-ticket-btn-style,
.transfer-ticket-btn-style
{
    height: 160px;
    line-height: 40px;
    padding-top:70px;
    font-size: 1.5rem;
    background-color: #EBF6FE;
    color: #229BE6;
    text-align: center;
    cursor: pointer; 

}

.menual-call-btn-card-footer, .insert-ticket-btn-card-footer, .reprint-btn-card-footer,{
  background-color: #F0F0F0;
}

.calling-ticket-no{
  font-size: 4rem;
}

.modal-bottom{
  position: absolute;
  width: 0%;
}



/* for ipad view*/
@media (max-width: 1100px){
  .next-call-btn-card-title, 
  .manual-call-btn-card-title, 
  .insert-ticket-btn-card-title, 
  .start-ticket-btn-card-title,
  .recall-ticket-btn-card-title,
  .store-ticket-btn-card-title,
  .close-ticket-btn-card-title,
  .transfer-ticket-btn-card-title
  {
    padding: 1rem 0 1rem 1rem;
    line-height: 10rem;
    font-size: 1.5rem;
  }
  
  .counter-close-btn{
    font-size: 1rem;
  }

  .next-call-btn-style > i, 
  .manual-call-btn-style > i, 
  .insert-ticket-btn-style > i, 
  .start-ticket-btn-style > i,
  .recall-ticket-btn-style > i,
  .reprint-ticket-btn-style > i,
  .store-ticket-btn-style > i,
  .close-ticket-btn-style > i,
  .transfer-ticket-btn-style > i
  {
    font-size: 1rem;
  }

}

/* mobile view*/
@media (max-width: 767.98px) {
  .counter-close-btn{
      max-height: 40px;
      line-height: 40px;
      font-size: 1rem;
      padding-top: 0;
  }

  #operation-right-cover{
    right: -8.3333333333%;
    
  }
  #operation-right-cover.col-11{
    right: 0;
  }
}

/*
 * Data Table
 */
.data-table-row{

   line-height: 1.5rem;
   min-height: 1.5rem;
   height: 1.5rem;
   font-size: 1rem;
}

.data-table-row > td > i{
  font-size:1.5rem;
}

.table-hover>tbody>tr:hover {
    --bs-table-accent-bg: #EBF6FE;
    color: #229BE6;
}

.modal-header {
  max-height: 63px;
}

.modal-sublabel-container{
  position: absolute;
  top: 1px;
  left: -4rem;
  width: 4rem;
  font-size: 1.9rem;
}

.modal-sublabel{
  border-bottom: 1px solid #dee2e6;
  background-color: white;
  padding:1rem;
  pointer-events: auto;
}

.modal-sublabel.active{
  background-color: #F8F9FA;
  border-left: 2px solid #229BE6;
}

.modal-status{
  margin-left:1rem;
}


.modal-loading{
  display:none;
}

.modal-loading{
  position: fixed;
  width: 100%;
  height:80%;
  display: flex;
  align-items: center;
  top: 20%;
  text-align: center;
}

@media (max-width: 767.98px) {
  .come-from-modal.right > .modal-dialog > .modal-content{
    width:80%;
    left:20%;
  }

  .come-from-modal.right > .modal-dialog > .modal-loading{
     width:80%;
     left:20%;
  }

  .modal-sublabel-container{
    left: 2.25rem;
    right: 0;
    font-size: 1.5rem
  }
}

.visible{
	visibility:visible;
}


