/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    scroll-behavior: smooth;
    --app-font-sans: "Be Vietnam Pro", "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
    font-family: var(--app-font-sans);
    background: #f6f9ff;
    color: #444444;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-font-sans);
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 60px;
    padding: 20px 30px;
    transition: all 0.3s;
}

@media (max-width: 1199px) {
    #main {
        padding: 15px 5px;
    }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
    margin-bottom: 10px;
}

.pagetitle h1 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #4154f1;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #6776f4;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    animation-name: dropdown-animate;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
    text-align: center;
    font-size: 15px;
    padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
    color: #444444;
    text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
    text-decoration: none;
}

.dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
}

.dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f6f9ff;
}

@media (min-width: 768px) {
    .dropdown-menu-arrow::before {
        content: "";
        width: 13px;
        height: 13px;
        background: #fff;
        position: absolute;
        top: -7px;
        right: 20px;
        transform: rotate(45deg);
        border-top: 1px solid #eaedf1;
        border-left: 1px solid #eaedf1;
    }
}

@keyframes dropdown-animate {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

    0% {
        opacity: 0;
    }
}

/* Light Backgrounds */
.bg-primary-light {
    background-color: #cfe2ff;
    border-color: #cfe2ff;
}

.bg-secondary-light {
    background-color: #e2e3e5;
    border-color: #e2e3e5;
}

.bg-success-light {
    background-color: #d1e7dd;
    border-color: #d1e7dd;
}

.bg-danger-light {
    background-color: #f8d7da;
    border-color: #f8d7da;
}

.bg-warning-light {
    background-color: #fff3cd;
    border-color: #fff3cd;
}

.bg-info-light {
    background-color: #cff4fc;
    border-color: #cff4fc;
}

.bg-dark-light {
    background-color: #d3d3d4;
    border-color: #d3d3d4;
}

/* Card */
.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
}

.card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #012970;
    font-family: var(--app-font-sans);
}

.card-title span {
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
}

.card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
    font-weight: 500;
    font-family: var(--app-font-sans);
    font-size: 20px;
}

/* Close Button */
.btn-close {
    background-size: 25%;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
}

/* Accordion */
.accordion-item {
    border: 1px solid #ebeef4;
}

.accordion-button:focus {
    outline: 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: #012970;
    background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
    padding: 15px 0;
    background: none;
    border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: #4154f1;
}

.accordion-flush .accordion-body {
    padding: 0 0 15px 0;
    color: #3e4f6f;
    font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
    font-family: var(--app-font-sans);
    color: #899bbd;
    font-weight: 600;
}

.breadcrumb a {
    color: #899bbd;
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
    color: #899bbd;
}

.breadcrumb .active {
    color: #51678f;
    font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
    border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
    margin-bottom: -2px;
    border: none;
    color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
    color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
    background-color: #fff;
    color: #4154f1;
    border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
}

@media (min-width: 1200px) {
    .logo {
        width: 280px;
    }
}

.logo img {
    max-height: 26px;
    margin-right: 6px;
}

.logo span {
    font-size: 26px;
    font-weight: 700;
    color: #012970;
    font-family: var(--app-font-sans);
}

.logo {
    min-width: 0;
    max-width: 220px;
    text-decoration: none;
}

.logo .logo-text-full,
.logo .logo-text-short {
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo .logo-text-short {
    display: none;
}

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
    padding-left: 20px;
    /* Toggle Sidebar Button */
    /* Search Bar */
}

.header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: #012970;
}

@media (max-width: 575px) {
    .header {
        padding-left: 12px;
    }

    .logo {
        max-width: 86px;
    }

    .logo span {
        font-size: 22px;
    }

    .logo .logo-text-full {
        display: none;
    }

    .logo .logo-text-short {
        display: inline-block;
    }

    .header .toggle-sidebar-btn {
        padding-left: 8px;
        font-size: 30px;
    }
}

.header .search-bar {
    min-width: 360px;
    padding: 0 20px;
}

@media (max-width: 1199px) {
    .header .search-bar {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
        background: white;
        z-index: 9999;
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
    }

    .header .search-bar-show {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }
}

.header .search-form {
    width: 100%;
}

.header .search-form input {
    border: 0;
    font-size: 14px;
    color: #012970;
    border: 1px solid rgba(1, 41, 112, 0.2);
    padding: 7px 38px 7px 8px;
    border-radius: 3px;
    transition: 0.3s;
    width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
    border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
    border: 0;
    padding: 0;
    margin-left: -30px;
    background: none;
}

.header .search-form button i {
    color: #012970;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
}

.header-nav>ul {
    margin: 0;
    padding: 0;
}

.header-nav .nav-icon {
    font-size: 22px;
    color: #012970;
    margin-right: 25px;
    position: relative;
}

.header-nav .nav-profile {
    color: #012970;
}

.header-nav .nav-profile img {
    max-height: 36px;
}

.header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
}

.header-nav .badge-number {
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
}

.header-nav .notifications {
    inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .notifications .notification-item:hover {
    background-color: #f6f9ff;
}

.header-nav .messages {
    inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .messages .message-item a {
    display: flex;
}

.header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
}

.header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444444;
}

.header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .messages .message-item:hover {
    background-color: #f6f9ff;
}

.header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: #444444;
}

.header-nav .profile .dropdown-header span {
    font-size: 14px;
}

.header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
    background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 300px;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}

.sidebar-nav {
    flex: 1 0 auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: #899bbd;
    font-weight: 600;
    margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3;
    padding: 10px 15px;
    border-radius: 4px;
    color: #012970;
    background: #fff;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 10px;
    color: #4154f1;
}

.sidebar-nav .active .nav-link {
    background: #f6f9ff;
    color: #4154f1;
}

.sidebar-nav .nav-link.collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-link:hover {
    color: #4154f1;
    background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
    color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #012970;
    transition: 0.3;
    padding: 10px 0 10px 40px;
    transition: 0.3s;
}

.sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
    color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
    background-color: #4154f1;
}

