﻿:root {
    --bg: #eef3fb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #667085;
    --line: #e6edf7;
    --blue: #2563eb;
    --blue2: #1d4ed8;
    --navy: #0b1220;
    --green: #12945a;
    --amber: #b76a00;
    --red: #c02626;
    --purple: #7c3aed;
    --shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Arial, sans-serif;
    font-weight: 400;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 28%), linear-gradient(135deg, #f8fbff, #eaf0f8);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    display: flex;
}
.app-footer {
    min-height: 24px;
    padding: 0px 28px;
    display: flex;
    justify-content: end;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(15, 23, 42, .08);
    color: #556275;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

small, .muted {
    color: var(--muted);
}

.error, em {
    color: var(--red);
    font-style: normal;
    font-size: 13px;
}

.primary, .quiet {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 400;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.primary {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: #fff;
    box-shadow: 0 12px 25px rgba(37, 99, 235, .22);
}

.quiet {
    background: #f1f5f9;
    color: #182134;
}

.wide {
    width: 100%;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #182134;
    display: inline-grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
}

    .icon-btn:hover {
        border-color: var(--blue);
        color: var(--blue);
    }

input, select {
    border: 1px solid #d7dfec;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    min-width: 0;
}

    input:focus, select:focus {
        outline: 4px solid rgba(37, 99, 235, .14);
        border-color: var(--blue);
    }

.shell {
    min-height: calc(100vh - 34px);
    display: flex;
    width: 100%;
}

.rail {
    width: 84px;
    background: #09111f;
    color: #fff;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    height: 97vh;
}

.rail-logo {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-weight: 900;
}

.rail-btn {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #cbd5e1;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.rail-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rail-btn:hover, .rail-btn.on {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.workspace {
    width: 100%;
    min-height: 100%;
}

.hero-bar {
    width: 100%;
    min-height: 126px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(30, 64, 175, .88)), repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 70px);
    color: #fff;
    padding: 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.eyebrow {
    color: #bfdbfe;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-bar h1 {
    font-size: 30px;
    margin: 7px 0 5px;
    letter-spacing: 0;
}

.hero-bar p {
    margin: 0;
    color: #dbeafe;
}

.profile-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 12px 16px;
    border-radius: 22px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #fff;
    color: #1e3a8a;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.profile-card span {
    display: block;
    color: #dbeafe;
    font-size: 13px;
}

.profile-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    .profile-link:hover {
        background: rgba(255,255,255,.2);
    }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
}

.main-panel {
    min-width: 0;
}

.insights {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 26px;
    height: max-content;
}

.glass-card, .modern-card, .filter-card, .route-card, .kpi {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, .92);
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.glass-card {
    padding: 20px;
}

.side-title {
    font-weight: 900;
    margin-bottom: 14px;
}

.mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 14px 0;
}

    .mini-stat span, .security p {
        color: var(--muted);
    }

    .mini-stat b {
        font-size: 24px;
    }

.toast, .toast-inline {
    background: #0f172a;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}


.field-error {
    min-height: 1.1em;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}
.profile-edit input {
    width: 100%;
}

.profile-edit .field {
    margin: 0;
}

.profile-edit .quiet {
    margin-top: 31px;
}
[data-sensitive-content] {
    user-select: none;
    -webkit-user-select: none;
}

@media print {
    [data-sensitive-protection] {
        display: none !important;
    }
}

.modern-card {
    padding: 18px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

    .card-head h2 {
        margin: 0;
        font-size: 24px;
        letter-spacing: 0;
    }

    .card-head p {
        margin: 7px 0 0;
        color: var(--muted);
    }

.secure-chip {
    background: #ecfdf3;
    color: #087443;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.practice-list {
    display: grid;
    gap: 14px;
}

.practice-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.progress-track {
    height: 9px;
    background: #eef2f7;
    border-radius: 999px;
    margin-top: 9px;
    overflow: hidden;
}

    .progress-track div {
        height: 100%;
        background: linear-gradient(90deg, #22c55e, #2563eb);
        border-radius: 999px;
    }

.modern-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 16px;
}


.sensitive-input-wrap {
    position: relative;
    display: block;
}

    .sensitive-input-wrap input {
        width: 100%;
        padding-right: 48px;
    }

.reveal-sensitive {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

    .reveal-sensitive svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .reveal-sensitive:hover, .reveal-sensitive:focus {
        background: #eff6ff;
        color: var(--blue);
        outline: none;
    }

.wide-field {
    grid-column: span 2;
}

.card-expiry-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(145px, .75fr) minmax(145px, .7fr);
    gap: 16px;
    align-items: start;
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.filter-card {
    padding: 14px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
}

.searchline, .filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d7dfec;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

    .searchline input, .filter-select input, .filter-select select {
        border: 0;
        outline: 0;
        flex: 1;
        background: transparent;
        width: 100%;
    }

.payment-grid-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.route-card {
    padding: 20px;
}

.route-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.route-id {
    font-weight: 900;
    color: var(--blue);
    font-size: 13px;
}

.route-top h3 {
    margin: 5px 0;
    font-size: 22px;
    letter-spacing: 0;
}

.route-top p {
    margin: 0;
    color: var(--muted);
}

.status {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 12px;
    height: max-content;
}

    .status.pending {
        background: #fff7ed;
        color: var(--amber);
    }

    .status.done {
        background: #ecfdf3;
        color: var(--green);
    }
    .status.inactive {
         background: #fef2f2;
        color: #dc2626;
    }
.route-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.info-tile {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    min-width: 0;
}

    .info-tile span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .info-tile b {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

.route-actions, .export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.manager-change {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    display: grid;
    place-items: center;
    z-index: 30;
}

.custom-modal {
    background: #fff;
    border-radius: 8px;
    padding: 26px;
    width: min(540px, 92vw);
    max-height: 92vh;
    overflow: auto;
    box-shadow: var(--shadow);
}

    .custom-modal input,
    .custom-modal select {
        width: 100%;
        max-width: 100%;
    }
.sensitive {
    background: #fffbeb;
    border: 1px dashed #d97706;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.audit-list {
    display: grid;
    gap: 0;
}

.audit-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.audit-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    margin-top: 5px;
    box-shadow: 0 0 0 5px rgba(37,99,235,.14);
}

.audit-item p {
    margin: 4px 0;
    color: #344054;
}

.audit-item span {
    color: var(--muted);
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--muted);
    font-weight: 800;
}

    .pagination .quiet {
        text-decoration: none;
    }

.admin-modern {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 18px;
}

.inline-add, .user-add {
    display: grid;
    gap: 10px;
}

.inline-add {
    grid-template-columns: 1fr auto;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
}

.user-add {
    grid-template-columns: repeat(2, 1fr);
}

    .user-add button {
        grid-column: 1 / -1;
    }

.user-table {
    display: grid;
    margin-top: 18px;
}

.user-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    gap: 10px;
}

    .user-row em {
        color: var(--green);
        font-weight: 800;
    }

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

    .admin-tabs a {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 11px 14px;
        font-weight: 900;
        color: #344054;
        box-shadow: 0 10px 26px rgba(15,23,42,.06);
    }

        .admin-tabs a.on {
            background: #0f172a;
            border-color: #0f172a;
            color: #fff;
        }

.admin-page-grid {
    display: grid;
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: 18px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

    .check-grid label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 800;
    }

.admin-table {
    display: grid;
    gap: 8px;
}

.admin-table-head,
.admin-table-row {
    display: grid;
    gap: 12px;
    align-items: center;
}

.admin-table-head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

    .admin-table-row small {
        display: block;
        margin-top: 3px;
    }

.cols-roles {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 120px 100px;
    align-items: center;
    gap: 30px;
}

.cols-modules {
    grid-template-columns: minmax(220px, 1.2fr) minmax(120px, .7fr) 80px 100px auto;
}

.cols-practices {
    grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) 100px auto;
}

