
/* =========================================
   STUDENT PAGE - ENGLISH COMMERCE DN
   File: pages/student/css/student.css
========================================= */

:root {
    --student-blue: #0756A5;
    --student-blue-dark: #06447F;
    --student-orange: #F28C28;
    --student-sky: #38A9E8;
    --student-bg: #F1F5F9;
    --student-white: #FFFFFF;
    --student-text: #243447;
    --student-muted: #718096;
    --student-border: #DCE5EF;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--student-text);
    background: var(--student-bg);
}

button,
a {
    font: inherit;
}

.student-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   HEADER
========================================= */

.student-header {
    min-height: 82px;
    padding: 12px 24px;
    background: var(--student-blue);
    color: var(--student-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.student-header-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 27px;
}

.student-header-title h1 {
    margin: 0;
    color: #FFD84D;
    font-size: 22px;
    letter-spacing: 1.2px;
}

.student-header-title p {
    margin: 5px 0 0;
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.student-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-btn {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-btn {
    color: #FFFFFF;
    background: var(--student-orange);
}

.profile-btn:hover {
    background: #DD7416;
}

.change-pass-btn {
    color: var(--student-blue);
    background: #FFFFFF;
}

.change-pass-btn:hover {
    background: #EAF4FC;
}

.home-btn {
    color: #FFFFFF;
    background: var(--student-blue-dark);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-btn:hover {
    background: #043765;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.student-layout {
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
    gap: 16px;
}

/* =========================================
   LEFT SIDEBAR
========================================= */

.student-sidebar {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--student-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(22, 47, 75, 0.06);
}

.student-sidebar-heading {
    min-height: 52px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    background: var(--student-blue-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.student-menu {
    padding: 9px;
}

.student-menu-group {
    margin-bottom: 7px;
    border: 1px solid var(--student-border);
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
}

.student-menu-group summary {
    min-height: 45px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    list-style: none;
    cursor: pointer;
    color: var(--student-blue-dark);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.student-menu-group summary::-webkit-details-marker {
    display: none;
}

.student-menu-group summary::after {
    content: "›";
    margin-left: auto;
    color: var(--student-muted);
    font-size: 21px;
    transition: transform 0.2s ease;
}

.student-menu-group[open] summary::after {
    transform: rotate(90deg);
}

.student-menu-group summary:hover {
    background: #EDF6FD;
}

.student-group-icon {
    width: 23px;
    flex-shrink: 0;
    text-align: center;
    font-size: 16px;
}

.student-group-count {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 20px;
    color: var(--student-blue);
    background: #E8F3FC;
    font-size: 10px;
    flex-shrink: 0;
}

.student-submenu {
    padding: 4px 7px 8px 30px;
    border-top: 1px solid #EDF1F5;
    background: #FAFCFE;
}

.student-submenu button {
    width: 100%;
    min-height: 38px;
    padding: 7px 8px;
    border: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    color: #45566B;
    background: transparent;
    font-size: 12.5px;
    cursor: pointer;
    transition: 0.2s ease;
}

.student-submenu button:hover {
    color: var(--student-blue);
    background: #E8F3FC;
}

.student-submenu button:focus-visible,
.student-menu-group summary:focus-visible,
.student-btn:focus-visible {
    outline: 3px solid rgba(56, 169, 232, 0.45);
    outline-offset: 2px;
}

/* =========================================
   RIGHT CONTENT
========================================= */

.student-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.student-content-topbar {
    min-height: 72px;
    padding: 12px 20px;
    border: 1px solid var(--student-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(22, 47, 75, 0.04);
}

.student-content-label {
    color: var(--student-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.student-content-topbar h2 {
    margin: 5px 0 0;
    color: var(--student-blue-dark);
    font-size: 19px;
}

.student-status {
    padding: 7px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #26764A;
    background: #EAF8F0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.student-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25A45A;
}

.student-tab-container {
    flex: 1;
    min-height: 450px;
    padding: 24px;
    border: 1px solid var(--student-border);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(22, 47, 75, 0.04);
}

/* =========================================
   WELCOME
========================================= */

.student-welcome {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.student-welcome-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: var(--student-blue);
    background: #EAF4FC;
    font-size: 43px;
}

.student-welcome h2 {
    margin: 0 0 12px;
    color: var(--student-blue);
    font-size: 25px;
    letter-spacing: 1px;
}

.student-welcome p {
    max-width: 520px;
    margin: 5px 0;
    color: #526276;
    font-size: 14px;
    line-height: 1.7;
}

.student-welcome .student-welcome-guide {
    margin-top: 14px;
    color: var(--student-orange);
    font-weight: 600;
}

/* =========================================
   FOOTER
========================================= */

.student-footer {
    min-height: 38px;
    padding: 10px 18px;
    color: #FFFFFF;
    background: #171717;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
}

.student-footer span {
    color: #B8C4D1;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
    .student-layout {
        grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr);
        gap: 12px;
        padding: 12px;
    }

    .student-header {
        padding: 12px 16px;
    }

    .student-menu-group summary {
        font-size: 12px;
    }

    .student-submenu {
        padding-left: 22px;
    }

    .student-submenu button {
        font-size: 12px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
    .student-header {
        min-height: auto;
        padding: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .student-header-title h1 {
        font-size: 18px;
    }

    .student-header-title p {
        font-size: 10px;
    }

    .student-icon {
        width: 42px;
        height: 42px;
        font-size: 23px;
    }

    .student-header-actions {
        width: 100%;
        gap: 7px;
    }

    .student-btn {
        flex: 1;
        min-height: 42px;
        padding: 0 7px;
        font-size: 11.5px;
        white-space: nowrap;
    }

    .student-layout {
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 12px;
    }

    .student-sidebar,
    .student-content {
        width: 100%;
    }

    .student-sidebar-heading {
        min-height: 46px;
    }

    .student-menu {
        padding: 8px;
    }

    .student-menu-group summary {
        min-height: 44px;
        font-size: 13px;
    }

    .student-submenu {
        padding-left: 25px;
    }

    .student-submenu button {
        min-height: 40px;
        font-size: 13px;
    }

    .student-content-topbar {
        min-height: 65px;
        padding: 11px 14px;
    }

    .student-content-topbar h2 {
        font-size: 17px;
    }

    .student-tab-container {
        min-height: 380px;
        padding: 15px;
    }

    .student-welcome {
        min-height: 340px;
    }

    .student-welcome-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .student-welcome h2 {
        font-size: 20px;
    }

    .student-welcome p {
        font-size: 13px;
    }

    .student-footer {
        font-size: 10px;
        line-height: 1.6;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .student-header-title h1 {
        font-size: 16px;
    }

    .student-header-actions {
        gap: 5px;
    }

    .student-btn {
        padding: 0 4px;
        font-size: 10.5px;
    }

    .student-menu-group summary {
        gap: 6px;
        font-size: 12px;
    }

    .student-group-count {
        padding: 2px 6px;
    }
}


/* =====================================
   STUDENT LOGIN & REGISTER
===================================== */

.student-auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0756A5, #0B3670);
}

.student-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.student-auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  text-align: center;
}

.student-auth-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EAF3FC;
  font-size: 36px;
}

.student-auth-card h1 {
  margin: 0;
  color: #0756A5;
  font-size: 24px;
  font-weight: 800;
}

.student-auth-subtitle {
  margin: 10px 0 27px;
  color: #777;
  font-size: 12px;
  letter-spacing: .8px;
}

.student-auth-field {
  margin-bottom: 17px;
  text-align: left;
}

.student-auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.student-auth-field input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  box-sizing: border-box;
  border: 1px solid #D5DDE7;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.student-auth-field input:focus {
  border-color: #0756A5;
  box-shadow: 0 0 0 3px rgba(7,86,165,.10);
}

.student-auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #0756A5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.student-auth-submit:hover {
  background: #F28C28;
}

.student-auth-switch {
  margin-top: 23px;
  color: #555;
  font-size: 14px;
}

.student-auth-switch a {
  color: #0756A5;
  font-weight: 700;
  text-decoration: none;
}

.student-auth-switch a:hover {
  color: #F28C28;
  text-decoration: underline;
}

.student-auth-home {
  display: inline-block;
  margin-top: 20px;
  color: #0756A5;
  font-size: 14px;
  text-decoration: none;
}

.student-auth-home:hover {
  color: #F28C28;
}

@media (max-width: 480px) {
  .student-auth-container {
    padding: 16px;
  }

  .student-auth-card {
    padding: 30px 22px;
  }

  .student-auth-card h1 {
    font-size: 21px;
  }
}


/* =====================================
   STUDENT PROFILE
===================================== */

.student-profile-page {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dce6f1;
    border-radius: 12px;
    box-sizing: border-box;
}

.student-profile-title {
    text-align: center;
    color: #0756A5;
    font-size: 23px;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F28C28;
}

.student-profile-avatar {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 15px 0 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5eaf0;
}

.student-profile-avatar-preview {
    width: 125px;
    height: 125px;
    border: 2px dashed #9bb9d7;
    border-radius: 50%;
    background: #eef5fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #0756A5;
    font-weight: bold;
}

.student-profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.student-profile-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-profile-upload,
.student-profile-delete {
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.student-profile-upload {
    color: white;
    background: #0756A5;
}

.student-profile-delete {
    color: white;
    background: #DC2626;
    border: none;
}

.student-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 22px;
}

.student-profile-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.student-profile-full {
    grid-column: 1 / -1;
}

.student-profile-field label {
    color: #173b61;
    font-weight: 600;
    font-size: 14px;
}

.student-profile-field input,
.student-profile-field select {
    width: 100%;
    height: 42px;
    padding: 8px 11px;
    border: 1px solid #cbd7e4;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
}

.student-profile-field input:focus,
.student-profile-field select:focus {
    border-color: #0756A5;
    box-shadow: 0 0 0 2px rgba(7, 86, 165, 0.1);
}

.student-profile-field input[readonly] {
    background: #edf2f7;
    color: #526477;
    cursor: not-allowed;
}

.student-profile-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf0;
}

.student-profile-buttons button,
.student-profile-buttons a {
    min-width: 115px;
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.student-profile-save {
    background: #0756A5;
    color: white;
}

.student-profile-home {
    background: #F28C28;
    color: white;
}

.student-profile-mypage {
    background: #38A9E8;
    color: white;
}

@media (max-width: 600px) {
    .student-profile-page {
        margin: 10px auto;
        padding: 15px;
    }

    .student-profile-grid {
        grid-template-columns: 1fr;
    }

    .student-profile-full {
        grid-column: auto;
    }

    .student-profile-avatar {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .student-profile-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .student-profile-buttons button,
    .student-profile-buttons a {
        width: 100%;
    }
}

.student-logout-btn {
    background: #DC2626;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.student-logout-btn:hover {
    background: #B91C1C;
    transform: translateY(-1px);
}

.student-logout-btn:active {
    transform: scale(0.97);
}



/* =========================================
   HỒ SƠ SINH VIÊN - READ ONLY
========================================= */

.student-profile-page {
  width: 100%;
  min-width: 0;
  color: #172536;
}

.student-profile-header {
  text-align: center;
  padding: 8px 8px 22px;
}

.student-profile-eyebrow {
  color: #F28C28;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.student-profile-header h1 {
  margin: 7px 0;
  color: #063D78;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
}

.student-profile-header p {
  margin: 0;
  color: #718496;
  font-size: 12px;
}

.student-profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid #DCEAF4;
  border-radius: 15px;
  background: linear-gradient(115deg, #EDF7FD, #FFFFFF);
  box-shadow: 0 10px 28px rgba(7, 86, 165, .07);
}

.student-profile-avatar-wrap {
  flex: 0 0 112px;
  text-align: center;
}

.student-profile-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: auto;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFBD68, #E97819);
  color: #FFFFFF;
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(7, 86, 165, .16);
}

.student-profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-profile-avatar-caption {
  margin-top: 9px;
  color: #718496;
  font-size: 11px;
  font-weight: 600;
}

.student-profile-identity {
  min-width: 0;
}

.student-profile-identity-label {
  color: #38A9E8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.student-profile-uid {
  margin-top: 5px;
  color: #647789;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.student-profile-name {
  margin-top: 9px;
  color: #063D78;
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 800;
}

.student-profile-readonly {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #16834A;
  font-size: 11px;
  font-weight: 700;
}

.student-profile-readonly span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
}

.student-profile-section {
  margin-top: 17px;
  padding: 20px;
  border: 1px solid #E2EAF0;
  border-radius: 13px;
  background: #FFFFFF;
  box-shadow: 0 7px 22px rgba(13, 58, 98, .045);
}

.student-profile-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E8EFF5;
  color: #0756A5;
  font-size: 14px;
  font-weight: 800;
}

.student-profile-section-icon {
  color: #F28C28;
  font-size: 19px;
}

.student-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.student-profile-field {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #E7EEF4;
  border-radius: 9px;
  background: #FAFCFE;
}

.student-profile-label {
  margin-bottom: 7px;
  color: #718496;
  font-size: 11px;
  font-weight: 700;
}

.student-profile-value {
  min-height: 19px;
  color: #172536;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.student-profile-message {
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #EAF5FC;
  color: #0756A5;
  font-size: 12px;
}

.student-profile-message.is-error {
  background: #FEF2F2;
  color: #B91C1C;
}

.student-profile-message[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .student-profile-card {
    gap: 13px;
    padding: 17px 13px;
  }

  .student-profile-avatar-wrap {
    flex-basis: 82px;
  }

  .student-profile-avatar {
    width: 76px;
    height: 76px;
    font-size: 22px;
  }

  .student-profile-section {
    padding: 15px 12px;
  }

  .student-profile-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .student-profile-value {
    font-size: 12px;
  }
}


/* =====================================================
   SINH VIÊN - BÀI GIẢNG / BÀI TẬP
===================================================== */

.sv-hocbai {
    width: 100%;
    min-width: 0;
    padding: 22px;
    color: #263445;
    box-sizing: border-box;
}

.sv-hocbai *,
.sv-hocbai *::before,
.sv-hocbai *::after {
    box-sizing: border-box;
}

.sv-hocbai-header {
    margin-bottom: 22px;
}

.sv-hocbai-header h2 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 750;
    color: #183b64;
}

.sv-hocbai-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

/* Khu vực chọn loại nội dung và bộ lọc */

.sv-hocbai-filter {
    padding: 20px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(30, 64, 100, 0.06);
}

.sv-hocbai-type {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.sv-hocbai-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.sv-hocbai-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sv-hocbai-radio span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 11px 18px;
    border: 1px solid #d7e2ef;
    border-radius: 9px;
    background: #f8fafc;
    color: #53657b;
    font-weight: 650;
    transition: 0.2s ease;
}

.sv-hocbai-radio input:checked + span {
    color: #fff;
    background: #2463a6;
    border-color: #2463a6;
    box-shadow: 0 4px 12px rgba(36, 99, 166, 0.2);
}

.sv-hocbai-radio:focus-within span {
    outline: 3px solid rgba(36, 99, 166, 0.18);
}

.sv-hocbai-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.sv-hocbai-field {
    min-width: 0;
}

.sv-hocbai-field label {
    display: block;
    margin-bottom: 8px;
    color: #43566d;
    font-size: 14px;
    font-weight: 650;
}

.sv-hocbai-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d4dfeb;
    border-radius: 8px;
    background: #fff;
    color: #263445;
    font-size: 14px;
    outline: none;
}

.sv-hocbai-field select:focus {
    border-color: #347fc0;
    box-shadow: 0 0 0 3px rgba(52, 127, 192, 0.12);
}

/* Thông báo */

.sv-hocbai-message {
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #52657b;
    font-size: 13px;
}

.sv-hocbai-message.is-success {
    background: #edf8f1;
    color: #247344;
}

.sv-hocbai-message.is-error {
    background: #fff0f0;
    color: #b42318;
}

.sv-hocbai-message.is-loading {
    background: #edf5ff;
    color: #245d99;
}

/* Danh sách bài giảng / bài tập */

.sv-hocbai-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.sv-hocbai-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 25px;
    border: 1px dashed #cbd8e6;
    border-radius: 12px;
    background: #f9fbfd;
    text-align: center;
    color: #78899d;
}

.sv-hocbai-empty span {
    margin-bottom: 10px;
    font-size: 35px;
}

.sv-hocbai-empty p {
    margin: 0;
    font-size: 14px;
}

.sv-hocbai-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e0e8f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(30, 64, 100, 0.045);
}

.sv-hocbai-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sv-hocbai-card-head h3 {
    margin: 0 0 7px;
    color: #214e7b;
    font-size: 17px;
    line-height: 1.5;
}

.sv-hocbai-date {
    color: #8997a8;
    font-size: 12px;
}

.sv-hocbai-view-btn {
    flex-shrink: 0;
    padding: 9px 15px;
    border: 0;
    border-radius: 7px;
    background: #eaf3fc;
    color: #245f98;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: 0.2s ease;
}

.sv-hocbai-view-btn:hover {
    background: #2463a6;
    color: #fff;
}

.sv-hocbai-card-content {
    min-width: 0;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e8edf3;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.sv-hocbai-card-content[hidden] {
    display: none;
}

.sv-hocbai-card-content img,
.sv-hocbai-card-content video,
.sv-hocbai-card-content iframe {
    max-width: 100%;
}

.sv-hocbai-card-content img {
    height: auto;
}

/* Media cố định góc dưới bên phải */

.sv-hocbai-media {
    position: fixed;
    right: 20px;
    bottom: 18px;
    z-index: 999;
    width: min(390px, calc(100vw - 30px));
    max-height: 65vh;
    overflow: hidden;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(20, 42, 68, 0.2);
}

.sv-hocbai-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: #214f7d;
    color: #fff;
}

.sv-hocbai-media-head strong {
    font-size: 14px;
}

.sv-hocbai-media-head button {
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.sv-hocbai-media-body {
    max-height: calc(65vh - 50px);
    padding: 13px;
    overflow-y: auto;
}

.sv-hocbai-media-body > p {
    margin: 4px 0;
    color: #7a899a;
    font-size: 13px;
}

.sv-hocbai-media-item {
    margin-bottom: 15px;
}

.sv-hocbai-media-item:last-child {
    margin-bottom: 0;
}

.sv-hocbai-media-label {
    margin-bottom: 7px;
    color: #43566d;
    font-size: 13px;
    font-weight: 650;
}

.sv-hocbai-media-item audio,
.sv-hocbai-media-item video {
    display: block;
    width: 100%;
    max-width: 100%;
}

.sv-hocbai-media-item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 7px;
}

.sv-hocbai-media-item a {
    color: #2463a6;
    font-weight: 600;
    text-decoration: none;
}

.sv-hocbai-media-item a:hover {
    text-decoration: underline;
}

.sv-hocbai-media.is-minimized {
    width: 220px;
    max-height: none;
}

.sv-hocbai-media.is-minimized .sv-hocbai-media-body {
    display: none;
}

/* Responsive */

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

    .sv-hocbai-header h2 {
        font-size: 21px;
    }

    .sv-hocbai-selects {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sv-hocbai-radio {
        flex: 1;
    }

    .sv-hocbai-radio span {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        font-size: 13px;
    }

    .sv-hocbai-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sv-hocbai-media {
        right: 10px;
        bottom: 10px;
        width: min(340px, calc(100vw - 20px));
    }
}

/* Danh sách nút chọn media */
.sv-hocbai-media-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin: 0 0 8px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    color: #263445;
    text-align: left;
    cursor: pointer;
}