.sidebar-user-panel {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.sidebar-user-card {
    border: 1px solid #e6edf7;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 24px rgba(1, 41, 112, 0.07);
}

.sidebar-account-link {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #012970;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
}

.sidebar-account-link:hover,
.sidebar-account-link.active {
    color: #064b7e;
    background: #eef7ff;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0b6f68;
    background: #e6f7f5;
    font-size: 24px;
}

.sidebar-user-main {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.sidebar-user-name {
    overflow: hidden;
    color: #012970;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0b6f68;
    font-size: 0.82rem;
    font-weight: 700;
}

.sidebar-user-chevron {
    flex: 0 0 auto;
    color: #899bbd;
    font-size: 14px;
}

.sidebar-user-meta {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px;
    color: #5f6f89;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.sidebar-user-meta span {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.sidebar-user-meta i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #899bbd;
}

.sidebar-logout-form {
    margin: 10px 0 0;
}

.sidebar-logout-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    color: #5f6f89;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.sidebar-logout-button:hover {
    color: #bb2d3b;
    border-color: #f4c2c8;
    background: #fff7f8;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
    position: absolute;
    right: 0px;
    top: 15px;
}

.dashboard .filter .icon {
    color: #aab7cf;
    padding-right: 20px;
    padding-bottom: 5px;
    transition: 0.3s;
    font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
    color: #4154f1;
}

.dashboard .filter .dropdown-header {
    padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #aab7cf;
    margin-bottom: 0;
    padding: 0;
}

.dashboard .filter .dropdown-item {
    padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
    padding-bottom: 10px;
}

.dashboard .info-card h6 {
    font-size: 28px;
    color: #012970;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.dashboard .card-icon {
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    flex-grow: 0;
}

.dashboard .sales-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
    color: #ff771d;
    background: #ffecdf;
}

/* Activity */
.dashboard .activity {
    font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
    color: #888;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
    content: "";
    position: absolute;
    right: -11px;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
    margin-top: 3px;
    z-index: 1;
    font-size: 11px;
    line-height: 0;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #fff;
    flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
    padding-left: 10px;
    padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
    top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
    padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
    margin-top: 15px;
}

.dashboard .news img {
    width: 80px;
    float: left;
    border-radius: 5px;
}

.dashboard .news h4 {
    font-size: 15px;
    margin-left: 95px;
    font-weight: bold;
    margin-bottom: 5px;
}

.dashboard .news h4 a {
    color: #012970;
    transition: 0.3s;
}

.dashboard .news h4 a:hover {
    color: #4154f1;
}

.dashboard .news p {
    font-size: 14px;
    color: #777777;
    margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
    font-size: 14px;
}

.dashboard .recent-sales .table thead {
    background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
    border: 0;
}

.dashboard .recent-sales .dataTable-top {
    padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
    padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
    font-size: 14px;
}

.dashboard .top-selling .table thead {
    background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
    border: 0;
}

.dashboard .top-selling .table tbody td {
    vertical-align: middle;
}

.dashboard .top-selling img {
    border-radius: 5px;
    max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding-top: 15px;
}

.iconslist .icon {
    background-color: #fff;
    border-radius: 0.25rem;
    text-align: center;
    color: #012970;
    padding: 15px 0;
}

.iconslist i {
    margin: 0.25rem;
    font-size: 2.5rem;
}

.iconslist .label {
    font-family: var(--bs-font-monospace);
    display: inline-block;
    width: 100%;
    overflow: hidden;
    padding: 0.25rem;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
    max-width: 120px;
}

.profile .profile-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c384e;
    margin: 10px 0 0 0;
}

.profile .profile-card h3 {
    font-size: 18px;
}

.profile .profile-card .social-links a {
    font-size: 20px;
    display: inline-block;
    color: rgba(1, 41, 112, 0.5);
    line-height: 0;
    margin-right: 10px;
    transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
    color: #012970;
}

.profile .profile-overview .row {
    margin-bottom: 20px;
    font-size: 15px;
}

.profile .profile-overview .card-title {
    color: #012970;
}

.profile .profile-overview .label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
    max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
    font-size: 18px;
    font-weight: 600;
    color: #4154f1;
}

.faq .basic p {
    color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
    padding: 28px 30px;
}

.contact .info-box i {
    font-size: 38px;
    line-height: 0;
    color: #4154f1;
}

.contact .info-box h3 {
    font-size: 20px;
    color: #012970;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.contact .info-box p {
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    border-color: #4154f1;
}

.contact .php-email-form input {
    padding: 10px 15px;
}

.contact .php-email-form textarea {
    padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
    background: #4154f1;
    border: 0;
    padding: 10px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
    background: #5969f3;
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
    padding: 30px;
}

.error-404 h1 {
    font-size: 180px;
    font-weight: 700;
    color: #4154f1;
    margin-bottom: 0;
    line-height: 150px;
}

.error-404 h2 {
    font-size: 24px;
    font-weight: 700;
    color: #012970;
    margin-bottom: 30px;
}

.error-404 .btn {
    background: #51678f;
    color: #fff;
    padding: 8px 30px;
}

.error-404 .btn:hover {
    background: #3e4f6f;
}

@media (min-width: 992px) {
    .error-404 img {
        max-width: 50%;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    border-top: 1px solid #dbe7f6;
    background: #fff;
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
    color: #012970;
}

.footer-brand,
.footer-support {
    min-width: 0;
}

.footer-system {
    color: #012970;
    font-weight: 600;
}

.footer-school {
    margin-top: 3px;
    color: #66768d;
    font-size: 13px;
}

.footer-support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    color: #5f6f89;
    font-size: 13px;
}

.footer-support a {
    color: #0b6f68;
    font-weight: 700;
    text-decoration: none;
}

.footer-support a:hover {
    color: #064b7e;
    text-decoration: underline;
}

.footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #012970;
}

@media (max-width: 767px) {
    .footer {
        padding: 18px 0 20px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .footer-support {
        justify-content: flex-start;
    }
}

/*--------------------------------------------------------------
# Support page
--------------------------------------------------------------*/
.support-page {
    width: min(1120px, 100%);
    margin: 0 auto;
    color: #1f2d3d;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: stretch;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(230, 247, 245, 0.9), rgba(255, 250, 244, 0.86)),
        #fff;
    box-shadow: 0 18px 48px rgba(1, 41, 112, 0.08);
}

.support-kicker {
    margin: 0 0 10px;
    color: #0b6f68;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.support-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #012970;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.14;
    font-weight: 700;
}

.support-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4f6078;
    font-size: 1.02rem;
    line-height: 1.72;
}

