/* Intech shared UI layer: local CSS only, designed to sit after Bootstrap/AdminLTE. */
:root {
    --intech-navy: #102a43;
    --intech-blue: #145da0;
    --intech-blue-strong: #0b4f8a;
    --intech-blue-soft: #e8f2fb;
    --intech-gold: #c99a2e;
    --intech-gold-soft: #fff4d6;
    --intech-ink: #17212f;
    --intech-muted: #5f6f82;
    --intech-border: #dbe4ee;
    --intech-panel: #ffffff;
    --intech-page: #f4f7fb;
    --intech-shadow-sm: 0 8px 22px rgba(16, 42, 67, 0.08);
    --intech-shadow-md: 0 16px 40px rgba(16, 42, 67, 0.13);
    --intech-radius-sm: 8px;
    --intech-radius-md: 8px;
    --intech-radius-lg: 8px;
    --intech-focus: 0 0 0 0.2rem rgba(20, 93, 160, 0.22);
    --intech-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html {
    min-height: 100%;
}

body {
    color: var(--intech-ink);
    background: var(--intech-page);
    font-family: var(--intech-font);
    text-rendering: optimizeLegibility;
}

a {
    color: var(--intech-blue);
}

a:hover,
a:focus {
    color: var(--intech-blue-strong);
}

:focus-visible {
    outline: 3px solid rgba(201, 154, 46, 0.45);
    outline-offset: 2px;
}

.wrapper,
.content-wrapper {
    background: var(--intech-page);
}

.content-wrapper {
    min-height: calc(100vh - 57px);
}

.content-header {
    padding: 22px 1rem 10px;
}

.content-header h1,
.content-header h1 h1 {
    color: var(--intech-navy);
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.25;
    margin: 0;
}

.breadcrumb {
    background: transparent;
    border-radius: 0;
    color: var(--intech-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.content {
    padding: 0 1rem 24px;
}

.main-header.navbar {
    border-bottom: 1px solid rgba(219, 228, 238, 0.9);
    box-shadow: 0 3px 16px rgba(16, 42, 67, 0.05);
    min-height: 60px;
}

.navbar-white {
    background: rgba(255, 255, 255, 0.98);
}

.main-header .nav-link {
    border-radius: var(--intech-radius-sm);
    color: var(--intech-navy) !important;
    font-weight: 600;
    margin: 0 3px;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
    background: var(--intech-blue-soft);
    color: var(--intech-blue-strong) !important;
}

.main-sidebar {
    background: linear-gradient(180deg, #102a43 0%, #0b1f35 100%) !important;
    box-shadow: 12px 0 34px rgba(16, 42, 67, 0.15);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 700;
    min-height: 64px;
}

.brand-link .brand-image {
    background: #ffffff;
}

.intech-brand-link {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
}

.intech-brand-link:hover,
.intech-brand-link:focus {
    text-decoration: none;
}

.intech-brand-logo {
    display: block;
    max-height: 44px;
    max-width: 190px;
    object-fit: contain;
    width: auto;
}

.intech-brand-fallback {
    color: inherit;
    font-weight: 850;
    line-height: 1.15;
}

.intech-sidebar-brand {
    justify-content: center;
}

.intech-sidebar-brand-logo {
    height: auto;
    max-height: 42px;
    max-width: 132px;
    object-fit: contain;
    width: auto;
}

.main-sidebar .brand-link.intech-sidebar-brand {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0.7rem 0.85rem;
}

body.sidebar-collapse .main-sidebar .brand-link.intech-sidebar-brand {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

body.sidebar-collapse .main-sidebar .intech-sidebar-brand-logo {
    max-width: 42px;
}

.sidebar {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

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

.nav-sidebar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    padding: 0.72rem 0.85rem;
}

.nav-sidebar .nav-link p {
    white-space: normal;
}

.nav-sidebar .nav-link:hover,
.nav-sidebar .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-sidebar .nav-link.active {
    background: #ffffff !important;
    color: var(--intech-navy) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-sidebar .nav-link.active .nav-icon,
.nav-sidebar .nav-link.active .right {
    color: var(--intech-blue);
}

.nav-treeview {
    margin: 4px 0 8px 0.35rem;
}

.nav-treeview > .nav-item > .nav-link {
    font-size: 0.92rem;
    padding-left: 1rem;
}

.card,
.info-box,
.small-box,
.login-card-body {
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: var(--intech-radius-md);
    box-shadow: var(--intech-shadow-sm);
}

.card {
    overflow: hidden;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--intech-border);
    padding: 1rem 1.15rem;
}

.card-title {
    color: var(--intech-navy);
    font-size: 1rem;
    font-weight: 750;
}

.card-body {
    color: var(--intech-ink);
}

.card-footer {
    background: #fbfdff;
    border-top: 1px solid var(--intech-border);
}

.card-tools .btn-tool {
    border-radius: 8px;
    color: var(--intech-muted);
}

.card-tools .btn-tool:hover,
.card-tools .btn-tool:focus {
    background: var(--intech-blue-soft);
    color: var(--intech-blue);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.55rem 1rem;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus,
.btn.focus,
.form-control:focus,
.custom-select:focus,
.select2-container--bootstrap4.select2-container--focus .select2-selection {
    box-shadow: var(--intech-focus);
}

.btn-primary,
.btn-info {
    background: var(--intech-blue);
    border-color: var(--intech-blue);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus {
    background: var(--intech-blue-strong);
    border-color: var(--intech-blue-strong);
    color: #ffffff;
}

.btn-secondary {
    background: #e9eef5;
    border-color: #e0e8f1;
    color: var(--intech-navy);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #dce7f3;
    border-color: #d1deeb;
    color: var(--intech-navy);
}

.btn-success {
    background: #18795b;
    border-color: #18795b;
}

.btn-warning {
    background: var(--intech-gold);
    border-color: var(--intech-gold);
    color: #1f2933;
}

.btn-danger {
    background: #c93535;
    border-color: #c93535;
}

.btn-outline-success {
    border-color: #18795b;
    color: #146c51;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: #18795b;
    border-color: #18795b;
    color: #ffffff;
}

.form-control,
.custom-select,
.select2-container--bootstrap4 .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    min-height: 42px;
}

.form-control {
    color: var(--intech-ink);
    padding: 0.58rem 0.75rem;
}

.form-control::placeholder {
    color: #7c8da1;
}

.input-group-text {
    background: #f6f9fc;
    border-color: #cfd9e6;
    color: var(--intech-blue);
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group > .input-group-append > .input-group-text {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

label {
    color: var(--intech-navy);
    font-weight: 700;
}

.table-responsive {
    background: #ffffff;
    border-radius: 0 0 var(--intech-radius-md) var(--intech-radius-md);
}

.table {
    color: var(--intech-ink);
    margin-bottom: 0;
}

.table thead th {
    background: #f5f8fc;
    border-bottom: 1px solid var(--intech-border);
    color: var(--intech-navy);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-top: 1px solid #edf2f7;
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8fbff;
}

.dataTables_wrapper {
    padding: 0.85rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

.page-item .page-link {
    border-color: var(--intech-border);
    color: var(--intech-blue);
}

.page-item.active .page-link {
    background: var(--intech-blue);
    border-color: var(--intech-blue);
}

.badge {
    border-radius: 999px;
    font-weight: 750;
    padding: 0.35em 0.62em;
}

.badge-success {
    background: #dff5eb;
    color: #0e5b42;
}

.badge-danger {
    background: #fde8e8;
    color: #9b1c1c;
}

.alert {
    border: 0;
    border-radius: var(--intech-radius-md);
    box-shadow: var(--intech-shadow-sm);
}

.small-box {
    border: 0;
    color: #ffffff;
    min-height: 138px;
    overflow: hidden;
    position: relative;
}

.small-box > .inner {
    padding: 1.15rem;
    position: relative;
    z-index: 1;
}

.small-box h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.small-box p {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0;
}

.small-box .icon {
    opacity: 0.22;
    right: 18px;
    top: 14px;
}

.small-box .icon > i {
    font-size: 64px;
}

.small-box.bg-info {
    background: linear-gradient(135deg, #145da0 0%, #0c4479 100%) !important;
}

.small-box.bg-secondary {
    background: linear-gradient(135deg, #415a77 0%, #25384f 100%) !important;
}

.small-box.bg-success {
    background: linear-gradient(135deg, #18795b 0%, #0f5944 100%) !important;
}

.small-box.bg-warning {
    background: linear-gradient(135deg, #d6a43a 0%, #ad7d17 100%) !important;
    color: #1f2933 !important;
}

.small-box.bg-danger {
    background: linear-gradient(135deg, #c93535 0%, #922323 100%) !important;
}

.info-box {
    border: 1px solid rgba(219, 228, 238, 0.95);
    min-height: 112px;
    overflow: hidden;
}

.info-box-icon {
    border-radius: var(--intech-radius-md);
    height: 72px;
    margin: 14px;
    width: 72px;
}

.info-box-content {
    padding: 18px 16px 16px 0;
}

.info-box-text {
    color: var(--intech-muted);
    font-weight: 750;
    letter-spacing: 0.01em;
    text-transform: none;
}

.info-box-number {
    color: var(--intech-navy);
    font-size: 1.65rem;
    font-weight: 850;
}

body.login-page.intech-login-modern {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(201, 154, 46, 0.18), transparent 34rem),
        linear-gradient(135deg, #eef6ff 0%, #f7f9fc 48%, #ffffff 100%);
    min-height: 100vh;
}

body.login-page.intech-login-modern .login-box {
    max-width: 430px;
    width: min(430px, calc(100% - 32px));
}

body.login-page.intech-login-modern .login-logo {
    margin-bottom: 18px;
}

body.login-page.intech-login-modern .login-logo a {
    color: var(--intech-navy);
    font-size: 1.85rem;
    font-weight: 850;
    letter-spacing: 0;
}

body.login-page.intech-login-modern .intech-login-brand {
    justify-content: center;
    width: 100%;
}

body.login-page.intech-login-modern .intech-login-brand-logo {
    max-height: 44px;
}

.intech-result-brand {
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 100%;
}

.intech-result-brand-logo {
    max-height: 44px;
}

.intech-brand-text-link:hover,
.intech-brand-text-link:focus {
    text-decoration: none;
}

body.login-page.intech-login-modern .card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 228, 238, 0.9);
    border-radius: var(--intech-radius-lg);
    box-shadow: var(--intech-shadow-md);
}

body.login-page.intech-login-modern .login-card-body {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 2rem;
}

body.login-page.intech-login-modern .login-box-msg {
    color: var(--intech-navy);
    font-size: 1.35rem;
    font-weight: 850;
    padding: 0 0 1rem;
}

body.login-page.intech-login-modern .btn-primary {
    min-width: 118px;
}

body.login-page.intech-login-modern p a {
    font-weight: 700;
}

body.login-page.intech-login-modern .row .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

body.login-page.intech-login-modern .row .col-4 .btn {
    width: auto;
}

body:not(.login-page) #hero {
    background:
        linear-gradient(135deg, rgba(16, 42, 67, 0.95) 0%, rgba(20, 93, 160, 0.9) 62%, rgba(201, 154, 46, 0.82) 100%),
        #102a43;
    color: #ffffff;
    min-height: 76vh;
    padding: 104px 0 76px;
}

body:not(.login-page) #hero h1 {
    color: #ffffff;
    font-family: var(--intech-font);
    font-size: 4.25rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.02;
    margin-bottom: 1rem;
}

body:not(.login-page) #hero h2 {
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--intech-font);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

body:not(.login-page) #hero .download-btn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    color: var(--intech-navy);
    display: inline-flex;
    font-weight: 800;
    margin: 8px 10px 8px 0;
    padding: 0.8rem 1.3rem;
}

body:not(.login-page) #hero .download-btn:hover,
body:not(.login-page) #hero .download-btn:focus {
    background: var(--intech-gold-soft);
    color: var(--intech-navy);
    transform: translateY(-2px);
}

body:not(.login-page) #hero .hero-img img {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.25);
    padding: 12px;
}

body:not(.login-page) #header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(219, 228, 238, 0.9);
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.08);
}

body:not(.login-page) #header .logo a,
body:not(.login-page) #header a {
    color: var(--intech-navy);
}

body:not(.login-page) #header .logo h1 {
    align-items: center;
    display: flex;
    min-height: 44px;
}

body:not(.login-page) #header .intech-header-brand-logo {
    max-height: 42px;
}

body:not(.login-page) #header .intech-header-brand-fallback {
    font-size: 1rem;
}

