body {
  font-family: 'Ropa Sans', sans-serif !important;
  /* Websafe alternative to DIN */
  letter-spacing: 0.1rem;
  /* Adds letter spacing to default font spacing to achieve a look closer to DIN*/
  overflow-y: scroll;
}

/* JQuery UI Hiding */
.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Positioning */
.body-fill {
  min-height: calc(100vh - 88.25px) !important;
  /* the 70px must be changed to match the top navbar height*/
}

.splash {
  height: 100vh;
  width: 100vw;
}

.absolute-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Additional Colors */
.bg-parasol {
  background-color: #68a2b7;
  color: white;
}

.text-parasol {
  color: #68a2b7;
}

.badge-parasol {
  color: #fff;
  background-color: #68a2b7;
}

.badge-parasol[href]:focus,
.badge-parasol[href]:hover {
  color: #fff;
  text-decoration: none;
  background-color: #5091aa;
}

.btn-parasol {
  color: #fff;
  background-color: #68a2b7;
  border-color: #68a2b7;
}

.btn-parasol:hover {
  color: #fff;
  background-color: #5091aa;
  border-color: #4c8aa1;
}

.btn-parasol:focus,
.btn-parasol.focus {
  box-shadow: 0 0 0 3px rgba(104, 162, 184, 0.5);
}

.btn-parasol.disabled,
.btn-parasol:disabled {
  background-color: #68a2b7;
  border-color: #68a2b7;
}

.bg-parasol-dark {
  background-color: #4998ba !important;
}

.bg-parasol-light {
  background-color: #cadfe6 !important;
}

.table .thead-parasol-light th {
  color: #000;
  background-color: #cadfe6;
  border-color: #cadfe6;
}

.table tr:hover {
  /* background-color: #f5f5f5; */
  background-color: #b0cedb;
  cursor: pointer;
}

.container-center {
  margin-left: auto;
  margin-right: auto;
}

.n-o-ob-StatusTable table,
.n-o-ob-StatusTable tr,
.n-o-ob-StatusTable td {
  border: 1px solid black;
}

.n-o-ob-StatusTable-Category {
  font-weight: bold;
  text-align: left;
}

.n-o-ob-StatusTable-SubCategory {
  text-align: right;
}

.btn-parasol-light {
  color: #111;
  background-color: #cadfe6;
  border-color: #cadfe6;
}

.btn-parasol-light:hover {
  color: #111;
  background-color: #b0cedb;
  border-color: #a7c8d7;
}

.btn-parasol-light:focus,
.btn-parasol-light.focus {
  box-shadow: 0 0 0 3px rgba(202, 222, 231, 0.5);
}

.btn-parasol-light.disabled,
.btn-parasol-light:disabled {
  background-color: #cadfe6;
  border-color: #cadfe6;
}

/* Bootstrap Overwrites */
.nav-item {
  padding: 0.5rem;
  border-bottom: 1px solid #4998ba;
}

.card,
.card-body,
.card-header {
  border-radius: 0 !important;
}

/* Custom Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  display: none;
}

.switch > input:checked + .slider::before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.switch > input:checked + .slider {
  background-color: #68a2b7;
}

.slider {
  border-radius: 34px;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.hover-bg:hover {
  background: #eee;
}

.cursor-pointer {
  cursor: pointer;
}

/* Typography */
.lh-small {
  line-height: 0.5;
}

/* HR w/ Text */
.hr-text {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  height: 1.5em;
  opacity: 0.5;
}

.hr-text:before {
  content: '';
  background: linear-gradient(to right, #818078, #818078, #818078);
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.hr-text:after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  color: black;
  padding: 0 0.5em;
  line-height: 1.5em;
  color: #818078;
  background-color: #fcfcfa;
}

/*  
*   Makes Text Unselectable
*   Mainly used in conjunction with the custom slider checkboxes, 
*   as the following label seems to become highlighted when 
*   toggling the slider
*/
.unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide Bootstrap Tabs when not active */
.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block !important;
}

@media (min-width: 576px) {
  .border-sm-right {
    border-right: 1px solid #dee2e6 !important;
  }
}