.cols-config {
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 1fr) minmax(120px, .7fr) 80px auto;
}

/*.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

    .admin-actions form {
        margin: 0;
    }*/

.data-title {
    display: block;
    color: var(--text);
}

.multi-select {
    min-height: 132px;
    padding: 8px;
}

    .multi-select option {
        padding: 8px 10px;
    }

.check-select {
    position: relative;
}

    .check-select summary {
        list-style: none;
        border: 1px solid #d7dfec;
        border-radius: 14px;
        padding: 13px 14px;
        background: #fff;
        cursor: pointer;
    }

        .check-select summary::-webkit-details-marker {
            display: none;
        }

        .check-select summary::after {
            content: "v";
            float: right;
            color: var(--muted);
        }

    .check-select[open] summary {
        outline: 4px solid rgba(37, 99, 235, .14);
        border-color: var(--blue);
    }

.check-select-menu {
    position: absolute;
    z-index: 45;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
}

    .check-select-menu label {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 8px;
        border-radius: 8px;
    }

        .check-select-menu label:hover {
            background: #f8fafc;
        }

    .check-select-menu input {
        width: 18px;
        height: 18px;
        padding: 0;
    }

.stack-list {
    display: grid;
    gap: 10px;
}

.inline-edit {
    display: grid;
    grid-template-columns: 1fr 1.6fr 130px auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.module-edit {
    grid-template-columns: 1fr 1fr 1.5fr 100px 120px auto;
}

.config-edit {
    grid-template-columns: 1.2fr 1fr .8fr .7fr 1.4fr auto;
}

.permission-stack {
    display: grid;
    gap: 16px;
}

.permission-toolbar {
    max-width: 360px;
    margin-bottom: 16px;
}

.permission-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfdff;
}

    .permission-card h3 {
        margin: 0 0 12px;
        letter-spacing: 0;
    }

.permission-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.4fr) repeat(7, minmax(72px, .5fr));
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

    .permission-grid.header {
        border-top: 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .permission-grid small {
        display: block;
    }

.perm-check {
    display: grid;
    place-items: center;
}

    .perm-check input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

.admin-modal-target {
    display: none;
}

    .admin-modal-target:target {
        display: grid;
    }

    .admin-modal-target.show {
        display: grid;
    }

.admin-modal {
    width: min(900px, 94vw);
}

.single-form {
    grid-template-columns: 1fr;
}

.login-modern {
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 0%, rgba(96,165,250,.28), transparent 34%), linear-gradient(135deg, #07111f, #14213a);
    padding: 24px;
}

.login-shell {
    width: min(1180px, 94vw);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
}

.login-copy, .login-box {
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 28px 90px rgba(0,0,0,.35);
    border-radius: 8px;
}

.login-copy {
    color: #fff;
    padding: 46px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
}

.brand-header {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 900;
    color: #bfdbfe;
}

.brand-header .icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
}

.login-copy h1 {
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: 0;
}

.login-copy p {
    color: #dbeafe;
    font-size: 17px;
}

.login-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

    .login-features span, .prototype-warning {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,.12);
        padding: 10px 13px;
        border-radius: 999px;
    }

.prototype-warning {
    border-radius: 8px;
}

.login-box {
    background: #fff;
    padding: 20px;
    display: grid;
    gap: 16px;
    align-content: center;
    width: 100%;
}

.mfa-box {
    width: min(460px, 94vw);
}

.login-box h2 {
    font-size: 30px;
    margin: 0;
    letter-spacing: 0;
}

.login-box label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.login-link {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
    width: max-content;
}

.password-page {
    width: min(780px, 94vw);
}

    .password-page > div p, .login-box > p {
        color: var(--muted);
        margin: 8px 0 0;
    }

.password-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

    .password-rules li {
        color: #667085;
        font-size: 14px;
    }

        .password-rules li::before {
            content: "○";
            margin-right: 8px;
            color: #98a2b3;
        }

        .password-rules li.passed {
            color: #087443;
        }

            .password-rules li.passed::before {
                content: "✓";
                color: #16a34a;
                font-weight: 900;
            }

.profile-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 16px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .profile-details span {
        color: var(--muted);
        font-weight: 800;
    }


.profile-workspace {
    display: flex;
    min-height: 0;
    flex-direction: column;
    width: 100%;
}
.profile-page {
    width: 680px;
    max-width: 100%;
    display: grid;
    gap: 20px;
}

.profile-edit {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.totp-panel {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: grid;
    gap: 12px;
}

    .totp-panel h2 {
        margin: 0;
        font-size: 20px;
    }

    .totp-panel p {
        margin: 0;
        color: var(--muted);
    }

    .totp-panel form {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .totp-panel input {
        flex: 1;
        min-width: 180px;
    }

.totp-secret, .totp-uri {
    display: block;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.text-center {
    text-align: center;
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .insights {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-grid-list {
        grid-template-columns: 1fr;
    }
}
.success-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #e8f5e9;
    color: #145C18;
    font-size: 14px;
}
@media (max-width: 900px) {
    .shell {
        display: block;
    }

    .rail {
        height: auto;
        width: auto;
        position: relative;
        flex-direction: row;
        overflow-x: auto;
    }

    .logout {
        margin-left: auto;
        margin-top: 0;
    }

    .workspace {
        padding: 16px;
    }

    .hero-bar, .login-shell {
        grid-template-columns: 1fr;
        display: grid;
    }

    .content-grid, .kpi-row, .modern-form, .filter-card, .admin-modern, .payment-grid-list, .login-shell {
        grid-template-columns: 1fr;
    }

    .wide-field {
        grid-column: auto;
    }

    .card-expiry-row {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .practice-row {
        grid-template-columns: 1fr;
    }

    .route-metrics {
        grid-template-columns: 1fr;
    }

    .insights {
        grid-template-columns: 1fr;
    }

    .insights {
        position: static;
    }

    .hero-bar {
        gap: 20px;
        width: 100%;
    }

    .login-copy h1 {
        font-size: 34px;
    }

    .admin-page-grid,
    .admin-form,
    .inline-edit,
    .module-edit,
    .config-edit,
    .cols-users,
    .cols-roles,
    .cols-modules,
    .cols-practices,
    .cols-config,
    .permission-grid,
    .student-toolbar {
        grid-template-columns: 1fr;
    }

        .permission-grid.header {
            display: none;
        }

    #studentTabs > .k-tabstrip-items-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        #studentTabs > .k-tabstrip-items-wrapper::-webkit-scrollbar {
            display: none;
        }

    #studentTabs .k-tabstrip-items {
        display: inline-flex !important;
        width: max-content !important;
        flex-wrap: nowrap !important;
    }

    .student-add-btn,
    .save-btn {
        height: auto !important;
        min-height: 42px;
        white-space: normal;
        text-align: center;
        padding: 10px 14px;
    }
}


body,
button,
input,
select,
textarea,
label,
b,
strong,
.primary,
.quiet,
.rail-logo,
.rail-btn,
.eyebrow,
.avatar,
.side-title,
.kpi span,
.kpi b,
.mini-stat b,
.secure-chip,
.field,
.field small,
.route-id,
.status,
.info-tile span,
.info-tile b,
.user-row em,
.admin-tabs a,
.admin-table-head,
.permission-grid.header,
.brand-header,
.login-box label,
.data-title {
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-bar h1,
.card-head h2,
.login-copy h1,
.login-box h2,
.permission-card h3 {
    font-weight: 700;
}

.intake-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: inherit;
}

.intake-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.intake-loading-overlay[hidden] {
    display: none;
}

.btn-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: #333;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

[data-sensitive-countdown] {
    display: inline-block;
    min-width: 1.5ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.countdown-warning {
    color: #d92d20;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.app-layout {
    display: flex;
    min-height: 100vh;
}


.main-content {
    margin-left: 285px;
    flex: 1;
    padding: 28px;
    height: 100vh;
    overflow-y: auto;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.login-link {
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 8px;
}

.primary.wide {
    margin-top: 8px;
}

.sidebar {
    width: 285px;
    background: #10233f;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


.sidebar-logo {
    padding: 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .sidebar-logo img {
        width: 170px;
        display: block;
        margin: 0 auto 18px;
    }

    .sidebar-logo h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #fff;
    }

    .sidebar-logo p {
        margin: 6px 0 0;
        color: #b9c7dc;
        font-size: 15px;
    }

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 6px;
    flex: 1;
}

    .sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 13px 14px;
        border-radius: 12px;
        color: #dce6f4;
        text-decoration: none;
        font-size: 15px;
    }

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

        .sidebar-menu a:hover,
        .sidebar-menu a.active {
            background: #24466f;
            color: #fff;
        }

.sidebar-bottom {
    padding: 20px 15px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #dce6f4;
    text-decoration: none;
    transition: .2s;
}

    .profile:hover,
    .profile.active {
        background: #24466f;
        color: #fff;
    }

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #dce6f4;
    text-decoration: none;
    transition: .2s;
}
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}
.primary,
.primary:hover,
.primary:focus,
.primary:active,
.primary:visited {
    text-decoration: none !important;
    color: #fff !important;
}
    
.quiet {
    color: #182134 !important;
}
    .logout:hover,
    .logout.active {
        background: #24466f;
        color: #fff;
    }
    .profile,
    .profile *,
    .logout,
    .logout * {
        text-decoration: none !important;
    }

        .profile span,
        .logout span {
            color: #fff;
        }


.version {
    font-size: 14px;
    color: white;
}


/* User Management */

.admin-table-row {
    min-height: 68px;
    padding: 14px 16px;
}

.admin-table-head {
    padding: 0 16px 10px;
}

@media (min-width: 901px) {
    .cols-users {
        grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 1fr) minmax(130px, .8fr) 120px 360px;
    }
}
.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Center STATUS header and values */

