.module-archive-open-button.is-active {
  border-color: var(--accent, #0c8c82);
  color: var(--accent, #0c8c82);
}

.module-archive-generated-toolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.module-archive-generated-toolbar > .module-archive-open-button {
  flex: 0 0 auto !important;
  align-self: center !important;
  width: auto !important;
  min-height: 32px;
}

html body .app .module-toolbar .module-archive-open-button {
  flex: 0 0 auto !important;
  align-self: flex-end !important;
  width: max-content !important;
  max-width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
}

.module-archive-host.is-module-archive-open > :not(.module-archive-panel) {
  display: none !important;
}

.module-archive-panel {
  min-width: 0;
  width: 100%;
  color: var(--text, #172b2a);
  font: inherit;
}

.module-archive-heading,
.module-archive-actions,
.module-archive-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-archive-heading {
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--line, #d3e4e2);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #fff;
}

.module-archive-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.module-archive-heading-actions,
.module-archive-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-archive-heading select,
.module-archive-actions select {
  min-width: 170px;
  height: 38px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line, #d3e4e2);
  border-radius: 6px;
  background-color: #fff;
  color: inherit;
  font: inherit;
}

.module-archive-actions {
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line, #d3e4e2);
  background: #fff;
}

html body .app .module-archive-panel .module-archive-actions button.danger-button {
  border-color: #b63d3d !important;
  background: #b63d3d !important;
  color: #fff !important;
}

html body .app .module-archive-panel .module-archive-actions button.danger-button:hover {
  border-color: #993232 !important;
  background: #993232 !important;
}

.module-archive-selection {
  min-width: 92px;
  color: var(--muted, #657a78);
  font-size: 13px;
  white-space: nowrap;
}

.module-archive-status {
  padding: 8px 14px;
  border-right: 1px solid var(--line, #d3e4e2);
  border-left: 1px solid var(--line, #d3e4e2);
  background: #fff;
  color: var(--muted, #657a78);
  font-size: 13px;
}

.module-archive-status.is-error,
.module-archive-error {
  color: #a63b3b;
}

.module-archive-table-wrap {
  width: 100%;
  min-height: 240px;
  max-height: calc(100vh - 310px);
  overflow: auto;
  border: 1px solid var(--line, #d3e4e2);
  background: #fff;
}

.module-archive-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
  font: inherit;
}

.module-archive-table th,
.module-archive-table td {
  height: 48px;
  padding: 8px 12px;
  border-right: 1px solid var(--line, #d3e4e2);
  border-bottom: 1px solid var(--line, #d3e4e2);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-archive-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--table-head, #f3f8f7);
  font-weight: 500;
}

.module-archive-table th:nth-child(2) { width: 24%; }
.module-archive-table th:nth-child(3) { width: 15%; }
.module-archive-table th:nth-child(4) { width: 17%; }
.module-archive-table th:nth-child(5) { width: 15%; }
.module-archive-table th:nth-child(6) { width: 15%; }
.module-archive-table th:nth-child(7) { width: 14%; }

.module-archive-table tr.is-selected td {
  background: #f2f9f8;
}

.module-archive-select-col {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding-right: 8px !important;
  padding-left: 8px !important;
  text-align: center !important;
  background: #fff;
}

.module-archive-table th.module-archive-select-col {
  z-index: 3;
  background: var(--table-head, #f3f8f7);
}

.module-archive-record-name {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-archive-date {
  font-variant-numeric: tabular-nums;
}

.module-archive-pagination {
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid var(--line, #d3e4e2);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
  color: var(--muted, #657a78);
  font-size: 13px;
}

@media (max-width: 900px) {
  .module-archive-heading,
  .module-archive-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .module-archive-heading-actions {
    justify-content: space-between;
  }

  .module-archive-heading-actions select,
  .module-archive-actions select {
    min-width: 0;
    width: 100%;
  }

  .module-archive-actions button {
    width: 100%;
  }

  .module-archive-table-wrap {
    max-height: calc(100vh - 390px);
  }
}
