:root {
    --amhaf-ink: #102f3f;
    --amhaf-navy: #123e66;
    --amhaf-green-900: #0b4d3a;
    --amhaf-green-700: #147553;
    --amhaf-green-500: #29a56f;
    --amhaf-mint: #dff4e9;
    --amhaf-gold: #e3b34f;
    --amhaf-cream: #f7f3e9;
    --amhaf-paper: #fffdf8;
    --amhaf-coral: #ef8a72;
    --amhaf-muted: #71808a;
    --amhaf-line: rgba(16, 47, 63, .11);
    --amhaf-shadow: 0 18px 45px rgba(21, 72, 61, .12);
    --amhaf-shadow-soft: 0 8px 24px rgba(21, 72, 61, .09);
    --amhaf-radius-xl: 28px;
    --amhaf-radius-lg: 20px;
    --amhaf-radius-md: 14px;
}

html {
    background: var(--amhaf-cream);
}

body {
    color: var(--amhaf-ink);
    font-family: "Source Sans Pro", "Calibri", sans-serif;
    background:
        radial-gradient(circle at 8% 5%, rgba(227, 179, 79, .12), transparent 24rem),
        linear-gradient(145deg, #fbfaf4 0%, #f2f7f3 100%);
}

a {
    color: var(--amhaf-green-700);
}

a:hover {
    color: var(--amhaf-green-900);
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary,
.bg-primary {
    border-color: var(--amhaf-navy) !important;
    background-color: var(--amhaf-navy) !important;
}

.btn-success,
.bg-success {
    border-color: var(--amhaf-green-700) !important;
    background-color: var(--amhaf-green-700) !important;
}

.btn-warning,
.bg-warning {
    border-color: var(--amhaf-gold) !important;
    background-color: var(--amhaf-gold) !important;
    color: var(--amhaf-ink) !important;
}

.card,
.modal-content,
.info-box {
    border: 1px solid var(--amhaf-line);
    border-radius: var(--amhaf-radius-lg);
    box-shadow: var(--amhaf-shadow-soft);
}

.card-header {
    border-bottom: 1px solid var(--amhaf-line);
    border-radius: var(--amhaf-radius-lg) var(--amhaf-radius-lg) 0 0 !important;
    background: rgba(255, 255, 255, .82);
}

.table thead th,
.table th {
    border-top: 0;
    color: var(--amhaf-green-900);
    font-size: .76rem;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-color: rgba(16, 47, 63, .08);
    vertical-align: middle;
}

.badge {
    border-radius: 999px;
    padding: .42em .72em;
}

/* Login */
.amhaf-auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Source Sans Pro", "Calibri", sans-serif;
    background:
        radial-gradient(circle at 13% 10%, rgba(227, 179, 79, .28), transparent 22rem),
        radial-gradient(circle at 92% 82%, rgba(41, 165, 111, .2), transparent 26rem),
        linear-gradient(135deg, #f8f2e3 0%, #edf7f0 48%, #e4f1f5 100%);
}

.amhaf-login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
    isolation: isolate;
}

.amhaf-login-page::before,
.amhaf-login-page::after {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    content: "";
    filter: blur(2px);
}

.amhaf-login-page::before {
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(18, 62, 102, .12);
    background: rgba(255, 255, 255, .36);
}

.amhaf-login-page::after {
    bottom: -190px;
    left: -110px;
    width: 430px;
    height: 430px;
    background: rgba(20, 117, 83, .08);
}

.amhaf-login-shell {
    display: grid;
    width: min(1060px, 100%);
    min-height: 590px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 34px;
    background: rgba(255, 253, 248, .86);
    box-shadow: 0 30px 80px rgba(18, 62, 66, .18);
    backdrop-filter: blur(18px);
}

.amhaf-login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 46px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(8, 61, 45, .98), rgba(18, 62, 102, .94)),
        var(--amhaf-green-900);
}

.amhaf-login-story::after {
    position: absolute;
    right: -45px;
    bottom: -215px;
    width: 380px;
    height: 450px;
    content: "";
    background:
        linear-gradient(145deg, rgba(227, 179, 79, .13), rgba(255, 255, 255, .035));
    clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
    transform: rotate(-6deg);
}

.amhaf-brand-lockup {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.amhaf-brand-lockup img {
    width: 116px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .16));
}

.amhaf-brand-copy small {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.amhaf-brand-copy strong {
    font-size: .96rem;
    letter-spacing: .04em;
}

.amhaf-brand-copy .amhaf-school-name {
    display: block;
    max-width: 330px;
    margin-top: 5px;
    color: #fff;
    font-size: clamp(1.08rem, 1.7vw, 1.38rem);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.18;
    text-transform: uppercase;
}

.amhaf-brand-copy span {
    display: block;
    max-width: 260px;
    margin-top: 4px;
    overflow: hidden;
    color: rgba(255, 255, 255, .82);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.amhaf-login-message {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 54px 0 auto;
}

.amhaf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff0c4;
    background: rgba(255, 255, 255, .08);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.amhaf-login-message h1 {
    max-width: 470px;
    margin: 0 0 16px;
    font-size: clamp(2.05rem, 3.2vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.amhaf-login-message p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: .96rem;
    line-height: 1.72;
}

.amhaf-login-people {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 170px;
    margin-top: 30px;
}

.amhaf-login-people img {
    width: 174px;
    height: 174px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .2));
}

.amhaf-login-people img + img {
    margin-left: -42px;
}

.amhaf-login-note {
    position: relative;
    z-index: 2;
    margin: 30px 0 0;
    padding-left: 17px;
    border-left: 2px solid var(--amhaf-gold);
    color: rgba(255, 255, 255, .82);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.amhaf-login-panel {
    display: grid;
    padding: 42px 48px;
    grid-template-rows: minmax(0, 1fr) auto;
    background: rgba(255, 253, 248, .94);
}

.amhaf-login-panel-content {
    width: 100%;
    align-self: center;
}

.amhaf-mobile-brand,
.amhaf-mobile-app-name,
.amhaf-mobile-footer-dot {
    display: none;
}

.amhaf-login-panel h2 {
    margin-bottom: 8px;
    color: var(--amhaf-ink);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.035em;
}

.amhaf-login-panel-content > p {
    margin-bottom: 26px;
    color: var(--amhaf-muted);
    font-size: .93rem;
    line-height: 1.7;
}

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

.amhaf-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--amhaf-ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

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

.amhaf-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    color: var(--amhaf-green-700);
    transform: translateY(-50%);
}

.amhaf-input-wrap .form-control {
    height: 52px;
    padding: 12px 48px;
    border: 1px solid rgba(16, 47, 63, .13);
    border-radius: 15px;
    color: var(--amhaf-ink);
    background: #fff;
    box-shadow: none;
}

.amhaf-input-wrap .form-control:focus {
    border-color: var(--amhaf-green-500);
    box-shadow: 0 0 0 4px rgba(41, 165, 111, .12);
}

.amhaf-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 16px;
    border: 0;
    color: var(--amhaf-muted);
    background: transparent;
    transform: translateY(-50%);
}

.amhaf-login-button {
    position: relative;
    display: flex;
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(110deg, var(--amhaf-green-700), var(--amhaf-navy));
    box-shadow: 0 14px 25px rgba(20, 117, 83, .2);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .03em;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.amhaf-login-button > i {
    position: absolute;
    right: 17px;
}

.amhaf-login-button:hover {
    color: #fff;
    box-shadow: 0 18px 28px rgba(20, 117, 83, .28);
    transform: translateY(-2px);
}

.amhaf-login-button:disabled {
    opacity: .7;
    transform: none;
}

.amhaf-login-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 4px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--amhaf-green-900);
    background: var(--amhaf-mint);
    font-size: .82rem;
    font-weight: 600;
}