.admin-table-head.cols-users span:nth-child(4) {
    text-align: center;
}

.admin-table-row.cols-users > div:nth-child(4) {
    text-align: center;
}

.status {
    min-width: 70px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbe4ef;
    transition: .2s;
    box-shadow: none;
}

    .icon-btn:hover {
        background: #eff6ff;
        border-color: #2563eb;
    }

.action-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #344054;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover .action-icon {
    stroke: #2563eb;
}

.admin-table-row small {
    font-size: 12px;
    color: #667085;
}

.primary {
    padding: 10px 18px;
}

.card-head {
    margin-bottom: 14px;
}

/*ip block, account lock*/
.ud-header {
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 3px;
    margin-bottom: 6px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: none;
}

.ud-badge-locked {
    background: #ffe0e0;
    color: #c0392b;
    border: 1px solid #e74c3c;
    border-radius: 20px;
    font-weight: 600;
    padding: 3px 12px;
    font-size: 12px;
    border-radius: 20px;
}

.ud-section {
    margin-bottom: 14px;
}

.ud-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a3a5c;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}
    .ud-section-title::before {
        content: "⚠ ";
        color: #f59e0b;
        font-size:14px;
    }
.ud-lock-info {
    display: flex;
    align-items: center;
    gap: 30px; /* was 24px */
    background: #fff8f8;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 14px 20px; /* was 12px 18px */
    flex-wrap: wrap;
    margin-bottom: 14px;
}

    .ud-lock-info span {
        font-size: 14px;
        color: #444;
    }
#ud-username {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #222;
}
#ud-failed-attempts,
#ud-lockout-time,
.ud-lock-info strong {
    font-weight: 700 !important;
    color: #222;
}
#ud-unlock-btn, .ud-btn-success {
    background: #27ae60 !important;
    color: white !important;
    padding: 8px 18px; /* was 6px 16px */
    border-radius: 5px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Tabs — unchanged from your existing code, kept for completeness */
#userDetailsTabs .k-tabstrip-items .k-item .k-link {
    color: #444 !important;
    font-size: 15px !important;
    font-weight: 600;    
}
#userDetailsTabs {
    margin-top: 12px;
}
#userDetailsTabs .k-tabstrip-items {
    border-bottom: none;
}

    #userDetailsTabs .k-tabstrip-items .k-item.k-state-active .k-link {
        color: #1a3a5c !important;
        font-weight: 600;
    }

#userDetailsTabs .k-item:focus, #userDetailsTabs .k-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

#userDetailsTabs .k-tabstrip-items .k-item:hover:not(.k-state-active) {
    background: #f0f4f8 !important;
}

#userDetailsTabs > .k-content {
    padding: 0 !important;
}

/* Inner grid headers — ONLY color changed to match the screenshot exactly */
#ipBlockGrid .k-grid-header, #auditGrid .k-grid-header {
    background: #183153 !important; /* was #1a3a5c */
    border-bottom: none !important;
}

    #ipBlockGrid .k-grid-header th, #auditGrid .k-grid-header th {
        color: #ffffff !important;
        font-weight: 600 !important;
        border-color: #2c4f72 !important;
        background: #183153 !important; /* was #1a3a5c */
    }

        #ipBlockGrid .k-grid-header th .k-icon, #auditGrid .k-grid-header th .k-icon,
        #ipBlockGrid .k-grid-header .k-i-filter, #auditGrid .k-grid-header .k-i-filter {
            color: #ffffff !important;
        }

#userDetailsModal .k-pager-wrap {
    font-size: 15px !important;
    min-height: 48px;
}

#userDetailsModal .k-grid .k-link,
#userDetailsModal .k-grid .k-icon,
#userDetailsModal .k-pager-wrap,
#userDetailsModal .k-pager-info,
#userDetailsModal .k-pager-sizes {
    font-size: 14px !important;
}
    #userDetailsModal .k-grid,
    #userDetailsModal .k-grid th,
    #userDetailsModal .k-grid td {
        font-size: 12px !important;
    }

#ipBlockGrid .k-grid-content td,
#auditGrid .k-grid-content td {
    font-size: 14px !important;
    color: #222;
}
#ipBlockGrid .k-grid td,
#auditGrid .k-grid td {
    padding: 14px 12px !important;
}

#ipBlockGrid .k-grid th,
#auditGrid .k-grid th {
    padding: 12px !important;
}
.btn-unblock, .ud-btn-warning {
    background: #e67e22 !important;
    color: white !important;
    border: none;
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-unblock:hover, .ud-btn-warning:hover {
        background: #d35400 !important;
    }

/* Left pager arrows */
#userDetailsModal .k-pager-nav,
#userDetailsModal .k-pager-refresh {
    transform: scale(1.15) !important;
    margin: 0 2px !important;
}


