/* TERP - styles of mock-up group G2 (receipt and inspection). Shared rules stay in app.css. */

/* Attesi e ricezioni: the Ricezioni/Collaudo view switch (?v=list|inspection), styled like the
   office header's module switch but small enough to sit above a list. */
.tp-g2-views { display: flex; gap: .5rem; flex-wrap: wrap; }

.tp-g2-view
{
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .4rem .9rem;
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    background: var(--tp-card);
    color: var(--tp-ink-2);
    font-weight: 600;
    font-size: .84rem;
    text-decoration: none;
}

.tp-g2-view:hover { background: var(--tp-line-2); }
.tp-g2-view.active { border-color: var(--tp-accent-line); background: var(--tp-accent-l); color: var(--tp-accent-d); }
.tp-g2-view.active i { color: var(--tp-accent); }

.tp-g2-view-n
{
    display: inline-flex;
    min-width: 1.3rem;
    height: 1.3rem;
    align-items: center;
    justify-content: center;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--tp-amber-l);
    color: var(--tp-amber);
    font-size: .68rem;
}

/* Collaudo modal: superato/non superato choice, same shape on office and (via the shared
   components) anywhere else it is reused. */
.tp-g2-choice.active { filter: brightness(.95); box-shadow: inset 0 0 0 2px currentColor; }
