:root {
  --stdiis-navy: #17345b;
  --stdiis-navy-dark: #102746;
  --stdiis-blue: #2456a6;
  --stdiis-gold: #c6a653;
  --stdiis-gold-light: #f3e7bd;
  --stdiis-ink: #263445;
  --stdiis-muted: #687789;
  --stdiis-paper: #f5f6f8;
}

body {
  color: var(--stdiis-ink);
  background-color: var(--stdiis-paper);
}

.app-header,
.app-header__logo,
.app-header__logo:hover,
.app-header__logo:focus {
  background-color: var(--stdiis-navy);
  color: #fff;
}

.app-header {
  background-color: #21456f;
  box-shadow: 0 2px 10px rgba(16, 39, 70, 0.1);
}

.app-header .app-header__logo,
.app-header .app-header__logo:hover,
.app-header .app-header__logo:focus {
  color: var(--stdiis-gold);
  font-weight: 700;
}

.app-sidebar__toggle,
.app-nav__item {
  color: #fff;
}

.app-header .app-sidebar__toggle,
.app-header .app-sidebar__toggle::before {
  color: var(--stdiis-gold);
}

.app-header .app-sidebar__toggle:hover,
.app-header .app-sidebar__toggle:focus,
.app-header .app-sidebar__toggle:hover::before,
.app-header .app-sidebar__toggle:focus::before {
  color: var(--stdiis-gold);
}

.app-sidebar__toggle:hover,
.app-sidebar__toggle:focus,
.app-nav__item:hover,
.app-nav__item:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}

.app-nav > li.dropdown > .app-nav__item > .fa {
  color: var(--stdiis-gold);
}

.warna_tahun_akdm {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  color: #fff;
  background-color: var(--stdiis-navy-dark);
}

.app-sidebar {
  background-color: var(--stdiis-navy-dark);
}

.app-sidebar a,
.app-sidebar a:link,
.app-sidebar a:visited {
  color: rgba(255, 255, 255, 0.88);
}

.app-menu__item,
.treeview-item {
  color: rgba(255, 255, 255, 0.88);
}

.app-menu__item:hover,
.app-menu__item:focus,
.treeview-item:hover,
.treeview-item:focus,
.treeview.is-expanded [data-toggle='treeview'] {
  color: #fff;
  background-color: var(--stdiis-navy);
  border-left-color: var(--stdiis-gold);
}

.app-sidebar .app-menu__item.active,
.app-sidebar .treeview-item.active {
  color: var(--stdiis-navy-dark);
  background-color: #e4c66e;
  border-left: 4px solid #fff4cf;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(16, 39, 70, 0.12);
}

.app-sidebar .app-menu__item.active .app-menu__icon,
.app-sidebar .treeview-item.active .icon {
  color: var(--stdiis-navy-dark);
}

.app-sidebar .treeview.is-expanded > [data-toggle='treeview'] {
  color: #fff;
  background-color: #28527c;
  border-left-color: var(--stdiis-gold);
  font-weight: 600;
}

.treeview-menu {
  background-color: #19385e;
}

.app-sidebar .app-menu__icon,
.app-sidebar .treeview-indicator {
  color: var(--stdiis-gold);
}

a,
a:link,
a:visited,
.btn-link {
  color: var(--stdiis-blue);
}

a:hover,
a:focus,
.btn-link:hover {
  color: var(--stdiis-navy-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.tile-title {
  color: var(--stdiis-navy);
}

.app-title {
  background-color: #35628e;
  color: #fff;
  border-radius: 0;
}

.app-title h1,
.app-title p {
  color: #fff;
}

.app-title .app-breadcrumb .breadcrumb-item,
.app-title .app-breadcrumb .breadcrumb-item a,
.app-title .app-breadcrumb .breadcrumb-item.active {
  color: #fff;
}

.app-title .app-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--stdiis-gold-light);
}

.app-title .app-breadcrumb .breadcrumb-item a:hover,
.app-title .app-breadcrumb .breadcrumb-item a:focus {
  color: var(--stdiis-gold-light);
  text-decoration: underline;
}

.tile,
.widget-small.coloured-icon {
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(16, 39, 70, 0.08);
}

.tile .tile-title {
  color: var(--stdiis-navy);
}

.btn-primary,
.widget-small.primary,
.widget-small.primary.coloured-icon .icon {
  color: #fff;
  background-color: var(--stdiis-navy);
  border-color: var(--stdiis-navy);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  color: #fff;
  background-color: var(--stdiis-navy-dark);
  border-color: var(--stdiis-navy-dark);
}

.btn-primary .fa,
.btn-primary .fas,
.btn-primary .far,
.btn-primary .fal,
.btn-primary .fab {
  color: inherit;
}

.btn-outline-primary {
  color: var(--stdiis-navy);
  border-color: var(--stdiis-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--stdiis-navy);
  border-color: var(--stdiis-navy);
}

.btn-warning,
.widget-small.warning.coloured-icon .icon {
  background-color: var(--stdiis-gold);
  border-color: var(--stdiis-gold);
}

.ktm-action-button,
.ktm-action-button:hover,
.ktm-action-button:focus,
.ktm-action-button:active,
.ktm-action-button:visited,
.ktm-action-button .fa {
  color: #fff !important;
}

.ktm-action-button.btn-warning {
  background-color: #8a6800;
  border-color: #725500;
}

.ktm-action-button.btn-warning:hover,
.ktm-action-button.btn-warning:focus,
.ktm-action-button.btn-warning:active {
  background-color: #725500;
  border-color: #5b4400;
}

.widget-small.primary.coloured-icon {
  color: var(--stdiis-ink);
  background-color: #fff;
}

.widget-small.primary.coloured-icon .info h4 {
  color: var(--stdiis-navy);
}

table thead,
.table thead th {
  color: var(--stdiis-navy);
  background: #edf1f6;
}

.page-item.active .page-link {
  color: #fff;
  background-color: var(--stdiis-navy);
  border-color: var(--stdiis-navy);
}

.page-link {
  color: var(--stdiis-blue);
}

.page-link:hover {
  color: var(--stdiis-navy-dark);
}

.modal .modal-header {
  color: #fff;
  background: linear-gradient(110deg, var(--stdiis-navy), #28527c);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--stdiis-gold);
  box-shadow: 0 0 0 0.2rem rgba(198, 166, 83, 0.2);
}

@media (max-width: 768px) {
  .app-title {
    padding: 14px;
  }
}

.login-page {
  min-height: 100vh;
  background-color: var(--stdiis-paper);
}

.login-page .page-hero {
  padding: 30px 20px;
  color: #fff;
  text-align: center;
  background-color: var(--stdiis-navy-dark);
}

.login-page .hero-box {
  display: inline-block;
  max-width: 980px;
  padding: 12px 20px;
}

.login-page .page-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.login-page .page-hero p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.login-container-wrapper {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 120px);
}

