/* Leave room for long labels without stacking desktop navigation vertically. */
html[lang="en"] .console-menu button,
html[lang="es"] .console-menu button {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.45;
  min-height: 42px;
  height: auto;
}
.console-layout > section { min-width: 0; }

.learning-monitoring-page .table-wrap > table {
  table-layout: fixed;
  min-width: 1080px;
}
.learning-monitoring-page th:nth-child(1),
.learning-monitoring-page th:nth-child(6) { width: 14%; }
.learning-monitoring-page th:nth-child(2),
.learning-monitoring-page th:nth-child(3) { width: 12%; }
.learning-monitoring-page th:nth-child(4) { width: 17%; }
.learning-monitoring-page th:nth-child(5) { width: 13%; }
.learning-monitoring-page th:nth-child(7) { width: 18%; }
.learning-monitoring-page .progress-detail-list { width: 100%; min-width: 0; }
.learning-monitoring-page .progress-detail-row { grid-template-columns: minmax(0, 1fr) auto; }
.learning-monitoring-page td { overflow-wrap: anywhere; }

.customer-import-mode { display: flex; flex-wrap: wrap; gap: 10px 22px; border: 1px solid var(--line, #ded9d4); border-radius: 10px; padding: 10px 14px; }
.customer-import-mode label { display: inline-flex; align-items: center; gap: 8px; }
.mixed-import .mixed-import-editor { background: #faf7f4; border-radius: 10px; }
.mixed-import-editor > * + * { margin-top: 12px; }
.mixed-import-table { min-width: 0; }
.mixed-import-table .table-wrap { max-height: 340px; }
.mixed-import-table table { min-width: 780px; }
.mixed-import-table th { position: sticky; top: 0; z-index: 1; }
.mixed-import-table :is(th, td):nth-child(4) { min-width: 155px; }
.mixed-import-table input[type="checkbox"], .customer-import-mode input[type="radio"] { width: auto; }

@media (max-width: 1800px) {
  .topbar { display: grid; grid-template-columns: minmax(170px, 1fr) auto; gap: 8px 18px; padding-top: 12px; padding-bottom: 8px; }
  .topbar .brand-row { grid-column: 1; grid-row: 1; min-width: 0; }
  .topbar .user-area { grid-column: 2; grid-row: 1; min-width: 0; justify-content: flex-end; }
  .topbar .main-nav { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 18px; min-width: 0; width: 100%; }
  .topbar .main-nav button { min-height: 40px; padding: 9px 4px; white-space: nowrap; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: minmax(0, 1fr); }
  .topbar .brand-row { justify-content: center; }
  .topbar .user-area { grid-column: 1; grid-row: 2; justify-content: center; flex-wrap: wrap; }
  .topbar .main-nav { grid-row: 3; }
}