.support-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(11, 111, 104, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.support-contact-label {
    color: #66768d;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

.support-contact-card strong {
    color: #012970;
    font-size: 1.18rem;
}

.support-email-link {
    color: #0b6f68;
    font-weight: 700;
    text-decoration: none;
}

.support-email-link:hover {
    color: #064b7e;
    text-decoration: underline;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.support-block {
    padding: 22px;
    border: 1px solid #e3ebf6;
    border-radius: 8px;
    background: #fff;
}

.support-block-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    color: #0b6f68;
    background: #e6f7f5;
    font-size: 22px;
}

.support-block h2,
.support-instructions h2 {
    margin: 0 0 10px;
    color: #012970;
    font-size: 1.16rem;
    font-weight: 700;
}

.support-block p {
    margin: 0;
    color: #56677f;
    line-height: 1.68;
}

.support-instructions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: center;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #e3ebf6;
    border-radius: 8px;
    background: #f8fbff;
}

.support-instructions ul {
    margin: 0;
    padding-left: 18px;
    color: #56677f;
    line-height: 1.75;
}

.support-actions {
    display: grid;
    gap: 10px;
}

.support-primary-action,
.support-secondary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.support-primary-action {
    color: #fff;
    background: #0b6f68;
}

.support-primary-action:hover {
    color: #fff;
    background: #064b7e;
}

.support-secondary-action {
    color: #064b7e;
    border: 1px solid #cddfff;
    background: #fff;
}

.support-secondary-action:hover {
    color: #0b6f68;
    border-color: #9ed7d1;
    background: #f1fbfa;
}

@media (max-width: 991px) {
    .support-hero,
    .support-instructions {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }
}
.customcss tr.bg-warning>td {
    background-color: rgb(255, 221, 159);
}
.customcss tr.bg-success>td {
    background-color: rgba(0, 123, 255, 0.8);
}
td.bg-success {
    color: white;
}
td.bg-secondary {
    color: white;
}
h1.thongtintc {
    font-size: 1.8rem;
    font-weight: bolder;
}
.dangky-tinchi .card-header {
    font-size: 1.2rem; /* Tăng kích thước font */
    font-weight: bold; /* Đậm hơn */
    color: #423c3c; /* Màu chữ */
    background-color: #fff3cd; /* Nền màu xanh */
    text-align: center; /* Canh giữa nội dung */
    padding: 10px 10px; /* Khoảng cách trong */
    border-bottom: 2px solid #f1e1ad; /* Đường viền dưới */
}

.dangky-tinchi .card-title {
    font-size: 1rem; /* Nhỏ hơn tiêu đề header */
    font-weight: 600; /* Đậm vừa phải */
    margin-bottom: 5px; /* Thêm khoảng cách phía dưới */
    padding: 10px 15px 0;
    color: #333; /* Màu chữ đậm */
}

.dangky-tinchi .card-text {
    font-size: 1rem; /* Kích thước tiêu chuẩn */
    color: #555; /* Màu xám nhạt hơn */
    line-height: 1.6; /* Tăng khoảng cách dòng */
    padding: 3px 15px 0;
}
.dangky-tinchi .card-body {
    padding: 0 5px 10px 5px;
}

/* Auth pages */
.auth-body {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background-color: #eef7fb;
    background-image:
        linear-gradient(122deg, rgba(255, 255, 255, 0.9) 0%, rgba(233, 248, 249, 0.8) 48%, rgba(255, 247, 238, 0.88) 100%),
        url("../img/cdytbn/logo.jpg");
    background-repeat: no-repeat;
    background-size: cover, min(86vmin, 760px);
    background-position: center, calc(100% + 170px) calc(100% + 160px);
    background-attachment: fixed, fixed;
    font-family: "Be Vietnam Pro", sans-serif;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 121, 111, 0.08), transparent 34%, rgba(255, 112, 44, 0.08)),
        repeating-linear-gradient(135deg, rgba(1, 41, 112, 0.045) 0 1px, transparent 1px 18px);
}

.auth-body::after {
    content: "";
    position: fixed;
    top: -150px;
    left: -140px;
    z-index: -1;
    width: 430px;
    height: 430px;
    pointer-events: none;
    background: url("../img/cdytbn/logo_512_2.png") center/contain no-repeat;
    opacity: 0.1;
}

.auth-body #main {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
    min-height: 100dvh;
}

.auth-body .pagetitle {
    display: none;
}

.auth-body .section.dashboard {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 58px) 18px;
}

.auth-body .section.dashboard > .row {
    width: 100%;
    margin: 0;
}

.auth-body .section.dashboard > .row:first-child {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 5;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
}

.auth-body .section.dashboard > .row:last-child {
    justify-content: center;
}

.auth-page {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 26px 70px rgba(1, 41, 112, 0.18),
        0 0 0 1px rgba(1, 41, 112, 0.05);
    backdrop-filter: blur(14px);
}

.auth-brand {
    position: relative;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: 46px;
    background:
        linear-gradient(145deg, rgba(6, 75, 126, 0.96) 0%, rgba(8, 121, 111, 0.94) 58%, rgba(47, 132, 75, 0.96) 100%);
    color: #fff;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 22px);
}

.auth-brand::after {
    content: "";
    position: absolute;
    right: -122px;
    bottom: -116px;
    width: 420px;
    height: 420px;
    background: url("../img/cdytbn/logo_512_2.png") center/contain no-repeat;
    opacity: 0.18;
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    width: 98px;
    height: 98px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.auth-brand-mark img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.auth-brand-kicker {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.auth-brand h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.16;
    font-weight: 700;
}

.auth-brand p {
    max-width: 470px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.65;
}

.auth-brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-brand-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: 7px;
    padding: 8px 13px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    border-style: solid;
    border-width: 1px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.auth-panel {
    display: flex;
    align-items: center;
    padding: 52px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 255, 0.94) 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.auth-card-header {
    margin-bottom: 30px;
}

.auth-card-title {
    margin: 0;
    color: #05356f;
    font-size: 1.86rem;
    line-height: 1.24;
    font-weight: 700;
}

.auth-card-subtitle {
    max-width: 380px;
    margin: 8px 0 0;
    color: #63748a;
    font-size: 0.96rem;
    line-height: 1.55;
}

.auth-info-box {
    display: flex;
    gap: 12px;
    margin: 0 0 22px;
    padding: 13px 14px;
    color: #064b7e;
    border: 1px solid #bdd8f0;
    border-radius: 8px;
    background: #eef7ff;
}

.auth-info-box > i {
    margin-top: 2px;
    color: #0b75bc;
    font-size: 1.14rem;
}

.auth-info-box strong,
.auth-info-box span {
    display: block;
}

.auth-info-box strong {
    margin-bottom: 3px;
    font-size: 0.92rem;
}

.auth-info-box span {
    color: #405c78;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-form .form-label {
    margin-bottom: 8px;
    color: #203449;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #0b75bc;
    font-size: 1.08rem;
    transform: translateY(-50%);
}

.auth-form .form-control {
    height: 54px;
    padding-left: 48px;
    color: #1f3047;
    border-color: #d6e2ec;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    box-shadow: none;
}

.auth-form .form-control:hover {
    border-color: #b9ccd9;
}

.auth-form .form-control:focus {
    border-color: #08796f;
    box-shadow: 0 0 0 4px rgba(8, 121, 111, 0.13);
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control {
    padding-right: 54px;
}

.password-field-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #60748a;
    border: 0;
    border-radius: 8px;
    background: transparent;
    line-height: 1;
    transform: translateY(-50%);
}

.password-field-toggle:hover {
    color: #0b75bc;
    background: #eef6fb;
}

.password-field-toggle:focus-visible {
    color: #08796f;
    outline: 3px solid rgba(8, 121, 111, 0.2);
    outline-offset: 1px;
}

.password-field-toggle i {
    font-size: 1.05rem;
    pointer-events: none;
}

.auth-input-wrap.password-field-wrap .form-control {
    padding-right: 54px;
}

.auth-captcha {
    margin-bottom: 18px;
}

.auth-captcha .form-label {
    margin-bottom: 8px;
    color: #203449;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-captcha-box {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.auth-captcha-image {
    width: 150px;
    height: 54px;
    object-fit: cover;
    border: 1px solid #d6e2ec;
    border-radius: 8px;
    background: #fff;
}

.auth-captcha-input .form-control {
    padding-left: 16px;
}

.auth-form .invalid-feedback,
.auth-form .help-block {
    display: block;
    margin-top: 7px;
    color: #c93535;
    font-size: 0.86rem;
}

.auth-form .form-check {
    min-height: 1.4rem;
    margin: 0;
}

.auth-form .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.18rem;
    border-color: #b8c7d8;
}

