/* ============================================================
   INDICADORES DEL LIBRO COMERCIAL  ·  namespace .lcind-*
   ============================================================ */
.lcind-view { padding: 18px 20px 90px; }

.lcind-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.lcind-badge {
    display: inline-block;
    font-size: 0.68em;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #d97706;
}
.lcind-title {
    margin: 2px 0 0;
    font-size: 1.5em;
    font-weight: 900;
    color: #002D62;
}
.lcind-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 700;
    font-size: 0.82em;
    cursor: pointer;
}
.lcind-section {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
}
.lcind-h3, .lcind-h3-row h3 {
    margin: 0 0 14px;
    font-size: 1.05em;
    font-weight: 900;
    color: #002D62;
}
.lcind-h3-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.lcind-h3-row h3 { margin: 0; }
.lcind-select {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    font-weight: 700;
    font-size: 0.85em;
}
.lcind-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.lcind-kpi {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    border-top: 3px solid #002D62;
}
.lcind-kpi-val {
    font-size: 1.4em;
    font-weight: 900;
    color: #002D62;
    line-height: 1.1;
}
.lcind-kpi-lbl {
    font-size: 0.76em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    margin-top: 4px;
}
.lcind-kpi-sub {
    font-size: 0.74em;
    color: #94a3b8;
    margin-top: 2px;
}
.lcind-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}
.lcind-card {
    background: #fff;
    border: 1.5px solid #eef2f7;
    border-radius: 12px;
    padding: 14px 16px;
}
.lcind-card h4 {
    margin: 0 0 10px;
    font-size: 0.9em;
    font-weight: 800;
    color: #334155;
}
.lcind-rank {
    margin: 0;
    padding-left: 20px;
    font-size: 0.86em;
}
.lcind-rank li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
}
.lcind-rank li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lcind-rank li b { color: #002D62; }
.lcind-muted { color: #94a3b8; font-size: 0.86em; }

[data-theme="dark"] .lcind-section,
[data-theme="dark"] .lcind-card,
[data-theme="dark"] .lcind-kpi {
    background: #0f1b2d;
    border-color: #1e3350;
}
[data-theme="dark"] .lcind-title,
[data-theme="dark"] .lcind-kpi-val,
[data-theme="dark"] .lcind-h3 { color: #e2e8f0; }

.lcind-hist { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.lcind-hist li {
    padding: 10px 4px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lcind-hist-main { font-size: 0.9em; color: #1e293b; }
.lcind-hist-meta {
    font-size: 0.76em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lcind-hist-restore {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #002D62;
    border-radius: 6px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.92em;
    cursor: pointer;
}
.lcind-hist-restore:disabled { opacity: 0.5; }
[data-theme="dark"] .lcind-hist-main { color: #e2e8f0; }
[data-theme="dark"] .lcind-hist-restore { background: #0f1b2d; color: #e2e8f0; border-color: #33507a; }