/* Header filter icon*/
.k-grid-header .k-svg-i-filter,
.k-grid-header .k-svg-i-filter svg,
.k-grid-header-menu .k-svg-icon {
    width: 14px !important;
    height: 14px !important;
}
.k-grid-header-menu:hover,
.k-grid-header-menu:focus,
.k-grid-header-menu.k-hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
/* Contains dropdown arrow */
.k-filter-menu .k-svg-i-caret-alt-down,
.k-filter-menu .k-svg-i-caret-alt-down svg,
.k-filter-menu .k-input-button .k-svg-icon {
    width: 18px !important;
    height: 18px !important;
}

/* Filter button icon */
.k-filter-menu .k-button .k-svg-icon,
.k-filter-menu .k-button svg {
    width: 16px !important;
    height: 16px !important;
}
.k-filter-menu .k-button {
    font-size: 14px !important;
    min-height: 32px !important;
}
/* Filter popup content */
.k-filter-menu,
.k-filter-menu * {
    font-size: 14px !important;
}
.k-window-actions .k-button,
.k-window-actions .k-window-action {
    transform: scale(1.4);
}

.k-window-actions .k-svg-icon,
.k-window-actions .k-icon {
    width: 18px !important;
    height: 18px !important;
}
.k-window-title {
    font-size: 20px !important;
    font-weight: 700 !important;
}
.k-window-titlebar-action {
    width: 28px !important;
    height: 28px !important;
}

    .k-window-titlebar-action .k-svg-icon,
    .k-window-titlebar-action svg {
        width: 22px !important;
        height: 22px !important;
    }
.k-pager-nav .k-svg-icon,
.k-pager-nav svg,
.k-pager-refresh .k-svg-icon,
.k-pager-refresh svg {
     width: 16px !important;
     height: 16px !important;
}
.k-pager-numbers .k-link,
.k-pager-info,
.k-pager-sizes,
.k-pager-sizes .k-input-inner {
    font-size: 14px !important;
}
.k-pager-numbers .k-selected,
.k-pager-numbers .k-state-selected {
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 14px !important;
}
.k-pager-sizes select,
.k-pager-sizes .k-picker {
    height: 30px !important;
    font-size: 14px !important;
}

    .k-pager-sizes .k-input-button .k-svg-icon,
    .k-pager-sizes .k-input-button svg {
        width: 18px !important;
        height: 20px !important;
    }
.k-list-item,
.k-list-item-text {
    font-size: 15px !important;
}

/*==========================
 student info
==========================*/

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.student-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-header-right {
    display: flex;
    align-items: center;
    margin-top: 12px;
    margin-right: 16px;
}

.student-header-left h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #10233f;
}

.student-header-left p {
    margin-top: 8px;
    color: #667085;
    font-size: 16px;
}
.student-header {
    width: 100%;
    display: flex;
    margin-bottom: 10px;
}

.student-header-left {
    width: 100%;
}

.student-title-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .student-title-row h2 {
        margin: 0;
        font-size: 30px;
        font-weight: 700;
        color: #10233f;
    }

.student-title-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.student-import-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 16px;
    margin: 0;
    background: #1d6f42;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

    .student-import-btn:hover {
        background: #15552f;
        color: #fff;
    }

    .student-import-btn i {
        font-size: 15px;
    }

.student-tab-actions .icon-btn,
.student-record-actions .icon-btn {
    width: auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.student-tabs-toolbar {
    position: relative;
}

.tab-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.student-tab-actions {
    position: static;
    display: flex;
    gap: 10px;
}

.student-record-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .student-record-title h3 {
        margin: 0;
    }
.student-record-actions .delete-btn {
    background: #dc2626 !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 500;
}

    .student-record-actions .delete-btn:hover {
        background: #ef4444 !important;
    }

.student-record-actions .edit-btn {
    background: #2563eb !important;
    color: #fff !important;
    border: 0 !important;
    font-weight:500;
}

    .student-record-actions .edit-btn:hover {
        background: #1d4ed8 !important;
    }

/* =========================================
   Student Excel Import Popup
========================================= */

#importStudentPopup {
    padding: 0 !important;
}

    #importStudentPopup .import-popup {
        width: 100%;
        min-height: 100%;
        padding: 12px 20px;
        box-sizing: border-box;
    }

    #importStudentPopup .import-file-section {
        width: 100%;
        margin-top: 18px;
    }

        #importStudentPopup .import-file-section label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #344054;
        }

    /* Choose File + Import button */
    #importStudentPopup .import-file-row {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    #importStudentPopup #excelFile {
        flex: 1;
        width: auto;
        height: 40px;
        padding: 8px 12px;
        border: 1px solid #d7dfec;
        border-radius: 10px;
        background: #fff;
        font-size: 14px;
    }

    #importStudentPopup #btnStartImport {
        flex: 0 0 120px;
        width: 120px;
        height: 40px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 14px;
        font-weight: 600;
    }

    /* Download template */
    #importStudentPopup .import-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        height: 40px;
        padding: 0 14px;
        border: 1px solid #d7dfec;
        border-radius: 8px;
        background: #fff;
        color: #344054;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

        #importStudentPopup .import-link:hover {
            background: #f8fafc;
            border-color: #94a3b8;
        }

    /* Status message */
    #importStudentPopup .import-status-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 14px;
        margin-top: 10px;
        margin-bottom: 18px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
    }

        #importStudentPopup .import-status-bar.success {
            background: #ecfdf3;
            border: 1px solid #bbf7d0;
            color: #166534;
        }

        #importStudentPopup .import-status-bar.warning {
            background: #fffbeb;
            border: 1px solid #fde68a;
            color: #92400e;
        }

        #importStudentPopup .import-status-bar.error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #b91c1c;
        }

        #importStudentPopup .import-status-bar i {
            font-size: 18px;
        }

    /* Import result */
    #importStudentPopup #importResult {
        width: 100%;
        margin-top: 12px;
    }

        #importStudentPopup #importResult hr {
            border: 0;
            border-top: 1px solid #e5e7eb;
            margin: 12px 0;
        }

        #importStudentPopup #importResult h4 {
            margin: 0 0 10px;
            font-size: 16px;
            color: #10233f;
            font-weight: 700;
        }
    #importStudentPopup .import-result-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 10px;
    }

        #importStudentPopup .import-result-header h4 {
            margin: 0 !important;
        }

        #importStudentPopup .import-result-header #importStatusReportLink {
            margin: 0 !important;
        }

        #importStudentPopup .import-result-header .import-link {
            margin: 0 !important;
        }
    #importStudentPopup .import-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 15px;
        font-size: 14px;
    }

    #importStudentPopup .import-summary-counts {
        display: flex;
        align-items: center;
        gap: 25px;
    }

   
    /* Result table */
    #importStudentPopup .import-table-wrapper {
        width: 100%;
        max-height: 300px;
        overflow: auto;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }

    #importStudentPopup .import-result-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

        #importStudentPopup .import-result-table th {
            background: #183153;
            color: #fff;
            padding: 10px 12px;
            text-align: left;
            font-weight: 600;
            position: sticky;
            top: 0;
        }

        #importStudentPopup .import-result-table td {
            padding: 10px 12px;
            border-top: 1px solid #e5e7eb;
            color: #344054;
        }

        #importStudentPopup .import-result-table th:nth-child(1) {
            width: 8%;
        }

        #importStudentPopup .import-result-table th:nth-child(2) {
            width: 22%;
        }

        #importStudentPopup .import-result-table th:nth-child(3) {
            width: 15%;
        }

        #importStudentPopup .import-result-table th:nth-child(4) {
            width: 55%;
        }

        #importStudentPopup .import-result-table td:nth-child(4) {
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
        }
#btnCancelStudent {
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    color: #344054 !important;
    font-weight: 600;
    font-size: 15px;
}

    #btnCancelStudent:hover {
        background: #f8fafc !important;
        border-color: #94a3b8 !important;
        color: #1f2937 !important;
    }

    #btnCancelStudent i {
        color: #344054 !important;
        font-size: 18px;
    }
