.table2-public {
  /* background: #f4f7fb; */
  color: #1f2937;
  font-family: "Helvetica Neue", Arial, sans-serif;
  padding: 16px 0 18px;
}

.table2-public-year-smooth {
  padding: 5px 0;
}

.table2-public-year-smooth > .smooth_block_hide,
.table2-public-year-smooth > .smooth_block_hide + label + div {
  height: 0;
  overflow: hidden;
  padding-top: 5px;
}

.table2-public-year-smooth > .smooth_block_hide + label {
  background-color: #c0e2ff;
  border-radius: 5px;
  color: #1f2937;
  cursor: pointer;
  display: block;
  font-weight: 700;
  margin: 0;
  padding: 10px 10px 10px 25px;
  text-align: left;
}

.table2-public-year-smooth > .smooth_block_hide:checked + label {
  color: #0b4da2;
}

.table2-public-year-smooth > .smooth_block_hide:checked + label + div {
  animation: table2-public-fade ease-in 0.2s;
  height: auto;
}

@keyframes table2-public-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.table2-public h1,
.table2-public h2,
.table2-public h3 {
  color: #111827;
  font-weight: 700;
  margin-top: 0;
  background: #ffffff;
}

.table2-public-header {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.table2-public-header h1 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.table2-public-header p {
  color: #64748b;
  margin: 0;
}

.table2-back-link {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 8px;
}

.table2-filter-panel,
.table2-section,
.table2-program-card,
.table2-unavailable-box {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
}

.table2-filter-panel {
  margin-bottom: 16px;
  padding: 16px;
}

.table2-filter-panel label,
.table2-course-filter label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table2-public-alert {
  display: none;
  margin-bottom: 16px;
}

.table2-public-alert.is-visible {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 6px;
  color: #9a3412;
  display: block;
  padding: 12px 14px;
}

.table2-loading {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  color: #475569;
  margin-bottom: 16px;
  padding: 18px;
}

.table2-spin {
  animation: table2-spin 0.9s linear infinite;
  margin-right: 8px;
}

@keyframes table2-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.table2-year-group {
  margin-bottom: 18px;
}

.table2-year-title {
  display: none;
}

.table2-year-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  color: #1f2937;
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  line-height: 1.25;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.table2-year-toggle:hover,
.table2-year-toggle:focus {
  background: #f8fafc;
  color: #0f766e;
  outline: none;
}

.table2-year-toggle .glyphicon {
  color: #64748b;
  margin-right: 8px;
  transition: transform 0.16s ease;
}

.table2-year-toggle.is-open .glyphicon {
  transform: rotate(90deg);
}

.table2-year-toggle strong {
  flex: 1 1 auto;
}

.table2-year-count {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: #075985;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
  min-width: 30px;
  padding: 3px 8px;
  text-align: center;
}

.table2-year-body {
  padding-top: 10px;
}

.table2-program-card {
  margin-bottom: 12px;
  padding: 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.table2-program-card:focus,
.table2-program-card.is-expanded {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .table2-program-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    outline: none;
  }
}

.table2-program-card__head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.table2-program-card__number {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: #075985;
  flex: 0 0 auto;
  font-weight: 700;
  min-width: 40px;
  padding: 7px 10px;
  text-align: center;
}

.table2-program-card__main {
  flex: 1 1 auto;
  min-width: 0;
}

.table2-program-card__code {
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 3px;
}

.table2-program-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.table2-program-card__profile {
  color: #475569;
  line-height: 1.35;
}

.table2-meta-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.18s ease, opacity 0.16s ease, margin 0.16s ease;
}

.table2-program-card.is-expanded .table2-meta-grid {
  margin: 14px 0;
  max-height: 180px;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .table2-program-card:hover .table2-meta-grid {
    margin: 14px 0;
    max-height: 180px;
    opacity: 1;
    pointer-events: auto;
  }
}

.table2-meta-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 8px 10px;
}

.table2-meta-item span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.table2-meta-item strong {
  color: #1f2937;
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.table2-doc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.18s ease, opacity 0.16s ease, margin 0.16s ease;
}

.table2-program-card.is-expanded .table2-doc-list {
  margin: 12px 0 0;
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .table2-program-card:hover .table2-doc-list {
    margin: 12px 0 0;
    max-height: 220px;
    opacity: 1;
    pointer-events: auto;
  }
}

.table2-doc-link {
  border-radius: 4px;
  display: inline-block;
  font-size: 13px;
  line-height: 1.25;
  padding: 7px 10px;
  text-decoration: none;
}

