.ia-chamada-cliente-index {
    max-width: 1680px;
}

.ia-policy-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    background: #f5fbff;
    color: #0f172a;
}

.ia-policy-strip__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 1.1rem;
}

.ia-config-card .card-body {
    padding: 16px;
}

.ia-category-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ia-category-section {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.ia-category-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.ia-category-section__head h2 {
    margin: 0;
    color: #111827;
    font-size: .98rem;
    font-weight: 700;
}

.ia-category-section__head p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: .82rem;
}

.ia-config-table {
    --bs-table-bg: transparent;
}

.ia-config-table thead th {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ia-config-table tbody td {
    padding: 13px 14px;
    border-color: #e5e7eb;
    vertical-align: middle;
}

.ia-config-table tbody tr.is-automatic {
    background: #fff8df;
}

.ia-call-cell {
    min-width: 360px;
}

.ia-default-cell {
    width: 210px;
}

.ia-motor-cell {
    min-width: 300px;
}

.ia-risk-cell {
    width: 210px;
}

.ia-call-title {
    color: #111827;
    font-weight: 700;
}

.ia-call-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #64748b;
    font-size: .82rem;
}

.ia-call-description {
    margin-top: 5px;
    color: #64748b;
    font-size: .84rem;
}

.ia-motor-cell .form-select {
    min-height: 40px;
}

.ia-risk-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: .77rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
}

.ia-risk-badge.is-warning {
    background: #facc15;
    color: #1f2937;
}

.ia-risk-badge.is-neutral {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #374151;
}

.ia-actions-bar {
    position: sticky;
    bottom: var(--footer-height, 60px);
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 16px -16px -16px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .ia-policy-strip {
    border-color: #24445f;
    background: #111827;
    color: #f3f4f6;
}

[data-theme="dark"] .ia-policy-strip__icon {
    background: #16324a;
    color: #7dd3fc;
}

[data-theme="dark"] .ia-category-section {
    border-color: var(--shell-border);
    background: var(--shell-surface);
}

[data-theme="dark"] .ia-category-section__head,
[data-theme="dark"] .ia-config-table thead th {
    border-color: var(--shell-border);
    background: #111827;
}

[data-theme="dark"] .ia-category-section__head h2,
[data-theme="dark"] .ia-call-title {
    color: #f3f4f6;
}

[data-theme="dark"] .ia-config-table tbody td {
    border-color: var(--shell-border);
}

[data-theme="dark"] .ia-config-table tbody tr.is-automatic {
    background: rgba(250, 204, 21, .09);
}

[data-theme="dark"] .ia-actions-bar {
    border-color: var(--shell-border);
    background: rgba(21, 24, 33, .94);
}

@media (max-width: 991.98px) {
    .ia-policy-strip,
    .ia-category-section__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ia-actions-bar {
        bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .ia-config-table thead {
        display: none;
    }

    .ia-config-table,
    .ia-config-table tbody,
    .ia-config-table tr,
    .ia-config-table td {
        display: block;
        width: 100%;
    }

    .ia-config-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
    }

    .ia-config-table tbody tr:last-child {
        border-bottom: 0;
    }

    .ia-config-table tbody td {
        border: 0;
        padding: 10px 14px;
    }

    .ia-call-cell,
    .ia-default-cell,
    .ia-motor-cell,
    .ia-risk-cell {
        min-width: 0;
        width: 100%;
    }

    .ia-actions-bar {
        align-items: stretch;
        flex-direction: column;
    }
}