/* =========================================================
   DOB – force EXACT match with Aadhaar field
========================================================= */

.widget-pii {
    position: relative;
    display: block;
    width: 100%;
}

    /* Masked display – copy EVERY visual property from Aadhaar input */
    .widget-pii .pii-masked-display {
        display: block;
        width: 100%;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 42px 0 14px !important; /* left padding + space for eye */
        border: 1px solid #cbd5e1 !important;
        border-radius: 14px !important;
        background: #edf2f7 !important; /* same blocked gray */
        color: #1f2937 !important;
        font-size: 15px !important;
        line-height: 40px !important;
        box-sizing: border-box !important;
        cursor: default !important;
    }

    /* Real DatePicker container */
    .widget-pii .pii-actual-widget {
        width: 100%;
    }

        .widget-pii .pii-actual-widget .k-datepicker,
        .widget-pii .pii-actual-widget .k-picker {
            width: 100% !important;
        }

    /* Eye icon – EXACT same position & style as Aadhaar’s .reveal-sensitive */
    .widget-pii .pii-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 7px !important;
        display: grid !important;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        place-items: center !important;
        transform: translateY(-50%) !important;
        border: 0 !important;
        border-radius: 7px !important;
        background: transparent !important;
        color: #13294b !important;
        cursor: pointer !important;
        z-index: 10 !important;
        font-size: 14px !important;
    }

        .widget-pii .pii-toggle:hover,
        .widget-pii .pii-toggle:focus {
            background: #eff6ff !important;
            color: #2563eb !important;
            outline: none !important;
        }
/* =========================================
   DOB - Kendo DatePicker + Eye
========================================= */
#dobWidget {
    position: relative !important;
    width: 100% !important;
}

    #dobWidget .k-datepicker {
        width: 100% !important;
    }

    #dobWidget .k-input-inner {
        padding-right: 92px !important;
    }

    #dobWidget .pii-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 38px !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 7px !important;
        background: transparent !important;
        color: #13294b !important;
        cursor: pointer !important;
        z-index: 30 !important;
    }

        #dobWidget .pii-toggle:hover,
        #dobWidget .pii-toggle:focus {
            background: #eff6ff !important;
            color: #2563eb !important;
            outline: none !important;
        }

    #dobWidget .pii-mask-overlay {
        position: absolute !important;
        left: 1px !important;
        top: 1px !important;
        right: 80px !important;
        bottom: 1px !important;
        display: none;
        align-items: center;
        padding-left: 13px !important;
        background: #edf2f7 !important;
        color: #1f2937 !important;
        font-size: 15px !important;
        border-radius: 13px 0 0 13px !important;
        pointer-events: none !important;
        z-index: 4 !important;
    }
.view-only #dobWidget .pii-mask-overlay {
    background: #edf2f7 !important;
}

#studentRegistrationPanel:not(.view-only) #dobWidget .pii-mask-overlay {
    background: #fff !important;
}
    #dobWidget.dob-masked .pii-mask-overlay {
        display: flex !important;
    }

/* Calendar button stays VISIBLE in View mode, just greyed/inert */
.view-only #dobWidget .k-input-button,
.view-only #txtAdmissionDate + .k-input-button {
    opacity: 1 !important;
    color: #667085 !important;
}
#selectedStudentName {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #222;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}
#selectedStudentName {
    display: inline-block;
    margin-left: 12px;
    padding: 6px 12px;
    background: #ffffff;
    color: black;
    border: 1px solid #0d0e0e;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}
    #selectedStudentName:empty {
        display: none;
    }
/*==========================
 Button
==========================*/

.save-btn,
.student-add-btn {
    background: #183153 !important;
    border-color: #183153 !important;
    color: #fff !important;
    border-radius: 12px;
    height: 42px;
    font-size: 14px;
    font-weight: 600;
}
    .save-btn{
        font-size:16px;
    }
    .save-btn:hover,
    .student-add-btn:hover {
        background: #183153 !important;
        border-color: #183153 !important;
        color: #fff !important;
    }
    .save-btn i,
    .student-add-btn i {
        margin-right: 6px;
        font-size: 18px;
    }
#btnEditEnrollment,
.student-header-right .edit-btn {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

    #btnEditEnrollment i,
    .student-header-right .edit-btn i {
        color: #fff !important;
        font-size: 20px;
    }
/*==========================
 Card
==========================*/

.toolbar-card {
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}


    /*==========================
 Label
==========================*/

    .toolbar-card label {
        display: block;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 8px;
    }


/*==========================
 Dropdown
==========================*/

#ddlStudent {
    display: none;
}
.k-combobox .k-clear-value {
    display: grid;
    place-items: center;
    width: 30px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #98a2b3;
    padding: 0;

}

    .k-combobox .k-clear-value:hover {
        color: #c02626;
    }
.k-clear-value .k-svg-icon,
.k-clear-value svg {
    width: 18px !important;
    height: 18px !important;
}

.k-clear-value {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px !important;
}
.k-combobox .k-input-inner {
    padding-right: 6px !important;
}

.k-combobox {
    width: 100% !important;
}
.toolbar-card .k-combobox {
    width: 100% !important;
}

.toolbar-card .k-input.k-combobox {
    width: 100% !important;
}

.toolbar-card .k-picker {
    width: 100% !important;
}
.student-toolbar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: end;
}

.student-select {
    width: 100%;
}

.student-button {
    display: flex;
}

    .student-button .student-add-btn {
        width: 100%;
    }
.k-input {
    height: 40px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid #d7dfec !important;
    background: #fff !important;
}
.k-combobox,
.k-dropdownlist,
.k-picker {
    border: 1px solid #d7dfec !important;
    background: #fff !important;
}
.k-input-inner {
    font-size: 15px !important;
    font-weight: 500;
    padding-left: 14px !important;
}

.k-combobox .k-input-button {
    width: 48px !important;
    margin-left: 0 !important;
}

    .k-combobox .k-input-button svg,
    .k-combobox .k-input-button .k-svg-icon {
        width: 18px !important;
        height: 18px !important;
    }

.k-picker {
    border-color: #d7dfec !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

    .k-picker:hover {
        border-color: #d7dfec !important;
    }

    .k-combobox:focus,
    .k-combobox.k-focus,
    .k-dropdownlist.k-focus,
    .k-picker.k-focus {
        border-color: #d7dfec !important;
        box-shadow: none !important;
    }
.k-no-data,
.k-nodata,
.k-list-nodata {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
}
/*==========================
 date picker
==========================*/
.k-datepicker {
    width: 100% !important;
}

    .k-datepicker .k-input-inner {
        height: 40px !important;
        font-size: 14px !important;
        line-height: 46px !important;
        padding-left: 14px !important;
    }
    .k-datepicker .k-input-button {
        width: 40px !important;
        min-width: 40px !important;
        border: none !important;
        background: transparent !important;
    }

    .k-datepicker .k-svg-icon,
    .k-datepicker svg {
        width: 18px !important;
        height: 18px !important;
    }
.k-calendar-md,
.k-calendar {
    --kendo-calendar-view-width: 320px !important;
}

.k-calendar-view {
    inline-size: 320px !important;
    min-width: 320px !important;
}

.k-calendar-monthview {
    width: 100% !important;
}

.k-calendar-table {
    width: 100% !important;
    table-layout: fixed !important;
}
    .k-calendar td,
    .k-calendar th {
        font-size: 15px !important;
    }

    .k-calendar .k-button {
        font-size: 15px !important;
    }

.k-calendar-header .k-button {
    font-size: 16px !important;
    font-weight: 600 !important;
}


/* arrow svg */
.k-calendar .k-svg-i-caret-alt-left svg,
.k-calendar .k-svg-i-caret-alt-right svg,
.k-calendar .k-svg-i-caret-alt-left,
.k-calendar .k-svg-i-caret-alt-right {
    width: 20px !important;
    height: 20px !important;
}
/*==========================
 Student Card
==========================*/
.student-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.student-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #13294b;
}

    .student-card i {
        margin-right: 10px;
        color: #13294b;
    }

    .student-card p {
        margin-top: 22px;
        font-size: 17px;
        color: #667085;
    }