.sv-hocbai-media-link:hover {
    background: #f0f5ff;
}

/* Khung phát MP3 / MP4 / YouTube / Drive */
.sv-hocbai-media-player {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border: 0;
    border-radius: 8px;
}

.sv-hocbai-media-body audio {
    min-height: 48px;
}

.sv-hocbai-media-body video,
.sv-hocbai-media-body iframe {
    min-height: 220px;
    aspect-ratio: 16 / 9;
}

.sv-hocbai-media-original-link {
    display: inline-block;
    margin: 8px 0 12px;
}

.sv-hocbai-media-error {
    color: #b45309;
    font-size: 13px;
}

/* Thanh điều hướng trình phát media */
.sv-hocbai-media-toolbar {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.sv-hocbai-media-back {
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e293b;
    cursor: pointer;
    font-weight: 600;
}

.sv-hocbai-media-back:hover {
    background: #e2e8f0;
}

/* =====================================================
   STUDENT - BỐ CỤC BÀI GIẢNG / BÀI TẬP
===================================================== */

.sv-hocbai {
    width: 100%;
    min-width: 0;
    position: relative;
    padding: 16px;
    box-sizing: border-box;
}

.sv-hocbai *,
.sv-hocbai *::before,
.sv-hocbai *::after {
    box-sizing: border-box;
}

.sv-hocbai-header {
    margin-bottom: 14px;
}

.sv-hocbai-header h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.sv-hocbai-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* BỘ LỌC */

.sv-hocbai-filter {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sv-hocbai-type {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sv-hocbai-radio {
    cursor: pointer;
}

.sv-hocbai-radio span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
}

.sv-hocbai-radio input:checked + span {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.sv-hocbai-selects {
    display: flex;
    flex: 1;
    min-width: 280px;
    gap: 10px;
}

.sv-hocbai-field {
    flex: 1;
    min-width: 0;
}

.sv-hocbai-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.sv-hocbai-field select {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
}

.sv-hocbai-load-btn {
    min-height: 38px;
    padding: 8px 15px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #0f766e;
    font-weight: 700;
    cursor: pointer;
}

.sv-hocbai-load-btn:hover {
    background: #115e59;
}

/* THÔNG BÁO */

.sv-hocbai-message {
    margin: 8px 0 12px;
    color: #64748b;
    font-size: 13px;
}

.sv-hocbai-message.is-success {
    color: #15803d;
}

.sv-hocbai-message.is-error {
    color: #dc2626;
}

.sv-hocbai-message.is-loading {
    color: #2563eb;
}

/* KHUNG HỌC TẬP 2 CỘT */

.sv-hocbai-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 580px;
    align-items: stretch;
}

.sv-hocbai-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sv-hocbai-left-section {
    min-width: 0;
}

.sv-hocbai-section-heading,
.sv-hocbai-main-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #FFB74D;
    color: Brown;
    font-size: 12px;
    letter-spacing: .3px;
}

.sv-hocbai-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 390px;
    overflow-y: auto;
    padding: 8px 2px;
}

