@media (max-width: 750px) {
  .items-table-wrapper {
    overflow-x: auto;
  }

  .items-table {
    min-width: 900px;
  }

  .items-table th:nth-child(1),
  .items-table td:nth-child(1),
  .items-table th:nth-child(5),
  .items-table td:nth-child(5) {
    white-space: nowrap;
  }

  .actions-inline > button {
    padding: 0.15rem 0.45rem !important;
    font-size: 0.8rem !important;
  }
}

.app-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1 0 auto;
  max-width: 1900px;
  width: 100%;
  margin-inline: auto;
}

.app-title {
  margin-bottom: 0.75rem;
  text-align: left;
}

.api-dot {
  vertical-align: middle;
  margin-left: 0.5rem;
}

.preview-footer {
  margin-top: 0.5rem;
}

.cell-ellipsis {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
}

.status-processing-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.items-table {
  width: 100%;
  table-layout: fixed;
}

.items-table colgroup col:nth-child(1) { width: 6%; }
.items-table colgroup col:nth-child(2) { width: 24%; }
.items-table colgroup col:nth-child(3) { width: 24%; }
.items-table colgroup col:nth-child(4) { width: 12%; }
.items-table colgroup col:nth-child(5) { width: 18%; }
.items-table colgroup col:nth-child(6) { width: 14%; }

.app-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

.app-footer nav {
  justify-content: center;
}

.app-footer-links {
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
  padding-left: 0;
  opacity: 0.4;
}

.app-footer-links {
  margin-top: 0;
  margin-bottom: 0;
}

.clear-link {
  color: rgb(202, 34, 51);
}

.api-error {
  color: rgba(220, 53, 69, 0.9);
}

.auth-panel {
  min-width: min(92vw, 29rem);
}

.auth-subtitle {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}


.auth-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.auth-label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.auth-label > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.auth-error {
  display: block;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.auth-footer {
  margin-top: 0.55rem;
  display: flex;
  justify-content: flex-end;
}

.auth-label--code input {
  width: 12ch;
  margin-inline: auto;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  padding-inline: 0.55rem;
}

.auth-section--code .auth-label > span {
  text-align: center;
}

.items-table th,
.items-table td {
  padding-top: 0.18rem !important;
  padding-bottom: 0.18rem !important;
  line-height: 1.15;
}

.items-table code,
.items-table small {
  line-height: 1.15;
}

.items-table {
  border-collapse: separate;
  border-spacing: 0 0.2rem;
}

.actions-inline > button {
  line-height: 1 !important;
}

.icon-btn {
  width: 2.6rem !important;
  height: 2.6rem !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  border-radius: 0.25rem !important;
}

.items-table th:nth-child(1),
.items-table td:nth-child(1),
.items-table th:nth-child(6),
.items-table td:nth-child(6) {
  white-space: nowrap;
}

.items-table td:nth-child(6) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  padding-top: 0.12rem !important;
  padding-bottom: 0.12rem !important;
}

.actions-inline {
  display: contents;
}

.items-table thead,
.items-table thead th {
  background: transparent !important;
  background-color: transparent !important;
}

.items-table tbody td:first-child {
  position: relative;
  padding-left: 0.75rem !important;
}

.items-table tbody td:first-child::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  border-radius: 999px;
  opacity: 0.9;
}

.items-table tbody tr.row-status-success td:first-child::before {
  background: rgba(62, 207, 142, 0.9);
}

.items-table tbody tr.row-status-processing td:first-child::before {
  background: rgba(99, 102, 241, 0.9);
}

.items-table tbody tr.row-status-error td:first-child::before {
  background: rgba(255, 107, 129, 0.9);
}

.items-table tbody tr.row-status-success td:nth-child(5) small {
  color: rgba(62, 207, 142, 0.95);
}

.items-table tbody tr.row-status-processing td:nth-child(5) small {
  color: rgba(99, 102, 241, 0.95);
}

.items-table tbody tr.row-status-error td:nth-child(5) small {
  color: rgba(255, 107, 129, 0.95);
}

.items-table thead th {
  text-align: left;
  padding-bottom: 0.35rem !important;
}

.items-table code {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.08rem 0.25rem;
}

.items-table td:nth-child(2) code,
.items-table td:nth-child(3) code {
  opacity: 0.7;
}

.api-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
  animation: apiDotBlink 2.8s infinite;
}

.api-dot--online {
  background: rgba(40, 167, 69, 0.95);
  box-shadow: 0 0 0.55rem rgba(40, 167, 69, 0.55);
}

.api-dot--offline {
  background: rgba(220, 53, 69, 0.95);
  box-shadow: 0 0 0.55rem rgba(220, 53, 69, 0.45);
}

.api-dot--unknown {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0.55rem rgba(255, 255, 255, 0.15);
}

@keyframes apiDotBlink {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

@media (min-width: 750px) and (max-width: 1050px) {
  .items-table-wrapper {
    overflow-x: auto;
  }

  .items-table {
    min-width: 1100px;
  }
}

@media (max-width: 560px) {
  .auth-panel {
    min-width: 94vw;
    padding: 1rem;
  }

  .auth-footer {
    justify-content: stretch;
  }

  .auth-footer > button {
    width: 100%;
  }

  .auth-label--code input {
    width: 100%;
    max-width: 10ch;
  }
}


