body {
    font-family: "Plus Jakarta Sans", Arial;
    font-size: var(--fs-14);
    color: var(--Light_mode-Gray_Scale-5);
    background: #eff3f6;
    /* -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none; */
}

.width-275 {
    width: 275px;
}

.width-310 {
    width: 450px;
}

.disable {
    cursor: not-allowed !important;
    opacity: 0.3;
}

/* BEGIN c-form-border */
.c-form-border {
    transition: border-color 0.3s ease-in-out;
    border-radius: 6px;
    border: 0.5px solid var(--Light_mode-Gray_Scale-70);
    background: var(--Light_mode-Gray_Scale-100);
    cursor: pointer;
}

.c-form-border .c_input {
    padding: var(--sp-12);
    transition: 0.5s;
    height: 100%;
    cursor: pointer;
    border-radius: 6px;
}

.c-form-border .c_input:disabled {
    background: var(--Light_mode-Gray_Scale-90);
}

.c-form-border .c_input:focus {
    outline: none;
    border-color: var(--Light-Primary-50);
}

.c-form-border--icon .c_input {
    -ms-flex: 1 1 auto;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    width: 1%;
    z-index: 2;
}

.c-form-border--label .c_label {
    color: #999;
    background-color: #fff;
    pointer-events: none;
    padding: 0 0.358em 0 0.358em;
    z-index: 9;
    position: absolute;
    top: 0.572em;
    left: 0.715em;
    transition: 0.5s;
}

.c-form-border--label:not(.is-empty) .c_label,
.c-form-border--label.is-focused .c_label {
    font-size: 0.786em;
    color: var(--Light-Primary-50);
    position: absolute;
    top: -0.727em;
}

.c-form-border.is-focused {
    border-color: var(--Light-Primary-50);
    background: var(--Light_mode-Gray_Scale-100);
    box-shadow: 0px 0px 2px 0px #52b8ff;
}

.c-form-border.is-error {
    margin-bottom: 1.786em;
    border-color: var(--Light-Quaternary-50);

    /* red */
    box-shadow: 0px 0px 2px 0px #f44336;
}

.c-form-border.is-error .c_label {
    color: #f55145 !important;
}

.c-form-border.is-error .c_icon+.c_error {
    left: 0.143em;
    text-align: left;
}

.c-form-border.is-error .c_icon+.c_error>span {
    left: 0;
    margin: 0;
}

.c-form-border textarea.c_input+.c_error span {
    position: absolute;
    width: max-content;
    right: 0;
    top: calc(100% + 1px);
}

.c-form-border i {
    z-index: 9;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--Light_mode-Gray_Scale-70);
    cursor: pointer;
}

.c-form-border .ts-control {
    border: none !important;
    padding: 10px var(--sp-12) !important;
}

.c-form-border .ts-control input::placeholder {
    color: #999;
}

.c-form-border:not(.disableSelect) .multi .ts-control::after {
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 20px;
    /* color: #666; */
}

.c-form-border .ts-control .remove {
    padding: 0 5px 5px 5px !important;
}

.form-box {
    position: relative;
    margin-bottom: var(--sp-16);
}

.form-box label {
    position: relative;
    margin-bottom: var(--sp-8);
    display: block;
}

.form-role {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--sp-32);
    margin-top: 0.715em;
}

.form-role .c-radio {
    margin: 0;
}

.form-button {
    margin-top: var(--sp-32);
}

.form-button .c-checkbox label {
    justify-content: flex-end;
}

.form-box .label .c-checkbox {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
}

textarea {
    border-radius: var(--radius-8);
    border: none;
    display: block;
    padding: var(--sp-16);
    width: 100%;
    outline: none;
    resize: vertical;
    line-height: 1.6;
}

textarea:focus {
    border-color: var(--Light-Primary-50);
    background: var(--Light_mode-Gray_Scale-100);
    box-shadow: 0px 0px 2px 0px #52b8ff;
}

/* BEGIN c-radio */
.c-radio {
    display: block;
    line-height: 1;
    margin: 0.715em 0 0.715em 0;
    position: relative;
    z-index: 2;
}

.c-radio label {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    cursor: pointer;
    color: #666666;
    position: relative;
}

.c-radio label>span:not(.c_tick) {
    font-size: 1em;
    line-height: 1.42857143;
}

.c-radio label:hover {
    color: var(--Light-Primary-50);
}

.c-radio .c_tick {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    border: 1px solid #666666;
    border-radius: 100%;
    margin: 0 0.358em 0.072em 0;
    width: 1.072em;
    height: 1.072em;
}

.c-radio .c_tick::before {
    content: "";
    display: block;
    border-radius: 100%;
    background-color: var(--Light-Primary-50);
    width: 1.072em;
    height: 1.072em;
    -webkit-transform: scale3d(0, 0, 0);
    -moz-transform: scale3d(0, 0, 0);
    -o-transform: scale3d(0, 0, 0);
    -ms-transform: scale3d(0, 0, 0);
    transform: scale3d(0, 0, 0);
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
}

.c-radio input[type="radio"] {
    overflow: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.c-radio input[type="radio"]:checked~.c_tick {
    border-color: var(--Light-Primary-50);
    opacity: 1;
}

.c-radio input[type="radio"]:checked~.c_tick::before {
    opacity: inherit;
}

.c-radio input[type="radio"]:checked+.c_tick::before {
    -webkit-transform: scale3d(0.65, 0.65, 1);
    -moz-transform: scale3d(0.65, 0.65, 1);
    -o-transform: scale3d(0.65, 0.65, 1);
    -ms-transform: scale3d(0.65, 0.65, 1);
    transform: scale3d(0.65, 0.65, 1);
}

.c-radio input[type="radio"][disabled]~.c_tick {
    border-color: #000;
    opacity: 0.26;
}

.c-radio input[type="radio"][disabled]~.c_tick::before {
    opacity: inherit;
}

/* END c-radio */
/* END c-form-border */

#modalAddClass #end-date-auto,
#modalAddClass .autoDate {
    display: none;
}

.c-button-1 {
    border-radius: var(--radius-8);
    background: var(--Light-Primary-50);
    padding: 10px 24px 12px;
    color: var(--Light-Primary-95);
    font-weight: 500;
    text-transform: none;
    font-size: var(--fs-16);
    display: inline-flex;
    gap: var(--sp-8);
    box-shadow: none;
    text-align: center;
    transition: 0.5s;
    cursor: pointer;
}

.c-button-1:hover {
    background-color: var(--Light-Primary-60);
}

.c-button-1.small {
    font-size: var(--fs-14);
    padding: 8px 12px;
    margin-left: 5px;
}

.c-button-1[disabled] {
    background: var(--Light_mode-Gray_Scale-70);
    cursor: not-allowed;
}

.c-button-2 {
    border-radius: var(--radius-8);
    border: 1px solid var(--Light_mode-Gray_Scale-70, #ccc);
    padding: 7px 12px;
    color: var(--Light_mode-Gray_Scale-20);
    background-color: #fff;
    font-weight: 500;
    text-transform: none;
    font-size: var(--fs-14);
    display: inline-block;
    box-shadow: none;
    text-align: center;
    transition: 0.5s;
    cursor: pointer;
}

.c-button-2:hover {
    background-color: var(--Light_mode-Gray_Scale-95);
}

.sort {
    position: relative;
}

.sort-dropdown {
    position: absolute;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 2px 4px 0px rgba(0, 39, 65, 0.2);
    width: 200px;
    right: 0;
    top: 40px;
    padding: var(--sp-8) var(--sp-8) 0;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}

.sort-dropdown.active {
    opacity: 1;
    pointer-events: visible;
}

.noti {
    position: fixed;
    top: 20px;
    right: -100px;
    z-index: -1;
    visibility: hidden;
    width: 280px;
    transition: 0.5s;
    border-radius: var(--radius-8);
    padding: var(--sp-16);
    opacity: 0;
    transition: 0.5s;
}

.noti.active {
    right: 20px;
    z-index: 9999;
    visibility: visible;
}

.noti.success {
    border: 1px solid var(--Light-Seventh-50);
    background: var(--Light-Seventh-95, linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%));
}

.noti.error {
    border: 1px solid var(--Light-Quaternary-50);
    background: var(--Light-Quaternary-95, linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%));
}

.noti_top {
    display: flex;
    align-items: center;
    margin-bottom: var(--sp-8);
    gap: var(--sp-8);
}

.noti_top i:first-child {
    color: var(--Light-Seventh-50);
    font-size: var(--fs-20);
}

