:root{
  --ssm-red:#b91c1c;
  --ssm-red2:#ef4444;
  --ssm-bg:#fff;
  --ssm-border:#e5e7eb;
  --ssm-text:#111827;
  --ssm-muted:#6b7280;

  --ssm-ok:#047857;
  --ssm-ok-bg:#ecfdf5;
  --ssm-ok-border:#bbf7d0;

  --ssm-warn:#92400e;
  --ssm-warn-bg:#fffbeb;
  --ssm-warn-border:#fde68a;

  --ssm-info:#1d4ed8;
  --ssm-info-bg:#eff6ff;
  --ssm-info-border:#bfdbfe;

  --ssm-soft-red-bg:#fff7f7;
  --ssm-soft-red-border:#f3d6d6;

  /* FIX lệch CBGV (kéo thêm sang trái nhẹ) */
  --ssm-cbgv-shift:-130%;
  /* DÙNG CHO WRAPPER CB/GV (giữ pixel dịch trái ổn định) */
  --ssm-auth-teacher-width:520px;
}

.ssm-wrap{max-width:1100px;margin:0 auto;padding:16px}
.ssm-page-title{font-size:22px;font-weight:800;color:var(--ssm-red);margin:6px 0 14px}
.ssm-card{
  background:var(--ssm-bg);
  border:1px solid var(--ssm-border);
  border-radius:14px;
  padding:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  margin:12px 0;
}

/* =========================
   LOGIN CARD: THU NHỎ + VIỀN ĐỎ (CHỈ ÁP DỤNG KHI CÓ class ssm-card--auth)
========================= */
.ssm-card.ssm-card--auth{
  max-width:420px !important;
  width:calc(100% - 28px) !important;
  margin:26px auto !important;
  padding:18px 18px 16px !important;
  border:2px solid var(--ssm-red) !important;
  border-radius:14px;

  display:block !important;
  float:none !important;
  align-self:center !important;
  justify-self:center !important;
  text-align:left !important;
}
.ssm-card.ssm-card--auth .ssm-card__title{
  font-size:18px;
  text-align:center;
  margin-bottom:12px;
}
.ssm-card.ssm-card--auth .ssm-form input,
.ssm-card.ssm-card--auth .ssm-form select{
  padding:9px 12px;
}
.ssm-card.ssm-card--auth .ssm-btn--primary{
  min-width:160px;
  display:block;
  margin:14px auto 0;
}
/* ========================= */

/* =========================
   FIX LỆCH FORM LOGIN CB/GV
========================= */
.cbgv-login-page{
  width:100%;
  max-width:1100px;
  margin:0 auto !important;
  padding:0 !important;
}
.cbgv-login-outer{
  width:100%;
  max-width:1100px;
  margin:0 auto !important;
  padding:26px 0 !important;
  display:flex !important;
  justify-content:center !important;
  align-items:flex-start !important;
}
.cbgv-login-box{
  width:var(--ssm-auth-teacher-width) !important;
  flex:0 0 var(--ssm-auth-teacher-width) !important;
  display:flex !important;
  justify-content:center !important;
  align-items:flex-start !important;
  transform:translateX(var(--ssm-cbgv-shift)) !important;
}
@media (max-width:640px){
  .cbgv-login-outer{padding:16px 0 !important;}
  .cbgv-login-box{transform:none !important;}
}
/* ========================= */

/* =========================================================
   DASHBOARD CB/GV - NHẬP ĐIỂM / THÊM TÀI LIỆU
   Scope theo form action để không ảnh hưởng shortcode sinh viên
========================================================= */

/* Card nhập điểm CB/GV */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) {
  padding: 18px 20px;
  border-radius: 16px;
  border-color: #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

/* Form chọn lớp học phần */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-form {
  display: block;
  margin-bottom: 18px;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-form label,
.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) .ssm-form label {
  display: block;
  margin: 0 0 8px;
  color: #111827 !important;
  font-size: 15px;
  font-weight: 800;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) select,
.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) select {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: #111827 !important;
  border: 1px solid #d1d5db;
  background: #fff;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) select:focus,
.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) select:focus {
  border-color: var(--ssm-red2);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

/* Khung bảng nhập điểm */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table-wrap {
  margin-top: 16px;
  border: 1px solid #ead1d4;
  border-radius: 14px;
  background: #fff;
  overflow: auto;
}

/* Bảng nhập điểm CB/GV */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table {
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}

/* Header bảng */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th {
  background: #fff1f2;
  color: #7f1d1d !important;
  -webkit-text-fill-color: #7f1d1d !important;
  padding: 14px 12px;
  border-bottom: 1px solid #ead1d4;
  text-align: center;
  vertical-align: middle;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 900;
  white-space: normal;
  text-transform: uppercase;
}

/* Body bảng */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0f2;
  text-align: center;
  vertical-align: middle;
  line-height: 1.35;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: #fff;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table tbody tr:hover td {
  background: #fff7f7;
}