body:not(.login-page) #header .get-started a,
body:not(.login-page) #header a.get-started {
    background: var(--intech-blue);
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 800;
}

body:not(.login-page) .back-to-top {
    background: var(--intech-blue);
    border-radius: 8px;
    box-shadow: var(--intech-shadow-sm);
}

body:not(.login-page) .back-to-top:hover,
body:not(.login-page) .back-to-top:focus {
    background: var(--intech-blue-strong);
}

#upcoming-exams-table,
#todayExamsTable,
#todayRegistrationsTable,
#todaycompletedexamsTable {
    min-height: 1px;
}

#upcoming-exams-table .attempt-exam-btn {
    min-width: 96px;
}

#box1,
#box2,
#box3,
#box4 {
    min-height: 120px;
}

@media (max-width: 991.98px) {
    .content-header {
        padding-top: 18px;
    }

    .content-header h1,
    .content-header h1 h1 {
        font-size: 1.35rem;
    }

    .small-box {
        min-height: 124px;
    }

    .small-box h3 {
        font-size: 1.65rem;
    }

    body:not(.login-page) #hero {
        min-height: auto;
        padding: 96px 0 56px;
        text-align: left;
    }

    body:not(.login-page) #hero .hero-img {
        margin-bottom: 24px;
    }
}

