/* Composiciones de tarjetas de los módulos SST. Solo valores procedentes de las APIs. */
.module-subtitle{margin-top:.35rem;color:var(--text-muted);font-size:.8rem;line-height:1.6;max-width:70ch}
.module-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 1.5rem;align-items:stretch}
.module-summary.summary-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.module-summary>.card{grid-column:span var(--summary-span,1);min-width:0;margin:0;padding:.75rem 1.25rem}
.module-kpi{display:flex;flex-direction:column;justify-content:center;gap:.25rem;min-height:96px}
.module-overview-metric.card{padding-block:.75rem}
.module-overview-metric>.mt-3,.module-overview-metric>.mt-2{margin-top:.25rem}
.module-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:0}
.module-kpi-head h2,.module-chart>h2{font-family:'Public Sans',Inter,sans-serif;font-size:.72rem;line-height:1.5;letter-spacing:.01em;font-weight:600;color:var(--text-muted)}
.module-chart>h2{text-transform:uppercase;font-size:.66rem;letter-spacing:.04em;margin-bottom:.4rem}
.module-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border-radius:10px;background:var(--tone-bg);color:var(--tone)}
.module-icon svg{width:18px;height:18px;stroke-width:1.85}
.module-kpi-value{font-family:'Public Sans','Plus Jakarta Sans',Inter,sans-serif;font-size:1.75rem;line-height:1.2;letter-spacing:-.025em;font-weight:700;color:var(--text-main);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.module-kpi-value small{font-size:.7em;margin-left:.15rem}
.module-kpi-detail,.module-chart-note{font-size:.66rem;line-height:1.6;color:var(--text-muted);overflow-wrap:anywhere}
.module-chart-note{margin-top:.4rem}
.module-chart{display:flex;flex-direction:column;justify-content:center;min-height:96px}
.module-featured{background:linear-gradient(125deg,#10b981,#0d9488)!important;border-color:transparent!important;color:#fff}
.module-featured.tone-rose{background:linear-gradient(125deg,#e11d48,#be123c)!important}
.module-featured :is(.module-kpi-head h2,.module-kpi-value,.module-kpi-detail){color:#fff}
.module-featured .module-icon{background:#ffffff24;color:#fff}
.tone-indigo{--tone:#4f46e5;--tone-bg:#eef2ff}.tone-blue{--tone:#2563eb;--tone-bg:#eff6ff}.tone-emerald{--tone:#10b981;--tone-bg:#ecfdf5}.tone-amber{--tone:#f59e0b;--tone-bg:#fffbeb}.tone-rose{--tone:#f43f5e;--tone-bg:#fff1f2}.tone-cyan{--tone:#0ea5e9;--tone-bg:#f0f9ff}.tone-purple{--tone:#8b5cf6;--tone-bg:#f5f3ff}.tone-slate{--tone:#94a3b8;--tone-bg:#f1f5f9}
.module-kpi.tone-rose:not(.module-featured){border-color:#fecdd3;background:linear-gradient(135deg,var(--bg-card),var(--en-danger-bg))}
.module-kpi.tone-rose .module-kpi-value{color:var(--en-danger)}
.module-bars{display:grid;gap:.4rem}
.module-bar-row>div{display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:.65rem;margin-bottom:.25rem}
.module-bar-row>div>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text-muted)}
.module-bar-row b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.module-track{display:block;overflow:hidden;height:7px;border-radius:999px;background:var(--border-light);flex:1}
.module-track>i{display:block;height:100%;background:var(--tone);border-radius:999px}
.module-stock{display:grid;gap:.5rem}
.module-stock-item>div:first-child{display:flex;align-items:baseline;gap:.6rem;justify-content:space-between;min-width:0;margin-bottom:.35rem}
.module-stock-item strong{font-size:.7rem;overflow-wrap:anywhere;font-weight:700}
.module-stock-item small{font-size:.6rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.module-stock-line{display:flex;align-items:center;gap:.6rem;margin-top:.35rem}
.module-stock-line>span:first-child{flex:0 0 94px;font-size:.61rem;color:var(--text-muted)}
.module-stock-line .module-track{height:9px}
.module-donut{display:flex;align-items:center;justify-content:center;gap:.6rem;min-height:64px}
.module-ring{position:relative;width:64px;height:64px;flex:none}
.module-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.module-ring circle{fill:none;stroke-width:11}
.module-ring-track{stroke:var(--border-color)}
.module-ring-segment{stroke:var(--tone)}
.module-ring>strong{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:'Plus Jakarta Sans',Inter,sans-serif;font-size:1rem;font-weight:800;letter-spacing:-.04em}
.module-ring>strong small{font-size:.65em}
.module-legend{display:grid;gap:.4rem;font-size:.61rem;color:var(--text-muted);min-width:0;max-width:100%}
.module-legend>span{display:flex;align-items:center;gap:.35rem;overflow-wrap:anywhere}
.module-legend i{width:7px;height:7px;flex:none;background:var(--tone);border-radius:50%}
.module-legend b{margin-left:.35rem;color:var(--text-main);font-variant-numeric:tabular-nums}
.module-line svg{display:block;width:100%;height:auto;max-height:80px;overflow:visible}
.module-line-path{fill:none;stroke:var(--tone);stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.module-line-area{fill:var(--tone);opacity:.1}
.module-line circle{fill:var(--bg-card);stroke:var(--tone);stroke-width:1.7}
.module-axis{stroke:var(--border-color);stroke-width:1}
.module-line text{font-size:10px;fill:var(--text-muted);font-family:Inter,sans-serif}
.module-plot-empty{display:flex;align-items:center;justify-content:center;gap:.55rem;flex:1;min-height:48px;color:var(--text-muted);font-size:.7rem;text-align:center;line-height:1.6}
.module-plot-empty svg{width:23px;height:23px;color:#a5b4fc;flex:none}
.module-summary-pending{grid-template-columns:repeat(3,minmax(0,1fr))}
.module-skeleton{min-height:96px;display:flex;flex-direction:column;justify-content:center;gap:.5rem}
.module-skeleton span,.module-skeleton b{display:block;width:70%;height:12px;border-radius:5px;background:var(--border-light)}
.module-skeleton b{width:35%;height:26px}
.inspection-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.inspection-template{display:flex;flex-direction:column;gap:.75rem;min-width:0}
.inspection-template .module-icon{width:40px;height:40px}
.inspection-template h2{font-size:.95rem;font-weight:800;overflow-wrap:anywhere}
.inspection-template p{font-size:.7rem;color:var(--text-muted)}
.inspection-template .btn-primary{align-self:flex-start;margin-top:auto}
.inspection-section-title{font-family:'Plus Jakarta Sans',Inter,sans-serif;font-size:1rem;font-weight:800;margin:1.5rem 0 .85rem}
.inspection-notice{padding:.8rem 1rem;border:1px solid #f59e0b40;border-radius:12px;background:var(--en-warning-bg);color:var(--en-warning);font-size:.76rem;line-height:1.6;margin-bottom:1rem}
html.dark .module-icon{background:color-mix(in srgb,var(--tone) 15%,transparent);color:color-mix(in srgb,var(--tone),white 30%)}
html.dark .module-featured .module-icon{background:#ffffff24;color:#fff}
html.dark .module-kpi.tone-rose:not(.module-featured){border-color:#f43f5e44}
@media(min-width:1600px){.module-summary>.card{padding:.75rem 1.45rem}.module-kpi-value{font-size:2rem}}
@media(max-width:1150px){.module-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.module-summary>.card{grid-column:span 1}.module-summary>.module-chart{grid-column:span 2}.summary-capacitacion-obra>.module-chart{grid-column:span 2}.inspection-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.module-summary.summary-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.module-summary,.module-summary.summary-three,.module-summary-pending{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.module-summary>.card{padding:.75rem 1rem;grid-column:span 1}.module-summary>.module-chart{grid-column:1/-1}.module-kpi{min-height:96px}.module-kpi-value{font-size:1.6rem}.module-kpi-head{align-items:flex-start}.module-icon{width:28px;height:28px;border-radius:9px}.module-icon svg{width:14px;height:14px}.module-kpi-head h2{font-size:.64rem}.module-chart-note{font-size:.63rem}.module-donut{justify-content:flex-start}.module-line svg{max-height:80px}.inspection-catalog{grid-template-columns:1fr}.module-stock-item small{display:none}.module-summary.summary-three>.module-kpi:last-child{grid-column:1/-1}}
@media print{.module-summary .card{break-inside:avoid}}

.summary-personal .module-ring{width:64px;height:64px}.summary-personal .module-donut{min-height:64px}