.login-left-side {
  display: flex;
  flex: 0 0 43%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  background-color: #f5f6f8;
}

.login-left-side .logo {
  margin-bottom: 24px;
}

.login-left-side .logo h1 {
  margin: 0;
  color: var(--stdiis-navy);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-page .login-box {
  width: 100%;
  max-width: 390px;
  min-width: 0;
  min-height: 0;
  padding: 30px;
  border: 1px solid #e4e9ef;
  border-top: 4px solid var(--stdiis-gold);
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 12px 32px rgba(16, 39, 70, 0.1);
}

.login-page .login-form,
.login-page .forget-form {
  position: static;
  padding: 0;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.login-page .login-form {
  display: block;
}

.login-page .forget-form {
  display: none;
}

.login-page .login-head {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7ebf0;
  color: var(--stdiis-navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
}

.login-page .login-head .fa {
  color: var(--stdiis-gold);
}

.login-page .login-box label {
  color: var(--stdiis-ink);
}

.login-page .login-form input,
.login-page .forget-form input {
  height: auto;
  padding: 10px 12px;
  border: 1px solid #d9e0e8;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-page .login-form input:focus,
.login-page .forget-form input:focus {
  border-color: var(--stdiis-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 166, 83, 0.18);
}

.login-page .login-box .utility {
  gap: 12px;
}

.login-page .login-forgot-link,
.login-page .login-back-link {
  color: var(--stdiis-blue);
}

.login-page .login-forgot-link:hover,
.login-page .login-back-link:hover {
  color: var(--stdiis-navy-dark);
}

.login-page .login-form button,
.login-page .forget-form button {
  padding: 11px 14px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background-color: var(--stdiis-navy);
  box-shadow: 0 5px 14px rgba(16, 39, 70, 0.16);
  font-weight: 700;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.login-page .login-form button:hover,
.login-page .forget-form button:hover {
  color: #fff;
  background-color: var(--stdiis-navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 39, 70, 0.2);
}

.login-page .login-help {
  color: var(--stdiis-ink);
}

.login-right-side {
  display: flex;
  flex: 1 1 57%;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 36px;
  color: #fff;
  background-color: #35628e;
}

.kalender-container {
  width: 100%;
}

.kalender-header {
  margin-bottom: 18px;
}

.kalender-header h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.kalender-header .fa {
  margin-right: 8px;
  color: var(--stdiis-gold);
}

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 2px 8px 8px 2px;
}

.kalender-item {
  padding: 18px;
  border-left: 4px solid var(--stdiis-gold);
  border-radius: 5px;
  color: var(--stdiis-ink);
  background-color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kalender-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.kalender-item .jenis {
  margin-bottom: 8px;
  color: var(--stdiis-navy);
  font-size: 16px;
  font-weight: 700;
}

.kalender-item .kode {
  margin-bottom: 10px;
  color: var(--stdiis-muted);
  font-size: 12px;
  font-style: italic;
}

.kalender-item .tanggal {
  margin-bottom: 8px;
  color: var(--stdiis-ink);
  font-size: 13px;
  line-height: 1.5;
}

.kalender-item .ta-semester {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--stdiis-navy);
  background-color: #f3e7bd;
  font-size: 12px;
}

.kalender-item .catatan {
  margin-top: 10px;
  padding: 8px;
  border-left: 2px solid var(--stdiis-gold);
  border-radius: 3px;
  color: var(--stdiis-ink);
  background-color: #f5f6f8;
  font-size: 12px;
}

.kalender-empty {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  text-align: center;
}

.kalender-empty .login-empty-icon {
  display: block;
  margin-bottom: 15px;
  color: var(--stdiis-gold);
  font-size: 48px;
}

@media (max-width: 768px) {
  .login-container-wrapper {
    flex-direction: column;
  }

  .login-left-side,
  .login-right-side {
    flex: 0 0 auto;
    padding: 30px 20px;
  }

  .login-right-side {
    min-height: 400px;
  }

  .kalender-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .login-page .page-hero {
    padding: 24px 16px;
  }

  .login-page .page-hero h2 {
    font-size: 22px;
  }

  .login-page .login-box {
    padding: 24px 20px;
  }
}


/* Reusable: high-contrast active/primary toggle buttons (e.g. Tabel|Kartu) */
.sisita-view-toggle .sisita-view-toggle-btn.btn-primary,
.sisita-view-toggle .sisita-view-toggle-btn.active,
.sisita-view-toggle-btn.btn-primary,
.sisita-view-toggle-btn.active {
  color: #fff !important;
  background-color: var(--stdiis-navy-dark) !important;
  border-color: var(--stdiis-navy-dark) !important;
}

.sisita-view-toggle .sisita-view-toggle-btn.btn-primary:hover,
.sisita-view-toggle .sisita-view-toggle-btn.btn-primary:focus,
.sisita-view-toggle .sisita-view-toggle-btn.active:hover,
.sisita-view-toggle .sisita-view-toggle-btn.active:focus,
.sisita-view-toggle-btn.btn-primary:hover,
.sisita-view-toggle-btn.btn-primary:focus,
.sisita-view-toggle-btn.active:hover,
.sisita-view-toggle-btn.active:focus {
  color: #fff !important;
  background-color: var(--stdiis-navy-dark) !important;
  border-color: var(--stdiis-navy-dark) !important;
}

.sisita-view-toggle .sisita-view-toggle-btn.btn-primary .fa,
.sisita-view-toggle .sisita-view-toggle-btn.active .fa,
.sisita-view-toggle-btn.btn-primary .fa,
.sisita-view-toggle-btn.active .fa {
  color: #fff !important;
}

/* Reinforce contrast for primary buttons and active states across theme overrides */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
}

.btn-primary .fa,
.btn-primary .fas,
.btn-primary .far,
.btn-primary .fal,
.btn-primary .fab,
.btn-primary:hover .fa,
.btn-primary:focus .fa {
  color: #fff !important;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff !important;
  background-color: var(--stdiis-navy-dark) !important;
  border-color: var(--stdiis-navy-dark) !important;
}

.daftar-mengajar-desktop {
  display: block;
}

.daftar-mengajar-desktop .teaching-list-table {
  width: 100%;
  table-layout: fixed;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(1),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(1) {
  width: 4% !important;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(2),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(2) {
  width: 19% !important;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(3),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(3) {
  width: 8% !important;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(4),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(4) {
  width: 10% !important;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(5),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(5) {
  width: 11% !important;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(6),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(6) {
  width: 22% !important;
}

.daftar-mengajar-desktop .teaching-list-table th:nth-child(7),
.daftar-mengajar-desktop .teaching-list-table td:nth-child(7) {
  width: 26% !important;
}

.daftar-mengajar-desktop .teaching-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.daftar-mengajar-desktop .teaching-action {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 7px;
  border: 1px solid #d6dfeb;
  border-radius: 6px;
  color: var(--stdiis-navy);
  background: #f8fafd;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
}

.daftar-mengajar-desktop .teaching-action .fa {
  flex: 0 0 14px;
  text-align: center;
}

.daftar-mengajar-desktop .teaching-action-label {
  display: inline;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-transform: capitalize;
}

.daftar-mengajar-desktop .teaching-action:hover,
.daftar-mengajar-desktop .teaching-action:focus {
  border-color: var(--stdiis-navy);
  color: #fff;
  background: var(--stdiis-navy);
  text-decoration: none;
}

.daftar-mengajar-desktop .teaching-action:hover .fa,
.daftar-mengajar-desktop .teaching-action:focus .fa {
  color: #fff;
}

.daftar-mengajar-desktop .teaching-actions .teaching-action {
  width: 100%;
}

.teaching-mobile-cards {
  display: none;
}

@media (max-width: 1199.98px) {
  .daftar-mengajar-desktop {
    display: none !important;
  }

  .teaching-mobile-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .teaching-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 39, 70, 0.09);
  }

  .teaching-card-heading {
    position: relative;
    padding: 16px;
    border-bottom: 0;
    background: linear-gradient(130deg, var(--stdiis-navy-dark), var(--stdiis-navy));
  }

  .teaching-card-course-code {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .teaching-card-heading h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
  }

  .teaching-card-heading h3 a {
    color: #fff;
    text-decoration: none;
  }

  .teaching-card-heading h3 a:focus,
  .teaching-card-heading h3 a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .teaching-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 14px;
  }

  .teaching-card-detail {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #edf1f5;
    border-radius: 9px;
    background: #f7f9fc;
  }

  .teaching-card-detail:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .teaching-card-detail span {
    display: block;
    margin-bottom: 3px;
    color: #687789;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .teaching-card-detail strong {
    display: block;
    color: #24364b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .teaching-card-actions-section {
    padding: 0 14px 14px;
  }

  .teaching-card-actions-section h4 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    color: var(--stdiis-navy);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.035em;
  }

  .teaching-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .teaching-card-actions a {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #dce4ee;
    border-radius: 9px;
    color: var(--stdiis-navy);
    background: #f8fafd;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
  }

  .teaching-card-actions a .fa {
    flex: 0 0 16px;
    color: var(--stdiis-blue);
    font-size: 15px;
    text-align: center;
  }

  .teaching-card-actions a:focus,
  .teaching-card-actions a:hover {
    border-color: var(--stdiis-navy);
    color: #fff;
    background: var(--stdiis-navy);
  }

  .teaching-card-actions a:focus .fa,
  .teaching-card-actions a:hover .fa {
    color: #fff;
  }

  .teaching-cards-empty {
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    color: var(--stdiis-muted);
    background: #fff;
    text-align: center;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .teaching-mobile-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.teaching-history-desktop {
  display: block;
}

.teaching-history-cards {
  display: none;
}

@media (max-width: 767.98px) {
  .teaching-history-desktop {
    display: none !important;
  }

  .teaching-history-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .teaching-history-card {
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 39, 70, 0.08);
  }

  .teaching-history-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(130deg, var(--stdiis-navy-dark), var(--stdiis-navy));
  }

  .teaching-history-card-heading h3 {
    margin: 0;
    color: inherit;
    font-size: 17px;
    font-weight: 700;
  }

  .teaching-history-card-heading span {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
  }

  .teaching-history-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
  }

  .teaching-history-class-count {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--stdiis-ink);
  }

  .teaching-history-class-count strong {
    color: var(--stdiis-navy);
    font-size: 25px;
    line-height: 1;
  }

  .teaching-history-class-count span {
    color: var(--stdiis-muted);
    font-size: 12px;
  }

  .teaching-history-card-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--stdiis-navy);
    border-radius: 8px;
    color: #fff;
    background: var(--stdiis-navy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .teaching-history-card-link:hover,
  .teaching-history-card-link:focus {
    border-color: var(--stdiis-navy-dark);
    color: #fff;
    background: var(--stdiis-navy-dark);
    text-decoration: none;
  }

  .teaching-history-empty {
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    color: var(--stdiis-muted);
    background: #fff;
    text-align: center;
  }
}

.teaching-history-class-desktop {
  display: block;
}

.teaching-history-class-cards {
  display: none;
}

.teaching-history-class-table {
  width: 100%;
  table-layout: fixed;
}

.teaching-history-class-table th:nth-child(1),
.teaching-history-class-table td:nth-child(1) {
  width: 4% !important;
}

.teaching-history-class-table th:nth-child(2),
.teaching-history-class-table td:nth-child(2) {
  width: 28% !important;
}

.teaching-history-class-table th:nth-child(3),
.teaching-history-class-table td:nth-child(3) {
  width: 8% !important;
}

.teaching-history-class-table th:nth-child(4),
.teaching-history-class-table td:nth-child(4) {
  width: 18% !important;
}

.teaching-history-class-table th:nth-child(5),
.teaching-history-class-table td:nth-child(5) {
  width: 15% !important;
}

.teaching-history-class-table th:nth-child(6),
.teaching-history-class-table td:nth-child(6) {
  width: 27% !important;
}

.teaching-history-class-table tbody td {
  padding: 12px 9px;
  vertical-align: top;
}

.teaching-history-course strong {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--stdiis-navy);
  background: #eaf0f8;
  font-size: 11px;
}

.teaching-history-course > span:not(.teaching-history-class-group) {
  display: block;
  color: var(--stdiis-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.teaching-history-class-group {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  color: #52657a;
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 600;
}

.teaching-history-sks {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--stdiis-navy);
  background: #edf3fa;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.teaching-history-manage-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.teaching-history-print-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.teaching-history-action {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  color: var(--stdiis-navy);
  background: #f8fafd;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.teaching-history-action .fa {
  flex: 0 0 14px;
  color: var(--stdiis-blue);
  text-align: center;
}

.teaching-history-action span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.teaching-history-action:hover,
.teaching-history-action:focus {
  border-color: var(--stdiis-navy);
  color: #fff;
  background: var(--stdiis-navy);
  text-decoration: none;
}

.teaching-history-action:hover .fa,
.teaching-history-action:focus .fa {
  color: #fff;
}

.teaching-history-class-empty {
  padding: 16px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  color: var(--stdiis-muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .teaching-history-class-desktop {
    display: none !important;
  }

  .teaching-history-class-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .teaching-history-class-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 39, 70, 0.09);
  }

  .teaching-history-class-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(130deg, var(--stdiis-navy-dark), var(--stdiis-navy));
  }

  .teaching-history-class-card-heading > div {
    min-width: 0;
  }

  .teaching-history-class-code {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
  }

  .teaching-history-class-card-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .teaching-history-class-card-heading .teaching-history-sks {
    flex: 0 0 auto;
    color: var(--stdiis-navy);
    background: #fff;
  }

  .teaching-history-class-card-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f5;
  }

  .teaching-history-class-detail {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
    color: #43566b;
    font-size: 12px;
    font-weight: 600;
  }

  .teaching-history-class-detail .fa {
    flex: 0 0 14px;
    margin-top: 2px;
    color: var(--stdiis-blue);
    text-align: center;
  }

  .teaching-history-class-actions {
    padding: 13px 16px 0;
  }

  .teaching-history-class-actions:last-child {
    padding-bottom: 16px;
  }

  .teaching-history-class-actions h4 {
    margin: 0 0 8px;
    color: var(--stdiis-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .teaching-history-class-actions .teaching-history-manage-link {
    width: 100%;
    min-height: 42px;
  }

  .teaching-history-class-actions .teaching-history-print-actions {
    gap: 8px;
  }

  .teaching-history-class-actions .teaching-history-action {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .teaching-history-class-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mata-kuliah-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #f8fafd;
}

.mata-kuliah-filter .form-group {
  min-width: 0;
  margin: 0;
}

.mata-kuliah-filter label {
  display: block;
  margin-bottom: 5px;
  color: #43566b;
  font-size: 11px;
  font-weight: 700;
}

.mata-kuliah-filter .form-control {
  width: 100%;
  min-height: 38px;
  border-color: #d6dfeb;
  border-radius: 7px;
  font-size: 13px;
}

.mata-kuliah-filter-actions {
  display: flex;
  gap: 7px;
}

.mata-kuliah-filter-actions .btn {
  min-height: 38px;
  white-space: nowrap;
}

.mata-kuliah-desktop {
  display: block;
}

.mata-kuliah-cards {
  display: none;
}

.mata-kuliah-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 7px;
  margin-bottom: 12px;
}

.mata-kuliah-table thead th {
  padding: 11px 9px !important;
  border: 0 !important;
  color: #fff !important;
  background: var(--stdiis-navy) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}

.mata-kuliah-table thead th:first-child {
  border-radius: 7px 0 0 7px;
}

.mata-kuliah-table thead th:last-child {
  border-radius: 0 7px 7px 0;
}

.mata-kuliah-table thead th a {
  color: #fff !important;
  text-decoration: none;
}

.mata-kuliah-table thead th a:hover,
.mata-kuliah-table thead th a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mata-kuliah-table th:nth-child(1),
.mata-kuliah-table td:nth-child(1) { width: 4%; }
.mata-kuliah-table th:nth-child(2),
.mata-kuliah-table td:nth-child(2) { width: 10%; }
.mata-kuliah-table th:nth-child(3),
.mata-kuliah-table td:nth-child(3) { width: 22%; }
.mata-kuliah-table th:nth-child(4),
.mata-kuliah-table td:nth-child(4) { width: 7%; }
.mata-kuliah-table th:nth-child(5),
.mata-kuliah-table td:nth-child(5) { width: 8%; }
.mata-kuliah-table th:nth-child(6),
.mata-kuliah-table td:nth-child(6) { width: 20%; }
.mata-kuliah-table th:nth-child(7),
.mata-kuliah-table td:nth-child(7) { width: 11%; }
.mata-kuliah-table th:nth-child(8),
.mata-kuliah-table td:nth-child(8) { width: 18%; }

.mata-kuliah-table tbody td {
  padding: 11px 9px !important;
  border-top: 1px solid #e8edf3 !important;
  border-bottom: 1px solid #e8edf3 !important;
  color: #34465a;
  font-size: 12px;
  background: #fff !important;
  vertical-align: middle;
  overflow-wrap: break-word;
}

.mata-kuliah-table tbody td:first-child {
  border-left: 1px solid #e8edf3 !important;
  border-radius: 8px 0 0 8px;
}

.mata-kuliah-table tbody td:last-child {
  border-right: 1px solid #e8edf3 !important;
  border-radius: 0 8px 8px 0;
}

.mata-kuliah-table tbody tr:hover td {
  background: #f8fafd !important;
}

.mata-kuliah-code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--stdiis-navy);
  background: #eaf0f8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.mata-kuliah-name-link {
  color: var(--stdiis-navy);
  font-weight: 600;
  text-decoration: none;
}

