/* Histórico do cliente (cliente-historico.js) */
.ch { display: flex; flex-direction: column; gap: 14px; }
.ch-vazio { margin: 0; font-size: 12px; color: var(--tc-text-3); }
.ch-agora { padding: 11px 14px; border-radius: 10px; background: var(--tc-orange-soft); border: 1px solid var(--tc-orange-soft-border); }
.ch-agora b { display: block; font-size: 13px; color: var(--tc-orange); }
.ch-agora span { font-size: 12px; color: var(--tc-text-2); }
.ch-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ch-kpi { padding: 12px 14px; border-radius: 10px; background: var(--tc-surface-2); border: 1px solid var(--tc-border); }
.ch-kpi b { display: block; font: 600 19px var(--tc-font-display); color: var(--tc-text-1); }
.ch-kpi span { display: block; font-size: 12px; color: var(--tc-text-2); }
.ch-kpi small { font-size: 11px; color: var(--tc-text-3); }
.ch-f { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-f button, .ch-mais { display: inline-flex; gap: 7px; align-items: center; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--tc-border); background: var(--tc-surface); color: var(--tc-text-2); font: 500 12px inherit; font-family: inherit; cursor: pointer; }
.ch-f button.on { color: var(--tc-text-1); background: var(--tc-accent-soft); border-color: var(--tc-accent-soft-border); }
.ch-f button small { font-size: 11px; color: var(--tc-text-3); }
.ch-f button:focus-visible, .ch-mais:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 2px; }
.ch-l h4 { margin: 14px 0 6px; font: 600 12px var(--tc-font-display); color: var(--tc-text-3); }
.ch-l h4:first-child { margin-top: 0; }
.ch-i { display: grid; grid-template-columns: 82px 12px minmax(0, 1fr) minmax(90px, 170px); gap: 10px; padding: 7px 0; }
.ch-i time { font-size: 12px; color: var(--tc-text-2); white-space: nowrap; }
.ch-i time small { display: block; font-size: 11px; color: var(--tc-text-3); }
.ch-i em { font-style: normal; font-size: 12px; color: var(--tc-text-2); text-align: right; overflow-wrap: anywhere; }
.ch-i > i { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--tc-slate); }
.ch-i.ok > i { background: var(--tc-green); } .ch-i.ruim > i { background: var(--tc-danger); } .ch-i.aviso > i { background: var(--tc-warn); } .ch-i.info > i { background: var(--tc-info); }
.ch-i b { display: block; font-size: 12.5px; font-weight: 600; color: var(--tc-text-1); overflow-wrap: anywhere; }
.ch-i span { font-size: 12px; color: var(--tc-text-2); overflow-wrap: anywhere; }
.ch-mais { margin-top: 8px; }
.ch-busca { margin-left: auto; height: 30px; width: 190px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--tc-border); background: var(--tc-surface-2); color: var(--tc-text-1); font: inherit; font-size: 12px; box-sizing: border-box; }
/* Anotações (cliente-notas.js) */
.ch-nova { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ch-ta { width: 100%; min-height: 84px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--tc-border); background: var(--tc-surface-2); color: var(--tc-text-1); font: inherit; font-size: 13px; resize: vertical; box-sizing: border-box; }
.ch-bt { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--tc-accent); color: #06221E; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ch-bt[disabled] { opacity: .55; }
.ch-notas { display: flex; flex-direction: column; gap: 8px; }
.ch-nota { padding: 11px 14px; border-radius: 10px; background: var(--tc-surface-2); border: 1px solid var(--tc-border); }
.ch-nota.fix { border-color: var(--tc-warn-soft-border); background: var(--tc-warn-soft); }
.ch-nota .h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--tc-text-2); }
.ch-nota .h b { color: var(--tc-text-1); }
.ch-nota .ac { margin-left: auto; display: flex; gap: 4px; }
.ch-nota .ac button { border: 0; background: none; color: var(--tc-text-2); font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
.ch-nota .ac button:hover { color: var(--tc-text-1); background: var(--tc-surface-3); }
.ch-nota .tx { margin-top: 6px; font-size: 13px; color: var(--tc-text-1); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 768px) { .ch-i { grid-template-columns: 74px 10px minmax(0, 1fr); } .ch-i em { grid-column: 3; text-align: left; } .ch-busca { width: 100%; margin: 0; } .ch-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
