.admin-sheet-page .admin-grid,
.admin-sheet-page #adminContent {
  min-width: 0;
}

.admin-users-actions {
  margin-bottom: 12px;
}

.admin-user-card-title {
  display: none;
}

.admin-users-table {
  min-width: 1160px;
}

.admin-users-table td {
  min-width: 125px;
}

.admin-users-table td:first-child {
  min-width: 155px;
}

.admin-users-table td:nth-last-child(-n + 2) {
  min-width: 80px;
}

.admin-users-table .table-input {
  min-width: 0;
}

@media (max-width: 1120px) {
  .admin-sheet-page .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .admin-sheet-page .topbar {
    position: static;
  }

  .admin-sheet-page .topbar .brand,
  .admin-sheet-page .topbar [data-user-badge] {
    flex: 1 1 100%;
  }

  .admin-sheet-page .topbar .user-online {
    display: none;
  }

  .admin-sheet-page .topbar > .btn {
    flex: 1 1 auto;
  }

  .admin-sheet-page .panel {
    padding: 12px;
  }

  .admin-users-actions {
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 8px;
    padding: 8px 0;
    background: var(--surface);
  }

  .admin-users-actions .btn {
    flex: 1 1 140px;
    min-height: 44px;
  }

  .admin-users-wrap {
    overflow: visible;
    border-top: 0;
  }

  .admin-users-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-users-table thead {
    display: none;
  }

  .admin-users-table tbody {
    display: grid;
    gap: 12px;
  }

  .admin-users-table tr {
    display: block;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }

  .admin-users-table td,
  .admin-users-table td:first-child,
  .admin-users-table td:nth-last-child(-n + 2) {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    text-align: left !important;
  }

  .admin-users-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #27425e;
    font-size: 13px;
    font-weight: 700;
  }

  .admin-users-table td:first-child::before {
    display: none;
  }

  .admin-user-card-title {
    display: block;
    color: #0f2d4d;
    font-size: 16px;
  }

  .admin-users-table .admin-user-avatar-cell {
    min-width: 0;
  }

  .admin-users-table .table-input {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .admin-users-table input[type="file"] {
    font-size: 14px;
  }

  .admin-users-table textarea.table-input {
    min-height: 72px;
    resize: vertical;
  }

  .admin-users-table input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 4px 0;
  }

  .admin-users-table .admin-user-avatar-cell .btn,
  .admin-users-table .admin-user-delete-cell .btn {
    min-height: 44px;
  }

  .admin-users-table .admin-user-delete-cell .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .admin-sheet-page .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
