.portal-print-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.55);
}

.portal-print-modal.show {
    display: flex;
}

body.portal-print-modal-open {
    overflow: hidden;
}

.portal-print-modal__dialog {
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
}

.portal-print-modal__header,
.portal-print-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.portal-print-modal__footer {
    border-bottom: 0;
    border-top: 1px solid var(--border-light, #e2e8f0);
    justify-content: flex-end;
}

.portal-print-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.portal-print-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #64748b);
}

.portal-print-modal__body {
    overflow: auto;
    padding: 20px;
    background: #f8fafc;
}

.portal-print-modal__loading {
    text-align: center;
    color: var(--text-muted, #64748b);
    padding: 40px 16px;
}

.portal-print-modal__btn {
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: var(--text-main, #1f2937);
}

.portal-print-modal__btn--primary {
    background: var(--primary, #2F3234);
    border-color: var(--primary, #2F3234);
    color: #fff;
}

.portal-print-modal__btn--muted:hover,
.portal-print-modal__btn--primary:hover {
    opacity: 0.92;
}

.portal-print-modal__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portal-print-trigger {
    cursor: pointer;
}
