.dataTables_paginate {
  text-align: right;
}

.paginate_button {
  margin-left: 0.5rem;
}

.paginate_button:hover {
  font-weight: bold !important;
}

.current {
  font-weight: bold !important;
}

table.dataTable {
  margin-top: 1rem;
  width: 99%;
}

table.dataTable th {
  font-weight: bold !important;
}

.table-responsive {
  overflow-x: hidden;
}

/* .dataTables_length {
  display: none;
} */

.dataTables_filter {
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex: 1 1 auto;
  width: 100%;
}

.dataTables_filter input {
  margin-left: 1rem;
  flex: 1 1 auto;
}

.table {
  margin-bottom: 1rem;
}

.paginate_button {
  padding: 0.5em 0.75em;
  border: #efefef;
  margin-left: 0.5rem;
  border-radius: 0.1875rem;
}

.paginate_button.current {
  background-color: rgba(246, 183, 88, 0.5);
}

.paginate_button:hover {
  background-color: rgba(246, 183, 88, 0.25);
  border-color: rgba(246, 183, 88, 0.25);
}

.page-link {
  border-width: 0;
  border-color: #731a19 !important;
  color: #731a19 !important;
}

.page-link-active {
  color: #fff !important;
  background-color: #731a19 !important;
  border-color: #731a19 !important;
}

.dropdown-item:hover {
  background: #731a19 !important;
  color: #fff !important;
}

.card-img-top {
  width: 100%;
  height: 10vw;
  object-fit: center;
}

.btn-outline-warning:focus {
  color: rgba(246, 183, 88) !important;
}

.btn-outline-warning:active,
.btn-outline-warning:hover {
  color: #fff !important;
}

legend {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  border-bottom: 3px solid rgba(115, 26, 25, 0.5) !important;
  border-top: 3px solid rgba(115, 26, 25, 0.5) !important;
  margin: 0 0 1vh 0 !important;
  padding: 5px 0 !important;
}

div[role="group"]:not(:last-of-type) {
  margin-bottom: 15px !important;
}

fieldset {
  margin-bottom: 3vh !important;
}

div.collection-siblings {
  margin-bottom: 5vh !important;
}

div.collection-siblings fieldset {
  margin: 0px 0.5vh 1vh 0.5vh !important;
  border: 3px solid #ececec !important;
  padding: 1vh 0vh;
}

#filter-collapse > div > div > div > django-formset > div.dj-form.row {
  background-color: initial !important;
  padding-bottom: initial;
  border-bottom: initial;
  margin-bottom: initial;
}

.jumbotron {
  background: url("../images/banners/banner_oval.857286776398.jpeg") no-repeat center center
    fixed;
  background-size: cover;
  height: 30rem;
  position: relative;

  &:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to bottom right, #002f4b, #dc4225);
    opacity: 0.6;
  }
}

.jumbotron .container {
  top: 10rem;
  position: relative;
  align-content: baseline;
}

.form-check.form-check-inline {
  display: inline-block !important;
}

.dj-calendar {
  z-index: 99;
}

.dj-required > label::after {
  content: " *";
  color: #731a19 !important;
}

.dataTables_wrapper tr.selected {
  background-color: rgba(246, 183, 88, 0.25);
}

.accordion-button:not(.collapsed) {
  color: #ffffff !important;
  background-color: #731a19 !important;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  -webkit-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

footer {
  z-index: 1 !important;
}

button.add-collection {
  margin-top: 10px;
}

#help {
  position: fixed;
  bottom: 1.5vh;
  right: 0.7rem;
  height: 2.3rem;
  width: 2.3rem;
  background: #731a19;
  color: #ffffff;
  z-index: 99;
  -webkit-box-shadow: 0px 0px 31px 6px rgba(0, 0, 0, 0.17);
  box-shadow: 0px 0px 31px 6px rgba(0, 0, 0, 0.17);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 100%;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

#quick-nav {
  position: fixed;
  bottom: calc(2.5vh + 2.5rem);
  right: 0.7rem;
  height: 2.3rem;
  width: 2.3rem;
  background: #731a19;
  color: #ffffff;
  z-index: 99;
  -webkit-box-shadow: 0px 0px 31px 6px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 31px 6px rgba(0, 0, 0, 0.15);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 100%;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

#quick-nav:hover .dropdown-menu,
#help:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* remove the gap so it doesn't close */
}

