.curriculum-overview .table-wrap,
.curriculum-submodule-view .table-wrap {
  margin: 14px 16px 16px;
  overflow: auto;
  border: 1px solid #cbd9cf;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(22 66 44 / 5%);
}

.curriculum-overview-table,
.curriculum-matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.curriculum-atp-table {
  min-width: 1180px;
}

.curriculum-kktp-table {
  min-width: 1320px;
}

.curriculum-cp-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

.curriculum-cp-table th {
  vertical-align: bottom;
  white-space: normal;
}

.curriculum-cp-table td {
  min-width: 0;
  max-width: none;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
}

.curriculum-cp-table td:nth-child(4) {
  color: #214b38;
  font-weight: 700;
}

.curriculum-cp-table .curriculum-cp-points li > strong,
.curriculum-official-cp-table .curriculum-cp-points li > strong {
  display: block;
  margin-bottom: 3px;
  color: #214b38;
}

.curriculum-cp-table th:nth-child(1),
.curriculum-cp-table td:nth-child(1) {
  width: 48px;
}

.curriculum-cp-table th:nth-child(2),
.curriculum-cp-table td:nth-child(2) {
  width: 190px;
}

.curriculum-cp-table th:nth-child(3),
.curriculum-cp-table td:nth-child(3) {
  width: 80px;
}

.curriculum-cp-table th:nth-child(4),
.curriculum-cp-table td:nth-child(4) {
  width: 175px;
}

.curriculum-cp-table th:nth-child(6),
.curriculum-cp-table td:nth-child(6) {
  width: 235px;
}

.curriculum-material-table {
  width: 100%;
  min-width: 1000px;
  table-layout: fixed;
}

.curriculum-material-table th {
  white-space: normal;
}

.curriculum-material-table th:nth-child(1),
.curriculum-material-table td:nth-child(1) {
  width: 48px;
  min-width: 0;
  max-width: none;
}

.curriculum-material-table th:nth-child(2),
.curriculum-material-table td:nth-child(2) {
  width: 145px;
  min-width: 0;
  max-width: none;
}

.curriculum-material-table th:nth-child(3),
.curriculum-material-table td:nth-child(3) {
  width: 70px;
  min-width: 0;
  max-width: none;
}

.curriculum-material-table th:nth-child(4),
.curriculum-material-table td:nth-child(4) {
  width: 60px;
  min-width: 0;
  max-width: none;
}

.curriculum-material-table th:nth-child(5),
.curriculum-material-table td:nth-child(5) {
  width: 90px;
  min-width: 0;
  max-width: none;
}

.curriculum-material-table th:nth-child(6),
.curriculum-material-table td:nth-child(6) {
  width: 220px;
  min-width: 0;
  max-width: none;
}

.curriculum-material-table th:nth-child(7),
.curriculum-material-table td:nth-child(7) {
  width: 400px;
  min-width: 0;
  max-width: none;
}

.curriculum-kktp-reference {
  margin: 14px 16px;
  padding: 14px 16px;
  border: 1px solid #cbd9cf;
  border-radius: 10px;
  background: #f8fbf9;
  color: #34473b;
}

.curriculum-kktp-reference summary {
  color: #214b38;
  font-weight: 750;
  cursor: pointer;
}

.curriculum-kktp-reference .table-wrap {
  margin: 12px 0;
}

.curriculum-kktp-reference .curriculum-overview-table {
  min-width: 760px;
}

.curriculum-atp-table td {
  vertical-align: top;
}

.curriculum-overview-table th,
.curriculum-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 12px;
  border-right: 1px solid #cbd9cf;
  border-bottom: 2px solid #9db8a5;
  background: #e8f2eb;
  color: #214b38;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.curriculum-overview-table td,
.curriculum-matrix-table td {
  padding: 11px 12px;
  border-right: 1px solid #e0e8e2;
  border-bottom: 1px solid #d8e2db;
  color: #29372f;
  line-height: 1.55;
}

.curriculum-overview-table th:last-child,
.curriculum-overview-table td:last-child,
.curriculum-matrix-table th:last-child,
.curriculum-matrix-table td:last-child {
  border-right: 0;
}