.sv-hocbai-unit {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: .15s ease;
}

.sv-hocbai-unit:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.sv-hocbai-unit.is-active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e40af;
}

.sv-hocbai-unit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.sv-hocbai-unit-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.sv-hocbai-unit-info strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.sv-hocbai-unit-info small {
    color: #64748b;
    font-size: 11px;
}

.sv-hocbai-unit-arrow {
    font-size: 20px;
    color: #64748b;
}

.sv-hocbai-media-list-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.sv-hocbai-media-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.sv-hocbai-muted {
    margin: 5px 2px;
    color: #94a3b8;
    font-size: 12px;
}

/* KHU VỰC NỘI DUNG */

.sv-hocbai-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 580px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.sv-hocbai-main-heading {
    flex: 0 0 auto;
    border-radius: 0;
}

.sv-hocbai-content {
    flex: 1;
    min-width: 0;
    padding: 18px;
    overflow: auto;
    overflow-wrap: anywhere;
}

.sv-hocbai-content img,
.sv-hocbai-content video,
.sv-hocbai-content iframe {
    max-width: 100%;
}

.sv-hocbai-content iframe {
    display: block;
    width: 100%;
    min-height: 65vh;
    border: 0;
}

.sv-hocbai-content table {
    max-width: 100%;
}

.sv-hocbai-content-empty {
    min-height: 300px;
}

/* TRẠNG THÁI RỖNG */