/* Cột MSSV */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(1),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(1) {
  width: 82px;
  min-width: 82px;
  text-align: left;
  padding-left: 18px;
  font-weight: 800;
}

/* Cột họ tên */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(2),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(2) {
  width: 150px;
  min-width: 150px;
  text-align: left;
  word-break: break-word;
}

/* Cột nhập điểm */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(3),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(4),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(5),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(6),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(8),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(9),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(3),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(4),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(5),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(6),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(8),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(9) {
  width: 108px;
  min-width: 108px;
}

/* Cột kết quả tự tính */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(7),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(7),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(10),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(10) {
  width: 110px;
  min-width: 110px;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(11),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(11),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(12),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(12),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th:nth-child(13),
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td:nth-child(13) {
  width: 92px;
  min-width: 92px;
}

/* Input điểm */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-inp {
  width: 78px;
  height: 38px;
  max-width: 78px;
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  text-align: center;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-inp:focus {
  border-color: var(--ssm-red2);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
  outline: none;
}

/* Nút lưu điểm */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-btn--primary {
  margin-top: 14px;
  min-height: 46px;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 900;
  background: var(--ssm-red);
  color: #fff !important;
}

/* Card thêm tài liệu CB/GV */
.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) {
  padding: 18px 20px;
  border-radius: 16px;
  border-color: #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) input[type="text"],
.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) input[type="url"] {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) input[type="text"]:focus,
.ssm-card:has(input[name="ssm_front_action"][value="teacher_add_material"]) input[type="url"]:focus {
  border-color: var(--ssm-red2);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
  outline: none;
}

@media (max-width: 768px) {
  .ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) {
    padding: 14px;
  }

  .ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table {
    min-width: 1180px;
  }

  .ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table th,
  .ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .ssm-card:has(input[name="ssm_front_action"][value="teacher_save_grades"]) .ssm-inp {
    width: 70px;
    max-width: 70px;
    height: 36px;
  }
}