#infoMessage:not(:empty) {
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--amhaf-ink);
    background: #f8e5df;
    font-size: .82rem;
}

.amhaf-login-alert.is-info {
    color: #174d63 !important;
    background: #e4f1f5 !important;
}

.amhaf-login-alert.is-success {
    color: #0b4d3a !important;
    background: #dff4e9 !important;
}

.amhaf-login-alert.is-error {
    color: #80372e !important;
    background: #fae8e3 !important;
}

.amhaf-login-alert.is-restricted {
    color: #7a160f !important;
    background: #ffe0dc !important;
    border: 2px solid #d83b2d !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(180, 36, 24, .16);
    white-space: pre-line;
    line-height: 1.55;
    padding: 14px 18px !important;
}

.amhaf-field.has-error .form-control {
    border-color: #c95c4d;
}

.amhaf-field .help-block {
    min-height: 18px;
    padding: 4px 3px 0;
    color: #a94336;
    font-size: .72rem;
}

.amhaf-login-mode div span {
    display: block;
    margin-top: 2px;
    color: #4b7064;
    font-size: .7rem;
    font-weight: 400;
}

.amhaf-login-footer {
    margin: 30px 0 0;
    color: #89949a;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
}

/* Admin and teacher shell */
.main-sidebar {
    border-right: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 30%),
        linear-gradient(180deg, var(--amhaf-green-900), #073b35 62%, #0b3c50);
    box-shadow: 10px 0 36px rgba(11, 77, 58, .13) !important;
}

.main-sidebar .brand-link {
    position: relative;
    z-index: 20;
    display: flex;
    height: 128px !important;
    min-height: 128px;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    color: #fff;
    background: rgba(255, 255, 255, .055) !important;
}

.main-sidebar .brand-link::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, var(--amhaf-green-900), #0b5545);
    content: '';
}

.main-sidebar > .sidebar {
    position: relative;
    z-index: 1;
    height: calc(100% - 128px);
    padding-top: 12px;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--amhaf-green-900), #073b35 62%, #0b3c50);
}

.amhaf-admin-sidebar > .sidebar {
    padding-top: 26px;
}

.sidebar-collapse .main-sidebar .brand-link {
    height: 76px !important;
    min-height: 76px;
    padding: 9px 6px;
}

.sidebar-collapse .main-sidebar > .sidebar {
    height: calc(100% - 76px);
    padding-top: 0;
}

.sidebar-collapse .amhaf-sidebar-brand {
    display: none;
}

.sidebar-collapse .amhaf-sidebar-mark {
    width: 48px;
    height: 48px;
    max-height: 48px;
    flex-basis: 48px;
}

.main-sidebar .brand-link:hover {
    color: #fff;
}

.amhaf-sidebar-mark {
    width: 62px;
    height: 58px;
    max-height: 58px;
    flex: 0 0 58px;
    margin: 0 !important;
    float: none;
    opacity: 1 !important;
    object-fit: contain;
    padding: 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .22));
}

.amhaf-sidebar-brand {
    display: flex;
    min-width: 0;
    flex-direction: column;
    width: 100%;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}

.amhaf-sidebar-brand strong {
    color: #fff;
    overflow: hidden;
    max-width: 210px;
    font-size: .82rem;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amhaf-sidebar-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .56);
    overflow: hidden;
    max-width: 210px;
    font-size: .56rem;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-sidebar .user-panel {
    min-height: 58px;
    margin: 10px 10px 8px !important;
    padding: 9px 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
}

.main-sidebar .amhaf-sidebar-room {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 34px);
    margin: 14px 17px 8px;
    padding: 12px 8px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: #f5d36b !important;
    background: rgba(227, 179, 79, .1);
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
    justify-content: center;
}

.main-sidebar .amhaf-sidebar-room i {
    width: 18px;
    text-align: center;
    font-size: .85rem;
}

.main-sidebar .amhaf-sidebar-room span {
    color: #f5d36b !important;
}

.amhaf-user-badge {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: #ffebad;
    background: rgba(255, 255, 255, .1);
    font-size: .82rem;
}

.main-sidebar .user-panel .info {
    min-width: 0;
    padding: 0 0 0 10px;
}

.main-sidebar .user-panel .info a,
.main-sidebar .user-panel .info p {
    margin: 0;
    color: #fff;
    overflow: hidden;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-sidebar .user-panel .amhaf-user-name,
.main-sidebar .user-panel .info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-sidebar .user-panel .info small {
    color: rgba(255, 255, 255, .55) !important;
    font-size: .65rem;
    font-weight: 400;
}

.amhaf-sidebar-avatar {
    width: 40px !important;
    height: 40px !important;
    border: 2px solid rgba(255, 255, 255, .55);
    object-fit: contain;
    background: #fff;
}

.nav-sidebar .nav-header {
    padding: 16px 17px 6px;
    color: rgba(255, 255, 255, .42);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.nav-sidebar > .nav-header:first-child {
    padding-top: 26px;
}

.nav-sidebar > .nav-item {
    margin: 1px 9px;
}

.nav-sidebar .nav-link {
    padding: .66rem .85rem;
    border-radius: 11px;
    color: rgba(255, 255, 255, .76) !important;
    font-size: .77rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .09);
    transform: translateX(2px);
}

.nav-sidebar .nav-link.active {
    color: var(--amhaf-green-900) !important;
    background: linear-gradient(100deg, #fff8e5, #e7f6ec) !important;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .14) !important;
}

.nav-sidebar .nav-icon {
    color: var(--amhaf-gold);
    font-size: .88rem !important;
}

.nav-sidebar .nav-link.active .nav-icon {
    color: var(--amhaf-green-700);
}

.nav-treeview {
    margin: 4px 0 7px 12px;
    padding-left: 5px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.main-header.navbar {
    min-height: 62px;
    border: 0;
    background: rgba(255, 253, 248, .94) !important;
    box-shadow: 0 8px 28px rgba(16, 47, 63, .08) !important;
    backdrop-filter: blur(14px);
}

/* AdminLTE text-sm reserves 48px, while the custom navbar is 62px tall. */
.layout-navbar-fixed.text-sm .wrapper .main-header ~ .content-wrapper {
    margin-top: 62px;
}

.amhaf-navbar-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: var(--amhaf-green-900) !important;
    background: var(--amhaf-mint);
}

.amhaf-navbar-context {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.amhaf-navbar-context img {
    width: 60px;
    height: 38px;
    object-fit: contain;
}

.amhaf-navbar-title {
    line-height: 1.15;
}

.amhaf-navbar-title strong {
    display: block;
    max-width: 370px;
    overflow: hidden;
    color: var(--amhaf-ink);
    font-size: .86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amhaf-navbar-title small {
    color: var(--amhaf-muted);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.amhaf-academic-pill,
.amhaf-clock-pill {
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--amhaf-line);
    border-radius: 999px;
    color: var(--amhaf-ink);
    background: #fff;
    font-size: .72rem;
    font-weight: 600;
}

.amhaf-academic-pill i,
.amhaf-clock-pill i {
    color: var(--amhaf-green-700);
}

.amhaf-navbar-logout {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #a94235;
    background: #fae8e3;
}

.content-wrapper {
    background:
        radial-gradient(circle at 90% 0%, rgba(41, 165, 111, .08), transparent 25rem),
        var(--amhaf-cream) !important;
}

/* Settings */
.amhaf-settings-page {
    min-height: calc(100vh - 62px) !important;
    background:
        radial-gradient(circle at 96% 3%, rgba(41, 165, 111, .1), transparent 24rem),
        var(--amhaf-cream) !important;
}

.amhaf-settings-page .content-header {
    padding: 0 15px 14px;
}

.amhaf-settings-hero {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(115deg, var(--amhaf-green-900), var(--amhaf-navy));
    box-shadow: var(--amhaf-shadow-soft);
}

.amhaf-settings-hero span {
    color: #ffedb5;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.amhaf-settings-hero h1 {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.content-header .amhaf-settings-hero h1 {
    color: #fff;
}

.amhaf-settings-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .8rem;
}

.amhaf-settings-save {
    padding: 11px 17px;
    color: var(--amhaf-green-900);
    background: #fff8e6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    font-size: .78rem;
}

.amhaf-settings-save:hover {
    color: var(--amhaf-green-900);
    background: #fff;
}

.amhaf-settings-card {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 20px;
    background: rgba(255, 253, 248, .96);
}

.amhaf-settings-card .card-header {
    min-height: 66px;
    padding: 15px 20px;
    align-items: center;
}

.amhaf-settings-card .card-title h6 {
    margin: 0;
    color: var(--amhaf-ink);
    font-size: 1rem;
    font-weight: 700;
}

.amhaf-settings-card .card-title small {
    color: var(--amhaf-muted);
    font-size: .7rem;
}

.amhaf-settings-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--amhaf-green-900);
    background: var(--amhaf-mint);
    font-size: .67rem;
    font-weight: 600;
}

.amhaf-settings-card .card-body {
    padding: 20px;
}

.amhaf-settings-card label {
    margin-bottom: 7px;
    color: var(--amhaf-ink);
    font-size: .72rem;
    font-weight: 700;
}

.amhaf-settings-card .form-control {
    min-height: 44px;
    border-color: rgba(16, 47, 63, .14);
    border-radius: 11px;
    color: var(--amhaf-ink);
    background: #fff;
    font-size: .82rem;
    box-shadow: none;
}

.amhaf-settings-card textarea.form-control {
    min-height: 128px;
    resize: vertical;
}

.amhaf-settings-card .form-control:focus {
    border-color: var(--amhaf-green-500);
    box-shadow: 0 0 0 3px rgba(41, 165, 111, .1);
}

.amhaf-settings-card .form-control[readonly] {
    color: var(--amhaf-green-900);
    background: #edf7f1;
    font-weight: 700;
}

.amhaf-settings-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 3px 0 17px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--amhaf-line);
    color: var(--amhaf-green-900);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.amhaf-settings-section-title i {
    color: var(--amhaf-gold);
}