.sv-hocbai-empty {
    padding: 18px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.sv-hocbai-empty span {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
}

.sv-hocbai-empty p {
    margin: 0;
}

/* DANH SÁCH MEDIA */

.sv-hocbai-media-link {
    width: 100%;
    padding: 9px 10px;
    text-align: left;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sv-hocbai-media-link:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* MEDIA PLAYER NỔI */

.sv-hocbai-media {
    position: fixed;
    z-index: 9999;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    width: min(410px, calc(100vw - 30px));
    max-height: min(390px, calc(100vh - 40px));
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
}

.sv-hocbai-media[hidden] {
    display: none !important;
}

.sv-hocbai-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 7px 10px;
    color: #fff;
    background: #1e3a8a;
}

.sv-hocbai-media-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.sv-hocbai-media-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.sv-hocbai-media-actions button {
    width: 28px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.sv-hocbai-media-actions button:hover {
    background: rgba(255,255,255,.3);
}

.sv-hocbai-media-body {
    padding: 10px;
    overflow: auto;
}

.sv-hocbai-media-body > p {
    margin: 5px 0;
    color: #64748b;
    font-size: 12px;
}

.sv-hocbai-media-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.sv-hocbai-media-player {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 7px;
}

.sv-hocbai-media-body audio {
    width: 100%;
}

.sv-hocbai-media-body video,
.sv-hocbai-media-body iframe {
    width: 100%;
    height: 220px;
    max-width: 100%;
}

.sv-hocbai-media-original-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
}

.sv-hocbai-media-error {
    color: #dc2626;
    font-size: 12px;
}

.sv-hocbai-media-toolbar {
    margin-bottom: 8px;
}

.sv-hocbai-media-back {
    padding: 6px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

/* THU NHỎ */

.sv-hocbai-media.is-minimized {
    width: min(280px, calc(100vw - 30px));
    max-height: 42px;
}

/* PHÓNG TO */

.sv-hocbai-media.is-maximized {
    right: 3vw;
    bottom: 3vh;
    width: min(900px, 94vw);
    max-height: 90vh;
}

.sv-hocbai-media.is-maximized .sv-hocbai-media-body video,
.sv-hocbai-media.is-maximized .sv-hocbai-media-body iframe {
    height: min(65vh, 600px);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .sv-hocbai-workspace {
        grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    }

    .sv-hocbai-selects {
        min-width: 100%;
    }
}

@media (max-width: 650px) {
    .sv-hocbai {
        padding: 9px;
    }

    .sv-hocbai-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .sv-hocbai-left {
        order: 1;
    }

    .sv-hocbai-main {
        order: 2;
        min-height: 420px;
    }

    .sv-hocbai-results {
        max-height: 230px;
    }

    .sv-hocbai-selects {
        flex-direction: column;
    }

    .sv-hocbai-filter {
        align-items: stretch;
    }

    .sv-hocbai-load-btn {
        width: 100%;
    }

    .sv-hocbai-content {
        padding: 10px;
    }

    .sv-hocbai-content iframe {
        min-height: 420px;
    }

    .sv-hocbai-media {
        right: 10px;
        bottom: 10px;
    }
}

/* =====================================================
   STUDENT - ẨN / HIỆN THANH CHỨC NĂNG
===================================================== */

.student-content-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.student-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #B91C1C;
    color: White;
    font-size: 19px;
    cursor: pointer;
}

.student-sidebar-toggle:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.student-layout.is-sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.student-layout.is-sidebar-hidden > .student-sidebar {
    display: none;
}

.student-layout > .student-content {
    min-width: 0;
}

@media (max-width: 700px) {
    .student-layout.is-sidebar-hidden {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================
   SINH VIÊN - BÌNH CHỌN GIÁO VIÊN
========================================= */

.sv-binhchon {
    width: 100%;
    min-width: 0;
    padding: 20px;
    color: #243247;
    box-sizing: border-box;
}

.sv-binhchon * {
    box-sizing: border-box;
}

.sv-binhchon-header {
    margin-bottom: 22px;
}

.sv-binhchon-header h2 {
    margin: 0 0 7px;
    font-size: 22px;
    font-weight: 800;
    color: #174b78;
}

.sv-binhchon-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.sv-binhchon-form,
.sv-binhchon-history {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 13px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 3px 12px rgba(25, 55, 90, 0.045);
}

.sv-binhchon-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 15px;
}

.sv-binhchon-teacher {
    grid-column: 1 / -1;
}

.sv-binhchon-field label,
.sv-binhchon-rating > label,
.sv-binhchon-comment label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #34445a;
}

.sv-binhchon-field select,
.sv-binhchon-comment textarea {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #fff;
    color: #26364a;
    font: inherit;
    outline: none;
}

.sv-binhchon-field select:focus,
.sv-binhchon-comment textarea:focus {
    border-color: #2785c7;
    box-shadow: 0 0 0 3px rgba(39, 133, 199, 0.1);
}

.sv-binhchon-rating {
    margin-top: 20px;
}

.sv-binhchon-stars {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 7px 0;
}

.sv-binhchon-stars button {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 34px;
    line-height: 1.2;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.sv-binhchon-stars button:hover {
    transform: scale(1.12);
}

.sv-binhchon-stars button.active {
    color: #FF9800;
}

.sv-binhchon-rating-text {
    min-height: 20px;
    color: #77869a;
    font-size: 13px;
}

.sv-binhchon-comment {
    margin-top: 18px;
}

.sv-binhchon-comment textarea {
    display: block;
    min-height: 100px;
    resize: vertical;
}

.sv-binhchon-message {
    min-height: 22px;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 600;
}

.sv-binhchon-message.is-success {
    color: #16834b;
}

.sv-binhchon-message.is-error {
    color: #d14343;
}

.sv-binhchon-message.is-loading {
    color: #2877b8;
}

.sv-binhchon-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 43px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: #1976b9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sv-binhchon-submit:hover {
    background: #125f98;
}

.sv-binhchon-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.sv-binhchon-history-heading {
    margin-bottom: 15px;
}

.sv-binhchon-history-heading h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #174b78;
}

.sv-binhchon-history-heading p {
    margin: 0;
    color: #77869a;
    font-size: 13px;
}

.sv-binhchon-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sv-binhchon-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 13px;
}

.sv-binhchon-table th,
.sv-binhchon-table td {
    padding: 11px 10px;
    border: 1px solid #e4ebf2;
    text-align: left;
    vertical-align: middle;
}

.sv-binhchon-table th {
    background: #f1f6fb;
    color: #31516f;
    font-weight: 800;
    white-space: nowrap;
}

.sv-binhchon-table tbody tr:hover {
    background: #f8fbfe;
}

.sv-binhchon-table tbody td[colspan] {
    padding: 22px 10px;
    text-align: center;
    color: #8492a5;
}

.sv-binhchon-table-stars {
    color: #FF9800;
    white-space: nowrap;
    font-size: 16px;
}

.sv-binhchon-table-comment {
    min-width: 160px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 650px) {
    .sv-binhchon {
        padding: 12px;
    }

    .sv-binhchon-form,
    .sv-binhchon-history {
        padding: 14px;
    }

    .sv-binhchon-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sv-binhchon-teacher {
        grid-column: 1 / -1;
    }

    .sv-binhchon-header h2 {
        font-size: 19px;
    }

    .sv-binhchon-stars button {
        font-size: 31px;
    }
}


/* ================================
   THỜI KHÓA BIỂU SINH VIÊN
================================ */

.student-tkb {
    width: 100%;
    min-width: 0;
    padding: 16px;
    color: #263238;
}

.student-tkb__header {
    margin-bottom: 20px;
    text-align: center;
}

.student-tkb__header h2 {
    margin: 0;
    color: #174ea6;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.student-tkb__filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
    background: #f5f8fc;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
}

.student-tkb__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.student-tkb__field label {
    font-size: 13px;
    font-weight: 700;
    color: #455a64;
}

.student-tkb__field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: #263238;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

.student-tkb__field select:disabled {
    color: #263238;
    opacity: 1;
    background: #eef2f7;
}

.student-tkb__message {
    margin: 10px 0 16px;
    color: #64748b;
    font-size: 13px;
}

.student-tkb__message.is-error {
    color: #c62828;
}

.student-tkb__message.is-success {
    color: #287443;
}

.student-tkb__weeks {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.student-tkb__week {
    min-width: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 10px;
}

.student-tkb__week-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.student-tkb__week-heading h3 {
    margin: 0;
    color: #174ea6;
    font-size: 17px;
    font-weight: 800;
}

.student-tkb__current {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: #176b3a;
    background: #e5f5eb;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.student-tkb__empty {
    padding: 18px 12px;
    color: #87919e;
    background: #f8fafc;
    border: 1px dashed #d5dde7;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
}

.student-tkb__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dce4ed;
    border-radius: 8px;
}

.student-tkb__table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 13px;
}

.student-tkb__table th,
.student-tkb__table td {
    padding: 10px 9px;
    border: 1px solid #e1e7ef;
    text-align: center;
    vertical-align: middle;
}

.student-tkb__table th {
    color: #263b53;
    background: #edf3fa;
    font-weight: 800;
    white-space: nowrap;
}

.student-tkb__table td {
    color: #374151;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.student-tkb__table tbody tr:nth-child(even) {
    background: #fafcff;
}

.student-tkb__table .student-tkb__stt {
    width: 48px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .student-tkb {
        padding: 10px;
    }

    .student-tkb__filters {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .student-tkb__field:last-child {
        grid-column: 1 / -1;
    }

    .student-tkb__week {
        padding: 10px;
    }

    .student-tkb__header h2 {
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .student-tkb__filters {
        grid-template-columns: 1fr;
    }

    .student-tkb__field:last-child {
        grid-column: auto;
    }
}

/* =====================================================
   BÁO CÁO THỰC HÀNH – THỰC TẬP
===================================================== */

.sv-report {
    --report-blue: #0756a5;
    --report-blue-dark: #063d78;
    --report-orange: #ed8b2f;
    --report-text: #24364b;
    --report-muted: #74869a;
    --report-border: #dce7f1;

    width: 100%;
    min-width: 0;
    color: var(--report-text);
}

.sv-report *,
.sv-report *::before,
.sv-report *::after {
    box-sizing: border-box;
}

.sv-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    margin-bottom: 18px;
    border: 1px solid #d7e8f6;
    border-radius: 17px;
    background: linear-gradient(115deg, #edf7ff 0%, #ffffff 70%);
    box-shadow: 0 8px 25px rgba(7, 86, 165, .06);
}

.sv-report-eyebrow {
    color: #3196d2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.sv-report-header h1 {
    margin: 7px 0;
    color: var(--report-blue-dark);
    font-size: clamp(20px, 2.5vw, 27px);
    font-weight: 850;
    line-height: 1.35;
}

.sv-report-header p {
    margin: 0;
    color: var(--report-muted);
    font-size: 13px;
    line-height: 1.6;
}

.sv-report-header-icon {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    display: grid;
    place-items: center;
    border: 1px solid #d5e8f7;
    border-radius: 18px;
    background: #ffffff;
    font-size: 31px;
    box-shadow: 0 5px 15px rgba(7, 86, 165, .08);
}

.sv-report-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid #b9dfc8;
    border-radius: 10px;
    color: #176b3b;
    background: #effaf3;
    font-size: 13px;
    line-height: 1.6;
}

.sv-report-message.error {
    border-color: #f1c3c3;
    color: #a52e2e;
    background: #fff3f3;
}

.sv-report-message.loading {
    border-color: #c6def4;
    color: #175c96;
    background: #f0f7ff;
}

.sv-report-profile {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 19px;
}

.sv-report-profile-item {
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid var(--report-border);
    border-radius: 12px;
    background: #ffffff;
}

.sv-report-profile-item span {
    display: block;
    margin-bottom: 7px;
    color: var(--report-muted);
    font-size: 11px;
    font-weight: 600;
}

.sv-report-profile-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--report-blue-dark);
    font-size: 13px;
    font-weight: 750;
}

