/* Compact desktop layout: less scrolling on list, table and form pages.
   Phones and tablets (900px and under) keep the roomier touch layout. */
@media (min-width: 901px) {
  .topbar { height: 54px; min-height: 54px; }
  .workspace { padding-top: 18px; padding-bottom: 32px; }
  .page-heading { margin-bottom: 12px; gap: 16px; }
  .page-heading h1 { font-size: 20px; margin-bottom: 3px; }
  .page-heading p { line-height: 1.55; max-width: 1000px; }
  .page-heading .eyebrow { display: none; }
  .panel { margin-bottom: 12px; }
  .padded { padding: 14px 18px; }
  .padded > h2 { font-size: 15px; margin-bottom: 6px; }
  .padded > p { margin-bottom: 6px; }
  .padded > p:last-child { margin-bottom: 0; }
  .panel-heading { padding: 12px 18px; }
  .assignment-card { padding: 12px 18px; }
  .notice { padding: 8px 14px; margin-bottom: 10px; line-height: 1.55; }
  .messages { margin-bottom: 12px; }
  .message { padding: 8px 14px; }
  .form-errors { padding: 8px 12px; margin-bottom: 10px; }
  th { padding: 7px 14px; }
  td { padding: 7px 14px; line-height: 1.45; }
  td small { margin-top: 1px; }
  .button { min-height: 34px; padding: 5px 14px; }
  input:not([type=checkbox]):not([type=hidden]), select, textarea { min-height: 34px; padding: 5px 10px; font-size: 13px; }
  .field { margin-bottom: 12px; }
  .field > label, .share-panel label { margin-bottom: 4px; }
  .form-grid { gap: 0 16px; }
  .form-actions { padding-top: 12px; margin-top: 14px; }
  .spaced { margin-top: 12px; }
  .filters { margin-bottom: 12px; gap: 10px; }
  .filters select, .filters input { margin-top: 3px; }
  .stats { gap: 12px; margin-bottom: 12px; }
  .stat { padding: 14px 18px; }
  .stat > strong { font-size: 24px; margin: 4px 0 2px; }
  .agent-card { padding: 16px 18px; }
  .agent-card-top { margin-bottom: 10px; }
  .agent-card-footer { padding-top: 10px; }

  /* Week / agent pickers: one row instead of a stacked block. */
  .filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; }
  .filter-form label { flex: 0 1 230px; font-size: 12px; color: #4e607b; }
  .filter-form label input, .filter-form label select { display: block; margin-top: 3px; }
  .filter-form .button { flex: none; }

  /* Figures side by side in one strip. */
  .summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 22px; margin-bottom: 8px; }
  .summary-strip p { margin: 0; font-size: 12px; color: #586a84; }
  .summary-strip h2 { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; }

  /* One line per row: the small notes sit beside the main text. */
  .dense-table td small { display: inline; margin: 0 0 0 8px; max-width: none; }
  .dense-table td.numeric small { display: block; margin: 0; }
  .dense-table tr.pool-row td small:last-child { display: block; margin: 1px 0 0; }

  /* Password vault: row actions side by side instead of stacked. */
  .vault-table .actions { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; }
  .vault-table .actions a { min-height: 0; }
  .vault-table td:nth-child(2), .vault-table td:nth-child(3), .vault-table td:nth-child(4), .vault-table td:nth-child(10) { white-space: nowrap; }

  /* Bill lists: bill number, accounts and notes on one flowing line under the agent's name. */
  .statement-table td:first-child small { display: inline; margin: 0 8px 0 0; max-width: none; }
  .statement-table td:first-child b { display: block; }
}