td {
  word-wrap: break-word;
  white-space: normal !important;
}

:target {
  scroll-margin-top: 100px;
}

#backend-messages {
  z-index: 99;
}

.dropstart .dropdown-menu {
  background: none;
  bottom: 3rem;
  position: fixed;
  border: none;
  z-index: 99;
}

.dropstart ul li {
  display: flex;
  justify-content: space-around;
}

.dropstart ul li a {
  display: flex !important;
  width: 2.3rem;
  height: 2.3rem;
  background-color: rgba(108, 32, 29, 0.5);
  border-radius: 100%;
  margin: 0.2rem 0;
  color: #fff;
}

.dropstart ul li a i {
  right: 5px;
  position: relative;
}

.dropstart dropdown-item:hover {
  background-color: none;
}

.settings-panel.open {
  left: 0 !important;
  min-width: 270px !important;
  width: 20% !important;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.settings-panel {
  left: -100vw !important;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#theme-settings {
  opacity: 95%;
  overflow-y: auto;
  width: 270px !important;
}

#theme-settings .settings-edit {
  top: 12px;
  --bs-bg-opacity: 1;
  position: absolute;
  right: 85px;
  border-radius: 4px;
  padding: 0 3px;
  cursor: pointer;
  z-index: 999;
}

#theme-settings .settings-resize {
  top: 12px;
  --bs-bg-opacity: 1;
  position: absolute;
  right: 45px;
  border-radius: 4px;
  padding: 0 3px;
  cursor: pointer;
  z-index: 999;
}

#theme-settings * img {
  max-width: 100% !important;
}

.settings-panel.enlarge {
  height: 60vh !important;
  min-width: 80vw !important;
  overflow-y: scroll !important;
}

/* Make the dropdown show on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Optional: Add transition for smooth hover effect */
.nav-item .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.dataTables_filter {
  text-align: left !important;
}

.dataTables_filter * input {
  width: "100%" !important;
}

table {
  --bs-table-hover-bg: rgba(250, 215, 162, 0.3) !important;
}

.dropdown a .badge::after {
  content: "\25BC" !important;
  position: absolute; /* Use absolute positioning to place the circle */
  top: -0.5rem; /* Adjust the top position to place it at the upper right */
  right: -0.5rem; /* Adjust the right position */
  width: 1rem; /* Set the width of the circle */
  height: 1rem; /* Set the height of the circle */
  border-radius: 50%; /* Make it a circle */
  background-color: #a0a0a0; /* Set the background color (red in this case) */
  color: #fff; /* Text color inside the circle */
  font-size: 0.7rem; /* Adjust the size of the text */
  display: flex;
  justify-content: center;
  align-items: center; /* Center the text inside the circle */
  text-align: center;
}

.dataTables_wrapper tr.selected {
  background-color: rgba(246, 183, 88, 0.5);
}

td * .badge {
  white-space: normal !important;
}

td {
  white-space: normal !important;
}

tr.selected:has(.checkbox) {
  background-color: rgba(246, 183, 88, 0.5);
}

td.checkbox {
  cursor: pointer;
  text-align: center !important;
  font-size: 1.5rem !important;
}
td.checkbox:hover {
  background-color: rgba(246, 183, 88, 0.3);
}

tr:not(.selected) td.checkbox::after {
  content: "\2610" !important; /* This is visual only; won't change actual state */
}
tr.selected td.checkbox::after {
  content: "\2611" !important; /* This is visual only; won't change actual state */
}

