footer {
  display: none !important;
}

/* ==========================================================
   SBMList Shell
   ========================================================== */

.sbm-list-shell {
  height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 12px 4px;
  overflow: hidden;
}

.sbm-list-host {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--sbm-border-radius-form);
  box-shadow: var(--sbm-box-shadow);
}

.sbm-list-frame {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  gap: 1rem;
  overflow: hidden;
}

.sbm-list-toolbar,
.sbm-list-filter-row {
  flex-shrink: 0;
}

.sbm-list-toolbar {
  --sbm-list-toolbar-gap: 8px;
  --sbm-list-search-width: clamp(240px, 40vw, 620px);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sbm-list-toolbar-gap);
}

.sbm-list-toolbar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
  max-width: max(
    0px,
    calc(50% - (var(--sbm-list-search-width) / 2) - var(--sbm-list-toolbar-gap))
  );
}

.sbm-list-toolbar__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbm-list-toolbar__search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--sbm-list-search-width);
  max-width: calc(100% - (var(--sbm-list-toolbar-gap) * 2));
}

.sbm-list-toolbar__filters {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.sbm-list-filter-row {
  background: var(--sbm-bg-default);
  border-radius: var(--sbm-border-radius-form);
  box-shadow: var(--sbm-box-shadow);
}

.sbm-list-filter-row .row,
[class~="sbm-list-filter-row" i] .row {
  align-items: center;
}

/* ==========================================================
   Search
   ========================================================== */

#learningListSearchHost {
  width: 100%;
  max-width: 100%;
}

.sbm-list-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0.375rem 0.875rem;
  background: var(--sbm-bg-form);
  border-radius: 999px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.sbm-list-search:focus-within {
  background: var(--sbm-bg-default);
  box-shadow: 0 0 0 1px var(--sbm-border-form);
}

.sbm-list-search__icon {
  margin-right: 0.5rem;
  color: var(--sbm-text-muted);
  font-size: 0.9rem;
}

.sbm-list-search__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sbm-text-default);
  font-family: var(--sbm-font-family-base);
  font-size: var(--sbm-font-size);
}

.sbm-list-search__input::placeholder {
  color: var(--sbm-text-muted);
}

/* ==========================================================
   Table Shell
   ========================================================== */

.sbm-list-table-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--sbm-bg-default);
  border-radius: var(--sbm-border-radius-form);
  box-shadow: var(--sbm-box-shadow);
  overflow: hidden;
}

.sbm-list-table-wrap {
  background: rgb(250, 250, 250);
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

.sbm-list-table-wrap.is-refreshing .sbm-list-table tbody {
  opacity: 0.55;
  pointer-events: none;
}

.sbm-list-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(250, 250, 250, 0.72);
  z-index: 2;
}

.sbm-list-table-wrap.is-refreshing .sbm-list-loading-overlay {
  align-items: flex-start;
  padding-top: 3.5rem;
  background: transparent;
  pointer-events: none;
}

.sbm-list-table-wrap.is-navigating {
  cursor: progress;
}

.sbm-list-table-wrap.is-navigating .sbm-list-row--clickable,
.sbm-list-table-wrap.is-navigating .sbm-list-row--clickable td,
.sbm-list-table-wrap.is-navigating .sbm-list-row--clickable .sbm-list-link,
.sbm-list-table-wrap.is-navigating .sbm-list-row--clickable .sbm-list-cell-content {
  cursor: progress !important;
}

.sbm-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem;
  border-top: 1px solid var(--sbm-border-subtle);
  color: var(--sbm-text-muted);
}

/* ==========================================================
   Table
   ========================================================== */

.sbm-list-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.sbm-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0.9rem 1rem;
  background: var(--sbm-bg-default);
  border-top: 0;
  border-bottom: 1px solid var(--sbm-border-subtle);
  color: var(--sbm-text-default);
  font-size: 0.875rem;
  font-weight: var(--sbm-font-weight-bold);
  white-space: nowrap;
}

