/* Panel de contabilidad (solo lectura) */
.ct-acc { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-periodo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ct-fechas { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-gray); }
.ct-fechas input { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; margin-left: 4px; }

.ct-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ct-kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.ct-kpi p { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-gray); letter-spacing: 0.01em; }
.ct-kpi b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ct-kpi small { font-size: 12px; color: var(--text-gray); }
.ct-kpi-hero { background: #11100f; border-color: #11100f; color: #fff; grid-column: span 2; }
.ct-kpi-hero p, .ct-kpi-hero small { color: #ffffffb3; }
.ct-kpi-hero b { font-size: clamp(30px, 4vw, 40px); }
@media (max-width: 520px) { .ct-kpi-hero { grid-column: 1 / -1; } }

.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.ct-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; margin-bottom: 14px; min-width: 0; }
.ct-card h2 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 2px; }
.ct-card > .fine { margin: 0 0 14px; }
.ct-card-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ct-card-cab input { flex: 1 1 240px; max-width: 360px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: 15px; }
.ct-card .rc-filtros { margin-bottom: 12px; }

.ct-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-tabla { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ct-tabla th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-gray); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ct-tabla td { padding: 9px 10px; border-bottom: 1px solid #0000000d; vertical-align: top; }
.ct-tabla td small { display: block; font-size: 12px; color: var(--text-gray); }
.ct-tabla tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; }
.ct-tabla .num { text-align: right; white-space: nowrap; }
.ct-tabla .cero { color: #00000040; }
.ct-tabla .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }
.ct-mov td { white-space: nowrap; }
.ct-mov td:nth-child(3) { white-space: normal; min-width: 180px; }

.ct-barra-t td:first-child { min-width: 180px; }
.ct-et { display: block; font-weight: 600; }
.ct-bar { display: block; height: 6px; margin-top: 6px; background: var(--gray); border-radius: 4px; overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: var(--copper); border-radius: 4px; }

/* Ingresos por día */
.ct-barras { display: grid; grid-template-columns: auto 1fr; gap: 8px; min-height: 240px; }
.ct-ejes { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--text-gray); padding-bottom: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.ct-columnas { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; height: 240px;
  background: linear-gradient(#0000000d 1px, transparent 1px) 0 0 / 100% 109px; }
.ct-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; border: 0; background: none; padding: 0 0 22px; cursor: default; font: inherit; }
.ct-col i { display: block; min-height: 0; background: var(--copper); border-radius: 4px 4px 0 0; max-width: 48px; width: 100%; margin: 0 auto; }
.ct-col span { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--text-gray); white-space: nowrap; }
.ct-col:hover i, .ct-col:focus-visible i { background: var(--copper-dark); }
.ct-tip { display: none; position: absolute; bottom: calc(100% - 14px); left: 50%; transform: translateX(-50%); z-index: 2; background: #11100f; color: #fff;
  font-style: normal; font-size: 12px; padding: 7px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; }
.ct-tip b { display: block; font-weight: 600; text-transform: capitalize; }
.ct-col:hover .ct-tip, .ct-col:focus-visible .ct-tip { display: block; }
.ct-col:first-child .ct-tip { left: 0; transform: none; }
.ct-col:last-child .ct-tip { left: auto; right: 0; transform: none; }

.ct-pie { margin-top: 6px; }
.ct-pill-borde { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ct-dia { white-space: nowrap; }
.ct-dia::first-letter { text-transform: uppercase; }
