.ecl-root {
  --ecl-header-bg: #003b4b;
  --ecl-header-text: #fff;
  --ecl-row-odd: #fff;
  --ecl-row-even: #dbd1af;
  --ecl-row-hover: #e5ddbf;
  --ecl-border: #f1e9cb;
  --ecl-button-bg: #ae3934;
  --ecl-button-hover: #a50c0d;
  --ecl-button-text: #fff;
  --ecl-mobile-card-gap: 15px;
  --ecl-mobile-border-style: solid;
  --ecl-mobile-border-width: 2px;
  --ecl-mobile-border-color: #f1e9cb;
  --ecl-mobile-radius: 0;
  width: 100%;
  font-family: Poppins, Helvetica, Arial, sans-serif;
}

.ecl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.ecl-filter,
.ecl-search {
  width: 100%;
  max-width: 360px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid #333;
  border-radius: 5px;
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 700;
}

.ecl-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ecl-table {
  width: 100%;
  border: 4px solid var(--ecl-border);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ecl-border);
}

.ecl-table th,
.ecl-table td {
  padding: 8px 15px;
  border: 1px solid var(--ecl-border);
  font-size: 1em;
}

.ecl-table th {
  padding: 0;
  background: var(--ecl-header-bg);
  color: var(--ecl-header-text);
  text-align: left;
  font-weight: 900;
  text-transform: uppercase;
}

.ecl-table th:not(.ecl-sortable) {
  padding: 15px;
}

.ecl-sortable button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 34px 15px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.ecl-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translateY(-50%);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.ecl-sortable[aria-sort="ascending"] .ecl-arrow {
  opacity: 1;
  border-bottom: 7px solid currentColor;
}

.ecl-sortable[aria-sort="descending"] .ecl-arrow {
  opacity: 1;
  border-top: 7px solid currentColor;
}

.ecl-table tbody tr td {
  vertical-align: middle;
  background: var(--ecl-row-odd);
  transition: background-color 0.15s ease-in-out;
}

.ecl-table tbody tr.ecl-row-even td {
  background: var(--ecl-row-even);
}

.ecl-table tbody tr:hover td {
  background: var(--ecl-row-hover);
}

.ecl-directions {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border-radius: 3px;
  background: var(--ecl-button-bg);
  color: var(--ecl-button-text) !important;
  font-family: "Geared Slab", Poppins, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 0.2s ease-in-out;
}

.ecl-directions:hover,
.ecl-directions:focus-visible {
  background: var(--ecl-button-hover);
  color: var(--ecl-button-text) !important;
}

.ecl-empty,
.ecl-message {
  padding: 16px;
  text-align: center;
}

.ecl-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .ecl-table-wrap {
    overflow: visible;
  }

  .ecl-table,
  .ecl-table tbody,
  .ecl-table tr,
  .ecl-table td {
    display: block;
    width: 100%;
  }

  .ecl-table {
    border: 0;
    background: transparent;
  }

  .ecl-table thead {
    display: none;
  }

  .ecl-table tbody tr {
    margin-bottom: var(--ecl-mobile-card-gap);
    border-color: var(--ecl-mobile-border-color);
    border-style: var(--ecl-mobile-border-style);
    border-width: var(--ecl-mobile-border-width);
    border-radius: var(--ecl-mobile-radius);
    overflow: hidden;
  }

  .ecl-table tbody tr[hidden] {
    display: none;
  }

  .ecl-table td {
    display: grid;
    grid-template-columns: minmax(100px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 42px;
    padding: 10px 12px;
    text-align: right;
  }

  .ecl-table td::before {
    content: attr(data-label);
    position: static;
    width: auto;
    font-weight: 700;
    text-align: left;
  }

  .ecl-table td > * {
    min-width: 0;
  }
}
