/*---------------------- LOGIN FORM ------------------------- */
.login-form {
    width: 340px;
    margin: 50px auto;
      font-size: 15px;
}
.login-form form {
    margin-bottom: 15px;
    background: #f7f7f7;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    padding: 30px;
}
.login-form h2 {
    margin: 0 0 15px;
}

.btn {        
    font-size: 15px;
    font-weight: bold;
    padding: 3px;
}

/*---------------------- NUMBER INPUT REMOVAL OF ARROWS ------------------------- */

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}

input[type=number]{
  -moz-appearance: textfield;
}

/*---------------------- LOADING ICON -------------------- */
#overlay{	
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height:100%;
  display: none;
  background: rgba(0,0,0,0.6);
}
.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;  
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px #ddd solid;
  border-top: 4px #2e93e6 solid;
  border-radius: 50%;
  animation: sp-anime 0.8s infinite linear;
}
@keyframes sp-anime {
  100% { 
    transform: rotate(360deg); 
  }
}
.is-hide{
  display:none;
}

/*---------------------- DATATABLE HEADER AND DATA CENTER ALIGN ------------------------- */

#myTable th,
#myTable td, 
#archiveTable th,
#archiveTable td {
    text-align: center;
    padding: 4px
}

/*---------------------- DATATABLE STYLING ------------------------- */
table.dataTable thead tr {  
  background-color: #212529;
  color: rgb(255, 255, 255);
}

table.dataTable thead th, table.dataTable thead td {
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

h6 {
  font-size: 0.8rem;
}

.btn-sm {
  font-size: 0.75rem;
}

/* table.dataTable thead .sorting {
  background-image: url('/images/sort.png');    
} */

table.dataTable{      
  overflow-y:visible; 
  overflow-x: visible; 
  font-size:0.75em
}

button#dropdownMenuButton {
  font-size: 0.7em;
}

a{
  text-decoration: none;
}

/*---------------------- FORM MANDATORY STYLING ------------------------- */

label>span{
  color: red;
}

/*---------------------- TOGGLE BUTTON ------------------------- */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;    
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    top: 2px
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  /* ---------------- ALERT MESSAGE ---------------- */

  #success, #warning, #danger, #priceDetails, #txnDetails {
      display: none;
  }

  /* --------------- GENERAL ------------- */

  body{
    font-family: Helvetica;
    font-size: 0.9em;
  }

  a.btn-sm.btn-primary.dropdown-toggle {
    font-size: 0.9em;
}

.longText{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 0;
}

.smallFont {
  font-size: 0.7rem;
}

.pushOrder {
  font-size: 0.8em;
}

.badge-success {
  background-color: #006918;
}

.largeBadge {
  font-size: 0.7rem;
}


/* ----------- MOBILE NAVBAR ----------- */

.navbar-dark .navbar-toggler {
  color: rgba(255,255,255,1);
  border-color: rgba(255,255,255,1);
}

.navbar-dark .navbar-toggler-icon {
  background-image: url('/images/hamburger.png');
}

/* ----------- MODULE SPECIFIC ------- */
.deleteInvoice, .deleteTxn {
  font-size: 0.7rem;
}

.payment-success-box {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*----------- DARK THEME TOGGLE BUTTON ---*/
.form-check-input:checked {
  background-color: #000;
  border-color: #fff;
}

.form-check-input{
  width: 1.3em;
  height: 1.3em;
}

/* ---------- SELECT2 ----------------*/
 /* Adjust the width of the select input */
 .select2-selection--single {
  /* width: 300px; Adjust the width as needed */
}

/* Adjust the width of the dropdown list */
.select2-dropdown {
  width: 200px; /* Adjust the width as needed */
}

.select2-container .select2-selection--single {
  height: auto !important;
}

/* Reduce height for input boxes with form-control */
.form-control, 
.form-select {
    /* padding: 4px 8px; Adjust padding to reduce height */
    font-size: 14px;  /* Optionally reduce font size */
    height: auto;     /* Ensure the height is auto to adapt to the padding */
    line-height: 1.2; /* Adjust line-height for better vertical alignment */
}

.form-group {
  margin-bottom: 0.5rem
}

/* ------- multilevel dropdown ------- */
/* Custom styles for multi-level dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  right: 100%;
  margin-top: -1px;
  min-width: 120%;
}

/* Adjust for hover */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}


/* Adjust submenu for mobile */
@media (max-width: 767px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    display: none;
    min-width: 100%;
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }

}

.point8font {
  font-size: 0.8rem;
}