.auth-form .form-check-label {
    color: #5f6f86;
    font-size: 0.92rem;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 24px;
}

.auth-link {
    color: #08796f;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: #075b54;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b75bc 0%, #08796f 58%, #2f844b 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(8, 121, 111, 0.24);
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #09629d 0%, #076b63 58%, #28713f 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(8, 121, 111, 0.26);
}

.auth-secondary-action {
    margin-top: 22px;
    text-align: center;
}

.auth-secondary-action .auth-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-warning-box {
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px 14px;
    color: #62430d;
    border: 1px solid #f2d48a;
    border-radius: 8px;
    background: #fff8e6;
}

.auth-warning-box > i {
    margin-top: 2px;
    color: #b98212;
    font-size: 1.14rem;
}

.auth-warning-box strong,
.auth-warning-box span {
    display: block;
}

.auth-warning-box strong {
    margin-bottom: 3px;
    font-size: 0.92rem;
}

.auth-warning-box span {
    color: #73551d;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-policy-list {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.auth-policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #49627d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-policy-list i {
    margin-top: 1px;
    color: #08796f;
}

.auth-logo-mobile {
    display: none;
}

.auth-body #yii-debug-toolbar,
.auth-body #yii-debug-toolbar-logo {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 991.98px) {
    .auth-body {
        background-size: cover, min(78vmin, 560px);
        background-position: center, calc(100% + 150px) calc(100% + 150px);
    }

    .auth-body .section.dashboard {
        align-items: center;
        padding: 20px 14px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-brand {
        min-height: 220px;
        padding: 30px 30px 28px;
        justify-content: flex-end;
    }

    .auth-brand::after {
        right: -64px;
        bottom: -84px;
        width: 260px;
        height: 260px;
        opacity: 0.2;
    }

    .auth-brand-mark,
    .auth-brand p,
    .auth-brand-meta {
        display: none;
    }

    .auth-brand h1 {
        max-width: min(460px, calc(100% - 100px));
        font-size: 1.72rem;
    }

    .auth-panel {
        padding: 32px 28px 34px;
    }

    .auth-card {
        max-width: 470px;
    }

    .auth-card-subtitle {
        max-width: none;
    }

    .auth-logo-mobile {
        width: 78px;
        height: 78px;
        display: block;
        margin: -72px auto 20px;
        background: #fff;
        border-width: 6px;
        border-style: solid;
        border-color: #fff;
        border-radius: 50%;
        box-shadow: 0 10px 28px rgba(1, 41, 112, 0.14);
    }
}

@media (max-width: 575.98px) {
    .auth-body {
        background-attachment: scroll, scroll;
        background-size: cover, 430px;
        background-position: center, calc(100% + 160px) calc(100% + 170px);
    }

    .auth-body::after {
        top: -120px;
        left: -150px;
        width: 320px;
        height: 320px;
        opacity: 0.08;
    }

    .auth-body .section.dashboard {
        padding: 0;
    }

    .auth-body .section.dashboard > .row:first-child {
        top: 12px;
        width: calc(100% - 24px);
    }

    .auth-shell {
        width: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-brand {
        min-height: 176px;
        padding: 24px 20px 28px;
    }

    .auth-brand h1 {
        max-width: calc(100% - 86px);
        font-size: 1.34rem;
    }

    .auth-brand-kicker {
        font-size: 0.73rem;
    }

    .auth-panel {
        align-items: flex-start;
        padding: 28px 18px 34px;
    }

    .auth-card {
        max-width: none;
    }

    .auth-card-header {
        margin-bottom: 24px;
        text-align: left;
    }

    .auth-card-title {
        font-size: 1.52rem;
    }

    .auth-card-subtitle {
        font-size: 0.92rem;
    }

    .auth-logo-mobile {
        width: 72px;
        height: 72px;
        margin: 0 0 18px;
    }

    .auth-form .form-control,
    .auth-submit {
        min-height: 52px;
    }

    .auth-form .form-control {
        font-size: 0.94rem;
    }

    .auth-captcha-box {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-captcha-image {
        width: 150px;
        max-width: 100%;
    }

    .auth-options {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .auth-link {
        width: fit-content;
    }
}

/* Account settings */
.settings-body .section.dashboard > .row {
    margin-left: 0;
    margin-right: 0;
}

.settings-body #yii-debug-toolbar,
.settings-body #yii-debug-toolbar-logo {
    display: none !important;
    visibility: hidden !important;
}

.settings-page {
    width: 100%;
}

.settings-page > .row,
.settings-page .row {
    margin-left: 0;
    margin-right: 0;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.settings-sidebar,
.settings-card {
    border: 1px solid #e4ebf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(1, 41, 112, 0.06);
}

.settings-sidebar {
    position: sticky;
    top: 86px;
    overflow: hidden;
}

.settings-user {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(135deg, #f7fbff 0%, #eef8f6 100%);
}

.settings-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(1, 41, 112, 0.12);
}

.settings-user-main {
    min-width: 0;
}

.settings-user-name {
    overflow: hidden;
    color: #17324d;
    font-size: 0.98rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-user-code {
    margin-top: 3px;
    color: #6b7d90;
    font-size: 0.86rem;
    font-weight: 600;
}

.settings-user-meta {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f7;
}

.settings-user-meta div {
    min-width: 0;
}

.settings-user-meta dt {
    color: #7a8b9c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.settings-user-meta dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: #263b52;
    font-size: 0.9rem;
    font-weight: 600;
}

.settings-nav {
    display: grid;
    gap: 4px;
    padding: 10px;
}

.settings-nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #44586e;
    border-radius: 7px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.settings-nav-link i {
    color: #0b75bc;
    font-size: 1.05rem;
}

.settings-nav-link:hover {
    color: #063f6f;
    background: #f1f7fb;
}

.settings-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #0b75bc 0%, #08796f 100%);
}

.settings-nav-link.active i {
    color: #fff;
}

.settings-content {
    min-width: 0;
}

.settings-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.settings-header h1 {
    margin: 0;
    color: #17324d;
    font-size: 1.42rem;
    line-height: 1.28;
    font-weight: 800;
}

.settings-header p {
    margin: 5px 0 0;
    color: #627388;
    font-size: 0.94rem;
}

.settings-status {
    min-height: 34px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #08796f;
    border: 1px solid #bfe1da;
    border-radius: 7px;
    background: #f2fbf8;
    font-size: 0.84rem;
    font-weight: 800;
}

.settings-card {
    padding: 22px;
}

.settings-content .settings-card + .settings-card {
    margin-top: 16px;
}

.settings-form {
    display: grid;
    gap: 22px;
}

.settings-section {
    min-width: 0;
    scroll-margin-top: 96px;
}

.settings-section + .settings-section {
    padding-top: 22px;
    border-top: 1px solid #edf2f7;
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #17324d;
    font-size: 1rem;
    font-weight: 800;
}

.settings-section-title i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b75bc;
    border-radius: 7px;
    background: #eef7fd;
}

.settings-email-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
}

.settings-email-badge.confirmed {
    color: #08796f;
    border: 1px solid #bfe1da;
    background: #f2fbf8;
}

.settings-email-badge.unconfirmed {
    color: #9d5a00;
    border: 1px solid #f0d3a1;
    background: #fff8e8;
}

.settings-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.settings-info-item {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fbfdff;
}

.settings-info-item span {
    display: block;
    margin-bottom: 5px;
    color: #7a8b9c;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.settings-info-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #17324d;
    font-size: 0.96rem;
    font-weight: 800;
}

.settings-email-warning {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 14px;
    color: #794600;
    border: 1px solid #f0d3a1;
    border-radius: 8px;
    background: #fffaf0;
}

.settings-email-warning i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #c47a00;
}

