/* Define the animation */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Apply the animation to the body element */
.content-page {
  transition: opacity 0.5s ease-in-out;
}

/* Add the animation classes */
.content-page.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

.content-page.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

:root {
  --fs-green: #125e17;
}

i {
  font-size: 1.5em;
  line-height: 1em;
}

.logo-lg img {
  height: 2.7em;
}

.login-header {
  background: #0f4d13;
}

.logo-sm img {
  height: 3em;
}

.table > :not(caption) > * > * {
  padding: 0.5rem !important;
}

.widget th {
  border-bottom: 1px solid #e3e3e3;
}

div.dataTables_wrapper div.dataTables_filter {
  text-align: right;
  float: right;
}

.tox-statusbar__right-container {
  display: none !important;
}

.btn-group > .btn,
.btn-group-vertical > .btn {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 0.8em;
  color: #747474;
  background: white;
  padding: 0.5em;
  border-color: #c7c7c7;
}

div.dataTables_wrapper div.dataTables_length {
  text-align: left;
  float: left;
  margin-right: 1em;
}

#search-container {
  /*background: #ebebef;*/
  width: 100%;
}

.input-group-text {
  border-radius: 2em 0 0 2em;
}

svg {
  vertical-align: middle;
  /*margin: 0 8px;*/
}

.logo-sm img {
  height: 3em;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.form-label {
  margin-bottom: 0;
}

td button.btn {
  padding: 0;
}

.search-container {
  padding-bottom: 1em;
}

span.roh_count {
  color: white;
  padding: 0.2em 0.5em;
  border-radius: 2em;
  margin-right: 0.5em;
  font-weight: bolder;
}

span.mou {
  background: #ffc35a;
  color: #000;
  font-size: 0.75em;
  padding: 0.45em;
  border-radius: 8px;
  font-weight: bolder;
  margin-right: 4px;
}

.topbar {
  margin-bottom: 20px !important;
}

.overlay {
  content: "<h2>Loading</h2>";
  background: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.4),
    rgb(189 224 225),
    rgba(255, 255, 255, 0.4),
    rgb(122 149 171)
  );
  background-size: 400% 400%;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  opacity: 0.8;
  animation: gradient 5s ease infinite;
}

.sub-header {
  margin: -0.5em auto 1em auto;
}

.card {
  border-radius: 1.5em;
  box-shadow: 4px 4px 20px -10px rgba(0, 0, 0, 0.2);
}

#name-suggestions {
  position: absolute;
  z-index: 9;
  box-shadow: 4px 4px 20px -10px rgba(0, 0, 0, 0.2);
}

html[data-bs-theme="dark"] .activate-select .sorting_1 {
  background-color: rgb(71 71 71) !important;
}

.modal-content {
  border-radius: 2em;
  box-shadow: 0 20px 20px -10px rgba(0, 0, 0, 0.3);
}

.model-header {
  background-color: #1a511a;
  color: white;
  margin: -16px -27px 20px;
  padding: 1em 1em 0;
  overflow: hidden;
  border-radius: 2em 2em 0 0;
}

span.model-header-close-btn {
  position: absolute;
  right: 15px;
  color: white;
}

.truncate {
  max-width: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

input#mou,
input#user_status,
input#store_status {
  transform: scale(1.5);
  margin-left: -1em;
  margin-right: 1em;
}

.blur {
  filter: blur(5px);
}

.unform {
  border: none;
  background: none !important;
  padding: 0.25em 0;
  font-size: 1.25em;
}

.w-full {
  width: 100%;
}

button[aria-label="Close"] {
  background: green;
  border: none;
  font-size: 2em;
  line-height: 0;
  padding: 0;
  position: absolute;
  right: 0.5em;
  top: 0.75em;
}

.status-wrapper {
  position: absolute;
  right: 0;
  width: fit-content;
  bottom: 0;
}

.form-check-input:checked {
  background-color: #009688;
  border-color: #009688;
}

table .btn svg,
table .asvg svg {
  fill: #ffc35a;
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0));
  transform: translateY(0px);
  transition: all 0.5s ease;
}

