/* ============================================================
   PRINT-WITH-BRANDING — Modal + Branded Print Layout
   ============================================================ */

/* Trigger button (matches existing up-btn style) */
.up-print-branded-btn {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

/* --- MODAL --- */
.up-print-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}
.up-print-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.up-print-modal h3 {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-size: 18px;
    text-align: center;
}
.up-print-modal label {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 14px;
}
.up-print-modal input,
.up-print-modal select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    font-family: inherit;
    margin-top: 6px;
    box-sizing: border-box;
}
.up-print-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.up-print-modal-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
#up-print-confirm-btn {
    background: var(--color-primary);
    color: #fff;
}
#up-print-cancel-btn {
    background: #F1F5F9;
    color: #334155;
}

/* Status message shown while pdf-lib processes the PDF */
.up-print-status {
    margin-top: 14px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    text-align: center;
}

/* NOTE: branding is now baked directly into the PDF file itself via
   pdf-lib (see print-branding.js) — the real, modified PDF opens in a
   new tab and prints natively, so no print-specific CSS or hidden
   render area is needed anymore (that HTML-overlay approach was the
   source of the earlier "blank pages" print bug). */

/* Name-Gate modal reuses the same .up-print-modal-overlay / .up-print-modal
   styling defined above — no new design rules needed. */