.curriculum-overview-table tbody tr:last-child td,
.curriculum-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

.curriculum-overview-table tbody tr:nth-child(even),
.curriculum-matrix-table tbody tr:nth-child(even) {
  background: #f7faf8;
}

.curriculum-overview-table tbody tr:hover,
.curriculum-matrix-table tbody tr:hover {
  background: #edf6f0;
}

.curriculum-overview-table td:first-child,
.curriculum-matrix-table td:first-child {
  background: #f0f5f1;
  color: #53675a;
  font-weight: 700;
}

.curriculum-overview-table td p,
.curriculum-matrix-table td p {
  color: #34473b;
  line-height: 1.65;
}

.curriculum-overview-table .curriculum-overview-meta {
  color: #68796e;
}

.curriculum-tp-student {
  display: block;
  margin-top: 4px;
  color: #53675a;
  font-size: 0.9em;
}

.curriculum-tp-student strong {
  color: #326047;
}

.curriculum-cp-points {
  margin: 0;
  padding-left: 18px;
}

.curriculum-cp-points li {
  margin: 0 0 6px;
}

.curriculum-cp-hierarchy {
  display: grid;
  gap: 12px;
}

.curriculum-cp-component > strong {
  display: block;
  margin-bottom: 5px;
  color: #214b38;
}

.curriculum-cp-component {
  padding: 10px 12px;
  border-left: 3px solid #9db8a5;
  border-radius: 0 7px 7px 0;
  background: #f8fbf9;
}

.curriculum-workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: curriculum-step;
}

.curriculum-workflow-steps li,
.plan-detail-group {
  padding: 13px;
  border: 1px solid #d5e2d8;
  border-radius: 10px;
  background: #f8fbf9;
}

.curriculum-workflow-steps li {
  display: grid;
  gap: 7px;
  align-content: start;
  counter-increment: curriculum-step;
}

.curriculum-workflow-steps li::before {
  content: counter(curriculum-step, decimal-leading-zero);
  color: #538062;
  font-size: 12px;
  font-weight: 800;
}

.curriculum-workflow-steps strong {
  color: #214b38;
}

.curriculum-workflow-steps span {
  color: #53675a;
  font-size: 12px;
  line-height: 1.5;
}

.curriculum-document-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 18px 0;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .curriculum-document-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.curriculum-document-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 190px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #c9dccf;
  border-radius: 10px;
  background: #f8fbf9;
  color: #29372f;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.curriculum-document-card:hover,
.curriculum-document-card:focus-visible {
  border-color: #6f9c7d;
  box-shadow: 0 5px 16px rgb(22 66 44 / 10%);
  transform: translateY(-1px);
}

.curriculum-document-card strong {
  color: #214b38;
  font-size: 15px;
}

.curriculum-document-card > span:not(.curriculum-document-icon, .curriculum-card-open) {
  color: #53675a;
  font-size: 12px;
  line-height: 1.55;
}

.curriculum-document-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #e8f2eb;
  color: #326047;
  font-size: 18px;
  font-weight: 800;
}

.curriculum-document-card small {
  color: #68796e;
}

.curriculum-card-open {
  align-self: end;
  color: #276344;
  font-size: 12px;
  font-weight: 750;
}

.curriculum-module-panel > .panel-head {
  align-items: flex-start;
}

.curriculum-module-document {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #d5e2d8;
  border-radius: 10px;
  background: #fff;
}

.curriculum-module-document > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e8e2;
}

.curriculum-module-document > header h3 {
  margin: 0 0 5px;
  color: #214b38;
}

.curriculum-module-document > header p {
  margin: 0;
  color: #68796e;
  font-size: 12px;
}

.curriculum-module-document .curriculum-document {
  margin-top: 14px;
}

.curriculum-aid-document .curriculum-section {
  margin: 16px 0;
}

.curriculum-aid-identity {
  margin: 16px 0 20px;
}

.curriculum-aid-identity h3 {
  margin: 0 0 8px;
  color: #214b38;
  font-size: 15px;
}

.curriculum-aid-identity-table {
  width: 100%;
  border-collapse: collapse;
}

