/* header */
.navbar-nav.mr-lg-4.w-100 h3 {
    margin-top: 8px;
}

.navbar-nav.mr-lg-4.w-100 h3 a {
    font-size: 24px;
    text-shadow: 1px 1px 2px black;
    color: white;
    text-decoration: none;
}

/* login */
#page-login {
    background-image: url(../images/background.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.content-wrapper-login {
    padding: 1rem 1.04rem;
    width: 100%;
    -webkit-flex-grow: 1;
    flex-grow: 1;
}

.auth .auth-form-light {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 1px -1px 18px rgb(151 151 151 / 45%);
}

.auth form .form-group .form-control {
    font-size: .9375rem;
    box-shadow: 0 0 0 100px ivory inset !important;
    border-color: #e5dfa1 !important;
    border-radius: 6px !important;
}

#page-login .form-control-lg {
    min-height: 3rem;
}

.btn-lg {
    padding: 0rem 3rem !important;
    color: white;
    font-weight: 600;
    width: 100%;
}

.btn-sm,
.btn-group-sm>.btn {
    padding: 0.25rem 0.5rem !important;
}

.navbar .navbar-brand-wrapper .navbar-brand-inner-wrapper .navbar-brand img {
    width: 110px;
    max-width: 100%;
    margin: auto;
    vertical-align: middle;
}

.brand-logo {
    text-align: center;
}

.brand-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-top img {
    height: 15px;
}

.auth .brand-logo {
    margin-bottom: 1rem;
}

.auth .brand-logo img {
    width: 60px;
}

.brand-top h3 {
    margin: 0;
    font-size: 18px !important;
}

.brand-text {
    margin-top: 10px;
}

.brand-text h2 {
    margin-top: 5px;
}

.auth .brand-text h2 {
    font-size: 20px;
    font-weight: 700;
}

/* Sidebar */
.sidebar .nav .nav-item.active>.nav-link i,
.sidebar .nav .nav-item.active>.nav-link .menu-title,
.sidebar .nav .nav-item.active>.nav-link .menu-arrow {
    color: #0d50eb !important;
}

.sidebar .nav.sub-menu .nav-item .nav-link.active {
    color: #3311f1;
    background: transparent;
    font-weight: 500;
}

.nav-link.active {
    background-color: #f3f3f3;
    font-weight: 600;
    color: #0d6efd !important;
}

.nav-link:hover,
.nav-link:focus {
    color: #0a58ca;
}

/* ===================
Dashboard
=================== */

.kpi-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 12px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

.kpi-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* ICON */
.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TITLE */
.kpi-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}

/* VALUE */
.kpi-value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* COLOR THEMES WITH GRADIENT */
.kpi-blue {
    background: linear-gradient(135deg, #e0f0ff, #ffffff);
    border-left: 4px solid #3b82f6;
}

.kpi-blue .kpi-icon {
    background: #3b82f6;
    color: #fff;
}

.kpi-blue .kpi-value {
    color: #3b82f6;
}

.kpi-green {
    background: linear-gradient(135deg, #e6fdf3, #ffffff);
    border-left: 4px solid #10b981;
}

.kpi-green .kpi-icon {
    background: #10b981;
    color: #fff;
}

.kpi-green .kpi-value {
    color: #10b981;
}

.kpi-purple {
    background: linear-gradient(135deg, #f3ebff, #ffffff);
    border-left: 4px solid #8b5cf6;
}

.kpi-purple .kpi-icon {
    background: #8b5cf6;
    color: #fff;
}

.kpi-purple .kpi-value {
    color: #8b5cf6;
}

.kpi-orange {
    background: linear-gradient(135deg, #fff4e6, #ffffff);
    border-left: 4px solid #f97316;
}

.kpi-orange .kpi-icon {
    background: #f97316;
    color: #fff;
}

.kpi-orange .kpi-value {
    color: #f97316;
}

.kpi-warning {
    background: linear-gradient(135deg, #fffdeb, #ffffff);
    border-left: 4px solid #fbbf24;
}

.kpi-warning .kpi-icon {
    background: #fbbf24;
    color: #fff;
}

.kpi-warning .kpi-value {
    color: #fbbf24;
}

.kpi-red {
    background: linear-gradient(135deg, #ffeaea, #ffffff);
    border-left: 4px solid #ef4444;
}

.kpi-red .kpi-icon {
    background: #ef4444;
    color: #fff;
}

.kpi-red .kpi-value {
    color: #ef4444;
}

/*====================
KPI GIẢNG VIÊN KÊ KHAI
=================== */

.page-body-giangvien {
    min-height: calc(100vh - 60px);
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
    padding-top: 60px;
}

.card-body h4 {
    margin-bottom: 0;
}

.alert {
    border-radius: 10px;
}

/* Giảng viên */
#table10A {
    table-layout: fixed;
    width: 100%;
}

#table10A thead th {
    vertical-align: middle;
    text-align: center;
}

#table10A thead th:not(.column-stt) {
    white-space: normal !important;
    word-wrap: break-word;
    min-width: 70px;
}

#table10A th:not(.column-stt),
#table10A td:not(.column-stt) {
    white-space: normal !important;
    word-break: break-word;
}

#table10A th.column-stt,
#table10A td.column-stt {
    width: 40px !important;
    max-width: 40px;
    min-width: 40px;
    white-space: nowrap;
    padding: 2px !important;
    text-align: center;
}

#table10A th.col-ma-lop,
#table10A td.col-ma-lop {
    width: 180px !important;
    /* chỉnh tùy bạn */
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    /* không xuống dòng */
    text-overflow: ellipsis;
    /* cắt gọn nếu dài */
}