/*==========================
 Student Tabs
==========================*/

#studentTabs {
    margin-top: 10px;
}

    #studentTabs .k-content,
    #studentTabs .k-tabstrip-content {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius:18px;
    }


    #studentTabs .k-tabstrip-items {
        display: inline-flex;
        gap: 10px;
        /*padding: 8px;
        background: #eef3fb;*/
        border-radius: 18px;
        border: none;
        width: auto !important;
        flex: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
   
    #studentTabs > .k-tabstrip-items-wrapper {
        display: inline-block !important;
        width: auto !important;
        background: #eef3fb !important;
        border-radius: 18px !important;
        padding: 8px !important;
    }

    #studentTabs .k-item {
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    #studentTabs .k-link {
        padding: 12px 18px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #111827 !important;
    }

    #studentTabs .k-item.k-active,
    #studentTabs .k-item.k-state-active {
        background: #fff !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

        #studentTabs .k-item.k-active .k-link,
        #studentTabs .k-item.k-state-active .k-link {
            color: #10233f !important;
        }

/*==========================
Student Card Header
==========================*/
.student-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.student-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

    .student-record-actions .icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
/*==========================
Edit / Delete Actions
==========================*/

.student-header-right {
    gap: 10px;
}

#btnEditRecord {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    gap:8px;
}

    #btnEditRecord:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        color: #fff;
    }

#btnDeleteRecord {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
}

    #btnDeleteRecord:hover {
        background: #b91c1c;
        border-color: #b91c1c;
        color: #fff;
    }

    #btnEditRecord i,
    #btnDeleteRecord i {
        color: #fff;
        font-size: 18px;
    }
.modern-form .field label {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.modern-form input,
.modern-form select {
    font-size: 15px !important;
    color: #111827 !important;
}

    .modern-form select::-ms-expand {
        display: block;
    }
.modern-form select {
    padding-right: 42px !important;
    background-size: 18px !important;
    background-position: right 14px center !important;
}
.reveal-sensitive i {
    font-size: 14px !important;
    margin: 0 !important;
}

.mother-tongue-wrap {
    position: relative;
}

    .mother-tongue-wrap.showing-other .k-dropdownlist,
    .mother-tongue-wrap.showing-other select {
        visibility: hidden;
    }

.mother-tongue-overlay-input {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 5;
    padding-right: 38px;
    display: none;
}

.mother-tongue-wrap.showing-other .mother-tongue-overlay-input {
    display: block;
}

.mother-tongue-back {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 6;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: none;
}

.mother-tongue-wrap.showing-other .mother-tongue-back {
    display: block;
}

.mother-tongue-back:hover {
    color: var(--blue);
}
.field {
    display: flex;
    flex-direction: column;
}
    .field small {
        font-weight: 500;
    }
    .field label {
        margin-bottom: 8px;
        font-weight: 600;
    }

.mother-tongue-wrap {
    position: relative;
    width: 100%;
}

#ddlMotherTongue {
    width: 100%;
}

#txtOtherLanguage {
    width: 100%;
    height: 48px;
    border: 1px solid #d8dee9;
    border-radius: 12px;
    padding: 0 14px;
}

.showing-other .k-dropdownlist {
    display: none;
}

.showing-other #txtOtherLanguage {
    display: block;
}
/* Student Registration - Reduce gap for dropdown labels */

#studentRegistrationPanel .field label {
    margin-bottom: 4px !important;
    display: block;
}

#studentRegistrationPanel .field {
    gap: 4px !important;
}
.field .k-picker,
.field .k-dropdownlist,
.field .k-datepicker {
    width: 100%;
    height: 40px !important;
}
.field input:not([type=checkbox]) {
    height: 40px;
    width: 100%;
}

.same-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 15px;
    cursor: pointer;
}

    .same-address input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
    }

/* Dropdown button size */
.k-picker .k-input-button {
    width: 42px !important;
    min-width: 42px !important;
}

    /* Dropdown arrow icon */
    .k-picker .k-input-button .k-svg-icon,
    .k-picker .k-input-button svg,
    .k-picker .k-input-button .k-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /*mother tongue*/
.mother-wrapper {
    position: relative;
}

.mother-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
}

#txtMotherSearch {
    font-size: 15px;
}

.mother-list {
    font-size: 15px;
}

.mother-item {
    padding: 10px 14px;
    font-size: 15px;
    cursor: pointer;
}

    .mother-item:hover {
        background: #f0f6ff;
        color: var(--blue);
    }

.other-box {
    display: none;
    padding: 10px;
    border-top: 1px solid #d7dfec;
    background: #fff;
    width: 100%;
}

    .other-box input {
        width: 100%;
        height: 42px;
        font-size: 15px;
        padding: 0 12px;
        border: 1px solid #d7dfec;
        border-radius: 10px;
        margin-bottom: 10px;
    }

#btnOtherLanguage {
    width: 100%;
    height: 40px;
    background: #183153;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

    #btnOtherLanguage:hover {
        background: #10233f;
    }

.required {
    color: #dc2626 !important;
    font-weight: 700;
}
/*view mode*/
.mode-badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
}

.view-mode {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.edit-mode {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}
.view-only input,
.view-only textarea {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
    color: #475467 !important;
}
.view-only .k-dropdownlist {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
}

    .view-only .k-dropdownlist .k-input-inner,
    .view-only .k-dropdownlist .k-input-value-text {
        background: #edf2f7 !important;
        color: #111827 !important;
        font-weight: 400 !important;
    }
.view-only .k-input-inner,
.view-only .k-input-value-text,
.view-only input {
    color: #1f2937 !important;
    font-weight: 400 !important;
}
.view-only .k-picker {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
}

    .view-only .k-picker .k-input-value-text {
        color: #111827 !important;
        font-weight: 500;
    }
    /* Hide Kendo dropdown/calendar buttons in View Mode */

    .view-only .k-dropdownlist .k-input-button,
    .view-only .k-dropdownlist .k-button,
    .view-only .k-dropdownlist .k-select,
    .view-only .k-picker .k-input-button,
    .view-only .k-picker .k-button {
        display: none !important;
    }

.view-only .k-dropdownlist,
.view-only .k-picker {
    pointer-events: none !important;
}

    .view-only .k-dropdownlist .k-input-inner,
    .view-only .k-picker .k-input-inner {
        padding-right: 12px !important;
    }
/* View Mode - Hide dropdown/calendar buttons */

.program-card.view-only .k-picker .k-input-button,
.program-card.view-only .k-picker .k-button,
.program-card.view-only .k-dropdownlist .k-input-button,
.program-card.view-only .k-dropdownlist .k-button,
.program-card.view-only .k-dropdownlist .k-select,
.program-card.view-only .k-svg-icon {
    display: none !important;
}

.program-card.view-only .k-picker,
.program-card.view-only .k-dropdownlist,
.program-card.view-only .k-datepicker {
    pointer-events: none !important;
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
}

/* Level dropdown - disabled look like readonly textbox */

#selectedLevelStudentName {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 6px 14px;
    background: #fff;
    color: #000;
    border: 1px solid #0d0e0e;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

    #selectedLevelStudentName:empty {
        display: none;
    }

