/* Módulo Chamados: complementa style/helloai-admin.css (usa as mesmas variáveis). */

.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .ch-grid { grid-template-columns: 1fr; } }

.ch-stack { display: flex; flex-direction: column; gap: 12px; }
.ch-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.ch-card-pad { padding: 16px; }
.ch-card-pad > .card-title { margin-bottom: 10px; }

/* Texto vindo de cliente/agente/GitHub: sempre texto puro, quebrando linha. */
.ch-texto {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    max-height: 320px;
    overflow: auto;
}
.ch-mono { font-family: var(--font-mono); font-size: 12px; }

.ch-aviso {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--warning-soft); color: #8a5a00;
    border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600;
    margin-bottom: 8px;
}
.ch-estimativa { color: var(--text-muted); font-size: 11.5px; font-weight: 500; }
.ch-dica { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

textarea.input { min-height: 110px; resize: vertical; font-family: var(--font-body); }
textarea.input:disabled, input.input:disabled { background: var(--bg); color: var(--text-muted); cursor: not-allowed; }

/* Abas */
.ch-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.ch-tab {
    background: none; border: 0; border-bottom: 2px solid transparent;
    padding: 10px 14px; font: inherit; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.ch-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ch-painel[hidden] { display: none; }

/* Execuções e linha do tempo */
.ch-exec { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.ch-exec h4 { font-size: 13px; margin-bottom: 8px; }
.ch-metricas { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; margin-bottom: 10px; }
.ch-metricas b { font-weight: 600; }
.ch-sub { font-size: 12px; font-weight: 600; margin: 10px 0 4px; color: var(--text-muted); }

.ch-linha { border-left: 2px solid var(--border); padding: 0 0 14px 14px; margin-left: 6px; position: relative; font-size: 13px; }
.ch-linha::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ch-linha small { color: var(--text-muted); display: block; }

a.ch-link { color: var(--accent); text-decoration: none; font-weight: 600; }
a.ch-link:hover { text-decoration: underline; }
.ch-vazio { color: var(--text-muted); padding: 14px; font-size: 13px; }
td.ch-num, th.ch-num { text-align: right; white-space: nowrap; }