.mata-kuliah-name-link:hover,
.mata-kuliah-name-link:focus {
  color: var(--stdiis-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mata-kuliah-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.mata-kuliah-action {
  display: inline-flex;
  min-width: 68px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.mata-kuliah-action .fa {
  font-size: 12px;
}

.mata-kuliah-action.btn-info,
.mata-kuliah-action.btn-info:hover,
.mata-kuliah-action.btn-info:focus {
  border-color: var(--stdiis-navy) !important;
  color: #fff !important;
  background: var(--stdiis-navy) !important;
}

.mata-kuliah-action.btn-danger,
.mata-kuliah-action.btn-danger:hover,
.mata-kuliah-action.btn-danger:focus {
  border-color: #c82333 !important;
  color: #fff !important;
  background: #dc3545 !important;
}

.mata-kuliah-action.btn-info .fa,
.mata-kuliah-action.btn-danger .fa {
  color: #fff !important;
}

.mata-kuliah-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mata-kuliah-status-active {
  color: #17613a;
  background: #e6f5eb;
}

.mata-kuliah-status-flagged {
  color: #765600;
  background: #fff3cd;
}

.mata-kuliah-status-inactive {
  color: #596575;
  background: #edf0f3;
}

.mata-kuliah-pagination {
  margin-top: 16px;
}

.mata-kuliah-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.mata-kuliah-empty {
  padding: 18px;
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  color: var(--stdiis-muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .mata-kuliah-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mata-kuliah-filter-search {
    grid-column: 1 / -1;
  }

  .mata-kuliah-desktop {
    display: none !important;
  }

  .mata-kuliah-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .mata-kuliah-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 39, 70, 0.09);
  }

  .mata-kuliah-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(130deg, var(--stdiis-navy-dark), var(--stdiis-navy));
  }

  .mata-kuliah-card-title {
    min-width: 0;
  }

  .mata-kuliah-card-heading .mata-kuliah-code {
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .mata-kuliah-card-heading h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .mata-kuliah-card-heading h3 a {
    color: #fff;
    text-decoration: none;
  }

  .mata-kuliah-card-heading h3 a:hover,
  .mata-kuliah-card-heading h3 a:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mata-kuliah-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 14px;
  }

  .mata-kuliah-card-detail {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #edf1f5;
    border-radius: 9px;
    background: #f7f9fc;
  }

  .mata-kuliah-card-detail span {
    display: block;
    margin-bottom: 4px;
    color: #687789;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mata-kuliah-card-detail strong {
    display: block;
    color: #24364b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .mata-kuliah-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
  }

  .mata-kuliah-card-actions .btn {
    flex: 1 1 0;
    min-width: 68px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 7px;
    font-weight: 600;
  }

  .mata-kuliah-pagination .pagination {
    gap: 2px;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .mata-kuliah-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mata-kuliah-form-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px;
  border: 1px solid #e0e7ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16, 39, 70, 0.07);
}

.mata-kuliah-form-shell > .form-horizontal {
  margin: 0;
}

.mata-kuliah-form-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 17px 19px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(130deg, var(--stdiis-navy-dark), var(--stdiis-navy));
}

.mata-kuliah-form-icon {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 19px;
}

.mata-kuliah-form-intro h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.mata-kuliah-form-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.mata-kuliah-form-section {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #e3eaf1;
  border-radius: 11px;
  background: #fff;
}

.mata-kuliah-form-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid #e8edf3;
  background: #f8fafd;
}