@media (max-width: 767.98px) {
    .content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .table td,
    .table th {
        padding: 0.72rem;
    }

    .btn {
        white-space: normal;
    }

    body.login-page .login-card-body {
        padding: 1.45rem;
    }

    body.login-page .login-logo a {
        font-size: 1.55rem;
    }

    body:not(.login-page) #hero h1 {
        font-size: 2.25rem;
    }

    body:not(.login-page) #hero .download-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Public landing page */
body:not(.login-page) #hero.intech-landing-hero {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 58%, rgba(255, 248, 229, 0.86) 100%),
        #f8fbff;
    min-height: 78vh;
    overflow: hidden;
    padding: 128px 0 92px;
    position: relative;
}

body:not(.login-page) #hero.intech-landing-hero::before {
    background: linear-gradient(90deg, rgba(20, 93, 160, 0.08), rgba(201, 154, 46, 0.12));
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 84px;
}

.intech-hero-copy,
.intech-hero-visual {
    position: relative;
    z-index: 1;
}

.intech-kicker {
    color: var(--intech-blue);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

body:not(.login-page) #hero.intech-landing-hero h1 {
    color: var(--intech-navy);
    font-size: 4.25rem;
    font-weight: 900;
    line-height: 1.02;
    margin-bottom: 1.15rem;
    max-width: 780px;
}

body:not(.login-page) #hero.intech-landing-hero h2 {
    color: var(--intech-muted);
    font-size: 1.2rem;
    font-weight: 520;
    line-height: 1.62;
    margin-bottom: 1.8rem;
    max-width: 670px;
}

.intech-hero-actions,
.intech-existing-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.intech-existing-actions {
    margin-top: 14px;
}

.intech-cta,
.intech-existing-link {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    line-height: 1.2;
    min-height: 48px;
    padding: 0.82rem 1.35rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.intech-cta:hover,
.intech-cta:focus,
.intech-existing-link:hover,
.intech-existing-link:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.intech-cta-primary {
    background: var(--intech-blue);
    border: 1px solid var(--intech-blue);
    box-shadow: 0 14px 30px rgba(20, 93, 160, 0.22);
    color: #ffffff;
}

.intech-cta-primary:hover,
.intech-cta-primary:focus {
    background: var(--intech-blue-strong);
    border-color: var(--intech-blue-strong);
    color: #ffffff;
}

.intech-cta-secondary,
.intech-existing-link {
    background: #ffffff;
    border: 1px solid rgba(20, 93, 160, 0.22);
    color: var(--intech-blue-strong);
}

.intech-cta-secondary:hover,
.intech-cta-secondary:focus,
.intech-existing-link:hover,
.intech-existing-link:focus {
    background: var(--intech-blue-soft);
    border-color: rgba(20, 93, 160, 0.34);
    color: var(--intech-blue-strong);
}

.intech-hero-panel {
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(16, 42, 67, 0.12);
    padding: 12px;
    position: relative;
}

body:not(.login-page) #hero.intech-landing-hero .hero-img img {
    background: #f8fbff;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    display: block;
    padding: 0;
    width: 100%;
}

.intech-hero-panel-note {
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    bottom: 24px;
    box-shadow: var(--intech-shadow-md);
    color: var(--intech-navy);
    left: 24px;
    padding: 0.85rem 1rem;
    position: absolute;
}

.intech-hero-panel-note span,
.intech-hero-panel-note strong {
    display: block;
}

.intech-hero-panel-note span {
    color: var(--intech-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.intech-hero-panel-note strong {
    font-size: 1rem;
    font-weight: 850;
}

.intech-hero-fallback-visual {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6fc 100%);
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 360px;
    padding: 1.25rem;
}

.intech-hero-fallback-visual span {
    align-items: flex-end;
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-left: 4px solid var(--intech-blue);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
    color: var(--intech-navy);
    display: flex;
    font-weight: 850;
    line-height: 1.25;
    min-height: 138px;
    padding: 1rem;
}

.intech-landing-section {
    background: #ffffff;
    padding: 84px 0;
}

.intech-how-section {
    background: #f7fafc;
}

.intech-section-heading {
    margin-bottom: 30px;
    max-width: 760px;
}

.intech-section-heading .intech-kicker {
    color: var(--intech-blue);
}

.intech-section-heading h2 {
    color: var(--intech-navy);
    font-size: 2.35rem;
    font-weight: 880;
    line-height: 1.14;
    margin: 0;
}

.intech-diagnostic-card {
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(16, 42, 67, 0.06);
    height: 100%;
    min-height: 245px;
    padding: 1.55rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.intech-diagnostic-card:hover {
    border-color: rgba(20, 93, 160, 0.35);
    box-shadow: 0 18px 44px rgba(16, 42, 67, 0.1);
    transform: translateY(-4px);
}

.intech-card-index {
    align-items: center;
    background: var(--intech-gold-soft);
    border-radius: 8px;
    color: #7a5208;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 48px;
}

.intech-diagnostic-card h3 {
    color: var(--intech-navy);
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1.22;
    margin-bottom: 0.75rem;
}

.intech-diagnostic-card p {
    color: var(--intech-muted);
    font-size: 0.98rem;
    line-height: 1.58;
    margin-bottom: 0;
}

.intech-steps {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intech-step {
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(16, 42, 67, 0.06);
    min-height: 150px;
    padding: 1.25rem;
    position: relative;
}

.intech-step span {
    align-items: center;
    background: var(--intech-blue);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 42px;
}

.intech-step h3 {
    color: var(--intech-navy);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.3;
    margin: 0;
}

body:not(.login-page) #footer {
    background: #0b1f35;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991.98px) {
    body:not(.login-page) #hero.intech-landing-hero {
        padding: 112px 0 64px;
    }

    .intech-hero-panel {
        margin-bottom: 28px;
    }

    body:not(.login-page) #hero.intech-landing-hero h1 {
        font-size: 3.2rem;
    }

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

@media (max-width: 767.98px) {
    body:not(.login-page) #hero.intech-landing-hero {
        padding: 98px 0 50px;
    }

    body:not(.login-page) #hero.intech-landing-hero h1 {
        font-size: 2.45rem;
    }

    body:not(.login-page) #hero.intech-landing-hero h2 {
        font-size: 1.05rem;
    }

    .intech-hero-actions,
    .intech-existing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .intech-cta,
    .intech-existing-link {
        width: 100%;
    }

    .intech-hero-panel-note {
        bottom: 14px;
        left: 14px;
        max-width: calc(100% - 28px);
        position: absolute;
    }

    .intech-hero-fallback-visual {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .intech-hero-fallback-visual span {
        min-height: 92px;
    }

    .intech-landing-section {
        padding: 54px 0;
    }

    .intech-section-heading h2 {
        font-size: 1.85rem;
    }

    .intech-diagnostic-card {
        min-height: 0;
    }

    .intech-steps {
        grid-template-columns: 1fr;
    }
}

