#login_div,
#register_div {
  position: absolute;
  top: 33%;
}

div.alert {
  width: 75%;
}

div#notes_div {
  margin-left: 1rem;
}

#notes_table_container {
  width: 75%;
}

div#scrollable_note_section {
  height: 500px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  div.alert {
    width: 100%;
  }
}

.note-block {
  border-radius: 5px;
  padding: 10px;
  white-space: nowrap;
}

div.note-header {
  padding: 10px;
  border-radius: 5px;
}

.note-note-text {
  white-space: pre-wrap; /* Since CSS 2.1 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

body {
  font-family: "Roboto", sans-serif;
}

p {
  font-family: "Roboto", sans-serif;
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.7em;
}

.error {
  color: #a94442;
}

input[type="text"],
input[type="email"],
textarea {
  text-transform: uppercase;
}

input#rep_maintenance_id,
input#rep_add_id,
input#rep_maintenance_id_notes {
  text-transform: none;
}

input.error,
select.error {
  border-color: #a94442;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(169, 68, 66, 0.25);
}

input.numeric,
#company_maintenance_company_reps_number {
  text-align: right;
}

.footer {
  height: 50px;
  /* Set the fixed height of the footer here */
  line-height: 50px;
  /* Vertically center the text there */
  font-size: 0.9rem;
}

#portal_navbar {
  height: 50px;
  z-index: 1000;
}

#portal_navbar span {
  font-size: 0.95em;
}

.navbar-header {
  margin: 0 5px 0 5px;
  width: 100%;
}

#portal_navbar .navbar-text {
  display: inline;
  min-height: 50px;
}

.form-control:disabled,
.form-control[readonly] {
  cursor: default;
}

@media (max-width: 768px) {
  #portal_navbar #navbar_date_container {
    display: none;
  }
}

@media (max-width: 768px) {
  #switch_company_switcher_btn {
    width: 50%;
  }
}

/******************************************
            #Sidebar styles
*******************************************/

#sidebar {
  position: fixed;
  z-index: 1000;
  left: 0;
  overflow-x: hidden;
  transition: all 0.3s;
  min-width: 250px;
  max-width: 250px;
  /*    min-height: 100vh;*/
  top: 50px;
  height: calc(100vh - 100px);
  font-size: 0.96em;
}

#sidebar.active {
  margin-left: 0;
}

@media (max-width: 768px) {
  #sidebar {
    margin-left: auto;
  }
  #sidebar.active {
    margin-left: 0;
  }
}

#sidebar .sidebar-header {
  padding: 20px;
}

#sidebar ul.components {
  padding: 20px 0;
}

#sidebar ul p {
  padding: 10px;
}

#sidebar ul li a {
  padding: 10px;
  font-size: 1em;
  display: block;
}

#companycontact-info {
  padding: 10px;
  font-weight: 500;
  font-size: 0.8em;
}

#sidebar .nav-tabs .nav-link.active {
  border-radius: 0;
  border: none;
}

#sidebar .nav-tabs .nav-link:hover {
  border-color: transparent;
}

/******************************************
            #Content styles
*******************************************/

#content {
  margin-left: 250px;
  margin-bottom: 50px;
  /* padding: 20px; */
  width: 100%;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

ul ul a {
  font-size: 0.9em !important;
  padding-left: 30px !important;
}

.wrapper {
  display: flex;
  align-items: stretch;
}

#recording_script {
  text-align: justify;
  padding: 10px;
}

.inactiveLink {
  pointer-events: none;
  cursor: default;
}

/******************************************
            .nav styles for tabs
*******************************************/

.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link.active {
  border-left: 0.5px solid;
  border-right: 0.5px solid;
  border-top: 0.5px solid;
  border-bottom: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.nav-tabs .nav-link {
  border-radius: 0;
}

/* #member_add_tab_content,
#member_maintenance_tab_content {
  margin-top: 35px; */
/* height: 70vh; */
/* height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin-bottom: 25px;
  padding-left: 1rem;
} */

#company_maintenance_tab_content,
#company_add_tab_content,
#member_add_tab_content,
#member_maintenance_tab_content {
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  margin-bottom: 25px;
  padding-bottom: 120px; /* this gives room for the sticky Update button */
}

/******************************************
    Custom Bootstrap styles and overrides
*******************************************/

.btn-primary {
  text-transform: uppercase;
  font-size: 0.9em;
  border-color: transparent;
}

.btn-danger {
  background-color: #a94442;
  border-color: transparent;
  text-transform: uppercase;
  font-size: 0.9em;
}

/*
.cancel-btn,
.update-btn {
    margin-top: 20px;
}
*/

.btn-link {
  border: none;
  font-size: 0.85em;
  text-transform: uppercase;
}

