.nfe-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.nfe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.nfe-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

.nfe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.nfe-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.nfe-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.nfe-modal-body {
    padding: 20px;
}

.nfe-details-loading {
    text-align: center;
    padding: 40px;
}

.nfe-details-loading .spinner {
    display: inline-block;
}

.nfe-download-btn,
.nfe-details-btn {
    padding: 2px 8px;
    line-height: 1.4;
    min-height: 26px;
}

.nfe-details-btn .dashicons {
    vertical-align: middle;
}

.nfe-env-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.nfe-env-production {
    background: #46b450;
    color: #fff;
}

.nfe-env-sandbox, .nfe-env-staging {
    background: #ffb900;
    color: #1d2327;
}

.nfe-env-custom {
    background: #7e8993;
    color: #fff;
}

.nfe-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.nfe-status-issued, .nfe-status-authorized {
    background: #46b450;
    color: #fff;
}

.nfe-status-cancelled {
    background: #dc3232;
    color: #fff;
}

.nfe-status-failed {
    background: #dc3232;
    color: #fff;
}

.nfe-status-processing, .nfe-status-pending, .nfe-status-async_pending, .nfe-status-scheduled {
    background: #ffb900;
    color: #1d2327;
}

/* Scheduled invoice action buttons */
.nfe-action-issue,
.nfe-action-reschedule,
.nfe-action-cancel {
    padding: 2px 8px;
    line-height: 1.4;
    min-height: 26px;
    margin-right: 4px;
}

.nfe-action-issue .dashicons,
.nfe-action-reschedule .dashicons,
.nfe-action-cancel .dashicons {
    vertical-align: middle;
}

.nfe-action-cancel {
    color: #dc3232;
}

/* Modal form elements */
.nfe-modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.nfe-modal-body input[type="datetime-local"],
.nfe-modal-body select,
.nfe-modal-body textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nfe-modal-body input[type="datetime-local"]:focus,
.nfe-modal-body select:focus,
.nfe-modal-body textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.nfe-modal-body .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.nfe-modal-body .form-buttons .button {
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    padding: 0 16px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
}

.nfe-modal-body .form-buttons .button-secondary {
    border-color: #dc3232;
    color: #dc3232;
}

.nfe-modal-body .form-buttons .button-secondary:hover {
    background: #dc3232;
    color: #fff;
}