.mata-kuliah-form-section-heading > .fa {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--stdiis-navy);
  background: #e8eff8;
}

.mata-kuliah-form-section-heading h4 {
  margin: 0 0 3px;
  color: var(--stdiis-navy);
  font-size: 14px;
  font-weight: 700;
}

.mata-kuliah-form-section-heading p {
  margin: 0;
  color: #687789;
  font-size: 11px;
}

.mata-kuliah-form-section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 18px;
}

.mata-kuliah-form-section-body > .form-group.row {
  display: block;
  min-width: 0;
  margin: 0;
}

.mata-kuliah-form-section-body > .form-group.row > label,
.mata-kuliah-form-section-body > .form-group.row > div {
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.mata-kuliah-form-section-body .control-label {
  display: block;
  margin-bottom: 6px;
  color: #43566b;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.mata-kuliah-form-section-body .form-control {
  min-height: 41px;
  border-color: #d6dfeb;
  border-radius: 7px;
  color: #26384d;
  font-size: 13px;
  box-shadow: none;
}

.mata-kuliah-form-section-body .form-control:focus {
  border-color: var(--stdiis-navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 96, 0.12);
}

.mata-kuliah-form-section-body .form-control:disabled {
  color: #687789;
  background: #f1f4f7;
  cursor: not-allowed;
}

.mata-kuliah-form-section-body .help-block {
  display: block;
  margin: 5px 0 0;
  color: #718094;
  font-size: 10px;
  line-height: 1.4;
}

.mata-kuliah-delete-notice {
  border-radius: 8px;
}

.mata-kuliah-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 5px;
}