.amhaf-settings-section-note {
    max-width: 760px;
    margin: -8px 0 18px;
    color: var(--amhaf-muted);
    font-size: .72rem;
    line-height: 1.6;
}

.amhaf-upload-box {
    position: relative;
    height: 100%;
    padding: 15px;
    border: 1px solid var(--amhaf-line);
    border-radius: 16px;
    background: #fff;
}

.amhaf-upload-main {
    border-color: rgba(20, 117, 83, .28);
    background: linear-gradient(180deg, #f4fbf7, #fff);
}

.amhaf-upload-tag {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--amhaf-green-700);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.amhaf-upload-box > small {
    min-height: 34px;
    line-height: 1.5;
}

.amhaf-upload-box .dropify-wrapper {
    height: 210px;
    border: 1px dashed rgba(16, 47, 63, .2);
    border-radius: 12px;
    background: #fbfcfa;
}

.amhaf-upload-box .dropify-wrapper .dropify-preview .dropify-render img {
    max-height: 158px;
    object-fit: contain;
}

.content-header h1,
.content-header .m-0 {
    color: var(--amhaf-ink);
    font-weight: 700;
    letter-spacing: -.025em;
}

.main-footer {
    border-top: 1px solid var(--amhaf-line);
    color: var(--amhaf-muted);
    background: var(--amhaf-paper);
    font-size: .75rem;
}

/* CBT dashboard */
.amhaf-dashboard {
    padding-bottom: 30px;
}

.amhaf-dashboard-hero {
    position: relative;
    min-height: 144px;
    overflow: hidden;
    margin: 14px 20px 0;
    padding: 16px 24px;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(8, 65, 47, .98), rgba(18, 62, 102, .92)),
        var(--amhaf-green-900);
}

.amhaf-dashboard-hero::before {
    display: none;
}

.amhaf-dashboard-hero::after {
    display: none;
}

.amhaf-dashboard-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 112px;
    align-items: center;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 250px;
}

.amhaf-dashboard-hero-content {
    max-width: 790px;
}

.amhaf-dashboard-hero h1 {
    max-width: 690px;
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 1.8vw, 1.72rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.amhaf-dashboard-hero p {
    max-width: 670px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    line-height: 1.55;
}

.amhaf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.amhaf-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    font-size: .7rem;
    font-weight: 600;
}

.amhaf-hero-action:hover {
    color: var(--amhaf-green-900);
    background: #fff8e8;
}

.amhaf-dashboard-user {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 10px 5px 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.amhaf-dashboard-user:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.amhaf-dashboard-user-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-bottom: 10px;
}

.amhaf-dashboard-user-copy small,
.amhaf-dashboard-user-copy strong,
.amhaf-dashboard-user-copy span {
    display: block;
}

.amhaf-dashboard-user-copy small {
    color: #ffedb5;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.amhaf-dashboard-user-copy strong {
    max-width: 138px;
    margin-top: 5px;
    overflow: hidden;
    font-size: .86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amhaf-dashboard-user-copy span {
    max-width: 138px;
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, .64);
    font-size: .67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amhaf-dashboard-user img {
    width: 86px;
    height: 98px;
    align-self: flex-end;
    flex: 0 0 86px;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .22));
}

.amhaf-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 10px;
}

.amhaf-section-heading h2 {
    margin: 0;
    color: var(--amhaf-ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.amhaf-section-heading p {
    margin: 4px 0 0;
    color: var(--amhaf-muted);
    font-size: .75rem;
}

.amhaf-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.amhaf-stat-card {
    position: relative;
    min-height: 102px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--amhaf-line);
    border-radius: 16px;
    color: var(--amhaf-ink);
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 7px 20px rgba(21, 72, 61, .07);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.amhaf-stat-card::after {
    display: none;
}

.amhaf-stat-card:hover {
    border-color: rgba(20, 117, 83, .22);
    color: var(--amhaf-ink);
    box-shadow: 0 12px 26px rgba(21, 72, 61, .1);
    transform: translateY(-2px);
}

.amhaf-stat-card .amhaf-stat-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin-top: 0;
    border-radius: 10px;
    color: var(--amhaf-green-900);
    background: var(--amhaf-mint);
}

.amhaf-stat-card .amhaf-stat-icon i {
    display: block;
    margin: 0;
    font-size: .9rem;
    line-height: 1;
}

.amhaf-stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.35rem;
    line-height: 1;
}

.amhaf-stat-card span {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 5px;
    color: var(--amhaf-muted);
    font-size: .72rem;
}

.amhaf-panel {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--amhaf-line);
    border-radius: 20px;
    background: rgba(255, 253, 248, .94);
    box-shadow: var(--amhaf-shadow);
}

.amhaf-panel-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--amhaf-line);
}

.amhaf-panel-header h3 {
    margin: 0;
    color: var(--amhaf-ink);
    font-size: 1rem;
    font-weight: 700;
}

