/* OBR EBMS Plugin Styles */

/* Status Badges */
.badge-ebms-synced {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-ebms-pending {
    background-color: #ffc107;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-ebms-failed {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-ebms-cancelled {
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* Dashboard Cards */
.ebms-stat-card {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ebms-stat-card h3 {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.ebms-stat-card p {
    color: #6c757d;
    margin: 0;
}

.ebms-stat-card.synced {
    border-left: 4px solid #28a745;
}

.ebms-stat-card.pending {
    border-left: 4px solid #ffc107;
}

.ebms-stat-card.failed {
    border-left: 4px solid #dc3545;
}

/* Environment Badge */
.ebms-env-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ebms-env-badge.test {
    background-color: #17a2b8;
    color: white;
}

.ebms-env-badge.production {
    background-color: #28a745;
    color: white;
}

/* Payload Viewer */
.ebms-payload-viewer {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.ebms-payload-viewer pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Connection Test */
.ebms-connection-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

.ebms-connection-result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ebms-connection-result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Table Styles */
.ebms-table {
    width: 100%;
}

.ebms-table td {
    vertical-align: middle !important;
}

/* Modal Overrides */
.ebms-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Filters */
.ebms-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ebms-filters .form-group {
    margin-bottom: 10px;
}

/* Retry Button */
.btn-ebms-retry {
    font-size: 12px;
    padding: 4px 10px;
}