.curriculum-aid-identity-table th,
.curriculum-aid-identity-table td {
  padding: 8px 10px;
  border: 1px solid #d5e2d8;
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.curriculum-aid-identity-table th {
  width: 18%;
  background: #f2f6f3;
  color: #42584a;
  font-weight: 700;
}

.curriculum-aid-identity-table td {
  width: 32%;
}

.curriculum-aid-document .curriculum-section h3 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d5e2d8;
  color: #214b38;
  font-size: 15px;
}

.curriculum-aid-document dl {
  margin: 0;
}

.curriculum-aid-document dl > div {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1ed;
}

.curriculum-aid-document dt {
  color: #42584a;
  font-weight: 700;
}

.curriculum-aid-document dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .curriculum-aid-document dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.curriculum-official-cp-catalog {
  margin: 20px 0;
}

.curriculum-official-cp-catalog > p {
  margin: 8px 0 14px;
}

.curriculum-cp-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}

.curriculum-cp-filters .form-field {
  margin: 0;
}

.curriculum-cp-filter-status {
  margin: 8px 0;
  color: #68796e;
  font-size: 13px;
}

.curriculum-official-cp-table-wrap {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid #d5e2d8;
  border-radius: 8px;
}

.curriculum-official-cp-table {
  min-width: 1080px;
}

.curriculum-official-cp-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.curriculum-official-cp-table th,
.curriculum-official-cp-table td {
  vertical-align: top;
}

.curriculum-official-cp-table td:nth-child(1),
.curriculum-official-cp-table td:nth-child(3),
.curriculum-official-cp-table td:nth-child(4) {
  white-space: nowrap;
}

.curriculum-official-cp-table td:nth-child(6) {
  min-width: 420px;
  line-height: 1.65;
}

.curriculum-official-cp-table td:nth-child(5) {
  min-width: 190px;
  color: #214b38;
  font-weight: 700;
}

.curriculum-official-cp-table td:nth-child(7) {
  min-width: 180px;
}

.curriculum-pendis-cp-header {
  border-bottom: 2px solid #214b38;
  margin-bottom: 16px;
  padding: 12px 16px 16px;
  text-align: center;
}