#table10A td.col-ma-lop {
    text-align: left;
}

#table10A>thead>tr>th:not(.sorting_disabled),
#table10A>thead>tr>td:not(.sorting_disabled) {
    padding-right: 10px;
}

/* ===== HEADER CHUNG ===== */
#table10A thead.table10A-head th,
#table10C_1 thead.table10A-head th,
#table10C_2 thead.table10A-head th,
#table10C_3 thead.table10A-head th {
    background: #1f3a5f;
    /* xanh đậm hiện đại */
    color: #fff;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 3px;
}

/* ===== HÀNG 2 NHẸ HƠN ===== */
#table10A thead tr:nth-child(2) th,
#table10C_1 thead tr:nth-child(2) th,
#table10C_2 thead tr:nth-child(2) th,
#table10C_3 thead tr:nth-child(2) th {
    background: #2c5282;
}

/* ===== HÀNG 3 NHẸ HƠN NỮA ===== */
#table10A thead tr:nth-child(3) th {
    background: #6894c5;
    font-weight: 400;
}

/* hover nhẹ khi nhìn header */
#table10A thead th:hover,
#table10C_1 thead th:hover,
#table10C_2 thead th:hover,
#table10C_3 thead th:hover {
    background: #27496d;
    transition: 0.2s;
}

#tab10CSub .nav-link.active,
#tab10CSub .show>.nav-link {
    color: #fff !important;
}

#tab10CSub .nav-link {
    border-radius: 20px;
    padding: 6px 14px;
}

#tab10CSub .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

#tab10C .table {
    font-size: 13px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #f3f3f3 !important;
}

/* KPI Kê khai giờ giảng */
/* ===== KPI ROW ===== */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

/* ===== KPI CARD ===== */
.kpi-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* TEXT */
.kpi-title {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 20px;
    font-weight: bold;
}

.kpi-sub {
    font-size: 11px;
    color: #999;
}

/* ===== TABLET ===== */
@media (max-width: 992px) {
    .kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpi-value {
        font-size: 18px;
    }
}

/* RESPONSIVE */
@media (max-width:992px) {
    .kpi-card {
        margin-bottom: 15px;
    }
}

@media (max-width:768px) {
    .kpi-value {
        font-size: 24px;
    }

    .kpi-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/*==================
Modal
================= */
/* Đảm bảo khi modal mở, toàn bộ các thành phần khác không được phép cuộn */
body.modal-open,
body.swal2-shown {
    overflow: hidden !important;
    position: fixed;
    /* Thêm dòng này nếu overflow: hidden vẫn không ăn */
    width: 100%;
}

body.swal2-shown {
    position: fixed;
    width: 100%;
}

.modal-open nav.navbar {
    padding-right: 15px !important;
}

.swal2-shown nav.navbar {
    padding-right: 0px !important;
}

#formSinhVien .form-group {
    margin-bottom: 10px !important;
}

