/* desempeno.css — «Desempeño docente» del portal de colegio (js/colegio-desempeno.js). Prefijo ds- */
.ds { display: grid; gap: 14px; min-width: 0; color: #0f1f4d; }
.ds-hero { background: linear-gradient(120deg, #1e3a8a, #6d28d9); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.ds-hero span { font-size: 34px; }
.ds-hero h3 { margin: 0 0 4px; color: #fff; }
.ds-hero p { margin: 0; opacity: .92; font-size: 13.5px; }
.ds-bar { display: grid; gap: 10px; min-width: 0; }
.ds-pers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ds-per { text-align: left; border: 1.5px solid #e3e9f7; background: #fff; border-radius: 14px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; min-width: 0; font: inherit; color: inherit; }
.ds-per small { color: #5b6785; font-size: 11px; }
.ds-per.is-on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #f3f6ff; }
.ds-est { font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; justify-self: start; background: #eef2ff; color: #4338ca; }
.ds-est--en_curso { background: #dcfce7; color: #166534; }
.ds-est--cerrado { background: #e2e8f0; color: #475569; }
.ds-fil { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-fil label, .ds-sel label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: #5b6785; min-width: 0; }
.ds-fil select, .ds-sel select { padding: 7px 10px; border: 1.5px solid #cbd5e1; border-radius: 10px; font: inherit; max-width: 100%; }
.ds-slot { display: grid; gap: 14px; min-width: 0; }
.ds .hor-card { min-width: 0; }
.ds-scroll { overflow-x: auto; max-width: 100%; }
.ds-hm { border-collapse: separate; border-spacing: 6px; width: 100%; }
.ds-hm th { font-size: 12px; text-align: center; color: #5b6785; }
.ds-hm tbody th { text-align: right; }
.ds-hm__c { width: 100%; min-width: 96px; border: 0; border-radius: 12px; padding: 10px 6px; color: #fff; background: var(--c); cursor: pointer; display: grid; gap: 2px; font: inherit; }
.ds-hm__c b { font-size: 15px; }
.ds-hm__c small { font-size: 10.5px; opacity: .92; }
.ds-hm__c.is-sin { background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 6px, #e2e8f0 6px, #e2e8f0 12px); color: #334155; }
.ds-hm__v { text-align: center; color: #94a3b8; }
.ds-al { display: grid; gap: 8px; }
.ds-al__i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #e3e9f7; border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.ds-al--3 { border-left: 4px solid #dc2626; } .ds-al--2 { border-left: 4px solid #f59e0b; } .ds-al--1 { border-left: 4px solid #eab308; }
.ds-aviso { background: #fffbeb; border-color: #fde68a; }
.ds-cab { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.ds-exp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ds-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.ds-t th, .ds-t td { padding: 8px 8px; border-bottom: 1px solid #e3e9f7; text-align: left; vertical-align: middle; }
.ds-t th { font-size: 11.5px; color: #5b6785; white-space: nowrap; }
.ds-t .c { text-align: center; }
.ds-t small { display: block; color: #64748b; font-size: 10.5px; }
.ds-t tr.is-sin td { background: #f8fafc; color: #64748b; }
.ds-nota { display: inline-block; min-width: 38px; text-align: center; font-weight: 800; color: #fff; background: var(--c); border-radius: 8px; padding: 2px 6px; }
.ds-up { color: #16a34a; } .ds-down { color: #dc2626; }
.ds-chip { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--c, #94a3b8); }
.ds-chip--sin { background: #e2e8f0; color: #475569; }
.ds-chip--conf { background: #eef2ff; color: #3730a3; }
.ds-chip--prov { background: #fef3c7; color: #92400e; }
.ds-ring { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0); display: grid; place-items: center; flex: none; }
.ds-ring > div { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; align-content: center; }
.ds-ring strong { font-size: 22px; line-height: 1; } .ds-ring small { font-size: 9px; color: #64748b; }
.ds-ring--g { width: 104px; height: 104px; } .ds-ring--g > div { width: 82px; height: 82px; } .ds-ring--g strong { font-size: 28px; }
.ds-ficha { display: grid; gap: 12px; min-width: 0; }
.ds-fh { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border: 2px solid var(--c); border-radius: 18px; padding: 14px 16px; background: #fff; }
.ds-fh > div:last-child, .ds-fh > div + div { min-width: 0; flex: 1 1 220px; }
.ds-fh h3 { margin: 2px 0; } .ds-fh p { margin: 0 0 6px; color: #5b6785; } .ds-fh small { color: #5b6785; }
.ds-fh__c { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-bc { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px 62px; gap: 8px; align-items: center; font-size: 12.5px; margin: 7px 0; }
.ds-bc small { color: #64748b; }
.ds-bc__t { height: 9px; background: #e5e7eb; border-radius: 9px; overflow: hidden; }
.ds-bc__t i { display: block; height: 100%; border-radius: 9px; }
.ds-bc em { font-style: normal; color: #5b6785; font-size: 11.5px; text-align: right; }
.ds-svg { width: 100%; height: auto; }
.ds-stack { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin: 8px 0; }
.ds-stack i { font-style: normal; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; min-width: 0; }
.ds-ley { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: #475569; margin: 4px 0 0; }
.ds-ley b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; }
.ds-sec h4, .ds-ficha h4, .ds-tec h4 { margin: 0 0 6px; }
.ds-sec ul, .ds-tec ul, .ds-ul { margin: 4px 0 4px 18px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.ds-sec p { font-size: 13.5px; line-height: 1.5; margin: 6px 0; }
.ds-sec--ok { background: #f0fdf4; border-color: #bbf7d0; }
.ds-sec--mal { background: #fff7ed; border-color: #fed7aa; }
.ds-sec--cierre { background: linear-gradient(120deg, #eef2ff, #f5f3ff); border-color: #c7d2fe; }
.ds-tec { font-size: 12px; color: #475569; }
.ds-guia summary { cursor: pointer; font-weight: 800; }
.ds-guia ol { display: grid; gap: 6px; font-size: 13.5px; }
.ds-pf { display: grid; gap: 8px; margin: 10px 0; }
.ds-pf__r { display: grid; grid-template-columns: 90px repeat(2, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.ds-pf__r label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: #5b6785; min-width: 0; }
.ds-pf__r input { padding: 7px 8px; border: 1.5px solid #cbd5e1; border-radius: 10px; font: inherit; min-width: 0; }
@media (max-width: 760px) {
  .ds-pers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-cols { grid-template-columns: minmax(0, 1fr); }
  .ds-pf__r { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-pf__r b, .ds-pf__r em { grid-column: 1 / -1; }
  .ds-bc { grid-template-columns: minmax(0, 1fr) 70px 30px; } .ds-bc em { grid-column: 1 / -1; text-align: left; }
  .ds-al__i { grid-template-columns: auto minmax(0, 1fr); } .ds-al__i button { grid-column: 1 / -1; }
  .ds-hero { flex-direction: column; align-items: flex-start; }
}

/* Informe por temas del periodo */
.ds-tm__lista { display: grid; gap: 12px; }
.ds-tm { background: #fff; border: 1.5px solid #e3e9f7; border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.ds-tm.is-pend { background: #f8fafc; border-style: dashed; }
.ds-tm header { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ds-tm header > div { flex: 1; min-width: 0; }
.ds-tm h4 { margin: 0; font-size: 16px; }
.ds-tm header small { color: #5b6785; font-size: 12px; }
.ds-tm__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #1e3a8a; color: #fff; display: grid; place-items: center; font-weight: 800; }
.ds-tm__nv { flex: none; text-align: center; background: var(--c); color: #fff; border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.ds-tm__nv small { display: block; color: #fff; opacity: .92; font-weight: 600; font-size: 11px; }
.ds-tm__kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ds-tm__kpi > div { background: #f3f6ff; border-radius: 12px; padding: 8px 10px; }
.ds-tm__kpi b { display: block; font-size: 20px; }
.ds-tm__kpi small { color: #5b6785; font-size: 11.5px; }
.ds-tm__pila { display: flex; height: 24px; border-radius: 8px; overflow: hidden; background: #e8ecf6; }
.ds-tm__pila i { display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 11px; min-width: 0; overflow: hidden; }
.ds-tm p { margin: 0; font-size: 13.5px; }
.ds-tm__acc { background: #eef7ee; border-left: 4px solid #16a34a; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.ds-tm__plan { background: #f5f3ff; border-left: 4px solid #7c3aed; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.ds-tm__plan p { margin: 2px 0 4px; }
.ds-tm__plan small { color: #5b6785; }
@media (max-width: 600px) { .ds-tm header { flex-wrap: wrap; } .ds-tm__kpi { grid-template-columns: 1fr; } }

.ds-bq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .ds-bq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ds-tm header .ds-tm__nv small { color: #fff; }