.settings-email-warning strong,
.settings-email-warning span {
    display: block;
}

.settings-email-warning strong {
    margin-bottom: 3px;
    color: #6e3f00;
    font-weight: 800;
}

.settings-email-warning span {
    line-height: 1.55;
}

.settings-email-state,
.settings-pending-email {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fbfdff;
}

.settings-email-state span {
    display: block;
    color: #7a8b9c;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.settings-email-state strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #17324d;
}

.settings-email-state-note {
    max-width: 280px;
    color: #9d5a00;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
}

.settings-pending-email {
    color: #794600;
    border-color: #f0d3a1;
    background: #fffaf0;
}

.settings-pending-email > div {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
}

.settings-pending-email strong {
    overflow-wrap: anywhere;
}

.settings-pending-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.settings-pending-cancel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a43a3a;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.settings-pending-cancel-link:hover,
.settings-pending-cancel-link:focus {
    color: #862d2d;
    text-decoration: underline;
}

.settings-mini-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

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

.settings-field {
    margin-bottom: 16px;
}

.settings-grid .settings-field {
    margin-bottom: 0;
}

.settings-form .form-label {
    margin-bottom: 7px;
    color: #33475f;
    font-size: 0.86rem;
    font-weight: 800;
}

.settings-form .form-control,
.settings-form .form-select {
    min-height: 46px;
    color: #263b52;
    border-color: #d9e4ee;
    border-radius: 8px;
    background-color: #fff;
    font-size: 0.96rem;
    box-shadow: none;
}

.settings-form textarea.form-control {
    min-height: 128px;
}

.settings-form .form-control:hover,
.settings-form .form-select:hover {
    border-color: #bed0df;
}

.settings-form .form-control:focus,
.settings-form .form-select:focus {
    border-color: #08796f;
    box-shadow: 0 0 0 4px rgba(8, 121, 111, 0.12);
}

.settings-readonly,
.settings-form .form-control[readonly] {
    color: #526477;
    background-color: #f6f9fc;
}

.settings-form .invalid-feedback,
.settings-form .help-block {
    display: block;
    margin-top: 6px;
    color: #c93535;
    font-size: 0.84rem;
}

.settings-form .hint-block {
    margin-top: 6px;
    color: #748599;
    font-size: 0.84rem;
}

.settings-form .hint-block a {
    color: #08796f;
    font-weight: 700;
    text-decoration: none;
}

.settings-form .hint-block a:hover {
    text-decoration: underline;
}