/* Alert Sweet */
.swal2-html-container {
    font-size: 16px;
}

/* Modal */
#modalDetail .nav-tabs .nav-link {
    font-weight: 600;
}

#modalDetail .nav-tabs .nav-link.active {
    background: #f7f9ff;
    border-bottom: 3px solid #4B49AC;
}

.star-rating {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
}

.progress-score {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-score-bar {
    height: 100%;
    background: #4B49AC;
}

/* Table */
table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable th:last-child,
table.table-bordered.dataTable td:last-child,
table.table-bordered.dataTable td:last-child {
    border-right-width: 1px !important;
}

.schedule-card {

    background: #fff;
    border-radius: 10px;
    padding: 15px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    border-left: 4px solid #007bff;

    transition: all .2s;

}

.schedule-card .badge {
    padding: 0 !important;
}

.schedule-card:hover {

    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}

.schedule-date {
    font-weight: 600;
    color: #333;

}

.schedule-time {
    display: inline;
    color: #555;
    width: 45% !important;
    float: left;
}

.schedule-room {

    color: #555;

}

/* lịch đã qua */
.past-class {
    opacity: 0.6;
    /* Làm mờ đi */
    background-color: #f8f9fa;
    /* Nền xám nhạt */
    filter: grayscale(80%);
    /* Giảm độ rực rỡ của màu sắc */
    border-left: 5px solid #6c757d;
    /* Viền xám */
    pointer-events: none;
}

/* lịch hôm nay */
.today-class {

    border-left: 4px solid #28a745;
    background: #fbe786;

}




/* lỊCH HỌC HÔM NAY */
.widget-lichhoc {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0px 0;
    overflow: hidden;
    font-size: 14px;
}

.widget-lichhoc a {
    text-decoration: none;
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #f8f9fc;
}

.widget-body {
    padding: 10px 12px;
}

.widget-subtitle {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4CAF50;
}

.schedule-item {
    display: flex;
    padding: 8px 5px;
    border-left: 3px solid #239cf3;
    background: #d4f3f2;
    margin-bottom: 6px;
}

.schedule-item:hover {
    background: #f8f9ff;
}

.schedule-now {
    border-left: 3px solid #ff4d4f;
    background: #fff3f3;
}

.schedule-item .schedule-time {
    display: inline;
    color: #555;
    width: 25% !important;
    float: left;
    font-weight: 600;
    color: #4B49AC;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    font-size: 12px;
}

.schedule-meta {
    font-size: 11px;
    color: #777;
}

.time-end {
    float: right;
    font-size: 12px;
    font-weight: 600;
    color: red;
}

.schedule-tomorrow .schedule-time {
    color: #28a745;
}

.no-class {
    text-align: center;
    color: #888;
    padding: 10px;
}

.blink-now {
    font-size: 9px;
    margin-left: 5px;
    animation: blinker 1.2s linear infinite;
}

#thongbaolich .nav.sub-menu {
    padding: 0.25rem 0 0.6rem 0.55rem !important;
}

/* Tab lớp học phần*/
.modal-body.body-tab-detail {
    max-height: 485px;
}

div#tab_chitiethocphan {
    max-height: 380px;
    overflow-y: scroll;
    overflow-x: hidden;
}

div#tab_danhsachsinhvien #tableDanhsachSVLopTC_wrapper {
    max-height: 380px;
}

span.note-hocphan {
    font-size: 14px;
}

/* Đánh giá khảo sát --> Sinh viên */
.intro {
    font-size: 0.9em;
    margin-bottom: 20px;
}

.rating-scale {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    text-align: center;
}

.rating-item {
    flex: 1;
    font-size: 0.85em;
}

.rating-number {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin: 0 auto 5px;
}

