/* Frontend Design operations pass, Nov 3, 2026. Screen-scoped presentation only. */
@media screen {

/* Equipment: keep names on a steady left edge and readings legible at the right. */
.app-design .eq-screen .eq-cols,
.app-design .eq-screen .eq-col { gap: 20px; }
.app-design .eq-screen .eq-sec.ds-card { padding: 18px; }
.app-design .eq-screen .eq-sec.ds-list-card { padding: 8px; }
.app-design .eq-screen .eq-sec .eq-h { margin: 0 0 4px; }
.app-design .eq-screen button.eq-row.ds-equipment-row { padding: 14px; min-height: 76px; }
.app-design .eq-screen .eq-row-w { min-width: 0; gap: 5px; }
.app-design .eq-screen :is(.eq-row-t,.eq-row-s) { overflow-wrap: anywhere; }
.app-design .eq-screen :is(.eq-row-s,.eq-due) { line-height: 1.5; }
.app-design .eq-screen :is(.eq-due,.eq-row-s) { font-variant-numeric: tabular-nums; }
.app-design .eq-screen .ds-page-header__actions .ds-button { min-height: 44px; }
.app-design .eq-screen .eq-row.ds-equipment-row:focus-visible { outline-offset: -4px; }

/* Stock: a stable quantity column and room to read the actual item description. */
.app-design .st-screen .st-tools.ds-toolbar { padding: 10px 8px 14px; border-bottom: 1px solid var(--ds-line); margin-bottom: 6px; }
.app-design .st-screen .st-item .lrow.ds-inventory-row { gap: 14px; padding: 14px; min-height: 76px; }
.app-design .st-screen .st-item .lrow :is(.l1,.l2) { overflow-wrap: anywhere; line-height: 1.5; }
.app-design .st-screen .st-item .st-tile { flex: 0 0 48px; width: 48px; height: 48px; }
.app-design .st-screen .st-tile-n,
.app-design .st-sheet :is(.st-worked-v,input[type="number"]) { font-variant-numeric: tabular-nums; }
.app-design .st-screen .st-tools :is(.ds-button.st-add,.ib.st-mail) { min-height: 44px; height: auto; }
.app-design .st-screen .st-tools .ib.st-mail { width: 44px; }
.app-design .st-sheet .st-tabs { gap: 4px; }
.app-design .st-sheet .st-tabs button { min-height: 44px; }

/* Follow-ups: identify the recipient, read the message, then act on it. Existing warnings stay in place. */
.app-design [data-screen="followups"] .ds-followup-card > .ds-section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--ds-line); margin-bottom: 12px; align-items: flex-start; }
.app-design [data-screen="followups"] .ds-followup-card > .fu-facts { line-height: 1.6; }
.app-design [data-screen="followups"] .ds-followup-card > textarea { padding: 16px; line-height: 1.65; border-color: var(--border-strong); }
.app-design [data-screen="followups"] .ds-followup-card > .ds-button-row { padding-top: 14px; border-top: 1px solid var(--ds-line); margin-top: 16px; gap: 10px; }
.app-design [data-screen="followups"] .ds-followup-card .fu-ok { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.app-design [data-screen="followups"] .ds-followup-card .fu-no { width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; }
.app-design [data-screen="followups"] .fu-next .ds-section-heading { margin-bottom: 12px; }
.app-design [data-screen="followups"] .fu-next button.ds-compact-row { min-height: 76px; padding: 14px 12px; }
.app-design [data-screen="followups"] .fu-next .ds-compact-row > div { display: flex; flex-direction: column; gap: 4px; }
.app-design [data-screen="followups"] .fu-next .ds-compact-row .fu-next-warn { line-height: 1.5; }
.app-design [data-screen="followups"] .fu-next button:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }
.app-design [data-screen="followups"] .ds-followup-card :is(textarea,input):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Crew: the selected stop and its fieldwork retain their original order and large actions. */
.app-design [data-screen="schedule"] :is(.cs-left,.cs-right) { gap: 20px; min-width: 0; }
.app-design [data-screen="schedule"] .cs-all-row { min-height: 76px; padding: 12px; gap: 14px; }
.app-design [data-screen="schedule"] .cs-all-row + .cs-all-row { margin-top: 4px; }
.app-design [data-screen="schedule"] .cs-all-w { gap: 5px; }
.app-design [data-screen="schedule"] .cs-all-w :is(strong,span) { line-height: 1.5; overflow-wrap: anywhere; }
.app-design [data-screen="schedule"] :is(.cs-all-n,.cs-amt) { font-variant-numeric: tabular-nums; }
.app-design [data-screen="schedule"] .cs-body .cs-trees p { line-height: 1.6; }
.app-design [data-screen="schedule"] .cs-collect { border-top: 1px solid var(--ds-line); padding-top: 16px; margin-top: 4px; }
.app-design [data-screen="schedule"] .crew-day { padding: 18px; gap: 12px; }
.app-design [data-screen="schedule"] .crew-day textarea { line-height: 1.6; padding: 14px; }
.app-design [data-screen="schedule"] .cs-all-row:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; }

@media (max-width: 520px) {
  /* Search owns a full line; Add item and invoice mail keep separate usable targets. */
  .app-design .st-screen .st-tools.ds-toolbar { flex-wrap: wrap; gap: 10px; }
  .app-design .st-screen .st-tools .ds-input-wrap { flex: 1 1 100%; }
  .app-design .st-screen .st-tools .ds-button.st-add { flex: 1 1 auto; justify-content: center; }
  .app-design .eq-screen .eq-sec.ds-card { padding: 14px; }
  .app-design .eq-screen .eq-sec.ds-list-card { padding: 6px; }
  .app-design .eq-screen .eq-cols,
  .app-design .eq-screen .eq-col { gap: 16px; }
  .app-design [data-screen="followups"] .ds-followup-card > .ds-button-row { flex-wrap: wrap; }
}

}
