/* Badge styling - moved from DevExpress.Blazor.overrides.css */

/* Standardized Status Badge Styling for All Grids */
.status-badge {
    display: inline-block;
    min-width: 70px;
    text-align: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    border: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    vertical-align: middle;
    text-transform: capitalize;
}

/* Status Colors - Standardized across all grids */
.status-badge.active,
.status-badge.completed,
.status-badge.delivered {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive,
.status-badge.cancelled,
.status-badge.incomplete {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.pending,
.status-badge.scheduled {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.in-progress,
.status-badge.intransit {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.unassigned,
.status-badge.open {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-badge.new {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.assigned {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Priority Badge Styling - Standardized */
.priority-badge {
    display: inline-block;
    min-width: 70px;
    text-align: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    border: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    vertical-align: middle;
    text-transform: capitalize;
}

.priority-badge.high {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.priority-badge.medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.priority-badge.low {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.priority-badge.normal {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Count Badge Styling - Standardized */
.count-badge,
.fields-count-badge,
.tasks-count-badge,
.parts-badge {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Required/Optional Badge Styling - Standardized */
.required-badge {
    display: inline-block;
    min-width: 60px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    border: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    vertical-align: middle;
    text-transform: capitalize;
}

.required-badge.required {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.required-badge.optional {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Data Type Badge Styling - Standardized */
.data-type-badge {
    display: inline-block;
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Hover effects for all badges */
.status-badge:hover,
.priority-badge:hover,
.count-badge:hover,
.required-badge:hover,
.data-type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Ensure badges are centered in grid cells */
.dxbl-grid-table .status-badge,
.dxbl-grid-table .priority-badge,
.dxbl-grid-table .count-badge,
.dxbl-grid-table .required-badge,
.dxbl-grid-table .data-type-badge {
    margin: 0 auto;
    display: block;
}
