@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7fb;
  --primary: #0b3a6a;
  --accent: #f3a712;
  --text: #1b1f24;
  --muted: #5a6775;
  --card: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-line-left {
  display: block;
  text-align: left;
}

.brand-line-center {
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .brand-line-left,
  .brand-line-center {
    display: inline;
    text-align: left;
  }
}

.brand__tag {
  display: block;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Merriweather", "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.main-content {
  padding: 24px 0 8px;
}

.site-footer {
  margin-top: 48px;
  padding: 16px 0 32px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.hero {
  padding: 32px 0 16px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-title {
  display: none;
}

.hero .hero-subtitle {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  font-family: "Merriweather", "Times New Roman", serif;
  color: var(--muted);
  margin: 0 0 12px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 16px 0 32px;
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.08);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9, 30, 66, 0.12);
  border-left-color: #d08b0d;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff3d6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b87400;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.about-card .about-more {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e1e5ee;
}

.about-card .about-more.open {
  display: block;
}

.about-card {
  display: flex;
  flex-direction: column;
}

.about-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.program-list {
  display: grid;
  gap: 16px;
}

.program-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.program-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.program-filter label {
  font-weight: 600;
}

.program-filter select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d7dce5;
  font: inherit;
}

.program-view {
  display: flex;
  gap: 10px;
}

.program-view .btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ai-helper {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px dashed #d7dce5;
  border-radius: 12px;
  padding: 12px;
}

.ai-helper summary {
  cursor: pointer;
  font-weight: 700;
}

.ai-box {
  margin-top: 10px;
}

.ai-box textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d7dce5;
  font: inherit;
}

.program-card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.program-card h3 {
  margin: 0 0 6px;
}

.program-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.program-detail {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08);
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  text-align: center;
  height: 40px;
}

.btn.primary {
  background: var(--accent);
  color: #1d1d1d;
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.page-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e6ef;
  margin-bottom: 16px;
}

.content-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.badge {
  background: #e9eef6;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.badge.ghost {
  background: #f3f6fb;
  color: #5a6775;
}

.badge.new {
  background: #fff1f1;
  color: #ff0000;
  border: 1px solid rgba(255, 0, 0, 0.6);
  margin-left: 8px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: stretch;
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.news-thumb {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #edf1f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-thumb__placeholder {
  color: #9aa5b1;
  font-size: 12px;
}

.news-toolbar {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 20px;
}

.news-toolbar__group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-toolbar select,
.news-toolbar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dce5;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

.news-toolbar__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 768px) {
  .news-toolbar {
    grid-template-columns: 1fr;
  }

  .news-toolbar__actions {
    justify-content: flex-start;
  }
}

.news-body h3 {
  margin: 6px 0;
}

.news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.news-body h3 a {
  color: var(--primary);
  text-decoration: none;
}

.news-body h3 a:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.form-inline input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d7dce5;
  font: inherit;
}

.form-grid label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.span-full {
  grid-column: 1 / -1;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.alert.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.alert.warning {
  background: #fff7e6;
  color: #8a5b00;
}

.alert.danger {
  background: #ffe8ec;
  color: #7a1d2a;
}

.alert.inline {
  padding: 8px 12px;
  font-size: 12px;
  margin: 0 0 12px;
}

.field-error {
  color: #b00020;
  font-size: 12px;
}

.result-card {
  margin-top: 16px;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.08);
}

.info-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-bottom: 24px;
}

.panel {
  background: #fff4db;
  padding: 16px;
  border-radius: 12px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.news-strip {
  margin: 12px 0 32px;
}

.news-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-strip__viewport {
  overflow: hidden;
  position: relative;
  margin-top: 12px;
}

.news-strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: news-scroll 28s linear infinite;
}

.news-strip__viewport:hover .news-strip__track {
  animation-play-state: paused;
}

.news-mini {
  min-width: 300px;
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.08);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  animation: mini-fade 8s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-mini:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(9, 30, 66, 0.14);
}