.table2-doc-link:focus,
.table2-doc-link:hover {
  text-decoration: none;
}

.table2-doc-link--available {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.table2-doc-link--available:hover {
  background: #dcfce7;
  color: #14532d;
}

.table2-doc-link--missing {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.table2-doc-link--missing:hover {
  background: #fff7ed;
  color: #9a3412;
}

.table2-program-actions {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.18s ease, opacity 0.16s ease, margin 0.16s ease;
}

.table2-program-card.is-expanded .table2-program-actions {
  margin-top: 14px;
  max-height: 80px;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .table2-program-card:hover .table2-program-actions {
    margin-top: 14px;
    max-height: 80px;
    opacity: 1;
    pointer-events: auto;
  }
}

.table2-public .table2-program-actions .btn,
.table2-public .table2-program-actions .btn:visited,
.table2-public .table2-program-actions .btn:focus,
.table2-public .table2-program-actions .btn:hover,
.table2-public .table2-program-actions .btn:active {
  color: #ffffff !important;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  text-decoration: none !important;
}

.table2-public .table2-program-actions .btn-primary,
.table2-public .table2-program-actions .btn-primary:visited,
.table2-public .table2-program-actions .btn-primary:focus,
.table2-public .table2-program-actions .btn-primary:hover,
.table2-public .table2-program-actions .btn-primary:active {
  background-color: #337ab7 !important;
  border-color: #2e6da4 !important;
}

.table2-section {
  margin-bottom: 16px;
  padding: 16px;
}

.table2-section-title {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table2-section-title h2 {
  font-size: 20px;
  margin-bottom: 0;
}

.table2-course-filter {
  min-width: 180px;
}

.table2-common-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table2-course-block {
  margin-bottom: 18px;
}

.table2-course-block:last-child {
  margin-bottom: 0;
}

.table2-course-heading {
  background: #f1f5f9;
  border: 1px solid #d8e0ea;
  border-radius: 5px 5px 0 0;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 12px;
}

.table2-public .table {
  background: #ffffff;
  margin-bottom: 0;
}

.table2-mobile-card-list {
  display: none;
}

.table2-public .table > thead > tr > th {
  background: #f8fafc;
  border-bottom-width: 1px;
  color: #334155;
  font-size: 13px;
  vertical-align: middle;
}

.table2-public .table > tbody > tr > td {
  vertical-align: middle;
}

.table2-col-code {
  white-space: nowrap;
  width: 100px;
}

.table2-col-small {
  text-align: center;
  white-space: nowrap;
  width: 72px;
}

.table2-col-doc {
  min-width: 120px;
  text-align: center;
}

.table2-table-doc {
  display: inline-block;
  font-size: 12px;
  padding: 5px 8px;
}

.table2-mobile-item-card {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 12px;
}

.table2-mobile-item-card__top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.table2-mobile-item-card__code {
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.table2-mobile-item-card__semester {
  background: #f1f5f9;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  color: #334155;
  flex: 0 0 auto;
  font-size: 12px;
  padding: 3px 8px;
}

.table2-mobile-item-card__semester span {
  color: #475569;
  font-weight: 700;
}

.table2-mobile-item-card__name {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.table2-mobile-item-card__department {
  color: #64748b;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 5px;
}

.table2-mobile-item-card__department span {
  color: #475569;
  font-weight: 700;
}

.table2-mobile-docs {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.table2-mobile-doc {
  display: block;
  text-align: center;
}

.table2-empty {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  padding: 14px;
}

.table2-unavailable-box {
  margin: 60px auto 0;
  max-width: 620px;
  padding: 32px;
  text-align: center;
}

.table2-unavailable-box .glyphicon {
  color: #0f766e;
  font-size: 38px;
  margin-bottom: 12px;
}

.table2-unavailable-box h1 {
  font-size: 24px;
}

.table2-unavailable-box p {
  color: #475569;
  font-size: 15px;
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .table2-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .table2-public {
    padding-top: 12px;
  }

  .table2-public-header,
  .table2-section-title,
  .table2-program-card__head {
    display: block;
  }

  .table2-program-card__number {
    display: inline-block;
    margin-bottom: 10px;
  }

  .table2-program-card {
    overflow: hidden;
  }

  .table2-program-actions {
    width: 100%;
  }

  .table2-public .table2-program-actions .btn {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    width: 100%;
  }

  .table2-desktop-table {
    display: none;
  }

  .table2-mobile-card-list {
    display: block;
  }

  .table2-meta-grid {
    grid-template-columns: 1fr;
  }

  .table2-course-filter {
    margin-top: 10px;
    min-width: 0;
  }
}