.amhaf-panel-header small {
    color: var(--amhaf-muted);
}

.amhaf-panel-body {
    padding: 18px;
}

.amhaf-token-card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 22px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--amhaf-navy), #1b6774);
    box-shadow: var(--amhaf-shadow);
}

.amhaf-token-card::after {
    display: none;
}

.amhaf-token-label {
    color: rgba(255, 255, 255, .64);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.amhaf-token-value {
    position: relative;
    z-index: 2;
    margin: 13px 0 9px;
    color: #fff6cf;
    font-size: clamp(1.7rem, 3.6vw, 2.45rem);
    font-weight: 700;
    letter-spacing: .16em;
}

.amhaf-token-meta {
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
}

.amhaf-exam-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.amhaf-exam-stat {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--amhaf-line);
    border-radius: 17px;
    color: var(--amhaf-ink);
    background: #fff;
}

.amhaf-exam-stat i {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border-radius: 12px;
    color: var(--amhaf-green-700);
    background: var(--amhaf-mint);
}

.amhaf-exam-stat strong,
.amhaf-exam-stat span {
    display: block;
}

.amhaf-exam-stat strong {
    font-size: 1.15rem;
}

.amhaf-exam-stat span {
    color: var(--amhaf-muted);
    font-size: .7rem;
}

/* Teacher and supervisor dashboard */
.amhaf-teacher-dashboard {
    min-height: calc(100vh - 62px) !important;
}

.amhaf-teacher-dashboard .amhaf-dashboard-hero-content {
    max-width: 760px;
}

.amhaf-teacher-dashboard .amhaf-dashboard-user img {
    object-position: center bottom;
}

.amhaf-teacher-panel .amhaf-panel-body {
    min-height: 170px;
}

.amhaf-teacher-tabs {
    overflow-x: auto;
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--amhaf-line);
}

.amhaf-teacher-tabs .nav {
    flex-wrap: nowrap;
    gap: 7px;
}

.amhaf-teacher-tabs .nav-link {
    padding: 6px 10px;
    border-radius: 9px;
    color: var(--amhaf-muted);
    background: #f4f6f2;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}

.amhaf-teacher-tabs .nav-link.active {
    color: #fff;
    background: var(--amhaf-green-700);
}

.amhaf-teacher-schedule td {
    padding: 11px 16px;
    border-top: 1px solid rgba(16, 47, 63, .07);
    color: var(--amhaf-muted);
    font-size: .74rem;
}

.amhaf-teacher-schedule td:first-child {
    width: 46%;
    color: var(--amhaf-ink);
    font-variant-numeric: tabular-nums;
}

.amhaf-teacher-exam-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.amhaf-teacher-exam-stat {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--amhaf-line);
    border-radius: 15px;
    color: var(--amhaf-ink);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.amhaf-teacher-exam-stat:hover {
    border-color: rgba(20, 117, 83, .24);
    color: var(--amhaf-ink);
    box-shadow: var(--amhaf-shadow-soft);
    transform: translateY(-2px);
}

.amhaf-teacher-exam-stat > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--amhaf-green-700);
    background: var(--amhaf-mint);
}

.amhaf-teacher-exam-stat small,
.amhaf-teacher-exam-stat strong {
    display: block;
}

.amhaf-teacher-exam-stat small {
    overflow: hidden;
    color: var(--amhaf-muted);
    font-size: .61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amhaf-teacher-exam-stat strong {
    margin-top: 3px;
    color: var(--amhaf-ink);
    font-size: 1rem;
}

.amhaf-teacher-token {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    padding: 12px 13px;
    border-color: #12644f;
    background: #fff;
    box-shadow: 0 12px 24px rgba(11, 77, 58, .2);
}

.amhaf-teacher-token::after {
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(227, 179, 79, .24);
    border-radius: 50%;
    content: '';
}

.amhaf-teacher-token > i,
.amhaf-teacher-token > span {
    position: relative;
    z-index: 1;
}

.amhaf-teacher-token > i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #735719;
    background: #ffe9a2;
}

.amhaf-teacher-token > span {
    min-width: 0;
}

.amhaf-teacher-token small {
    color: var(--amhaf-muted);
    white-space: nowrap;
}

.amhaf-teacher-token strong {
    overflow: hidden;
    font-size: .98rem;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amhaf-teacher-token > i {
    color: #84651f;
    background: #fff0bd;
}

.amhaf-teacher-token strong {
    color: var(--amhaf-ink);
    letter-spacing: .1em;
}

.amhaf-teacher-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 8px;
    padding-top: 16px;
    border-top: 1px solid var(--amhaf-line);
}

.amhaf-teacher-subheading h4 {
    margin: 0;
    color: var(--amhaf-ink);
    font-size: .88rem;
    font-weight: 700;
}

.amhaf-teacher-subheading span {
    color: var(--amhaf-muted);
    font-size: .68rem;
}

.amhaf-teacher-assessment th,
.amhaf-teacher-assessment td {
    padding: 10px 9px;
    font-size: .7rem;
}

.amhaf-teacher-dashboard .products-list {
    margin: 0;
}

.amhaf-teacher-dashboard .products-list .item {
    padding: 10px 0;
    border-bottom: 1px solid var(--amhaf-line);
    background: transparent;
}

.amhaf-teacher-dashboard .products-list .item:last-child {
    border-bottom: 0;
}

.amhaf-empty-state {
    padding: 32px 20px;
    color: var(--amhaf-muted);
    text-align: center;
}

.amhaf-empty-state i {
    display: block;
    margin-bottom: 10px;
    color: var(--amhaf-gold);
    font-size: 1.8rem;
}

/* Student CBT */
.amhaf-student-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(227, 179, 79, .16), transparent 22rem),
        linear-gradient(160deg, #eef7f2, #f7f3e9 58%, #edf4f8);
}

.amhaf-student-body .main-header {
    min-height: 68px;
    padding: 8px 18px;
    border: 0;
    background: linear-gradient(100deg, var(--amhaf-green-900), var(--amhaf-navy)) !important;
    box-shadow: 0 8px 24px rgba(11, 77, 58, .18);
}

.amhaf-student-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.amhaf-student-brand img {
    width: 72px;
    height: 38px;
    object-fit: contain;
}