.sv-report-form-card,
.sv-report-list-section {
    padding: 22px;
    margin-bottom: 19px;
    border: 1px solid var(--report-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(30, 65, 100, .045);
}

.sv-report-section-heading,
.sv-report-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.sv-report-section-heading > div,
.sv-report-editor-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sv-report-step {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(145deg, #1686ca, #0756a5);
    font-size: 12px;
    font-weight: 850;
}

.sv-report-section-heading h2,
.sv-report-editor-heading h2 {
    margin: 0;
    color: var(--report-blue-dark);
    font-size: 16px;
    font-weight: 800;
}

.sv-report-section-heading p,
.sv-report-editor-heading p {
    margin: 4px 0 0;
    color: var(--report-muted);
    font-size: 11px;
    line-height: 1.5;
}

.sv-report-mode,
.sv-report-count {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid #d8e9f7;
    border-radius: 20px;
    color: var(--report-blue);
    background: #f0f7fd;
    font-size: 11px;
    font-weight: 700;
}

.sv-report-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 24px;
}

.sv-report-field {
    display: block;
    min-width: 0;
}

.sv-report-field-full {
    grid-column: 1 / -1;
}

.sv-report-field > span {
    display: block;
    margin-bottom: 7px;
    color: #354b61;
    font-size: 12px;
    font-weight: 750;
}

.sv-report-field > span b {
    color: #d74c4c;
}

.sv-report-field input,
.sv-report-field select {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #d6e1eb;
    border-radius: 8px;
    outline: none;
    color: #263b50;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.sv-report-field input:focus,
.sv-report-field select:focus {
    border-color: #3998d4;
    box-shadow: 0 0 0 3px rgba(57, 152, 212, .12);
}

.sv-report-editor-section {
    padding-top: 20px;
    border-top: 1px solid #edf1f5;
}

.sv-report-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
    border: 1px solid #dce6ef;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #f6f9fc;
}

.sv-report-toolbar button {
    min-width: 34px;
    height: 33px;
    padding: 0 9px;
    border: 1px solid #dbe5ed;
    border-radius: 6px;
    color: #40566c;
    background: #ffffff;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: .18s ease;
}

.sv-report-toolbar button:hover {
    border-color: #8dbce0;
    color: var(--report-blue);
    background: #edf6fd;
}

.sv-report-toolbar .sv-report-tool-primary {
    padding: 0 12px;
    border-color: #c8dff1;
    color: #0756a5;
    background: #edf6fd;
    font-weight: 750;
}

.sv-report-toolbar select {
    height: 33px;
    max-width: 145px;
    padding: 0 8px;
    border: 1px solid #dbe5ed;
    border-radius: 6px;
    color: #40566c;
    background: #ffffff;
    font-size: 11px;
}

.sv-report-toolbar-divider {
    width: 1px;
    height: 23px;
    margin: 0 3px;
    background: #dce5ed;
}

.sv-report-color {
    position: relative;
    width: 34px;
    height: 33px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe5ed;
    border-radius: 6px;
    color: #334b62;
    background: #ffffff;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}

.sv-report-color input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sv-report-editor-wrap {
    overflow: hidden;
    border: 1px solid #dce6ef;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
}

.sv-report-editor {
    min-height: 360px;
    padding: 22px;
    outline: none;
    color: #26384a;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.sv-report-editor:empty::before {
    content: attr(data-placeholder);
    color: #a3afbb;
    pointer-events: none;
}

.sv-report-editor h1,
.sv-report-editor h2,
.sv-report-editor h3 {
    color: #163f68;
    line-height: 1.4;
}

.sv-report-editor img,
.sv-report-preview-content img {
    max-width: 100%;
    height: auto;
}

.sv-report-editor table,
.sv-report-preview-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.sv-report-editor td,
.sv-report-editor th,
.sv-report-preview-content td,
.sv-report-preview-content th {
    padding: 8px;
    border: 1px solid #cbd5e1;
}

.sv-report-editor a,
.sv-report-preview-content a {
    color: #0756a5;
    overflow-wrap: anywhere;
}

.sv-report-editor-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: #71869a;
    font-size: 11px;
    line-height: 1.6;
}

.sv-report-editor-note span:first-child {
    flex-shrink: 0;
}

.sv-report-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.sv-report-btn {
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: .2s ease;
}

.sv-report-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.sv-report-btn-light {
    border-color: #d7e1ea;
    color: #526579;
    background: #ffffff;
}

.sv-report-btn-light:hover {
    background: #f3f6f9;
}

.sv-report-btn-preview {
    border-color: #c9dff1;
    color: #0756a5;
    background: #edf6fd;
}

.sv-report-btn-preview:hover {
    background: #dceefb;
}

.sv-report-btn-submit {
    color: #ffffff;
    background: linear-gradient(135deg, #1688cc, #0756a5);
    box-shadow: 0 4px 10px rgba(7, 86, 165, .15);
}

.sv-report-btn-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.sv-report-list {
    display: grid;
    gap: 11px;
}

.sv-report-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid #e0e9f1;
    border-radius: 11px;
    background: #ffffff;
    transition: .2s ease;
}

.sv-report-card:hover {
    border-color: #b9d7ed;
    box-shadow: 0 5px 15px rgba(7, 86, 165, .055);
}

.sv-report-card-index {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #0756a5;
    background: #edf6fd;
    font-size: 13px;
    font-weight: 850;
}

.sv-report-card-main {
    min-width: 0;
}

.sv-report-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 6px;
}

.sv-report-card-tags span {
    color: #668097;
    font-size: 10px;
}

.sv-report-card-main h3 {
    margin: 0;
    color: #173f65;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.sv-report-card-main p {
    margin: 5px 0 0;
    color: #7a8998;
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sv-report-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.sv-report-card-actions button {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #dce6ef;
    border-radius: 6px;
    color: #486176;
    background: #ffffff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.sv-report-card-actions button:hover {
    border-color: #a9cbe5;
    color: #0756a5;
    background: #f0f7fd;
}

.sv-report-card-actions button[data-action="delete"]:hover {
    border-color: #f0caca;
    color: #b53636;
    background: #fff4f4;
}

.sv-report-empty {
    padding: 35px 15px;
    border: 1px dashed #cbd9e6;
    border-radius: 11px;
    text-align: center;
    background: #fafcfe;
}

.sv-report-empty > span {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
}

.sv-report-empty strong {
    display: block;
    color: #38536c;
    font-size: 13px;
}

.sv-report-empty p {
    margin: 6px 0 0;
    color: #8292a2;
    font-size: 11px;
}


/* LINK DIALOG */

.sv-report-dialog,
.sv-report-preview-modal {
    position: fixed;
    z-index: 99990;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.sv-report-dialog[hidden],
.sv-report-preview-modal[hidden] {
    display: none !important;
}

.sv-report-dialog-backdrop,
.sv-report-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 48, .58);
    backdrop-filter: blur(3px);
}

.sv-report-dialog-card {
    position: relative;
    z-index: 1;
    width: min(100%, 490px);
    padding: 22px;
    border: 1px solid #e0e8ef;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
}

.sv-report-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px;
}

.sv-report-dialog-heading h3 {
    margin: 0;
    color: #123f69;
    font-size: 17px;
}

.sv-report-dialog-heading p {
    margin: 5px 0 0;
    color: #7a8b9c;
    font-size: 11px;
    line-height: 1.5;
}

.sv-report-dialog-heading > button,
.sv-report-preview-header > button {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 0;
    border-radius: 8px;
    color: #5a6d7e;
    background: #f0f4f7;
    font-size: 23px;
    cursor: pointer;
}

.sv-report-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}


