body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Use full viewport height */
  background-color: #f4f4f4;
  margin: 0;
}

.collection-table-container {
  overflow: auto;
  margin-top: 2rem;
  max-width: 400px;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #66bb6a;
  color: #fff;
}

th {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  white-space: nowrap;
}
td {
  padding: 12px;
  border: 1px solid #ddd;
  white-space: nowrap;
}

/* Alternating row colors */
tbody tr:nth-child(odd) {
  background-color: #e8f5e9;
}

tbody tr:nth-child(even) {
  background-color: #f1f8e9;
}

@media (max-width: 600px) {
  th,
  td {
    padding: 8px;
    font-size: 16px;
  }
}

.table-container {
  background: linear-gradient(135deg, #ffffff, #e6e6e6);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 20rem;
  display: none;
  flex-direction: column;
  justify-content: space-between; /* Ensure space between sections */
}

.table-header {
  position: sticky;
  top: 0;
  z-index: 1; /* Ensure the header stays on top of the table rows */
}

/*Accordion Styles Start*/
/* ===============================
   ROOT CONTAINER
================================ */

.accNesList-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ===============================
   MAIN ACCORDION
================================ */

.accNesList-accordion {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

/* ===============================
   HEADERS
================================ */

.accNesList-accordion .accordion-header {
  width: 100%;
  text-align: left;
  padding: 12px 14px !important;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.accNesList-accordion .accordion-header:hover {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
}

.accNesList-accordion .accordion-header.active {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* ===============================
   ICON ROTATE
================================ */

.accNesList-accordion .icon {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.accNesList-accordion .accordion-header.active .icon {
  transform: rotate(180deg);
}

/* ===============================
   CONTENT PANEL
================================ */

.accNesList-accordion .accordion-content {
  display: none;
  padding: 4px;
  margin-left: 4px;
  border-left: 4px solid #2e7d32;
  background: #f3f7f5;
  border-radius: 0 0 8px 8px;
}

/* ===============================
   INNER (CHILD) ACCORDION
================================ */

.accNesList-accordion .child-accordion {
  margin-top: 8px;
}

/* Inner Header */

.accNesList-accordion .child-accordion .accordion-header {
  background: linear-gradient(135deg, #00695c, #00897b);
  font-size: 14px;
  padding: 10px 12px !important;
}

.accNesList-accordion .child-accordion .accordion-header:hover {
  background: linear-gradient(135deg, #00897b, #009688);
}

.accNesList-accordion .child-accordion .accordion-header.active {
  background: linear-gradient(135deg, #009688, #26a69a);
}

/* Inner Content Box */

.accNesList-accordion .child-accordion .accordion-content {
  background: #e0f2f1;
  border-left-color: #00796b;
  padding: 10px;
}

/* ===============================
   TEXT CONTENT BOX
================================ */

.accNesList-accordion .child-accordion .accordion-content > div {
  background: #ffffff;
  padding: 14px;
  border-radius: 10px;
  line-height: 1.7;
  font-size: 14px;
  color: #333;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.08);
}

/* ===============================
   SCROLLBAR STYLE
================================ */

.accNesList-accordion
  .child-accordion
  .accordion-content
  > div::-webkit-scrollbar {
  width: 6px;
}

.accNesList-accordion
  .child-accordion
  .accordion-content
  > div::-webkit-scrollbar-thumb {
  background: #009688;
  border-radius: 10px;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 600px) {
  .accNesList-accordion {
    max-width: 100%;
  }

  .accNesList-accordion .accordion-header {
    font-size: 14px;
  }
}
/*Accordion Styles End*/