/* Login page */
body.login-page.intech-login-modern {
    background: linear-gradient(135deg, #eef5fb 0%, #f8fbff 52%, #ffffff 100%);
}

body.login-page.intech-login-modern .intech-login-card {
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(16, 42, 67, 0.16);
    overflow: hidden;
}

body.login-page.intech-login-modern .intech-login-card .login-card-body {
    padding: 2.15rem;
}

body.login-page.intech-login-modern .intech-login-header {
    border-bottom: 1px solid var(--intech-border);
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
}

body.login-page.intech-login-modern .intech-login-kicker {
    color: var(--intech-blue);
    display: block;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

body.login-page.intech-login-modern .intech-login-header h1 {
    color: var(--intech-navy);
    font-size: 1.72rem;
    font-weight: 900;
    line-height: 1.12;
    margin: 0 0 0.55rem;
}

body.login-page.intech-login-modern .intech-login-header p {
    color: var(--intech-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

body.login-page.intech-login-modern .intech-login-label {
    color: var(--intech-navy);
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

body.login-page.intech-login-modern .intech-login-field {
    align-items: stretch;
}

body.login-page.intech-login-modern .intech-login-field .form-control,
body.login-page.intech-login-modern .intech-login-field .input-group-text {
    min-height: 48px;
}

body.login-page.intech-login-modern .intech-login-field .form-control {
    border-color: #c9d6e4;
    font-size: 1rem;
}

body.login-page.intech-login-modern .intech-login-field .input-group-text {
    min-width: 48px;
    justify-content: center;
}

body.login-page.intech-login-modern .intech-login-field .js-countryCodeContainer .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    max-width: 104px;
}

body.login-page.intech-login-modern .intech-login-field .invalid-feedback {
    flex-basis: 100%;
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: 0.42rem;
}

body.login-page.intech-login-modern .intech-login-submit-row {
    margin-top: 0.35rem;
}

body.login-page.intech-login-modern .intech-login-submit-row .btn-primary {
    min-height: 48px;
    width: 100%;
}

body.login-page.intech-login-modern .intech-login-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.2rem;
}

body.login-page.intech-login-modern .intech-login-links a,
body.login-page.intech-login-modern .intech-login-home-link {
    font-weight: 750;
}

body.login-page.intech-login-modern .intech-login-links span {
    color: #b5c1ce;
}

body.login-page.intech-login-modern .intech-login-home-link {
    border-top: 1px solid var(--intech-border);
    color: var(--intech-muted);
    display: block;
    margin-top: 1.1rem;
    padding-top: 1rem;
    text-align: center;
}

body.login-page.intech-login-modern .intech-login-home-link:hover,
body.login-page.intech-login-modern .intech-login-home-link:focus {
    color: var(--intech-blue);
    text-decoration: none;
}

body.login-page.intech-login-modern {
    align-items: center;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6fc 54%, #ffffff 100%);
    justify-content: center;
    padding: 1rem;
}

body.login-page.intech-login-modern .login-box {
    max-width: 440px;
    width: min(440px, calc(100vw - 24px));
}

body.login-page.intech-login-modern .intech-login-card {
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(16, 42, 67, 0.14);
    overflow: hidden;
}

body.login-page.intech-login-modern .intech-login-shell {
    display: block;
    min-height: 0;
}

body.login-page.intech-login-modern .intech-login-intro {
    background:
        linear-gradient(135deg, rgba(20, 93, 160, 0.96), rgba(11, 79, 138, 0.94)),
        var(--intech-blue);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

body.login-page.intech-login-modern .intech-login-card-brand {
    align-self: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0.55rem 0.75rem;
}

body.login-page.intech-login-modern .intech-login-card-brand-logo {
    height: auto;
    max-height: 42px;
    max-width: 145px;
    object-fit: contain;
    width: auto;
}

body.login-page.intech-login-modern .intech-login-card-brand-fallback {
    color: var(--intech-navy);
    font-size: 1rem;
}

body.login-page.intech-login-modern .intech-login-intro-copy {
    margin: 3rem 0;
    max-width: 430px;
}

body.login-page.intech-login-modern .intech-login-intro .intech-login-kicker {
    color: rgba(255, 255, 255, 0.78);
}

body.login-page.intech-login-modern .intech-login-intro h1 {
    color: #ffffff;
    font-size: 2.65rem;
    font-weight: 900;
    line-height: 1.04;
    margin: 0 0 1rem;
}

body.login-page.intech-login-modern .intech-login-intro p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
}

body.login-page.intech-login-modern .intech-login-mini-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.login-page.intech-login-modern .intech-login-mini-grid span {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.25;
    min-height: 54px;
    padding: 0.75rem;
}

body.login-page.intech-login-modern .intech-login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

body.login-page.intech-login-modern .intech-login-header {
    border-bottom: 0;
    margin-bottom: 1.55rem;
    padding-bottom: 0;
    text-align: center;
}

body.login-page.intech-login-modern .intech-login-header h1 {
    color: var(--intech-navy);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 1.2rem 0 0;
}

body.login-page.intech-login-modern .intech-login-header p {
    max-width: 420px;
}

body.login-page.intech-login-modern .intech-login-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

body.login-page.intech-login-modern .intech-login-field {
    margin-bottom: 1.05rem !important;
}

body.login-page.intech-login-modern .intech-login-field .form-control,
body.login-page.intech-login-modern .intech-login-field .input-group-text {
    background: #f8fbff;
    border-color: rgba(190, 207, 224, 0.95);
    min-height: 54px;
}

body.login-page.intech-login-modern .intech-login-field .form-control {
    border-radius: 8px 0 0 8px;
    color: var(--intech-ink);
    font-size: 1rem;
    font-weight: 600;
    padding-left: 1rem;
}

body.login-page.intech-login-modern .intech-login-field .form-control:focus {
    background: #ffffff;
    border-color: var(--intech-blue);
    box-shadow: var(--intech-focus);
}

body.login-page.intech-login-modern .intech-login-field .input-group-text {
    border-radius: 0 8px 8px 0;
    color: var(--intech-blue);
}

body.login-page.intech-login-modern .intech-login-field .js-countryCodeContainer .form-control {
    border-radius: 8px 0 0 8px;
}

body.login-page.intech-login-modern .intech-login-field .js-countryCodeContainer + .form-control {
    border-radius: 0;
}

body.login-page.intech-login-modern .intech-login-submit-row {
    margin-top: 0.65rem;
}

body.login-page.intech-login-modern .intech-login-submit-row .btn-primary {
    background: var(--intech-blue);
    border-color: var(--intech-blue);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(20, 93, 160, 0.2);
    font-weight: 850;
    min-height: 54px;
}

body.login-page.intech-login-modern .intech-login-submit-row .btn-primary:hover,
body.login-page.intech-login-modern .intech-login-submit-row .btn-primary:focus {
    background: var(--intech-blue-strong);
    border-color: var(--intech-blue-strong);
}

body.login-page.intech-login-modern .intech-login-links {
    justify-content: center;
    margin-top: 1.4rem;
}

body.login-page.intech-login-modern .intech-login-home-link {
    text-align: center;
}

@media (max-width: 767.98px) {
    body.login-page.intech-login-modern {
        padding: 0.75rem;
    }

    body.login-page.intech-login-modern .intech-login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.login-page.intech-login-modern .intech-login-form-panel {
        padding: 1.35rem;
    }

    body.login-page.intech-login-modern .intech-login-intro-copy {
        margin: 1.6rem 0;
    }

    body.login-page.intech-login-modern .intech-login-intro h1 {
        font-size: 2rem;
    }

    body.login-page.intech-login-modern .intech-login-mini-grid {
        grid-template-columns: 1fr;
    }

    body.login-page.intech-login-modern .intech-login-header h1 {
        font-size: 1.55rem;
    }

    body.login-page.intech-login-modern .intech-login-links,
    body.login-page.intech-login-modern .intech-login-home-link {
        text-align: center;
    }

    body.login-page.intech-login-modern .intech-login-card .login-card-body {
        padding: 1.45rem;
    }

    body.login-page.intech-login-modern .intech-login-header h1 {
        font-size: 1.45rem;
    }

    body.login-page.intech-login-modern .intech-login-links {
        align-items: stretch;
        flex-direction: column;
        gap: 0.35rem;
    }

    body.login-page.intech-login-modern .intech-login-links span {
        display: none;
    }
}

/* Staff and tutor interface */
body.intech-staff-shell {
    background: var(--intech-page);
}

body.intech-staff-shell .wrapper,
body.intech-staff-shell .content-wrapper {
    background:
        linear-gradient(180deg, #f8fbff 0%, #f2f7fb 100%);
}

body.intech-staff-shell .main-sidebar {
    background: linear-gradient(180deg, #0f2a43 0%, #092038 58%, #071827 100%) !important;
    box-shadow: 14px 0 34px rgba(8, 25, 40, 0.16);
}

body.intech-staff-shell .brand-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex;
    height: 68px;
    min-height: 68px;
    padding: 8px 12px;
}

body.intech-staff-shell .intech-sidebar-brand {
    justify-content: center;
}

body.intech-staff-shell .intech-sidebar-brand-logo {
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    display: block;
    height: 40px;
    max-height: 40px;
    max-width: 156px;
    object-fit: contain;
    padding: 4px 6px;
    width: auto;
}

body.intech-staff-shell.sidebar-collapse .main-sidebar .brand-link.intech-sidebar-brand {
    padding: 10px;
}

body.intech-staff-shell.sidebar-collapse .main-sidebar .intech-sidebar-brand-logo {
    height: 48px;
    max-width: 48px;
    padding: 4px;
    width: 48px;
}

body.intech-staff-shell .brand-link .brand-image {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    height: 38px;
    margin-left: 0;
    max-height: 38px;
    object-fit: contain;
    padding: 4px;
    width: 38px;
}

body.intech-staff-shell .brand-text {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 850 !important;
    line-height: 1.18;
    white-space: normal;
}

body.intech-staff-shell .sidebar {
    padding: 0.7rem;
}

body.intech-staff-shell .user-panel {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.85rem !important;
    padding: 0.65rem !important;
}

body.intech-staff-shell .user-panel .image img {
    border: 2px solid rgba(255, 255, 255, 0.28);
    height: 38px;
    object-fit: cover;
    width: 38px;
}

body.intech-staff-shell .user-panel .info {
    padding-left: 0.6rem;
}

body.intech-staff-shell .user-panel .info a {
    color: #ffffff;
    font-weight: 800;
}

body.intech-staff-shell .nav-sidebar .nav-header {
    color: rgba(255, 255, 255, 0.55);
}

body.intech-staff-shell .nav-sidebar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin-bottom: 0.16rem;
    min-height: 40px;
}

body.intech-staff-shell .nav-sidebar .nav-link .nav-icon {
    color: rgba(255, 255, 255, 0.68);
    margin-right: 0.45rem;
}

body.intech-staff-shell .nav-sidebar .nav-link:hover,
body.intech-staff-shell .nav-sidebar .nav-link:focus {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

body.intech-staff-shell .nav-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    color: var(--intech-navy) !important;
}

body.intech-staff-shell .nav-sidebar .nav-link.active .nav-icon,
body.intech-staff-shell .nav-sidebar .nav-link.active .right {
    color: var(--intech-blue);
}

body.intech-staff-shell .nav-treeview {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 1rem;
    padding-left: 0.35rem;
}

body.intech-staff-shell .main-header.navbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(219, 228, 238, 0.95);
    box-shadow: 0 7px 22px rgba(16, 42, 67, 0.06);
    min-height: 62px;
    padding-left: 1rem;
    padding-right: 1rem;
}

body.intech-staff-shell .main-header .nav-link {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    gap: 0.42rem;
    min-height: 38px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

body.intech-staff-shell .main-header .js-logoutButton {
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    box-shadow: 0 6px 16px rgba(16, 42, 67, 0.06);
}

body.intech-staff-shell .content-header {
    padding: 24px 1.25rem 8px;
}

body.intech-staff-shell .content-header h1 {
    color: var(--intech-navy);
    font-size: 1.25rem;
    font-weight: 850;
}

body.intech-staff-shell .content {
    padding: 0 1.25rem 30px;
}

.intech-staff-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intech-dashboard-intro {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(16, 42, 67, 0.08);
    color: var(--intech-navy);
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.35rem 1.5rem;
    position: relative;
}

.intech-dashboard-intro::after {
    display: none;
}

.intech-dashboard-intro > * {
    position: relative;
    z-index: 1;
}

.intech-dashboard-kicker {
    color: var(--intech-blue);
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.intech-dashboard-intro h2 {
    color: var(--intech-navy);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 0.45rem;
}

.intech-dashboard-intro p {
    color: var(--intech-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}

.intech-staff-stat-grid {
    row-gap: 1rem;
}

body.intech-staff-shell .small-box {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
    min-height: 116px;
    overflow: hidden;
}

body.intech-staff-shell .small-box > .inner {
    padding: 1rem 1rem 0.9rem;
}

body.intech-staff-shell .small-box h3 {
    font-size: 1.85rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

body.intech-staff-shell .small-box p {
    font-size: 0.9rem;
    font-weight: 750;
}

body.intech-staff-shell .small-box .icon {
    top: 10px;
}

body.intech-staff-shell .small-box .icon > i {
    font-size: 58px;
}

.intech-assessment-count-card .small-box p {
    font-size: 0.7rem;
    line-height: 1.25;
    margin-right: 0.5rem;
    min-height: 2.5em;
}

@media (min-width: 992px) {
    .intech-staff-stat-grid {
        flex-wrap: nowrap;
    }

    .intech-assessment-count-card .small-box .icon {
        display: none;
    }
}

.intech-quick-actions,
.intech-dashboard-tables {
    margin-top: 0.25rem;
}

.intech-quick-actions .intech-section-heading {
    margin-bottom: 0.72rem;
}

.intech-quick-actions .intech-section-heading .intech-kicker {
    color: var(--intech-blue);
}

.intech-quick-actions .intech-section-heading h2 {
    color: var(--intech-navy);
    font-size: 1.08rem;
    font-weight: 880;
}

.intech-quick-action-grid {
    row-gap: 0.5rem;
}

.intech-quick-action-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.06);
    color: var(--intech-navy);
    display: flex;
    flex-direction: row;
    gap: 0.72rem;
    height: 100%;
    min-height: 78px;
    padding: 0.78rem 0.9rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.intech-quick-action-card:hover,
.intech-quick-action-card:focus {
    border-color: rgba(20, 93, 160, 0.35);
    box-shadow: var(--intech-shadow-md);
    color: var(--intech-navy);
    text-decoration: none;
    transform: translateY(-3px);
}

.intech-action-icon {
    align-items: center;
    background: var(--intech-blue-soft);
    border-radius: 8px;
    flex: 0 0 38px;
    color: var(--intech-blue);
    display: inline-flex;
    font-size: 0.98rem;
    height: 38px;
    justify-content: center;
    margin-bottom: 0;
    width: 38px;
}

.intech-quick-action-card strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 850;
    line-height: 1.15;
}

.intech-quick-action-card small {
    color: var(--intech-muted);
    display: block;
    font-size: 0.8rem;
    line-height: 1.28;
    margin-top: 0.18rem;
}

body.intech-staff-shell .intech-staff-table-card {
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(16, 42, 67, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

body.intech-staff-shell .intech-priority-table-card {
    border-top: 4px solid var(--intech-blue);
    min-height: 390px;
}

body.intech-staff-shell .intech-staff-table-card .card-header {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border-bottom: 1px solid rgba(219, 228, 238, 0.95);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.intech-table-heading span {
    color: var(--intech-blue);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 0.22rem;
    text-transform: uppercase;
}

body.intech-staff-shell .intech-staff-table-card .card-title {
    color: var(--intech-navy);
    font-size: 1.18rem;
    font-weight: 900;
    margin: 0;
}

body.intech-staff-shell .intech-staff-table-card .table-responsive {
    border-radius: 0;
    min-height: 268px;
    position: relative;
}

body.intech-staff-shell .intech-staff-table-card .table {
    color: var(--intech-ink);
}

body.intech-staff-shell .intech-staff-table-card .table thead {
    background: #f7fafc;
}

body.intech-staff-shell .intech-staff-table-card .table thead th {
    border-bottom: 1px solid rgba(219, 228, 238, 0.95);
    color: var(--intech-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    padding: 0.85rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

body.intech-staff-shell .intech-staff-table-card .table tbody td {
    border-top: 1px solid rgba(219, 228, 238, 0.75);
    font-size: 0.92rem;
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

body.intech-staff-shell .intech-staff-table-card .card-footer {
    background: #ffffff;
    border-top: 1px solid rgba(219, 228, 238, 0.75);
    padding: 0.75rem 1rem;
}

body.intech-staff-shell .intech-staff-table-card .card-footer .btn {
    border-radius: 8px;
    font-weight: 800;
}

.intech-table-empty-state {
    color: var(--intech-muted);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    padding: 1rem;
}

#todayRegistrationsTable tbody:empty::before,
#todaycompletedexamsTable tbody:empty::before {
    color: var(--intech-muted);
    content: "";
    display: none;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 1.15rem 1rem;
}

@supports selector(:has(*)) {
    #todayRegistrationsTable:has(tbody tr) + .intech-table-empty-state,
    #todaycompletedexamsTable:has(tbody tr) + .intech-table-empty-state {
        display: none;
    }
}

@media (max-width: 991.98px) {
    body.intech-staff-shell .content {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .intech-dashboard-intro {
        border-radius: 8px;
        padding: 1.35rem;
    }
}

@media (max-width: 767.98px) {
    body.intech-staff-shell .content-header {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .intech-dashboard-intro h2 {
        font-size: 1.55rem;
    }

    .intech-dashboard-intro p {
        font-size: 0.95rem;
    }

    .intech-quick-action-card {
        min-height: 0;
    }
}

/* Learner interface */
body.intech-learner-shell {
    background: var(--intech-page);
}

body.intech-learner-shell .wrapper,
body.intech-learner-shell .content-wrapper {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

body.intech-learner-shell .main-sidebar {
    background: linear-gradient(180deg, #0d2742 0%, #0a2138 100%) !important;
    box-shadow: 14px 0 30px rgba(8, 25, 40, 0.14);
}

body.intech-learner-shell .brand-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
    display: flex;
    height: 68px;
    min-height: 68px;
    padding: 0.85rem;
}

body.intech-learner-shell .intech-sidebar-brand {
    justify-content: center;
}

body.intech-learner-shell .intech-sidebar-brand-logo {
    background: #ffffff;
    border-radius: 8px;
    display: block;
    height: 40px;
    max-height: 40px;
    max-width: 156px;
    object-fit: contain;
    padding: 4px 6px;
    width: auto;
}

body.intech-learner-shell .brand-link .brand-image {
    background: #ffffff;
    border-radius: 8px;
    height: 38px;
    margin-left: 0;
    max-height: 38px;
    object-fit: contain;
    padding: 4px;
    width: 38px;
}

body.intech-learner-shell .brand-text {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 850 !important;
    line-height: 1.18;
    white-space: normal;
}

body.intech-learner-shell .sidebar {
    padding: 0.75rem;
}

body.intech-learner-shell .user-panel {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
}

body.intech-learner-shell .user-panel .info a {
    color: #ffffff;
    font-weight: 800;
}

body.intech-learner-shell .nav-sidebar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.22rem;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
}

body.intech-learner-shell .nav-sidebar .nav-link .nav-icon {
    color: rgba(255, 255, 255, 0.68);
    margin-right: 0.45rem;
}

body.intech-learner-shell .nav-sidebar .nav-link:hover,
body.intech-learner-shell .nav-sidebar .nav-link:focus {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

body.intech-learner-shell .nav-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.97) !important;
    color: #0d2742 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

body.intech-learner-shell .nav-sidebar .nav-link.active .nav-icon {
    color: var(--intech-blue);
}

body.intech-learner-shell .main-header.navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(219, 228, 238, 0.95);
    box-shadow: 0 6px 18px rgba(16, 42, 67, 0.06);
    min-height: 62px;
}

body.intech-learner-shell .main-header .nav-link {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    gap: 0.35rem;
    min-height: 40px;
}

body.intech-learner-shell .content-header {
    padding: 24px 1.25rem 8px;
}

body.intech-learner-shell .content-header h1 {
    color: var(--intech-navy);
    font-size: 1.25rem;
    font-weight: 850;
}

body.intech-learner-shell .content {
    padding: 0 1.25rem 30px;
}

.intech-learner-dashboard,
.intech-learner-assessments-page,
.intech-learner-results-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.intech-learner-welcome,
.intech-learner-page-intro {
    background: #ffffff;
    border: 1px solid rgba(205, 218, 232, 0.95);
    border-left: 4px solid var(--intech-blue);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
    color: var(--intech-navy);
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.intech-learner-welcome {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.intech-learner-welcome::after,
.intech-learner-page-intro::after {
    display: none;
}

.intech-learner-welcome > *,
.intech-learner-page-intro > * {
    position: relative;
    z-index: 1;
}

.intech-learner-welcome h2,
.intech-learner-page-intro h2 {
    color: var(--intech-navy);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.14;
    margin: 0 0 0.45rem;
}

.intech-learner-welcome p,
.intech-learner-page-intro p {
    color: var(--intech-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}

.intech-learner-welcome-action {
    align-items: center;
    background: var(--intech-blue);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(20, 93, 160, 0.2);
    color: #ffffff;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.15rem;
    text-decoration: none;
    white-space: nowrap;
}

.intech-learner-welcome-action:hover,
.intech-learner-welcome-action:focus {
    background: var(--intech-blue-strong);
    color: #ffffff;
    text-decoration: none;
}

.intech-learner-summary-row {
    row-gap: 1rem;
}

body.intech-learner-shell .info-box {
    background: #ffffff;
    border: 1px solid rgba(205, 218, 232, 0.95);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.06);
    min-height: 104px;
    padding: 0.85rem;
}

body.intech-learner-shell .info-box-icon {
    background: var(--intech-blue) !important;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(20, 93, 160, 0.18);
    height: 58px;
    min-width: 58px;
    width: 58px;
}

body.intech-learner-shell .js-tilesResults .info-box-icon {
    background: #18795b !important;
}

body.intech-learner-shell .info-box-text {
    color: var(--intech-muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.intech-learner-shell .info-box-number {
    color: var(--intech-navy);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
}

.intech-learner-section-heading {
    margin-bottom: -0.55rem;
}

.intech-learner-section-heading span {
    color: var(--intech-blue);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intech-learner-section-heading h3 {
    color: var(--intech-navy);
    font-size: 1.25rem;
    font-weight: 880;
    margin: 0.25rem 0 0;
}

body.intech-learner-shell .intech-assessment-list-card,
body.intech-learner-shell .intech-result-list-card {
    background: #ffffff;
    border: 1px solid rgba(205, 218, 232, 0.95);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
    overflow: hidden;
}

body.intech-learner-shell .intech-assessment-list-card .card-header,
body.intech-learner-shell .intech-result-list-card .card-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(205, 218, 232, 0.9);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.intech-table-heading span {
    color: var(--intech-blue);
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.intech-learner-shell .intech-assessment-list-card .card-title {
    color: var(--intech-navy);
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.25;
    margin: 0.15rem 0 0;
}

body.intech-learner-shell .intech-result-list-card .card-title {
    color: var(--intech-navy);
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.25;
    margin: 0.15rem 0 0;
}

.intech-table-heading p {
    color: var(--intech-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0.25rem 0 0;
}

body.intech-learner-shell .intech-assessment-list-card .card-body,
body.intech-learner-shell .intech-result-list-card .card-body {
    padding: 1.05rem;
}

body.intech-learner-shell #upcoming-exams-table .table-responsive,
body.intech-learner-shell #exams-card .table-responsive,
body.intech-learner-shell #exam-registrations-card .table-responsive,
body.intech-learner-shell .intech-result-list-card .table-responsive {
    border: 1px solid var(--intech-border);
    border-radius: 8px;
    overflow: auto;
}

body.intech-learner-shell .dataTables_wrapper {
    background: #ffffff;
    border-radius: 8px;
}

body.intech-learner-shell .dataTables_length,
body.intech-learner-shell .dataTables_filter {
    color: var(--intech-muted);
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

body.intech-learner-shell .dataTables_filter input,
body.intech-learner-shell .dataTables_length select {
    border: 1px solid var(--intech-border);
    border-radius: 8px;
    min-height: 38px;
}

body.intech-learner-shell #upcoming-exams-datatable,
body.intech-learner-shell #examsDatatable,
body.intech-learner-shell #dignosticsExamsTable,
body.intech-learner-shell #resultsDatatable {
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

body.intech-learner-shell #upcoming-exams-datatable thead th,
body.intech-learner-shell #examsDatatable thead th,
body.intech-learner-shell #dignosticsExamsTable thead th,
body.intech-learner-shell #resultsDatatable thead th {
    background: #f4f8fc;
    border-bottom: 1px solid var(--intech-border) !important;
    color: var(--intech-navy);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.85rem;
    text-transform: uppercase;
    white-space: nowrap;
}

body.intech-learner-shell #upcoming-exams-datatable tbody td,
body.intech-learner-shell #examsDatatable tbody td,
body.intech-learner-shell #dignosticsExamsTable tbody td,
body.intech-learner-shell #resultsDatatable tbody td {
    border-color: rgba(219, 228, 238, 0.9) !important;
    color: #24435f;
    padding: 0.85rem;
    vertical-align: middle;
}

body.intech-learner-shell #upcoming-exams-datatable tbody tr:hover,
body.intech-learner-shell #examsDatatable tbody tr:hover,
body.intech-learner-shell #dignosticsExamsTable tbody tr:hover,
body.intech-learner-shell #resultsDatatable tbody tr:hover {
    background: #f7fbff;
}

body.intech-learner-shell table.dataTable.no-footer {
    border-bottom: 0;
}

body.intech-learner-shell table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
body.intech-learner-shell table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    background: var(--intech-blue);
    border: 0;
    box-shadow: none;
}

body.intech-learner-shell .attempt-exam-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 850;
    justify-content: center;
    min-height: 42px;
    min-width: 112px;
    padding: 0.55rem 0.9rem;
    width: auto;
}

body.intech-learner-shell .btn-outline-success.attempt-exam-btn {
    background: var(--intech-blue);
    border-color: var(--intech-blue);
    color: #ffffff;
}

body.intech-learner-shell .btn-outline-success.attempt-exam-btn:hover,
body.intech-learner-shell .btn-outline-success.attempt-exam-btn:focus {
    background: var(--intech-blue-strong);
    border-color: var(--intech-blue-strong);
    color: #ffffff;
}

body.intech-learner-shell .view-exam-details-btn {
    align-items: center;
    background: #eef5fb;
    border-color: #bfd3e7;
    border-radius: 8px;
    color: var(--intech-blue);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    margin-right: 0.35rem;
    min-width: 46px;
    padding: 0.5rem 0.75rem;
    width: auto;
}

body.intech-learner-shell .view-exam-details-btn:hover,
body.intech-learner-shell .view-exam-details-btn:focus {
    background: #dfefff;
    border-color: var(--intech-blue);
    color: var(--intech-blue-strong);
}

body.intech-learner-shell .btn-block + .btn-block {
    margin-top: 0.35rem;
}

body.intech-learner-shell label.payment_image {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    display: block;
    height: 40px;
    margin-bottom: 0;
    width: 60px;
}

.intech-learner-adverts .card {
    border-radius: 8px;
    min-height: 120px;
}

body.intech-learner-shell .modal-content.card {
    border-radius: 8px;
}

body.intech-learner-shell .modal-header {
    border-bottom: 1px solid var(--intech-border);
}

body.intech-learner-shell .modal-title {
    color: var(--intech-navy);
    font-weight: 850;
}

.show-result-card,
.exam-result-card {
    border-radius: 8px;
    box-shadow: var(--intech-shadow-md);
}

.show-result-card .card-header,
.exam-result-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--intech-border);
}

.show-result-card canvas {
    max-width: 100%;
}

.exam-result-totals .guide {
    background: #ffffff;
    border: 1px solid var(--intech-border);
    border-radius: 8px;
    box-shadow: var(--intech-shadow-sm);
    padding: 1rem;
}

@media (max-width: 991.98px) {
    body.intech-learner-shell .content {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .intech-learner-welcome {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    body.intech-learner-shell .content-header {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .intech-learner-welcome,
    .intech-learner-page-intro {
        border-radius: 8px;
        padding: 1.3rem;
    }

    .intech-learner-welcome h2,
    .intech-learner-page-intro h2 {
        font-size: 1.55rem;
    }

    .intech-learner-welcome-action {
        width: 100%;
    }

    body.intech-learner-shell .intech-assessment-list-card .card-body,
    body.intech-learner-shell .intech-result-list-card .card-body {
        padding: 0.8rem;
    }
}

/* Scoped auth and assessment layouts */
body.login-page.intech-assessment-page {
    align-items: stretch;
    background: #f4f7fb;
    min-height: 100vh;
    padding: 1rem;
}

body.login-page.intech-assessment-page .login-box {
    margin: 0 auto;
    max-width: 1400px;
    padding: 0;
    width: 100%;
}

body.login-page.intech-login-modern {
    align-items: center;
}

body.login-page.intech-login-modern .login-box {
    max-width: 460px;
    width: min(460px, calc(100vw - 32px));
}

body.login-page.intech-login-modern .intech-login-card {
    border-radius: 8px;
}

body.login-page.intech-login-modern .intech-login-form-panel {
    padding: 2rem;
}

body.login-page.intech-login-modern .intech-login-links {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

body.login-page.intech-login-modern .intech-login-home-link {
    color: var(--intech-muted);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.9rem;
}

.intech-register-page {
    align-items: center;
    background: linear-gradient(135deg, #eef5fb 0%, #f8fbff 52%, #ffffff 100%);
    min-height: 100vh;
    padding: 1.5rem 0;
}

body.login-page.intech-register-page > .login-box {
    margin: 0 auto;
    max-width: calc(100vw - 32px) !important;
    width: 1080px !important;
}

.intech-register-page .intech-register-card {
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(16, 42, 67, 0.14);
}

.intech-register-page .register-card-body {
    padding: 2rem;
}

.intech-register-page .intech-register-header {
    align-items: center;
    border-bottom: 1px solid var(--intech-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
}

.intech-register-page .intech-register-header h1 {
    color: var(--intech-navy);
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0;
}

.intech-register-page .intech-register-form {
    row-gap: 0.15rem;
}

.intech-register-page .intech-register-form .input-group,
.intech-register-page .intech-register-form .form-group {
    margin-bottom: 0.9rem !important;
}

.intech-register-page .intech-register-actions {
    align-items: center;
    border-top: 1px solid var(--intech-border);
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.intech-register-page .intech-register-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.intech-register-page .intech-register-actions .registerbtn {
    border-radius: 8px;
    font-weight: 850;
    min-width: 132px;
}

#start-exam-page > .container-fluid {
    max-width: 1400px;
}

@media (min-width: 1024px) {
    #start-exam-page > .container-fluid > .row {
        display: grid;
        gap: 1rem;
        grid-template-areas:
            "timer timer"
            "question sidebar";
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        margin-left: 0;
        margin-right: 0;
    }

    #start-exam-page > .container-fluid > .row > div {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    #start-exam-page > .container-fluid > .row > div:nth-child(1) {
        grid-area: question;
    }

    #start-exam-page > .container-fluid > .row > div:nth-child(2) {
        grid-area: sidebar;
    }

    #start-exam-page > .container-fluid > .row > div:nth-child(3) {
        grid-area: timer;
    }

    #start-exam-page .start-exam-main-section,
    #start-exam-page .start-exam-sidebar {
        height: 100%;
    }
}

#start-exam-page .question-answer-box {
    font-size: 1rem;
    line-height: 1.6;
}

#start-exam-page .exam-question-palette #question_palette_list {
    display: flex;
    flex-wrap: wrap;
    max-height: 260px;
    overflow-y: auto;
    padding-left: 0;
}

#start-exam-page .answer-btn-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.4;
}

#start-exam-page .answer-btn-section .btn {
    margin: 0;
    white-space: normal;
}

@media (max-width: 767.98px) {
    .intech-register-page {
        padding: 0.75rem 0;
    }

    .intech-register-page .register-card-body {
        padding: 1.25rem;
    }

    .intech-register-page .intech-register-header,
    .intech-register-page .intech-register-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.9rem;
    }

    .intech-register-page .intech-register-actions .registerbtn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .intech-register-page .intech-register-form > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    body.login-page.intech-login-modern .login-box,
    body.login-page.intech-register-page > .login-box {
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
    }

    body.login-page.intech-login-modern .intech-login-form-panel {
        padding: 1.25rem;
    }
}

/* Keep the auth card and shared footer as vertical flex items on auth pages only. */
body.login-page.intech-login-modern,
body.login-page.intech-register-page {
    flex-direction: column;
}

body.login-page.intech-login-modern {
    justify-content: center;
}

body.login-page.intech-register-page {
    justify-content: flex-start;
}

body.login-page.intech-login-modern > .login-box,
body.login-page.intech-register-page > .login-box,
body.login-page.intech-login-modern > .intech-centre-footer,
body.login-page.intech-register-page > .intech-centre-footer {
    flex: 0 0 auto;
}

body.login-page.intech-register-page .intech-login-card-brand {
    align-self: center;
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    padding: 0.55rem 0.75rem;
}

body.login-page.intech-register-page .intech-login-card-brand-logo {
    height: auto;
    max-height: 42px;
    max-width: 145px;
    object-fit: contain;
    width: auto;
}
