/* TERP - styles of mock-up group G3 (waves, kits, shortages). Shared rules stay in app.css: this
   file only adds the handful of things G3's own screens need that the shared vocabulary (tp-card,
   tp-badge, tp-step-card, tp-task, tp-table) does not already cover. */

/* "Nuova ondata" step 0: a checkbox list of kit list templates, finger-sized on the phone (C12). */
.tp-task input[type="checkbox"]
{
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0 .5rem 0 0;
    cursor: pointer;
}

/* "Nuova ondata" step 1: priority rows wrap their reorder buttons under the aircraft field on a
   narrow phone instead of squeezing both onto one unreadable line. */
@media (max-width: 575.98px)
{
    #gPriorityList .tp-step-card { align-items: stretch; }
    #gPriorityList .tp-step-card > span:last-of-type { max-width: none !important; width: 100%; }
    #gPriorityList .btn-group { width: 100%; }
    #gPriorityList .btn-group .btn { flex: 1 1 auto; }
}

/* Ritorno dalla linea (P9): the three quantity fields of a line (montato, torna, ricambio) stack
   as full-width rows under 390 px instead of three cramped inputs side by side. */
@media (max-width: 420px)
{
    #lrForm .tp-step-card > .d-flex.flex-wrap { flex-direction: column; }
    #lrForm .tp-step-card > .d-flex.flex-wrap > div { min-width: 0 !important; width: 100%; }
}

/* Prelievo d'ondata (P4): the priority-decision callout (design 7.3 point 5) reads as a warning,
   not as just another step card. */
.tp-step-card.tp-priority-note { border-color: var(--tp-amber-line); background: var(--tp-amber-l); }
