:root {
    --hbxl-red: #bb0a0a;
    --hbxl-red-dark: #990000;
    --hbxl-red-bright: #e60000;
    --hbxl-blue: #006cb5;
    --hbxl-text: #0a0909;
    --hbxl-muted: #555555;
    --hbxl-border: #ececec;
    --hbxl-surface: #ffffff;
    --hbxl-shell-bg: #f5f5f5;
    --hbxl-menu-hover-bg: rgba(187, 10, 10, 0.08);
    --hbxl-menu-active-bg: rgba(187, 10, 10, 0.12);
    --kt-primary: var(--hbxl-red);
    --kt-primary-active: var(--hbxl-red-dark);
    --kt-text-primary: var(--hbxl-red);
    --kt-component-active-bg: var(--hbxl-red);
    --kt-component-hover-color: var(--hbxl-red);
    --kt-menu-link-color-hover: var(--hbxl-red);
    --kt-menu-link-bg-color-hover: var(--hbxl-menu-hover-bg);
    --kt-menu-link-color-show: var(--hbxl-red);
    --kt-menu-link-bg-color-show: var(--hbxl-menu-active-bg);
    --kt-menu-link-color-here: var(--hbxl-red);
    --kt-menu-link-bg-color-here: var(--hbxl-menu-active-bg);
    --kt-menu-link-color-active: var(--hbxl-red);
    --kt-menu-link-bg-color-active: var(--hbxl-menu-active-bg);
}

body {
    color: var(--hbxl-text);
}

a,
.link-primary,
.text-hover-primary:hover,
.menu-state-color .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
.menu-state-color .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title {
    color: var(--hbxl-red) !important;
}

.btn.btn-primary,
.btn-primary,
.badge-light-primary {
    background-color: var(--hbxl-red) !important;
    border-color: var(--hbxl-red) !important;
    color: #ffffff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--hbxl-red-dark) !important;
    border-color: var(--hbxl-red-dark) !important;
    color: #ffffff !important;
}

.btn.btn-primary i,
.btn.btn-primary .svg-icon,
.btn-primary i,
.btn-primary .svg-icon,
.btn.btn-primary:hover i,
.btn.btn-primary:focus i,
.btn.btn-primary:hover .svg-icon,
.btn.btn-primary:focus .svg-icon {
    color: #ffffff !important;
}

.btn.btn-light-primary,
a.btn.btn-light-primary {
    background-color: rgba(187, 10, 10, 0.08) !important;
    border-color: rgba(187, 10, 10, 0.12) !important;
    color: var(--hbxl-red) !important;
}

.btn.btn-light-primary i,
.btn.btn-light-primary .svg-icon {
    color: var(--hbxl-red) !important;
    opacity: 1;
}

.btn.btn-light-primary:hover,
.btn.btn-light-primary:focus,
.btn.btn-light-primary:active,
.btn.btn-light-primary.active,
.btn.btn-light-primary.show,
.show > .btn.btn-light-primary {
    background-color: var(--hbxl-red) !important;
    border-color: var(--hbxl-red) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(187, 10, 10, 0.18);
}

.btn.btn-light-primary:hover i,
.btn.btn-light-primary:focus i,
.btn.btn-light-primary:active i,
.btn.btn-light-primary.active i,
.btn.btn-light-primary.show i,
.show > .btn.btn-light-primary i,
.btn.btn-light-primary:hover .svg-icon,
.btn.btn-light-primary:focus .svg-icon,
.btn.btn-light-primary:active .svg-icon,
.btn.btn-light-primary.active .svg-icon,
.btn.btn-light-primary.show .svg-icon,
.show > .btn.btn-light-primary .svg-icon {
    color: #ffffff !important;
}

.btn.head-btn:not(.btn-icon),
.btn.head-btn-sub:not(.btn-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    white-space: nowrap;
}