.amhaf-student-brand strong,
.amhaf-student-brand small {
    display: block;
}
.amhaf-student-brand-copy small { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.72); }
.amhaf-student-brand-copy small b { padding: .2rem .55rem; border-radius: .35rem; background: rgba(57, 207, 145, .18); color: #9cf0c9; font-size: .68rem; }
.amhaf-student-brand-copy small span { font-size: .76rem; letter-spacing: .01em; }
.amhaf-student-clock { margin-right: .8rem; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: .55rem; color: #fff; font-size: .78rem; font-weight: 700; }
@media (max-width: 600px) {
    .amhaf-student-body .main-header { padding: 8px 10px; min-height: 92px; }
    .amhaf-student-body .main-header > .navbar-nav:first-child { display: none; }
    .amhaf-student-brand { min-width: 0; width: 70%; gap: 7px; margin-left: 0 !important; margin-right: auto !important; justify-content: flex-start; }
    .amhaf-student-brand img { width: 48px; height: 42px; }
    .amhaf-student-brand-copy { display: block !important; min-width: 0; }
    .amhaf-student-brand-copy strong { display: block; max-width: 235px; white-space: normal; line-height: 1.1; font-size: .72rem; color: #fff; }
    .amhaf-student-brand-copy small { gap: .25rem; white-space: nowrap; }
    .amhaf-student-brand-copy small b { font-size: .55rem; }
    .amhaf-student-brand-copy small span { display: inline; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .amhaf-student-clock { display: none; }
    .amhaf-student-body .main-header .btn { padding: .38rem .5rem; white-space: nowrap; }
    .amhaf-student-body .main-header .btn span { display: none !important; }
}

.amhaf-student-brand strong {
    font-size: 1.08rem;
    letter-spacing: .01em;
}

.amhaf-student-brand small {
    color: rgba(255, 255, 255, .58);
    font-size: .65rem;
}
.amhaf-student-brand { max-width: 760px; }
.amhaf-student-body .main-header { padding-left:1rem; padding-right:1rem; }
.amhaf-student-brand { margin-left:1.5rem !important; margin-right:auto !important; }
.amhaf-student-body .main-header > .navbar-nav:last-child { margin-left:auto; padding-right:.25rem; }
.amhaf-student-body .main-header .btn-outline-light { margin-right:.25rem; }
.amhaf-student-clock { min-width:92px; text-align:center; }

.amhaf-student-body .content-wrapper {
    min-height: calc(100vh - 68px) !important;
    background: transparent !important;
    padding-top: 0;
}

.amhaf-student-body .overlap {
    position: relative;
    /* Keep the student identity panel below the fixed navigation bar. */
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 142px !important;
}

.amhaf-student-body .sticky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    display: none !important;
    border-radius: 0 0 40px 40px;
    background:
        linear-gradient(110deg, rgba(11, 77, 58, .97), rgba(18, 62, 102, .92)),
        var(--amhaf-green-900);
}

.amhaf-student-body .info-box.bg-transparent {
    position: relative;
    z-index: 2;
    color: #fff;
    display: none;
}

.amhaf-student-body .info-box.bg-transparent .avatar {
    width: 96px !important;
    height: 96px !important;
    border: 4px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 13px 26px rgba(0, 0, 0, .18);
}

.amhaf-student-body .card {
    border: 1px solid var(--amhaf-line);
    border-radius: 22px;
    box-shadow: var(--amhaf-shadow-soft) !important;
}

.amhaf-student-content { max-width: 1320px; margin: 0 auto; }
.amhaf-student-content > .container { padding-left: 0; padding-right: 0; }
.amhaf-student-content .info-box { margin: 0 0 1.5rem; padding: 1rem 1.25rem; }
.amhaf-student-content .info-box-content { padding-left: .85rem; }
.amhaf-student-content .info-box-text { margin-bottom: .2rem; }
.amhaf-info-card .amhaf-identity-head { display:flex; align-items:center; gap:.8rem; padding:.85rem 1rem; background:#fff; color:#123b4a; }
.amhaf-info-card .amhaf-identity-head .card-title { margin:0; color:#123b4a; font-size:1.05rem; font-weight:800; }
.amhaf-info-card .amhaf-identity-head small { color:#71808a; }
.amhaf-student-avatar { width:72px !important; height:72px !important; max-width:72px !important; object-fit:contain; border-radius:50%; background:#f5f8f7; flex:0 0 72px; }
.amhaf-info-card .amhaf-identity-head .card-title { color:#fff; }
.amhaf-info-card .amhaf-identity-head small { color:rgba(255,255,255,.82); }
.amhaf-info-card .amhaf-identity-profile { display:none !important; }
.amhaf-info-card .col-md-4 > .card { overflow:hidden; border:0; box-shadow:none !important; }
.amhaf-info-card .col-md-4 > .card .amhaf-identity-head { min-height:0; flex-direction:row; justify-content:flex-start; align-items:center; padding:.85rem 1rem; background:#fff; }
.amhaf-info-card .col-md-4 > .card .amhaf-identity-head .card-title { color:#123b4a; }
.amhaf-info-card .col-md-4 > .card .amhaf-identity-head small { color:#71808a; }
.amhaf-info-card .col-md-4 > .card .amhaf-student-avatar { width:72px !important; height:72px !important; max-width:72px !important; align-self:auto; margin:0; }
.amhaf-info-card .col-md-4 > .card .card-body { padding:.35rem 1rem .8rem; }
.amhaf-info-card .col-md-5 > .card { width:100%; }
.amhaf-info-card .col-md-5 > .card .amhaf-identity-head { padding:1rem 1.2rem; }
.amhaf-info-card > .card-header { display:none; }
.amhaf-identity-profile { display:flex; align-items:center; gap:1rem; padding:1rem 1.2rem .65rem; }
.amhaf-identity-profile > div { min-width:0; }
.amhaf-identity-profile .card-title { margin:0 !important; }
.amhaf-info-card .col-md-5 > .card .amhaf-identity-head { background:#158049; color:#fff; justify-content:space-between; }
.amhaf-info-card .col-md-5 > .card { display:grid !important; grid-template-columns:130px minmax(0,1fr); align-items:start; }
.amhaf-info-card .col-md-5 > .card > .amhaf-identity-head { grid-column:1 / -1; }
.amhaf-info-card .col-md-5 > .card > .amhaf-identity-profile { grid-column:1; flex-direction:column; justify-content:flex-start; padding:1.25rem .4rem 1rem 1rem; gap:.55rem; }
.amhaf-info-card .col-md-5 > .card > .card-body { grid-column:2; padding:1.05rem 1.2rem 1rem .35rem; }
.amhaf-profile-name { margin-bottom:.45rem; }
.amhaf-profile-name h4 { margin:0; color:#092f48; font-size:1.12rem; font-weight:800; }
.amhaf-profile-name small { color:#71808a; }
.amhaf-info-card .col-md-5 > .card > .amhaf-identity-profile .amhaf-student-avatar { width:96px !important; height:128px !important; max-width:96px !important; border-radius:12px; }
.amhaf-info-card .col-md-5 > .card > .amhaf-identity-profile > div { display:none; }
.amhaf-info-card .col-md-5 > .card > .card-body .list-group-item { font-size:.86rem; padding:.48rem .15rem !important; }
.amhaf-data-label { color:#71808a; }
.amhaf-data-label i { width:14px; color:#91a7bb; }
.amhaf-session-badge { display:inline-block; padding:.22rem .55rem; border-radius:.45rem; background:#e5f8ef; color:#008a62; font-size:.78rem; white-space:nowrap; }
.amhaf-identity-title { font-size:.82rem; letter-spacing:.01em; }
.amhaf-identity-status { background:rgba(255,255,255,.2); border-radius:999px; padding:.25rem .7rem; font-size:.7rem; font-weight:700; }
.amhaf-info-card .col-md-5 > .card .amhaf-identity-head > div { flex:1; }
.amhaf-info-card .col-md-5 > .card .amhaf-identity-head .card-title { color:#102f43; font-size:1.1rem; }
.amhaf-info-card .col-md-5 > .card .amhaf-student-avatar { width:88px !important; height:88px !important; max-width:88px !important; flex-basis:88px; }
.amhaf-info-card .col-md-5 > .card .amhaf-identity-profile .amhaf-student-avatar { width:88px !important; height:88px !important; max-width:88px !important; flex:0 0 88px; }
.amhaf-info-card .col-md-5 > .card { display:block !important; }
.amhaf-info-card .col-md-5 > .card > .card-body { display:block; width:100%; padding:.8rem 1rem 1rem !important; }
.amhaf-info-card .col-md-5 > .card .list-group-item { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:34px; border-color:#edf1f0; }
.amhaf-info-card .col-md-5 > .card .list-group-item > span:last-child { text-align:right; max-width:62%; }
@media (max-width: 575.98px) {
    .amhaf-student-content { padding: .65rem !important; }
    .amhaf-info-card .col-md-5 > .card .list-group-item { font-size:.82rem; padding:.42rem .1rem !important; }
    .amhaf-info-card .col-md-5 > .card .list-group-item > span:last-child { max-width:58%; }
    .amhaf-profile-name h4 { font-size:1rem; }
}

@media (max-width: 600px) {
    .amhaf-student-body .main-header { min-height: 104px; align-items: flex-start; padding: 16px 10px 12px; }
    .amhaf-student-brand { margin-left: 0 !important; padding-left: 0 !important; width: 69%; gap: 8px; align-items: flex-start; }
    .amhaf-student-brand img { width: 50px; height: 46px; flex: 0 0 50px; }
    .amhaf-student-brand-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 205px; line-height: 1.12; font-size: .9rem; font-weight: 800; }
    .amhaf-student-brand-copy small { display: flex !important; align-items: center; gap: 4px; margin-top: 4px; max-width: 205px; }
    .amhaf-student-brand-copy small b { font-size: .52rem; flex: 0 0 auto; }
    .amhaf-student-brand-copy small span { display: block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; color: rgba(255,255,255,.78); }
    .amhaf-student-body .main-header > .navbar-nav:last-child { padding-top: 20px; gap: 6px; }
    .amhaf-student-body .main-header > .navbar-nav:last-child .btn { margin-top: 6px; padding: .42rem .55rem; }
}
.amhaf-info-card .col-md-5 > .card .card-body { padding:.45rem 1.2rem 1rem; }
.amhaf-info-card .col-md-7 .alert-default-danger { height:100%; display:flex; flex-direction:column; justify-content:center; }
.amhaf-info-card > .card-body { padding:1rem 1.25rem; }
.amhaf-info-card > .card-header { background:linear-gradient(110deg,#078f6c,#087e61); color:#fff; padding:.75rem 1rem; font-weight:800; }
.amhaf-info-card .alert-default-danger { margin:0; min-height:170px; }
/* CBT student dashboard: compact two-column identity and schedule layout. */
.amhaf-student-content { background:#f3f6f4; }
.amhaf-info-card { border-radius:16px !important; overflow:hidden; background:#fff; }
.amhaf-info-card > .card-header { text-transform:uppercase; letter-spacing:.02em; font-size:.8rem; }
.amhaf-info-card > .card-body > .row { align-items:flex-start; }
.amhaf-info-card .col-md-4, .amhaf-info-card .col-md-8 { display:flex; }
.amhaf-info-card .col-md-4 > .card, .amhaf-info-card .col-md-8 > .alert { width:100%; margin-bottom:0; }
.amhaf-info-card .col-md-8 .alert-default-danger { border:1px solid #f1caca; background:#fff5f5; border-radius:14px; color:#713333; padding:1.1rem 1.25rem; min-height:0 !important; }
.amhaf-info-card .col-md-8 .alert-default-danger ul { margin: .6rem 0 0; padding-left:1.25rem; }
.amhaf-schedule-card { border-radius:16px !important; overflow:hidden; }
.amhaf-schedule-card > .card-header { background:#158049; color:#fff; border:0; padding:.9rem 1.25rem; }
.amhaf-schedule-card > .card-header h5 { margin:0; text-align:left !important; font-size:.92rem; }
.amhaf-schedule-card > .card-body { padding:1.25rem; }
.amhaf-schedule-card .jadwal-cbt { margin-bottom:0; }
.amhaf-schedule-card .jadwal-cbt .card { height:100%; border-radius:14px; }
.amhaf-schedule-card .jadwal-cbt .card { overflow:hidden; border:1px solid #dce7ea !important; box-shadow:0 5px 16px rgba(14,70,78,.07); }
.amhaf-schedule-card .jadwal-cbt .card-header { display:flex; justify-content:space-between; align-items:center; background:#078b68; color:#fff; border:0; border-radius:0; padding:.8rem 1rem; }
.amhaf-schedule-card .jadwal-cbt .card-header .card-title { margin:0; font-size:.95rem; }
.amhaf-schedule-card .jadwal-cbt .card-header .card-tools { font-size:.82rem; }
.amhaf-schedule-card .jadwal-cbt .small-box { margin:0 !important; border-radius:0; box-shadow:none; min-height:170px; }
.amhaf-schedule-card .jadwal-cbt .small-box { background:#fff !important; color:#12324a; min-height:180px; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner { padding:1rem 1.1rem 0; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner h6 b { color:#102f48; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner { text-align:center; padding-top:1.25rem; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner h6 b { display:block; font-size:1.05rem; letter-spacing:.01em; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner h5 { color:#718096; font-size:1rem; font-weight:600; margin-top:.3rem; }
.amhaf-schedule-card .jadwal-cbt .small-box .icon { display:none; }
.amhaf-schedule-card .jadwal-cbt .small-box hr { border-color:#edf1f3; margin:1rem 1.1rem 0 !important; }
.amhaf-schedule-card .jadwal-cbt .small-box .status { margin:1rem 1.1rem !important; width:calc(100% - 2.2rem); min-height:44px; border-radius:.75rem !important; background:linear-gradient(135deg,#19a974,#07885f) !important; color:#fff; }
.amhaf-schedule-card .jadwal-cbt .small-box.bg-gradient-danger .status { background:#93aaa1 !important; }
.amhaf-schedule-card .jadwal-cbt .small-box.bg-gradient-warning .status { background:#168b58 !important; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner { padding:1rem; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner h6 { font-size:1rem; margin-bottom:.35rem; }
.amhaf-schedule-card .jadwal-cbt .small-box .inner h5 { font-size:1.15rem; font-weight:800; }
.amhaf-schedule-card .jadwal-cbt .small-box .icon { opacity:.18; right:1rem; top:1.5rem; }
.amhaf-schedule-card .jadwal-cbt .small-box .status { min-height:48px; padding:.85rem !important; border-radius:0; background:#078f6b !important; }
.amhaf-schedule-card .jadwal-cbt .small-box.bg-gradient-danger .status { background:#e34b5b !important; }
.amhaf-schedule-card .jadwal-cbt .card-body { min-height:170px; }
@media (max-width:767.98px){
 .amhaf-info-card .col-md-5, .amhaf-info-card .col-md-7 { display:block; margin-bottom:1rem; }
 .amhaf-info-card .col-md-7 { margin-bottom:0; }
 .amhaf-schedule-card > .card-body { padding:.75rem; }
}
.amhaf-info-card .list-group-item { border-color:rgba(15,61,75,.12); color:#355265; padding:.55rem .25rem !important; }
.amhaf-info-card .list-group-item b { color:#153c4e; }
.amhaf-schedule-card .jadwal-cbt .card { border:1px solid rgba(15,61,75,.13); border-radius:.75rem; overflow:hidden; box-shadow:0 5px 16px rgba(16,67,76,.07); }
.amhaf-schedule-card .jadwal-cbt .card-header { background:#fff; border-bottom:1px solid rgba(15,61,75,.1); padding:.8rem 1rem; }
.amhaf-schedule-card .jadwal-cbt .small-box { border-radius:0; min-height:120px; }
.amhaf-student-content .jadwal-cbt .status:not([disabled]),
.amhaf-student-content .jadwal-cbt button.status { background:linear-gradient(135deg,#12a875,#07865f) !important; border:0; border-radius:0 0 12px 12px; min-height:46px; font-size:.82rem; letter-spacing:.02em; box-shadow:0 -3px 12px rgba(8,120,85,.12); transition:transform .18s ease,filter .18s ease,box-shadow .18s ease; }
.amhaf-student-content .jadwal-cbt button.status:hover { filter:brightness(1.08); transform:translateY(-2px); box-shadow:0 8px 16px rgba(8,120,85,.25); }
.amhaf-student-content .jadwal-cbt button.status:active { transform:translateY(0); }
.amhaf-student-content .jadwal-cbt button.status i { transition:transform .18s ease; }
.amhaf-student-content .jadwal-cbt button.status:hover i { transform:translateX(4px); }
.amhaf-student-content .table .tgl-ujian { background:#16814f !important; color:#fff; border-radius:10px; font-weight:700; }
.amhaf-student-content .table td { vertical-align:middle; padding:1rem .85rem; border-color:#e9eff0; }
.amhaf-student-content .table button.status { background:linear-gradient(135deg,#e83f55,#c92d43) !important; border:0; border-radius:.7rem; padding:.75rem 1.1rem !important; transition:transform .18s ease,box-shadow .18s ease; }
.amhaf-student-content .table button.status:hover { transform:translateY(-2px); box-shadow:0 7px 15px rgba(201,45,67,.25); }
.amhaf-student-footer { max-width: 1320px; margin: 2rem auto 0; padding: 1.25rem 1rem 2rem; text-align: center; color: var(--amhaf-muted); border-top: 1px solid rgba(11,77,58,.12); }
.amhaf-student-footer strong, .amhaf-student-footer span { display: block; }
.amhaf-student-footer strong { color: var(--amhaf-navy); font-size: .95rem; }
.amhaf-student-footer span { margin-top: .3rem; font-size: .78rem; }
.amhaf-student-content .card-header { padding: 1.15rem 1.5rem; }
.amhaf-student-content .amhaf-info-card .card-header,
.amhaf-student-content .amhaf-schedule-card .card-header { background: linear-gradient(110deg, #078b68, #087b65); color: #fff; border-radius: 20px 20px 0 0; font-weight: 800; }
.amhaf-student-content .amhaf-schedule-card .card-header h5 { color: #fff; }
.amhaf-student-content .amhaf-info-card .card-header div { font-weight: 800; letter-spacing: .03em; }
.amhaf-student-content .amhaf-info-card .card-body { padding: 1.4rem 1.6rem 1.6rem; }
.amhaf-student-content .amhaf-info-card .card-body > .row > div:first-child .card { box-shadow: none !important; border-color: #dfe8ed; }
.amhaf-student-content .amhaf-info-card .card-body > .row > div:first-child .card-header { background: #078b68; color: #fff; border-radius: 18px 18px 0 0; }
.amhaf-student-content .amhaf-info-card .alert-default-danger { border: 1px solid #ffd7d0; box-shadow: none; }
.amhaf-student-content .card-header h5 { margin: 0; color: var(--amhaf-navy); font-weight: 800; letter-spacing: .02em; }
.amhaf-student-content .amhaf-info-card { margin-bottom: 1.5rem; }
.amhaf-student-content .amhaf-schedule-card { margin-top: 1rem; }
.amhaf-student-body .amhaf-confirm-title { display:flex; align-items:center; gap:.85rem; margin-bottom:1rem; padding-bottom:1rem; border-bottom:1px solid #e8eef0; }
.amhaf-confirm-icon { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:#e7f7ef; color:#098760; font-size:1.25rem; }
.amhaf-confirm-title h3 { margin:0; color:#103a53; font-size:1.55rem; font-weight:800; }
.amhaf-confirm-title small { color:#748493; }
.amhaf-confirm-list .list-group-item { padding:.72rem .25rem !important; border-color:#e5edef; }
.amhaf-confirm-list .list-group-item::first-letter { color:#0b8b68; }
.amhaf-supervisor-card { border:0; border-radius:16px; background:#eaf7f3; color:#17495a; padding:1rem 1.2rem; }
.amhaf-supervisor-card h5 { font-weight:800; }
.amhaf-start-button { border:0; border-radius:12px; padding:.8rem 1.3rem; font-weight:800; background:linear-gradient(135deg,#13a474,#067d5b); box-shadow:0 8px 18px rgba(6,125,91,.22); transition:transform .18s ease,box-shadow .18s ease; }
.amhaf-start-button:hover { transform:translateY(-2px); box-shadow:0 11px 22px rgba(6,125,91,.3); }
.amhaf-student-body .amhaf-confirm-title { margin-bottom:.45rem; padding-bottom:.55rem; }
.amhaf-student-body .amhaf-confirm-title h3 { font-size:1.35rem; }
.amhaf-student-body .amhaf-confirm-icon { width:40px; height:40px; }
.amhaf-student-body .amhaf-confirm-list .list-group-item { padding:.45rem .25rem !important; }
.amhaf-student-body .amhaf-supervisor-card { padding:.65rem .9rem; margin-bottom:.5rem; }
.amhaf-student-body .amhaf-supervisor-card h5 { margin:.2rem 0; font-size:1rem; }
.amhaf-student-body .amhaf-supervisor-card ul { margin-bottom:0; padding-left:1.2rem; }
.amhaf-student-body .amhaf-start-button { padding:.65rem 1rem; }
.amhaf-student-body .content-wrapper .overlap { padding-top:90px !important; }
.amhaf-student-body .content-wrapper .overlap:has(#konfir) { padding-top:90px !important; padding-bottom:30px !important; }
.amhaf-student-body .amhaf-exam-brand,
.amhaf-student-body .amhaf-exam-user { display:none !important; }
.amhaf-student-body .content-wrapper:has(.konten-soal-jawab) .overlap { padding-top:128px !important; }
.amhaf-student-body:has(#konfir) .amhaf-student-footer { margin-top:1rem; padding-bottom:2.5rem; }
.amhaf-student-body:has(#konfir) .amhaf-student-content { min-height:0; }
.amhaf-student-body #konfir .text-danger { color:#dc3545 !important; }
.amhaf-student-body #konfir li:has(.text-danger) { color:#dc3545 !important; }
.amhaf-student-body #konfir li:has(.text-danger) input { color:#173d52; }
.amhaf-empty-schedule { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: 0; padding: 1.35rem; text-align: center; border-radius: 1rem; }
.amhaf-empty-schedule strong { font-size: 1.05rem; color: #765315; }
.amhaf-empty-schedule span { color: #866b35; }

.amhaf-student-body .card-header {
    color: var(--amhaf-ink);
    background: rgba(255, 255, 255, .86);
}

.amhaf-student-body .alert {
    border: 0;
    border-radius: 16px;
}

.amhaf-student-body .alert-default-danger {
    color: #80372e;
    background: #fae8e3;
}

.amhaf-student-body .alert-default-warning {
    color: #735a20;
    background: #fff3d3;
}

.amhaf-student-body .alert-default-info {
    color: #1d5368;
    background: #e4f1f5;
}

.amhaf-running-text {
    position: sticky;
    z-index: 1020;
    bottom: 0;
    min-height: 38px;
    padding: 8px 0;
    color: #fff8df;
    background: var(--amhaf-green-900);
    box-shadow: 0 -5px 18px rgba(11, 77, 58, .13);
    font-size: .82rem;
    overflow: hidden;
    white-space: nowrap;
}

.amhaf-ticker-track {
    display: inline-block;
    min-width: 200%;
    padding-left: 100%;
    animation: amhaf-ticker 32s linear infinite;
}

@keyframes amhaf-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.amhaf-exam-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.amhaf-exam-brand img {
    width: 116px;
    height: 62px;
    object-fit: contain;
}

.amhaf-exam-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.amhaf-exam-user img {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.amhaf-student-body #nomor-soal {
    border-radius: 12px;
    background: var(--amhaf-navy) !important;
}

.amhaf-student-body #timer {
    color: #a33d30;
    letter-spacing: .06em;
}

.amhaf-student-body .konten-soal-jawab {
    border: 0 !important;
    border-radius: 16px;
    background: #fff;
}

.amhaf-student-body .btn-oval-sm {
    border-radius: 999px;
}
.amhaf-student-body #daftarModal .modal-dialog { max-width:760px; }
.amhaf-student-body #daftarModal .modal-content { border:0; border-radius:22px; overflow:hidden; box-shadow:0 24px 60px rgba(7,38,54,.28); }
.amhaf-student-body #daftarModal .modal-header { padding:1.15rem 1.45rem; background:linear-gradient(110deg,#078b68,#087b65); color:#fff; border:0; }
.amhaf-student-body #daftarModal .modal-title { font-size:1.2rem; font-weight:800; }
.amhaf-student-body #daftarModal .modal-header .close { color:#fff; opacity:.9; text-shadow:none; }
.amhaf-student-body #daftarModal .modal-body { padding:1.5rem; background:#f5f8f8; min-height:170px; }
.amhaf-student-body #daftarModal #konten-modal { display:flex; flex-wrap:wrap; justify-content:center; gap:.8rem; }
.amhaf-student-body #daftarModal #konten-modal .btn { position:relative; min-width:62px; min-height:62px; border-radius:16px; border:1px solid #d5e2e4; background:#fff; color:#24465a; font-size:1.1rem; font-weight:800; box-shadow:0 4px 10px rgba(20,70,80,.08); transition:.18s ease; }
.amhaf-student-body #daftarModal #konten-modal .btn:hover { transform:translateY(-3px); border-color:#12a474; box-shadow:0 8px 16px rgba(7,137,95,.18); }
.amhaf-student-body #daftarModal #konten-modal .btn-primary { background:#123f65; color:#fff; border-color:#123f65; }
.amhaf-student-body #daftarModal .modal-footer { padding:1rem 1.45rem; border:0; background:#fff; }
.amhaf-student-body #daftarModal .modal-footer .btn { border:0; border-radius:10px; padding:.6rem 1rem; font-weight:800; background:#6c7881; }

@keyframes amhaf-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amhaf-login-shell,
.amhaf-dashboard-hero,
.amhaf-panel,
.amhaf-stat-card {
    animation: amhaf-rise .5s ease both;
}

@media (max-width: 991.98px) {
    .amhaf-login-shell {
        grid-template-columns: 1fr;
    }

    .amhaf-login-story {
        min-height: 400px;
    }

    .amhaf-login-people {
        display: none;
    }

    .amhaf-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .amhaf-dashboard-hero-layout {
        grid-template-columns: 1fr;
    }

    .amhaf-dashboard-user {
        display: none;
    }

    .amhaf-teacher-exam-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {
    .amhaf-login-page {
        padding: 14px;
    }

    .amhaf-login-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 24px;
        background: rgba(255, 253, 248, .96);
    }

    .amhaf-login-story {
        display: none;
    }

    .amhaf-mobile-brand {
        display: flex;
        align-items: center;
        margin-bottom: 24px;
        flex-direction: column;
        text-align: center;
    }

    .amhaf-mobile-brand img {
        width: 108px;
        height: 108px;
        margin-bottom: 13px;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(11, 77, 58, .14));
    }

    .amhaf-mobile-brand small {
        color: var(--amhaf-muted);
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    .amhaf-mobile-brand strong {
        max-width: 330px;
        margin-top: 6px;
        color: var(--amhaf-ink);
        font-size: 1.12rem;
        font-weight: 700;
        letter-spacing: -.015em;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .amhaf-login-panel {
        padding: 28px 24px 22px;
        border-radius: 24px;
    }

    .amhaf-login-panel-content > .amhaf-eyebrow {
        display: none;
    }

    .amhaf-login-panel h2,
    .amhaf-login-panel-content > p {
        text-align: center;
    }

    .amhaf-login-panel-content > p {
        max-width: 350px;
        margin-right: auto;
        margin-left: auto;
    }

    .amhaf-login-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-top: 24px;
    }

    .amhaf-mobile-app-name,
    .amhaf-mobile-footer-dot {
        display: inline;
    }

    .amhaf-mobile-app-name {
        color: var(--amhaf-green-900);
    }

    .amhaf-settings-hero {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 21px;
    }

    .amhaf-settings-hero h1 {
        font-size: 1.4rem;
    }

    .amhaf-settings-save {
        width: 100%;
    }

    .amhaf-settings-card .card-header,
    .amhaf-settings-card .card-body {
        padding: 16px;
    }

    .amhaf-settings-status {
        display: none;
    }

    .amhaf-dashboard-hero {
        min-height: auto;
        margin: 10px 12px 0;
        padding: 20px 18px;
        border-radius: 16px;
    }

    .amhaf-dashboard-hero h1 {
        font-size: 1.55rem;
    }

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

    .amhaf-exam-stats {
        grid-template-columns: 1fr;
    }

    .amhaf-teacher-exam-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amhaf-navbar-context,
    .amhaf-academic-pill {
        display: none;
    }

    .amhaf-student-brand div,
    .amhaf-clock-pill i {
        display: none;
    }

    .amhaf-student-brand img {
        width: 62px;
    }

    .amhaf-exam-brand img {
        width: 92px;
    }
}

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

    .amhaf-login-message h1 {
        font-size: 1.95rem;
    }

    .amhaf-dashboard-hero {
        margin-right: 10px;
        margin-left: 10px;
        padding: 18px 16px;
    }

    .amhaf-dashboard-hero h1 {
        font-size: 1.4rem;
    }

    .amhaf-teacher-exam-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
.amhaf-student-body:has(#table-nilai-ujian) .card.card-primary,
.amhaf-student-body:has(#table-nilai-ujian) .card.card-red { display:none !important; }
.amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian th:last-child,
.amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:last-child { display:none !important; }
.amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:last-child { vertical-align:middle; }
@media (max-width: 700px) {
    .amhaf-student-body:has(#table-nilai-ujian) .card-purple { margin: 0 .25rem; border-radius: 18px; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian { font-size: .82rem; min-width: 0 !important; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian th,
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td { padding: .55rem .3rem; white-space: normal; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian th:nth-child(1),
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:nth-child(1) { width: 10%; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian th:nth-child(2),
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:nth-child(2) { width: 25%; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian th:nth-child(3),
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:nth-child(3) { width: 25%; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian th:nth-child(4),
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:nth-child(4) { width: 25%; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:last-child { display:block; text-align:left !important; padding-top:0; }
    .amhaf-student-body:has(#table-nilai-ujian) #table-nilai-ujian td:nth-child(5) { padding-bottom:0; }
}
.amhaf-result-back { position:fixed; z-index:1060; top:86px; left:18px; display:inline-flex; align-items:center; gap:.45rem; padding:.58rem .9rem; border-radius:999px; background:linear-gradient(135deg,#0b8067,#12507b); color:#fff !important; font-weight:700; box-shadow:0 8px 20px rgba(8,55,70,.2); text-decoration:none !important; }
.amhaf-result-back:hover { transform:translateY(-1px); box-shadow:0 10px 24px rgba(8,55,70,.3); }
@media (min-width:701px) { .amhaf-result-back { display:none !important; } }
@media (max-width:700px) { .amhaf-result-back { top:154px; left:16px; padding:.52rem .78rem; font-size:.85rem; } .amhaf-result-back span { display:inline; } }