/* PREVIEW */

.sv-report-preview-window {
    position: relative;
    z-index: 1;
    width: min(100%, 1000px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.sv-report-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 21px;
    border-bottom: 1px solid #e4ebf1;
    background: #f8fbfe;
}

.sv-report-preview-header span {
    color: #3996ce;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.8px;
}

.sv-report-preview-header h2 {
    margin: 4px 0 0;
    color: #123f69;
    font-size: 17px;
}

.sv-report-preview-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 15px 21px;
    border-bottom: 1px solid #e8eef3;
}

.sv-report-preview-meta > div {
    min-width: 0;
}

.sv-report-preview-meta span {
    display: block;
    margin-bottom: 4px;
    color: #8090a0;
    font-size: 10px;
}

.sv-report-preview-meta strong {
    display: block;
    color: #294a67;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.sv-report-preview-meta .sv-report-preview-title {
    grid-column: 1 / -1;
}

.sv-report-preview-content {
    min-height: 180px;
    padding: 25px;
    overflow: auto;
    color: #26384a;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.sv-report-preview-content iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 8px;
    background: #f2f5f8;
}

.sv-report-preview-content .sv-report-resource {
    margin: 18px 0;
}

.sv-report-preview-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px;
    border-top: 1px solid #e4ebf1;
    background: #fafcfe;
}

body.sv-report-modal-open {
    overflow: hidden;
}


/* EMBEDDED RESOURCE */

.sv-report-resource {
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid #dce6ef;
    border-radius: 10px;
    background: #ffffff;
}

.sv-report-resource-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-bottom: 1px solid #e5edf4;
    background: #f5f9fc;
    font-size: 12px;
}

.sv-report-resource-heading strong {
    min-width: 0;
    color: #284b69;
    overflow-wrap: anywhere;
}

.sv-report-resource-heading a {
    flex-shrink: 0;
    color: #0756a5;
    font-size: 11px;
    font-weight: 700;
}

.sv-report-resource-frame {
    width: 100%;
    background: #f2f5f8;
}

.sv-report-resource-frame iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}


/* RESPONSIVE */

@media (max-width: 800px) {
    .sv-report-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .sv-report-card-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .sv-report-preview-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-report-preview-content iframe,
    .sv-report-resource-frame iframe {
        min-height: 350px;
        height: 55vh;
    }
}

@media (max-width: 600px) {
    .sv-report-header {
        padding: 18px;
    }

    .sv-report-header-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 13px;
        font-size: 24px;
    }

    .sv-report-profile {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sv-report-profile-item {
        padding: 11px 13px;
    }

    .sv-report-form-card,
    .sv-report-list-section {
        padding: 15px;
    }

    .sv-report-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sv-report-field-full {
        grid-column: auto;
    }

    .sv-report-section-heading,
    .sv-report-editor-heading {
        align-items: flex-start;
    }

    .sv-report-mode,
    .sv-report-count {
        font-size: 9px;
        padding: 6px 8px;
    }

    .sv-report-toolbar {
        gap: 5px;
        padding: 7px;
    }

    .sv-report-toolbar button {
        min-width: 31px;
        height: 31px;
        padding: 0 7px;
    }

    .sv-report-toolbar .sv-report-tool-primary {
        padding: 0 8px;
        font-size: 10px;
    }

    .sv-report-editor {
        min-height: 300px;
        padding: 15px;
        font-size: 13px;
    }

    .sv-report-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-report-form-actions button {
        width: 100%;
        padding: 0 8px;
    }

    .sv-report-form-actions [data-report-submit] {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .sv-report-card {
        padding: 12px;
        gap: 10px;
    }

    .sv-report-card-actions button {
        flex: 1;
    }

    .sv-report-preview-window {
        max-height: 95vh;
    }

    .sv-report-preview-meta {
        padding: 12px;
        gap: 9px;
    }

    .sv-report-preview-content {
        padding: 15px;
    }

    .sv-report-preview-content iframe,
    .sv-report-resource-frame iframe {
        min-height: 280px;
        height: 48vh;
    }

    .sv-report-dialog-card {
        padding: 17px;
    }
}

/* =====================================================
   BÁO CÁO THỰC HÀNH – MEDIA LINKS
===================================================== */

.sv-report-media-groups {
    display: grid;
    gap: 15px;
    margin: 20px 0 8px;
    width: 100%;
    min-width: 0;
}

.sv-report-media-group {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dce7f1;
    border-radius: 11px;
    background: #fbfdff;
}

.sv-report-media-group h3 {
    margin: 0 0 10px;
    color: #174a78;
    font-size: 13px;
}

.sv-report-media-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.sv-report-media-add-row input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #d6e1eb;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
}

.sv-report-media-add-row button,
.sv-report-media-item-head button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #c9dff1;
    border-radius: 7px;
    color: #0756a5;
    background: #edf6fd;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sv-report-media-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.sv-report-media-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0e9f1;
    border-radius: 9px;
    background: #fff;
}

.sv-report-media-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sv-report-media-item-head strong {
    color: #294a67;
    font-size: 12px;
}

.sv-report-media-item-head button {
    min-height: 29px;
    border-color: #f0d1d1;
    color: #a63838;
    background: #fff5f5;
    font-size: 10px;
}

.sv-report-media-url {
    margin: 7px 0;
    color: #71869a;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.sv-report-media-player,
.sv-report-preview-media-item {
    width: 100%;
    min-width: 0;
}

.sv-report-media-player audio,
.sv-report-preview-media-item audio {
    display: block;
    width: 100%;
    max-width: 100%;
}

.sv-report-media-player video,
.sv-report-preview-media-item video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 520px;
    border-radius: 8px;
    background: #111;
}

.sv-report-media-player iframe,
.sv-report-preview-media-item iframe {
    display: block;
    width: 100%;
    height: clamp(220px, 48vw, 480px);
    border: 0;
    border-radius: 8px;
    background: #f2f5f8;
}

.sv-report-preview-media-group {
    width: 100%;
    min-width: 0;
    margin: 24px 0 0;
    padding-top: 17px;
    border-top: 1px solid #e5edf4;
}

.sv-report-preview-media-group > h3 {
    margin: 0 0 12px;
    color: #174a78;
    font-size: 15px;
}

.sv-report-preview-media-item {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #e0e9f1;
    border-radius: 9px;
    background: #fff;
}

.sv-report-preview-media-label {
    margin-bottom: 8px;
    color: #49647d;
    font-size: 11px;
    font-weight: 700;
}

/* =====================================================
   REPORT DOCUMENT – PDF / PPTX / FLIPHTML5 / DRIVE
   Một quy tắc thống nhất cho trình soạn thảo và Preview
===================================================== */

