/* Dispatch module — global styles (badge classes must be global; CellCssClassFunc spans are owned by MyDxGrid) */

/* Source badges */
.dsp-src-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.dsp-src-echelon { background: #ede9fe; color: #7c3aed; }
.dsp-src-email   { background: #dbeafe; color: #1d4ed8; }
.dsp-src-note    { background: #fef3c7; color: #b45309; }
.dsp-src-auto    { background: #d1fae5; color: #065f46; }
.dsp-src-manual  { background: #f1f5f9; color: #475569; }

/* Status badges */
.dsp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.dsp-status-0 { background: #fef3c7; color: #92400e; }
.dsp-status-1 { background: #dbeafe; color: #1e40af; }
.dsp-status-2 { background: #d1fae5; color: #065f46; }

/* Overdue badge */
.dsp-overdue-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
}

/* Required docs — template editor (inline list in DispatchRequestTypeEditor) */
.dsp-doc-editor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.dsp-doc-editor-input { flex: 1; }
.dsp-doc-add-btn {
    font-size: 12px;
    color: #11c683;
    padding: 0;
    margin-top: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Required docs — intake checklist (in DispatchEditor) */
.dsp-doc-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}
.dsp-doc-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.dsp-doc-check-row:last-child { border-bottom: none; }
.dsp-doc-verified { background: #f0fdf4; }
.dsp-doc-missing  { background: #fff; }
.dsp-doc-check-icon { font-size: 13px; width: 14px; flex-shrink: 0; }
.dsp-doc-verified .dsp-doc-check-icon { color: #16a34a; }
.dsp-doc-missing  .dsp-doc-check-icon { color: #ef4444; }
.dsp-doc-check-label { flex: 1; color: #334155; }
.dsp-doc-check-meta  { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.dsp-doc-verify-btn {
    font-size: 11px;
    color: #0ea5e9;
    padding: 2px 10px;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    background: #f0f9ff;
    cursor: pointer;
    white-space: nowrap;
}
