

/* tbody tr td:nth-child(1) {
  padding-left: 15px;
}

tbody tr td:nth-child(2) {
  width: 200px !important;
  text-align: right;
  padding-right: 15px;
} */

tbody tr td:first-child {
  padding-left: 15px;
}

tbody tr td:last-child {
  padding-right: 15px;
}



/* @media (max-width: 767px)
{
  tbody tr td:nth-child(2) {
    width: 150px !important;
  }
}

@media (max-width: 576px)
{
  tbody tr td:nth-child(2) {
    width: 100% !important;
  }
} */

td.ellipsis {
  position: relative;
  width: 25%;
    /* display: inline-block;
    width: 30vw;
    height: 60.9px;
    line-height: 45px;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}

td.ellipsis span {
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  padding-right: 15px;
  line-height: 2rem;
}


@media (max-width: 576px)
{
  td.ellipsis {
    width: 100%;
    height: 2rem;
    line-height: 1rem;
  }
    td.ellipsis span {
      width: 50%;
      left: 50%;
      padding-right: 0;
  }
    tbody > tr > td.ellipsis {
        /* display: block;
        width: auto;
        padding-left: 150px!important; */
    }
}


.recipe-img {
  max-width: 400px;
  object-fit: contain;
}

.min-h-100vh {
  min-height: 100vh;
}

.isDisabled {
  pointer-events: none;
  color: rgb(200, 200, 200)!important;
  cursor: not-allowed;
}

.decimal {
  margin-left: 1em;
}

.decimal li {
  list-style: decimal;
  padding-left: 0.75em;
}

.tabHeader .tab-links a {
  background: #439cef!important;
}

.tabHeader .tab-links a.active {
  color: #439cef!important;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid hsl(0, 0%, 70%);
  border-radius: 4px;

  transition: all 0.3s;
}

.search-bar:focus-within {
  border-color: hsl(214, 100%, 80%);
  box-shadow: 0 0 10px -2px hsl(214, 100%, 60%);
}

.search-bar i.icon-search {
  margin-left: 0.75rem;
}

.search-bar i {
  transition: all 0.3s;
}

.search-bar i.clear-search {
  margin-right: 0.75rem;
  cursor: pointer;
}

.search-bar:focus-within i {
  color: hsl(214, 100%, 60%);
}

#search {
  width: 100%;
  font-family: 'Poppins', sans-serif;

  border: none;
}

#search::placeholder {
  font-size: 1rem;
}

.search-bar i {
  font-size: 1.25rem;
}

.card {
  border: none;
}

.dt-info {
  font-weight: 500;
  color: hsl(0, 0%, 70%);
}

.dt-pagination {
  color: hsl(0, 0%, 30%);
}


textarea#description {
  height: 400px;
}

.card-body ul {
  margin: 1rem 0 0.5rem 0;
}

.card-body ul li {
  list-style: disc;
  margin-left: 50px;
  /* margin-bottom: 5px; */
  line-height: 1.5;
  overflow-wrap: break-word;
}

.card-body h4 {
  margin-bottom: 1rem;
  margin-top: 1rem;
  /* font-weight: 600; */
}

.card-body p {
  margin-bottom: 0.5rem;
}


/* RICH TEXTAREA EDITOR */
button.btn-textEditor {
  /* --gap: 0.2rem; */
    padding: 0.5rem 0.5rem;
    height: 2rem;
    color: hsl(0, 0%, 30%);
    background: hsl(0, 0%, 95%);
    border: 1px solid hsl(0, 0%, 90%);
}

button.btn-textEditor:hover {
    background: hsl(0, 0%, 90%);
    color: hsl(0, 0%, 30%);
}

#output {
	min-height: 400px; 
	/* box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); */
	margin: 0.5rem 0 1rem 0;
	padding: 1rem;
  outline: none;
  border: 1px solid rgb(151, 151, 151);
  line-height: 1.2;

  transition: box-shadow, 0.3s, border 0.3s;
}

#output:focus-within {
    box-shadow: 0 0 5px rgba(0, 117, 250, .5);
    border: 1px solid rgba(0, 117, 250, .3);
}

#output div,
.textarea div {
    margin-bottom: 0!important;
    margin-top: 0!important;
}

#output h4,
.textarea h4 {
    /* margin-top: 1rem!important; */
    margin-bottom: 1rem!important;
    /* font-weight: 600; */
    font-size: 1.3rem!important;
}

#output h4:first-child,
.textarea h4:first-child {
    margin-top: 0!important;
}

#output ul,
.textarea ul,
#output ol,
.textarea ol {
  margin-bottom: 1rem;
}

#output ul li,
.textarea ul li {
    list-style: disc;
    margin-left: 50px!important;
    line-height: 1.5;
}

#output ol li,
.textarea ol li {
    list-style: decimal;
    margin-left: 50px!important;
    line-height: 1.5;
}

#output a,
.textarea a {
    color: #1cb3e4;
    text-decoration: none;
    cursor: pointer;
}

#output a:hover,
.textarea a:hover {
    text-decoration: underline;
}

