/*
   Shared component utility classes — the "eb-" mini design system.
   Use these on plain HTML elements for consistent styling across pages.

   Prefix: eb- (EnterBridge) to avoid collisions with third-party component classes.
*/

/* ── Labels ── */
.eb-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* ── Inputs ── */
.eb-input {
    padding: 6px 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.eb-input::placeholder {
    color: #9ca3af;
}

.eb-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.eb-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f9fafb;
}

/* ── Buttons ── */
.eb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.5;
}

.eb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.eb-btn-primary:disabled {
    background-color: #9ca3af;
}

.eb-btn-primary {
    background-color: #2563eb;
    color: white;
}

.eb-btn-primary:hover:not(:disabled) {
    background-color: #1d4ed8;
}

.eb-btn-secondary {
    background-color: #6b7280;
    color: white;
}

.eb-btn-secondary:hover:not(:disabled) {
    background-color: #4b5563;
}

.eb-btn-light {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.eb-btn-light:hover:not(:disabled) {
    background-color: #e5e7eb;
}

.eb-btn-light.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.eb-btn-light.active:hover:not(:disabled) {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.eb-btn-danger {
    background-color: #dc2626;
    color: white;
}

.eb-btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
}

.eb-btn-danger:disabled {
    background-color: #9ca3af;
}

.eb-btn-outline-danger {
    background: none;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.eb-btn-outline-danger:hover:not(:disabled) {
    background-color: #dc2626;
    color: white;
}

.eb-btn-text {
    background: none;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
}

.eb-btn-text:hover:not(:disabled) {
    color: #111827;
    background-color: rgba(0, 0, 0, 0.05);
}

/* ── Record Count Badge ── */
.eb-record-count {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ── Status Badges ── */
.eb-status-badge.eb-status-badge {
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: capitalize;
    display: inline-block;
}

/* Unknown — unmapped database value, needs attention */
.eb-status-badge--unknown {
    background-color: #ede9fe;
    color: #5b21b6;
}

/* Default / Not Contacted — neutral gray */
.eb-status-badge--notcontacted {
    background-color: #fef3c7;
    color: #92400e;
}

/* Active / Outreach — blue/teal */
.eb-status-badge--schedulingoutreach {
    background-color: #dbeafe;
    color: #1e40af;
}

.eb-status-badge--requestedcallback {
    background-color: #e0e7ff;
    color: #3730a3;
}

.eb-status-badge--additionalinforequested {
    background-color: #cffafe;
    color: #155e75;
}

.eb-status-badge--clinicrequested {
    background-color: #ccfbf1;
    color: #115e59;
}

.eb-status-badge--telemedrequested {
    background-color: #a5f3fc;
    color: #164e63;
}

/* Scheduled — green */
.eb-status-badge--scheduled {
    background-color: #d1fae5;
    color: #065f46;
}

.eb-status-badge--hcd {
    background-color: #bbf7d0;
    color: #14532d;
}

/* Success — dark green */
.eb-status-badge--seen {
    background-color: #dcfce7;
    color: #166534;
}

/* Warning — amber */
.eb-status-badge--scheduledbutnovisit {
    background-color: #fef9c3;
    color: #854d0e;
}

/* Negative / Terminal — red/orange */
.eb-status-badge--refusal {
    background-color: #fee2e2;
    color: #991b1b;
}

.eb-status-badge--deceased {
    background-color: #fecaca;
    color: #7f1d1d;
}

.eb-status-badge--hospice {
    background-color: #fed7aa;
    color: #9a3412;
}

.eb-status-badge--ineligible {
    background-color: #fde68a;
    color: #92400e;
}

.eb-status-badge--retractedbyplan {
    background-color: #fca5a5;
    color: #991b1b;
}

/* Informational / Hold — gray/yellow */
.eb-status-badge--invaliddata {
    background-color: #f3f4f6;
    color: #374151;
}

.eb-status-badge--novideocomponent {
    background-color: #e5e7eb;
    color: #4b5563;
}

.eb-status-badge--donotcalluntilfurthernotice {
    background-color: #fef3c7;
    color: #78350f;
}

.eb-status-badge--unabletoschedule {
    background-color: #f3f4f6;
    color: #6b7280;
}

.eb-status-badge--active {
    background-color: #dcfce7;
    color: #166534;
}

.eb-status-badge--inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ── Empty Field ── */
.eb-empty-field {
    color: #9ca3af;
}

/* ── Empty State ── */
.eb-empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.eb-empty-state p {
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

/* ── Scheduling Panel ── */
/* Prevent MudSelect from stretching to fill the flex row */
.scheduling-panel-context > .mud-select {
    flex: 0 0 auto;
    max-width: 160px;
}

/* ── Loading Container ── */
.eb-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