.mata-kuliah-form-confirmation {
  flex: 1 0 100%;
  margin: 0;
  color: #8a2630;
  font-size: 13px;
  font-weight: 600;
}

.mata-kuliah-form-footer > .btn,
.mata-kuliah-form-footer > input.btn {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.mata-kuliah-form-back {
  border: 1px solid #d6dfeb;
  color: #43566b;
  background: #f8fafd;
}

.mata-kuliah-form-back:hover,
.mata-kuliah-form-back:focus {
  border-color: #b7c5d5;
  color: var(--stdiis-navy);
  background: #edf2f7;
}

@media (max-width: 767.98px) {
  .mata-kuliah-form-shell {
    padding: 12px;
    border-radius: 11px;
  }

  .mata-kuliah-form-intro {
    align-items: flex-start;
    margin-bottom: 13px;
    padding: 14px;
  }

  .mata-kuliah-form-intro h3 {
    font-size: 16px;
  }

  .mata-kuliah-form-intro p {
    font-size: 11px;
  }

  .mata-kuliah-form-section {
    margin-bottom: 11px;
  }

  .mata-kuliah-form-section-heading {
    padding: 11px 12px;
  }

  .mata-kuliah-form-section-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .mata-kuliah-form-footer > .btn,
  .mata-kuliah-form-footer > input.btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
}

.grade-entry-view-link,
.grade-entry-reload-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 6px;
  padding: 5px 9px;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  color: var(--stdiis-navy) !important;
  background: #f8fafd;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  vertical-align: middle;
}

.grade-entry-reload-link {
  margin-left: 0;
  padding-right: 6px;
  padding-left: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.grade-entry-view-link:hover,
.grade-entry-view-link:focus,
.grade-entry-reload-link:hover,
.grade-entry-reload-link:focus {
  border-color: var(--stdiis-navy);
  color: #fff !important;
  background: var(--stdiis-navy);
  text-decoration: none !important;
}

.grade-entry-workspace {
  padding: 16px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 39, 70, 0.06);
}

.grade-entry-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.grade-entry-notice > .fa {
  flex: 0 0 16px;
  margin-top: 2px;
}

.grade-entry-notice span {
  margin-left: auto;
  white-space: nowrap;
}

.grade-entry-table-wrap {
  width: 100%;
  margin: 14px 0 0;
  overflow-x: auto !important;
  overflow-y: hidden;
  border-radius: 8px;
  scrollbar-color: #9eafc2 #edf1f5;
  scrollbar-width: thin;
}

.table-responsive.grade-entry-table-wrap {
  overflow-x: auto !important;
}

.grade-entry-table {
  width: 100%;
  min-width: 1180px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 6px;
  table-layout: fixed;
}

.grade-entry-table thead th {
  padding: 11px 8px !important;
  border: 0 !important;
  color: #fff !important;
  background: var(--stdiis-navy) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
}

.grade-entry-table thead th:first-child {
  border-radius: 7px 0 0 7px;
}

.grade-entry-table thead th:last-child {
  border-radius: 0 7px 7px 0;
}

.grade-entry-table thead th:nth-child(1),
.grade-entry-table tbody td:nth-child(1) { width: 4%; }
.grade-entry-table thead th:nth-child(2),
.grade-entry-table tbody td:nth-child(2) { width: 10%; }
.grade-entry-table thead th:nth-child(3),
.grade-entry-table tbody td:nth-child(3) { width: 22%; }
.grade-entry-table thead th:nth-child(4),
.grade-entry-table tbody td:nth-child(4),
.grade-entry-table thead th:nth-child(5),
.grade-entry-table tbody td:nth-child(5),
.grade-entry-table thead th:nth-child(6),
.grade-entry-table tbody td:nth-child(6),
.grade-entry-table thead th:nth-child(7),
.grade-entry-table tbody td:nth-child(7),
.grade-entry-table thead th:nth-child(8),
.grade-entry-table tbody td:nth-child(8) { width: 7%; }
.grade-entry-table thead th:nth-child(9),
.grade-entry-table tbody td:nth-child(9) { width: 10%; }
.grade-entry-table thead th:nth-child(10),
.grade-entry-table tbody td:nth-child(10) { width: 19%; }