#output button.btn-textEditor {
    padding: 0.5rem 0.5rem;
    height: 2rem;
    color: hsl(0, 0%, 30%);
    background: hsl(0, 0%, 95%);
    border: 1px solid hsl(0, 0%, 90%);
}


/* SWITCH */
.switch {
  position: relative;
  display: inline-block;
  /* width: 110px; */
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

.switch-label {
  margin-left: 50px;
  line-height: 20px;
  font-weight: 400;
}

.slider {
  position: absolute;
  cursor: pointer;
  width: 40px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: #ccc; */
  border: 1px solid #777;
  border-radius: 34px;

  transition: 0.3s;
}

.switch input {display: none;}

.slider::before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #777;
  border-radius: 50px;

  transition: 0.3s;
}

input:checked + .slider {
  background-color: #2196f3;
  border-color: #2196f3;
}

input:checked + .slider::before {
  transform: translateX(20px);
  background-color: #fff;
}



/* PAGINATION */
.pagination span#pageInfo {
    display: inline-block;
    margin: 0 1em;
    font-size: 16px;
    color: #333;
}

/* TABLE */
.table tr th {
  text-align: center;
}
.table tr th:nth-child(1) {
  text-align: left;
}


/* Style groups */
#groupe[class*="style-"],
.table tbody td span[class*="style-"] {
  padding-block: .2rem;
  padding-inline: .75rem;
  border-radius: 25px;
}

#groupe.style-famille,
.table tbody td span.style-famille {
  color: var(--blue-500);
  background-color: var(--blue-50);
}
#groupe.style-amis,
.table tbody td span.style-amis {
  color: var(--orange-500);
  background-color: var(--orange-50);
}
#groupe.style-voisins,
.table tbody td span.style-voisins {
  color: var(--green-500);
  background-color: var(--green-50);
}
#groupe.style-danse,
.table tbody td span.style-danse {
  color: var(--pink-500);
  background-color: var(--pink-50);
}

#groupe.style-famille {background-color: var(--blue-100);}
#groupe.style-amis {background-color: var(--orange-100);}
#groupe.style-voisins {background-color: var(--green-100);}
#groupe.style-danse {background-color: var(--pink-100);}


/* Table action buttons */
.btn-action {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--blue-gray-600);
  border-radius: 50%;

  transition: background-color .3s ease, color .3s ease;
}

.btn-action.preview {background-color: var(--blue-100);}
.btn-action.edit {background-color: var(--green-100);}
.btn-action.delete {background-color: var(--red-100);}

.btn-action:hover {color: var(--blue-gray-600);}
.btn-action.preview:hover {background-color: var(--blue-300); color: var(--blue-700);}
.btn-action.edit:hover {background-color: var(--green-200); color: var(--green-700);}
.btn-action.delete:hover {background-color: var(--red-200); color: var(--red-700);}



.decoration-none {
  text-decoration: none;
}



/* MODAL */
.modal.viewInvitationModal .modal-box {
  width: 600px;
  max-width: calc(100vw - 20px);
  height: fit-content;
  max-height: calc(100vh - 20px);
}


/* SCROLLBAR
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
    .scrollbar-light::-webkit-scrollbar {
      width: 6px; /* width of the entire scrollbar */
      height: 6px;
    }
    
    .scrollbar-light::-webkit-scrollbar-track {
      background: hsl(210, 35%, 95%); /* color of the tracking area */
      border-radius: 20px;
    }
    
    .scrollbar-light::-webkit-scrollbar-thumb {
      background-color: hsl(215, 30%, 85%); /* color of the scroll thumb */
      border-radius: 20px; /* roundness of the scroll thumb */
    }



/* MODAL */

@media (max-width: 500px)
{
    .modal-box {
      padding: 20px;
    }

    /* .modal-box-title {
      margin-bottom: 1rem;
    } */

    .modal-box-title #name {
      font-size: 1.5rem;
    }

    .modal-box-title #date {
      font-size: 1rem;
    }

    /* .modal .card-body {
      height: 24rem;
    } */
}


.modal-box {
  max-width: calc(100vw - 20px);
  /* max-height: calc(100vh - 20px); */
}

.modal-box-body .card {
  margin-bottom: 2rem;
}

.modal-box-title {
    width: 100%;
    margin-bottom: 0;
    flex: 1;
}

/* .modal-box-body {
    flex: 3;
} */

.modal-box-footer {
    margin-top: 0;
    height: 40px;
}

.card-body {
  height: 21rem;
}


.modal-box-body .modal-content {
    padding: .5rem;
}

.modal-box-body .modal-content h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.modal-box-body .modal-content ul {
    margin-block: 1rem;
}

.modal-box-body .modal-content ul li {
    list-style-type: disc;
    margin-left: 2rem;
    line-height: 1.5;
}


.overscroll-y-contain {
  overscroll-behavior-y: contain;
}



.flex-column {
  flex-direction: column;
}

.flex-grow-2 {
  flex-grow: 2;
}

.h-100 {
  height: 100%;
}