.auto-filled-field,
.auto-filled-field input,
.auto-filled-field .k-input-inner {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed;
}

    .auto-filled-field .k-input-button {
        display: none !important;
    }
.program-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.card-mode-badge {
    margin-left: 6px;
}
.program-card .k-picker.k-disabled,
.program-card .k-dropdownlist.k-disabled {
    background: #edf2f7 !important;
    border: 1px solid #cbd5e1 !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

    .program-card .k-picker.k-disabled .k-input-inner,
    .program-card .k-picker.k-disabled .k-input-value-text,
    .program-card .k-dropdownlist.k-disabled .k-input-inner,
    .program-card .k-dropdownlist.k-disabled .k-input-value-text {
        background: #edf2f7 !important;
        color: #475467 !important;
        font-weight: 400 !important;
    }

    /* Hide dropdown arrow completely */
    .program-card .k-picker.k-disabled .k-input-button,
    .program-card .k-picker.k-disabled .k-button,
    .program-card .k-dropdownlist.k-disabled .k-input-button,
    .program-card .k-dropdownlist.k-disabled .k-button,
    .program-card .k-dropdownlist.k-disabled .k-select,
    .program-card .k-picker.k-disabled .k-svg-icon {
        display: none !important;
    }

    /* Fill entire width after hiding button */
    .program-card .k-picker.k-disabled .k-input-inner,
    .program-card .k-dropdownlist.k-disabled .k-input-inner {
        padding-right: 12px !important;
    }
.view-only .k-dropdownlist {
    pointer-events: none;
}
.view-only .k-input-inner,
.view-only .k-input-value-text,
.view-only .k-picker,
.view-only .k-dropdownlist {
    color: #111827 !important;
    opacity: 1 !important;
}
.serial-locked {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
    color: #475467 !important;
    cursor: not-allowed !important;
}
.icon-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.same-address input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.same-address {
    user-select: none;
}
/* Parent details */

#parentDetailsPanel {
    margin-top: 15px;
    background: transparent;
    border: none;
    padding: 0;
}

.caregiver-card {
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
 }

.caregiver-title {
    margin: 0;
    font-size: 18px;
    color: #10233f;
}

.parent-section {
    margin-left: 0px;
    margin-right: 0px;
    padding: 10px 20px 18px !important;
    margin-bottom: 12px !important;
    background: rgba(255, 255, 255, .88) !important;
    backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(226, 232, 240, .92) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(15, 23, 42, .12) !important;
}

    .parent-section .student-record-header {
        margin-bottom: 20px !important;
    }

#studentRegistrationPanel {
    margin-top: 12px !important;
    margin-left: 3px;
    margin-right: 3px;
}
#parentDetailsPanel{
    margin-top: 12px !important;
    
}

.parent-section:first-child {
    margin-top: 12px;
    margin-left: 3px;
    margin-right: 3px;
}
.reveal-sensitive {
    color: #13294b !important;
}

/*=================================
 Program Enrollment
=================================*/

#programEnrollmentPanel {
    margin-top: 12px !important;
}

.program-card {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.program-title {
    margin: 0;
    font-size: 18px;
    color: #10233f;
}

.program-card .field input[readonly] {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
    color: #475467 !important;
}

/* Program Action Buttons */

.student-record-actions .icon-btn {
    width: auto;
    height: 42px;
    font-size:15px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.k-list-optionlabel {
    font-size: 14px !important;
}
/* Edit */

.program-edit {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

    .program-edit:hover {
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
        color: #fff !important;
    }

/* Delete */

.program-delete {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

    .program-delete:hover {
        background: #b91c1c !important;
        border-color: #b91c1c !important;
        color: #fff !important;
    }
.program-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .program-header-left h3 {
        margin: 0;
    }
/* Save */

.program-save {
    background: #183153 !important;
    border: 1px solid #183153 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.program-save:hover {
    background: #10233f !important;
    border-color: #10233f !important;
    color: #fff !important;
}
.program-card:not(.view-only) .k-picker,
.program-card:not(.view-only) .k-dropdownlist {
    background: #fff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.program-card:not(.view-only) .k-input-button {
    display: flex !important;
}
.program-card:not(.view-only) .k-picker {
    background: #fff !important;
    border-color: #d7dfec !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.program-card:not(.view-only) .k-input-button {
    display: flex !important;
}

.program-card:not(.view-only) .k-input-inner {
    background: #fff !important;
}
    .auto-filled-field .k-input-inner,
    .auto-filled-field .k-input-value-text {
        color: #111827 !important;
        -webkit-text-fill-color: #111827 !important;
    }
#assessmentSkillsContainer {
    display: grid;
    grid-template-columns: repeat(2,minmax(300px,1fr));
    gap: 12px;
    margin-top: 20px;
}
.assessment-header {
    margin-top: 22px;
    margin-bottom: 18px;
}

    .assessment-header h3 {
        margin: 0;
        color: #10233f;
        font-size: 18px;
    }
.assessment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #e4e9f2;
    background: #fbfdff;
    border-radius: 12px;
    padding: 8px 12px;
    min-height: 58px;
}
.grade-ddl {
    height: 44px;
    min-width: 120px;
    border-radius: 10px;
}
#btnEditLevelReport {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

    #btnEditLevelReport:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }

#btnDeleteLevelReport {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

    #btnDeleteLevelReport:hover {
        background: #b91c1c;
        border-color: #b91c1c;
    }

    #btnEditLevelReport i,
    #btnDeleteLevelReport i {
        color: #fff;
        font-size: 20px;
    }

.view-only .assessment-row {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
}

.view-only .assessment-label {
    color: #1f2937 !important;
    font-weight: 400;
}

.view-only .grade-ddl {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
}
    .view-only .grade-ddl,
    .view-only .grade-ddl option {
        color: #111827 !important;
        font-weight: 400;
        opacity: 1 !important;
    }
.empty-program-message {
    padding: 20px 0;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
}
.view-only .grade-ddl {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    pointer-events: none;
}
@media(max-width:1000px) {

    #assessmentSkillsContainer {
        grid-template-columns: 1fr;
    }
}
/* ============================
   Top Header + Top Nav layout
============================ */

.app-layout-top {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e4e9f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 30;
}


.school-logo {
    width: 200px;
    height: 50px;
    object-fit: contain;
}

.school-name {
    font-size: 20px;
    font-weight: 700;
    color: #10233f;
    line-height: 1.1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    outline: none;
}

    .brand:focus,
    .brand:active {
        outline: none;
        box-shadow: none;
    }
.portal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #10233f;
}


.portal-header {
    display: flex;
    align-items: center;
}