.btn-logout {
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .center-col-8 {
    margin: 0 5% 0 5%;
  }
  #profile_change_password_btn {
    float: right;
  }
  #profile_update_password_cancel_btn {
    float: right;
  }
}

label {
  white-space: nowrap;
  display: inline-block;
  width: max-content;
  margin-bottom: 0;
  font-size: 0.9em;
}

label.custom-file-label {
  width: initial;
}

/******************************************
    Custom HTML styles and overrides
*******************************************/

input[type="date"] {
  min-height: 2.5rem;
}

.table td {
  padding: 0.3rem;
  border: none;
}

.table th {
  padding: 0.3rem;
  border: none;
  font-weight: 100;
}

#switch_company_pagination,
#company_search_pagination,
#company_maintenance_contacts_pagination,
#rep_search_pagination,
#member_search_pagination,
#all_member_search_pagination,
#all_rep_search_pagination,
#notes_pagination {
  width: 25%;
  margin: auto;
}

#member_search_results {
  margin-left: 15px;
}

#rep_search_results {
  margin-left: 15px;
}

#company_search_results {
  margin-left: 15px;
}

#all_member_search_results {
  margin-left: 15px;
}

#all_rep_search_results {
  margin-left: 15px;
}

.recording-input-text-display {
  font-weight: bold;
}

#recording_script {
  width: 500px;
  font-size: 0.96rem;
}

.dropdown-remove {
  color: #bf0b0b;
}

#member_add_payor_legal_text {
  font-size: 0.8rem;
  width: 500px;
  text-align: justify;
}

/* #company_maintenance_contacts {
  margin-left: 15px;
} */

#all_company_search_list_notification_bar {
  margin-left: 15px;
}

#company_search_list_notification_bar {
  margin-left: 15px;
}

#rep_search_list_notification_bar {
  margin-left: 15px;
}

#member_search_list_notification_bar {
  margin-left: 15px;
}

#all_member_search_list_notification_bar {
  margin-left: 15px;
}

#all_rep_search_list_notification_bar {
  margin-left: 15px;
}

.video-caption {
  margin-left: 150px;
}

/* button.close {
  background-color: red;
  color: white;
  padding: 2px 10px 4px 10px;
  border-radius: 5px;
}

button.close:hover {
  color: white;
} */

/* Table headers and row alignment */

tr td:first-child,
#switch_companies_table thead tr th:nth-of-type(1),
#company_search_results thead tr th:nth-of-type(1),
#rep_search_results thead tr th:nth-of-type(1),
#member_search_results thead tr th:nth-of-type(1),
#all_member_search_results thead tr th:nth-of-type(1),
#all_rep_search_results thead tr th:nth-of-type(1),
#all_member_search_results thead tr th:nth-of-type(2),
#all_rep_search_results thead tr th:nth-of-type(2),
#all_member_search_results tbody > tr > :nth-child(2),
#all_rep_search_results tbody > tr > :nth-child(2) {
  text-align: right;
}

#company_search_results tbody > tr > :nth-child(2),
#rep_search_results tbody > tr > :nth-child(2),
#member_search_results tbody > tr > :nth-child(2),
#all_member_search_results tbody > tr > :nth-child(3),
#all_rep_search_results tbody > tr > :nth-child(3),
#rep_search_results tbody > tr > :nth-child(6),
#member_search_results tbody > tr > :nth-child(6),
#all_member_search_results tbody > tr > :nth-child(7),
#all_rep_search_results tbody > tr > :nth-child(7),
#member_search_results tbody > tr > :nth-child(4),
#all_member_search_results tbody > tr > :nth-child(5),
#company_search_results thead tr th:nth-of-type(2),
#rep_search_results thead tr th:nth-of-type(2),
#member_search_results thead tr th:nth-of-type(2),
#all_member_search_results thead tr th:nth-of-type(3),
#all_rep_search_results thead tr th:nth-of-type(3),
#rep_search_results thead tr th:nth-of-type(6),
#member_search_results thead tr th:nth-of-type(6),
#all_member_search_results thead tr th:nth-of-type(7),
#all_rep_search_results thead tr th:nth-of-type(7),
#member_search_results thead tr th:nth-of-type(4),
#all_member_search_results thead tr th:nth-of-type(5) {
  text-align: center;
}

#company_maintenance_contacts tr td:first-child {
  text-align: left;
}

/* Modern login/register box styling */
#login_div,
#register_div {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  margin: auto;
  /* top: 20%;
  position: relative; */
}

/* Responsive spacing for form container */
@media (max-width: 768px) {
  #login_div,
  #register_div {
    padding: 2rem 1rem;
  }

  .form-group input {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
  }
}