[data-kt-app-layout="dark-header"] .app-header {
    background: var(--hbxl-shell-bg) !important;
    border-bottom: 2px solid rgba(187, 10, 10, 0.18);
    border-radius: 0 0 22px 22px;
    box-shadow: inset 0 12px 22px rgba(0, 0, 0, 0.08), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.app-footer {
    background-color: var(--hbxl-shell-bg) !important;
}

[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link .menu-icon .svg-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link .menu-icon i {
    color: var(--hbxl-red) !important;
}

.hbxl-brand-logo {
    width: 66px !important;
    height: 66px !important;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
}

.hbxl-user-avatar {
    object-fit: cover;
    background: #ffffff;
}

.hbxl-user-avatar-lg {
    object-fit: cover;
    padding: 0;
    border: 1px solid rgba(187, 10, 10, 0.16);
}

[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link {
    border-radius: 8px;
}

[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here),
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.show:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) {
    background-color: var(--hbxl-menu-hover-bg) !important;
    box-shadow: none !important;
}

[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.here > .menu-link,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.active > .menu-link,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link.active {
    background-color: var(--hbxl-red) !important;
    box-shadow: 0 10px 22px rgba(187, 10, 10, 0.18);
}

[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.here > .menu-link .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.active > .menu-link .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link.active .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.here > .menu-link .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.active > .menu-link .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link.active .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.here > .menu-link .menu-icon i,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.active > .menu-link .menu-icon i,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item > .menu-link.active .menu-icon i {
    color: #ffffff !important;
}

[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.show:not(.here) > .menu-link .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.hover:not(.here) > .menu-link .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item:not(.here) > .menu-link:hover .menu-title,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.show:not(.here) > .menu-link .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.hover:not(.here) > .menu-link .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item:not(.here) > .menu-link:hover .menu-icon,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.show:not(.here) > .menu-link .menu-icon i,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item.hover:not(.here) > .menu-link .menu-icon i,
[data-kt-app-layout="dark-header"] .app-header-menu .menu > .menu-item:not(.here) > .menu-link:hover .menu-icon i {
    color: var(--hbxl-red) !important;
}

.menu-sub-dropdown .menu-item.hover > .menu-link:not(.disabled),
.menu-sub-dropdown .menu-item > .menu-link:hover:not(.disabled) {
    background-color: var(--hbxl-menu-hover-bg) !important;
}

.menu-sub-dropdown .menu-item.here > .menu-link,
.menu-sub-dropdown .menu-item.show > .menu-link,
.menu-sub-dropdown .menu-item > .menu-link.active,
.menu-state-bg .menu-item.here > .menu-link,
.menu-state-bg .menu-item.show > .menu-link,
.menu-state-bg .menu-item > .menu-link.active {
    background-color: var(--hbxl-menu-active-bg) !important;
}

.menu-sub-dropdown .menu-item.hover > .menu-link .menu-title,
.menu-sub-dropdown .menu-item > .menu-link:hover .menu-title,
.menu-sub-dropdown .menu-item.here > .menu-link .menu-title,
.menu-sub-dropdown .menu-item.show > .menu-link .menu-title,
.menu-sub-dropdown .menu-item > .menu-link.active .menu-title,
.menu-state-color .menu-item.hover > .menu-link .menu-title,
.menu-state-color .menu-item > .menu-link:hover .menu-title,
.menu-state-color .menu-item.here > .menu-link .menu-title,
.menu-state-color .menu-item.show > .menu-link .menu-title,
.menu-state-color .menu-item > .menu-link.active .menu-title {
    color: var(--hbxl-red) !important;
}

.menu-sub-dropdown .menu-item.hover > .menu-link .menu-icon,
.menu-sub-dropdown .menu-item > .menu-link:hover .menu-icon,
.menu-sub-dropdown .menu-item.here > .menu-link .menu-icon,
.menu-sub-dropdown .menu-item.show > .menu-link .menu-icon,
.menu-sub-dropdown .menu-item > .menu-link.active .menu-icon,
.menu-sub-dropdown .menu-item.hover > .menu-link .menu-icon i,
.menu-sub-dropdown .menu-item > .menu-link:hover .menu-icon i,
.menu-sub-dropdown .menu-item.here > .menu-link .menu-icon i,
.menu-sub-dropdown .menu-item.show > .menu-link .menu-icon i,
.menu-sub-dropdown .menu-item > .menu-link.active .menu-icon i,
.menu-sub-dropdown .menu-item.hover > .menu-link .menu-icon .svg-icon,
.menu-sub-dropdown .menu-item > .menu-link:hover .menu-icon .svg-icon,
.menu-sub-dropdown .menu-item.here > .menu-link .menu-icon .svg-icon,
.menu-sub-dropdown .menu-item.show > .menu-link .menu-icon .svg-icon,
.menu-sub-dropdown .menu-item > .menu-link.active .menu-icon .svg-icon {
    color: var(--hbxl-red) !important;
    opacity: 1;
}

.hbxl-login-logo {
    width: min(360px, 100%);
    max-height: 110px;
    object-fit: contain;
}

.hbxl-login-mark {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(187, 10, 10, 0.12);
    box-shadow: 0 18px 42px rgba(187, 10, 10, 0.14);
}

.hbxl-login-aside {
    position: relative;
    min-height: 100vh;
    background-image: linear-gradient(0deg, rgba(128, 0, 0, 0.26), rgba(0, 108, 181, 0.12)), url("../images/hbxl_login_bg_clean.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.hbxl-login-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.hbxl-login-panel {
    min-height: 100vh;
    background: #ffffff;
}

.hbxl-login-card {
    max-width: 540px;
    padding: 44px 42px;
    border: 1px solid rgba(10, 9, 9, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.hbxl-login-kicker {
    color: var(--hbxl-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hbxl-login-title {
    margin: 8px 0 8px;
    color: #071528;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.hbxl-login-subtitle {
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

#sign_in_form label {
    color: #071528;
}

#sign_in_form .form-control {
    min-height: 54px;
    border-radius: 8px;
    border-color: #d8dee9;
    font-weight: 600;
}

#sign_in_form .form-control:focus {
    border-color: rgba(187, 10, 10, 0.45);
    box-shadow: 0 0 0 4px rgba(187, 10, 10, 0.08);
}

#btnLogin {
    min-height: 56px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(187, 10, 10, 0.18);
}

.hbxl-contact {
    color: var(--hbxl-muted);
}

.hbxl-contact a {
    color: var(--hbxl-red) !important;
}

body.hbxl-home-page {
    --kt-app-toolbar-height: 0px;
    --kt-app-toolbar-height-actual: 0px;
}

body.hbxl-home-page[data-kt-app-header-fixed="true"][data-kt-app-toolbar-fixed="true"] .app-wrapper {
    margin-top: var(--kt-app-header-height) !important;
}

.hbxl-home-toolbar {
    position: static !important;
    inset: auto !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    padding: 16px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible !important;
}

.hbxl-home-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 14px 28px;
    border-left: 5px solid var(--hbxl-red);
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff 0%, #fffafa 54%, #f7fbff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.hbxl-home-welcome-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.hbxl-home-welcome-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(187, 10, 10, 0.08);
    color: var(--hbxl-red);
    font-size: 22px;
}

.hbxl-home-welcome-copy {
    min-width: 0;
}

.hbxl-home-welcome-copy h1 {
    margin: 0;
    color: #071528;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.hbxl-home-welcome-copy p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 700;
}

.hbxl-home-welcome-clock {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hbxl-home-welcome-date {
    color: #5b6b84;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.hbxl-home-welcome-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 138px;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #10264a;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.hbxl-home-welcome-time i {
    color: #b8d4ff;
    font-size: 17px;
}

.hbxl-student-home {
    padding: 32px 40px 40px;
    background: #f0f4f8;
    border-radius: 12px;
}

.hbxl-home-hero {
    display: grid;
    grid-template-columns: minmax(440px, 0.95fr) minmax(640px, 1.05fr);
    gap: 24px;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(0, 108, 181, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.hbxl-home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--hbxl-red) 0%, var(--hbxl-blue) 100%);
}

.hbxl-home-identity {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.hbxl-home-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 108, 181, 0.1);
}

.hbxl-home-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hbxl-home-avatar img[src*="hbxl_mark"] {
    width: 76px;
    height: 76px;
    border-radius: 0;
    object-fit: contain;
}

.hbxl-home-identity-text {
    min-width: 0;
}

.hbxl-home-eyebrow {
    color: var(--hbxl-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.hbxl-home-identity-text h2 {
    margin: 4px 0 10px;
    color: #061326;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

.hbxl-home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hbxl-home-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #233044;
    background: #eef6fb;
    border: 1px solid rgba(0, 108, 181, 0.12);
    border-radius: 8px;
    font-weight: 700;
}

.hbxl-home-meta i {
    color: var(--hbxl-blue);
}

.hbxl-home-quick-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: 14px;
}

.hbxl-home-quick-panel {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(187, 10, 10, 0.12);
    border-radius: 16px;
    background: #fffafa;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 14px 30px rgba(187, 10, 10, 0.06);
}

.hbxl-home-quick-panel::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--hbxl-red), var(--hbxl-blue));
}

.hbxl-home-quick-panel .hbxl-home-quick-grid {
    width: 100%;
}

.hbxl-home-quick-item {
    position: relative;
    display: grid;
    min-height: 94px;
    min-width: 0;
    align-content: center;
    gap: 6px;
    padding: 18px 16px 18px 44px;
    background: #ffffff;
    border: 1px solid rgba(187, 10, 10, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hbxl-home-quick-item::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hbxl-red);
    box-shadow: 0 0 0 6px rgba(187, 10, 10, 0.08);
}

.hbxl-home-quick-item:nth-child(2)::before {
    background: var(--hbxl-blue);
    box-shadow: 0 0 0 6px rgba(0, 108, 181, 0.08);
}

.hbxl-home-quick-item:nth-child(3)::before {
    background: #1ca58f;
    box-shadow: 0 0 0 6px rgba(28, 165, 143, 0.08);
}

.hbxl-home-quick-item:hover {
    transform: translateY(-2px);
    border-color: rgba(187, 10, 10, 0.16);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.hbxl-home-quick-item span {
    color: #65748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.hbxl-home-quick-item strong {
    display: block;
    color: #061326;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hbxl-home-section {
    margin-top: 32px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(6, 19, 38, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.hbxl-home-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px dashed rgba(6, 19, 38, 0.1);
}

.hbxl-home-section-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--hbxl-blue);
    background: #eaf6fb;
}

.hbxl-home-section-head h3 {
    margin: 0;
    color: var(--hbxl-red);
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
}

.hbxl-home-section-head p {
    margin: 3px 0 0;
    color: #667085;
    font-weight: 600;
}

.hbxl-home-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 18px;
}

.hbxl-home-grid-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hbxl-home-grid-training {
    align-items: stretch;
}

.hbxl-home-grid-family {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hbxl-home-field {
    min-width: 0;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.2s ease;
}

.hbxl-home-field:hover {
    background: #f1f5f9;
}

.hbxl-home-field-wide {
    grid-column: 1 / -1;
}

.hbxl-home-field-double {
    grid-column: span 2;
}

.hbxl-home-field-triple {
    grid-column: span 3;
}

.hbxl-home-field label {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.hbxl-home-value {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.hbxl-home-grid-training .hbxl-home-field {
    display: flex;
    flex-direction: column;
}

.hbxl-home-grid-training .hbxl-home-value {
    flex: 1;
}

.bsc-grid .dx-datagrid-headers .dx-datagrid-table .dx-row.dx-header-row > td,
.bsc-grid .dx-treelist-headers .dx-treelist-table .dx-row.dx-header-row > td {
    background-color: var(--hbxl-red) !important;
}

.dx-datagrid-rowsview .dx-selection.dx-row > td,
.dx-datagrid-rowsview .dx-selection.dx-row:hover > td,
.dx-state-hover > td {
    background-color: var(--hbxl-blue) !important;
}

.card,
.card-docs,
.menu-sub-dropdown {
    border-color: rgba(187, 10, 10, 0.08);
}

.hbxl-report-letterhead {
    align-items: flex-start;
    padding: 18px 24px 0;
}

.hbxl-report-letterhead .modal-title {
    color: #111111;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.15;
}

.hbxl-report-letterhead h5.modal-title {
    font-size: 17px;
    margin-bottom: 2px;
}

.hbxl-report-letterhead h6.modal-title {
    font-size: 17px;
}

.hbxl-report-letterhead .border {
    display: none;
}

.hbxl-report-agency {
    font-weight: 400 !important;
}

.hbxl-report-school,
.hbxl-report-national,
.hbxl-report-motto {
    font-weight: 700 !important;
}

.hbxl-report-school,
.hbxl-report-motto {
    display: table;
    margin-right: auto;
    margin-left: auto;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.hbxl-report-title-row {
    margin-top: 18px !important;
    margin-bottom: 4px;
}

.hbxl-report-title-row .modal-title {
    color: var(--hbxl-red) !important;
    font-weight: 800;
    letter-spacing: 0;
}

.hbxl-mode-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0 10px;
}

.hbxl-mode-label {
    color: #061326;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.hbxl-theme-switch {
    position: relative;
    display: inline-flex;
    width: 72px;
    height: 36px;
}

.hbxl-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hbxl-theme-switch-track {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border: 2px solid var(--hbxl-red);
    border-radius: 999px;
    background: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hbxl-theme-switch-track::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hbxl-red);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hbxl-theme-switch-icon {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--hbxl-red);
    pointer-events: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hbxl-theme-switch-icon.sun {
    left: 7px;
    color: #ffffff;
}

.hbxl-theme-switch-icon.moon {
    right: 8px;
    opacity: 0.55;
}

.hbxl-theme-switch input:checked + .hbxl-theme-switch-track {
    background: var(--hbxl-red);
}

.hbxl-theme-switch input:checked + .hbxl-theme-switch-track::before {
    transform: translateX(34px);
    background: #ffffff;
}

.hbxl-theme-switch input:checked + .hbxl-theme-switch-track .sun {
    color: #ffffff;
    opacity: 0.55;
}

.hbxl-theme-switch input:checked + .hbxl-theme-switch-track .moon {
    color: var(--hbxl-red);
    opacity: 1;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app-wrapper,
html[data-theme="dark"] .app-main,
html[data-theme="dark"] .app-content {
    background-color: #111827 !important;
    color: #e5e7eb;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .card-docs,
html[data-theme="dark"] .menu-sub-dropdown,
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .app-footer {
    background-color: #1f2937 !important;
    color: #e5e7eb;
}

html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .hbxl-mode-label {
    color: #f9fafb !important;
}

@media (max-width: 991.98px) {
    .hbxl-brand-logo {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px;
        max-height: 48px;
    }

    [data-kt-app-layout="dark-header"] .app-header {
        border-radius: 0 0 14px 14px;
    }

    .hbxl-login-aside {
        min-height: 300px;
    }

    .hbxl-login-panel {
        min-height: auto;
    }

    .hbxl-login-card {
        max-width: 560px;
        padding: 36px 30px;
    }

    .hbxl-home-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .hbxl-home-welcome-clock {
        justify-content: flex-start;
    }

    .hbxl-student-home {
        padding: 18px;
    }

    .hbxl-home-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .hbxl-home-quick-grid,
    .hbxl-home-grid,
    .hbxl-home-grid-compact,
    .hbxl-home-grid-family {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hbxl-home-field-double,
    .hbxl-home-field-triple {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .hbxl-home-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .hbxl-home-quick-grid,
    .hbxl-home-grid,
    .hbxl-home-grid-compact,
    .hbxl-home-grid-family {
        grid-template-columns: 1fr;
    }

    .hbxl-home-field-double,
    .hbxl-home-field-triple {
        grid-column: 1 / -1;
    }

    .hbxl-home-section {
        padding: 20px;
    }

    .hbxl-home-toolbar {
        padding: 10px 0 0 !important;
    }

    .hbxl-home-welcome {
        padding: 14px 16px;
    }

    .hbxl-home-welcome-main {
        align-items: flex-start;
    }

    .hbxl-home-welcome-copy h1 {
        font-size: 20px;
    }

    .hbxl-home-welcome-date {
        white-space: normal;
    }

    .hbxl-login-aside {
        min-height: 230px;
    }

    .hbxl-login-card {
        padding: 30px 22px;
        border: 0;
        box-shadow: none;
    }

    .hbxl-login-title {
        font-size: 24px;
    }
}