/* Mobile Responsive Table */
@media (max-width: 668px) {
  .table table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block !important;
  }

  .table tr:nth-of-type(odd) {
    background: #eee;
  }

  thead tr {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }

  tr {
    border: 1px solid #ccc !important;
  }

  td {
    /* Behave  like a "row" */
    border: none !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
  }

  td:before {
    /* Now like a table header */
    /* position: absolute !important; */
    /* Top/left values mimic padding */
    top: 6px !important;
    left: 6px !important;
    width: 45% !important;
    padding-right: 10px !important;
    white-space: nowrap !important;
  }

  /* Label new rows with header (must match header labels) -- Dashboard CET Table*/
  #allTheEscalate td:nth-of-type(1):before {
    content: 'ID';
    font-weight: bold;
    word-wrap: break-word;
  }

  #allTheEscalate td:nth-of-type(2):before {
    content: 'OvrC Account';
    font-weight: bold;
    word-wrap: break-word;
  }

  #allTheEscalate td:nth-of-type(3):before {
    content: 'Reason';
    font-weight: bold;
    word-wrap: break-word;
  }

  #allTheEscalate td:nth-of-type(4):before {
    content: 'Requester';
    font-weight: bold;
    word-wrap: break-word;
  }

  #allTheEscalate td:nth-of-type(5):before {
    content: 'On-Hold Until';
    font-weight: bold;
    word-wrap: break-word;
  }

  #allTheEscalate td:nth-of-type(6):before {
    content: 'Date Created';
    font-weight: bold;
    word-wrap: break-word;
  }

  #allTheEscalate td:nth-of-type(7):before {
    content: 'Last Updated';
    font-weight: bold;
    word-wrap: break-word;
  }

  /* Label new rows with header (must match header labels) -- Clients Table*/
  #cctable td:nth-of-type(1):before {
    content: 'Test';
    font-weight: bold;
    word-wrap: break-word;
  }

  #cctable td:nth-of-type(2):before {
    content: 'Name';
    font-weight: bold;
    word-wrap: break-word;
  }

  #cctable td:nth-of-type(3):before {
    content: 'OvrC Account';
    font-weight: bold;
    word-wrap: break-word;
  }

  #cctable td:nth-of-type(4):before {
    content: 'Plan Level';
    font-weight: bold;
    word-wrap: break-word;
  }

  #cctable td:nth-of-type(5):before {
    content: 'Created';
    font-weight: bold;
    word-wrap: break-word;
  }

  #cctable td:nth-of-type(6):before {
    content: 'Status';
    font-weight: bold;
    word-wrap: break-word;
  }

  /* Label new rows with header (must match header labels) -- User Management Table*/
  #t5-user-mgmt td:nth-of-type(1):before {
    content: 'Name';
    font-weight: bold;
    word-wrap: break-word;
  }

  #t5-user-mgmt td:nth-of-type(2):before {
    content: 'Email';
    font-weight: bold;
    word-wrap: break-word;
  }

  #t5-user-mgmt td:nth-of-type(3):before {
    content: 'Role';
    font-weight: bold;
    word-wrap: break-word;
  }

  #t5-user-mgmt td:nth-of-type(4):before {
    content: 'Edit';
    font-weight: bold;
    word-wrap: break-word;
  }

  #t5-user-mgmt td:nth-of-type(5):before {
    content: 'Slack';
    font-weight: bold;
    word-wrap: break-word;
  }

  #t5-user-mgmt td:nth-of-type(6):before {
    content: 'Access';
    font-weight: bold;
    word-wrap: break-word;
  }
}

/* .prog-vertical {
  display: inline-block;
  width: 20%;
  height: 40px;
  -webkit-transform: rotate(-90deg); (/)Chrome, Safari, Opera(/)
  transform: rotate(-90deg);
} */

/*auto complete*/
.ui-autocomplete {
  position: absolute;
  top: 0;
  left: 0;
  cursor: default;
  z-index: 1072;
  background: #ffffff;
  width: 300px;
  border: 1px solid gray;
}

.ui-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  outline: 0;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ui-menu .ui-menu {
  position: absolute;
}

.ui-menu .ui-menu-item {
  margin: 0;
  cursor: pointer;
  /* support: IE10, see #8844 */
  list-style-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
}

.ui-menu-item:hover {
  background-color: #69a4b7;
  /* font-weight: bold; */
}

.ui-menu .ui-menu-item-wrapper {
  position: relative;
  padding: 3px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.page-item {
  margin: 0 2px;
}

.page-item a {
  padding: 5px 10px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.page-item.active a {
  background-color: #007bff;
  color: white;
}

.page-item.disabled a {
  color: #ddd;
}

.form-check-input {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

.form-check-label {
  display: inline-block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
}

.form-check-label:before {
  content: '';
  display: inline-block;
  width: 25px;
  height: 15px;
  background-color: #ccc;
  border-radius: 15px;
  position: absolute;
  left: 0;
  top: 0;
  transition: background-color 0.2s;
}

.form-check-input:checked + .form-check-label:before {
  background-color: #007bff;
}

.form-check-label:after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  top: 0;
  transition: left 0.2s;
}

.form-check-input:checked + .form-check-label:after {
  left: 15px;
}

.filter-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(100% - 20px);
}

.filter-container .clientsHeadingRow {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  /* Ensure items wrap within the row */
}

.filter-container .clientsHeadingRow .filter-switches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 60%;
}