/* Rating 1 - đỏ */
.rating-item:nth-child(1) .rating-number {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Rating 2 - cam */
.rating-item:nth-child(2) .rating-number {
    background: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

/* Rating 3 - vàng */
.rating-item:nth-child(3) .rating-number {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
}

/* Rating 4 - xanh lá */
.rating-item:nth-child(4) .rating-number {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* Rating 5 - xanh đậm */
.rating-item:nth-child(5) .rating-number {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.rating-1 .rating-number {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.rating-2 .rating-number {
    background: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: #fff !important;
}

.rating-3 .rating-number {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #333 !important;
}

.rating-4 .rating-number {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.rating-5 .rating-number {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

td.start-point {
    font-size: 0.75em;
}

/* Table */
#tableSinhVien a,
#tableGiangVien a {
    text-decoration: none;
    border: 1px solid;
    padding: 2px 5px;
    border-radius: 4px;
}

#tableLopTinChi a {
    text-decoration: none;
}

.btn i {
    font-size: 1rem !important;
}

/* Câu hỏi */
.column-count-item {
    column-count: 2;
    margin-top: 10px !important;
}

.item-check {
    margin-top: 0 !important;
}

select#filter_nhom {
    width: 70% !important;
}

.label_filter {
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.4rem;
    vertical-align: top;
    margin-bottom: .5rem;
}

.form-control-filter {
    margin-bottom: 20px;
    margin-top: 1px;
    margin-right: 1px;
}

/* KPI sinh viên */
/* CARD CHÍNH */
.card.shadow-sm {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TIÊU ĐỀ CARD */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* STATISTIC CARDS */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fw-bold {
    font-weight: 500 !important;
    color: #020c26;
}

.form-label span {
    font-size: 12px;
    font-weight: 300;
    color: #ff0505;
}

.card-kekhai {
    background: #d8e3f96e;
    border: 1px solid #d5d8df;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-primary {
    background-color: #f0f4ff;
    color: #3b5de7;
}

.stat-success {
    background-color: #e6f9f0;
    color: #28a745;
}

.stat-danger {
    background-color: #fff0f0;
    color: #dc3545;
}

.stat-percent-progress {
    background-color: #a6e8ef;
    color: #0a376e;
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ICON STATISTIC */
.stat-icon i {
    font-size: 2.2rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* TABLE */
.card .card-body {
    padding: 1rem 1.2rem !important;
}

div#tblCauhoikhaosat {
    margin-top: 0 !important;
}

.table-responsive {
    margin-top: 1.5rem;
}

#tbllichhoc {
    overflow: hidden;
}

#tbllichhoc th {
    background-color: #f5f6fa;
    font-weight: 600;
    color: #34495e;
    text-align: center;
}

#tbllichhoc td {
    vertical-align: middle;
}

#tbllichhoc tr:hover {
    background-color: #f1f3f6;
}

#tbllichhoc .badge {
    color: #f1ff16;
    padding: 0.35em 0.65em !important;
}

/* TIẾN ĐỘ KHẢO SÁT */
.progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}


/* Thống kê khảo sát */
.stat-dashboard .stat-card {
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 20px;
}

.stat-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
    opacity: .8;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-top: 4px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
}

/* color styles */

.stat-primary {
    border-left: 5px solid #4B49AC;
}

.stat-primary .stat-title {
    color: #4B49AC;
}

.stat-primary .stat-icon {
    background: #e1e1ed;
    color: #4B49AC;
}

.stat-success {
    border-left: 5px solid #28a745;
}

.stat-success .stat-title {
    color: #28a745;
}

.stat-success .stat-icon {
    background: #e1e1ed;
    color: #28a745;
}

.stat-danger {
    border-left: 5px solid #dc3545;
}

.stat-danger .stat-title {
    color: #dc3545;
}

.stat-danger .stat-icon {
    background: #f7e6e6;
    color: #dc3545;
}


.stat-percent-progress {
    border-left: 5px solid #3d0fcb;
}

.stat-percent-progress .stat-title {
    color: #04408b;
}

.stat-percent-progress .stat-icon {
    background: #91c0f1;
    color: #343232;
}

.stat-mini .mini-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all .25s ease;
    height: 100%;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mini-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: .75;
    margin-bottom: 6px;
}

.mini-number {
    font-size: 28px;
    font-weight: 700;
}

.mini-number.small {
    font-size: 16px;
    font-weight: 600;
}

.mini-icon {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 36px;
    opacity: .15;
}

/* COLORS */

.mini-primary {
    border-left: 4px solid #4B49AC;
}

.mini-primary .mini-title {
    color: #4B49AC;
}

.mini-success {
    border-left: 4px solid #28a745;
}

.mini-success .mini-title {
    color: #28a745;
}

