/*------------------------------------------------------------------
    File Name: custom.css
-------------------------------------------------------------------*/

/** ADD YOUR AWESOME CODES HERE **/

.select2-container .select2-selection--single{
    height:33px !important;
}
.select2-container--default .select2-selection--single{
            border: 1px solid #ced4da !important; 
        border-radius: .25rem !important; 
}
span.selection,.dropify-render {
    display: inline !important;
}

/* Hide the default arrows for number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Change the background color of the table */
.dataTables_wrapper {
  background-color: #f9f9f9;
}

/* Change the font color of table headers */
.dataTable thead th {
  color: #ffffff;
  background-color: #4c7bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #dddddd;
}

.dataTable tbody td {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid #dddddd;
  font-weight: 500;
}

.dataTables tbody tr {
  transition: background-color 0.2s ease-in-out;
}

/* Add a hover effect to table rows */
.dataTable tbody tr:hover {
  background-color: #e6f2ff;
}

.ui-autocomplete {
background-color: #f2f2f2;
border: 1px solid #ccc;
position: absolute;
    left: 0; /* Adjust the left position as needed */
}

.ui-menu {
list-style: none;
padding: 0;
margin: 0;
}

.ui-menu-item {
  width: 100%;
padding: 5px;
cursor: pointer;
}

.ui-state-active {
background-color: #007bff;
color: #fff;
}

.ui-corner-all {
border-radius: 4px;
}
input.hide-arrows::-webkit-inner-spin-button,
input.hide-arrows::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wa-read {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.wa-read i:first-child {
    margin-right: -8px; /* overlap only first tick */
}

.wa-read i:last-child {
    margin-right: 6px; /* space before text */
}

/* Switch Toggle CSS */

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #007bff;
}
input:checked + .slider:before {
  transform: translateX(22px);
}

/* End Switch Toggle CSS */

/* call pop box */

.floating-box {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
   }
   .floating-box > .btn {
      border-radius: 50%;
      width: 70px;
      height: 70px;
      padding: 0;
      font-size: 28px;
      position: relative;
   }
   .floating-box > .btn > .badge {
      position: absolute;
      top: -10px;
      right: -10px;
      background-color: red;
      color: white;
      border-radius: 50%;
      width: 25px;
      height: 25px;
      text-align: center;
      font-size: 14px;
      line-height: 1.5;
   }
   .floating-box > .popup {
      position: absolute;
      bottom: 76px;
      right: 0;
      background-color: #f9f9f9;
      border: 1px solid #0495d8;
      padding: 10px;
      width: 423px;
      border-radius: 10px;
      box-shadow: -5px 5px 14px 1px rgb(0 0 0 / 38%);
      display: none;
   }
   .floating-box > .popup > .close-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      font-size: 20px;
      cursor: pointer;
   }
   .call-item {
      display: flex;
      align-items: center;
      padding: 10px;
      border-bottom: 1px solid #eee;
      background-color: #c0deff;
      border-radius: 10px;
   }
   .call-item:last-child {
      border-bottom: none;
   }
   .call-icon {
      font-size: 32px;
      color: #007bff;
      margin-right: 15px;
   }

   .call-icon-spam {
      font-size: 32px;
      color: #dc3545;
      margin-right: 15px;
   }

   .call-details {
      flex-grow: 1;
   }
   .call-status {
      flex-grow: 1;
      text-align: right;
   }
   .call-name {
      font-size: 16px;
      font-weight: bold;
   }
   .call-location {
      font-size: 14px;
      color: #666;
   }
   .v-button {
    padding: .2rem!important;
    font-size: 0.875rem!important;
    line-height: 1!important;
    border-radius: .2rem!important;
}

/* end call pop box */

/* Popup Panel */
.right-popup {
    position: fixed;
    top: 0;
    right: -550px; /* hidden initially */
    width: 550px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Active state */
.right-popup.active {
    right: 0;
}

.popup-header {
    background: #ff9800;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}



/* LEFT FLOATING BUTTON */

.floating-box-left {
    position: fixed;
    bottom: 20px;
    left: 284px;   /* better than 300px so it stays near screen edge */
    z-index: 9999;
}

.floating-box-left > .btn {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 28px;
    padding: 0;
    position: relative;
}

.floating-box-left .badgeCount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-box-left .popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 423px;
    background: #f9f9f9;
    border: 1px solid #0495d8;
    padding: 10px;
    border-radius: 10px;
    display: none;
}

.floating-box-left .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
}

.floating-box-left .call-status {
    flex-grow: 0;
}

.floating-box-left > .popup > .incoming-calls > .call-item {
  background-color: #fcebbb;
}