.news-mini:nth-child(1) { animation-delay: 0s; }
.news-mini:nth-child(2) { animation-delay: 0.6s; }
.news-mini:nth-child(3) { animation-delay: 1.2s; }
.news-mini:nth-child(4) { animation-delay: 1.8s; }
.news-mini:nth-child(5) { animation-delay: 2.4s; }
.news-mini:nth-child(6) { animation-delay: 3s; }
.news-mini:nth-child(7) { animation-delay: 3.6s; }
.news-mini:nth-child(8) { animation-delay: 4.2s; }
.news-mini:nth-child(9) { animation-delay: 4.8s; }
.news-mini:nth-child(10) { animation-delay: 5.4s; }
.news-mini:nth-child(11) { animation-delay: 6s; }
.news-mini:nth-child(12) { animation-delay: 6.6s; }

.news-mini__thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf1f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-mini__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-mini h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.news-mini h4 a {
  color: var(--primary);
  text-decoration: none;
}

.news-mini h4 a:hover {
  text-decoration: underline;
}

@keyframes news-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes mini-fade {
  0% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(0.98); }
}

.muted {
  color: var(--muted);
}

.media-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.12);
  margin-bottom: 16px;
}

.media-video video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.article-content {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08);
}

.article-content .lead {
  font-weight: 600;
  color: var(--text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.06);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6e9f0;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f0f3f9;
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.actions a {
  margin-right: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.admin-action-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e6e9f0;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.admin-action-bar .btn {
  min-width: 148px !important;
  min-height: 44px;
  padding-inline: 18px;
  line-height: 1.15;
}

.admin-action-bar .btn.primary {
  box-shadow: 0 8px 18px rgba(208, 139, 13, 0.18);
}

.admin-action-bar--danger .btn.danger {
  min-width: 168px !important;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.18);
}

.admin-action-bar--triple {
  flex-wrap: nowrap;
}

.admin-action-bar--triple .btn {
  min-width: 176px !important;
}

.admin-action-bar--inline {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-toolbar-equal {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.admin-toolbar-equal__slot {
  display: flex;
  flex: 0 0 220px;
  width: auto;
  min-width: 0;
}

.admin-toolbar-equal__slot .btn {
  width: 100%;
  min-width: 220px;
  min-height: 48px;
  height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  line-height: 1.08;
  text-align: center;
  justify-content: center;
  align-self: stretch;
  gap: 8px;
  overflow: hidden;
  white-space: normal;
}

.admin-toolbar-equal__slot .btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.admin-toolbar-equal__slot .btn-label {
  display: inline-block;
}

.admin-toolbar-equal__slot.primary .btn {
  box-shadow: 0 8px 18px rgba(25, 118, 210, 0.18);
}

.admin-toolbar-equal__slot:not(.primary) .btn {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1100;
}

.admin-confirm-dialog {
  width: min(100%, 460px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 1.4rem;
}

.admin-confirm-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.admin-confirm-body {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.admin-confirm-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.admin-confirm-field input,
.admin-confirm-field select,
.admin-confirm-field textarea {
  width: 100%;
}

.admin-action-link {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-table-actions .btn {
  min-width: 70px !important;
  height: 30px;
  padding: 0 10px;
  font-size: 12px !important;
}

.admin-table-actions .admin-action-link {
  height: 28px;
  min-width: 65px;
}

.admin-compact-button {
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.admin-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  background: #fff5f5;
  color: #dc2626;
  cursor: pointer;
  line-height: 1;
}

.admin-review-panel {
  margin-bottom: 12px;
  border: 2px solid #ffc107;
  border-radius: 8px;
  background: #fff8db;
  padding: 14px;
}

.admin-review-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-review-panel__title {
  color: #856404;
  font-size: 14px;
  font-weight: 700;
}

.admin-review-panel__badge {
  margin-left: auto;
  border-radius: 999px;
  background: #ff9800;
  color: #fff;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.admin-review-panel__list {
  max-height: 120px;
  overflow-y: auto;
  color: #856404;
  font-size: 12px;
}

.admin-review-panel__item {
  margin: 6px 0;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-review-panel__more {
  margin: 8px 0;
  color: #666;
  font-style: italic;
}

.admin-review-panel__footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ffc107;
  color: #666;
  font-size: 12px;
}

.form-actions .btn {
  width: 140px !important;
  text-align: center;
  box-sizing: border-box;
}

.btn.primary,
.btn.ghost {
  border: 2px solid transparent;
}

.btn.primary {
  border-color: #d08b0d;
}

.btn.ghost {
  border-color: var(--primary);
}

.btn-equal {
  min-width: 120px;
  text-align: center;
}

.btn-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.btn-row .btn {
  width: 140px;
  height: 44px;
  line-height: 1;
}

.student-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-auth-actions .btn {
  width: 100% !important;
  min-height: 44px;
  padding-inline: 14px;
  line-height: 1.2;
}

.news-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e1e5ee;
}

@media (min-width: 900px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 0;
  }

  .brand__name {
    font-size: 16px;
    line-height: 1.2;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .site-nav {
    display: none;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 16px;
    padding: 6px 8px;
  }

  .admin-link {
    display: none;
  }

  .hero {
    padding: 20px 0 8px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-title {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    height: 160px;
  }

  .news-mini {
    min-width: 240px;
    grid-template-columns: 60px 1fr;
  }

  .news-mini__thumb {
    width: 60px;
    height: 50px;
  }

  .program-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-view {
    width: 100%;
  }

  .program-view .btn {
    flex: 1;
  }

  .btn-row,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-action-bar {
    justify-content: stretch;
  }

  .admin-action-bar--triple {
    flex-wrap: wrap;
  }

  .btn-row .btn,
  .form-actions .btn {
    width: 100% !important;
  }

  .admin-action-bar .btn {
    min-width: 0 !important;
  }

  .admin-toolbar-equal {
    flex-wrap: wrap;
  }

  .admin-toolbar-equal__slot {
    width: 100%;
    flex: 1 1 100%;
  }

  .admin-toolbar-equal__slot .btn {
    min-width: 0;
  }

  .admin-confirm-actions,
  .admin-table-actions {
    flex-wrap: wrap;
  }

  .admin-review-panel__header {
    flex-wrap: wrap;
  }

  .admin-review-panel__badge {
    margin-left: 0;
  }

  .student-auth-actions {
    grid-template-columns: 1fr;
  }
}

.program-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.program-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;          /* thêm dòng này */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-card .btn {
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 768px) {
  .program-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.list {
  display: grid;
  gap: 16px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.list-item--two-col {
  align-items: flex-start;
}

.list-item__main h3 {
  margin: 0 0 6px;
}

.list-item__main p {
  margin: 0;
}

.list-item__meta {
  min-width: 180px;
  text-align: right;
}

.list-item__meta .badge {
  display: block;
}

.status-pill {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
}

.status-live {
  color: #0b5b2d;
  background: #e7f6ed;
  border: 1px solid rgba(11, 91, 45, 0.2);
}

.status-upcoming {
  color: #8a5b00;
  background: #fff2d9;
  border: 1px solid rgba(243, 167, 18, 0.4);
}

.status-expired {
  color: #7a1d2a;
  background: #ffe8ec;
  border: 1px solid rgba(178, 34, 52, 0.3);
}

@media (max-width: 768px) {
  .list-item--two-col {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item__meta {
    text-align: left;
  }
}

.quick-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #fff7e2, #fff3d6);
  border: 2px solid rgba(243, 167, 18, 0.45);
  border-left: 8px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 24px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08);
  animation: notice-in 420ms ease-out both, notice-glow 2.8s ease-in-out 0.6s infinite;
}

.quick-notice__badge {
  font-weight: 700;
  color: #9c5b00;
  background: #fff1c5;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.quick-notice__content h3 {
  margin: 0 0 6px;
}

.quick-notice__content p {
  margin: 0;
}

@keyframes notice-in {
  0% { opacity: 0; transform: translateY(6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notice-glow {
  0% { box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08); border-color: rgba(243, 167, 18, 0.45); }
  50% { box-shadow: 0 12px 26px rgba(243, 167, 18, 0.22); border-color: rgba(243, 167, 18, 0.75); }
  100% { box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08); border-color: rgba(243, 167, 18, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .quick-notice {
    animation: none;
  }
}

@media (max-width: 768px) {
  .quick-notice {
    grid-template-columns: 1fr;
  }
}

.tabs {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.tab-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn {
  border: 1px solid #d7dce5;
  background: #f6f8fc;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.danger {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.btn.danger:hover {
  background: #bb2d3b;
  border-color: #bb2d3b;
}

.tab-panel {
  display: none;
  animation: tab-fade 240ms ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-scroll {
  overflow-x: auto;
}

.data-table input[type="number"] {
  width: 56px;
  padding: 4px 6px;
  font-size: 12px;
}

.grade-table th,
.grade-table td {
  white-space: nowrap;
}

.grade-table .col-stt { width: 50px; text-align: center; }
.grade-table .col-code { width: 90px; }
.grade-table .col-name { min-width: 180px; }
.grade-table .col-birth { width: 110px; }

.grade-table {
  width: 100%;
  font-size: 12px;
  table-layout: auto;
}

.grade-table th {
  white-space: normal;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.grade-table td {
  padding: 6px 6px;
}

.grade-table .col-name { min-width: 160px; }
.grade-table .col-code { min-width: 80px; }
.grade-table .col-birth { min-width: 95px; }

.divider {
  height: 1px;
  background: #e7ebf2;
  margin: 16px 0;
}


.admin-students .btn {
    min-width: 140px;
}

.admin-students .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}



.admin-students .form-actions.buttons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-students .form-actions.buttons-row .btn {
    min-width: 170px;
    text-align: center;
}

.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-scroll--panel {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
}

.data-table--grid {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
}

.data-table--grid th,
.data-table--grid td {
  padding: 6px 10px;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  background-color: #fff;
  background-clip: padding-box;
}

.data-table--sticky thead th {
  position: -webkit-sticky;
  position: sticky !important;
  top: 0 !important;
  background-color: #f8f9fa !important;
  z-index: 40 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-clip: padding-box;
  border-top: 1px solid #dee2e6;
}

.student-transcript__header {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.student-transcript__info h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.student-transcript__row {
  display: flex;
  gap: 1rem;
  margin-bottom: -2px;
  line-height: 0.8;
}

.student-transcript__label {
  min-width: 100px;
  font-weight: 700;
  color: #666;
}

.student-transcript__section-title {
  margin: 1.2rem 0 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.student-transcript__term {
  margin-bottom: 1.2rem;
}

.student-transcript__term-header {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.student-transcript__semester-title {
  margin: 0;
  color: #0056b3;
  font-size: 1.7rem;
  font-weight: 700;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.student-transcript__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
}

.student-transcript__table th,
.student-transcript__table td {
  border: 1px solid #ddd;
  padding: 2px 8px;
  line-height: 1.2;
  text-align: left;
}

.student-transcript__table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.student-transcript__warning-row {
  background: #fff8f0;
}

.student-transcript__warning-badge {
  margin-left: 6px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
}

.student-transcript__course-class {
  font-size: 12px;
  color: #555;
}

.student-transcript__actions {
  justify-content: center;
  text-align: center;
  padding: 2px 4px !important;
}

.grade-pass {
  color: green;
  font-weight: 700;
}

.grade-fail {
  color: red;
  font-weight: 700;
}

@media (max-width: 768px) {
  .student-transcript__header {
    flex-direction: column;
    gap: 1rem;
  }

  .student-transcript__row {
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }

  .student-transcript__label {
    min-width: 0;
  }
}

.inline-form-error {
  min-height: 1rem;
  display: block;
  color: #b42318;
  font-size: 0.82rem;
}

.assignment-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.assignment-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.assignment-card h2,
.assignment-card h3 {
  margin-top: 0;
}

.assignment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.assignment-heading p {
  margin: 0;
  color: #6b7280;
}

.assignment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.assignment-summary-card {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.assignment-summary-card strong {
  display: block;
  font-size: 1.4rem;
  color: #1d4ed8;
}

.assignment-summary-card span {
  display: block;
  margin-top: 0.2rem;
  color: #475569;
  font-size: 13px;
}

.assignment-tabs {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.assignment-tab {
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  min-width: 180px;
  font-weight: 600;
  cursor: pointer;
}

.assignment-tab.active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18);
}

.assignment-tab-panels {
  margin-top: 0.25rem;
}

.assignment-tab-panel {
  display: none;
}

.assignment-tab-panel.active {
  display: block;
}

.assignment-panel-card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.assignment-panel-card h3,
.assignment-list h3 {
  margin-bottom: 0.5rem;
}

.assignment-note {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 13px;
}

.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assignment-list--spaced {
  margin-top: 1rem;
}

.assignment-alert--spaced-top {
  margin-top: 1rem;
}

.assignment-alert--spaced-bottom {
  margin-bottom: 1rem;
}

.assignment-table-scroll {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.assignment-data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

.assignment-data-table th,
.assignment-data-table td {
  padding: 8px 12px;
  line-height: 1.3;
  border: 1px solid #dee2e6;
}

.assignment-data-table th {
  background: #f8fafc;
  white-space: nowrap;
}

.assignment-form-grid {
  gap: 0.5rem 0.75rem;
}

.assignment-checklist {
  position: relative;
}

.assignment-checklist__toggle {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  min-height: 36px;
  padding: 7px 10px;
  cursor: pointer;
  color: #111827;
}

.assignment-checklist__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.assignment-checklist__caret {
  flex: 0 0 auto;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.assignment-checklist.open .assignment-checklist__caret {
  transform: rotate(180deg);
}

.assignment-checklist__panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow: auto;
  display: none;
  padding: 8px;
}

.assignment-checklist.open .assignment-checklist__panel {
  display: block;
}

.assignment-panel-card .assignment-form-grid label.assignment-checklist__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  width: 100%;
  text-align: left;
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}

.assignment-panel-card .assignment-form-grid label.assignment-checklist__item input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.assignment-panel-card .assignment-form-grid label.assignment-checklist__item span {
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.35;
}

.assignment-panel-card .assignment-form-grid label.assignment-all-scope {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.assignment-panel-card .assignment-form-grid label.assignment-all-scope input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  padding: 0;
}

.team-availability-page .team-availability-card {
  max-width: 600px;
  margin: 0 auto;
}

.team-availability-page .team-availability-form {
  width: 100%;
}

.team-availability-page .team-availability-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.team-availability-page .slot-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  min-height: 38px;
}

.team-availability-page .team-availability-actions {
  margin-top: 16px;
  justify-content: center;
}

.team-availability-page .team-availability-submit {
  width: 100%;
  max-width: 320px;
}

.team-availability-page .team-availability-dashboard {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.team-availability-page .team-availability-panel {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.team-availability-page .team-availability-panel h3 {
  margin-top: 0;
}

.team-availability-page .team-availability-best {
  padding: 12px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  margin-bottom: 10px;
}

.team-availability-page .team-availability-best-members {
  margin-top: 6px;
}

.team-availability-page .team-availability-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-availability-page .team-availability-member {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.team-availability-page .team-availability-member-slots {
  margin-top: 4px;
}

.team-availability-page .team-availability-hint {
  display: block;
  margin-top: 8px;
}

.team-availability-page .team-availability-table-card {
  overflow-x: auto;
}

.team-availability-page .team-availability-table-wrap {
  overflow-x: auto;
}

.team-availability-page .team-availability-table {
  min-width: 420px;
}

@media (max-width: 900px) {
  .assignment-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.grade-edit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.grade-edit-summary-card {
  padding: 0.9rem 1.1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.grade-edit-summary-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.grade-edit-summary-meta {
  margin: 0;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
}

.grade-edit-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.grade-edit-status-badge--locked,
.grade-edit-status-badge--rejected {
  background: #fdecea;
  color: #b42318;
}

.grade-edit-status-badge--open,
.grade-edit-status-badge--approved {
  background: #ecfdf3;
  color: #027a48;
}

.grade-edit-status-badge--submitted {
  background: #fff4e5;
  color: #b54708;
}

.grade-edit-status-badge--draft {
  background: #eef2ff;
  color: #3730a3;
}

.grade-edit-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.grade-edit-workflow-form {
  display: grid;
  gap: 0.45rem;
  max-width: 360px;
}

.grade-edit-workflow-form label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #333;
}

.grade-edit-workflow-form input {
  width: 100%;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0 8px;
}

.grade-edit-warning-note {
  display: block;
  margin-top: 4px;
  color: #ff9800;
  font-size: 11px;
}

.grade-edit-input-warning {
  border: 2px solid #ffc107 !important;
}

.grade-edit-panels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.grade-edit-panel-card {
  padding: 0.75rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.grade-edit-panel-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.grade-edit-panel-card .form-card {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.grade-edit-config-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  margin-bottom: 0;
}

.grade-edit-config-grid > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grade-edit-config-grid label {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.grade-edit-config-grid input,
.grade-edit-config-grid select {
  height: 32px;
  padding: 4px 8px;
  width: auto;
  min-width: 65px;
  margin-bottom: 0;
}

.grade-edit-config-cell--divided {
  border-right: 1px solid #eee;
  padding-right: 15px;
}

.grade-edit-config-cell--offset {
  margin-left: 10px;
}

.grade-edit-inline-actions {
  margin-top: 0 !important;
  margin-left: auto;
}

.grade-edit-inline-actions .btn {
  min-width: 120px !important;
  min-height: 32px;
  height: 32px;
  padding: 0 15px;
}

.grade-edit-sync-form {
  margin-top: 0.75rem;
}

.grade-edit-help-text {
  display: block;
  color: #6b7280;
}

.grade-entry-wrapper.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
}

.grade-entry-wrapper.fullscreen form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.grade-entry-wrapper .table-scroll {
  max-height: 65vh;
  overflow: auto;
  border: 1px solid #ddd;
  position: relative;
}

.grade-entry-wrapper.fullscreen .table-scroll {
  flex: 1;
  max-height: none !important;
  margin-bottom: 10px;
}

.grade-table {
  font-size: 14px;
  border-collapse: separate !important;
  border-spacing: 0;
  min-width: 100%;
  width: 100%;
}

.grade-table th,
.grade-table td {
  padding: 6px 4px;
  vertical-align: middle;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  box-sizing: border-box;
  background-color: #fff;
}

.grade-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background-color: #f8f9fa;
  font-weight: 600;
  height: 45px;
  border-top: 1px solid #dee2e6;
  box-shadow: inset 0 -1px 0 #dee2e6;
  transform: translateZ(0);
}

.grade-table input[type="number"] {
  width: 90%;
  padding: 2px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.grade-table tbody tr:hover td {
  background-color: #f0f7ff !important;
}

.grade-table tr:focus-within td {
  background-color: #e8f0fe !important;
}

.grade-table td:not(.col-name) {
  text-align: center;
}

.score-low {
  color: red !important;
  font-weight: 700;
  border-color: red !important;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.score-tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 10000;
  pointer-events: none;
  display: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.score-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.grade-edit-audit-table {
  width: 100%;
  border-collapse: collapse;
}

.grade-edit-audit-table th,
.grade-edit-audit-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.45rem 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}

.grade-edit-audit-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.grade-edit-audit-action--lock {
  color: #b42318;
  font-weight: 700;
}

.grade-edit-audit-action--unlock {
  color: #027a48;
  font-weight: 700;
}

.grade-edit-audit-table--flush {
  margin: 0;
}

.grade-edit-collapsible {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  margin-top: 0.8rem;
}

.grade-edit-collapsible summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 700;
  list-style: none;
  border-bottom: 1px solid transparent;
}

.grade-edit-collapsible[open] summary {
  border-bottom-color: #e5e7eb;
}

.grade-edit-collapsible__content {
  padding: 0.8rem 1rem 1rem;
}

.grade-edit-collapsible--audit {
  margin-top: 2rem;
}

.grade-edit-collapsible--audit summary {
  user-select: none;
  padding: 10px 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grade-edit-collapsible--audit[open] summary {
  border-bottom-color: #ddd;
}

.grade-edit-audit-shell {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow-x: auto;
  padding: 0;
}

.grade-edit-audit-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.grade-edit-audit-count {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
  color: #888;
}

.grade-edit-completion-box {
  border-radius: 4px;
  padding: 12px 15px;
}

.grade-edit-completion-box--warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
}

.grade-edit-completion-box--success {
  background: #d4edda;
  border: 1px solid #28a745;
  padding: 10px 15px;
  font-size: 13px;
  color: #155724;
}

.grade-edit-completion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.grade-edit-completion-title {
  color: #856404;
  font-size: 14px;
}

.grade-edit-completion-badge {
  margin-left: auto;
  background: #ff9800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.grade-edit-completion-list {
  color: #856404;
  font-size: 13px;
  margin-top: 8px;
}

.grade-edit-completion-item {
  margin: 4px 0;
}

.grade-edit-completion-more {
  margin: 4px 0;
  font-style: italic;
}

.grade-entry-toolbar-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.grade-entry-change-reason {
  min-width: 320px;
}

.grade-entry-hidden-form {
  display: none;
}

@media (max-width: 900px) {
  .grade-edit-summary-grid {
    grid-template-columns: 1fr;
  }

  .grade-edit-workflow-form {
    max-width: 100%;
  }

  .grade-edit-panel-card .form-card,
  .grade-edit-config-grid {
    flex-direction: column !important;
    align-items: stretch;
  }

  .grade-edit-config-grid > div {
    width: 100%;
  }

  .grade-edit-config-cell--divided {
    border-right: 0;
    padding-right: 0;
  }

  .grade-edit-config-cell--offset {
    margin-left: 0;
  }

  .grade-edit-inline-actions {
    margin-left: 0;
    width: 100%;
  }

  .grade-edit-inline-actions .btn {
    width: 100%;
  }

  .grade-edit-completion-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
    .form-card { padding: 8px !important; }
    .dashboard-grid-responsive { grid-template-columns: 1fr !important; gap: 8px !important; }
    .slot-grid-responsive { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
    .card { padding: 8px !important; border-radius: 8px !important; }
    .form-actions.admin-action-bar { flex-direction: column !important; gap: 8px !important; }
    .data-table { font-size: 13px !important; }
    .team-availability-page .team-availability-card { max-width: 100%; }
    .team-availability-page .team-availability-slots-grid { grid-template-columns: 1fr !important; }
    .team-availability-page .team-availability-submit { max-width: 100%; }
    .team-availability-page .team-availability-panel { padding: 10px; }
    .team-availability-page .team-availability-member { padding: 10px; }
    .team-availability-page .team-availability-best { padding: 10px; }
    .team-availability-page .team-availability-table { min-width: 360px; }
}

@media (max-width: 420px) {
  .team-availability-page .slot-chip {
    font-size: 14px;
  }

  .team-availability-page .team-availability-table {
    min-width: 320px;
  }
}