.mini-danger {
    border-left: 4px solid #dc3545;
}

.mini-danger .mini-title {
    color: #dc3545;
}

.mini-info {
    border-left: 4px solid #17a2b8;
}

.mini-info .mini-title {
    color: #17a2b8;
}

.tab-pane.fade.show.active {
    margin-bottom: 0px; /* 20px */
}

#modalDetail .modal-footer,
#printModal .modal-footer{
    padding: 0.5rem !important;
}
.modal-header {
    padding: 0.75rem 1rem !important;
}
.modal {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
}
/* Table permission */
/* table */

.permission-table {
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.permission-table th {
    background: #f8f9fa;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border: 1px solid #e5e5e5;
}

.permission-table td {
    border: 1px solid #eee;
    padding: 10px;
}

/* tên quyền */

.perm-name {
    text-align: left;
    font-weight: 500;
    width: 280px;
}

/* cell */

.perm-cell {
    text-align: center;
}

/* hover */

.permission-table tbody tr:hover {
    background: #f5f9ff;
}

/* checkbox */

.permission-table input[type=checkbox] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0d6efd;
}

/* role colors */

.role-superadmin {
    color: #dc3545;
}

.role-admin_dt {
    color: #0d6efd;
}

.role-admin_hc {
    color: #198754;
}

.role-giangvien {
    color: #6f42c1;
}

.role-sinhvien {
    color: #fd7e14;
}

/* sticky header */

.permission-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* responsive */

.tbl-danhsachsinhvien {
    max-height: 390px;
    overflow-y: scroll;
}

.status-radio {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-radio .form-check .form-check-label {
    margin-left: 0.3rem;
}

.status-radio .form-check {
    margin-bottom: 0;
    padding-left: 1.5em;
    margin-top: 0px;
}

#tableLopTinChi .badge {
    color: #FFF;
    border-radius: 4px;
}

.dataTables_wrapper .dataTable .btn {
    padding: 0.1rem 0.3rem !important;
    vertical-align: top;
}

.dataTables_wrapper .dataTable tbody tr td {
    padding: 0.7rem 0.5rem !important;
}

.no-bottom-card {
    margin-bottom: 0 !important;
}

.alert {
    padding: 0.7rem 1rem !important;
}

#sidebarstudents {
    position: fixed;
}

#main-panel-students {
    margin-left: 257px;
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 1rem 1rem;
    }

    .page-kekhai .col-md-2 {
        margin-bottom: 10px;
    }

    .stat-mini .col-md-3 {
        margin-bottom: 10px;
    }

    .navbar-nav.mr-lg-4.w-100 h3 {
        margin-top: 0px;
    }

    .navbar-nav.mr-lg-4.w-100 h3 a {
        font-size: 14px !important;
        margin-top: 0;
    }
}

@media (min-width: 992px) {

    .modal-lg-x {
        max-width: 90%;
    }

    .modal-lg-mid {
        max-width: 85%;
    }
}

@media (max-width: 991px) {
    #main-panel-students {
        margin-left: 0;
    }
}

/* Bảng đánh giá */
.table-khaosat {
    width: 100%;
}

.table-khaosat th,
.table-khaosat td {
    vertical-align: middle;
}

.table-khaosat .question-number {
    width: 50px;
    text-align: center;
}

.table-khaosat .question-content {
    min-width: 350px;
}

.table-khaosat .rating-cell {
    width: 55px;
    text-align: center;
}

.mobile-rating-option {
    display: inline;
}

.mobile-rating-option input {
    margin: 0;
}

.mobile-rating-option span {
    display: none;
}