.portal-name {
    font-size: 13px;
    color: #667085;
    margin-top: 5px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.create-mode {
    background: #ecfdf3;
    color: #087443;
    border: 1px solid #86efac;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f0ff;
    color: #10233f;
    font-weight: 700;
}

.user-copy {
    display: flex;
    flex-direction: column;
}

    .user-copy strong {
        font-size: 14px;
        color: #10233f;
    }

    /*.user-copy span {
        font-size: 12px;
        color: #667085;
    }*/

.logout-btn {
    border: 0;
    background: #f3f6fa;
    color: #344054;
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/*.top-nav {
    background: #10233f;
    position: sticky;
    top: 82px;
    z-index: 25;
    box-shadow: 0 6px 18px rgba(16,35,63,.14);
}*/
.top-nav {
    background: #10233f;
    position: sticky;
    top: 60px;
    margin-top: 0;
    box-shadow: 0 6px 18px rgba(16,35,63,.14);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 25;
}
    .top-nav a:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
    .top-nav a {
        flex: 0 0 auto;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .top-nav .nav-inner {
        display: flex;
        align-items: center;
        gap: 4px;
        width: max-content;
        min-width: 100%;
        margin: 0;
        padding: 0 2px;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

        .top-nav .nav-inner a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 18px;
            color: #dce6f4;
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            white-space: nowrap;
            border-bottom: 3px solid transparent;
        }

            .top-nav .nav-inner a .menu-icon {
                width: 24px;
                height: 24px;
                flex-shrink: 0;
                fill: none;
                stroke: #dce6f4;
                stroke-width: 2;
                stroke-linecap: round;
                stroke-linejoin: round;
            }

            .top-nav .nav-inner a:hover,
            .top-nav .nav-inner a.active {
                background: #24466f;
                color: #fff;
                border-bottom-color: #72a6ff;
            }

                .top-nav .nav-inner a:hover .menu-icon,
                .top-nav .nav-inner a.active .menu-icon {
                    stroke: #fff;
                }
.page-container {
    width: 100%;
}
/* main-content: no longer offset by a sidebar */
.app-layout-top .main-content {
    margin-left: 0;
    height: auto;
    flex: 1;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 70px;
    overflow-y: visible;
}

@media (max-width: 1000px) {
    .site-header {
        padding: 0 18px;
    }

    .user-copy {
        display: none;
    }

    .top-nav .nav-inner {
        padding: 0 10px;
    }

    .app-layout-top .main-content {
        padding: 18px;
    }
    .brand {
        gap: 8px;
    }

    .school-logo {
        width: 150px;
    }

    .portal-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .school-name {
        font-size: 16px;
    }

    .portal-name {
        font-size: 11px;
    }

    .school-logo {
        width: 44px;
        height: 44px;
    }

    .top-nav .nav-inner a {
        padding: 12px 14px;
    }
}
/* Alumni dropdown button */

#btnAddMenu {
    width: 100%;
    height: 42px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius:12px;
}

.k-menu-popup .k-menu-item,
.k-menu-popup .k-item,
.k-animation-container .k-item {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 40px !important;
}
.alumni-card.card-view-mode .edu-year {
    background: #edf2f7 !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
    opacity: 1 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    pointer-events: none;
}


.text-center {
    text-align: center;
    color: #777;
}

@media (max-width:992px) {

    .student-selection {
        flex-direction: column;
    }

        .student-selection button {
            width: 100%;
        }
}
@media(max-width:992px) {

    .dashboard-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:600px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand {
        width: 100%;
    }

    .user-area {
        width: 100%;
        justify-content: flex-end;
    }

    .app-layout-top .main-content {
        padding: 12px;
    }

    .top-nav {
        position: static;
        top: auto;
    }
}
/* Accessibility */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

    .skip-link:focus {
        left: 10px;
        top: 10px;
        background: #fff;
        color: #000;
        padding: 10px 15px;
        z-index: 9999;
        border: 2px solid #2563eb;
    }

.top-nav a:focus-visible,
.profile-link:focus-visible,
.logout-btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.logout-btn {
    min-width: 44px;
    min-height: 44px;
}

.profile-link {
    min-height: 44px;
}
.profile-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

    .profile-message.success {
        background: #ecfdf5;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .profile-message.error {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }
.top-nav {
    overflow-x: auto;
}

.nav-inner {
    display: flex;
    flex-wrap: nowrap;
}
.k-pager-sizes .k-dropdownlist {
    width: 70px !important;
}

.k-pager-numbers .k-button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
}

    .k-pager-numbers .k-button:not(.k-selected) {
        font-size: 14px;
    }

.k-pager-numbers .k-selected {
    font-size: 14px;
}
.k-input-value-text {
    overflow: visible !important;
    text-overflow: unset !important;
}
.k-pager-sizes .k-picker {
    width: 80px !important;
}
.view-only select.caregiver-gender,
.view-only select.caregiver-gender:disabled {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: none !important;
    background-color: #edf2f7 !important;
    border: 1px solid #cbd5e1 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    height: 40px !important;
    padding: 0 14px !important;
    line-height: 40px !important;
    font-size: 15px !important;
}
/* Access Denied Page */
.no-access-page {
    padding-top: 70px;
    padding-bottom: 40px;
}

.no-access-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 45px 40px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.no-access-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff1f2;
    color: #b42318;
    font-size: 28px;
}

.no-access-title {
    margin: 0 0 14px;
    color: #b42318;
    font-size: 32px;
    font-weight: 700;
}

.no-access-message {
    margin: 0 0 10px;
    color: #243b53;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.no-access-help {
    margin: 0;
    color: #52606d;
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 900px) {

    .tab-header-row {
        flex-wrap: wrap !important;
    }

    #studentTabs .k-tabstrip-items-wrapper {
        display: block !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        order: -1 !important;
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        #studentTabs .k-tabstrip-items-wrapper::-webkit-scrollbar {
            display: none;
        }

    #studentTabs .k-tabstrip-items {
        display: inline-flex !important;
        width: max-content !important;
        flex-wrap: nowrap !important;
    }

    .student-tab-actions {
        flex: 1 1 100% !important;
        order: 1 !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .student-record-header,
    .program-header-left {
        flex-wrap: wrap !important;
    }

    .student-record-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .student-add-btn,
    .save-btn {
        height: auto !important;
        min-height: 42px;
        white-space: normal;
        text-align: center;
        padding: 10px 14px;
    }

    .student-tab-actions .icon-btn,
    .student-record-actions .icon-btn,
    #btnEditRecord,
    #btnDeleteRecord,
    #btnSaveStudent {
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
    .student-tab-actions .icon-btn i,
    .student-record-actions .icon-btn i {
        font-size: 14px !important;
    }

    .admin-tabs a {
        padding: 9px 12px;
        font-size: 13px;
    }

    #btnAddMenu,
    .student-add-btn,
    .save-btn {
        height: auto !important;
        min-height: 42px !important;
        font-size: 13px !important;
        white-space: normal !important;
        line-height: 1.3;
        padding: 8px 10px !important;
    }

        #btnAddMenu .k-button-text,
        .student-add-btn .k-button-text {
            white-space: normal !important;
        }

    .k-menu-button,
    .k-dropdown-button {
        flex-flow: row wrap !important;
    }
}
}
@media(prefers-reduced-motion:reduce) {

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
   Local Address Header Alignment
   ========================================= */

.local-address-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .local-address-label-row > label:first-child {
        margin: 0;
    }

    .local-address-label-row .same-address {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin: 0 0 0 2px;
        padding: 0;
        white-space: nowrap;
        line-height: 1;
        vertical-align: middle;
    }

        .local-address-label-row .same-address input[type="checkbox"] {
            margin: 0;
            padding: 0;
            width: auto;
            height: auto;
            vertical-align: middle;
            position: static;
        }
/* Sensitive fields - UI masking only */
.sensitive-field {
    -webkit-text-security: none;
    text-security: none;
}

    .sensitive-field.is-masked {
        -webkit-text-security: disc;
        text-security: disc;
    }

#medicalHistoryPanel.view-only .k-input-spinner {
    display: none !important;
}
/* View Mode - Show full field value on hover */
.view-only .modern-form input:not([type="checkbox"]),
.view-only .modern-form select {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    cursor: default;
}