.filter-switches .checkbox-slider {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  width: auto;
}

.filter-switches .checkbox-slider .slider {
  margin-right: 5px;
}

.filter-switches .filter-label {
  margin-left: 5px;
}

.filter-container .clientsHeadingRow .right-justify {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  /* Ensure items wrap within the container */
}

.filter-container .clientsHeadingRow .right-justify .btn-parasol {
  margin-right: 5px;
  margin-bottom: 5px;
}

.search-refresh-container {
  width: 60%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.search-refresh-container .search-input {
  flex: 1;
  margin-right: 10px;
  height: calc(2.25rem + 2px);
  /* This should match the height of the input box */
}

.search-refresh-container .btn-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(2.25rem + 2px);
  /* Ensure button height matches the input box */
  padding: 0 10px;
}

.btn-refresh i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .search-refresh-container {
    width: 100%;
  }

  .filter-container .clientsHeadingRow .filter-switches {
    width: 100%;
  }

  .filter-container .clientsHeadingRow .right-justify {
    width: 100%;
    justify-content: space-between;
  }
  #n-o-ob-DName-Table {
    width: 100% !important;
  }
}
#userDealerMobile {
  margin-top: 5px;
}
#userDealerMobile select {
  width: 100% !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 40px;
  grid-gap: 10px;
}

.col:nth-child(-1n + 3) {
  grid-column: span 4;
}
.col:nth-last-child(2) {
  grid-row-start: 2;
  grid-column: 3 / span 4;
}
.col:nth-last-child(1) {
  grid-row-start: 2;
  grid-column: 7 / span 4;
}
.col {
  background-color: tomato;
}

.modal-backdrop {
  z-index: 999 !important;
}
/* Accordion Enhancements */
.accordion .card-header {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion .card-header:hover {
  filter: brightness(0.95);
}

.accordion .card {
  border-radius: 0 !important;
  border: 1px solid #dee2e6;
}

.accordion .card + .card {
  margin-top: 0.5rem;
}

#miscInfoContainer {
  background-color: #f9fbfc;
  border-left: 3px solid #68a2b7;
}

.list-group-item-action:hover {
  background-color: #f8f9fa;
}

#dealerFilterSelect {
  width: 250px;
  display: inline-block;
  margin-bottom: 10px;
}

/* ===========================================================
   Dealer Lookup – Edit Mode Styling (2-column editable table)
   =========================================================== */

/* Table layout */
#dealerDataContainer table {
  border: 1px solid #dee2e6;
  border-collapse: collapse;
  font-size: 0.9rem;
}

#dealerDataContainer th {
  background-color: #f3f6f9;
  color: #333;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

#dealerDataContainer td {
  padding: 4px 6px;
  vertical-align: middle;
}

/* Input fields */
#dealerDataContainer input[type='text'],
#dealerDataContainer textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.85rem;
  padding: 3px 6px;
}

#dealerDataContainer input[type='text']:focus,
#dealerDataContainer textarea:focus {
  border-color: #2a7f9c;
  box-shadow: 0 0 0 0.15rem rgba(42, 127, 156, 0.25);
  outline: none;
}

/* Support / AllCall differentiation */
.edit-support {
  background-color: #f9fcff;
}

.edit-allcall {
  background-color: #fffaf4;
}

/* Table hover highlighting for clarity */
#dealerDataContainer tbody tr:hover {
  background-color: #f5f9fc;
}

/* Button layout consistency */
#dealerModalFooter {
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

#dealerModalFooter .btn-parasol {
  background-color: #2a7f9c;
  color: #fff;
  border: none;
}

#dealerModalFooter .btn-parasol:hover {
  background-color: #256d87;
}

#dealerModalFooter .btn-outline-secondary:hover {
  background-color: #e9ecef;
}

/* Subtle responsiveness tweaks */
@media (max-width: 992px) {
  #dealerDataContainer table th,
  #dealerDataContainer table td {
    font-size: 0.8rem;
  }
  #dealerDataContainer input[type='text'],
  #dealerDataContainer textarea {
    font-size: 0.8rem;
  }
}

/* Slightly larger baseline for lookup tool legibility */
#dealerDataContainer,
#dealerDataContainer input,
#dealerDataContainer textarea,
#dealerDataContainer label {
  /* font-size: 1.5rem !important; */
  font-size: 1.5rem !important; /* previously 0.85–0.9rem */
}

/* Highlight AllCall status field for quick visibility */
#allCallStatusInput[value*="Yes"] {
  background-color: #fff8e1; /* soft yellow for active AllCall */
}

#allCallStatusInput[value*="No"] {
  background-color: #f8f9fa; /* neutral gray for inactive */
}

#allCallStatus .form-control[readonly] {
  background-color: #f8f9fa;
  cursor: default;
}