.settings-link {
    color: #08796f;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.settings-link:hover,
.settings-link:focus {
    color: #075b54;
    text-decoration: underline;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.settings-submit {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b75bc 0%, #08796f 100%);
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(8, 121, 111, 0.2);
}

.settings-submit:hover,
.settings-submit:focus {
    color: #fff;
    background: linear-gradient(135deg, #09629d 0%, #076b63 100%);
}

.settings-secondary-button,
.settings-outline-danger,
.settings-mini-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.settings-secondary-button {
    color: #063f6f;
    border: 1px solid #bdd7eb;
    background: #eef7fd;
}

.settings-secondary-button:hover,
.settings-secondary-button:focus {
    color: #04365f;
    border-color: #93c0df;
    background: #e2f1fb;
}

.settings-outline-danger {
    color: #b73232;
    border: 1px solid #f0c9c9;
    background: #fff7f7;
}

.settings-outline-danger:hover,
.settings-outline-danger:focus {
    color: #9b2727;
    border-color: #e5a8a8;
    background: #fff0f0;
}

.settings-table-card {
    overflow: hidden;
    padding: 0;
}

.settings-table-card .grid-view {
    overflow-x: auto;
}

.settings-table {
    min-width: 680px;
    margin: 0;
    color: #263b52;
}

.settings-table > :not(caption) > * > * {
    padding: 13px 16px;
    border-color: #edf2f7;
}

.settings-table thead th {
    color: #33475f;
    background: #f7fbff;
    font-size: 0.84rem;
    font-weight: 800;
}

.settings-table tbody tr:hover {
    background: #fbfdff;
}

.settings-table-summary {
    padding: 11px 16px 14px;
    color: #748599;
    border-top: 1px solid #edf2f7;
    font-size: 0.84rem;
}

.settings-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-action-box {
    min-width: 0;
    padding: 18px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fbfdff;
}

.settings-action-box p,
.settings-muted-note {
    margin: 0 0 16px;
    color: #627388;
    font-size: 0.94rem;
    line-height: 1.55;
}

.settings-action-box-danger {
    background: #fffafa;
}

.settings-muted-note {
    padding: 16px 16px 0;
}

.settings-network-icon {
    width: 48px;
}

.settings-network-action {
    width: 160px;
    text-align: right;
}

.settings-mini-button {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}

.settings-standalone {
    min-height: calc(100dvh - 160px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.settings-standalone-card {
    width: min(560px, 100%);
}

.settings-consent-box {
    padding: 16px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fbfdff;
}

.settings-consent-box .form-check {
    margin: 0;
}

.settings-consent-box .form-check-label {
    color: #33475f;
    font-weight: 700;
    line-height: 1.55;
}

.settings-consent-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.settings-danger-copy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 13px 14px;
    color: #9b2727;
    border: 1px solid #f0c9c9;
    border-radius: 8px;
    background: #fff7f7;
    font-weight: 700;
}

.settings-danger-copy i {
    flex: 0 0 auto;
}

.settings-actions-split {
    justify-content: space-between;
}

.footer-email-confirmation {
    display: flex;
    width: fit-content;
    max-width: min(760px, 100%);
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 auto 10px;
    padding: 9px 13px;
    color: #794600;
    border: 1px solid #f0d3a1;
    border-radius: 8px;
    background: #fffaf0;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.footer-email-confirmation a {
    color: #08796f;
    font-weight: 800;
    text-decoration: none;
}

.footer-email-confirmation a:hover {
    text-decoration: underline;
}

.grade-page {
    display: grid;
    gap: 18px;
    color: #102a43;
}

.grade-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px 24px;
    border: 1px solid #dbe8f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: 0 16px 38px rgba(15, 44, 73, 0.08);
}

.grade-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #08796f;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.grade-header h1 {
    margin: 0;
    color: #082f5f;
    font-size: 1.8rem;
    font-weight: 800;
}

.grade-header p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #60748a;
    font-size: 0.98rem;
}

.grade-student {
    display: grid;
    gap: 3px;
    min-width: 230px;
    padding: 13px 15px;
    border: 1px solid #dce9f4;
    border-radius: 8px;
    background: #ffffff;
}

.grade-student-label {
    color: #6c7f94;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.grade-student strong {
    color: #082f5f;
    font-size: 1rem;
}

.grade-student span:last-child {
    color: #60748a;
    font-size: 0.9rem;
    font-weight: 700;
}

.grade-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.grade-summary-card {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #dbe8f3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 44, 73, 0.06);
}

.grade-summary-card span {
    color: #6c7f94;
    font-size: 0.83rem;
    font-weight: 800;
    text-transform: uppercase;
}

.grade-summary-card strong {
    color: #082f5f;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.grade-summary-card small {
    margin-left: 4px;
    color: #60748a;
    font-size: 0.95rem;
    font-weight: 800;
}

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

.grade-note,
.grade-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.grade-note {
    flex: 1 1 auto;
    border: 1px solid #cfe5f4;
    background: #f4fbff;
    color: #255c7a;
}

.grade-note i {
    color: #0b75bc;
}

.grade-alert {
    border: 1px solid #f2c5c5;
    background: #fff7f7;
    color: #9f2f2f;
}

.grade-alert i {
    color: #c43d3d;
}

.grade-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #cdddea;
    border-radius: 8px;
    background: #ffffff;
    color: #24455f;
    font-weight: 800;
    white-space: nowrap;
}

.grade-secondary-action:hover,
.grade-secondary-action:focus {
    border-color: #08796f;
    background: #effaf8;
    color: #08796f;
}

.grade-table-shell {
    overflow: hidden;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 44, 73, 0.08);
}

.grade-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.grade-table thead th {
    padding: 13px 12px;
    border-bottom: 1px solid #d9e6f1;
    background: #f4f8fc;
    color: #415a73;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.grade-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf3f8;
    color: #263b52;
    vertical-align: top;
}

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

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

.grade-row-failed td {
    background: #fffafa;
}

.grade-course-name {
    color: #082f5f;
    font-weight: 800;
}

.grade-course-code {
    margin-top: 3px;
    color: #6c7f94;
    font-size: 0.83rem;
    font-weight: 700;
}

.grade-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.grade-detail-list span {
    display: inline-flex;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f6fb;
    color: #4f647a;
    font-size: 0.78rem;
}

.grade-letter,
.grade-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.grade-letter {
    min-width: 40px;
    background: #eef6fb;
    color: #0b5b92;
}

.grade-letter-a,
.grade-letter-bplus,
.grade-letter-b {
    background: #ecfdf5;
    color: #08796f;
}

.grade-letter-cplus,
.grade-letter-c {
    background: #fff8e8;
    color: #9a5700;
}

.grade-letter-dplus,
.grade-letter-d,
.grade-letter-f {
    background: #fff1f1;
    color: #b13333;
}

.grade-status-passed {
    background: #ecfdf5;
    color: #08796f;
}

.grade-status-failed {
    background: #fff1f1;
    color: #b13333;
}

.grade-status-eligible {
    background: #eef6ff;
    color: #0b5b92;
}

.grade-status-pending {
    background: #f1f5f9;
    color: #4f647a;
}

.grade-muted {
    color: #8a9aad;
    font-weight: 800;
}

.grade-mobile-list {
    display: none;
}

.grade-mobile-card {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 44, 73, 0.07);
}

.grade-mobile-head {
    display: grid;
    gap: 10px;
}

.grade-mobile-head h2 {
    margin: 0;
    color: #082f5f;
    font-size: 1rem;
    font-weight: 800;
}

.grade-mobile-head span {
    color: #60748a;
    font-size: 0.86rem;
    font-weight: 700;
}

.grade-mobile-head .grade-status {
    width: fit-content;
}

.grade-mobile-score {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.grade-mobile-score div {
    display: grid;
    gap: 4px;
    min-height: 70px;
    padding: 10px;
    border-radius: 8px;
    background: #f5f9fd;
}

.grade-mobile-score span {
    color: #6c7f94;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.grade-mobile-score strong {
    color: #082f5f;
    font-size: 1.22rem;
    font-weight: 900;
}

.grade-mobile-meta,
.grade-mobile-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.grade-mobile-meta span,
.grade-mobile-detail span {
    display: inline-flex;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f6fb;
    color: #4f647a;
    font-size: 0.8rem;
}

.grade-empty,
.grade-requirements {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.grade-empty i {
    color: #8aa0b5;
    font-size: 2.2rem;
}

.grade-empty h2 {
    margin: 0;
    color: #082f5f;
    font-size: 1.25rem;
    font-weight: 800;
}

.grade-empty p {
    margin: 0;
    color: #60748a;
    font-weight: 700;
}

.grade-requirements {
    border-color: #f0d3a1;
    background: #fffaf0;
}

.grade-requirements-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9a5700;
    font-size: 1.1rem;
    font-weight: 800;
}

.grade-requirements-grid {
    display: grid;
    gap: 14px;
}

.cumulative-page {
    display: grid;
    gap: 18px;
    color: #102a43;
}

.cumulative-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px 24px;
    border: 1px solid #dbe8f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: 0 16px 38px rgba(15, 44, 73, 0.08);
}

