/* ESDE 15.10.313: high-contrast audit of TABULACIÓN / HISTORIAL / PUBLICACIÓN.
   Layered after 312 and scoped to the teaching evaluation module.
   No tables, database content, grades, or academic rules are changed. */

html body .esde-cert244[data-esde-theme] .esde-cert256-tabulation,
html body .esde-cert244[data-esde-theme] .esde-cert238-history,
html body .esde-cert244[data-esde-theme] .esde-cert251-close-readiness {
  background:#fff!important;
  color:#183548!important;
  border:1px solid #D7E3E9!important;
  border-radius:13px!important;
  box-shadow:none!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  padding:14px!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-tabulation .esde-cert238-form-heading,
html body .esde-cert244[data-esde-theme] .esde-cert238-history .esde-cert238-form-heading {
  padding:0 0 12px!important;
  margin:0 0 12px!important;
  border-bottom:1px solid #D7E3E9!important;
  background:transparent!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-tabulation .esde-cert238-form-heading h4,
html body .esde-cert244[data-esde-theme] .esde-cert238-history .esde-cert238-form-heading h4 {
  color:#183548!important;
  font:400 20px/1.2 Marvin,'Marvin Round',Poppins,sans-serif!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-tabulation .esde-cert238-form-heading p,
html body .esde-cert244[data-esde-theme] .esde-cert238-history .esde-cert238-form-heading p {
  color:#526777!important;
  font:400 12px/1.5 Poppins,Montserrat,sans-serif!important;
}

/* Only the table gets a local horizontal scrollbar when the modal is too narrow.
   This avoids squeezing 9 academic columns into unreadable fragments. */
html body .esde-cert244[data-esde-theme] .esde-cert256-table-wrap,
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  border:1px solid #D7E3E9!important;
  border-radius:10px!important;
  background:#FFFFFF!important;
  color:#183548!important;
  box-shadow:none!important;
  scrollbar-color:#80C9DC #F0F6F9;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table-wrap table.esde-cert256-table {
  display:table!important;
  min-width:1180px!important;
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  background:#FFFFFF!important;
  color:#183548!important;
  font:400 12px/1.4 Poppins,Montserrat,sans-serif!important;
}
/* Activity, status, date, duration, topics, progress, score, feedback, publication */
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(1){width:13%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(2){width:10%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(3){width:9%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(4){width:8%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(5){width:6%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(6){width:8%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(7){width:16%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(8){width:13%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table th:nth-child(9){width:17%!important;}
html body .esde-cert244[data-esde-theme] .esde-cert256-table thead th {
  position:sticky!important;
  top:0!important;
  z-index:1!important;
  background:#E4F7FB!important;
  color:#183548!important;
  border:0!important;
  border-bottom:2px solid #B7DDE8!important;
  padding:11px 9px!important;
  font:800 11px/1.4 Montserrat,Poppins,sans-serif!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-transform:none!important;
  vertical-align:middle!important;
  white-space:normal!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody tr,
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody tr:nth-child(even),
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody tr:nth-child(odd) {
  background:#FFFFFF!important;
  color:#183548!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody tr:nth-child(even) td {
  background:#F5FAFC!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody tr:nth-child(odd) td {
  background:#FFFFFF!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody tr:hover td {
  background:#EAF7FB!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody td {
  box-sizing:border-box!important;
  padding:11px 9px!important;
  border:0!important;
  border-bottom:1px solid #E1E9EE!important;
  color:#263D4F!important;
  font:500 12px/1.5 Poppins,Montserrat,sans-serif!important;
  vertical-align:middle!important;
  opacity:1!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:left!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody td :is(strong,b,small,span),
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody td:first-child :is(strong,small) {
  color:#263D4F!important;
  opacity:1!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tbody td strong.esde-cert276-score-display {
  display:block!important;
  color:#173C56!important;
  font:700 14px/1.25 Montserrat,Poppins,sans-serif!important;
  margin-bottom:6px!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-state-pill {
  display:inline-flex!important;
  align-items:center!important;
  padding:4px 8px!important;
  border:1px solid #C6E0E8!important;
  border-radius:999px!important;
  background:#EAF7FC!important;
  color:#124861!important;
  font:700 10px/1.3 Montserrat,Poppins,sans-serif!important;
  white-space:normal!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table .esde-cert276-score-form {
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:center!important;
  margin:5px 0 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table .esde-cert276-score-form input[type=number] {
  flex:0 1 70px!important;
  width:70px!important;
  min-width:0!important;
  height:35px!important;
  padding:6px!important;
  background:#fff!important;
  color:#183548!important;
  border:1px solid #AFC5D1!important;
  border-radius:7px!important;
  font:700 12px/1.2 Montserrat,Poppins,sans-serif!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table [data-esde270-save-score],
html body .esde-cert244[data-esde-theme] .esde-cert259-publish-button {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:35px!important;
  padding:7px 10px!important;
  border:1px solid #188EAC!important;
  border-radius:8px!important;
  background:#45B8E8!important;
  color:#102E3B!important;
  font:800 11px/1.3 Montserrat,Poppins,sans-serif!important;
  white-space:normal!important;
  opacity:1!important;
  cursor:pointer!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table button:disabled {
  opacity:.66!important;
  cursor:not-allowed!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert259-pubstate {
  display:inline-flex!important;
  align-items:center!important;
  padding:5px 9px!important;
  border:1px solid #CFDFE7!important;
  border-radius:999px!important;
  background:#FFF2C2!important;
  color:#604600!important;
  font:800 11px/1.3 Montserrat,Poppins,sans-serif!important;
  white-space:normal!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert259-pubstate.is-published {
  background:#DDF5FA!important;
  color:#11516A!important;
  border-color:#A5DBE8!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert259-pubstate.is-draft {
  background:#FFF2C2!important;
  color:#604600!important;
  border-color:#EAD27C!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table [data-esde270-score-status],
html body .esde-cert244[data-esde-theme] .esde-cert283-publish-status {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin-top:4px!important;
  font:600 11px/1.5 Poppins,sans-serif!important;
  color:#37576B!important;
  overflow-wrap:anywhere!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert283-publish-status[data-state=error],
html body .esde-cert244[data-esde-theme] [data-esde270-score-status][data-state=error] {
  padding:7px!important;
  border:1px solid #E6ADB3!important;
  border-radius:6px!important;
  background:#FFF2F3!important;
  color:#8E2738!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tfoot .esde-cert259-activity-totals th,
html body .esde-cert244[data-esde-theme] .esde-cert256-table tfoot .esde-cert259-activity-totals td {
  padding:12px!important;
  background:#FFF8DA!important;
  color:#513F00!important;
  border-top:2px solid #E5C247!important;
  border-bottom:0!important;
  font:700 12px/1.5 Montserrat,Poppins,sans-serif!important;
  vertical-align:middle!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert256-table tfoot .esde-cert259-activity-totals :is(strong,small) {
  color:#513F00!important;
}

/* Historial is a separate six-column table: keep it together, readable and scrollable. */
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table {
  min-width:760px!important;
  width:100%!important;
  max-width:none!important;
  table-layout:auto!important;
  border-collapse:collapse!important;
  background:#FFFFFF!important;
  color:#183548!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table thead th {
  background:#E4F7FB!important;
  color:#173C56!important;
  border-bottom:2px solid #B7DDE8!important;
  padding:11px 10px!important;
  font:800 11px/1.35 Montserrat,Poppins,sans-serif!important;
  text-align:left!important;
  white-space:normal!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table tbody tr,
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table tbody td {
  background:#FFFFFF!important;
  color:#263D4F!important;
  border:0!important;
  border-bottom:1px solid #E1E9EE!important;
  padding:10px!important;
  font:500 12px/1.45 Poppins,Montserrat,sans-serif!important;
  vertical-align:middle!important;
  opacity:1!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table tbody tr:nth-child(even) td {
  background:#F6FAFC!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table tbody td :is(strong,b,small,span) {
  color:#263D4F!important;
  opacity:1!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table tbody td strong {
  font:800 12px/1.4 Montserrat,Poppins,sans-serif!important;
  color:#173C56!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert237-evals.esde-cert238-evals table tbody td .esde-cert259-pubstate.is-published {
  color:#11516A!important;
  background:#DDF5FA!important;
  border-color:#A5DBE8!important;
}

/* Closing prerequisites: distinguish a valid check from pending using text and icons. */
html body .esde-cert244[data-esde-theme] .esde-cert251-close-readiness .esde-cert251-close-checks {
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert251-close-readiness .esde-cert251-close-checks>span {
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  max-width:100%!important;
  padding:7px 10px!important;
  background:#FFF4D4!important;
  color:#614900!important;
  border:1px solid #EAD27C!important;
  border-radius:8px!important;
  font:700 11px/1.4 Montserrat,Poppins,sans-serif!important;
}
html body .esde-cert244[data-esde-theme] .esde-cert251-close-readiness .esde-cert251-close-checks>span.is-ready {
  background:#E7F7FB!important;
  color:#12556A!important;
  border-color:#ACDDE9!important;
}

@media (max-width:750px){
  html body .esde-cert244[data-esde-theme] :is(.esde-cert256-tabulation,.esde-cert238-history){padding:10px!important;}
}
html body .esde-cert244[data-esde-theme] .esde-cert313-check-publication {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  margin:6px 0!important;
  padding:7px 10px!important;
  border-radius:8px!important;
  border:1px solid #169FC2!important;
  background:#E1F6FC!important;
  color:#16485C!important;
  font:700 11px/1.35 Montserrat,Poppins,sans-serif!important;
  cursor:pointer!important;
}