.grade-entry-table tbody td {
  padding: 9px 7px !important;
  border-top: 1px solid #e6ecf2 !important;
  border-bottom: 1px solid #e6ecf2 !important;
  color: #34465a;
  background: #fff !important;
  font-size: 11px;
  text-align: center;
  vertical-align: middle;
}

.grade-entry-table tbody tr:not(.grade-entry-toggle-row):not(.grade-entry-tools-row):not(.grade-entry-default-row) td:first-child {
  border-left: 1px solid #e6ecf2 !important;
  border-radius: 8px 0 0 8px;
}

.grade-entry-table tbody tr:not(.grade-entry-toggle-row):not(.grade-entry-tools-row):not(.grade-entry-default-row) td:last-child {
  border-right: 1px solid #e6ecf2 !important;
  border-radius: 0 8px 8px 0;
}

.grade-entry-table tbody tr:not(.grade-entry-toggle-row):hover td {
  background: #f8fafd !important;
}

.grade-entry-number {
  color: #718094 !important;
  font-weight: 700;
}

.grade-entry-nim {
  color: #52657a !important;
  font-family: monospace;
  font-size: 10px !important;
  white-space: nowrap;
}

.grade-entry-student {
  color: #24364b !important;
  font-weight: 600;
  text-align: left !important;
}

.grade-entry-score,
.grade-entry-default-input {
  width: 100%;
  min-width: 54px;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid #d6dfeb;
  border-radius: 6px;
  color: #24364b;
  background: #fff;
  font-size: 12px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.grade-entry-score:disabled,
.grade-entry-default-input:disabled {
  border-color: #e5eaf0;
  color: #748296;
  background: #f3f5f8;
  opacity: 1;
}

.grade-entry-score:not(:disabled) {
  border-color: #8ca5c0;
  background: #fff;
}

.grade-entry-score:focus,
.grade-entry-default-input:focus {
  border-color: var(--stdiis-navy);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(26, 58, 96, 0.12);
}

.grade-entry-total {
  display: inline-flex;
  min-width: 36px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 20px;
  color: #52657a;
  background: #edf2f7;
  font-weight: 700;
}

.grade-entry-final {
  white-space: nowrap;
}

.grade-entry-final-score,
.grade-entry-final-letter {
  display: inline-flex;
  min-width: 30px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 2px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--stdiis-navy);
  background: #eaf0f8;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.grade-entry-final-letter {
  color: #17613a;
  background: #e6f5eb;
}

.grade-entry-toggle-row td {
  border: 0 !important;
  background: #f3f6fa !important;
}

.grade-entry-toggle-row td:first-child {
  border-radius: 8px 0 0 8px;
  color: #43566b;
  text-align: left;
}

.grade-entry-toggle-row td:last-child {
  border-radius: 0 8px 8px 0;
}

.grade-entry-toggle-button {
  width: 100%;
  min-height: 31px;
  padding: 5px 7px;
  border: 1px solid #c8d4e1;
  border-radius: 6px;
  color: var(--stdiis-navy);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.grade-entry-toggle-button:not(:disabled):hover,
.grade-entry-toggle-button:not(:disabled):focus {
  border-color: var(--stdiis-navy);
  color: #fff;
  background: var(--stdiis-navy);
}

.grade-entry-toggle-button:disabled {
  color: #8a96a5;
  background: #e8edf2;
  cursor: not-allowed;
}

.grade-entry-tools-row td {
  padding-top: 13px !important;
  border-top: 2px solid #dce5ef !important;
  color: #52657a !important;
  background: #f8fafd !important;
  font-size: 10px !important;
  font-weight: 700;
}

.grade-entry-tools-row td:first-child {
  border-radius: 8px 0 0 0;
  color: var(--stdiis-navy) !important;
  text-align: left;
}

.grade-entry-tools-row td:last-child {
  border-radius: 0 8px 0 0;
}

.grade-entry-top-link {
  margin-left: 5px;
  color: var(--stdiis-blue);
}

.grade-entry-recalculate,
.grade-entry-default-submit {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.grade-entry-recalculate:disabled,
.grade-entry-default-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.grade-entry-default-row td {
  padding: 8px 6px !important;
  border: 0 !important;
  background: #f8fafd !important;
}

.grade-entry-default-row td:first-child {
  border-radius: 0 0 0 8px;
  text-align: left;
}

.grade-entry-default-row td:last-child {
  border-radius: 0 0 8px 0;
}

.grade-entry-empty {
  padding: 22px !important;
  color: #718094 !important;
  text-align: center !important;
}

.grade-entry-save-status {
  min-height: 22px;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 6px;
}

@media (max-width: 767.98px) {
  .grade-entry-workspace {
    padding: 10px;
  }

  .grade-entry-notice {
    flex-wrap: wrap;
  }

  .grade-entry-notice span {
    flex: 1 0 100%;
    margin-left: 25px;
    white-space: normal;
  }

  .grade-entry-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive.grade-entry-table-wrap {
    overflow-x: auto !important;
  }

  .grade-entry-table-wrap > table.grade-entry-table {
    display: table !important;
    width: 1180px !important;
    min-width: 1180px !important;
    table-layout: fixed !important;
  }

  .grade-entry-table-wrap > table.grade-entry-table > thead {
    display: table-header-group !important;
  }

  .grade-entry-table-wrap > table.grade-entry-table > tbody {
    display: table-row-group !important;
    width: auto !important;
  }

  .grade-entry-table-wrap > table.grade-entry-table > thead > tr,
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr {
    display: table-row !important;
    width: auto !important;
  }

  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th,
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td {
    display: table-cell !important;
    max-width: none !important;
  }

  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(1),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(1) { width: 4% !important; }
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(2),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(2) { width: 10% !important; }
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(3),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(3) { width: 22% !important; }
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(4),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(4),
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(5),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(5),
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(6),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(6),
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(7),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(7),
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(8),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(8) { width: 7% !important; }
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(9),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(9) { width: 10% !important; }
  .grade-entry-table-wrap > table.grade-entry-table > thead > tr > th:nth-child(10),
  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td:nth-child(10) { width: 19% !important; }

  .grade-entry-table-wrap > table.grade-entry-table > tbody > tr > td::before {
    display: none !important;
    content: none !important;
  }
}

.teaching-journal-desktop {
  display: block;
}

.teaching-journal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 7px;
  margin-bottom: 0;
}

.teaching-journal-table thead th {
  padding: 11px 9px !important;
  border: 0 !important;
  color: #fff !important;
  background: var(--stdiis-navy) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  vertical-align: middle;
}

.teaching-journal-table thead th:first-child {
  border-radius: 7px 0 0 7px;
}

.teaching-journal-table thead th:last-child {
  border-radius: 0 7px 7px 0;
}

.teaching-journal-table thead th:nth-child(1),
.teaching-journal-table tbody td:nth-child(1) {
  width: 5%;
}

.teaching-journal-table thead th:nth-child(2),
.teaching-journal-table tbody td:nth-child(2) {
  width: 18%;
}

.teaching-journal-table thead th:nth-child(3),
.teaching-journal-table tbody td:nth-child(3),
.teaching-journal-table thead th:nth-child(4),
.teaching-journal-table tbody td:nth-child(4) {
  width: 19%;
}

.teaching-journal-table thead th:nth-child(5),
.teaching-journal-table tbody td:nth-child(5),
.teaching-journal-table thead th:nth-child(6),
.teaching-journal-table tbody td:nth-child(6) {
  width: 9%;
}

.teaching-journal-table thead th:nth-child(7),
.teaching-journal-table tbody td:nth-child(7) {
  width: 21%;
}

.teaching-journal-table tbody tr:not(.teaching-journal-table-footer) td {
  padding: 11px 9px !important;
  border-top: 1px solid #e8edf3 !important;
  border-bottom: 1px solid #e8edf3 !important;
  background: #fff;
  vertical-align: middle;
}

.teaching-journal-table tbody tr:not(.teaching-journal-table-footer) td:first-child {
  border-left: 1px solid #e8edf3 !important;
  border-radius: 8px 0 0 8px;
}

.teaching-journal-table tbody tr:not(.teaching-journal-table-footer) td:last-child {
  border-right: 1px solid #e8edf3 !important;
  border-radius: 0 8px 8px 0;
}

.teaching-journal-number {
  text-align: center;
}

.teaching-journal-number span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--stdiis-navy);
  background: var(--stdiis-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.teaching-journal-date {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--stdiis-navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.teaching-journal-date .fa-calendar {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--stdiis-blue);
}

.teaching-journal-date .fa-pencil {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--stdiis-muted);
  font-size: 11px;
}