.sv-report .sv-report-editor-wrap,
.sv-report .sv-report-editor,
.sv-report .sv-report-preview-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.sv-report .sv-report-editor .sv-report-resource,
.sv-report .sv-report-preview-content .sv-report-resource {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 18px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.sv-report .sv-report-resource-heading {
    width: 100%;
    box-sizing: border-box;
}

.sv-report .sv-report-resource-frame {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.sv-report .sv-report-resource-frame iframe {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 700px !important;
    min-height: 700px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

/* Preview */
.sv-report .sv-report-preview-content .sv-report-resource {
    width: 100% !important;
}

/* Tablet */
@media (max-width: 800px) {
    .sv-report .sv-report-resource-frame iframe {
        height: 600px !important;
        min-height: 600px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .sv-report .sv-report-resource-frame iframe {
        height: 500px !important;
        min-height: 500px !important;
    }
}

/* =====================================================
   MP3 / MP4 / YOUTUBE – 40% WIDTH
===================================================== */

.sv-report .sv-report-media-player audio,
.sv-report .sv-report-media-player video,
.sv-report .sv-report-media-player iframe,
.sv-report .sv-report-preview-media-item audio,
.sv-report .sv-report-preview-media-item video,
.sv-report .sv-report-preview-media-item iframe {
    display: block;
    width: 40% !important;
    max-width: 40% !important;
    box-sizing: border-box;
}

.sv-report .sv-report-media-player audio,
.sv-report .sv-report-preview-media-item audio {
    height: 40px;
}

.sv-report .sv-report-media-player video,
.sv-report .sv-report-preview-media-item video {
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    background: #111;
}

.sv-report .sv-report-media-player iframe,
.sv-report .sv-report-preview-media-item iframe {
    height: 250px;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .sv-report .sv-report-media-player audio,
    .sv-report .sv-report-media-player video,
    .sv-report .sv-report-media-player iframe,
    .sv-report .sv-report-preview-media-item audio,
    .sv-report .sv-report-preview-media-item video,
    .sv-report .sv-report-preview-media-item iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}



/* =========================================
   CHỨNG CHỈ SINH VIÊN
========================================= */

.student-certificate-page {
    width: 100%;
    min-width: 0;
    padding: 18px;
    box-sizing: border-box;
    color: #183451;
}

.student-certificate-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.student-certificate-toolbar h2 {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 800;
    color: #183451;
}

.student-certificate-toolbar p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.student-certificate-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.student-certificate-controls label {
    font-size: 13px;
    font-weight: 600;
}

.student-certificate-controls select {
    min-width: 190px;
    max-width: 300px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #183451;
}

.student-certificate-controls button {
    padding: 10px 15px;
    border: 0;
    border-radius: 7px;
    background: #183451;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.student-certificate-controls button:hover {
    background: #284e70;
}

.student-certificate-message {
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    text-align: center;
    font-size: 14px;
}

.student-certificate-message[hidden] {
    display: none;
}

.student-certificate-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

/* Khung chứng nhận */

.student-certificate-paper {
    width: 100%;
    max-width: 1050px;
    margin: 20px auto;
    padding: 14px;
    box-sizing: border-box;
    background: #f1eee5;
    box-shadow: 0 8px 28px rgba(15, 35, 55, 0.15);
}

.student-certificate-paper[hidden] {
    display: none;
}

.student-certificate-border {
    padding: 9px;
    border: 3px double #b99a52;
    background: #fbf8ef;
}

.student-certificate-inner {
    min-height: 590px;
    padding: 30px 35px;
    border: 1px solid #d6bd80;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 45%, rgba(205, 180, 117, 0.08), transparent 45%),
        #fbf8ef;
}

.student-certificate-brand {
    color: #a17b31;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 5px;
}

.student-certificate-title {
    margin-top: 18px;
}

.student-certificate-main-title {
    color: #183451;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.1;
}

.student-certificate-sub-title {
    margin-top: 5px;
    color: #a17b31;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    letter-spacing: 8px;
}

.student-certificate-vietnamese {
    margin-top: 12px;
    color: #756443;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.student-certificate-divider {
    width: 70%;
    max-width: 480px;
    margin: 19px auto;
    border-top: 1px solid #c7a85e;
    position: relative;
    color: #b18a35;
    font-size: 18px;
    line-height: 0;
}

.student-certificate-divider span {
    position: relative;
    top: -1px;
    padding: 0 12px;
    background: #fbf8ef;
}

.student-certificate-presented {
    color: #756443;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
}

.student-certificate-avatar {
    width: 94px;
    height: 94px;
    margin: 15px auto 8px;
    border: 3px solid #c7a85e;
    border-radius: 50%;
    overflow: hidden;
    background: #e8dfc9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-certificate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-certificate-avatar img[hidden],
.student-certificate-avatar [hidden] {
    display: none;
}

.student-certificate-avatar div {
    font-size: 37px;
}

.student-certificate-name {
    margin-top: 5px;
    color: #183451;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 34px);
    font-style: italic;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-certificate-class {
    margin-top: 8px;
    color: #756443;
    font-size: 14px;
}

.student-certificate-subject {
    margin-top: 9px;
    color: #183451;
    font-size: 13px;
    font-weight: 700;
}

.student-certificate-achievement-title {
    margin-top: 20px;
    color: #a17b31;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.student-certificate-achievement {
    width: 85%;
    margin-top: 9px;
    color: #4b463a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.student-certificate-bottom {
    width: 100%;
    margin-top: auto;
    padding-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 12px;
}

.student-certificate-date,
.student-certificate-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #756443;
    font-size: 10px;
    letter-spacing: 1px;
}

.student-certificate-date strong,
.student-certificate-signature strong {
    color: #183451;
    font-size: 11px;
    letter-spacing: 0;
}

.student-certificate-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a17b31;
    font-size: 11px;
    letter-spacing: 1px;
}

.student-certificate-seal-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 5px;
    border: 2px solid #b18a35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b18a35;
    font-size: 29px;
}

.student-certificate-seal small {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 0;
}

/* Responsive */

@media (max-width: 650px) {
    .student-certificate-page {
        padding: 10px;
    }

    .student-certificate-toolbar {
        align-items: flex-start;
    }

    .student-certificate-controls {
        width: 100%;
    }

    .student-certificate-controls select {
        flex: 1;
        min-width: 0;
    }

    .student-certificate-paper {
        padding: 6px;
    }

    .student-certificate-border {
        padding: 5px;
    }

    .student-certificate-inner {
        min-height: 560px;
        padding: 22px 12px;
    }

    .student-certificate-brand {
        letter-spacing: 3px;
    }

    .student-certificate-sub-title {
        font-size: 17px;
        letter-spacing: 4px;
    }

    .student-certificate-vietnamese {
        font-size: 9px;
        line-height: 1.6;
    }

    .student-certificate-divider {
        width: 85%;
    }

    .student-certificate-presented {
        letter-spacing: 2px;
    }

    .student-certificate-achievement {
        width: 95%;
        font-size: 14px;
    }

    .student-certificate-bottom {
        gap: 5px;
    }

    .student-certificate-date,
    .student-certificate-signature {
        font-size: 8px;
        letter-spacing: 0;
    }

    .student-certificate-date strong,
    .student-certificate-signature strong {
        font-size: 9px;
    }

    .student-certificate-seal-icon {
        width: 42px;
        height: 42px;
        font-size: 23px;
    }
}

/* In chứng chỉ */

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    body * {
        visibility: hidden !important;
    }

    .student-certificate-paper,
    .student-certificate-paper * {
        visibility: visible !important;
    }

    .student-certificate-paper {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: #fbf8ef !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .student-certificate-border {
        padding: 8px !important;
    }

    .student-certificate-inner {
        min-height: 175mm !important;
        padding: 18px 30px !important;
    }

    .student-certificate-paper[hidden] {
        display: none !important;
    }
}

/* FIX: Khung chọn ảnh trong form hồ sơ sinh viên */
.student-profile-page form > section.student-profile-avatar {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    padding: 15px 0 25px;
    margin: 0 0 20px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #e5eaf0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 600px) {
    .student-profile-page form > section.student-profile-avatar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Giới hạn kích thước ảnh đại diện trong form hồ sơ */
.student-profile-page .student-profile-avatar-preview {
    width: 120px;
    height: 120px;
    min-width: 120px;
    flex: 0 0 120px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
}

.student-profile-page .student-profile-avatar-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Englishcommercedn — Student Oral Exam
   CSS độc lập, chỉ tác động bên trong #student-oral-exam. */
#student-oral-exam.student-oral-exam {
  --so-ink: #17243b;
  --so-muted: #68758a;
  --so-line: #e4eaf2;
  --so-blue: #1769d2;
  --so-blue-dark: #1054ae;
  --so-blue-soft: #edf5ff;
  --so-orange: #f39a32;
  --so-green: #15945d;
  --so-green-soft: #eaf8f1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
  color: var(--so-ink);
  font-family: inherit;
}
#student-oral-exam [hidden] { display: none !important; }
#student-oral-exam * { box-sizing: border-box; }

#student-oral-exam .student-oral-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 18px 22px; border: 1px solid var(--so-line);
  border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(23, 45, 78, .05);
}
#student-oral-exam .student-oral-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
#student-oral-exam .student-oral-brand-mark {
  display: grid; place-items: center; flex: 0 0 48px; height: 48px;
  border-radius: 14px; color: #fff; font-weight: 900; letter-spacing: .04em;
  background: linear-gradient(135deg, #1769d2, #f39a32);
}
#student-oral-exam .student-oral-eyebrow, #student-oral-exam .student-oral-kicker {
  color: var(--so-blue); font-size: 10px; font-weight: 800; letter-spacing: .14em;
}
#student-oral-exam .student-oral-header h2 { margin: 4px 0; font-size: clamp(16px, 2vw, 21px); line-height: 1.25; }
#student-oral-exam .student-oral-header p { margin: 0; color: var(--so-muted); font-size: 13px; }

#student-oral-exam .student-oral-intro { padding: 34px 12px 24px; text-align: center; }
#student-oral-exam .student-oral-intro h1 { margin: 8px 0; font-size: clamp(25px, 4vw, 34px); letter-spacing: .015em; }
#student-oral-exam .student-oral-intro p { max-width: 650px; margin: 0 auto; color: var(--so-muted); line-height: 1.65; }

#student-oral-exam .student-oral-card {
  margin: 0 0 20px; padding: 24px; border: 1px solid var(--so-line);
  border-radius: 18px; background: #fff; box-shadow: 0 9px 30px rgba(23, 45, 78, .055);
}
#student-oral-exam .student-oral-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
#student-oral-exam .student-oral-step {
  display: grid; place-items: center; flex: 0 0 42px; height: 42px;
  border-radius: 13px; background: var(--so-blue-soft); color: var(--so-blue);
  font-size: 15px; font-weight: 900;
}
#student-oral-exam .student-oral-step-live { color: var(--so-green); background: var(--so-green-soft); }
#student-oral-exam .student-oral-section-heading h3 { margin: 0 0 4px; font-size: 19px; }
#student-oral-exam .student-oral-section-heading p { margin: 0; color: var(--so-muted); font-size: 13px; line-height: 1.5; }