.noti h3 {
    color: var(--Light-Seventh-50);
    font-weight: 600;
    font-size: var(--fs-14);
}

.noti.error h3 {
    color: var(--Light-Quaternary-50);
}

.noti.error .noti_top i:first-child {
    color: var(--Light-Quaternary-50);
}

.noti p {
    color: var(--Light_mode-Gray_Scale-40);
    font-size: var(--fs-12);
    line-height: var(--line-height-16);
    letter-spacing: var(--letter-spacing-12);
    margin-bottom: 0;
}

.noti.active {
    right: 20px;
    opacity: 1;
}

.layout {
    display: flex;
    /* gap: var(--sp-32); */
    /* padding-right: var(--sp-32); */
}

.sidebar {
    width: 270px;
    flex: 0 0 270px;
    background-color: var(--Light_mode-Gray_Scale-100, #ffffff);
    border-right: 1px solid var(--Light_mode-Gray_Scale-80, #e6e6e6);
    padding: var(--sp-20, 1.25rem) var(--sp-16, 1rem);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: visible;
    box-sizing: border-box;
    z-index: 999;
    transition: width 0.25s ease, flex 0.25s ease, padding 0.25s ease;
}

.sidebar_inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* 1. Header Brand Section + Collapse Button */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-12, 0.75rem);
    margin-bottom: var(--sp-20, 1.25rem);
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--Light-Primary-95, #f6fbff);
    color: var(--Light-Primary-50, #52b8ff);
    border-radius: var(--radius-12, 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-20, 1.25rem);
    flex-shrink: 0;
}

.sidebar-brand-text h3 {
    font-size: var(--fs-18, 1.125rem);
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.sidebar-brand-text p {
    font-size: var(--fs-13, 0.8125rem);
    color: var(--Light_mode-Gray_Scale-30, #666666);
    margin: 0;
}

/* 2. Middle Navigation Menu Wrapper */
.sidebar-menu-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: var(--sp-16, 1rem);
}

.sidebar-menu-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu-wrapper::-webkit-scrollbar-thumb {
    background: var(--Light_mode-Gray_Scale-80, #e6e6e6);
    border-radius: var(--radius-4, 0.25rem);
}

.sidebar-group {
    border-bottom: 1px solid var(--Light_mode-Gray_Scale-90, #f6f6f6);
    padding-bottom: var(--sp-12, 0.75rem);
    margin-bottom: var(--sp-12, 0.75rem);
}

.sidebar-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-group-title {
    font-size: var(--fs-12, 0.75rem);
    font-weight: 500;
    color: var(--Light_mode-Gray_Scale-40, #808080);
    text-transform: uppercase;
    margin: var(--sp-12, 0.75rem) 0 var(--sp-8, 0.5rem) 12px;
    letter-spacing: 0.5px;
}

.sidebar ul li {
    margin-bottom: 4px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: var(--sp-12, 0.75rem);
    padding: 10px 14px;
    border-radius: var(--radius-12, 0.75rem);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--Light_mode-Gray_Scale-20, #4d4d4d);
    font-size: var(--fs-14, 0.875rem);
    font-weight: 500;
}

.sidebar ul li a .sidebar-icon-box {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar ul li a i {
    color: var(--Light_mode-Gray_Scale-30, #666666);
    font-size: var(--fs-18, 1.125rem);
    width: 20px;
    text-align: center;
    transition: .2s;
}

.sidebar ul li a svg {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.sidebar ul li a:hover {
    background: var(--Light_mode-Gray_Scale-95, #fafafa);
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
}

.sidebar ul li.active a {
    background: var(--Light-Primary-95, #f6fbff);
    color: var(--Light-Primary-50, #52b8ff);
    border: 1px solid var(--Light-Primary-70, #52b8ff);
    border-radius: var(--radius-12, 0.75rem);
    margin-left: 0;
    padding: 10px 14px;
}

.sidebar ul li.active a i,
.sidebar ul li a:hover i {
    color: var(--Light-Primary-50, #52b8ff);
}

.sidebar ul li.active a svg path[stroke],
.sidebar ul li.active a svg rect[stroke],
.sidebar ul li.active a svg circle[stroke],
.sidebar ul li a:hover svg path[stroke],
.sidebar ul li a:hover svg rect[stroke],
.sidebar ul li a:hover svg circle[stroke] {
    stroke: var(--Light-Primary-50, #52b8ff) !important;
}

.sidebar ul li.active a svg path[fill],
.sidebar ul li.active a svg rect[fill],
.sidebar ul li.active a svg circle[fill],
.sidebar ul li a:hover svg path[fill],
.sidebar ul li a:hover svg rect[fill],
.sidebar ul li a:hover svg circle[fill] {
    fill: var(--Light-Primary-50, #52b8ff) !important;
}

/* 3. Package Card (Inside scroll wrapper) */
.sidebar-pkg-card {
    background: var(--Light_mode-Gray_Scale-95, #fafafa);
    border: 1px solid var(--Light_mode-Gray_Scale-80, #e6e6e6);
    border-radius: var(--radius-16, 1rem);
    padding: var(--sp-16, 1rem);
    margin-top: var(--sp-16, 1rem);
    margin-bottom: var(--sp-12, 0.75rem);
    flex-shrink: 0;
}

.sidebar-pkg-header {
    display: flex;
    align-items: center;
    gap: var(--sp-12, 0.75rem);
    margin-bottom: var(--sp-12, 0.75rem);
}

.sidebar-pkg-star-icon {
    width: 44px;
    height: 44px;
    background: var(--Light-Primary-50, #52b8ff);
    color: var(--Light_mode-Gray_Scale-100, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-20, 1.25rem);
    flex-shrink: 0;
}

.sidebar-pkg-info .sidebar-pkg-label {
    font-size: var(--fs-13, 0.8125rem);
    color: var(--Light_mode-Gray_Scale-30, #666666);
    display: block;
}

.sidebar-pkg-info .sidebar-pkg-title {
    font-size: var(--fs-20, 1.25rem);
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
    margin: 2px 0 0 0;
    line-height: 1;
}

.sidebar-pkg-progress-sec {
    margin-bottom: 14px;
}

.sidebar-pkg-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-13, 0.8125rem);
    color: var(--Light_mode-Gray_Scale-30, #666666);
    margin-bottom: 6px;
}

.sidebar-pkg-progress-labels strong {
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
    font-weight: 700;
    font-size: var(--fs-14, 0.875rem);
}

.sidebar-pkg-progress-bar {
    height: 8px;
    background: var(--Light_mode-Gray_Scale-80, #e6e6e6);
    border-radius: var(--radius-4, 0.25rem);
    overflow: hidden;
}

.sidebar-pkg-progress-fill {
    height: 100%;
    background: var(--Light-Primary-50, #52b8ff);
    border-radius: var(--radius-4, 0.25rem);
}

.sidebar-pkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--Light_mode-Gray_Scale-100, #ffffff);
    border: 1px solid var(--Light_mode-Gray_Scale-80, #e6e6e6);
    border-radius: var(--radius-12, 0.75rem);
    padding: 10px 14px;
    font-size: var(--fs-14, 0.875rem);
    font-weight: 600;
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    box-sizing: border-box;
}

.sidebar-pkg-btn:hover {
    background: var(--Light_mode-Gray_Scale-90, #f6f6f6);
    border-color: var(--Light_mode-Gray_Scale-70, #cccccc);
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
}

/* 4. User Account Card at Bottom & Flyout Popup */
.sidebar-user-wrapper {
    position: relative;
    flex-shrink: 0;
    border-top: 1px solid var(--Light_mode-Gray_Scale-95);
    padding-top: var(--sp-12, 0.75rem);
}

.sidebar-user-card {
    border: 1px solid transparent;
    border-radius: var(--radius-12, 0.75rem);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: var(--sp-12, 0.75rem);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.sidebar-user-card:hover {
    background: var(--Light_mode-Gray_Scale-95);
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    background: var(--Light-Primary-50, #52b8ff);
    color: var(--Light_mode-Gray_Scale-100, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--fs-14, 0.875rem);
    flex-shrink: 0;
}

.sidebar-user-avatar.popup-avatar {
    width: 40px;
    height: 40px;
    font-size: var(--fs-14, 0.875rem);
}

.sidebar-user-info {
    flex-grow: 1;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: var(--fs-14, 0.875rem);
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sidebar-user-email {
    font-size: var(--fs-12, 0.75rem);
    color: var(--Light_mode-Gray_Scale-30, #666666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.sidebar-user-caret {
    color: var(--Light_mode-Gray_Scale-40, #808080);
    font-size: var(--fs-13, 0.8125rem);
    margin-left: auto;
}

/* FLYOUT POPUP (Show bên cạnh) */
.sidebar-user-popup {
    position: absolute;
    left: calc(100% + 14px);
    bottom: 0;
    width: 250px;
    background: var(--Light_mode-Gray_Scale-100, #ffffff);
    border: 1px solid var(--Light_mode-Gray_Scale-80, #e6e6e6);
    border-radius: var(--radius-16, 1rem);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: var(--sp-16, 1rem);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.sidebar-user-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.user-popup-header {
    display: flex;
    align-items: center;
    gap: var(--sp-12, 0.75rem);
}

.user-popup-divider {
    height: 1px;
    background: var(--Light_mode-Gray_Scale-90, #f6f6f6);
    margin: var(--sp-12, 0.75rem) 0;
}

.user-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-8, 0.5rem);
    color: var(--Light_mode-Gray_Scale-10, #333333);
    font-size: var(--fs-14, 0.875rem);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.user-popup-item:hover {
    background: var(--Light_mode-Gray_Scale-95, #fafafa);
    color: var(--Light_mode-Gray_Scale-5, #1a1a1a);
}

.user-popup-item i {
    font-size: var(--fs-16, 1rem);
    color: var(--Light_mode-Gray_Scale-30, #666666);
    width: 20px;
    text-align: center;
}

.user-popup-item.logout {
    color: var(--Red-500, #F44336);
    font-weight: 600;
}

.user-popup-item.logout i {
    color: var(--Red-500, #F44336);
}

.user-popup-item.logout:hover {
    background: var(--Red-50, #FEF6F5);
    color: var(--Red-500, #F44336);
}

.user-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-12, 0.75rem);
    color: var(--Light_mode-Gray_Scale-40, #808080);
    padding: 0 4px;
}

.user-popup-footer a {
    color: var(--Light_mode-Gray_Scale-40, #808080);
    text-decoration: underline;
}

.user-popup-footer a:hover {
    color: var(--Light_mode-Gray_Scale-20, #4d4d4d);
}

/* 5. Ẩn Header */
.header {
    display: none !important;
}

.layout-content {
    flex: 1 1 auto;
    padding: var(--sp-24, 1.5rem);
    overflow-y: auto;
    min-height: 100vh;
}

/* ==========================================================================
   Responsive Mobile Sidebar (< 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-sidebar-btn {
        display: flex !important;
        position: fixed;
        right: 20px;
        bottom: 24px;
        width: 50px;
        height: 50px;
        background: var(--Light-Primary-50, #52b8ff);
        color: #ffffff;
        border: none;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(82, 184, 255, 0.45);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 9999;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
    }

    .mobile-sidebar-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(82, 184, 255, 0.6);
        background: var(--Light-Primary-50, #52b8ff);
    }

    .mobile-sidebar-btn:active {
        transform: scale(0.95);
    }

    .mobile-sidebar-btn svg path {
        stroke: #ffffff;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 270px !important;
        height: 100vh !important;
        z-index: 10001 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
        background-color: var(--Light_mode-Gray_Scale-100, #ffffff) !important;
    }

    .sidebar.open,
    .sidebar.show {
        transform: translateX(0) !important;
    }

    .sidebar-close {
        display: flex !important;
        position: absolute;
        right: 14px;
        top: 14px;
        cursor: pointer;
        z-index: 10;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        background: var(--Light_mode-Gray_Scale-95, #fafafa);
        border-radius: 50%;
        transition: background 0.2s;
    }

    .sidebar-close:hover {
        background: var(--Light_mode-Gray_Scale-80, #e6e6e6);
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.show {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 992px) {

    .mobile-sidebar-btn,
    .sidebar-backdrop {
        display: none !important;
    }

    .sidebar-close {
        display: none !important;
    }

    .sidebar {
        transform: none !important;
    }
}

.sidebar-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.sidebar-badge.new {
    background: #ecfdf5;
    color: #10b981;
}

.sidebar-badge.count {
    background: #fef2f2;
    color: #ef4444;
}

.sidebar_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.layout-content {
    width: calc(100% - 260px);
    padding-left: var(--sp-32);
    padding-right: var(--sp-32);
}

.layout-box {
    background: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.layout-box-2 {
    border-radius: var(--radius-20);
    background: var(--Light_mode-Gray_Scale-100);
    padding: var(--sp-32);
    width: 60%;
    margin: var(--sp-48) auto;
}

.layout-box-3 {
    border-radius: var(--radius-20);
    background: var(--Light_mode-Gray_Scale-100);
    padding: var(--sp-32);
    width: 80%;
    margin: var(--sp-48) auto;
}

.layout-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-32);
}

.layout-top .headline-1 {
    margin-bottom: 0;
}

.layout-top .c-button-1 {
    padding: 16px 24px 16px;
}

.layout-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
}

.layout-filter .untab {
    flex: 1 0 auto;
    margin-right: auto;
}

.layout-filter .form-group {
    width: 30%;
    margin-bottom: 0;
}

.layout-filter.class .form-group {
    width: 250px;
    background: #f7f9fc;
}

.layout-filter .untab~.form-group {
    width: 22%;
}

.layout-filter .form-group .c_input {
    padding: 10px 35px 10px 10px;
}

.layout-filter .c-form-border i {
    right: 10px;
}

.layout-filter .typeClass {
    width: 250px;
    margin-right: auto;
}

.layout-filter .ts-control {
    padding-top: 8.5px !important;
    padding-bottom: 8.5px !important;
}

.layout-filter .checkApproved {
    display: flex;
}

.layout-filter .checkApproved .c-radio+.c-radio {
    margin-left: 25px;
}

/* BEGIN s-tab-4 */
.header {
    border-radius: 8px;
    background: var(--Light_mode-Gray_Scale-100);
    padding: var(--sp-16) var(--sp-24);
    display: flex;
    align-items: center;
    margin-top: var(--sp-16);
    margin-bottom: var(--sp-48);
}

.header-intro h3 {
    font-weight: normal;
}

.header-noti {
    margin-left: auto;
    position: relative;
}

.header-bell {
    border: 1px solid var(--Light_mode-Gray_Scale-70);
    font-size: var(--fs-16);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: var(--Light_mode-Gray_Scale-40);
    position: relative;
}

.header-bell::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    top: 3px;
    right: 1px;
    background-color: var(--Light-Tertiary-50);
    border-radius: 50%;
    opacity: 0;
}

.header-bell.active::before {
    opacity: 1;
}

.header-list {
    position: absolute;
    right: 0;
    width: 400px;
    border-radius: var(--radius-20);
    background: var(--Light_mode-Gray_Scale-100);
    box-shadow: 0px 2px 4px 0px rgba(0, 39, 65, 0.2);
    padding: var(--sp-24);
    top: 100px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.header-list.active {
    top: 40px;
    opacity: 1;
    pointer-events: visible;
}

.header-list_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-32);
}

.header-list_top h3 {
    font-size: var(--fs-20);
    font-weight: 600;
}

.header-list_top svg {
    cursor: pointer;
}

.header-user {
    position: relative;
    margin-left: var(--sp-32);
}

.header-user_infor {
    display: flex;
    gap: var(--sp-12);
    cursor: pointer;
}

.header-user_infor .header-user_name i.fa {
    margin-left: 5px;
}

.header-user_thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--Light_mode-Gray_Scale-70);
    border-radius: 50%;
}

.header-user_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-user_name p {
    margin-bottom: 0;
}

.header-user_dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    border-radius: var(--radius-20);
    background: var(--Light_mode-Gray_Scale-100);
    box-shadow: 0px 2px 4px 0px rgba(0, 39, 65, 0.2);
    padding: var(--sp-8);
    top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1;
}

.header-user_dropdown li {
    margin-bottom: var(--sp-4);
}

.header-user_dropdown li a {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-4) var(--sp-8);
    transition: 0.3s;
}

.header-user_dropdown li a:hover {
    background-color: var(--Light_mode-Gray_Scale-95);
}

.header-user_dropdown li a i {
    transform: translateY(1px);
}

.header-user_dropdown.active {
    top: 50px;
    opacity: 1;
    pointer-events: visible;
}

.noti-list_item {
    display: flex;
    margin: var(--sp-24) 0;
}

.noti-list_item-thumb {
    width: 48px;
    height: 48px;
    margin-top: 5px;
    margin-right: 13px;
}

.noti-list_item-thumb span {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: inline-block;
    overflow: hidden;
}

.noti-list_item-content {
    width: calc(100% - 63px);
}

.noti-list_item-content h3 {
    font-size: var(--fs-14);
    font-weight: 600;
    margin-bottom: 5px;
}

.noti-list_item-content .info {
    /* margin-bottom: 10px; */
}

.noti-list_item-content .info li {
    display: inline-block;
    margin-right: 10px;
    color: var(--Light_mode-Gray_Scale-40);
    line-height: var(--line-height-16);
    letter-spacing: var(--letter-spacing-12);
    font-size: 12px;
}

.noti-list_item-content .info li span {
    color: red;
    font-weight: 600;
}

.noti-list_item-content .info li span.support {
    color: var(--Light-Seventh-50);
}

.noti-list_item-content .info li span.issue {
    color: var(--Light-Tertiary-50);
}

.noti-list_item-content .info li span.issue-type {
    color: var(--Light-Primary-50);
}

.noti-list_item-content .info li span.priority {
    color: var(--Light-Primary-50);
}

.noti-list_item-content .info li span.high {
    color: var(--Light-Tertiary-50);
}

.noti-list_item-content .info li span.highest {
    color: red;
}

.noti-list_item-content .info li span a {
    transition: 0.25s ease-in-out;
}

.noti-list_item-content .info li span a:hover {
    color: var(--Light-Primary-50);
}

.noti-list_item-content .content {
    margin-top: 10px;
    font-weight: 600;
    color: var(--Light_mode-Gray_Scale-20);
    white-space: pre-wrap;
    word-wrap: break-word;
    tab-size: 4;
    line-height: 1.6;
}

.noti-list_item-content .role {
    background-color: rgb(220 241 255 / 56%);
    padding: 1px 9px 2px;
    border-radius: 5px;
    color: var(--Light-Primary-50);
    margin-left: 7px;
    display: inline-block;
    position: relative;
    top: -1px;
}

.noti-list_item-content p {
    color: var(--Light_mode-Gray_Scale-40);
    line-height: var(--line-height-16);
    letter-spacing: var(--letter-spacing-12);
    white-space: pre-wrap;
    word-wrap: break-word;
    tab-size: 4;
    line-height: 1.6;
}

.noti-list_item-comment {
    margin-top: var(--sp-16);
    margin-bottom: var(--sp-8);
    display: none;
}

.noti-list_item-button {
    margin-top: var(--sp-20);
    display: flex;
    gap: var(--sp-8);
}

.noti-list_item-reply {
    border-left: 4px solid var(--Light-Primary-50);
    padding-left: var(--sp-16);
    margin-top: var(--sp-20);
}

.noti-list_note {
    width: 80%;
    margin: var(--sp-32) auto;
    text-align: center;
}

.noti-list_note img {
    width: 35px;
    margin: 0 auto var(--sp-16);
}

.noti-list_note h3 {
    margin-bottom: var(--sp-4);
}

.noti-list_note p {
    color: var(--Light_mode-Gray_Scale-40);
}

.tab .tab-menu {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    list-style: none;
}

.tab .tab-menu>li:not(:last-child) a {
    margin-right: var(--sp-8);
}

.tab .tab-menu>li a {
    display: block;
    padding: var(--sp-8) var(--sp-12);
    color: #444;
    font-size: var(--fs-14);
    text-align: center;
    cursor: pointer;
    border-radius: var(--sp-8);
    position: relative;
    -webkit-transition: all 300ms ease 0s;
    -o-transition: all 300ms ease 0s;
    transition: all 300ms ease 0s;
}

.tab .tab-menu>li a span {
    color: #666;
    margin-left: 3px;
    font-weight: 500;
}

.tab .tab-menu>li a .remaining {
    position: absolute;
    width: max-content;
    font-size: 11px;
    font-style: italic;
    top: calc(100% - 7px);
    right: 0;
    color: #999;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 3px 3px 2px 3px;
    -webkit-transition: all 300ms ease 0s;
    -o-transition: all 300ms ease 0s;
    transition: all 300ms ease 0s;
    z-index: 111;
}

.tab .tab-menu>li.is-active a .remaining,
.tab .tab-menu>li:hover a .remaining {
    background-color: #f6fbff;
    color: inherit;
}

.tab .tab-menu>li a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    border-radius: var(--radius-32);
    background-color: var(--Light-Primary-50);
    transition: 0.5s;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.tab .tab-menu>li.is-active a,
.tab .tab-menu>li:hover a {
    color: var(--Light-Primary-50);
    background: var(--Light-Primary-95, linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%));
}

.tab .tab-menu>li.is-active a::after,
.tab .tab-menu>li:hover a::after {
    width: 26px;
}

.header .tab .tab-content {
    max-height: 420px;
    overflow-y: auto;
    padding-right: var(--sp-20);
}

.tab .tab-content::-webkit-scrollbar {
    width: 3px;
}

.tab .tab-content::-webkit-scrollbar-track {
    background: var(--Light_mode-Gray_Scale-95);
}

.tab .tab-content::-webkit-scrollbar-thumb {
    border-radius: 100px;
    width: 3px;
    background: var(--Light_mode-Gray_Scale-70);
}

.tab .tab-content>li {
    display: none;
}

.tab .tab-content>li:first-child {
    display: block;
}

.headline-1 {
    color: var(--Light-Primary-50);
    font-size: var(--fs-34);
    font-weight: 600;
    margin-bottom: var(--sp-32);
}

.headline-1 span {
    color: var(--Light_mode-Gray_Scale-5);
}

.headline-1 .tooltipsx {
    top: -3px;
    font-size: 20px;
}

.headline-2 {
    font-size: var(--fs-26);
    font-weight: 600;
    margin-bottom: var(--sp-32);
}

.headline-3 {
    font-size: var(--fs-20);
    font-weight: 600;
    margin-bottom: var(--sp-20);
}

.headline-4 {
    font-size: var(--fs-16);
    font-weight: 600;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    border-radius: 14px;
}

.table-1 {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    min-width: 650px;
}

.table-1 .name {
    font-weight: 600;
}

/* Shared compact density for simple management lists. */
.table-1[data-density="compact"] thead th,
.table-1[data-density="compact"] tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

.table-1[data-density="compact"] tbody tr + tr {
    border-top: 1px solid var(--Light_mode-Gray_Scale-90);
}

.table-1[data-density="compact"] tbody tr:hover,
.table-1[data-density="compact"] tbody tr:focus-within {
    background-color: var(--Light_mode-Gray_Scale-95);
}

.tooltipsx {
    position: relative;
    font-size: 12px;
    margin-right: 5px;
}

.tooltipsx i.fa {
    color: var(--Light-Tertiary-50) !important;
}

.tooltipsx .labelx {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    opacity: 0;
    visibility: hidden;
    font-size: 12px;
    transform: translateX(-50%);
    background-color: #fff;
    width: max-content;
    box-shadow: 0px 2px 8px 0px rgba(0, 39, 65, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    margin-left: 0;
    transition: 0.25s ease-in-out;
    color: initial !important;
}

.tooltipsx:hover .labelx {
    opacity: 1;
    visibility: visible;
}

.tooltipsx .labelx::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 0;
    width: 0;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.table-1 th,
.table-1 td {
    padding: var(--sp-20);
    text-align: left;

}

.table-1 th {
    text-transform: none;
}

.table-1 td a {
    transition: 0.3s;
}

.table-1 td a:hover {
    color: var(--Light-Primary-50);
}

.table-1 td a:hover i {
    color: var(--Light-Primary-50);
}

.table-1 thead {
    background: var(--Light_mode-Gray_Scale-90);
}

.table-1 th {
    font-weight: normal;
    color: var(--Light_mode-Gray_Scale-40);
}

.table-1 td i {
    color: var(--Light_mode-Gray_Scale-40);
    cursor: pointer;
    transition: 0.3s;
}

.table-1 td i:hover {
    color: var(--Light-Primary-50);
}

.table-1 .td-teacher {
    font-weight: 500;
    color: var(--Light-Primary-50);
}

.table-1 .line td {
    padding: 0;
    line-height: 10px;
}

.table-1 .total {
    font-weight: bold;
    border-top: 2px solid var(--Light_mode-Gray_Scale-70)
}

.table-1 .total td {
    padding-top: 20px;
}

.c-modal .c-modal-box {
    max-width: 640px;
}

/* .c-modal .c_body {
    padding: var(--sp-32);
} */

.c-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.c-modal-footer.has-border {
    border-top: 1px solid var(--Light_mode-Gray_Scale-80, #e2e8f0);
    padding-top: 24px;
    margin-top: 32px;
}

.c-modal .c_close {
    top: 8px;
    right: 8px;
}

.c-modal .c_close:hover svg path {
    stroke: var(--Light-Primary-50);
}

.box-infor {
    border-radius: var(--radius-8);
    padding: var(--sp-16);
    border: 1px solid var(--Light_mode-Gray_Scale-70);
}

.box-infor_title {
    font-size: var(--fs-14);
    margin-bottom: var(--sp-16);
}

.box-infor_item {
    margin-bottom: var(--sp-24);
}

.box-infor_item a {
    transition: 0.3s;
}

.box-infor_item a:hover {
    color: var(--Light-Primary-50);
}

.box-infor_item .ht-format-detail {
    white-space: pre-wrap;
    word-wrap: break-word;
    tab-size: 4;
    line-height: 1.6;
}

.box-infor_item h3 {
    font-size: var(--fs-14);
    color: var(--Light_mode-Gray_Scale-40);
    margin-bottom: var(--sp-4);
    font-weight: 400;
}

.box-infor_item p {
    color: var(--Light_mode-Gray_Scale-5);
    font-weight: 500;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-12);
    padding: 14px 18px;
    background-color: var(--Light_mode-Gray_Scale-95);
    border-top: 1px solid var(--Light_mode-Gray_Scale-90);
    color: var(--Light_mode-Gray_Scale-40);
    font-size: 13px;
}

.table-page-count span {
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pagination_number {
    margin-right: var(--sp-12);
    color: var(--Light_mode-Gray_Scale-40, #808080);
}

.pagination_number span:first-child,
.pagination_arrow span {
    border-radius: 8px;
    border: 1px solid var(--Light_mode-Gray_Scale-70);
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: inline-block;
}

.pagination_number span:nth-child(2) {
    margin: 0 4px;
}

.pagination_arrow span {
    cursor: pointer;
    transition: 0.5s;
}

.pagination_arrow span:hover {
    background-color: var(--Light_mode-Gray_Scale-90);
}

.confirm_infor {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    margin-bottom: var(--sp-16);
}

.confirm_infor h3 {
    color: var(--Light_mode-Gray_Scale-40);
    margin-left: 10px;
    line-height: 1.4;
    font-weight: 300;
    text-align: initial;
}

.confirm_infor i {
    color: var(--Light-Quaternary-50);
    font-size: 26px;
}

.confirm_button {
    text-align: right;
}

@media (min-width: 992px) {
    .header-hamburger {
        display: none;
    }
}

@media (min-width: 1260px) {
    .min-width-60 {
        width: 80px;
    }

    .min-width-300 {
        width: 400px;
    }

    .min-width-250 {
        width: 250px;
    }

    .min-width-200 {
        width: 200px;
    }
}

@media (max-width: 1259px) {
    .layout-filter .untab~.form-group {
        width: 40%;
    }
}

@media (max-width: 991px) {
    .layout {
        display: block;
    }

    .layout-content {
        width: 100%;
        padding: var(--sp-12);
    }

    .header {
        margin-top: 0;
    }

    .header-intro {
        display: none;
    }

    .header-hamburger {
        display: block;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .layout-box-2 {
        padding: var(--sp-20);
        margin: var(--sp-20) auto;
        width: 100%;
    }

    .layout-filter .form-group {
        width: 60%;
    }
}

@media (max-width: 800px) {
    .header {
        position: relative;
        margin-bottom: var(--sp-20);
    }

    .header-noti {
        position: static;
    }

    .header-list {
        width: 80%;
        right: 0;
    }

    .header-list.active {
        top: 80px;
    }

    .layout-box {
        padding: var(--sp-12);
    }

    .headline-1 {
        font-size: var(--fs-26);
        margin-bottom: var(--sp-20);
    }

    .c-modal .c_body {
        padding: var(--sp-20);
    }

    .layout-filter {
        display: block;
    }

    .layout-filter .form-group {
        width: 100% !important;
    }

    .layout-filter .tab-menu {
        justify-content: center;
        margin-bottom: 12px;
    }

    .layout-filter .pagination {
        margin-top: 12px;
    }

    .layout-filter.class .form-group {
        width: 100%;
    }

    .layout-filter.class .form-group {
        margin-top: 10px;
    }

    .layout-filter .c-form-border .ts-control {
        padding: 5px var(--sp-12) !important;
    }
}

@media (max-width: 575px) {
    .layout-top .c-button-1 {
        padding: 15px 13px;
    }

    .layout-top .headline-1 {
        margin-right: 10px;
    }
}

/* Dynamic Class Type Settings */
.drag-handle {
    cursor: grab;
    margin-right: 12px;
    color: var(--Light_mode-Gray_Scale-30, #cbd5e1);
}

.class-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-color {
    border: 1px solid transparent;
}

.badge-count {
    background: #ecfdf5;
    color: #10b981;
}

.btn-action {
    background: #fff;
    border: 0.5px solid var(--Light_mode-Gray_Scale-70);
    color: var(--Light_mode-Gray_Scale-50, #64748b);
    border-radius: 6px;
    padding: 6px 10px;
    margin-right: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-action:hover {
    color: var(--Light_mode-Gray_Scale-100, #0f172a);
    border-color: var(--Light_mode-Gray_Scale-40, #94a3b8);
}

.btn-delete:hover {
    color: #ef4444;
    border-color: #fca5a5;
}


.setting-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.setting-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.setting-box-header.nborder {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-box-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-size: 18px;
}

.c-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--Light-Primary-95, #eef2ff);
    color: var(--Light-Primary-50, #0062ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.setting-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.setting-box .form-box label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

.setting-box .form-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-style: italic;
}


.inline-form-box {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.inline-form-box.active {
    display: block;
}

#form_class_type .form-box label span.font-normal {
    font-weight: 400;
    color: #64748b;
    text-transform: none;
    font-size: 11px;
    letter-spacing: 0;
}

#form_class_type .c_input {
    border-radius: 8px;
    border-color: #cbd5e1;
    height: 44px;
}

.class-table-container {
    border: none;
    overflow: hidden;
    width: calc(100% + 48px);
    margin: 0 -24px -24px -24px;
    border-top: 1px solid #e2e8f0;
}

.class-table {
    width: 100%;
    border-collapse: collapse;
}

.class-table thead {
    background: #ffffff !important;
}

.class-table th {
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.class-table td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
    text-align: left;
    background: #ffffff;
}

.class-table tr:last-child td {
    border-bottom: none;
}

.class-table tr.editing td {
    background: #f8fafc;
}

.class-table .td-class-name {
    width: 250px;
    text-align: left;
}

.class-table .td-class-name .name {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.class-table tr.editing .td-class-name .name {
    color: #0062ff;
}

.class-table .badge-subclass {
    background: #e2e8f0;
    color: #1e293b;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 4px;
}

.class-table .badge-count {
    background: #ecfdf5;
    color: #10b981;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
}

.btn-action-new {
    background: transparent;
    border: none;
    color: #0062ff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-action-new.btn-delete {
    color: #ef4444;
}

.btn-action-new:hover {
    background: #eff6ff;
}

.btn-action-new.btn-delete:hover {
    background: #fef2f2;
}

.class-table tr.editing .btn-action-new.btn-edit {
    background: #0062ff;
    color: white;
}

/* =============================================
   GLOBAL ACTION BUTTONS (.table-actions / .c-action-btn)
   Chuẩn thiết kế từ trang Lớp học, dùng chung cho toàn bộ CMS
   ============================================= */
.table-actions,
.ht-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.c-action-btn,
.btn-action-square,
.ht-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--Light_mode-Gray_Scale-80, #e2e8f0);
    background-color: var(--Light_mode-Gray_Scale-100, #ffffff);
    color: var(--Light_mode-Gray_Scale-30, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    padding: 0;
    outline: none;
    flex-shrink: 0;
    position: relative;
    user-select: none;
    line-height: 1;
}

.c-action-btn:hover,
.btn-action-square:hover,
.ht-btn-icon:hover {
    border-color: var(--Light_mode-Gray_Scale-60, #cbd5e1);
    background-color: var(--Light_mode-Gray_Scale-95, #f8fafc);
    color: var(--Light_mode-Gray_Scale-10, #1e293b);
}

.c-action-btn svg,
.btn-action-square svg,
.ht-btn-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    pointer-events: none;
    transition: stroke 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.c-action-btn i,
.btn-action-square i,
.ht-btn-icon i {
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    transition: color 0.2s ease;
}

/* --- Edit Action --- */
.c-action-btn.action-edit,
.c-action-btn.btn-edit,
.btn-action-square.btn-edit,
.ht-btn-icon.edit {
    color: var(--Light_mode-Gray_Scale-30, #64748b);
}

.c-action-btn.action-edit:hover,
.c-action-btn.btn-edit:hover,
.btn-action-square.btn-edit:hover,
.ht-btn-icon.edit:hover {
    border-color: var(--Blue-100, #bfdbfe);
    background-color: var(--Blue-50, #eff6ff);
    color: var(--Light-Primary-50, #0062ff);
}

.c-action-btn.action-edit:hover svg,
.c-action-btn.btn-edit:hover svg,
.btn-action-square.btn-edit:hover svg,
.ht-btn-icon.edit:hover svg {
    color: var(--Light-Primary-50, #0062ff);
    stroke: var(--Light-Primary-50, #0062ff);
}

/* --- Delete Action --- */
.c-action-btn.action-delete,
.c-action-btn.btn-delete,
.btn-action-square.btn-delete,
.ht-btn-icon.del {
    color: var(--Light_mode-Gray_Scale-40, #94a3b8);
}

.c-action-btn.action-delete:hover,
.c-action-btn.btn-delete:hover,
.btn-action-square.btn-delete:hover,
.ht-btn-icon.del:hover {
    border-color: var(--Red-100, #fee2e2);
    background-color: var(--Red-50, #fef2f2);
    color: var(--Red-500, #ef4444);
}

.c-action-btn.action-delete:hover svg,
.c-action-btn.btn-delete:hover svg,
.btn-action-square.btn-delete:hover svg,
.ht-btn-icon.del:hover svg {
    color: var(--Red-500, #ef4444);
    stroke: var(--Red-500, #ef4444);
}

/* --- View Action --- */
.c-action-btn.action-view:hover,
.c-action-btn.btn-view:hover,
.ht-btn-icon.view:hover {
    border-color: var(--Light-Primary-90, #dbeafe);
    background-color: var(--Light-Primary-95, #f0f9ff);
    color: var(--Light-Primary-50, #0284c7);
}

.c-action-btn.action-view:hover svg,
.c-action-btn.btn-view:hover svg,
.ht-btn-icon.view:hover svg {
    color: var(--Light-Primary-50, #0284c7);
    stroke: var(--Light-Primary-50, #0284c7);
}

/* --- Password / Lock Action --- */
.c-action-btn.action-password:hover,
.c-action-btn.action-lock:hover,
.ht-btn-icon.pw:hover {
    border-color: var(--Yellow-100, #fef3c7);
    background-color: var(--Yellow-50, #fffbeb);
    color: var(--Yellow-500, #d97706);
}

.c-action-btn.action-password:hover svg,
.c-action-btn.action-lock:hover svg,
.ht-btn-icon.pw:hover svg {
    color: var(--Yellow-500, #d97706);
    stroke: var(--Yellow-500, #d97706);
}

/* Tuition Classes */
.tuition-radio-group {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 8px;
}

.tuition-note {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.tuition-input-group {
    margin-bottom: 8px;
}

.tuition-checkbox {
    margin-top: 8px;
}

/* ---- Generic Salary Month Pagination ---- */
.salary_month {
    display: flex;
    gap: var(--sp-20);
    align-items: center;
    margin-bottom: var(--sp-32);
}

.salary_month h3 {
    font-size: var(--fs-20);
}

.salary_arrow {
    display: flex;
    align-items: center;
}

.salary_arrow i {
    font-size: var(--fs-20);
    cursor: pointer;
    color: var(--Light-Primary-50);
    transition: 0.3s;
}

.salary_arrow .arrow {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--Light-Primary-70);
    background-color: var(--Light-Primary-95);
    border-radius: 50%;
}

.salary_arrow .arrow+.arrow {
    margin-left: 8px;
}

.salary_arrow .arrow.disabled {
    pointer-events: initial;
    border-color: var(--Light_mode-Gray_Scale-80);
    background-color: #fff;
}

.salary_arrow .arrow:not(.disabled) i:hover {
    color: var(--Light-Primary-50);
}

.salary_arrow .arrow.disabled i {
    color: var(--Light_mode-Gray_Scale-80);
}

.salary_arrow .arrow.disabled i {
    cursor: not-allowed;
}

/* =====================================================
   MODAL CLOSE BUTTON — Chuẩn duy nhất cho light modal
   Dùng class: modal-close-btn  +  ht-close="c-modal"
   HTML: <button type="button" class="modal-close-btn" ht-close="c-modal">✕</button>
   ===================================================== */
.modal-close-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* =============================================
   SHARED UI COMPONENTS — Tab Switcher & Actions
   Dùng chung cho nhiều trang (account, config...)
   ============================================= */

/* --- Shared Tab Switcher --- */
.ht-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    flex-shrink: 0;
}

.ht-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--Light_mode-Gray_Scale-40);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .03em;
    user-select: none;
}

.ht-tab:hover {
    color: var(--Light_mode-Gray_Scale-10);
}

.ht-tab.active {
    background: var(--Light_mode-Gray_Scale-100);
    color: var(--Light_mode-Gray_Scale-10);
    box-shadow: 0 1px 4px rgba(0, 39, 65, .12), 0 0 0 1px rgba(0, 39, 65, .06);
}

.ht-tab svg,
.ht-tab i {
    flex-shrink: 0;
}

.ht-tab-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-40);
}

.ht-tab.active .ht-tab-count {
    color: var(--Light-Primary-50);
}

.ht-tab-badge {
    background: var(--Light_mode-Gray_Scale-90);
    color: var(--Light_mode-Gray_Scale-30);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    transition: inherit;
}

.ht-tab.active .ht-tab-badge {
    background: var(--Light-Primary-95);
    color: var(--Light-Primary-50);
}


/* --- Shared Page Toolbar --- */
.ht-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    border-radius: 12px;
    padding: 10px 14px;
}

/* ==========================================================================
   GLOBAL RIGHT DRAWER MODAL SYSTEM (.modal-drawer-right)
   Áp dụng toàn trang cho các modal dạng trượt bên phải
   ========================================================================== */
.c-modal.modal-drawer-right {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    padding: 0 !important;
}

.c-modal.modal-drawer-right.show,
.c-modal.modal-drawer-right[style*="display"] {
    display: flex !important;
    justify-content: flex-end;
    align-items: stretch;
}

.c-modal.modal-drawer-right .c-modal-box {
    margin: 0 !important;
    height: 100vh;
    max-height: 100vh;
    width: 620px;
    padding: 0;
    max-width: 95vw;
    border-radius: 0 !important;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: transparent;
}

.c-modal.modal-drawer-right.show .c-modal-box,
.c-modal.modal-drawer-right[style*="display: block"] .c-modal-box {
    transform: translateX(0);
}

.c-modal.modal-drawer-right .c-modal-group {
    height: 100%;
    width: 100%;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border-radius: 0 !important;
    border-top-left-radius: 24px !important;
    border-bottom-left-radius: 24px !important;
    background-color: var(--Light_mode-Gray_Scale-95) !important;
    overflow: hidden;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.c-modal.modal-drawer-right form {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Drawer Shell Elements */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: var(--Light_mode-Gray_Scale-100);
    border-bottom: 1px solid var(--Light_mode-Gray_Scale-90);
    flex-shrink: 0;
}

.drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drawer-icon-plus {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: var(--Light_mode-Gray_Scale-95);
    color: var(--Light_mode-Gray_Scale-30);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
    margin: 0;
}

.drawer-sub {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
    margin: 3px 0 0 0;
}

.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-drawer-opt,
.btn-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--Light_mode-Gray_Scale-40);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-drawer-opt:hover,
.btn-drawer-close:hover {
    background-color: var(--Light_mode-Gray_Scale-90);
    color: var(--Light_mode-Gray_Scale-5);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--Light_mode-Gray_Scale-80) transparent;
}

.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background-color: var(--Light_mode-Gray_Scale-80);
    border-radius: 6px;
}

.drawer-sec-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-30);
    margin-bottom: 10px;
    text-transform: none;
}

.drawer-card {
    background-color: var(--Light_mode-Gray_Scale-100);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background-color: var(--Light_mode-Gray_Scale-100);
    border-top: 1px solid var(--Light_mode-Gray_Scale-90);
    flex-shrink: 0;
}

.btn-drawer-cancel {
    min-width: 110px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--Light_mode-Gray_Scale-80) !important;
    background-color: var(--Light_mode-Gray_Scale-100) !important;
    color: var(--Light_mode-Gray_Scale-5) !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-drawer-cancel:hover {
    background-color: var(--Light_mode-Gray_Scale-95) !important;
    border-color: var(--Light_mode-Gray_Scale-70) !important;
}

.btn-drawer-submit {
    min-width: 170px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--Sky-500) !important;
    color: var(--Light_mode-Gray_Scale-100) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-drawer-submit:hover {
    background-color: var(--Light-Primary-60) !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* --- DRAWER FORM CONTROLS & GRID SYSTEM --- */
.drawer-card .form-box {
    margin-bottom: 16px;
}

.drawer-card .form-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--Light_mode-Gray_Scale-30);
    margin-bottom: 6px;
}

.drawer-card .c-form-item {
    display: flex;
    flex-direction: column;
}

.drawer-card .form-group.c-form-border {
    position: relative;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    background-color: var(--Light_mode-Gray_Scale-100);
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 0 !important;
}

.drawer-card .form-group.c-form-border:has(textarea) {
    height: auto;
    min-height: 84px;
    padding: 10px 14px;
    align-items: flex-start;
}

.drawer-card .form-group.c-form-border .c_input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--Light_mode-Gray_Scale-5);
    padding: 0 !important;
}

.drawer-card .form-group.c-form-border .c_input::placeholder {
    color: var(--Light_mode-Gray_Scale-70);
    font-weight: 400;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.select-styled {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px !important;
}

/* --- TOMSELECT CUSTOM FOR DRAWER MODALS --- */
.modal-drawer-right .ts-wrapper {
    width: 100%;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
    background-image: none;
}

/* Raise the entire open control above later fields, not just its dropdown. */
.modal-drawer-right .ts-wrapper.dropdown-active {
    position: relative;
    z-index: 10;
}

/* Profile class links: separate, wrapping tags in the shared drawer. */
#studentProfileActiveClasses,
#studentProfileCompletedClasses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
#studentProfileClasses .student-class-badge {
    display: inline-flex;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 12px;
    border: 1px solid var(--Sky-100, #dbeafe);
    background: var(--Sky-50, #f0f9ff);
    color: var(--Sky-500, #0284c7);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}
#studentProfileCompletedClasses .student-class-badge {
    background: var(--Light_mode-Gray_Scale-95, #f1f5f9);
    border-color: var(--Light_mode-Gray_Scale-80, #e2e8f0);
    color: var(--Light_mode-Gray_Scale-40, #64748b);
}
#studentProfileClasses .student-class-badge:hover { text-decoration: underline; }
#studentProfileClasses .student-class-badge:focus-visible {
    outline: 2px solid var(--Sky-500, #0284c7);
    outline-offset: 2px;
}

.modal-drawer-right .ts-control {
    min-height: 42px;
    height: 42px;
    background: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--Light_mode-Gray_Scale-5);
    box-shadow: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.modal-drawer-right .ts-control.focus {
    border-color: var(--Sky-500);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.modal-drawer-right .ts-dropdown {
    border-radius: 12px;
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    margin-top: 4px;
    background: var(--Light_mode-Gray_Scale-100);
    z-index: 10005 !important;
}

.modal-drawer-right .ts-dropdown .option {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--Light_mode-Gray_Scale-5);
    cursor: pointer;
}

.modal-drawer-right .ts-dropdown .option.active,
.modal-drawer-right .ts-dropdown .option:hover {
    background-color: var(--Sky-50);
    color: var(--Sky-500);
    font-weight: 600;
}

/* ==========================================================================
   RELATIONSHIP BADGES (.rel-badge)
   ========================================================================== */
.rel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 16px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-lead-new {
    background-color: var(--Sky-100);
    color: var(--Sky-500);
}

.badge-consulting,
.badge-contacted {
    background-color: var(--Orange-100);
    color: var(--Orange-500);
}

.badge-trial {
    background-color: var(--Purple-100);
    color: var(--Purple-500);
}

.badge-studying {
    background-color: var(--Green-100);
    color: var(--Green-500);
}

.badge-reserved {
    background-color: var(--Light_mode-Gray_Scale-90);
    color: var(--Light_mode-Gray_Scale-30);
}

.badge-stopped {
    background-color: var(--Red-100);
    color: var(--Red-500);
}

/* ==========================================================================
   STUDENT DETAIL DRAWER COMPONENTS (.sdetail-*)
   ========================================================================== */
.sdetail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sdetail-user-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sdetail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--Orange-500);
    color: var(--Light_mode-Gray_Scale-100);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sdetail-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdetail-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
    margin: 0;
}

.sdetail-sub {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
    margin-top: 3px;
}

/* Tabs Navigation */
.sdetail-tabs-nav {
    display: flex;
    background-color: var(--Light_mode-Gray_Scale-90);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 20px;
    gap: 4px;
}

.sdetail-tab-btn {
    flex: 1;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--Light_mode-Gray_Scale-40);
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    text-transform: none;
    transition: all 0.2s ease;
}

.sdetail-tab-btn.active {
    background-color: var(--Light_mode-Gray_Scale-100);
    color: var(--Light_mode-Gray_Scale-5);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sdetail-tab-panel {
    display: none;
}

.sdetail-tab-panel.active {
    display: block;
}

/* Cards & Status Grid */
.sdetail-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sdetail-status-box {
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    border-radius: 14px;
    padding: 14px 16px;
    background-color: var(--Light_mode-Gray_Scale-100);
}

.sdetail-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sdetail-box-label {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
}

.sdetail-box-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}

.sdetail-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--Light_mode-Gray_Scale-90);
}

.sdetail-metric-label {
    font-size: 12px;
    color: var(--Light_mode-Gray_Scale-40);
    margin-bottom: 4px;
}

.sdetail-metric-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}

.sdetail-staff-val {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sdetail-staff-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--Blue-500);
    color: var(--Light_mode-Gray_Scale-100);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdetail-staff-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}

/* Journey Stepper */
.sdetail-journey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sdetail-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}

.sdetail-card-title svg {
    color: var(--Light_mode-Gray_Scale-40);
    stroke: currentColor;
    fill: none;
}

.sdetail-rel-dropdown-wrap {
    position: relative;
}

/* [FIX-4] Toggle button for relationship change popmenu */
.sdetail-rel-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    background: var(--Light_mode-Gray_Scale-95);
    color: var(--Light_mode-Gray_Scale-20);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.sdetail-rel-change-btn:hover {
    background: var(--Light_mode-Gray_Scale-90);
    border-color: var(--Light_mode-Gray_Scale-70);
}

.sdetail-rel-popmenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 220px;
    background-color: var(--Light_mode-Gray_Scale-100);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    padding: 12px 8px;
    z-index: 1100;
    display: none;
}

.sdetail-popmenu-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--Light_mode-Gray_Scale-40);
    padding: 4px 12px 8px 12px;
}

.sdetail-popmenu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--Light_mode-Gray_Scale-5);
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    text-transform: none;
    transition: background-color 0.15s ease;
}

.sdetail-popmenu-item:hover {
    background-color: var(--Light_mode-Gray_Scale-95);
}

.sdetail-popmenu-item.active {
    font-weight: 700;
}

.sdetail-popmenu-item .check-icon {
    margin-left: auto;
    color: var(--Sky-500);
    stroke: currentColor;
    fill: none;
}

.sdetail-stepper-wrap {
    margin-bottom: 16px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sdetail-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.sdetail-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 90px;
}

.step-dot-wrap {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.step-done .step-dot-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--Sky-500);
    color: var(--Light_mode-Gray_Scale-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-done .step-dot-icon svg {
    stroke: var(--Light_mode-Gray_Scale-100);
    fill: none;
}

.step-dot-active-ring {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--Sky-500);
    background-color: var(--Light_mode-Gray_Scale-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-dot-active-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--Sky-500);
}

.step-dot-pending {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--Light_mode-Gray_Scale-80);
    background-color: var(--Light_mode-Gray_Scale-100);
}

.step-line {
    height: 3px;
    background-color: var(--Light_mode-Gray_Scale-90);
    flex: 1;
    margin-top: 11px;
    margin-left: -20px;
    margin-right: -20px;
    z-index: 1;
}

.step-line.line-done {
    background-color: var(--Sky-500);
}

.step-name {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
    font-weight: 500;
    text-align: center;
}

.step-done .step-name {
    color: var(--Light_mode-Gray_Scale-5);
    font-weight: 700;
}

.step-active .step-name {
    color: var(--Sky-500);
    font-weight: 700;
}

.step-time {
    font-size: 12px;
    color: var(--Light_mode-Gray_Scale-40);
    margin-top: 3px;
    text-align: center;
}

/* Contact List */
.sdetail-contact-list {
    display: flex;
    flex-direction: column;
}

.sdetail-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--Light_mode-Gray_Scale-95);
}

.sdetail-contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sdetail-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--Light_mode-Gray_Scale-95);
    color: var(--Light_mode-Gray_Scale-40);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sdetail-contact-icon svg {
    stroke: currentColor;
    fill: none;
}

.sdetail-contact-label {
    font-size: 12px;
    color: var(--Light_mode-Gray_Scale-40);
}

.sdetail-contact-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}

.sdetail-contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-contact-outline {
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    background-color: var(--Light_mode-Gray_Scale-100);
    color: var(--Light_mode-Gray_Scale-30);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-contact-outline svg {
    stroke: currentColor;
    fill: none;
}

.btn-contact-outline:hover {
    border-color: var(--Sky-500);
    color: var(--Sky-500);
}

.btn-contact-blue {
    background-color: var(--Sky-50);
    color: var(--Sky-500);
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-contact-blue svg {
    stroke: currentColor;
    fill: none;
}

.btn-contact-blue:hover {
    background-color: var(--Sky-100);
}

.sdetail-count-badge {
    background-color: var(--Light_mode-Gray_Scale-90);
    color: var(--Light_mode-Gray_Scale-30);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

.sdetail-course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* History Milestones & Logs */
.sdetail-history-milestones {
    display: flex;
    flex-direction: column;
}

.sdetail-milestone-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--Light_mode-Gray_Scale-95);
}

.milestone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--Sky-500);
    margin-right: 12px;
    flex: 0 0 auto;
}

.milestone-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--Light_mode-Gray_Scale-5);
}

.milestone-date {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
    margin-left: auto;
}

.sdetail-history-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-sdetail-add-log {
    border: none;
    background: transparent;
    color: var(--Sky-500);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: none;
    padding: 0;
}

.btn-sdetail-add-log:hover {
    color: var(--Light-Primary-50);
}

.sdetail-history-log-list {
    display: flex;
    flex-direction: column;
}

.sdetail-log-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--Light_mode-Gray_Scale-95);
}

.sdetail-log-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--Light_mode-Gray_Scale-95);
    color: var(--Light_mode-Gray_Scale-40);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sdetail-log-icon svg {
    stroke: currentColor;
    fill: none;
}

.sdetail-log-content {
    flex: 1;
}

.sdetail-log-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sdetail-log-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--Light_mode-Gray_Scale-5);
}

.sdetail-log-time {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
}

.sdetail-log-desc {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-40);
}

.sdetail-inline-note-form {
    padding: 20px;
    border-radius: 16px;
    background-color: var(--Light_mode-Gray_Scale-95);
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.inline-note-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inline-note-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Tuition Tab */
.sdetail-class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sdetail-class-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
    margin-bottom: 4px;
}

.sdetail-class-sub {
    font-size: 14px;
    color: var(--Light_mode-Gray_Scale-40);
}

.sdetail-tuition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sdetail-tuition-card {
    background-color: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    border-radius: 14px;
    padding: 16px;
}

.sdetail-tuition-label {
    font-size: 14px;
    color: var(--Light_mode-Gray_Scale-40);
    margin-bottom: 8px;
}

.sdetail-tuition-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-5);
}

.sdetail-tuition-val.val-green {
    color: var(--Green-500);
}

/* Notes Tab */
.sdetail-note-box {
    width: 100%;
}

.sdetail-note-textarea {
    width: 100%;
    min-height: 90px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    background-color: var(--Light_mode-Gray_Scale-100);
    font-size: 14px;
    line-height: 1.5;
    color: var(--Light_mode-Gray_Scale-5);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sdetail-note-textarea:focus {
    border-color: var(--Sky-500);
    box-shadow: 0 0 0 3px var(--Sky-50);
}

/* Zalo Footer CTA Button */
.btn-sdetail-zalo {
    flex: 1;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: none;
    background-color: var(--Sky-500);
    color: var(--Light_mode-Gray_Scale-100);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sdetail-zalo svg {
    stroke: currentColor;
    fill: none;
}

.btn-sdetail-zalo:hover {
    background-color: var(--Light-Primary-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 98, 255, 0.25);
}

/* Copy Toast Notification Tooltip */
.crm-copy-toast {
    position: absolute;
    z-index: 99999;
    display: none;
    background-color: var(--Light_mode-Gray_Scale-5);
    color: var(--Light_mode-Gray_Scale-100);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

.crm-copy-toast::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: var(--Light_mode-Gray_Scale-5) transparent transparent;
}


/* Responsive Styles for Right Drawer Modal */
@media (max-width: 768px) {
    .c-modal.modal-drawer-right .c-modal-box {
        width: 100vw;
        max-width: 100vw;
    }

    .c-modal.modal-drawer-right .c-modal-group {
        border-radius: 0 !important;
    }

    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding: 16px;
    }

    .sdetail-grid-3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sdetail-grid-2 {
        grid-template-columns: 1fr;
    }

    .sdetail-tab-btn {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* ===== CLASS DETAIL ALERTS (Học viên vắng & GV quên điểm danh) ===== */
.class-alerts-wrapper {
    background: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-90);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.class-alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.class-alerts-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--Light_mode-Gray_Scale-10);
}

.class-alerts-title i {
    color: var(--Orange-500);
    font-size: 16px;
}

.class-alerts-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--Orange-500);
    background: var(--Orange-50);
    border: 1px solid var(--Orange-100);
    padding: 3px 10px;
    border-radius: 20px;
}

.class-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.class-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.class-alert-card.alert-student-absence {
    background: var(--Red-50);
    border: 1px solid var(--Red-100);
}

.class-alert-card.alert-student-absence .alert-icon-box {
    color: var(--Red-500);
}

.class-alert-card.alert-missing-attendance {
    background: var(--Orange-50);
    border: 1px solid var(--Orange-100);
    cursor: pointer;
}

.class-alert-card.alert-missing-attendance:hover {
    border-color: var(--Orange-500);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.class-alert-card.alert-missing-attendance:hover .alert-status-pill {
    background: var(--Orange-500);
    color: var(--Light_mode-Gray_Scale-100);
}

.class-alert-card.alert-missing-attendance .alert-icon-box {
    color: var(--Orange-500);
}

.alert-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--Orange-100);
    color: var(--Orange-500);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    user-select: none;
    transition: all 0.2s ease;
}

@keyframes columnHighlightPulse {
    0% { background-color: var(--Orange-100); }
    50% { background-color: var(--Orange-50); }
    100% { background-color: transparent; }
}

.column-highlight-pulse {
    animation: columnHighlightPulse 1.4s ease;
}

.class-alert-card .alert-icon-box {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-alert-card .alert-content-box {
    flex: 1;
    min-width: 0;
}

.class-alert-card .alert-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--Light_mode-Gray_Scale-10);
    margin-bottom: 4px;
}

.class-alert-card .alert-item-title strong {
    color: var(--Light_mode-Gray_Scale-10);
}

.class-alert-card .alert-phone {
    font-size: 12px;
    font-weight: 500;
    color: var(--Light-Primary-50);
    margin-left: 8px;
}

.class-alert-card .alert-item-desc {
    font-size: 13px;
    color: var(--Light_mode-Gray_Scale-30);
    line-height: 1.45;
}

.class-alert-card .alert-action-box {
    flex-shrink: 0;
}

.c-button-alert-done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--Light_mode-Gray_Scale-100);
    border: 1px solid var(--Light_mode-Gray_Scale-80);
    color: var(--Green-500);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.c-button-alert-done:hover {
    background: var(--Green-500);
    border-color: var(--Green-500);
    color: var(--Light_mode-Gray_Scale-100);
}

@media (max-width: 767px) {
    .class-alert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .class-alert-card .alert-action-box {
        width: 100%;
    }

    .c-button-alert-done {
        width: 100%;
        justify-content: center;
    }
}
