/* Presentation only: retain existing controls, IDs and warehouse workflows. */
@media screen {
  .app-content > *,
  .cells-page-shell,
  .cells-page-shell > *,
  .supplies-page > *,
  .settings-content > * {
    min-width: 0;
  }

  .app-content :is(button, a, summary):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  .cells-page-shell .table-card > h2 {
    margin-bottom: 12px;
  }

  .cells-page-shell .table-card > p {
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .cells-page-shell form {
    display: grid;
    gap: 10px;
  }

  .cells-page-shell .open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
  }

  .cells-page-shell input[type="file"] {
    height: auto;
    padding: 10px;
    max-width: 100%;
  }

  .cells-page-shell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    vertical-align: middle;
    accent-color: var(--primary);
  }

  .cells-page-shell details {
    margin-top: 12px;
  }

  .cells-page-shell summary {
    cursor: pointer;
    line-height: 1.5;
    padding: 6px 0;
    overflow-wrap: anywhere;
  }

  .cells-page-shell nav[aria-label] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
  }

  .cells-table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  .employees-table-card {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .cells-table-wrap td {
    vertical-align: top;
  }

  @media (max-width: 640px) {
    .top {
      padding: 8px 0;
    }

    .supplies-header-row {
      flex-wrap: wrap;
    }

    .app-content :is(.table-card, .settings-card, .auth-card) {
      padding: 12px;
      border-radius: 12px;
    }

    .app-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
      font-size: 16px;
      min-width: 0;
    }

    .cells-page-shell .cells-filter-form {
      grid-template-columns: minmax(0, 1fr);
    }

    .cells-table-wrap {
      padding: 0;
    }

    .cells-page-shell .orders-table {
      min-width: 700px;
    }
  }
}