.teaching-journal-topic-cell {
  color: var(--stdiis-ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.teaching-journal-subtopic-cell {
  color: var(--stdiis-muted);
}

.teaching-journal-participants {
  text-align: center;
}

.teaching-journal-participants span {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 16px;
  color: var(--stdiis-navy);
  background: #edf2f8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.teaching-journal-attendance-link a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid #d6dfeb;
  border-radius: 6px;
  color: var(--stdiis-navy);
  background: #f8fafd;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.teaching-journal-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.teaching-journal-table-actions form {
  display: inline-flex !important;
  margin: 0 !important;
}

.teaching-journal-table-actions .btn {
  min-height: 32px;
  padding: 5px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.teaching-journal-table tbody tr.teaching-journal-table-footer td {
  padding: 7px 4px 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.teaching-journal-table-footer .btn {
  margin: 0 4px 4px 0;
}

.teaching-journal-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .teaching-journal-desktop {
    display: none !important;
  }

  .teaching-journal-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .teaching-journal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16, 39, 70, 0.08);
  }

  .teaching-journal-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e8edf3;
    background: #f7f9fc;
  }

  .teaching-journal-meeting {
    display: block;
    color: var(--stdiis-navy);
    font-size: 15px;
    font-weight: 700;
  }

  .teaching-journal-card-heading time {
    display: block;
    margin-top: 3px;
    color: var(--stdiis-muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .teaching-journal-edit {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #d6dfeb;
    border-radius: 7px;
    color: var(--stdiis-navy);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .teaching-journal-topics {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .teaching-journal-topic span,
  .teaching-journal-attendance span {
    display: block;
    margin-bottom: 4px;
    color: var(--stdiis-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .teaching-journal-topic p {
    margin: 0;
    color: var(--stdiis-ink);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }

  .teaching-journal-attendance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 12px;
    padding: 10px;
    border-radius: 7px;
    background: #f5f7fa;
  }

  .teaching-journal-attendance strong {
    color: var(--stdiis-navy);
    font-size: 14px;
  }

  .teaching-journal-attendance > a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #d6dfeb;
    border-radius: 6px;
    color: var(--stdiis-navy);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .teaching-journal-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .teaching-journal-card-actions form {
    display: block !important;
    width: 100%;
    margin: 0 !important;
  }

  .teaching-journal-card-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 7px 8px;
    white-space: normal;
  }

  .teaching-journal-mobile-footer {
    display: grid;
    gap: 10px;
    padding-top: 2px;
  }

  .teaching-journal-mobile-footer #bagian_tambah_mobile > a {
    display: block;
    min-height: 44px;
    padding: 11px 12px;
    text-align: center;
  }

  .teaching-journal-mobile-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .teaching-journal-mobile-menu > a {
    flex: 1 1 140px;
    min-height: 42px;
    margin: 0;
  }

  .teaching-journal-empty {
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    color: var(--stdiis-muted);
    background: #fff;
    text-align: center;
  }
}

.attendance-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.attendance-list-header h3 {
  margin: 0;
  font-size: 19px;
}

.attendance-filter-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.attendance-filter-menu-label {
  color: var(--stdiis-muted);
  font-size: 12px;
  font-weight: 700;
}

.attendance-filter-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.attendance-filter-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #d6dfeb;
  border-radius: 20px;
  color: var(--stdiis-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.attendance-filter-link:hover,
.attendance-filter-link:focus {
  border-color: var(--stdiis-navy);
  color: var(--stdiis-navy);
  background: #f1f5fa;
  text-decoration: none;
}

.attendance-filter-link.is-active,
.attendance-filter-link.is-active:hover,
.attendance-filter-link.is-active:focus {
  border-color: var(--stdiis-navy);
  color: #fff;
  background: var(--stdiis-navy);
}

.attendance-desktop {
  display: block;
}

.attendance-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .attendance-list-header {
    display: block;
  }

  .attendance-list-header h3 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .attendance-filter-menu {
    display: block;
  }

  .attendance-filter-menu-label {
    display: block;
    margin-bottom: 6px;
  }

  .attendance-filter-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .attendance-filter-link {
    min-height: 40px;
    padding: 7px 5px;
    text-align: center;
  }

  .attendance-desktop {
    display: none !important;
  }

  .attendance-mobile {
    display: block;
  }

  .attendance-mobile-save {
    width: 100%;
    min-height: 46px;
    margin-bottom: 12px;
    font-weight: 600;
  }

  .attendance-student-cards {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
  }

  .attendance-student-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16, 39, 70, 0.08);
  }

  .attendance-student-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
  }

  .attendance-student-number {
    display: block;
    margin-bottom: 4px;
    color: var(--stdiis-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .attendance-student-heading h3 {
    margin: 0;
    color: var(--stdiis-navy);
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .attendance-student-nim {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 20px;
    color: var(--stdiis-navy);
    background: var(--stdiis-gold-light);
    font-size: 11px;
    font-weight: 700;
  }

  .attendance-status-toggle {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .attendance-status-toggle legend {
    display: block;
    float: none;
    width: auto;
    margin-bottom: 5px;
    color: var(--stdiis-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .attendance-status-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .attendance-status-options label {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
  }

  .attendance-status-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .attendance-status-options label span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 6px 3px;
    border: 1px solid #d6dfeb;
    border-radius: 6px;
    color: var(--stdiis-navy);
    background: #f8fafd;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .attendance-status-options input:checked + span {
    border-color: var(--stdiis-navy);
    color: #fff;
    background: var(--stdiis-navy);
  }

  .attendance-status-options input:focus + span {
    outline: 2px solid rgba(198, 166, 83, 0.7);
    outline-offset: 2px;
  }

  .attendance-mobile-empty {
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    color: var(--stdiis-muted);
    background: #fff;
    text-align: center;
  }
}

.attendance-desktop .table-responsive {
  overflow-x: hidden;
}

.attendance-desktop table {
  width: 100% !important;
  table-layout: fixed;
}

.attendance-desktop thead th:nth-child(1),
.attendance-desktop tbody td:nth-child(1) {
  width: 5%;
}

.attendance-desktop thead th:nth-child(2),
.attendance-desktop tbody td:nth-child(2) {
  width: 17%;
}

.attendance-desktop thead th:nth-child(3),
.attendance-desktop tbody td:nth-child(3) {
  width: 33%;
  overflow-wrap: anywhere;
}

.attendance-desktop thead th:nth-child(4),
.attendance-desktop tbody td:nth-child(4) {
  width: 45%;
}

.attendance-desktop .attendance-status-toggle {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.attendance-desktop .attendance-status-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.attendance-desktop .attendance-status-options label {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.attendance-desktop .attendance-status-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attendance-desktop .attendance-status-options label span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 2px;
  border: 1px solid #d6dfeb;
  border-radius: 5px;
  color: var(--stdiis-navy);
  background: #f8fafd;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.attendance-desktop .attendance-status-options input:checked + span {
  border-color: var(--stdiis-navy);
  color: #fff;
  background: var(--stdiis-navy);
}

.attendance-desktop .attendance-status-options input:focus + span {
  outline: 2px solid rgba(198, 166, 83, 0.7);
  outline-offset: 1px;
}

.attendance-recap-desktop {
  display: block;
}

.attendance-recap-mobile {
  display: none;
}

.attendance-recap-desktop .table-responsive {
  overflow-x: hidden;
}

.attendance-recap-table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 7px;
  margin-bottom: 4px;
}

.attendance-recap-table thead th {
  padding: 11px 10px !important;
  border: 0 !important;
  color: #fff !important;
  background: var(--stdiis-navy) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.attendance-recap-table thead th:first-child {
  border-radius: 7px 0 0 7px;
}

.attendance-recap-table thead th:last-child {
  border-radius: 0 7px 7px 0;
}

.attendance-recap-table thead th:nth-child(1),
.attendance-recap-table tbody td:nth-child(1) {
  width: 5%;
}

.attendance-recap-table thead th:nth-child(2),
.attendance-recap-table tbody td:nth-child(2) {
  width: 16%;
}

.attendance-recap-table thead th:nth-child(3),
.attendance-recap-table tbody td:nth-child(3) {
  width: 35%;
}

.attendance-recap-table thead th:nth-child(n + 4),
.attendance-recap-table tbody td:nth-child(n + 4) {
  width: 11%;
}

.attendance-recap-table tbody td {
  padding: 10px !important;
  border-top: 1px solid #e8edf3 !important;
  border-bottom: 1px solid #e8edf3 !important;
  background: #fff;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.attendance-recap-table tbody td:first-child {
  border-left: 1px solid #e8edf3 !important;
  border-radius: 8px 0 0 8px;
}

.attendance-recap-table tbody td:last-child {
  border-right: 1px solid #e8edf3 !important;
  border-radius: 0 8px 8px 0;
}

.attendance-recap-number,
.attendance-recap-table tbody td:nth-child(n + 4) {
  text-align: center;
}

.attendance-recap-number span,
.attendance-recap-card-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--stdiis-navy);
  background: var(--stdiis-gold-light);
  font-size: 12px;
  font-weight: 700;
}

.attendance-recap-nim {
  color: var(--stdiis-muted);
  font-size: 12px;
}

.attendance-recap-name {
  color: var(--stdiis-navy);
  font-size: 13px;
  font-weight: 600;
}

.attendance-recap-count {
  display: inline-block;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

.attendance-recap-count-hadir,
.attendance-recap-status-hadir strong {
  color: #17613b;
  background: #e7f4ec;
}

.attendance-recap-count-alpa,
.attendance-recap-status-alpa strong {
  color: #9b2c2c;
  background: #faeaea;
}

.attendance-recap-count-ijin,
.attendance-recap-status-ijin strong {
  color: #825b00;
  background: #fbf2d8;
}

.attendance-recap-count-sakit,
.attendance-recap-status-sakit strong {
  color: #2456a6;
  background: #e9f0fb;
}

.attendance-recap-desktop-footer {
  padding: 4px 0;
}

.attendance-recap-desktop-footer .btn {
  min-height: 38px;
  margin-right: 6px;
}

@media (max-width: 767.98px) {
  .attendance-recap-desktop {
    display: none !important;
  }

  .attendance-recap-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .attendance-recap-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(16, 39, 70, 0.08);
  }

  .attendance-recap-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-bottom: 1px solid #e8edf3;
    background: #f7f9fc;
  }

  .attendance-recap-student {
    min-width: 0;
  }

  .attendance-recap-student h3 {
    margin: 0 0 3px;
    color: var(--stdiis-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .attendance-recap-student > span {
    color: var(--stdiis-muted);
    font-size: 11px;
  }

  .attendance-recap-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .attendance-recap-status {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #edf1f6;
    border-radius: 7px;
    background: #fbfcfe;
  }

  .attendance-recap-status > span {
    color: var(--stdiis-muted);
    font-size: 12px;
    font-weight: 600;
  }

  .attendance-recap-status strong {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 16px;
    font-size: 12px;
  }

  .attendance-recap-mobile-footer {
    padding-top: 2px;
  }

  .attendance-recap-mobile-footer .btn {
    display: block;
    min-height: 44px;
    padding: 11px 12px;
    text-align: center;
  }

  .attendance-recap-empty {
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    color: var(--stdiis-muted);
    background: #fff;
    text-align: center;
  }
}
