.topbar-burger {
  display: none;
}

@media (max-width: 1024px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .content-actions {
    grid-template-columns: 1fr;
  }

  .search-field {
    max-width: 100%;
  }

  .docs-summary {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  :root {
    --control-h: 44px;
    --control-h-compact: 40px;
  }

  .shell {
    padding: 0 var(--space-12);
  }

  .content {
    gap: 10px;
  }

  .layout {
    padding: var(--space-12) 0 var(--space-16);
  }

  .topbar-inner {
    padding: var(--space-6) 0;
    gap: var(--space-12);
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
  }

  .top-actions {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--space-8);
  }

  .top-actions .top-stats,
  .top-actions #btnLogout {
    display: none;
  }

  .brand {
    position: static;
    transform: none;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }

  .topbar-burger {
    display: inline-flex !important;
    visibility: visible;
  }

  .theme-toggle {
    display: inline-flex;
  }

  .top-actions {
    display: none;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-value {
    font-size: 13px;
  }

  .top-stats {
    flex-direction: row;
    align-items: center;
  }

  .table-wrap {
    max-height: none;
  }

  .sidebar {
    display: none;
  }

  .app {
    padding-bottom: 0;
  }

  .content-head {
    padding: 0 var(--space-12);
  }

  .content-actions {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .content-actions .search-field {
    order: 1;
  }

  .content-actions .docs-summary {
    order: 2;
  }

  .content-actions #btnUpload {
    order: 3;
  }

  .content-actions .btn {
    width: 100%;
  }

  .docs-summary {
    justify-self: start;
    font-size: var(--fs-12);
    white-space: normal;
  }

  .page-title {
    font-size: 32px;
  }

  .file-picker {
    grid-template-columns: 1fr;
  }

  .docs-cards {
    display: grid;
  }

  .docs-cards {
    padding: var(--space-12);
    gap: var(--space-10);
  }

  .doc-card {
    gap: var(--space-6);
    margin-bottom: 10px;
  }

  .doc-card-actions {
    justify-content: flex-end;
  }

  .doc-chip-row {
    gap: var(--space-4);
  }

  .doc-hash.hash {
    cursor: default;
  }

  .doc-hash.hash::after {
    display: none;
  }

  .table-wrap {
    display: none;
  }

  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .table-footer .bulk-actions {
    justify-content: center;
  }

  .pagination {
    justify-content: center;
    margin-left: 0;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