.btn svg:hover,
.asvg svg:hover {
  filter: drop-shadow(0px 6px 4px rgba(0, 0, 0, 0.3));
  transform: translateY(-6px);
}

.announcementBox table td {
  border: thin solid #e6e6e6;
  vertical-align: top;
  padding: 0.5em;
}

/*
.form-label {
    margin: 0;
    display: block;
    background: white;
    width: fit-content;
    z-index: 9;
    position: relative;
    top: 10px;
    left: 10px;
    padding: 0 10px;
    border-radius: 1em;
}
*/

.form-control,
.form-select {
  border-radius: 2em;
}

.statusLight-on {
  background: rgb(9, 160, 9);
  background: radial-gradient(
    circle,
    rgb(11 200 11) 0%,
    rgba(0, 66, 0, 1) 100%
  );
  width: 1.5em;
  border-radius: 2em;
}

.statusLight-off {
  background: #c5c5c5;
  width: 1.5em;
  border-radius: 2em;
}

.addedAlert {
  color: #0aa50a;
  font-weight: bold;
}

.notAddedAlert {
  color: #b3af00;
}

.widget {
  text-align: center;
}

.widget .widget-num {
  font-size: 2.5em;
}

.widget .widget-label {
  text-transform: uppercase;
  font-size: 0.8em;
}

.widget-top-brew .widget-text {
  font-size: 1.255em;
  font-weight: bold;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  top: 50%;
  left: 5px;
  height: 1em;
  width: 1em;
  margin-top: -9px;
  display: block;
  position: absolute;
  color: var(--ct-body-color);
  box-sizing: content-box;
  text-align: center;
  text-indent: 0 !important;
  font-family: "Courier New", Courier, monospace;
  line-height: 1em;
  content: "►";
  /* background-color: #0d6efd; */
  background: none;
  border: none !important;
  box-shadow: none !important;
  font-size: 1.5em;
}

table.dataTable.dtr-inline.collapsed
  > tbody
  > tr.parent
  > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed
  > tbody
  > tr.parent
  > th.dtr-control:before {
  content: "▼";
  color: black;
  background-color: #d33333;
  background: none;
}

.dt-hasChild.parent {
  background: whitesmoke;
  border-bottom: #d4d3d3;
}

tr.child {
  background: whitesmoke;
  box-shadow: 4px 4px 20px -8px rgba(0, 0, 0, 0.3);
}

.card-body {
  overflow: hidden;
}

/* Style the autocomplete menu */
.ui-autocomplete {
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 4px 4px 20px -10px rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  max-height: 500px !important;
  overflow-y: auto;
  padding: 0;
  width: 200px;
  border-radius: 1em;
}

/* Style the autocomplete menu items */
.ui-autocomplete .ui-menu-item {
  padding: 5px !important;
}

/* Style the selected autocomplete menu item */
.ui-autocomplete .ui-menu-item.ui-state-focus {
  background-color: #a6a6a6 !important;
}

.profile-photo-container  {
  position: absolute;
  display: inline-block;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: thin solid #ccc;
  border-radius: 100%;
  background-color: #eee;
  top: -75px;
  right: -40px;
}

.badge-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: thin solid #ccc;
    border-radius: 100%;
    background-color: #eee;
    aspect-ratio: 1;
}

.profile-photo-container.profile-edit:before,
.badge-container.badge-edit:before {
  content: "Click to upload";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 0 0 50% 50%;
  pointer-events: none;
  align-content: center;
  text-align: center;
}



.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-container input[type="file"],
.badge-container input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.box {
  background: rgba(128, 128, 128, 0.1);
  border-radius: 1em;
}

.all-day-event-badge {
  background-color: black;
  color: white;
  border-radius: 2em;
  padding: 0 1em;
  font-weight: bold;
  text-transform: uppercase;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
  padding-left: 40px !important;
}

@media (max-width: 480px) {
  .right-side {
    order: -1;
  }

  div.dataTables_wrapper div.dataTables_filter {
    text-align: center !important;
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_length {
    width: fit-content;
    margin: 1em 0;
    float: left;
  }

  div.dt-buttons {
    display: inline-table;
    margin-bottom: 1.5rem;
    float: right;
    width: fit-content;
    margin: 1em 0;
  }
}
