.prv-einv-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.prv-einv-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.prv-einv-box h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.3;
}

.prv-einv-subtitle {
    margin: 0;
    color: #50575e;
}

.prv-einv-status-badge-wrap {
    flex-shrink: 0;
}

.prv-einv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    font-size: 13px;
    font-weight: 600;
}

.prv-einv-meta {
    margin-bottom: 14px;
}

.prv-einv-meta p {
    margin: 0 0 8px;
}

.prv-einv-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.prv-einv-form-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.prv-einv-form-wrap.is-hidden {
    display: none;
}

.prv-einv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.prv-einv-grid p {
    margin: 0;
}

.prv-einv-grid label {
    display: block;
    font-weight: 600;
    color: #1d2327;
}

.prv-einv-grid input,
.prv-einv-grid select {
    width: 100%;
    margin-top: 6px;
    min-height: 40px;
}

.prv-einv-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.prv-einv-qr {
    margin: 12px 0 0;
}

.prv-einv-qr img {
    max-width: 180px;
    height: auto;
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.prv-einv-error,
.prv-einv-message.is-error {
    color: #b32d2e;
}

.prv-einv-message {
    margin-top: 12px;
    font-weight: 600;
}

.prv-einv-message.is-success {
    color: #0a7a2f;
}

@media (max-width: 782px) {
    .prv-einv-card-head {
        flex-direction: column;
    }

    .prv-einv-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .prv-einv-form-actions .button,
    .prv-einv-links .button {
        width: 100%;
        text-align: center;
    }
}


.prv-einv-action.is-hidden,
.prv-einv-state-note.is-hidden {
    display: none !important;
}

.prv-einv-state-note {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    color: #50575e;
    font-size: 13px;
    font-weight: 600;
}


.prv-einv-window-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #f6f7f7;
    color: #50575e;
    font-weight: 600;
}

.prv-einv-window-note.is-expired {
    border-color: #f0b8b8;
    background: #fcf0f1;
    color: #8a2424;
}
