/* Engagement Inbox & Inquiry Details Dialog */

.gx-inbox-kpis {
    margin-bottom: 1.25rem;
}

.gx-inbox-surface {
    margin-bottom: 1.25rem;
}

.gx-inbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gx-app-hairline, #e2e8f0);
}

.gx-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.gx-inbox-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.gx-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.gx-cell-primary {
    font-weight: 600;
    color: var(--gx-app-ink, #0f172a);
}

.gx-cell-secondary {
    font-size: 0.78rem;
    color: var(--gx-app-muted, #64748b);
}

.gx-cell-date {
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
}

.gx-cell-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}

.gx-cell-amount {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.gx-cell-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 145px;
}

.gx-cell-assignee {
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
}

.gx-unassigned-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

/* Pipeline Kanban View */
.gx-pipeline-scroll {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gx-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    gap: 0.75rem;
}

.gx-pipeline-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 220px;
}

.gx-pipeline-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.gx-pipeline-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
}

.gx-pipeline-col-amount {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.gx-pipeline-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gx-pipeline-empty {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.gx-pipeline-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gx-pipeline-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.gx-pipeline-card-phone {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    color: #475569;
}

.gx-pipeline-card-amount {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-top: 0.15rem;
}

.gx-pipeline-card-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.gx-pipeline-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

/* Follow-ups View */
.gx-followup-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gx-followup-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.gx-followup-overdue {
    border-left: 3px solid #dc2626;
    background: #fef2f2;
}

.gx-followup-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gx-followup-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #0f172a;
}

.gx-followup-phone {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: #475569;
}

.gx-followup-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.gx-followup-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Activity Thread Card */
.gx-activity-card {
    margin-top: 1rem;
}

.gx-activity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gx-app-hairline, #e2e8f0);
}

.gx-activity-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gx-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.gx-activity-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gx-activity-item {
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.gx-activity-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #475569;
}

.gx-activity-item-body {
    margin-top: 0.35rem;
    font-size: 0.86rem;
    color: #0f172a;
    white-space: pre-wrap;
}

.gx-activity-item-followup {
    margin-top: 0.35rem;
    font-size: 0.76rem;
    color: #2563eb;
    font-weight: 500;
}

.gx-activity-empty {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

/* Inquiry Details & Action Dialog */
.gx-detail-root {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gx-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.gx-detail-submitted {
    margin-left: auto;
    font-size: 0.78rem;
    color: #64748b;
}

.gx-detail-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.gx-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
}

.gx-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.gx-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.gx-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
}

.gx-detail-name {
    font-size: 1rem;
    font-weight: 700;
}

.gx-detail-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
}

.gx-detail-amount {
    font-weight: 700;
    color: #1d4ed8;
}

.gx-detail-muted {
    color: #94a3b8;
    font-weight: 400;
}

.gx-detail-notes {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
}

.gx-detail-notes-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e40af;
    margin-bottom: 0.35rem;
}

.gx-detail-notes-body {
    margin: 0;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.45;
    white-space: pre-wrap;
}

.gx-detail-workflow {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.gx-detail-workflow-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.gx-detail-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.gx-detail-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gx-detail-input-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.gx-detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e2e8f0;
}

.gx-detail-footer-left,
.gx-detail-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gx-converted-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
}

@media (max-width: 560px) {
    .gx-detail-grid,
    .gx-detail-form-grid {
        grid-template-columns: 1fr;
    }

    .gx-detail-submitted {
        margin-left: 0;
    }
}