.cumulative-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #08796f;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cumulative-header h1 {
    margin: 0;
    color: #082f5f;
    font-size: 1.8rem;
    font-weight: 800;
}

.cumulative-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #60748a;
    font-size: 0.98rem;
}

.cumulative-student {
    display: grid;
    gap: 3px;
    min-width: 230px;
    padding: 13px 15px;
    border: 1px solid #dce9f4;
    border-radius: 8px;
    background: #ffffff;
}

.cumulative-student-label {
    color: #6c7f94;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cumulative-student strong {
    color: #082f5f;
    font-size: 1rem;
}

.cumulative-student span:last-child {
    color: #60748a;
    font-size: 0.9rem;
    font-weight: 700;
}

.cumulative-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #cfe5f4;
    border-radius: 8px;
    background: #f4fbff;
    color: #255c7a;
}

.cumulative-note i {
    margin-top: 2px;
    color: #0b75bc;
    font-size: 1.05rem;
}

.cumulative-note div {
    display: grid;
    gap: 4px;
}

.cumulative-note strong {
    color: #082f5f;
    font-size: 0.98rem;
}

.cumulative-note span {
    font-weight: 700;
    line-height: 1.55;
}

.cumulative-rules {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 44, 73, 0.06);
}

.cumulative-rules h2 {
    margin: 0 0 7px;
    color: #082f5f;
    font-size: 1.08rem;
    font-weight: 800;
}

.cumulative-rules p {
    margin: 0;
    color: #60748a;
    font-weight: 700;
    line-height: 1.5;
}

.cumulative-rule-table-wrap {
    overflow: hidden;
    border: 1px solid #dbe8f3;
    border-radius: 8px;
}

.cumulative-rule-table,
.cumulative-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.cumulative-rule-table th,
.cumulative-rule-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf3f8;
    color: #263b52;
    font-weight: 700;
}

.cumulative-rule-table thead th {
    background: #f4f8fc;
    color: #415a73;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cumulative-rule-table tbody tr:last-child td {
    border-bottom: 0;
}

.cumulative-table-shell {
    overflow: hidden;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 44, 73, 0.08);
}

.cumulative-table thead th {
    padding: 13px 12px;
    border-bottom: 1px solid #d9e6f1;
    background: #f4f8fc;
    color: #415a73;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.cumulative-table tbody td,
.cumulative-table tfoot th {
    padding: 13px 12px;
    border-bottom: 1px solid #edf3f8;
    color: #263b52;
    vertical-align: middle;
}

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

.cumulative-table tbody tr:hover td {
    background: #fbfdff;
}

.cumulative-table th:first-child,
.cumulative-table td:first-child,
.cumulative-table th:nth-child(n+3),
.cumulative-table td:nth-child(n+3) {
    text-align: center;
}

.cumulative-table tfoot th {
    border-top: 1px solid #d9e6f1;
    border-bottom: 0;
    background: #f4fbf7;
    color: #0b5f55;
    font-weight: 900;
}

.cumulative-course-name {
    color: #082f5f;
    font-weight: 800;
}

.cumulative-course-code {
    margin-top: 3px;
    color: #6c7f94;
    font-size: 0.83rem;
    font-weight: 700;
}

.cumulative-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef6fb;
    color: #0b5b92;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.cumulative-letter-a,
.cumulative-letter-bplus,
.cumulative-letter-b {
    background: #ecfdf5;
    color: #08796f;
}

.cumulative-letter-cplus,
.cumulative-letter-c {
    background: #fff8e8;
    color: #9a5700;
}

.cumulative-letter-dplus,
.cumulative-letter-d,
.cumulative-letter-f {
    background: #fff1f1;
    color: #b13333;
}

.cumulative-mobile-list {
    display: none;
}

.cumulative-mobile-card {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 44, 73, 0.07);
}

.cumulative-mobile-head {
    display: grid;
    gap: 3px;
}

.cumulative-mobile-head span {
    color: #08796f;
    font-size: 0.78rem;
    font-weight: 900;
}

.cumulative-mobile-head h2 {
    margin: 0;
    color: #082f5f;
    font-size: 1rem;
    font-weight: 800;
}

.cumulative-mobile-head small {
    color: #60748a;
    font-size: 0.84rem;
    font-weight: 700;
}

.cumulative-mobile-score {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.cumulative-mobile-score div {
    display: grid;
    gap: 4px;
    min-height: 68px;
    padding: 10px;
    border-radius: 8px;
    background: #f5f9fd;
}

.cumulative-mobile-score span {
    color: #6c7f94;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cumulative-mobile-score strong {
    color: #082f5f;
    font-size: 1.08rem;
    font-weight: 900;
}

.cumulative-mobile-total {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid #bfdfd7;
    border-radius: 8px;
    background: #f4fbf7;
    color: #0b5f55;
}

.cumulative-mobile-total > span {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cumulative-mobile-total div {
    display: grid;
    gap: 6px;
}

.cumulative-mobile-total strong {
    color: #082f5f;
    font-size: 1rem;
}

.cumulative-empty,
.cumulative-requirements {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.cumulative-empty i {
    color: #8aa0b5;
    font-size: 2.2rem;
}

.cumulative-empty h2 {
    margin: 0;
    color: #082f5f;
    font-size: 1.25rem;
    font-weight: 800;
}

.cumulative-empty p {
    margin: 0;
    color: #60748a;
    font-weight: 700;
}

.cumulative-requirements {
    border-color: #f0d3a1;
    background: #fffaf0;
}

.cumulative-requirements-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9a5700;
    font-size: 1.1rem;
    font-weight: 800;
}

.cumulative-requirements-grid {
    display: grid;
    gap: 14px;
}

.schedule-page {
    display: grid;
    gap: 18px;
    color: #102a43;
}

.schedule-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px 24px;
    border: 1px solid #dbe8f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: 0 16px 38px rgba(15, 44, 73, 0.08);
}

.schedule-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #08796f;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-header h1 {
    margin: 0;
    color: #082f5f;
    font-size: 1.8rem;
    font-weight: 800;
}

.schedule-header p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #60748a;
    font-size: 0.98rem;
}

.schedule-student {
    display: grid;
    gap: 3px;
    min-width: 230px;
    padding: 13px 15px;
    border: 1px solid #dce9f4;
    border-radius: 8px;
    background: #ffffff;
}

.schedule-student-label {
    color: #6c7f94;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-student strong {
    color: #082f5f;
    font-size: 1rem;
}

