body { background: #f4f6f8; font-size: .95rem; }
.brand-bar { background: var(--brand) !important; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { filter: brightness(.9); color: #fff; background: var(--brand); }
.bg-brand { background: var(--brand) !important; }
.border-brand { border-color: var(--brand) !important; }
.navbar .nav-link.active { font-weight: 600; border-bottom: 2px solid #fff; }
.card { border-radius: .6rem; border-color: #e3e7eb; }
.card-header { background: #fff; }
.kpi { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .1s; }
.kpi:hover { transform: translateY(-2px); }
.kpi-n { font-size: 2rem; font-weight: 700; color: var(--brand); line-height: 1; }
.kpi-l { color: #5c6670; font-size: .85rem; margin-top: .35rem; }
.kpi-warn .kpi-n { color: #b8860b; }
.caf-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; }
tr.clickable { cursor: pointer; }
.prewrap { white-space: pre-wrap; }
.chat { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.msg { padding: .5rem .7rem; border-radius: .6rem; max-width: 92%; font-size: .9rem; }
.msg-h { font-size: .72rem; color: #6c757d; margin-bottom: .15rem; }
.msg-caf { background: #eef2f5; align-self: flex-start; }
.msg-jesi { background: #e3f1ff; align-self: flex-end; }
.msg-sistema { background: transparent; align-self: center; color: #6c757d; font-size: .8rem; padding: .1rem; text-align: center; }
.tipo-card { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid #dee2e6; border-radius: .5rem; padding: .6rem .7rem; cursor: pointer; background: #fff; height: 100%; }
.tipo-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.tipo-card input { margin-top: .3rem; }
table.bg-white { border-radius: .5rem; overflow: hidden; }
