.brand-mobile {
  display: none;
}

.navbar-toggler-icon {
  position: relative;
  width: 23px;
  height: 17px;
  background: none !important;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.navbar-toggler-icon::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  border-top: 2px solid var(--primary);
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .app-nav {
    min-height: 58px;
  }

  .app-nav .container {
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: grid;
    place-items: center;
    width: 44px;
    height: 42px;
    padding: 0;
    border-radius: 11px;
  }

  .navbar-collapse {
    width: 100%;
    padding: 10px 0 13px;
  }

  .app-nav .nav-link,
  .app-nav .nav-link.nav-active,
  .app-nav .btn {
    padding: .68rem .75rem;
  }

  .app-nav form,
  .app-nav form button {
    width: 100%;
    text-align: left;
  }

  .students-page .page-heading {
    align-items: flex-end !important;
    gap: 16px;
    margin-bottom: 20px !important;
  }

  .students-page .page-heading h1 {
    font-size: 2rem;
  }

  .students-page .page-heading .btn {
    flex: 0 0 auto;
  }

  .student-table-card {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .student-table-card table,
  .student-table-card tbody {
    display: block;
  }

  .student-table-card thead {
    display: none;
  }

  .student-table-card tbody {
    display: grid;
    gap: 12px;
  }

  .student-table-card tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .student-table-card tbody tr:hover {
    background: var(--surface);
  }

  .student-table-card tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    color: var(--text-muted);
  }

  .student-table-card tbody td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  .student-table-card tbody .student-name {
    grid-column: 1;
    display: block;
    color: var(--text);
    font-size: 1.08rem;
  }

  .student-table-card tbody .student-name::before,
  .student-table-card tbody .student-status-cell::before,
  .student-table-card tbody .student-actions-cell::before {
    display: none;
  }

  .student-table-card tbody .student-status-cell {
    grid-column: 2;
    grid-row: 1;
  }

  .student-table-card tbody td:nth-child(2),
  .student-table-card tbody td:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 4px !important;
  }

  .student-table-card tbody .student-actions-cell {
    grid-column: 1 / -1;
    padding-top: 7px !important;
    border-top: 1px solid #edf0f2 !important;
  }

  .student-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    white-space: normal;
  }

  .student-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .5rem;
    font-size: .8rem;
  }
}

@media (max-width: 480px) {
  .brand-full {
    display: none;
  }

  .brand-mobile {
    display: inline;
  }

  .navbar-brand {
    min-width: 0;
  }

  .students-page .page-heading {
    align-items: stretch !important;
    flex-direction: column;
  }

  .students-page .page-heading .btn {
    width: 100%;
  }
}