.schedule-student span:last-child {
    color: #60748a;
    font-size: 0.9rem;
    font-weight: 700;
}

.schedule-notice {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #cfe5f4;
    border-radius: 8px;
    background: #f4fbff;
    color: #255c7a;
    font-weight: 700;
}

.schedule-notice i {
    color: #0b75bc;
    font-size: 1.05rem;
}

.schedule-list {
    display: grid;
    gap: 18px;
}

.schedule-panel {
    overflow: hidden;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 44, 73, 0.08);
}

.schedule-panel:fullscreen {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
}

.schedule-panel:fullscreen .schedule-frame-shell {
    height: auto;
    min-height: 0;
    border-radius: 0;
}

.schedule-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e2edf6;
    background: #ffffff;
}

.schedule-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #cbe9e4;
    border-radius: 999px;
    background: #effaf8;
    color: #08796f;
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-panel h2 {
    margin: 8px 0 4px;
    color: #082f5f;
    font-size: 1.15rem;
    font-weight: 800;
}

.schedule-panel p {
    margin: 0;
    color: #60748a;
    font-size: 0.92rem;
}

.schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.schedule-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cdddea;
    border-radius: 8px;
    background: #ffffff;
    color: #24455f;
    font-weight: 800;
    line-height: 1.1;
}

.schedule-action:hover,
.schedule-action:focus {
    border-color: #0b75bc;
    background: #f0f7fc;
    color: #0b75bc;
}

.schedule-action-primary {
    border-color: #08796f;
    background: #08796f;
    color: #ffffff;
}

.schedule-action-primary:hover,
.schedule-action-primary:focus {
    border-color: #07665e;
    background: #07665e;
    color: #ffffff;
}

.schedule-frame-shell {
    height: min(78vh, 820px);
    min-height: 620px;
    background: #f5f8fb;
}

.schedule-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.schedule-requirements {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #f0d3a1;
    border-radius: 8px;
    background: #fffaf0;
}

.schedule-requirements-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9a5700;
    font-size: 1.1rem;
    font-weight: 800;
}

.schedule-requirements-grid {
    display: grid;
    gap: 14px;
}

@media (max-width: 991.98px) {
    .grade-header {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 18px;
    }

    .grade-student {
        min-width: 0;
    }

    .grade-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .grade-toolbar {
        display: grid;
    }

    .grade-secondary-action {
        width: fit-content;
    }

    .cumulative-header {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 18px;
    }

    .cumulative-student {
        min-width: 0;
    }

    .cumulative-rules {
        grid-template-columns: 1fr;
    }

    .cumulative-rule-table-wrap {
        overflow-x: auto;
    }

    .schedule-header {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 18px;
    }

    .schedule-student {
        min-width: 0;
    }

    .schedule-panel-head {
        grid-template-columns: 1fr;
    }

    .schedule-actions {
        justify-content: flex-start;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: static;
    }

    .settings-user-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
    }

    .settings-nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .settings-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .grade-page {
        gap: 14px;
    }

    body:has(.grade-page) .section.dashboard > .row {
        margin-left: 0;
        margin-right: 0;
    }

    body:has(.grade-page) .section.dashboard > .row > .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    body:has(.cumulative-page) .section.dashboard > .row {
        margin-left: 0;
        margin-right: 0;
    }

    body:has(.cumulative-page) .section.dashboard > .row > .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .grade-header {
        padding: 15px;
    }

    .grade-header h1 {
        font-size: 1.45rem;
    }

    .grade-header p {
        font-size: 0.92rem;
    }

    .grade-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .grade-summary-card {
        min-height: 92px;
        padding: 13px;
    }

    .grade-summary-card span {
        font-size: 0.72rem;
    }

    .grade-summary-card strong {
        font-size: 1.45rem;
    }

    .grade-note,
    .grade-alert {
        align-items: flex-start;
        font-size: 0.88rem;
    }

    .grade-secondary-action {
        width: 100%;
    }

    .grade-table-shell {
        display: none;
    }

    .grade-mobile-list {
        display: grid;
        gap: 12px;
    }

    .grade-mobile-score {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grade-mobile-score strong {
        font-size: 1.08rem;
    }

    .grade-mobile-meta span,
    .grade-mobile-detail span {
        font-size: 0.76rem;
    }

    .cumulative-page {
        gap: 14px;
    }

    .cumulative-header {
        padding: 15px;
    }

    .cumulative-header h1 {
        font-size: 1.45rem;
    }

    .cumulative-header p,
    .cumulative-note span,
    .cumulative-rules p {
        font-size: 0.9rem;
    }

    .cumulative-note {
        padding: 13px;
    }

    .cumulative-rules {
        padding: 14px;
    }

    .cumulative-table-shell {
        display: none;
    }

    .cumulative-mobile-list {
        display: grid;
        gap: 12px;
    }

    .cumulative-mobile-score {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cumulative-mobile-score strong {
        font-size: 1.04rem;
    }

    .schedule-page {
        gap: 14px;
    }

    .schedule-header {
        padding: 15px;
    }

    .schedule-header h1 {
        font-size: 1.45rem;
    }

    .schedule-header p {
        font-size: 0.92rem;
    }

    .schedule-notice {
        align-items: flex-start;
        font-size: 0.9rem;
    }

    .schedule-panel-head {
        padding: 14px;
    }

    .schedule-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .schedule-action {
        width: 100%;
    }

    .schedule-frame-shell {
        height: calc(100vh - 228px);
        min-height: 540px;
    }

    .settings-layout {
        gap: 14px;
    }

    .settings-user {
        padding: 15px;
    }

    .settings-user-meta {
        grid-template-columns: 1fr;
        padding: 12px 15px;
    }

    .settings-header {
        display: grid;
        gap: 10px;
    }

    .settings-header h1 {
        font-size: 1.22rem;
    }

    .settings-status {
        width: fit-content;
    }

    .settings-card {
        padding: 16px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .settings-info-grid {
        grid-template-columns: 1fr;
    }

    .settings-email-warning,
    .settings-email-state,
    .settings-pending-email,
    .footer-email-confirmation {
        display: grid;
        gap: 8px;
        justify-items: center;
        text-align: center;
    }

    .settings-mini-action {
        width: 100%;
    }

    .settings-email-state-note {
        max-width: none;
        text-align: center;
    }

    .settings-pending-actions {
        width: 100%;
        display: grid;
        justify-items: center;
    }

    .settings-actions {
        display: grid;
    }

    .settings-submit {
        width: 100%;
    }

    .settings-consent-actions,
    .settings-actions-split {
        display: grid;
        gap: 12px;
    }

    .settings-header .settings-outline-danger {
        width: 100%;
    }

    .settings-table {
        min-width: 620px;
    }
}