@media (max-width: 767px) {

    /* Không cho bảng tạo thanh cuộn ngang */
    .survey-table-responsive {
        overflow-x: visible;
    }

    .table-khaosat {
        display: block;
        width: 100%;
        border: 0 !important;
    }

    /* Ẩn header của bảng trên mobile */
    .table-khaosat thead {
        display: none;
    }

    .table-khaosat tbody {
        display: block;
        width: 100%;
    }

    /* Mỗi câu hỏi trở thành một khối */
    .table-khaosat .question-row {
        display: block;
        width: 100%;
        margin-bottom: 18px;
        padding: 14px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fff;
    }

    /* Số thứ tự */
    .table-khaosat .question-number {
        display: inline;
        width: auto;
        padding: 0;
        border: 0;
        font-weight: 700;
        font-size: 16px;
    }

    /* Nội dung câu hỏi */
    .table-khaosat .question-content {
        display: inline;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 500;
    }

    /* 5 ô lựa chọn nằm trên một hàng */
    .table-khaosat .rating-cell {
        /*
        display: inline-block;
        width: 20%;
        padding: 0;*/
        padding: 5px;
        border: 0;
        margin-top: 12px;
    }

    /* Khu vực bấm */
    .mobile-rating-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 7px 2px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        cursor: pointer;
        background: #f8f9fa;
    }

    /* Ẩn radio mặc định */
    .mobile-rating-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* Số 1-5 */
    .mobile-rating-option span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-weight: 600;
        background: #fff;
        border: 1px solid #adb5bd;
    }

    /* Khi chọn */
    .mobile-rating-option:has(input:checked) {
        background: #e8f5e9;
        border-color: #28a745;
    }

    .mobile-rating-option:has(input:checked) span {
        background: #28a745;
        color: #fff;
        border-color: #28a745;
    }
}

/* =====================================================
   LỊCH HỌC - MOBILE CARD
   ===================================================== */

@media (max-width: 767px) {

    /* Không cho bảng tạo thanh cuộn ngang */
    .table-lichhoc-responsive {
        overflow-x: visible;
    }

    /* Ẩn bảng DataTables trên mobile */
    #tbllichhoc_wrapper {
        display: none;
    }

    /* Container card mobile */
    .mobile-course-list {
        display: block;
    }

    .mobile-course-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    /* Header */
    .mobile-course-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .mobile-course-number {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #e8f0fe;
        color: #1976d2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
    }

    .mobile-course-name {
        flex: 1;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.45;
        color: #333;
    }

    /* Thông tin */
    .mobile-course-info {
        border-top: 1px solid #eee;
        padding-top: 10px;
        margin-bottom: 12px;
    }

    .mobile-course-info-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 7px;
        font-size: 14px;
        line-height: 1.4;
    }

    .mobile-course-info-item:last-child {
        margin-bottom: 0;
    }

    .mobile-course-info-icon {
        width: 22px;
        flex: 0 0 22px;
        color: #6c757d;
    }

    .mobile-course-info-label {
        color: #777;
        margin-right: 5px;
    }

    .mobile-course-info-value {
        color: #333;
        font-weight: 500;
    }

    /* Tiến độ */
    .mobile-course-progress {
        margin-top: 12px;
    }

    .mobile-course-progress-title {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 5px;
        color: #666;
    }

    .mobile-course-progress .progress {
        height: 8px;
        border-radius: 10px;
    }

    /* Nút đánh giá */
    .mobile-course-action {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid #eee;
    }

    .mobile-course-action a,
    .mobile-course-action button {
        width: 100%;
        min-height: 30px;
        font-size: 15px;
        font-weight: 600;
    }

}


/* Desktop: không hiển thị card mobile */
@media (min-width: 768px) {

    .mobile-course-list {
        display: none;
    }

}

/* ================================
   THỐNG KÊ DASHBOARD
   ================================ */

.stat-dashboard .stat-card {
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.stat-dashboard .card-body {
    padding: 18px;
}

.stat-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

/* ================================
   MOBILE
   ================================ */

@media (max-width: 767px) {

    .stat-dashboard {
        margin-left: -6px;
        margin-right: -6px;
    }

    .stat-dashboard > div {
        width: 50%;
        flex: 0 0 50%;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .stat-dashboard .stat-card {
        min-height: 105px;
        border-radius: 10px;
    }

    .stat-dashboard .card-body {
        padding: 14px 12px;
    }

    .stat-dashboard .d-flex {
        gap: 6px;
    }

    .stat-title {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 5px;
        white-space: normal;
    }

    .stat-number {
        font-size: 23px;
        line-height: 1.2;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 20px;
    }
}
/* End */
.form-control,
.dataTables_wrapper select {
    display: block;
    width: 100%;
    padding: 0.45rem 0.75rem !important;
}

.form-control,
.dataTables_wrapper select,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    border: 1px solid #d1cece94 !important;
}

.select2-container .select2-selection--single {
    height: 36px !important;
}

