/* Scoped to avoid Admin Conflict */
.svdp-print-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    /* High z-index to overlay everything */
    display: flex;
    align-items: center;
    justify-content: center;
}

.svdp-print-modal {
    background: var(--shyft-color-bg-card, #FFFFFF);
    padding: 30px;
    border-radius: var(--shyft-radius-lg, 8px);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: var(--shyft-font-family-sans, sans-serif);
    color: var(--shyft-color-text-primary, #2B2B2B);
}

.svdp-print-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--shyft-color-text-secondary, #666);
}

.svdp-lang-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.svdp-lang-btn {
    background: white;
    border: 1px solid var(--shyft-color-primary, #3F647E);
    color: var(--shyft-color-primary, #3F647E);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.svdp-lang-btn.active {
    background: var(--shyft-color-primary, #3F647E);
    color: white;
}

.svdp-receipt-content {
    border: 1px solid var(--shyft-color-border, #ddd);
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--shyft-color-divider, #eee);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.receipt-header h1 {
    font-family: var(--shyft-font-family-serif, serif);
    font-size: 18px;
    margin: 0;
    color: var(--shyft-color-primary, #3F647E);
}

.receipt-header h2 {
    font-size: 24px;
    margin: 5px 0;
    font-weight: bold;
}

.receipt-body .receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.receipt-row.highlight {
    font-weight: bold;
    font-size: 18px;
    color: var(--shyft-color-primary, #3F647E);
}

.receipt-divider {
    border-top: 2px solid var(--shyft-color-text-primary, #333);
    margin: 15px 0;
}

.receipt-divider-sub {
    border-top: 1px dashed var(--shyft-color-divider, #ccc);
    margin: 10px 0;
}

.receipt-info h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--shyft-color-text-secondary, #666);
    margin-bottom: 5px;
}

.receipt-info p {
    font-size: 14px;
    margin: 4px 0;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    font-size: 12px;
    color: var(--shyft-color-text-muted, #999);
}

.svdp-print-actions {
    text-align: center;
}

.svdp-print-action-button {
    background: var(--shyft-color-primary, #3F647E);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: var(--shyft-radius-sm, 4px);
    cursor: pointer;
}

.svdp-print-action-button:hover {
    background: var(--shyft-color-primary-hover, #35576D);
}

/* PRINT MEDIA QUERY */
@media print {
    body * {
        visibility: hidden;
    }

    /* Override background for strict B&W printing */
    :root {
        --shyft-color-bg-app: #FFFFFF !important;
        --shyft-color-bg-card: #FFFFFF !important;
    }

    /* Force background white specifically for the modal */
    .svdp-print-modal,
    .svdp-receipt-content {
        background: #FFFFFF !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
    }

    #svdp-print-modal,
    #svdp-print-modal * {
        visibility: visible;
    }

    .svdp-print-modal-overlay {
        position: absolute;
        left: 0;
        top: 0;
        background: white;
    }

    .svdp-print-modal-close,
    .svdp-lang-toggle,
    .svdp-print-actions {
        display: none !important;
    }

    .svdp-print-modal {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .receipt-content {
        border: 2px solid black !important;
        /* Ensure visual border if desired, or remove for cleaner look */
    }

    /* Ensure high contrast */
    .receipt-row,
    .receipt-header h1,
    .highlight {
        color: black !important;
    }
}