.ssm-card__title{font-size:16px;font-weight:800;color:var(--ssm-text);margin-bottom:10px}
.ssm-form label{display:block;font-weight:700;margin:10px 0 6px;color:var(--ssm-text)}
.ssm-form input,
.ssm-form select{
  width:100%;
  border:1px solid var(--ssm-border);
  border-radius:10px;
  padding:10px 12px;
  outline:none;
}
.ssm-form input:focus,
.ssm-form select:focus{
  border-color:var(--ssm-red2);
  box-shadow:0 0 0 3px rgba(239,68,68,.15);
}
.ssm-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ssm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid transparent;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}
.ssm-btn--primary{background:var(--ssm-red);color:#fff}
.ssm-btn--primary:hover{filter:brightness(1.05)}
.ssm-btn--danger{background:#7f1d1d;color:#fff}
.ssm-btn--ghost{background:#fff;border-color:var(--ssm-border);color:var(--ssm-text)}
.ssm-link{color:var(--ssm-red);font-weight:800;text-decoration:none}
.ssm-link:hover{text-decoration:underline}

.ssm-alert{
  border-radius:12px;
  padding:10px 12px;
  border:1px solid var(--ssm-border);
  margin:10px 0;
}
.ssm-alert--ok{background:#f0fdf4;border-color:#bbf7d0}
.ssm-alert--warn{background:#fffbeb;border-color:#fde68a}
.ssm-alert--danger{background:#fef2f2;border-color:#fecaca}

.ssm-table-wrap{
  overflow:auto;
  border:1px solid var(--ssm-border);
  border-radius:12px;
  background:#fff;
}
.ssm-table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}
.ssm-table th{
  background:#fff5f5;
  color:#7f1d1d;
  text-align:left;
  padding:10px;
  border-bottom:1px solid var(--ssm-border);
  font-weight:900;
}
.ssm-table td{
  padding:10px;
  border-bottom:1px solid var(--ssm-border);
  vertical-align:top;
}
.ssm-inp{
  width:80px;
  max-width:100%;
  padding:6px 8px;
  border:1px solid var(--ssm-border);
  border-radius:10px;
}
.ssm-muted{color:var(--ssm-muted);font-weight:700}

.ssm-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ssm-kv > div{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:12px;
  padding:10px 12px;
  line-height:1.5;
}

.ssm-kpi{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}
.ssm-kpi__item{
  background:#fff5f5;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:8px 10px;
  color:#7f1d1d;
  font-weight:800;
}

/* =========================================================
   CTDT / PROGRESS BLOCKS - GIAI ĐOẠN 2
========================================================= */
.ssm-card--ctdt-info,
.ssm-card--ctdt-progress{
  border-radius:16px;
}

.ssm-card--ctdt-info .ssm-card__title,
.ssm-card--ctdt-progress .ssm-card__title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.ssm-card--ctdt-info .ssm-kv > div,
.ssm-card--ctdt-progress .ssm-kv > div{
  background:linear-gradient(180deg,#fff 0%,#fffafa 100%);
  border:1px solid #f3dede;
}

.ssm-ctdt-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1;
  border:1px solid transparent;
  white-space:nowrap;
}

.ssm-ctdt-badge--info{
  background:var(--ssm-info-bg);
  border-color:var(--ssm-info-border);
  color:var(--ssm-info) !important;
}

.ssm-ctdt-badge--warn{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b !important;
}

.ssm-ctdt-badge--ok{
  background:var(--ssm-ok-bg);
  border-color:var(--ssm-ok-border);
  color:var(--ssm-ok) !important;
}

.ssm-ctdt-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.ssm-ctdt-progress-note{
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--ssm-soft-red-border);
  background:var(--ssm-soft-red-bg);
}

.ssm-ctdt-progress-note--warn{
  background:var(--ssm-warn-bg);
  border-color:var(--ssm-warn-border);
}

.ssm-ctdt-progress-note--ok{
  background:var(--ssm-ok-bg);
  border-color:var(--ssm-ok-border);
}

.ssm-ctdt-progress-note--info{
  background:var(--ssm-info-bg);
  border-color:var(--ssm-info-border);
}

.ssm-ctdt-missing-wrap{
  margin-top:14px;
}

.ssm-ctdt-missing-table{
  min-width:760px;
}

.ssm-ctdt-missing-table thead th{
  background:#fff6f6;
  border-bottom:1px solid #f0d6d6;
}

.ssm-ctdt-missing-table tbody td{
  background:#fff;
}

.ssm-ctdt-missing-table tbody tr:nth-child(even) td{
  background:#fcfcfc;
}

.ssm-progress-ring{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  min-height:72px;
  border-radius:999px;
  border:6px solid #fde2e2;
  background:#fff;
  color:#7f1d1d !important;
  font-weight:900;
  font-size:16px;
  box-shadow:0 6px 16px rgba(0,0,0,.04);
}

.ssm-progress-summary{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 14px;
}

/* =========================================================
   MODAL
========================================================= */
.ssm-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  padding:24px;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.ssm-modal.is-open{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.ssm-modal__backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.52);
}
.ssm-modal__dialog{
  position:relative;
  z-index:1;
  max-width:920px;
  width:100%;
  margin:32px auto;
  background:#fff;
  border-radius:18px;
  border:1px solid var(--ssm-border);
  overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
}
.ssm-modal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px 18px;
  background:linear-gradient(180deg,#fff7f7 0%,#fff3f3 100%);
  border-bottom:1px solid #f3d6d6;
}
.ssm-modal__title{
  font-weight:900;
  color:#7f1d1d;
  font-size:18px;
  line-height:1.35;
}
.ssm-modal__body{
  padding:18px;
  max-height:calc(100vh - 180px);
  overflow:auto;
}

/* scroll lock khi modal mở */
html.ssm-modal-open,
body.ssm-modal-open{
  overflow:hidden !important;
}

/* =========================================================
   FIX NỀN / DẢI ĐEN
========================================================= */
html,body{background:#ffffff !important;}
body,.site,#page{margin-top:0 !important;padding-top:0 !important;}

/* =========================================================
   SSM FIX: chữ bị "ẩn" do theme override
========================================================= */
.ssm-wrap,
.ssm-wrap p,
.ssm-wrap div,
.ssm-wrap span,
.ssm-wrap li,
.ssm-wrap td,
.ssm-wrap th,
.ssm-wrap label{
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
}

/* giữ màu riêng */
.ssm-page-title,
.ssm-card__title,
.ssm-muted,
.ssm-link,
.ssm-table th,
.ssm-kpi__item,
.ssm-modal__title,
.ssm-grade-kpi__label,
.ssm-grade-kpi__value,
.ssm-grade-subject__meta,
.ssm-grade-empty,
.ssm-grade-badge,
.ssm-tkb-range-label,
.ssm-tkb-range,
.ssm-tkb-day__dow,
.ssm-tkb-day__date,
.ssm-tkb-badge,
.ssm-tkb-session__title,
.ssm-tkb-session__count,
.ssm-tkb-chip,
.ssm-tkb-empty,
.ssm-tkb-empty__icon,
.ssm-tkb-empty__text,
.ssm-grade-summary-table th,
.ssm-grade-summary-table td,
.ssm-grade-summary-title,
.ssm-grade-summary-note,
.ssm-ctdt-badge,
.ssm-progress-ring{
  -webkit-text-fill-color:inherit !important;
}

/* Input / textarea / select */
.ssm-form input,
.ssm-form textarea,
.ssm-form select{
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
}

/* Placeholder */
.ssm-form input::placeholder,
.ssm-form textarea::placeholder{
  color:#6b7280 !important;
  opacity:1 !important;
}

/* Alert */
.ssm-alert,
.ssm-alert *{
  -webkit-text-fill-color:inherit !important;
}
.ssm-alert{color:#111 !important;}
.ssm-alert--danger{color:#b91c1c !important;}
.ssm-alert--danger *{color:inherit !important;}
.ssm-alert--ok{color:#065f46 !important;}
.ssm-alert--ok *{color:inherit !important;}
.ssm-alert--warn{color:#92400e !important;}
.ssm-alert--warn *{color:inherit !important;}

/* Không phá màu nút */
.ssm-btn,
.ssm-btn *{
  -webkit-text-fill-color:inherit !important;
}

/* SSM honeypot */
.ssm-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* =========================================================
   STUDENT COURSES / MATERIALS - NEW UI
========================================================= */
.ssm-courses-page{
  max-width:1180px;
}

.ssm-course-card{
  border-radius:18px;
  overflow:hidden;
  padding:0;
}

.ssm-course-card .ssm-card__title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0;
  padding:16px 18px;
  background:linear-gradient(180deg,#fff,#fff8f8);
  border-bottom:1px solid #f4d9d9;
  font-size:18px;
  font-weight:900;
}

.ssm-course-card .ssm-table-wrap{
  border:none;
  border-radius:0 0 18px 18px;
  background:#fff;
}

.ssm-course-table{
  min-width:860px;
  border-collapse:separate;
  border-spacing:0;
}

.ssm-course-table thead th{
  padding:14px 18px;
  background:#fff6f6;
  border-bottom:1px solid #f0d6d6;
  color:#7f1d1d !important;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  text-transform:none;
  vertical-align:middle;
}

.ssm-course-table tbody td{
  padding:16px 18px;
  border-bottom:1px solid #eef2f7;
  vertical-align:middle;
  background:#fff;
  line-height:1.5;
}

.ssm-course-table th:nth-child(1),
.ssm-course-table td:nth-child(1){
  width:120px;
  text-align:left;
}

.ssm-course-table th:nth-child(2),
.ssm-course-table td:nth-child(2){
  text-align:left;
}

.ssm-course-table th:nth-child(3),
.ssm-course-table td:nth-child(3){
  width:110px;
  text-align:center;
}

.ssm-course-table th:nth-child(4),
.ssm-course-table td:nth-child(4){
  width:190px;
  text-align:center;
}

.ssm-course-table tbody tr:nth-child(even) td{
  background:#fcfcfc;
}

.ssm-course-table tbody tr:hover td{
  background:#fffdf8;
}

.ssm-course-table tbody tr:last-child td{
  border-bottom:none;
}

.ssm-course-table td:nth-child(1){
  min-width:110px;
  white-space:nowrap;
  font-weight:800;
  color:#7f1d1d !important;
}

.ssm-course-table td:nth-child(2){
  min-width:280px;
  font-weight:800;
  word-break:break-word;
}

.ssm-course-table td:nth-child(3){
  min-width:90px;
  font-weight:800;
}

.ssm-course-table td:nth-child(4){
  min-width:180px;
}

.ssm-course-table .ssm-open-modal{
  min-width:150px;
  border-radius:12px;
  border-color:#ead0d0;
  background:#fff;
  color:#7f1d1d;
  font-weight:900;
  transition:all .2s ease;
}

.ssm-course-table .ssm-open-modal:hover{
  background:#fff5f5;
  border-color:#f2b9b9;
  transform:translateY(-1px);
}

.ssm-modals-root{
  position:relative;
  z-index:0;
}

.ssm-material-list{
  display:grid;
  gap:14px;
}

.ssm-material-item{
  border:1px solid #eceff3;
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg,#fff,#fffdfd);
  box-shadow:0 4px 12px rgba(15,23,42,.03);
}

.ssm-material-item:hover{
  border-color:#f1c3c3;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}

.ssm-material-item .ssm-list__title{
  font-size:16px;
  font-weight:900;
  margin-bottom:10px;
  color:#111827 !important;
  line-height:1.45;
  word-break:break-word;
}

.ssm-material-item .ssm-list__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ssm-material-item .ssm-list__links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border-radius:10px;
  border:1px solid #f1d1d1;
  background:#fff7f7;
  color:var(--ssm-red) !important;
  font-weight:800;
  text-decoration:none;
  transition:all .2s ease;
}

.ssm-material-item .ssm-list__links a:hover{
  background:#fff1f1;
  border-color:#f0bcbc;
  text-decoration:none;
  transform:translateY(-1px);
}

/* =========================================================
   STUDENT GRADES - NEW UI
========================================================= */
.ssm-grades-page{
  max-width:1360px;
}

.ssm-grades-page .ssm-page-title{
  margin-bottom:18px;
  text-align:left;
}

.ssm-grades-page__title{
  display:block;
}

.ssm-grade-card{
  border-radius:18px;
  overflow:hidden;
  padding:14px;
}

.ssm-grade-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin-bottom:14px;
}

.ssm-grade-card__title{
  font-size:26px;
  font-weight:800;
  margin:0;
  color:var(--ssm-text);
}

.ssm-grade-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}

.ssm-grade-kpi{
  background:linear-gradient(180deg,#fff 0%,#fff7f7 100%);
  border:1px solid #f3d6d6;
  border-radius:14px;
  padding:12px 14px;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
  min-height:78px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.ssm-grade-kpi__label{
  display:block;
  font-size:12px;
  line-height:1.35;
  color:#7f1d1d !important;
  font-weight:700;
  margin-bottom:6px;
}

.ssm-grade-kpi__value{
  display:block;
  font-size:22px;
  line-height:1.1;
  color:#111827 !important;
  font-weight:800;
}

/* ===== Tổng kết học kỳ ===== */
.ssm-grade-summary-wrap{
  overflow:auto;
  border:1px solid #f0d6d6;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fffafa);
  margin:0 0 18px;
  box-shadow:0 6px 16px rgba(0,0,0,.03);
}

.ssm-grade-summary-table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
}

.ssm-grade-summary-table thead th{
  background:#fff5f5;
  color:#7f1d1d !important;
  padding:14px 16px;
  border-bottom:1px solid #f0d6d6;
  font-size:15px;
  font-weight:900;
  text-align:left;
  white-space:nowrap;
}

.ssm-grade-summary-table tbody td{
  padding:13px 16px;
  border-bottom:1px solid #eef2f7;
  vertical-align:middle;
  line-height:1.5;
  background:#fff;
}

.ssm-grade-summary-table tbody tr:nth-child(even) td{
  background:#fcfcfc;
}

.ssm-grade-summary-table tbody tr:last-child td{
  border-bottom:none;
}

.ssm-grade-summary-table tbody td:nth-child(1),
.ssm-grade-summary-table tbody td:nth-child(3){
  width:22%;
  min-width:150px;
  color:#7f1d1d !important;
  font-weight:800;
}

.ssm-grade-summary-table tbody td:nth-child(2),
.ssm-grade-summary-table tbody td:nth-child(4){
  font-weight:700;
  color:#111827 !important;
}

.ssm-grade-table-wrap{
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
}

.ssm-grade-table{
  width:100%;
  min-width:1400px;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
}

.ssm-grade-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#fff5f5;
  color:#7f1d1d !important;
  padding:14px 12px;
  border-bottom:1px solid #f0d6d6;
  white-space:nowrap;
  font-size:13px;
  font-weight:800;
  line-height:1.4;
  text-transform:none;
  vertical-align:middle;
  text-align:center;
}

.ssm-grade-table thead th.col-name{
  text-align:left;
}

.ssm-grade-table tbody td{
  padding:14px 12px;
  border-bottom:1px solid #eef2f7;
  vertical-align:middle;
  line-height:1.5;
  background:#fff;
}

.ssm-grade-table tbody tr:nth-child(even) td{
  background:#fafafa;
}

.ssm-grade-table tbody tr:hover td{
  background:#fffdf7;
}

.ssm-grade-table .col-mssv{
  min-width:92px;
  white-space:nowrap;
  font-weight:700;
  text-align:center;
}

.ssm-grade-table .col-code{
  min-width:92px;
  white-space:nowrap;
  font-weight:700;
  text-align:center;
}

.ssm-grade-table .col-name{
  min-width:260px;
  max-width:380px;
  white-space:normal;
  text-align:left;
  word-break:break-word;
}

.ssm-grade-table .col-score{
  min-width:76px;
  text-align:center;
  white-space:nowrap;
}

.ssm-grade-table .col-tbkt{
  min-width:96px;
}

.ssm-grade-table .col-hp10{
  min-width:96px;
}

.ssm-grade-table .col-he4{
  min-width:86px;
}

.ssm-grade-table .col-letter{
  min-width:92px;
  text-align:center;
  white-space:nowrap;
}

.ssm-grade-table .col-note{
  min-width:100px;
  text-align:center;
  white-space:nowrap;
}

.ssm-grade-subject{
  min-width:0;
}

.ssm-grade-subject__name{
  font-weight:700;
  color:#111827 !important;
  line-height:1.45;
  word-break:break-word;
}

.ssm-grade-subject__meta{
  margin-top:4px;
  font-size:12px;
  color:#6b7280 !important;
  line-height:1.35;
}

.ssm-grade-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:1;
  border:1px solid transparent;
  background:#f3f4f6;
  color:#4b5563 !important;
  border-color:#e5e7eb;
}

.ssm-grade-badge.is-pass{
  background:#ecfdf5;
  color:#047857 !important;
  border-color:#bbf7d0;
}

.ssm-grade-badge.is-fail{
  background:#fef2f2;
  color:#b91c1c !important;
  border-color:#fecaca;
}

.ssm-grade-badge--letter{
  background:#eff6ff;
  color:#1d4ed8 !important;
  border-color:#bfdbfe;
}

.ssm-grade-badge--pass{
  background:#ecfdf5;
  color:#047857 !important;
  border-color:#bbf7d0;
}

.ssm-grade-badge--debt{
  background:#fef2f2;
  color:#b91c1c !important;
  border-color:#fecaca;
}

.ssm-grade-badge--muted{
  background:#f3f4f6;
  color:#4b5563 !important;
  border-color:#e5e7eb;
}

.ssm-grade-empty{
  color:#9ca3af !important;
  font-weight:700;
}

/* =========================================================
   SSM TIMETABLE (Student) - NEW UI
========================================================= */
.ssm-tkb-wrap{
  position:relative;
}

.ssm-tkb-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:12px 14px;
  background:linear-gradient(180deg,#fff,#fff7f7);
  border:1px solid #f3d7d7;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(185,28,28,.04);
}

.ssm-tkb-navs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.ssm-tkb-nav{
  min-width:110px;
  transition:all .2s ease;
}

.ssm-tkb-nav:hover{
  border-color:#fca5a5;
  background:#fff5f5;
  transform:translateY(-1px);
}

.ssm-tkb-nav.is-active{
  background:var(--ssm-red);
  border-color:var(--ssm-red);
  color:#fff;
}

.ssm-tkb-range-wrap{
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex-direction:column;
}

.ssm-tkb-range-label{
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ssm-muted) !important;
}

.ssm-tkb-range{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #f1d3d3;
  color:#7f1d1d !important;
  font-weight:800;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
}

.ssm-tkb-body{
  position:relative;
  transition:opacity .2s ease;
}

.ssm-tkb-body.is-loading{
  opacity:.55;
  pointer-events:none;
}

.ssm-tkb-days{
  display:grid;
  gap:14px;
}

.ssm-tkb-day{
  background:#fff;
  border:1px solid var(--ssm-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;
}

.ssm-tkb-day:hover{
  border-color:#f3caca;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.ssm-tkb-day.is-today{
  border-color:#f3b3b3;
  box-shadow:0 12px 28px rgba(185,28,28,.08);
}

.ssm-tkb-day__head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border:0;
  background:linear-gradient(180deg,#fff,#fffafa);
  cursor:pointer;
  text-align:left;
}

.ssm-tkb-day__head:hover{
  background:linear-gradient(180deg,#fffafa,#fff5f5);
}

.ssm-tkb-day__head-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.ssm-tkb-day__dow{
  font-size:18px;
  font-weight:900;
  color:#111827 !important;
}

.ssm-tkb-day__date{
  font-size:13px;
  font-weight:700;
  color:var(--ssm-muted) !important;
}

.ssm-tkb-day__head-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.ssm-tkb-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.ssm-tkb-badge--today{
  background:#fef2f2;
  border:1px solid #fecaca;
  color:var(--ssm-red) !important;
}

.ssm-tkb-day__toggle{
  width:12px;
  height:12px;
  border-right:2px solid #991b1b;
  border-bottom:2px solid #991b1b;
  transform:rotate(45deg);
  transition:transform .2s ease;
  margin-top:-4px;
}

.ssm-tkb-day__head[aria-expanded="true"] .ssm-tkb-day__toggle{
  transform:rotate(-135deg);
  margin-top:4px;
}

.ssm-tkb-day__body{
  display:none;
  padding:0 18px 18px;
  border-top:1px solid #f8e5e5;
}

.ssm-tkb-day__body.is-open{
  display:block;
}

.ssm-tkb-sessions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding-top:16px;
}

.ssm-tkb-session{
  border:1px solid #eceff3;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  min-width:0;
}

.ssm-tkb-session--sang{
  border-color:#fde68a;
  background:linear-gradient(180deg,#fffdf5,#ffffff);
}

.ssm-tkb-session--chieu{
  border-color:#fdba74;
  background:linear-gradient(180deg,#fffaf4,#ffffff);
}

.ssm-tkb-session--toi{
  border-color:#c4b5fd;
  background:linear-gradient(180deg,#faf8ff,#ffffff);
}

.ssm-tkb-session--other{
  border-color:#d1d5db;
  background:linear-gradient(180deg,#fafafa,#ffffff);
}

.ssm-tkb-session__head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-bottom:1px solid rgba(229,231,235,.9);
  background:rgba(255,255,255,.72);
}

.ssm-tkb-session__icon{
  font-size:18px;
  line-height:1;
}

.ssm-tkb-session__title{
  font-weight:900;
  color:#111827 !important;
}

.ssm-tkb-session__count{
  margin-left:auto;
  font-size:12px;
  font-weight:800;
  color:var(--ssm-muted) !important;
}

.ssm-tkb-session__body{
  padding:12px;
  display:grid;
  gap:10px;
}

.ssm-tkb-item{
  border:1px solid #edf0f3;
  border-radius:14px;
  background:#fff;
  padding:12px;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.ssm-tkb-item:hover{
  border-color:#f2c2c2;
  box-shadow:0 8px 16px rgba(0,0,0,.04);
  transform:translateY(-1px);
}

.ssm-tkb-item__main{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ssm-tkb-item__subject{
  font-size:15px;
  font-weight:900;
  color:#111827 !important;
  line-height:1.45;
  word-break:break-word;
}

.ssm-tkb-item__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ssm-tkb-chip{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  border:1px solid transparent;
  background:#f9fafb;
  color:#374151 !important;
}

.ssm-tkb-chip--period{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412 !important;
}

.ssm-tkb-chip--room{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8 !important;
}

.ssm-tkb-chip--teacher{
  background:#f5f3ff;
  border-color:#ddd6fe;
  color:#6d28d9 !important;
}

.ssm-tkb-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:84px;
  border:1px dashed #d1d5db;
  border-radius:14px;
  background:#fcfcfc;
  color:var(--ssm-muted) !important;
  text-align:center;
  padding:10px;
}

.ssm-tkb-empty__icon{
  font-weight:900;
  color:#9ca3af !important;
}

.ssm-tkb-empty__text{
  font-size:13px;
  font-weight:700;
  color:var(--ssm-muted) !important;
}

.ssm-tkb-wrap.is-loading .ssm-tkb-nav{
  opacity:.75;
}

.ssm-tkb-wrap.is-loading .ssm-tkb-range{
  opacity:.8;
}

.ssm-tkb-body.is-ready{
  animation:ssmTkbFadeIn .24s ease;
}

@keyframes ssmTkbFadeIn{
  from{
    opacity:.35;
    transform:translateY(4px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:1200px){
  .ssm-grade-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:980px){
  .ssm-tkb-sessions{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .ssm-grade-card__title{
    font-size:22px;
  }

  .ssm-grade-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .ssm-grade-kpi{
    padding:10px 12px;
    min-height:72px;
  }

  .ssm-grade-kpi__value{
    font-size:18px;
  }

  .ssm-grade-summary-table{
    min-width:680px;
    font-size:13px;
  }

  .ssm-grade-summary-table thead th,
  .ssm-grade-summary-table tbody td{
    padding:10px 12px;
  }

  .ssm-grade-table{
    min-width:1240px;
    font-size:13px;
  }

  .ssm-grade-table thead th,
  .ssm-grade-table tbody td{
    padding:10px 8px;
  }

  .ssm-grade-table .col-name{
    min-width:220px;
    max-width:320px;
  }

  .ssm-course-card .ssm-card__title{
    flex-direction:column;
    align-items:flex-start;
    font-size:17px;
  }

  .ssm-course-table{
    min-width:760px;
  }

  .ssm-course-table thead th,
  .ssm-course-table tbody td{
    padding:12px 14px;
  }

  .ssm-course-table th:nth-child(1),
  .ssm-course-table td:nth-child(1){
    width:110px;
  }

  .ssm-course-table th:nth-child(3),
  .ssm-course-table td:nth-child(3){
    width:100px;
  }

  .ssm-course-table th:nth-child(4),
  .ssm-course-table td:nth-child(4){
    width:170px;
  }

  .ssm-course-table td:nth-child(2){
    min-width:240px;
  }

  .ssm-progress-summary{
    align-items:flex-start;
  }

  .ssm-progress-ring{
    min-width:64px;
    min-height:64px;
    font-size:15px;
  }
}

@media (max-width:640px){
  .ssm-kv{grid-template-columns:1fr}
  .ssm-table{min-width:780px}

  .ssm-card.ssm-card--auth{
    max-width:92vw !important;
    padding:16px !important;
  }

  .ssm-modal{
    padding:12px;
  }

  .ssm-modal__dialog{
    margin:8px auto 16px;
    border-radius:16px;
  }

  .ssm-modal__head{
    padding:14px;
    align-items:flex-start;
  }

  .ssm-modal__title{
    font-size:16px;
  }

  .ssm-modal__body{
    padding:14px;
    max-height:calc(100vh - 120px);
  }

  .ssm-material-item{
    padding:12px;
  }

  .ssm-material-item .ssm-list__links{
    flex-direction:column;
  }

  .ssm-material-item .ssm-list__links a{
    width:100%;
    justify-content:center;
  }

  .ssm-grade-summary-table{
    min-width:620px;
  }

  .ssm-grade-summary-table thead th{
    font-size:14px;
  }

  .ssm-tkb-toolbar{
    padding:12px;
    border-radius:14px;
  }

  .ssm-tkb-navs{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
  }

  .ssm-tkb-nav{
    min-width:0;
    padding:10px 8px;
    font-size:13px;
  }

  .ssm-tkb-range-wrap{
    width:100%;
  }

  .ssm-tkb-range{
    width:100%;
    justify-content:center;
    text-align:center;
    border-radius:12px;
  }

  .ssm-tkb-day__head{
    padding:14px;
  }

  .ssm-tkb-day__dow{
    font-size:16px;
  }

  .ssm-tkb-day__body{
    padding:0 14px 14px;
  }

  .ssm-tkb-sessions{
    gap:12px;
    padding-top:14px;
  }

  .ssm-tkb-session__head{
    padding:11px 12px;
  }

  .ssm-tkb-session__body{
    padding:10px;
  }

  .ssm-tkb-item{
    padding:10px;
  }

  .ssm-tkb-item__subject{
    font-size:14px;
  }

  .ssm-ctdt-missing-table{
    min-width:620px;
  }
}

/* ===== SSM CTĐT shortcode ===== */
.ssm-ctdt-page {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
}

.ssm-ctdt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.ssm-ctdt-kv {
  display: grid;
  gap: 10px;
  color: #374151;
  font-size: 15px;
}

.ssm-ctdt-kv b {
  color: #111827;
}

.ssm-ctdt-kv span {
  color: #374151;
}

.ssm-ctdt-progress-main {
  text-align: center;
  padding: 8px 0 12px;
}

.ssm-ctdt-progress-number {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  color: #b91c1c;
}

.ssm-ctdt-progress-text {
  margin-top: 6px;
  font-size: 14px;
  color: #4b5563;
}

.ssm-ctdt-progress-bar {
  height: 12px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.ssm-ctdt-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  border-radius: 999px;
}

.ssm-ctdt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.ssm-ctdt-stats div {
  background: #fff7f7;
  border: 1px solid #f3cccc;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.ssm-ctdt-stats strong {
  display: block;
  color: #991b1b;
  font-size: 20px;
  line-height: 1.1;
}

.ssm-ctdt-stats span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.ssm-ctdt-table th,
.ssm-ctdt-table td {
  vertical-align: middle;
}

.ssm-ctdt-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ssm-ctdt-status--passed {
  background: #dcfce7;
  color: #166534;
}

.ssm-ctdt-status--failed {
  background: #fee2e2;
  color: #991b1b;
}

.ssm-ctdt-status--learning {
  background: #dbeafe;
  color: #1d4ed8;
}

.ssm-ctdt-status--none {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 768px) {
  .ssm-ctdt-grid {
    grid-template-columns: 1fr;
  }

  .ssm-ctdt-stats {
    grid-template-columns: 1fr;
  }

  .ssm-ctdt-progress-number {
    font-size: 34px;
  }
}

/* ===== Học phí dạng bảng dọc ===== */
.ssm-fee-page {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
}

.ssm-fee-student {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 14px;
  color: #374151;
}

.ssm-fee-student b {
  color: #111827;
}

.ssm-fee-block {
  margin-top: 16px;
  border: 1px solid #f2b8bf;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.ssm-fee-block__title {
  background: #fdecef;
  color: #a3123a;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  padding: 18px 26px;
  text-transform: uppercase;
}

.ssm-fee-vtable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ssm-fee-vtable tr:not(:last-child) th,
.ssm-fee-vtable tr:not(:last-child) td {
  border-bottom: 1px solid #f3c5cb;
}

.ssm-fee-vtable th,
.ssm-fee-vtable td {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: middle;
}

.ssm-fee-vtable th {
  width: 38%;
  background: #fffafb;
  color: #991b1b;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  border-right: 1px solid #f3c5cb;
  padding-left: 28px;
  padding-right: 24px;
}

.ssm-fee-vtable td {
  background: #fff;
  color: #1f2937;
  font-size: 18px;
  font-weight: 500;
  padding-left: 28px;
  padding-right: 28px;
}

/* Bảng học phí: cột giá tiền đậm và căn phải */
.ssm-fee-vtable--money td {
  text-align: right;
  color: #a3123a;
  font-weight: 800;
  padding-right: 36px;
}

.ssm-fee-vtable--money tr:last-child td {
  color: #b91c1c;
}

/* Responsive */
@media (max-width: 768px) {
  .ssm-fee-block__title {
    font-size: 17px;
    padding: 15px 18px;
  }

  .ssm-fee-vtable th,
  .ssm-fee-vtable td {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .ssm-fee-vtable th {
    width: 42%;
    font-size: 15px;
    padding-left: 18px;
    padding-right: 14px;
  }

  .ssm-fee-vtable td {
    font-size: 15px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .ssm-fee-vtable--money td {
    padding-right: 22px;
  }
}

/* Fix khoảng cách chữ bảng học phí - ưu tiên cao */
.ssm-fee-page .ssm-fee-vtable th,
.ssm-fee-page .ssm-fee-vtable td {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  vertical-align: middle !important;
}

.ssm-fee-page .ssm-fee-vtable th {
  padding-left: 34px !important;
  padding-right: 28px !important;
}

.ssm-fee-page .ssm-fee-vtable td {
  padding-left: 34px !important;
  padding-right: 34px !important;
}

/* Riêng bảng học phí tiền: số tiền căn phải nhưng không dính mép */
.ssm-fee-page .ssm-fee-vtable--money td {
  text-align: right !important;
  padding-right: 42px !important;
}