/* Quote Builder styles — scoped to #tab-quotes so tracker styles are untouched. */

#tab-quotes input,
#tab-quotes select,
#tab-quotes textarea {
    font-size: 16px; /* stops iOS auto-zoom on focus */
}

#tab-quotes .q-wrap {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

#tab-quotes .q-item-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

#tab-quotes .q-item-row:last-child {
    border-bottom: none;
}

#tab-quotes .q-item-total {
    border-top: 2px solid #1f1f1f;
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 800;
    font-size: 1.05rem;
}

#tab-quotes .q-quote-head {
    background: #CE1126;
    color: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: -0.25rem -0.25rem 1rem -0.25rem;
}

#tab-quotes .q-action-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    background: #fff;
    color: #1f1f1f;
}

#tab-quotes .q-action-btn:active {
    background: #f8fafc;
}

/* Print: only the generated quote card prints, and ONLY when the user
   clicks "Print quote" (which adds .q-printing to <body> first).
   Scoping the rules under .q-printing matters: without it, printing
   from any other tab would come out blank once this stylesheet loads.
   Everything else on the page is hidden; the card is placed at the
   top-left of the page. */
@media print {
    body.q-printing * {
        visibility: hidden;
    }
    body.q-printing #tab-quotes .q-print-area,
    body.q-printing #tab-quotes .q-print-area * {
        visibility: visible;
    }
    body.q-printing #tab-quotes .q-print-area {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
