.table_upper_container {
  display: flex;
  margin-bottom: 15px;
}

.table_upper_container .table_heading {
  flex: 1;
}

.table_upper_container .table_heading h1 {
  font-size: 24px !important;
  display: inline-block;
}

.table_upper_container .table_main_button {
  display: inline-block;
  text-align: right;
  /* width: 100%; */
}

.main_button_container {
  width: 100%;
  text-align: right;
  margin-bottom: 20px;
}

table {
    overflow-x: auto;
    display: block;
    width: 100%;
    font-size: 15px;
}

table thead tr th {
  background-color: #FF650015 !important;
}

table thead tr th:first-of-type {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

table thead tr th:last-of-type {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

table thead tr th,
table tbody tr td {
    max-width: 200px !important;
    vertical-align: middle;
}

table tbody tr:last-of-type {
  border-color: transparent;
}

table tbody tr td a {
    vertical-align: middle;
    display: inline-block !important;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* Slider base */
  .slider {
    position: absolute;
    cursor: pointer;
    background-color: #CE0000;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background-color 0.4s;
  }
  
  /* Circle knob */
  .slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
  }
  
  /* ON state */
  input:checked + .slider {
    background-color: #00B728;
  }
  
  input:checked + .slider::before {
    transform: translateX(22px);
  }

.visit-status-planned {
  display: block;
  background-color: #F8971D24;
  color: #F8971D !important;
  padding: 5px;
  border-radius: 5px;
  min-width: 90px;
  max-width: fit-content;
  text-align: center;
}

.visit-status-completed {
    display: block;
    color: #25905f;
    padding: 5px;
    border-radius: 5px;
    min-width: 90px;
    max-width: fit-content;
    text-align: center;
    background-color: #00ff8924;
}

.visit-status-in-progress {
    display: block;
    color: #1570de;
    padding: 5px;
    border-radius: 5px;
    min-width: 90px;
    max-width: fit-content;
    text-align: center;
    background-color: #00ceff24;
}

.visit-status-cancelled {
    display: block;
    color: #ad0d0d;
    padding: 5px;
    border-radius: 5px;
    min-width: 90px;
    max-width: fit-content;
    text-align: center;
    background-color: #ff000024;
}



.table_search_form {
  width: 100%;
}

.table_search_form .relative {
  display: flex;
  gap: 10px; /* Space between input and button */
}

.table_search_form_input {
  flex-grow: 1;
  padding: 7px;
  border: 1px solid #DBE4EF;
  border-radius: 5px;
  width: 100%;
}

.table_search_form_btn {
  padding: 7px 15px;
  background-color: #000000;
  color: #ffffff;
  /* border: 1px solid #000000 !important; */
  border-radius: 5px;
  white-space: nowrap;
  transition: 0.3s ease;
}

.table_search_form_btn:hover,
.table_search_form_btn:focus,
.table_search_form_btn:active,
.table_search_form_btn:focus-within {
  background-color: #333333 !important;
  color: #ffffff !important;
}