.sbm-list-table tbody td {
  padding: 0.5rem 1rem;
  height: 44px;
  border-bottom: 1px solid var(--sbm-color-secondary-muted);
  vertical-align: middle;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sbm-list-row {
  cursor: default;
  height: 44px;
}

.sbm-list-row--clickable {
  cursor: pointer;
}

.sbm-list-row.is-navigating td {
  opacity: 0.7;
}

.sbm-list-row:hover td {
  background: var(--sbm-color-secondary-muted);
}

.sbm-list-row:hover td:first-child::before {
  background: var(--sbm-color-primary);
}

.sbm-list-row:focus,
.sbm-list-row:focus-visible {
  outline: none;
}

.sbm-list-row:focus-within td {
  background: var(--sbm-color-info-muted);
  border-top-color: var(--sbm-color-secondary-muted);
  border-bottom-color: var(--sbm-color-secondary-muted);
}

.sbm-list-row:focus-within .sbm-list-link:focus,
.sbm-list-row:focus-within .sbm-list-link:focus-visible {
  outline: none;
  box-shadow: none;
}

.sbm-list-table tbody td:first-child {
  position: relative;
}

.sbm-list-table tbody td:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: transparent;
  transition: background-color 0.15s ease, width 0.15s ease;
}

/* ==========================================================
   Sort Buttons
   ========================================================== */

.sbm-list-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sbm-list-sort-button:hover,
.sbm-list-sort-button.is-active {
  color: var(--sbm-color-primary);
}

.sbm-list-sort-button:focus-visible {
  outline: 2px solid var(--sbm-color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.sbm-list-sort-icon {
  min-width: 12px;
  font-size: 0.85rem;
  font-weight: var(--sbm-font-weight-bold);
}

/* ==========================================================
   Cells
   ========================================================== */

.sbm-list-cell {
  color: inherit;
}

.sbm-list-title-cell {
  min-width: 320px;
}

.sbm-list-title-cell .sbm-list-link {
  color: var(--sbm-color-primary);
  font-weight: var(--sbm-font-weight-semibold);
  text-decoration: underline;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.sbm-list-title-cell .sbm-list-link:hover {
  color: var(--sbm-color-primary-strong);
}

.sbm-list-cell--primary {
  white-space: nowrap;
}

.sbm-list-cell--multiline {
  max-width: 320px;
}

.sbm-list-cell-content {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: inherit;
  line-height: 1.3;
}

.sbm-list-cell--date {
  width: 175px;
  white-space: nowrap;
  color: var(--sbm-text-muted);
}

.sbm-list-link {
  color: inherit;
  font-weight: var(--sbm-font-weight-semibold);
  text-decoration: none;
}

/* ==========================================================
   States / Loading
   ========================================================== */

.sbm-list-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1.25rem;
  color: var(--sbm-text-muted);
}

.sbm-list-state--overlay {
  min-height: 100%;
}

.sbm-list-state--error {
  color: var(--sbm-color-danger);
}

.sbm-list-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--sbm-border-brand);
  border-top-color: var(--sbm-color-primary);
  border-radius: 50%;
  animation: sbm-list-spin 0.8s linear infinite;
}

@keyframes sbm-list-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================
   Scrollbars
   ========================================================== */

.sbm-list-table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.sbm-list-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.sbm-list-table-wrap::-webkit-scrollbar-thumb {
  background: var(--sbm-border-subtle);
  border-radius: 20px;
}

.sbm-list-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--sbm-text-muted);
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {
  .sbm-list-toolbar {
    position: static;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .sbm-list-toolbar__search {
    position: static;
    transform: none;
    width: 100%;
    order: 3;
  }

  .sbm-list-toolbar__filters {
    margin-left: auto;
  }

  #learningListSearchHost {
    width: 100%;
  }

  .sbm-list-table tbody td {
    padding: 0.85rem;
  }

  .sbm-list-cell--multiline {
    max-width: 250px;
  }
}