#student-oral-exam .student-oral-teacher-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#student-oral-exam .student-oral-teacher-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 16px; text-align: left; border: 1px solid var(--so-line);
  border-radius: 14px; background: #fff; color: var(--so-ink); cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
#student-oral-exam .student-oral-teacher-option:hover { border-color: #9bc3f4; background: #f8fbff; }
#student-oral-exam .student-oral-teacher-option.is-selected {
  border-color: var(--so-blue); background: var(--so-blue-soft);
  box-shadow: 0 0 0 2px rgba(23, 105, 210, .08);
}
#student-oral-exam .student-oral-teacher-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
#student-oral-exam .student-oral-teacher-avatar {
  display: grid; place-items: center; flex: 0 0 42px; height: 42px;
  border-radius: 50%; background: #eaf2ff; color: var(--so-blue); font-weight: 850;
}
#student-oral-exam .student-oral-teacher-copy { min-width: 0; }
#student-oral-exam .student-oral-teacher-copy strong { display: block; margin-bottom: 4px; font-size: 14px; }
#student-oral-exam .student-oral-teacher-copy small { display: block; color: var(--so-muted); font-size: 12px; line-height: 1.45; }
#student-oral-exam .student-oral-online {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  color: var(--so-green); font-size: 11px; font-weight: 850;
}
#student-oral-exam .student-oral-online::before, #student-oral-exam .student-oral-live-dot {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #1ab477; box-shadow: 0 0 0 3px rgba(26, 180, 119, .12);
}
#student-oral-exam .student-oral-empty {
  display: grid; justify-items: center; gap: 7px; padding: 28px 16px;
  border: 1px dashed #cbd7e6; border-radius: 14px; color: var(--so-muted); text-align: center;
}
#student-oral-exam .student-oral-empty strong { color: var(--so-ink); }
#student-oral-exam .student-oral-empty-icon { color: var(--so-blue); font-size: 28px; }
#student-oral-exam .student-oral-compat-select {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
#student-oral-exam .student-oral-filter-panel {
}

/* =========================================
   THÔNG BÁO CỦA GIÁO VIÊN
========================================= */

.sv-notice-page {
    width: 100%;
    min-width: 0;
    padding: 22px;
    color: #26384d;
    background: #fff;
    border: 1px solid #e1e9f2;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(30, 64, 100, 0.06);
    box-sizing: border-box;
}

.sv-notice-page *,
.sv-notice-page *::before,
.sv-notice-page *::after {
    box-sizing: border-box;
}

/* Header */

.sv-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eef5;
}

.sv-notice-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #e58a26;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sv-notice-header h2 {
    margin: 0 0 6px;
    color: #174b7a;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.sv-notice-header p {
    margin: 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
}

.sv-notice-count {
    flex-shrink: 0;
    padding: 8px 13px;
    border: 1px solid #cfe2f5;
    border-radius: 30px;
    background: #edf6ff;
    color: #205b91;
    font-size: 12px;
    font-weight: 750;
}

/* Thông báo trạng thái */

.sv-notice-message {
    margin: 12px 0 16px;
    padding: 11px 14px;
    border: 1px solid #d8e9fa;
    border-radius: 9px;
    background: #f0f7ff;
    color: #245d91;
    font-size: 13px;
    line-height: 1.5;
}

.sv-notice-message.is-error {
    border-color: #f3cccc;
    background: #fff2f2;
    color: #b42318;
}

.sv-notice-message[hidden] {
    display: none !important;
}

/* Bảng thông báo */

.sv-notice-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe7f0;
    border-radius: 11px;
    background: #fff;
}

.sv-notice-table {
    width: 100%;
    min-width: 850px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.sv-notice-table th {
    padding: 14px 12px;
    background: #174b7a;
    color: #fff;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .35px;
    white-space: nowrap;
}

.sv-notice-table th:first-child {
    border-top-left-radius: 9px;
}

.sv-notice-table th:last-child {
    border-top-right-radius: 9px;
}

.sv-notice-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e9eef4;
    color: #34465b;
    font-size: 13px;
    line-height: 1.55;
    vertical-align: middle;
}

.sv-notice-table tbody tr:last-child td {
    border-bottom: 0;
}

.sv-notice-row {
    background: #fff;
    transition: background .18s ease;
}

.sv-notice-row:hover {
    background: #f5f9fd;
}

/* Thông báo mới */

.sv-notice-row.is-new {
    background: #edf6ff;
}

.sv-notice-row.is-new td {
    color: #183f69;
    font-weight: 650;
}

.sv-notice-preview {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sv-notice-new-label {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #fff0d9;
    color: #a65b0b;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

/* Nút xem */

.sv-notice-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 8px 14px;
    border: 0;
    border-radius: 7px;
    background: #1765a2;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.sv-notice-view-btn:hover {
    background: #104675;
    transform: translateY(-1px);
}

/* Không có dữ liệu */

.sv-notice-empty {
    padding: 35px 15px !important;
    color: #8492a4 !important;
    text-align: center;
    font-weight: 450 !important;
}

/* Modal xem thông báo */

.sv-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12, 29, 48, .62);
    backdrop-filter: blur(3px);
}

.sv-notice-modal {
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    animation: svNoticeModalIn .2s ease-out;
}

@keyframes svNoticeModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sv-notice-modal-heading {
    flex-shrink: 0;
    padding: 20px 23px;
    background: #174b7a;
    color: #fff;
}

.sv-notice-modal-heading h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.sv-notice-modal-meta {
    color: #d8e9f8;
    font-size: 12px;
    line-height: 1.5;
}

.sv-notice-modal-body {
    padding: 23px;
    overflow-y: auto;
    color: #34465b;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sv-notice-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 13px 20px;
    border-top: 1px solid #e8edf3;
    background: #fbfcfe;
}

.sv-notice-close {
    min-width: 90px;
    padding: 9px 20px;
    border: 0;
    border-radius: 7px;
    background: #1765a2;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease;
}

.sv-notice-close:hover {
    background: #104675;
}

/* Responsive */

@media (max-width: 600px) {
    .sv-notice-page {
        padding: 13px;
        border-radius: 10px;
    }

    .sv-notice-header {
        align-items: flex-start;
        gap: 10px;
    }

    .sv-notice-header h2 {
        font-size: 18px;
    }

    .sv-notice-count {
        font-size: 11px;
    }

    .sv-notice-modal {
        max-height: 92vh;
        border-radius: 12px;
    }

    .sv-notice-modal-heading,
    .sv-notice-modal-body {
        padding: 16px;
    }

    .sv-notice-modal-heading h3 {
        font-size: 16px;
    }
}


/* Mobile usability pass 1: responsive header and content containment */

@media (max-width: 700px) {
  .student-page,
  .student-header,
  .student-layout,
  .student-sidebar,
  .student-content,
  .student-tab-container {
    min-width: 0;
    max-width: 100%;
  }

  .student-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .student-header-actions > a,
  .student-header-actions > button,
  .student-btn,
  .student-logout-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
  }

  .student-content,
  .student-tab-container {
    overflow-x: hidden;
  }

  .student-tab-container img,
  .student-tab-container video,
  .student-tab-container iframe {
    max-width: 100%;
  }

  .student-tab-container table {
    max-width: 100%;
  }

  .student-tab-container input,
  .student-tab-container select,
  .student-tab-container textarea {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .student-header-actions {
    gap: 6px;
  }

  .student-header-actions > a,
  .student-header-actions > button {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 11px;
  }

  .student-tab-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Mobile usability pass 2: internal student tabs */
@media (max-width: 700px) {
  #studentTabContent {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #studentTabContent :where(.dm-filters, .dm-review-meta, .form-grid, .bg-form-grid, .profile-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #studentTabContent :where(table) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #studentTabContent :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  #studentTabContent :where(button, .dm-action, .dm-refresh, .dm-close) {
    min-height: 40px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #studentTabContent :where(.dm-toolbar, .dm-review-top, .dssv-header, .dssv-tools) {
    flex-wrap: wrap;
    align-items: stretch;
  }

  #studentTabContent :where(.dm-table-wrap, .table-wrap, .table-responsive) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #studentTabContent :where(img, video, iframe, canvas) {
    max-width: 100%;
  }

  #studentTabContent :where([contenteditable="true"]) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 380px) {
  #studentTabContent :where(.dm-review, .dm-exam-content) {
    padding: 10px;
  }
}