.dataTables_wrapper:not(#history-table_wrapper)
  table.dataTable
  a:not(.datatable-row-link):not(:has(i, .badge))::after {
  content: "\260D";
  font-size: 0.7rem; /* Adjust the size of the text */
}

.dataTables_wrapper:not(#history-table_wrapper)
  table.dataTable
  tr:has(a.datatable-row-link:hover)
  td,
td a.datatable-row-link:hover {
  color: #0b2e54 !important;
  text-decoration: underline !important;
}

.form-check:has(input[type="checkbox"]) {
  padding-left: 1.5rem !important;
}

.form-check-label + input[type="checkbox"] {
  margin-left: 0px !important;
}

.nav-tabs {
  background-color: #efefef !important;
  border-bottom: 0px !important;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

.nav-tabs .nav-link {
  border: 0px !important;
  margin-bottom: 0px !important;
  font-weight: bold !important;
  color: #6e6e6e;
}

.nav-tabs .nav-link.active {
  background-color: #fad7a2 !important;
  font-weight: bold !important;
}

.nav-tabs .nav-item {
  background-color: var(--bs-gray-200);
  margin-right: 5px;
}

.tab-content {
  border: 3px solid #fad7a2;
}

/* Issue with radio on formcollection */
input[type="radio"] {
  opacity: 1 !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid var(--bs-primary) !important;
}

input[type="radio"]:checked {
  background-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
  color: #ffffff !important;
}

.btn-outline-primary:focus {
  color: var(--bs-primary) !important;
}

span.badge {
  cursor: pointer;
}

#backToTop {
  position: fixed;
  bottom: 1.5vh;
  right: 3.7rem;
  opacity: 60%;
  height: 2.3rem;
  width: 2.3rem;
  border-radius: 100%;
}

@media screen and (max-width: 991px) {
  .sidebar-offcanvas {
    position: fixed;
    max-height: calc(100vh - 60px);
    top: 60px;
    bottom: 0;
    overflow: auto;
    left: -260px;
    -webkit-transition: all 0.25s ease-out;
    transition: all 0.25s ease-out;
  }
  .sidebar-offcanvas.active {
    left: 0;
  }
}

table.dataTable tbody tr.selected td {
  background-color: rgba(246, 183, 88, 0.5) !important;
}

td.checkbox {
  cursor: pointer;
  text-align: center !important;
  font-size: 1.5rem !important;
}
td.checkbox:hover {
  background-color: rgba(246, 183, 88, 0.3);
}

tr:not(.selected) td.checkbox::after {
  content: "\2610" !important; /* This is visual only; won't change actual state */
}
tr.selected td.checkbox::after {
  content: "\2611" !important; /* This is visual only; won't change actual state */
}

.cm-datatable-wrapper {
  position: relative;
}

.cm-datatable-wrapper .overlay {
  position: absolute;
  top: 5%;
  left: 50%;
  display: block;
}

.dt-buttons button {
  background-color: rgba(115, 26, 25, 0.8);
  color: #ffffff;
  border: 1.5px solid #000000;
  display: inline-block;
  max-width: 10rem;
}

.dt-buttons {
  width: calc(100% - 170px);
  display: flex;
}

.dataTables_length {
  width: 100px;
  text-align: right;
  display: inline;
}

.dataTables_filter label {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  border-bottom: 1px solid #2e2e2e !important;
  padding-bottom: 1.5rem !important;
}

.dataTables_filter label input {
  flex: 1 !important;
  border: 1px solid #2e2e2e !important;
}

td.checkbox {
  cursor: pointer;
  caret-color: transparent !important;
}

tr.selected td {
  box-shadow: none !important;
  color: #000000 !important;
  border: 1px solid #e2e2e2;
}

tr.selected td:has(a:hover) {
  text-decoration: underline !important;
}

table.df-table thead th {
  font-weight: bold;
  font-size: 1.2rem;
}

div:has(table.df-table) {
  overflow-x: auto;
}

.form-check:has(input[inline]) {
  display: inline-block !important;
  margin-right: 1rem;
}

a[data-bs-toggle="collapse"][aria-expanded="false"] .card-title:before {
  content: "\25B6   ";
  cursor: pointer;
}

a[data-bs-toggle="collapse"][aria-expanded="true"] .card-title:before {
  content: "\25BC   ";
  cursor: pointer;
}

div[contenteditable="true"] {
  margin-top: 20px !important;
}

input:disabled::placeholder {
  color: #5c1514;
  font-weight: 800;
  font-style: italic;
}

.development-watermark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='300px' width='300px'><text transform='translate(20, 100) scale(1.5) rotate(-20)' fill='rgba(200,200,200, 0.4)' font-size='20'>development</text></svg>") !important;
}
