.admin-container {
  width: 100%;
  color: var(--font-color);
  padding: 5px 25px;
  /* padding-bottom: 4rem; */
}

.container-info {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1.3rem;
  align-items: center;
  padding-left: 0.1rem;
  padding-right: 1rem;
}

.font-awesome-icons {
  color: var(--primary-color);
}

.font-awesome-icons.error{
  color: var(--error-color);
}

.icon-link {
  color: var(--font-color);
}

.admin-container .container-info .title > h1 {
  color: var(--primary-color);
  font-size: 3.2rem;
  font-family: 'Abhaya Libre', serif;
}

.support-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 0;
}

.email-text {
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.email-tooltip-text {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-variant);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.support-email:hover .email-tooltip-text {
  opacity: 1;
}

.title-total-discounts {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.title-total-cardholders {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.contents-total-discounts .table {
  background-color: var(--bg-variant);
  padding-top: 1.3rem;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  padding-bottom: 0.7rem;
}

.table-total-discounts table {
  width: 100%;
}

.table-total-discounts tr {
  display: flex;
  justify-content: space-between;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: all 0.1s ease-out;
}

.table-total-discounts tr:hover {
  background-color: var(--bg-color);
  cursor: pointer;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: solid 1px var(--font-color);
}

.section-title-cardholders {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 49% 49.5%;
  margin-bottom: 2rem;
}

.table-total-cardholders {
  width: 100%;
  /* padding-top: 0.4rem; */
  border-collapse: collapse;
  table-layout: fixed;
}

.table-total-cardholders .admin-cardholder-td-thead {
  border-bottom: solid 1px var(--font-color);
  text-align: left;
  /* padding-left: 1rem;
  padding-right: 0.5rem;
  padding-bottom: 0.7rem; */
}

.table-total-cardholders th {
  font-weight: 500;
}

.table-total-cardholders tr {
  /* display: flex;
  justify-content: space-between; */
}

.table-total-cardholders tbody {
  padding: 0;
}

.table-total-cardholders tbody tr {
  /* display: flex;
  border: 1px solid var(--bg-variant);
  padding: 0.6rem 1rem;
  transition: all 0.1s ease-out;
  position: relative; */
}

.table-total-cardholders tbody tr td {
  padding: 0.3rem;
}

.table-total-cardholders tbody tr:nth-child(odd) {
  background-color: var(--bg-variant);
}

.table-total-cardholders tbody tr:hover {
  cursor: pointer;
  background-color: var(--grey-color);
}

.hover-pointer:hover {
  cursor: pointer;
}

.view-all-icon-text {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;

  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  position: relative;
}

.view-all-text {
  margin-right: 1rem;
  font-size: 1rem;
  color: var(--primary-color);
  transition: all 0.1s ease-out;
}

.view-all-text:hover {
  color: var(--font-color);
}

.view-all-icon-text:hover {
  background-color: var(--bg-variant);
  padding-left: 23px;
  width: 120px;
  border-radius: 20px;
  justify-content: flex-start;
}

.view-all-icon-text:hover .view-all-text {
  opacity: 1;
}

.view-all-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.view-all-icon:hover {
  background-color: var(--bg-color);
}

.admin-cardholder-td-thead th:nth-child(1) {
  width: 8%; /* Card No. */
  padding: 2px;
}

.admin-cardholder-td-thead th:nth-child(2) {
  width: 25%; /* Name */
  padding: 5px;

}

.admin-cardholder-td-thead th:nth-child(3) {
  width: 37%; /* Email */
  padding: 5px;

}

.admin-cardholder-td-thead th:nth-child(4) {
  width: 10%; /* Status */
  padding: 5px;

}

.admin-cardholder-td-thead th:nth-child(5) {
  width: 10%; /* CardType */
  padding: 5px;

}

.admin-cardholder-td-thead th:nth-child(6) {
  width: 10%; /* Issue Date */
  padding: 5px;

}

.table-total-cardholders tbody tr td[data-title='Name'] {
  /* position: absolute; */
  /* left: 6.7rem; */
}

.table-total-cardholders tbody tr td[data-title='Email'] {
  /* position: absolute;
  left: 18rem; */
}

.table-total-cardholders tbody tr td[data-title='Status'] {
  /* position: absolute;
  left: 38.4rem; */
}

.table-total-cardholders tbody tr td[data-title='CardType'] {
  /* position: absolute; */
  /* left: 48rem; */
}

.alert.alert-danger {
  color: #c71515; /* Red color for the text */
  padding: 10px; /* Padding around the text */
  border: 1px solid #c71515; /* Matching border color */
  margin-bottom: 10px; /* Spacing below the alert */
  border-radius: 10px; /* Rounded corners */
  background-color: rgba(199, 21, 21, 0.1); /* Light red background */
  display: flex; /* Flexbox layout for the icon and text */
  align-items: center; /* Center items vertically */
  font-size: 16px; /* Optional: Adjust font size */
}

/* Style for the icon */
.alert.alert-danger i {
  margin-right: 10px; /* Space between the icon and the text */
  font-size: 18px; /* Icon size */
}

.alert.alert-success {
  color: #28a745; /* Green color for the text */
  padding: 10px; /* Padding around the text */
  border: 1px solid #28a745; /* Matching border color */
  margin-bottom: 10px; /* Spacing below the alert */
  border-radius: 10px; /* Rounded corners */
  background-color: rgba(40, 167, 69, 0.1); /* Light green background */
  display: flex; /* Flexbox layout for the icon and text */
  align-items: center; /* Center items vertically */
  font-size: 16px; /* Optional: Adjust font size */
}

/* Style for the icon */
.alert.alert-success i {
  margin-right: 10px; /* Space between the icon and the text */
  font-size: 18px; /* Icon size */
}

.alert.alert-info {
  color: #17a2b8; /* Blue color for the text */
  padding: 10px; /* Padding around the text */
  border: 1px solid #17a2b8; /* Matching border color */
  margin-bottom: 10px; /* Spacing below the alert */
  border-radius: 10px; /* Rounded corners */
  background-color: rgba(23, 162, 184, 0.1); /* Light blue background */
  display: flex; /* Flexbox layout for the icon and text */
  align-items: center; /* Center items vertically */
  font-size: 16px; /* Optional: Adjust font size */
}

/* Style for the icon */
.alert.alert-info i {
  margin-right: 10px; /* Space between the icon and the text */
  font-size: 18px; /* Icon size */
}

/* responsive design */
@media only screen and (max-width: 768px) {
  .admin-container {
    display: flex;
    flex-direction: column;
  }

  .container-info {
    flex-direction: column;
    margin-bottom: 2.4rem;
  }

  .grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 100%;
  }

  /* inspiration */
  /* https://medium.com/appnroll-publication/5-practical-solutions-to-make-responsive-data-tables-ff031c48b122 */
  #no-more-tables table,
  #no-more-tables thead,
  #no-more-tables tbody,
  #no-more-tables th,
  #no-more-tables td,
  #no-more-tables tr {
    display: block;
  }

  /* Hide table headers */
  #no-more-tables thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  #no-more-tables tbody tr {
    padding: 1rem;
  }

  #no-more-tables td {
    /* Behave  like a "row" */
    border: none;
    /* position: relative; */
    /* padding-left: 50%; */
    white-space: normal;
    /* text-align: left; */
    line-height: 1.8rem;
  }

  #no-more-tables td:before {
    /* Now like a table header */
    /* position: absolute; */
    /* left: 6px; */
    /* width: 45%; */
    /* padding-right: 10px; */
    white-space: nowrap;
    text-align: left;
    font-weight: 300;
    color: var(--primary-color);
  }

  #no-more-tables td:before {
    content: attr(data-title);
  }

  .table-total-cardholders tbody tr td[data-title='Name'],
  .table-total-cardholders tbody tr td[data-title='Email'],
  .table-total-cardholders tbody tr td[data-title='Status'],
  .table-total-cardholders tbody tr td[data-title='CardType'] {
    left: 0;
  }
}