.curriculum-pendis-cp-decree {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.curriculum-pendis-cp-header h3 {
  margin: 8px 0 6px;
  text-transform: uppercase;
}

.curriculum-pendis-cp-header p {
  max-width: 920px;
  margin-inline: auto;
}

.curriculum-pendis-cp-overview {
  border: 1px solid #d5e2d8;
  border-radius: 8px;
  margin: 12px 0 16px;
  padding: 12px 16px;
}

.curriculum-pendis-cp-overview h4 {
  margin: 6px 0;
}

.curriculum-analysis-catalog {
  margin: 20px 0;
}

.curriculum-analysis-catalog > p {
  margin: 8px 0 14px;
}

.curriculum-analysis-table-wrap {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid #d5e2d8;
  border-radius: 8px;
}

.curriculum-analysis-table {
  min-width: 1500px;
}

.curriculum-analysis-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.curriculum-analysis-table th,
.curriculum-analysis-table td {
  vertical-align: top;
}

.curriculum-analysis-table td:nth-child(1),
.curriculum-analysis-table td:nth-child(3),
.curriculum-analysis-table td:nth-child(4) {
  white-space: nowrap;
}

.curriculum-analysis-table td:nth-child(6) {
  min-width: 320px;
  line-height: 1.65;
}

.curriculum-analysis-table td:nth-child(7),
.curriculum-analysis-table td:nth-child(8),
.curriculum-analysis-table td:nth-child(9) {
  min-width: 250px;
  line-height: 1.55;
}

.curriculum-analysis-table td:nth-child(10) {
  min-width: 200px;
}

.curriculum-saved-documents {
  margin-top: 24px;
}

.curriculum-flow-note {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid #6f9c7d;
  border-radius: 6px;
  background: #f1f7f3;
  color: #415548;
  font-size: 13px;
  line-height: 1.6;
}

.curriculum-start-actions {
  margin-top: 16px;
  padding: 14px;
  border-color: #b7d0bd;
  background: #f2f8f4;
}

.curriculum-start-actions h3,
.curriculum-supporting-tools h3 {
  margin: 0 0 6px;
  color: #214b38;
}

.curriculum-start-actions p,
.curriculum-supporting-tools p {
  margin: 0;
  color: #53675a;
  font-size: 12px;
  line-height: 1.5;
}

.curriculum-supporting-tools {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #d5e2d8;
}

.curriculum-supporting-tools .curriculum-quick-access {
  margin-top: 10px;
}

.plan-detail-group {
  margin: 12px 0;
}

.plan-detail-group h4 {
  margin: 0 0 10px;
  color: #214b38;
}

.teaching-aid-reference-note {
  margin: 10px 0 14px;
  padding: 11px 14px;
  border: 1px solid #d5e2d8;
  border-radius: 9px;
  background: #f8fbf9;
  color: #53675a;
  font-size: 12px;
  line-height: 1.55;
}

.teaching-aid-reference-note strong {
  color: #214b38;
}

.teaching-aid-reference-note ul {
  margin: 6px 0;
  padding-left: 20px;
}

.teaching-aid-reference-note p {
  margin: 6px 0 0;
}

.cp-elements-editor {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #c9dccf;
  border-radius: 9px;
  background: #fff;
}

.cp-elements-editor-head,
.cp-element-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cp-elements-editor-head {
  margin-bottom: 12px;
}

.cp-elements-editor-head h5 {
  margin: 0 0 5px;
  color: #214b38;
  font-size: 14px;
}

.cp-elements-editor-head p {
  margin: 0;
  color: #53675a;
  font-size: 12px;
  line-height: 1.5;
}

.cp-element-entry {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e0e9e2;
  border-radius: 8px;
  background: #f8fbf9;
}

.cp-element-entry-head {
  align-items: center;
  margin-bottom: 10px;
  color: #214b38;
}

.cp-element-entry .form-field + .form-field {
  margin-top: 10px;
}

.cp-element-print {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #8aaf94;
  background: #f8fbf9;
}

.cp-element-print h4 {
  margin: 0 0 6px;
  color: #214b38;
}

.cp-element-print p {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .curriculum-document-cards {
    gap: 8px;
  }

  .curriculum-document-card {
    min-height: 0;
    padding: 12px;
  }

  .curriculum-document-card strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .curriculum-overview .table-wrap,
  .curriculum-submodule-view .table-wrap {
    margin: 10px 8px 12px;
  }

  .curriculum-workflow-steps {
    grid-template-columns: 1fr;
  }

  .curriculum-module-document > header {
    flex-direction: column;
  }

  .curriculum-cp-filters {
    grid-template-columns: 1fr;
  }

  .cp-elements-editor-head,
  .cp-element-entry-head {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .curriculum-document-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .curriculum-document-card {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 188px;
    padding: 10px;
  }

  .curriculum-document-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .curriculum-document-card strong {
    font-size: 13px;
    line-height: 1.3;
  }

  .curriculum-document-card > span:not(.curriculum-document-icon, .curriculum-card-open),
  .curriculum-document-card small {
    font-size: 10px;
    line-height: 1.45;
  }

  .curriculum-card-open {
    margin-top: 2px;
  }

  .curriculum-document-card > span:not(.curriculum-document-icon, .curriculum-card-open) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .curriculum-document-card small {
    display: none;
  }
}

@media print {
  .curriculum-overview .table-wrap,
  .curriculum-submodule-view .table-wrap {
    overflow: visible;
    border: 1px solid #888;
    box-shadow: none;
  }

  .curriculum-overview-table th,
  .curriculum-matrix-table th {
    position: static;
    background: #e8f2eb !important;
    color: #111 !important;
  }

  .curriculum-overview-table td,
  .curriculum-matrix-table td {
    border-color: #aaa;
  }
}

#materialTopicChoices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #cbd9cf;
  border-radius: 9px;
  background: #f8fbf9;
}

#materialTopicChoices .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 54px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1.45;
}

#materialTopicChoices .checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: #216141;
}

#materialTopicChoices .checkbox-field span {
  overflow-wrap: anywhere;
}

#materialTopicChoices .curriculum-overview-meta {
  grid-column: 1 / -1;
  margin: 4px;
}
