:root {
    --brand: #1466d8;
    --brand-dark: #0f4fa8;
    --brand-050: #eaf2fe;
    --side-bg: #0d1b2e;
    --ink: #0f1728;
    --ink-2: #344054;
    --muted: #667085;
    --line: #e5e8ee;
    --line-2: #eef1f6;
    --bg: #f4f6fb;
    --card: #ffffff;
    --ok: #067647;
    --ok-bg: #e7f6ec;
    --warn: #b54708;
    --warn-bg: #fff4e5;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

h1, h2, h3, h4 {
    color: var(--ink);
    margin: 0;
}

.mx-auth {
    min-height: 100vh;
    background: #ffffff;
    font-family: var(--font);
    --a-navy: #173a63;
    --a-blue: #2563c9;
    --a-btn: #1b57bd;
    --a-green: #18a77c;
    --a-line: #d9e2ee;
}

.mx-auth-split {
    min-height: 100vh;
    display: flex;
}

.mx-auth-showcase {
    flex: 1 1 60%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    color: #3a4b62;
    background: url('/images/auth-hero.jpg') center center / cover no-repeat, #eaf1f8;
    display: flex;
    flex-direction: column;
    padding: 42px 54px 40px;
}

.mx-auth-showcase-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}

.mx-auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
}

.mx-auth-brand-logo {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .mx-auth-brand-logo svg {
        width: 44px;
        height: 44px;
        display: block;
    }

.mx-auth-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--a-navy);
    line-height: 1.12;
    letter-spacing: -.01em;
}

    .mx-auth-brand-name small {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: #5b7ea8;
        margin-top: 3px;
    }

.mx-auth-showcase h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--a-navy);
    line-height: 1.16;
    margin: 6px 0 14px;
    max-width: 420px;
    letter-spacing: -.015em;
}

.mx-auth-showcase > .mx-auth-showcase-inner > p {
    font-size: 15px;
    color: #3f5570;
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
}

.mx-auth-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
    margin-top: auto;
}

.mx-flow-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    max-width: 128px;
}

.mx-flow-ico {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 23px;
    color: #2f74c9;
    background: #eaf1fb;
    box-shadow: 0 3px 11px rgba(37,99,201,.15);
}

.mx-flow-ico-on {
    color: #fff;
    background: linear-gradient(135deg, #21b083, #159168);
    box-shadow: 0 4px 13px rgba(21,145,104,.30);
}

.mx-flow-step b {
    font-size: 13px;
    font-weight: 700;
    color: var(--a-navy);
    line-height: 1.22;
}

.mx-flow-step.on b {
    color: #159168;
}

.mx-flow-step small {
    font-size: 11px;
    color: #5f7590;
    line-height: 1.32;
}

.mx-flow-arrow {
    color: #9dbbe0;
    font-size: 16px;
    margin-top: 22px;
    flex: 0 0 auto;
}

.mx-auth-features {
    display: flex;
    gap: 34px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(120,150,190,.24);
}

.mx-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 0;
}

    .mx-feature > i {
        color: var(--a-navy);
        font-size: 20px;
        margin-top: 1px;
    }

    .mx-feature b {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: var(--a-navy);
        margin-bottom: 3px;
    }

    .mx-feature span {
        font-size: 12px;
        color: #5f7590;
        line-height: 1.45;
    }

.mx-auth-panel {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 56px;
    background: #fff;
}

.mx-auth-card {
    width: 100%;
    max-width: 388px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.mx-auth-wide .mx-auth-panel {
    flex-basis: 44%;
}

.mx-auth-wide .mx-auth-card {
    max-width: 560px;
}

@media (max-width: 1180px) {
    .mx-auth-wide .mx-auth-showcase {
        display: none;
    }

    .mx-auth-wide .mx-auth-panel {
        flex: 1 1 100%;
        padding: 36px 22px;
    }
}

@media (max-width: 980px) {
    .mx-auth-showcase {
        display: none;
    }

    .mx-auth-panel {
        flex: 1 1 100%;
        padding: 36px 22px;
    }

    .mx-auth-card {
        max-width: 400px;
    }

    .mx-auth-wide .mx-auth-card {
        max-width: 560px;
    }
}

.mx-auth-head {
    text-align: center;
    padding: 0;
}

.mx-auth-logo {
    width: 60px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

    .mx-auth-logo svg {
        width: 58px;
        height: 66px;
        display: block;
    }

.mx-auth-head h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--a-navy);
    letter-spacing: -.01em;
}

.mx-auth-sub {
    color: #6b7c93;
    font-size: 15px;
    margin: 6px 0 0;
}

.mx-auth-divider {
    display: block;
    width: 54px;
    height: 3px;
    border-radius: 2px;
    background: var(--a-green);
    margin: 16px auto 0;
}

.mx-auth-body {
    padding: 22px 0 0;
}

.mx-auth-lead {
    text-align: center;
    color: #5f7189;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.mx-auth-body .mx-field {
    margin-bottom: 18px;
}

.mx-auth-body label {
    color: var(--a-blue);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

    .mx-auth-body label i {
        color: var(--a-blue);
        font-size: 13px;
    }

.mx-auth-body .mx-input-icon {
    position: relative;
    display: block;
    max-width: none;
}

    .mx-auth-body .mx-input-icon > i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
        background: none;
        border: 0;
        border-radius: 0;
        color: #9aa7bd;
        font-size: 15px;
        z-index: 3;
        pointer-events: none;
    }
    .mx-auth-body .mx-input-icon .mx-input:focus {
        z-index: 1;
    }

    .mx-auth-body .mx-input-icon .mx-input {
        width: 100%;
        max-width: none;
        border: 1px solid var(--a-line);
        border-radius: 10px;
        padding: 12px 14px 12px 42px;
        font-size: 14px;
        background: #fff;
    }

        .mx-auth-body .mx-input-icon .mx-input:focus {
            border-color: var(--a-blue);
            box-shadow: 0 0 0 3px rgba(37,99,201,.12);
        }

.mx-auth-body input.mx-has-eye {
    padding-right: 42px !important;
}

.mx-pw-toggle {
    right: 8px;
}

.mx-auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 22px;
    font-size: 14px;
    color: #3a4b62;
}

    .mx-auth-remember input[type=checkbox] {
        width: 18px;
        height: 18px;
        accent-color: var(--a-green);
        margin: 0;
    }

    .mx-auth-remember label {
        margin: 0;
        font-weight: 500;
        color: #3a4b62;
    }

.mx-auth-body .mx-btn-primary {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    background: var(--a-btn);
    border-color: var(--a-btn);
    border-radius: 11px;
}

    .mx-auth-body .mx-btn-primary:hover {
        background: #164aa0;
        border-color: #164aa0;
        color: #fff;
    }

.mx-auth-forgot {
    text-align: center;
    margin-top: 16px;
}

    .mx-auth-forgot a {
        color: var(--a-blue);
        font-size: 14px;
        font-weight: 600;
    }

.mx-auth-secnote {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 26px;
    padding: 16px;
    background: #eef4fc;
    border: 0;
    border-radius: 12px;
}

    .mx-auth-secnote > i {
        color: var(--a-btn);
        font-size: 16px;
        margin-top: 2px;
    }

    .mx-auth-secnote b {
        display: block;
        font-size: 13px;
        color: var(--a-navy);
        font-weight: 700;
        margin-bottom: 4px;
    }

    .mx-auth-secnote span {
        font-size: 12.5px;
        color: #5f7189;
        line-height: 1.5;
    }

.mx-auth-alt {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--a-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.mx-auth-alt-sep {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7c93;
}

.mx-auth-alt a {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--a-blue);
}

    .mx-auth-alt a i {
        color: var(--a-blue);
    }

.mx-auth-msg {
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 13px;
    margin-bottom: 16px;
}

.mx-auth-msg.mx-auth-msg-ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.mx-auth-foot {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 20px 0 0;
}

.mx-auth-shell {
    width: 100%;
    max-width: 388px;
}

.mx-auth-note {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid #b7e4c7;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.mx-auth-dev {
    margin-top: 14px;
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px solid #fdd9a8;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 12px;
    word-break: break-all;
}

    .mx-auth-dev a {
        color: var(--warn);
        text-decoration: underline;
    }

.mx-shell {
    display: flex;
    min-height: 100vh;
}

.mx-side {
    width: var(--side-w, 248px);
    background: var(--side-bg);
    color: #c7d2e0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.mx-side-resizer {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -3px;
    width: 6px;
    cursor: col-resize;
    z-index: 30;
}
.mx-side-resizer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 3px;
    width: 2px;
    background: transparent;
    transition: background .12s;
}
.mx-side-resizer:hover::before,
.mx-side-resizer.is-dragging::before {
    background: var(--brand, #6c63ff);
}

.mx-shell.mx-collapsed .mx-side-resizer,
.mx-shell.mx-menu-top .mx-side-resizer {
    display: none;
}

body.mx-side-resizing { cursor: col-resize !important; user-select: none !important; }
body.mx-side-resizing .mx-side,
body.mx-side-resizing .mx-main { transition: none !important; }

.mx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid #16273f;
}

.mx-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: var(--brand-logo-bg, linear-gradient(135deg, #1f8bf1, #0f4fa8));
    color: var(--brand-logo-fg, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--brand-logo-size, 32px);
    overflow: hidden;
}
    .mx-brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.mx-brand-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
}

.mx-brand-sub {
    font-size: 11px;
    color: #7f93ad;
}

.mx-nav {
    overflow-y: auto;
    flex: 1;
}

    .mx-nav a {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 12px;
        border-radius: 0;
        color: #c7d2e0;
        font-size: 14px;
        margin-bottom: 2px;
    }

        .mx-nav a:hover {
            background: #16273f;
            color: #fff;
            text-decoration: none;
        }

        .mx-nav a.active {
            background: var(--brand);
            color: #fff;
        }

        .mx-nav a i {
            width: 18px;
            text-align: center;
            font-size: 14px;
        }

.mx-navgrp {
    display: block;
}

.mx-navgrp-h {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: default;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .06em;
    color: #64789a;
    padding: 14px 12px 6px;
    display: flex;
    align-items: center;
    gap: 9px;
}

    .mx-navgrp-h > i:first-child {
        width: 16px;
        text-align: center;
        flex: 0 0 auto;
    }

.mx-navgrp-caret {
    display: none;
}

.mx-navgrp-i {
    display: block;
    padding-left: 0;
}

.mx-shell:not(.mx-menu-top) .mx-navgrp-h {
    cursor: pointer;
    margin: 8px 0px 4px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .05);
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    font-size: 11px;
    color: #8aa0bd;
}

    .mx-shell:not(.mx-menu-top) .mx-navgrp-h:hover {
        background: rgba(255, 255, 255, .09);
        color: #d3deec;
    }

.mx-shell:not(.mx-menu-top) .mx-navgrp-caret {
    display: inline-flex;
    margin-left: auto;
    font-size: 12px;
    transition: transform .15s ease;
}

.mx-shell:not(.mx-menu-top) .mx-navgrp.mx-collapsed-grp .mx-navgrp-caret {
    transform: rotate(-90deg);
}

.mx-shell:not(.mx-menu-top) .mx-navgrp.mx-collapsed-grp .mx-navgrp-i {
    display: none;
}

.mx-shell.mx-collapsed .mx-navgrp.mx-collapsed-grp .mx-navgrp-i {
    display: block;
}

.mx-side-foot {
    padding: 12px;
    border-top: 1px solid #16273f;
}

.mx-side-info {
    padding: 4px 6px 12px;
}

.mx-side-role {
    color: #e6edf6;
    font-size: 13px;
    font-weight: 600;
}

.mx-side-date {
    color: #7f93ad;
    font-size: 12px;
    margin-top: 2px;
}

.mx-btn-block {
    width: 100%;
    justify-content: center;
    background: #16273f;
    border-color: #24374f;
    color: #c7d2e0;
}

    .mx-btn-block:hover {
        background: #1d3149;
        color: #fff;
    }

.mx-nav a.active {
    box-shadow: 0 2px 8px rgba(20,102,216,.35);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c4cddb transparent;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c4cddb;
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: content-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a4b1c4;
        background-clip: content-box;
    }

::-webkit-scrollbar-corner {
    background: transparent;
}

.mx-side {
    scrollbar-color: #2a3f5c transparent;
}

    .mx-side ::-webkit-scrollbar-thumb, .mx-nav::-webkit-scrollbar-thumb {
        background: #2a3f5c;
        background-clip: content-box;
    }

        .mx-side ::-webkit-scrollbar-thumb:hover, .mx-nav::-webkit-scrollbar-thumb:hover {
            background: #3a557a;
            background-clip: content-box;
        }

.mx-imp-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 42px;
    box-sizing: border-box;
    background: #8a1c1c;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.mx-shell.mx-has-imp .mx-side {
    top: 42px;
}

.mx-shell.mx-has-imp .mx-main {
    padding-top: 42px;
}

.mx-shell.mx-has-imp .mx-top {
    top: 42px;
}

@media (max-width: 760px) {
    .mx-shell.mx-has-imp .mx-side {
        top: 0;
    }

    .mx-shell.mx-has-imp .mx-main {
        padding-top: 64px;
    }

    .mx-shell.mx-has-imp .mx-top {
        top: 64px;
    }
}

.mx-imp-banner strong {
    color: #fff;
}

.mx-imp-banner i {
    margin-right: 6px;
}

.mx-imp-stop {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.55);
    padding: 4px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

    .mx-imp-stop:hover {
        background: rgba(255,255,255,.16);
        color: #fff;
        text-decoration: none;
    }

.mx-avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 32px;
    border-radius: 50%;
}

.mx-photo-empty {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(160deg, #f1f4f8, #e2e7ee);
    border: 1px solid var(--line);
}

.mx-photo-empty-icon {
    position: absolute;
    bottom: -8px;
    font-size: 74px;
    color: #cbd4e0;
    line-height: 1;
}

.mx-photo-empty-initials {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 30px;
    color: var(--brand);
    text-shadow: 0 1px 2px rgba(255,255,255,.75);
}

.mx-profile-top {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 4px;
}

.mx-profile-photo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.mx-profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    display: block;
}

.mx-profile-photo-tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 260px;
}

.mx-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.mx-profile-fields {
    flex: 1 1 380px;
    min-width: 280px;
}

.mx-photo-pick {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
}

    .mx-photo-pick .mx-photo-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        background: rgba(16,24,40,.55);
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        opacity: 0;
        transition: opacity .15s ease;
        pointer-events: none;
    }

    .mx-photo-pick:hover .mx-photo-overlay, .mx-photo-pick:focus-within .mx-photo-overlay {
        opacity: 1;
    }

    .mx-photo-pick:focus-within {
        outline: 2px solid #84b6f7;
        outline-offset: 2px;
    }

.mx-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.mx-pw-meter {
    height: 6px;
    background: #eef1f6;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.mx-pw-bar {
    height: 100%;
    width: 0;
    background: #d0d5dd;
    border-radius: 999px;
    transition: width .2s ease, background .2s ease;
}

    .mx-pw-bar.weak {
        background: #e5484d;
    }

    .mx-pw-bar.fair {
        background: #f5a623;
    }

    .mx-pw-bar.good {
        background: #2f9e44;
    }

    .mx-pw-bar.strong {
        background: #067647;
    }

.mx-pw-strength {
    font-size: 12px;
    margin-top: 5px;
    color: var(--muted);
}

    .mx-pw-strength.weak {
        color: #e5484d;
    }

    .mx-pw-strength.fair {
        color: #b7791f;
    }

    .mx-pw-strength.good, .mx-pw-strength.strong {
        color: #067647;
    }

.mx-pw-rules {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mx-pw-rules li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        font-size: 14px;
        color: var(--muted);
    }

        .mx-pw-rules li i {
            color: #cfd6e2;
            width: 16px;
            text-align: center;
        }

        .mx-pw-rules li.ok {
            color: var(--ink);
        }

            .mx-pw-rules li.ok i {
                color: var(--ok);
            }

.mx-hint.mx-ok {
    color: var(--ok);
}

.mx-hint.mx-err {
    color: var(--danger);
}

.mx-main {
    flex: 1;
    margin-left: var(--side-w, 248px);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mx-top {
    height: 60px;
    background: var(--brand-050);
    border-bottom: 2px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .mx-top h2 {
        font-size: 16px;
        font-weight: 600;
    }

.mx-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
}

.mx-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-050);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 auto;
}

.mx-avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.mx-content {
    padding: 24px;
    flex: 1;
}

.mx-usermenu {
    position: relative;
}

.mx-usermenu-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 5px 8px 5px 5px;
    cursor: pointer;
    font: inherit;
    color: var(--ink-2);
}

    .mx-usermenu-trigger:hover {
        background: #f4f6fb;
    }

    .mx-usermenu-trigger:focus-visible {
        outline: none;
        border-color: #84b6f7;
        box-shadow: 0 0 0 3px rgba(20,102,216,.14);
    }

.mx-usermenu-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.mx-usermenu-caret {
    font-size: 11px;
    color: var(--muted);
    transition: transform .15s ease;
}

.mx-usermenu.open .mx-usermenu-caret {
    transform: rotate(180deg);
}

.mx-usermenu-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 264px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16,24,40,.18), 0 2px 6px rgba(16,24,40,.06);
    padding: 8px;
    z-index: 60;
    animation: mxpop .12s ease-out;
}

    .mx-usermenu-pop[hidden] {
        display: none;
    }

@keyframes mxpop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.mx-usermenu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 12px;
    border-bottom: 1px solid var(--line-2);
    margin-bottom: 6px;
}

.mx-avatar-lg {
    width: 42px;
    height: 42px;
    font-size: 15px;
    flex: 0 0 auto;
}

.mx-usermenu-id {
    min-width: 0;
}

.mx-usermenu-fullname {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mx-usermenu-email {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mx-usermenu-items {
    display: flex;
    flex-direction: column;
}

.mx-usermenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

    .mx-usermenu-item:hover, .mx-usermenu-item:focus {
        background: var(--brand-050);
        color: var(--brand-dark);
        outline: none;
        text-decoration: none;
    }

    .mx-usermenu-item i {
        width: 18px;
        text-align: center;
        color: var(--muted);
    }

    .mx-usermenu-item:hover i, .mx-usermenu-item:focus i {
        color: var(--brand);
    }

.mx-usermenu-sep {
    height: 1px;
    background: var(--line-2);
    margin: 6px 4px;
}

.mx-usermenu-item-danger {
    color: var(--danger);
}

    .mx-usermenu-item-danger:hover, .mx-usermenu-item-danger:focus {
        background: var(--danger-bg);
        color: #912018;
    }

        .mx-usermenu-item-danger i, .mx-usermenu-item-danger:hover i, .mx-usermenu-item-danger:focus i {
            color: var(--danger);
        }

@media (max-width: 640px) {
    .mx-usermenu-name {
        display: none;
    }

    .mx-usermenu-pop {
        width: 240px;
    }
}

.mx-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

    .mx-head h1 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 4px;
    }

        .mx-head h1 i {
            color: var(--brand);
            margin-right: 6px;
        }

.mx-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 10px 0px;
}

.mx-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.mx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line-2);
    flex-wrap: wrap;
}

    .mx-card-head h3 {
        font-size: 15px;
        font-weight: 600;
    }

        .mx-card-head h3 i {
            color: var(--brand);
            margin-right: 7px;
        }

.mx-card-sub {
    color: var(--muted);
    font-size: 12px;
    margin: 2px 0 0;
}

.mx-card-body {
    padding: 0;
}

    .mx-card-body.mx-pad {
        padding: 24px 26px;
    }

.mx-table {
    width: 100%;
    border-collapse: collapse;
}

    .mx-table th {
        text-align: left;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--muted);
        padding: 11px 16px;
        border-bottom: 1px solid var(--line-2);
        background: #fafbfd;
        font-weight: 600;
    }

    .mx-table td {
        padding: 13px 16px;
        border-bottom: 1px solid var(--line-2);
        font-size: 14px;
        color: var(--ink-2);
    }

    .mx-table tr:last-child td {
        border-bottom: none;
    }

    .mx-table tbody tr:hover td {
        background: #fbfcfe;
    }

.mx-num {
    text-align: center;
}

.mx-meta {
    color: var(--muted);
    font-size: 13px;
    margin: -6px 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

    .mx-meta i {
        color: var(--brand);
    }

.mx-history {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
}

    .mx-history th {
        background: #fafbfd;
    }

    .mx-history td:first-child {
        font-weight: 500;
        color: var(--ink);
    }

    .mx-history tbody tr:nth-child(even) td {
        background: #fbfcfe;
    }

    .mx-history tbody tr:hover td {
        background: #f4f8ff;
    }

    .mx-history .mx-radio label {
        margin-right: 18px;
    }

.mx-checklist {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 32px;
}

    .mx-checklist li {
        display: flex;
        align-items: center;
    }

    .mx-checklist label {
        flex: 1 1 auto;
        margin: 0;
        font-size: 14px;
        color: var(--ink);
        cursor: pointer;
        line-height: 1.5;
    }

@media (max-width: 720px) {
    .mx-checklist {
        grid-template-columns: 1fr;
    }
}

.mx-history .mx-radio input[type=radio] {
    margin-right: 5px;
}

.mx-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.mx-badge-on {
    background: var(--ok-bg);
    color: var(--ok);
}

.mx-badge-off {
    background: #f1f3f5;
    color: #697077;
}

.mx-badge-warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.mx-badge-area {
    background: var(--brand-050);
    color: var(--brand-dark);
}

.mx-child {
    color: #98a2b3;
    margin-right: 4px;
}

.mx-mi-icon {
    color: var(--muted);
    width: 16px;
    text-align: center;
    margin-right: 8px;
}

.mx-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    font-family: var(--font);
}

    .mx-btn:hover {
        background: #f7f9fc;
        color: var(--ink);
        text-decoration: none;
    }

.mx-btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

    .mx-btn-primary:hover {
        background: var(--brand-dark);
        color: #fff;
    }

.mx-btn-danger {
    color: var(--danger);
    border-color: #f2b8b5;
    background: #fff;
}

    .mx-btn-danger:hover {
        background: var(--danger-bg);
        color: #912018;
    }

.mx-btn-icon {
    padding: 7px 10px;
    margin-left: 3px;
}

    .mx-btn-icon.mx-ico-done {
        color: #12805c;
        border-color: #bfe6d7;
    }

        .mx-btn-icon.mx-ico-done:hover {
            background: #eafaf3;
            color: #0e6a4c;
        }

    .mx-btn-icon.mx-ico-pending {
        color: #b9761c;
        border-color: #f0d9b5;
    }

        .mx-btn-icon.mx-ico-pending:hover {
            background: #fdf4e6;
            color: #9c6316;
        }

    .mx-btn-icon.mx-ico-exit {
        color: #c23b3b;
        border-color: #f0c2c2;
    }

        .mx-btn-icon.mx-ico-exit:hover {
            background: #fdeded;
            color: #a62f2f;
        }

.mx-prog-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}

.mx-prog-label {
    flex: 0 0 130px;
    font-size: 13px;
    color: #33415c;
    font-weight: 600;
}

.mx-prog {
    flex: 1 1 auto;
    height: 10px;
    background: #eef2f7;
    border-radius: 6px;
    overflow: hidden;
}

.mx-prog-bar {
    height: 100%;
    background: linear-gradient(90deg, #18a77c, #12805c);
    border-radius: 6px;
    transition: width .3s ease;
}

.mx-prog-val {
    flex: 0 0 64px;
    text-align: right;
    font-size: 12.5px;
    color: #5b6b82;
    font-variant-numeric: tabular-nums;
}

.mx-btn:disabled, .mx-btn[disabled] {
    background: #eef1f6;
    border-color: var(--line);
    color: #98a2b3;
    cursor: not-allowed;
    box-shadow: none;
}

.mx-btn-primary:disabled, .mx-btn-primary[disabled] {
    background: #b9c4d4;
    border-color: #b9c4d4;
    color: #eef2f7;
}

.mx-btn:disabled:hover, .mx-btn[disabled]:hover {
    background: #eef1f6;
    color: #98a2b3;
}

.mx-btn-primary:disabled:hover, .mx-btn-primary[disabled]:hover {
    background: #b9c4d4;
    color: #eef2f7;
}

.mx-actions {
    white-space: nowrap;
    text-align: center;
}

.mx-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .mx-toolbar label {
        margin: 0;
        font-size: 13px;
        color: var(--ink-2);
        font-weight: 600;
    }

.mx-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 8px 0;
}

.mx-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .mx-field label {
        font-size: 12px;
        font-weight: 600;
        color: var(--ink-2);
    }

    .mx-field .mx-hint {
        font-size: 11px;
        color: #98a2b3;
        font-weight: 400;
    }

.mx-input {
    padding: 6px 8px;
    border: 1px solid #cfd6e2;
    border-radius: 9px;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    min-width: 0;
    font-family: var(--font);
    width: 100%;
    max-width: 460px;
}

div.mx-input {
    max-width: 100%;
}

/* Text areas: allow vertical drag only and never grow past their field, so a user dragging the corner
   handle can't widen the box and break the form / modal layout. */
textarea.mx-input {
    resize: vertical;
    width: 100%;
    max-width: 100%;
}

.mx-rte-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; align-items: center; }
.mx-rte-bar .mx-btn-sm { padding: 3px 9px; font-size: 12px; }
.mx-rte-tools { display: inline-flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.mx-rte-grp { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.mx-rte-grp > .mx-btn, .mx-rte-grp > label.mx-btn { border: 0; border-radius: 0; margin: 0; }
.mx-rte-grp > .mx-btn + .mx-btn,
.mx-rte-grp > .mx-btn + label.mx-btn,
.mx-rte-grp > label.mx-btn + .mx-btn { border-left: 1px solid #dde3ec; }

.mx-rte-sel { height: 28px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink, #27313f); font-size: 12px; padding: 2px 6px; cursor: pointer; max-width: 150px; }

.mx-rte-wrap.mx-rte-fs { position: fixed; inset: 0; z-index: 1200; background: #fff; padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; }
.mx-rte-wrap.mx-rte-fs > [contenteditable],
.mx-rte-wrap.mx-rte-fs > textarea { flex: 1 1 auto; max-height: none !important; }

    .mx-input:focus {
        outline: none;
        border-color: #84b6f7;
        box-shadow: 0 0 0 3px rgba(20,102,216,.14);
    }

.mx-w-sm {
    min-width: 120px;
    max-width: 150px;
}

.mx-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-2);
    padding-top: 6px;
}

.mx-check-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

    .mx-check-stack .mx-check {
        cursor: pointer;
    }

.mx-shell input[type=checkbox],
.mx-auth input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 2px 0 0;
    padding: 0;
    flex: 0 0 auto;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

    .mx-shell input[type=checkbox]:hover,
    .mx-auth input[type=checkbox]:hover {
        border-color: #94a3b8;
    }

    .mx-shell input[type=checkbox]:checked,
    .mx-auth input[type=checkbox]:checked {
        background: var(--brand, #1466d8);
        border-color: var(--brand, #1466d8);
    }

        .mx-shell input[type=checkbox]:checked::after,
        .mx-auth input[type=checkbox]:checked::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 1px;
            width: 5px;
            height: 9px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

    .mx-shell input[type=checkbox]:disabled,
    .mx-auth input[type=checkbox]:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .mx-shell input[type=checkbox]:focus-visible,
    .mx-auth input[type=checkbox]:focus-visible {
        outline: 2px solid rgba(20,102,216,.35);
        outline-offset: 2px;
    }

.mx-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
    padding: 25px;
    background: #f4f6fb;
    border: 1px solid var(--line);
}

.mx-card > .mx-form-actions {
    margin-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

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

.mx-alert {
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.mx-alert-ok {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: #b7e4c7;
}

.mx-alert-err {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #f2b8b5;
}

.mx-alert-warn {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: #fdd9a8;
}

.dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.dataTables_wrapper table.dataTable {
    min-width: 100%;
}
@media (max-width: 860px) {
    table.mx-table:not(.dataTable) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    table.mx-table, table.mx-table > tbody { display: block; width: 100%; }

    table.mx-table > thead { display: none; }
    table.mx-table > tbody > tr {
        display: block;
        margin: 0 0 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--card);
        box-shadow: 0 1px 2px rgba(16,24,40,.04);
        overflow: hidden;
    }
    table.mx-table > tbody > tr > td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: auto !important;
        max-width: none !important;
        padding: 9px 14px;
        border: 0;
        border-bottom: 1px solid var(--line-2);
        text-align: right;
        white-space: normal;
    }
    table.mx-table > tbody > tr > td:last-child { border-bottom: 0; }
    table.mx-table > tbody > tr > td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .02em;
        text-transform: uppercase;
        color: var(--muted);
    }

    table.mx-table > tbody > tr > td:empty { display: none; }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length { float: none; margin-bottom: 10px; }
    .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100%; }
}

.dataTables_wrapper {
    padding: 0;
}

    .dataTables_wrapper .dataTables_filter {
        float: right;
        margin-bottom: 12px;
    }

        .dataTables_wrapper .dataTables_filter input {
            padding: 8px 11px;
            border: 1px solid #cfd6e2;
            border-radius: 8px;
            font-size: 13px;
            margin-left: 0;
            min-width: 220px;
        }

            .dataTables_wrapper .dataTables_filter input:focus {
                outline: none;
                border-color: #84b6f7;
                box-shadow: 0 0 0 3px rgba(20,102,216,.14);
            }

    .dataTables_wrapper .dataTables_length {
        float: left;
        margin-bottom: 12px;
        color: var(--muted);
        font-size: 13px;
    }

        .dataTables_wrapper .dataTables_length select {
            padding: 6px 8px;
            border: 1px solid #cfd6e2;
            border-radius: 8px;
            font-size: 13px;
        }

    .dataTables_wrapper .dataTables_info {
        color: var(--muted);
        font-size: 12px;
        padding-top: 12px;
    }

    .dataTables_wrapper .dataTables_paginate {
        padding-top: 8px;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: 6px 12px;
            margin-left: 4px;
            border-radius: 8px;
            border: 1px solid var(--line) !important;
            background: #fff;
            color: var(--ink-2) !important;
            cursor: pointer;
            transition: background .12s, color .12s, border-color .12s;
        }

            /* Active page + hover/focus track the Appearance colour theme (--brand). The extra
               .mx-shell scope raises specificity so the themed colour and white text always win over
               the DataTables defaults and generic link colours. */
            .mx-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current,
            .mx-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
            .mx-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
                background: var(--brand) !important;
                border-color: var(--brand) !important;
                color: #fff !important;
            }

            .mx-shell .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
                background: var(--brand-050, #eef3f8) !important;
                border-color: var(--brand) !important;
                color: var(--brand) !important;
            }

            .mx-shell .dataTables_wrapper .dataTables_paginate .paginate_button:focus:not(.current) {
                box-shadow: 0 0 0 3px var(--brand-050, rgba(34, 113, 177, .18)) !important;
            }

            .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
                color: #b0b8c4 !important;
                cursor: default;
            }

table.mx-datatable.dataTable {
    border-collapse: collapse !important;
}

table.mx-datatable thead th {
    cursor: pointer;
}

    table.mx-datatable thead th.nosort {
        cursor: default;
    }

.mx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 1fr; 
    gap: 16px;
    margin-bottom: 20px;
}

.mx-stat {
    position: relative;

    background: radial-gradient(120% 130% at 100% 0%, rgba(37, 99, 235, .05), transparent 46%), linear-gradient(180deg, #ffffff, #fbfcfe);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    padding: 16px 18px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .mx-stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(16, 24, 40, .10);
        border-color: #c8d2e4;
    }

    .mx-stat .mx-stat-label {
        font-size: 12px;
        color: var(--muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .mx-stat .mx-stat-value {
        font-size: 26px;
        font-weight: 700;
        color: var(--ink);
        margin-top: 6px;
    }

        .mx-stat .mx-stat-value i {
            color: var(--brand);
            font-size: 20px;
            margin-right: 8px;
        }

@media (max-width: 860px) {
    .mx-side {
        transform: translateX(-100%);
        transition: transform .2s;
        z-index: 40;
    }

        .mx-side.open {
            transform: none;
        }

    .mx-main {
        margin-left: 0;
    }

    .mx-shell.mx-menu-top .mx-side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: var(--side-w, 248px);
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        overflow: auto;
    }

    .mx-shell.mx-menu-top .mx-nav {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        overflow: visible;
        flex: 1 1 auto;
    }

    .mx-shell.mx-menu-top .mx-nav .mx-more { display: none; }
    .mx-shell.mx-menu-top .mx-navgrp.mx-ovf { display: block; }

    .mx-shell.mx-menu-top .mx-navgrp-i {
        position: static;
        display: block;
        min-width: 0;
        border: 0;
        border-radius: 0;
        padding: 0 0 6px 10px;
        margin: 0;
        box-shadow: none;
        background: transparent;
    }

    .mx-shell.mx-menu-top .mx-navgrp.mx-collapsed-grp > .mx-navgrp-i {
        display: none;
    }

    .mx-side-backdrop {
        display: block;
    }
}

.mx-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.mx-input-icon {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 460px;
}

.mx-input-wide, .mx-input-wide.mx-input, .mx-input-wide .mx-input {
    max-width: none;
}

.mx-input-icon > i {
    flex: 0 0 auto;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f4f9;
    border: 1px solid #cfd6e2;
    border-right: 0;
    border-radius: 9px 0 0 9px;
    color: #5b6472;
    font-size: 14px;
    line-height: 1;
}

.mx-input-icon .mx-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

    .mx-input-icon .mx-input:focus {
        position: relative;
        z-index: 1;
    }

.mx-req {
    color: var(--danger);
    font-weight: 700;
}

.mx-section-title {
    margin: 22px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .mx-section-title i {
        color: var(--brand);
    }

.mx-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

.mx-formnav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line, #e5e8ee);
}

    .mx-formnav .mx-formnav-jump {
        width: auto;
        min-width: 150px;
        max-width: 220px;
        margin-left: auto;
    }

    .mx-formnav .mx-btn-disabled {
        opacity: .4;
        pointer-events: none;
    }

.mx-signoff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

    .mx-signoff-row .mx-signoff-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

.mx-card.mx-inset {
    margin: 6px 0 4px;
    background: var(--surface-2, #f7f8fa);
    box-shadow: none;
    border: 1px solid var(--line, #e5e8ee);
}

.mx-checklist-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

    .mx-checklist-flow .mx-switch {
        flex: 0 1 auto;
        min-width: 220px;
    }

.mx-radio input[type=radio], .mx-radio input[type=checkbox],
.mx-radio-list input[type=radio], .mx-radio-list input[type=checkbox],
.mx-checklist input[type=checkbox], .mx-switch input[type=checkbox],
.mx-table input[type=radio], .mx-table input[type=checkbox] {
    accent-color: var(--brand);
    width: 17px;
    height: 17px;
    margin: 0 7px 0 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
    cursor: pointer;
}

.mx-radio label, .mx-radio-list label {
    display: inline-flex;
    align-items: center;
    margin: 3px 20px 3px 0;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
}

.mx-crit-answer {
    white-space: nowrap;
}

.mx-eligibility {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--brand-050);
    border: 1px solid #cfe0fb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 16px;
}

    .mx-eligibility i {
        color: var(--brand);
        margin-top: 2px;
    }

.mx-shell[data-theme="default"] { --brand:#2271B1; --brand-dark:#1B5C91; --brand-050:#EDF3F8; --side-bg:#1D2327; }
.mx-shell[data-theme="light"] { --brand:#04A4CC; --brand-dark:#0386A7; --brand-050:#EAF7FA; --side-bg:#1D2327; }
.mx-shell[data-theme="modern"] { --brand:#3858E9; --brand-dark:#2D48BF; --brand-050:#EFF1FD; --side-bg:#1E1E1E; }
.mx-shell[data-theme="blue"] { --brand:#52ACCC; --brand-dark:#438DA7; --brand-050:#F1F8FA; --side-bg:#096484; }
.mx-shell[data-theme="coffee"] { --brand:#C7A589; --brand-dark:#A38770; --brand-050:#FAF7F5; --side-bg:#46403C; }
.mx-shell[data-theme="ectoplasm"] { --brand:#A3B745; --brand-dark:#859638; --brand-050:#F7F9F0; --side-bg:#413256; }
.mx-shell[data-theme="midnight"] { --brand:#E14D43; --brand-dark:#B83F36; --brand-050:#FCF0EF; --side-bg:#25282B; }
.mx-shell[data-theme="ocean"] { --brand:#9EBAA0; --brand-dark:#819883; --brand-050:#F7F9F7; --side-bg:#1D2327; }
.mx-shell[data-theme="sunrise"] { --brand:#DD823B; --brand-dark:#B56A30; --brand-050:#FCF5EF; --side-bg:#B43C38; }

.mx-shell[data-mode="dark"] {

    --ink: #e6edf6;
    --ink-2: #b6c2d4;
    --muted: #8a99ad;

    --bg: #0f1826;
    --card: #16212f;

    --line: #26344a;
    --line-2: #1c2636;

    --brand-050: #16233a;

    --ok-bg: #10281d;
    --warn-bg: #2a1e0b;
    --danger-bg: #2a1414;

    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
}

    .mx-shell[data-mode="dark"] .mx-top,
    .mx-shell[data-mode="dark"] .mx-foot,
    .mx-shell[data-mode="dark"] .mx-card,
    .mx-shell[data-mode="dark"] .mx-usermenu-pop,
    .mx-shell[data-mode="dark"] .mx-bell-menu {
        background: var(--card);
    }

    .mx-shell[data-mode="dark"] input,
    .mx-shell[data-mode="dark"] select,
    .mx-shell[data-mode="dark"] textarea,
    .mx-shell[data-mode="dark"] .mx-input {
        background: #0f1a28;
        color: var(--ink);
        border-color: var(--line);
    }

        .mx-shell[data-mode="dark"] input::placeholder,
        .mx-shell[data-mode="dark"] textarea::placeholder {
            color: var(--muted);
        }

    .mx-shell[data-mode="dark"] table {
        color: var(--ink);
    }

    .mx-shell[data-mode="dark"] th {
        background: #101a28;
        color: var(--ink-2);
    }

    .mx-shell[data-mode="dark"] td {
        border-color: var(--line-2);
    }

.mx-shell[data-mode="dark"] {

    --inset: #1b2736;
    --inset-2: #203049;
}

    .mx-shell[data-mode="dark"] .mx-btn,
    .mx-shell[data-mode="dark"] .mx-foot,
    .mx-shell[data-mode="dark"] .mx-confirm,
    .mx-shell[data-mode="dark"] .mx-ac-box,
    .mx-shell[data-mode="dark"] .mx-ac-menu,
    .mx-shell[data-mode="dark"] .mx-phone-btn,
    .mx-shell[data-mode="dark"] .mx-phone-menu,
    .mx-shell[data-mode="dark"] .mx-fu-card,
    .mx-shell[data-mode="dark"] .mx-tab,
    .mx-shell[data-mode="dark"] .mx-cfg-card,
    .mx-shell[data-mode="dark"] .mx-sec-head,
    .mx-shell[data-mode="dark"] .mx-mt-row,
    .mx-shell[data-mode="dark"] .mx-iconpick-pop,
    .mx-shell[data-mode="dark"] .mx-urlpick-pop,
    .mx-shell[data-mode="dark"] .mx-totp-setup,
    .mx-shell[data-mode="dark"] .mx-auth-panel {
        background: var(--card);
        color: var(--ink);
        border-color: var(--line);
    }
    .mx-shell[data-mode="dark"] .mx-auth { background: var(--bg); }
    .mx-shell[data-mode="dark"] .mx-tab.is-active {
        background: var(--card);
        border-bottom-color: var(--card);
        color: var(--brand);
    }

    .mx-shell[data-mode="dark"] .mx-input-icon > i,
    .mx-shell[data-mode="dark"] .mx-iconpick-prev,
    .mx-shell[data-mode="dark"] .mx-urlpick-prev,
    .mx-shell[data-mode="dark"] .mx-form-actions,
    .mx-shell[data-mode="dark"] .mx-soon,
    .mx-shell[data-mode="dark"] .mx-qr,
    .mx-shell[data-mode="dark"] .mx-fitem-ico,
    .mx-shell[data-mode="dark"] .mx-report-empty .mx-rep-ico,
    .mx-shell[data-mode="dark"] .mx-pw-meter,
    .mx-shell[data-mode="dark"] .mx-ticket-original,
    .mx-shell[data-mode="dark"] .mx-ticket-in,
    .mx-shell[data-mode="dark"] .mx-subtable th,
    .mx-shell[data-mode="dark"] .mx-subtable .mx-sub-rh,
    .mx-shell[data-mode="dark"] .mx-history th,
    .mx-shell[data-mode="dark"] .mx-badge-off,
    .mx-shell[data-mode="dark"] .mx-badge-muted,
    .mx-shell[data-mode="dark"] .mx-badge-role.mx-badge-more,
    .mx-shell[data-mode="dark"] .mx-mt-item.mx-mt-child > .mx-mt-row,
    .mx-shell[data-mode="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
        background: var(--inset);
        color: var(--ink-2);
        border-color: var(--line);
    }

    .mx-shell[data-mode="dark"] .mx-table tbody tr:hover td,
    .mx-shell[data-mode="dark"] .mx-history tbody tr:hover td,
    .mx-shell[data-mode="dark"] .mx-history tbody tr:nth-child(even) td,
    .mx-shell[data-mode="dark"] .mx-ac-item:hover,
    .mx-shell[data-mode="dark"] .mx-phone-item:hover,
    .mx-shell[data-mode="dark"] .mx-iconpick-cell:hover,
    .mx-shell[data-mode="dark"] .mx-urlpick-row:hover,
    .mx-shell[data-mode="dark"] .mx-fu-links a:hover,
    .mx-shell[data-mode="dark"] .mx-usermenu-trigger:hover,
    .mx-shell[data-mode="dark"] .mx-menu-toggle:hover {
        background: var(--inset-2);
        color: var(--ink);
    }

    .mx-shell[data-mode="dark"] .mx-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
    .mx-shell[data-mode="dark"] .mx-btn-danger { background: #7f1d1d; color: #fff; border-color: #7f1d1d; }
    .mx-shell[data-mode="dark"] .mx-btn:disabled,
    .mx-shell[data-mode="dark"] .mx-btn[disabled] { background: var(--inset); color: var(--muted); }

    .mx-shell[data-mode="dark"] .mx-card-head { background: var(--card); border-bottom-color: var(--line); }
    .mx-shell[data-mode="dark"] .mx-card-head h3,
    .mx-shell[data-mode="dark"] .mx-head h1,
    .mx-shell[data-mode="dark"] .mx-split-title { color: var(--ink); }
    .mx-shell[data-mode="dark"] .mx-sub,
    .mx-shell[data-mode="dark"] .mx-hint,
    .mx-shell[data-mode="dark"] .mx-muted,
    .mx-shell[data-mode="dark"] .mx-kv-l { color: var(--muted); }
    .mx-shell[data-mode="dark"] .mx-code,
    .mx-shell[data-mode="dark"] code.mx-code { background: var(--inset); color: var(--ink); border-color: var(--line); }

    .mx-shell[data-mode="dark"] .mx-fu-links a { background: var(--inset); color: var(--ink); border-color: var(--line); }

    .mx-shell[data-mode="dark"] .mx-input-auto { background: var(--card); color: var(--ink); }
    .mx-shell[data-mode="dark"] input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #0f1a28 inset; }

.mx-shell.mx-density-compact .mx-content {
    padding: 14px;
}

.mx-shell.mx-density-compact .mx-card {
    margin-bottom: 14px;
}

.mx-shell.mx-density-compact .mx-card-body.mx-pad {
    padding: 12px 14px;
}

.mx-shell.mx-density-compact .mx-table th {
    padding: 7px 12px;
}

.mx-shell.mx-density-compact .mx-table td {
    padding: 8px 12px;
}

.mx-shell.mx-density-compact .mx-input {
    padding: 7px 10px;
}

.mx-shell.mx-density-compact .mx-nav a {
    padding: 7px 12px;
}

.mx-shell.mx-density-compact .mx-navgrp-h {
    padding: 9px 12px 4px;
}

.mx-shell.mx-density-compact .mx-top {
    height: 50px;
}

.mx-shell.mx-density-compact .mx-form-row {
    gap: 12px;
}

.mx-shell.mx-density-compact .mx-head {
    margin-bottom: 12px;
}

.mx-shell.mx-menu-top {
    flex-direction: column;
}

    .mx-shell.mx-menu-top .mx-side {
        position: sticky;   
        top: 0;
        z-index: 40;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        overflow: visible;
    }

    .mx-shell.mx-menu-top .mx-brand {
        border-bottom: none;
        border-right: 1px solid #16273f;
        padding: 12px 16px 12px 4px;
        flex: 0 0 auto;
    }

    .mx-shell.mx-menu-top .mx-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;   
        overflow: visible;
        padding: 2px;
        row-gap: 6px;
        column-gap: 4px;
        flex: 1;
        min-width: 0;
    }

        .mx-shell.mx-menu-top .mx-nav > a {
            margin-bottom: 0;
            white-space: nowrap;
            padding: 8px 12px;
        }

    .mx-shell.mx-menu-top .mx-main {
        margin-left: 0;
    }

    .mx-shell.mx-menu-top .mx-top {
        top: 0;
    }

    .mx-shell.mx-menu-top .mx-navgrp {
        position: relative;
    }

    .mx-shell.mx-menu-top .mx-navgrp-h {
        width: auto;
        text-transform: none;
        font-size: 14px;
        letter-spacing: normal;
        color: #c7d2e0;
        padding: 8px 12px;
        border-radius: 9px;
        cursor: pointer;
        white-space: nowrap;
        gap: 6px;
    }

        .mx-shell.mx-menu-top .mx-navgrp-h:hover {
            background: #16273f;
            color: #fff;
        }

    .mx-shell.mx-menu-top .mx-navgrp.mx-open > .mx-navgrp-h,
    .mx-shell.mx-menu-top .mx-navgrp.mx-navgrp-active > .mx-navgrp-h {
        background: #16273f;
        color: #fff;
    }

    .mx-shell.mx-menu-top .mx-navgrp-caret {
        display: inline-block;
        font-size: 13px;
        transition: transform .15s ease;
    }

    .mx-shell.mx-menu-top .mx-navgrp.mx-open > .mx-navgrp-h .mx-navgrp-caret {
        transform: rotate(180deg);
    }

    .mx-shell.mx-menu-top .mx-navgrp-i {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 224px;
        z-index: 900;
        background: var(--side-bg);
        border: 1px solid #24374f;
        border-radius: 0;
        padding: 0;
        margin-top: 6px;
        box-shadow: 0 14px 34px rgba(0,0,0,.4);
    }

    .mx-shell.mx-menu-top .mx-navgrp.mx-open > .mx-navgrp-i {
        display: block;
    }

    .mx-shell.mx-menu-top .mx-navgrp-i a {
        white-space: nowrap;
        margin-bottom: 2px;
    }

    .mx-shell.mx-menu-top .mx-navgrp.mx-navgrp-end .mx-navgrp-i {
        left: auto;
        right: 0;
    }

    .mx-shell.mx-menu-top .mx-nav .mx-more { flex: 0 0 auto; }
    .mx-shell.mx-menu-top .mx-nav .mx-more.mx-more-hidden { display: none; }

    .mx-shell.mx-menu-top .mx-navgrp.mx-ovf { display: none; }

    .mx-shell.mx-menu-top .mx-more > .mx-navgrp-i { left: auto; right: 0; min-width: 240px; max-height: 70vh; overflow-y: auto; }

    .mx-shell.mx-menu-top .mx-more .mx-more-sec { padding: 4px 0; }
    .mx-shell.mx-menu-top .mx-more .mx-more-sec + .mx-more-sec { border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; }
    .mx-shell.mx-menu-top .mx-more .mx-more-sec-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8aa0b6; padding: 4px 12px 2px; }

.mx-side-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 39;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s;
}
.mx-side-backdrop.open { opacity: 1; visibility: visible; }
@media (min-width: 861px) { .mx-side-backdrop { display: none; } }

.mx-side .mx-user {
    color: #c7d2e0;
}

    .mx-side .mx-user .mx-usermenu-name {
        color: #eaf0f8;
    }

    .mx-side .mx-user .mx-usermenu-caret {
        color: #7f93ad;
    }

    .mx-side .mx-user .mx-usermenu-trigger:hover,
    .mx-side .mx-user .mx-usermenu-trigger:focus-visible {
        background: #16273f;
    }

    .mx-side .mx-user .mx-bell summary {
        color: #c7d2e0;
    }

        .mx-side .mx-user .mx-bell summary:hover {
            background: #16273f;
            color: #fff;
        }

.mx-shell.mx-menu-top .mx-menu-toggle {
    display: none;
}

.mx-shell.mx-menu-top .mx-top {
    display: none;
}

.mx-shell.mx-menu-top .mx-side .mx-user {
    flex: 0 0 auto;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid #16273f;
}

.mx-shell.mx-menu-left .mx-side .mx-user {
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #16273f;
}

.mx-shell.mx-collapsed .mx-side .mx-user {
    justify-content: center;
    padding: 12px 0;
}

    .mx-shell.mx-collapsed .mx-side .mx-user .mx-badge-area,
    .mx-shell.mx-collapsed .mx-side .mx-user .mx-usermenu-name,
    .mx-shell.mx-collapsed .mx-side .mx-user .mx-usermenu-caret {
        display: none;
    }

.mx-shell {
    --mx-cw: 100%;
}

    .mx-shell.mx-width-90 {
        --mx-cw: 90%;
    }

    .mx-shell.mx-width-80 {
        --mx-cw: 80%;
    }

    .mx-shell.mx-width-70 {
        --mx-cw: 70%;
    }

.mx-content {
    padding-left: max(24px, calc((100% - var(--mx-cw)) / 2));
    padding-right: max(24px, calc((100% - var(--mx-cw)) / 2));
}

.mx-top {
    padding-left: max(24px, calc((100% - var(--mx-cw)) / 2));
    padding-right: max(24px, calc((100% - var(--mx-cw)) / 2));
}

.mx-shell.mx-menu-top .mx-side {
    padding-left: max(16px, calc((100% - var(--mx-cw)) / 2));
    padding-right: max(16px, calc((100% - var(--mx-cw)) / 2));
}

.mx-foot {
    padding-left: max(24px, calc((100% - var(--mx-cw)) / 2));
    padding-right: max(24px, calc((100% - var(--mx-cw)) / 2));
}

.mx-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
    margin-top: auto; 
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    font-size: 12px;
}

.mx-foot-app {
    color: #98a2b3;
    font-weight: 600;
    letter-spacing: .02em;
}

.mx-link-sm {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand, #1466d8);
    margin-left: 8px;
    text-decoration: none;
}

    .mx-link-sm:hover {
        text-decoration: underline;
    }

.mx-generated {
    margin-top: 8px;
    background: var(--ok-bg, #e8f6ee);
    border: 1px solid #b7e4c7;
    color: var(--ok, #1c7a43);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .mx-generated .mx-hint {
        flex: 1 1 100%;
        margin: 2px 0 0;
    }

.mx-pw-wrap {
    position: relative;
    display: block;
}

.mx-input-icon.mx-has-eye-host {
    position: relative;
}

.mx-pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 15px;
    line-height: 1;
    z-index: 2;
}

    .mx-pw-toggle:hover {
        color: var(--ink-2, #475569);
    }

input.mx-has-eye {
    padding-right: 38px !important;
}

.mx-ac {
    position: relative;
}

.mx-ac-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--line, #d5deea);
    border-radius: 9px;
    background: #fff;
    padding: 0 12px;
}

    .mx-ac-box:focus-within {
        border-color: var(--brand, #1466d8);
        box-shadow: 0 0 0 3px rgba(20,102,216,.12);
    }

    .mx-ac-box .mx-input {
        border: 0 !important;
        box-shadow: none !important;
        padding-left: 0;
        background: transparent;
    }

.mx-ac-globe {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    color: #94a3b8;
    flex: 0 0 auto;
}

.mx-ac-menu {
    position: absolute;
    z-index: 60;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--line, #d5deea);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    max-height: 300px;
    overflow: auto;
}

.mx-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink, #1e293b);
}

    .mx-ac-item:hover {
        background: #f1f5fb;
    }

.mx-phone {
    position: relative;
    display: flex;
    align-items: stretch;
}

.mx-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line, #d5deea);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    background: #f8fafc;
    padding: 0 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-2, #475569);
    font-family: inherit;
    white-space: nowrap;
}

    .mx-phone-btn:hover {
        background: #eef2f8;
    }

.mx-phone-ico {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 14px;
}

.mx-phone-code {
    font-weight: 600;
}

    .mx-phone-code:empty {
        display: none;
    }

.mx-phone > .mx-input {
    border-left: 0;
    border-radius: 0 9px 9px 0;
}

.mx-phone-menu {
    position: absolute;
    z-index: 60;
    left: 0;
    top: 100%;
    margin-top: 4px;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid var(--line, #d5deea);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.mx-phone-search {
    margin: 8px;
    width: calc(100% - 16px);
}

.mx-phone-list {
    max-height: 260px;
    overflow: auto;
    padding-bottom: 4px;
}

.mx-phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink, #1e293b);
}

    .mx-phone-item:hover {
        background: #f1f5fb;
    }

.mx-phone-name {
    flex: 1;
}

.mx-phone-dial {
    color: var(--muted, #64748b);
}

.mx-fu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    margin-top: 8px;
}

.mx-fu-card {
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    background: #fbfcfe;
}

.mx-fu-month {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand, #1466d8);
    line-height: 1;
    margin-bottom: 12px;
}

    .mx-fu-month span {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--muted, #64748b);
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-top: 2px;
    }

.mx-fu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .mx-fu-links a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 9px;
        background: #fff;
        border: 1px solid var(--line, #e2e8f0);
        color: var(--ink, #1e293b);
        font-size: 13px;
    }

        .mx-fu-links a:hover {
            background: #f1f5fb;
            text-decoration: none;
        }

        .mx-fu-links a .mx-badge {
            margin-left: auto;
        }

        .mx-fu-links a i {
            color: var(--brand, #1466d8);
            width: 16px;
            text-align: center;
        }

.mx-fu-tablewrap {
    overflow-x: auto;
}

.mx-fu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .mx-fu-table > tbody > tr > td {
        border-bottom: 1px solid var(--line, #e2e8f0);
        padding: 5px 5px;
        vertical-align: middle;
    }

    .mx-fu-table .mx-fu-no {
        width: 48px;
        text-align: right;
        padding-right: 12px;
        color: var(--muted, #64748b);
        font-weight: 600;
        white-space: nowrap;
    }

    .mx-fu-table .mx-fu-label {
        width: 30%;
        color: var(--ink, #1e293b);
    }

    .mx-fu-table tr.mx-fu-sec > td {
        background: #eef2f8;
        font-weight: 700;
        color: var(--ink, #1e293b);
        padding: 10px 5px;
    }

    .mx-fu-table tr.mx-fu-sec .mx-fu-no {
        color: var(--brand, #1466d8);
    }

    .mx-fu-table tr.mx-fu-sec .mx-radio {
        font-weight: 400;
    }

    .mx-fu-table .mx-input {
        max-width: 440px;
    }

    .mx-fu-table .mx-input-wide {
        max-width: 100%;
    }

    .mx-fu-table .mx-input-icon {
        max-width: 440px;
    }

    .mx-fu-table .mx-radio {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 0px;
        align-items: center;
    }

        .mx-fu-table .mx-radio label {
            margin-right: 4px;
        }

.mx-sec-head {
    display: flex;
    align-items: center;
    background: #eef2f8;
    font-weight: 700;
    color: var(--ink, #1e293b);
    padding: 10px 12px;
    margin: 22px 0 12px;
    border-radius: 6px;
    font-size: 14px;
}

    .mx-sec-head .n {
        color: var(--brand, #1466d8);
        margin-right: 10px;
    }

.mx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--line, #e2e8f0);
    margin: 0 0 4px;
}

.mx-tab {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2, #475569);
    background: #f4f6fb;
    border: 1px solid var(--line, #e2e8f0);
    border-bottom: none;
    padding: 9px 18px;
    border-radius: 8px 8px 0 0;
    margin-bottom: -2px;
    cursor: pointer;
}

    .mx-tab:hover {
        background: #e9eef6;
        color: var(--ink, #1e293b);
    }

    .mx-tab.is-active {
        background: #fff;
        color: var(--brand, #1466d8);
        border-color: var(--line, #e2e8f0);
        border-bottom: 2px solid #fff;
    }

.mx-tabpane {
    display: none;
    padding-top: 10px;
}

    .mx-tabpane.is-active {
        display: block;
    }

.mx-subtable {
    width: 100%;
    border-collapse: collapse;
    margin: 2px 0;
}

    .mx-subtable th {
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: var(--ink-2, #475569);
        background: #f4f6fb;
        border: 1px solid var(--line, #e2e8f0);
        padding: 7px 8px;
        white-space: nowrap;
    }

    .mx-subtable td {
        border: 1px solid var(--line, #e2e8f0);
        padding: 6px 8px;
        vertical-align: middle;
    }

        .mx-subtable td .mx-input {
            width: 100%;
            max-width: 100%;
            min-width: 70px;
        }

    .mx-subtable .mx-sub-rh {
        text-align: center;
        font-weight: 700;
        color: var(--ink, #1e293b);
        background: #fbfcfe;
        white-space: nowrap;
    }

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

    .mx-grid-2 .mx-field {
        width: 100%;
    }

@media (max-width: 760px) {
    .mx-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.mx-accept label {
    margin-right: 22px;
    font-weight: 600;
}

.mx-input-auto {
    background: #eef2f7;
    color: var(--ink-2);
    font-weight: 600;
    letter-spacing: .02em;
}

.mx-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.mx-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

    .mx-toggle > input {

        position: absolute !important;
        opacity: 0 !important;
        width: 1px;
        height: 1px;
        pointer-events: none;
    }

.mx-toggle-track {
    position: relative;
    width: 42px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background .2s ease;
    flex: 0 0 auto;
}

.mx-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(16,24,40,.3);
    transition: transform .2s ease;
}

.mx-toggle > input:checked + .mx-toggle-track {
    background: var(--brand);
}

    .mx-toggle > input:checked + .mx-toggle-track .mx-toggle-thumb {
        transform: translateX(18px);
    }

.mx-toggle > input:focus-visible + .mx-toggle-track {
    box-shadow: 0 0 0 3px rgba(20,102,216,.25);
}

.mx-toggle > input:disabled + .mx-toggle-track {
    opacity: .55;
}

.mx-toggle-text {
    font-size: 14px;
    color: var(--ink);
}

.mx-radio-list label {
    display: inline;
    margin-right: 8px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    line-height: 2;
}

.mx-radio-list input[type=radio] {
    display: inline;
    margin-right: 8px;
    vertical-align: middle;
}

.mx-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 180px;
    padding: 6px 4px 0;
}

.mx-chart-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.mx-chart-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.mx-chart-track {
    flex: 1;
    width: 100%;
    max-width: 66px;
    display: flex;
    align-items: flex-end;
}

.mx-chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
    border-radius: 8px 8px 0 0;
    min-height: 2px;
}

.mx-chart-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.mx-bell {
    position: relative;
}

    .mx-bell summary {
        list-style: none;
        cursor: pointer;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: var(--ink-2);
    }

        .mx-bell summary::-webkit-details-marker {
            display: none;
        }

        .mx-bell summary:hover {
            background: var(--brand-050);
            color: var(--brand);
        }

        .mx-bell summary i {
            font-size: 17px;
        }

.mx-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mx-bell[open] > summary {
    background: var(--brand-050);
    color: var(--brand);
}

.mx-bell-menu {
    position: absolute;
    right: 0;
    top: 46px;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(6,18,42,.16);
    z-index: 60;
    overflow: hidden;
}

.mx-bell-head {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid var(--line-2);
}

.mx-bell-empty {
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.mx-bell-item {
    display: flex;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink);
    text-decoration: none;
    align-items: flex-start;
}

    .mx-bell-item:hover {
        background: #f7faff;
        text-decoration: none;
    }

    .mx-bell-item i {
        color: var(--brand);
        margin-top: 2px;
    }

.mx-bell-subj {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.mx-bell-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.mx-bell-foot {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

    .mx-bell-foot:hover {
        background: #f7faff;
        text-decoration: none;
    }

.mx-ticket-msg {
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    max-width: 720px;
}

.mx-ticket-original {
    background: #fafbfd;
}

.mx-ticket-in {
    background: #fafbfd;
}

.mx-ticket-out {
    background: var(--brand-050);
    border-color: #cfe0fb;
    margin-left: auto;
}

.mx-ticket-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mx-ticket-time {
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
}

.mx-ticket-body {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.55;
}

.mx-reply {
    margin-top: 8px;
    border-top: 1px solid var(--line-2);
    padding-top: 16px;
}

.mx-settings-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}

    .mx-settings-nav a, .mx-settings-nav span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
        color: var(--muted);
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        text-decoration: none;
    }

        .mx-settings-nav a:hover {
            color: var(--ink);
            text-decoration: none;
        }

    .mx-settings-nav .active {
        color: var(--brand);
        border-bottom-color: var(--brand);
    }

.mx-kv {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0;
}

.mx-kv-l {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mx-kv-v {
    font-size: 14px;
    color: var(--ink);
}

.mx-code {
    display: inline-block;
    background: #274772d6;
    color: #d6e4f7;
    padding: 2px 6px;
    border-radius: 8px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    letter-spacing: 2px;
    word-break: break-all;
}

.mx-code-sm {
    font-size: 11px;
    letter-spacing: 0;
    background: #f1f4f8;
    color: var(--ink-2);
}

.mx-soon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    background: #fafbfd;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 16px 18px;
}

    .mx-soon i {
        color: var(--brand);
    }

.mx-totp-setup {
    background: #fafbfd;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 16px 18px;
    max-width: 560px;
}

.mx-req {
    color: var(--danger);
}

.mx-form-row .mx-field {
    flex: 1 1 220px;
    min-width: 0;
}

.mx-form-row .mx-input, .mx-form-row .mx-input-icon {
    max-width: none;
    width: 100%;
}

.mx-form-row .mx-field[style*="100%"] {
    flex-basis: 100%;
}

input[type=date].mx-input, input[type=time].mx-input, input[type=datetime-local].mx-input, input[type=month].mx-input {
    cursor: pointer;
}

input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=month]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .6;
    padding-left: 4px;
}

    input[type=date]::-webkit-calendar-picker-indicator:hover,
    input[type=time]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }

.mx-totp-cols {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 10px 0 6px;
}

.mx-qr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    line-height: 0;
}

.mx-qr-row {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mx-qr-side {
    flex: 1 1 180px;
    min-width: 160px;
}

.mx-auth-illus {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f8bf1, #0f4fa8);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 26px rgba(15,79,168,.35);
}

.mx-qr img {
    width: 180px;
    height: 180px;
    display: block;
}

.mx-totp-keys {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mx-cfg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

.mx-cfg-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: #fff;
    border: 1px solid var(--a-line, #d9e2ee);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(16,42,73,.05);
    transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

    .mx-cfg-card:hover {
        border-color: #b9cbe4;
        box-shadow: 0 6px 18px rgba(16,42,73,.10);
    }

    .mx-cfg-card:active {
        transform: translateY(1px);
    }

.mx-cfg-ico {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #2563c9, #173a63);
}

.mx-cfg-txt {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .mx-cfg-txt b {
        font-size: 15px;
        color: #14243f;
    }

    .mx-cfg-txt small {
        color: #5b6b82;
        font-size: 12.5px;
        line-height: 1.4;
    }

.mx-cfg-go {
    margin-left: auto;
    color: #9fb0c7;
    font-size: 18px;
}

.mx-es-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(13, 27, 46, .55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .mx-es-overlay.mx-es-open {
        display: flex;
    }

.mx-es-modal {
    background: var(--card);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius);
    box-shadow: 0 20px 48px rgba(16,24,40,.28);
    overflow: hidden;
    animation: mxEsIn .14s ease-out;
}

@keyframes mxEsIn {
    from {
        transform: translateY(8px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.mx-es-head {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line-2);
}

.mx-es-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-050);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.mx-es-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--ink);
}

.mx-es-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

.mx-es-body {
    padding: 16px 20px 6px;
}

.mx-es-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    margin: 12px 0 5px;
}

.mx-es-body .mx-es-label:first-child {
    margin-top: 0;
}

.mx-es-opt {
    font-weight: 400;
    color: var(--muted);
}

.mx-cr-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 2px;
}

.mx-cr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: var(--brand-050);
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .mx-cr-field .mx-es-label {
        margin: 0;
    }

    .mx-cr-field textarea {
        resize: vertical;
    }

.mx-es-legal {
    margin: 14px 0 4px;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.45;
}

    .mx-es-legal i {
        color: var(--brand);
        margin-right: 4px;
    }

.mx-es-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
}

.mx-es-modal.mx-es-attn {
    animation: mxEsAttn .3s ease;
}

@keyframes mxEsAttn {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.045);
    }

    60% {
        transform: scale(.985);
    }

    100% {
        transform: scale(1);
    }
}

.mx-loader {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 27, 46, .32);
}

    .mx-loader.mx-loader-on {
        display: flex;
    }

.mx-loader-box {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(16,24,40,.24);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mx-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-block;
    border: 3px solid var(--brand-050);
    border-top-color: var(--brand);
    animation: mxSpin .7s linear infinite;
}

@keyframes mxSpin {
    to {
        transform: rotate(360deg);
    }
}

.mx-spin {
    position: relative;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mx-spin-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--brand-050);
    border-top-color: var(--brand);
    animation: mxSpin .7s linear infinite;
}

.mx-spin-logo {
    position: relative;
    z-index: 1;
}

.mx-toasts {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 400px;
    max-width: calc(100vw - 36px);
    pointer-events: none;
}

.mx-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border-radius: 12px;
    padding: 14px 16px;
    color: #142033;
    box-shadow: 0 10px 26px rgba(16,24,40,.16);
    line-height: 1.35;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .22s ease, transform .22s ease;
}

    .mx-toast.mx-toast-in {
        opacity: 1;
        transform: none;
    }

    .mx-toast.mx-toast-out {
        opacity: 0;
        transform: translateX(18px);
    }

.mx-toast-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.mx-toast-c {
    flex: 1 1 auto;
    min-width: 0;
}

.mx-toast-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.mx-toast-msg {
    font-size: 13.5px;
    margin-top: 3px;
    word-break: break-word;
    color: #24344a;
}

.mx-toast-x {
    flex: 0 0 auto;
    background: none;
    border: 0;
    color: inherit;
    opacity: .65;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    margin: -2px -4px 0 4px;
}

    .mx-toast-x:hover {
        opacity: 1;
    }

.mx-toast-success {
    background: #b8edc9;
}

    .mx-toast-success .mx-toast-ico {
        color: #1f8a4c;
    }

.mx-toast-info {
    background: #bfe6f6;
}

    .mx-toast-info .mx-toast-ico {
        color: #1f7fb0;
    }

.mx-toast-warn {
    background: #fbe4b6;
}

    .mx-toast-warn .mx-toast-ico {
        color: #b9791b;
    }

.mx-toast-error {
    background: #f6c1c1;
}

    .mx-toast-error .mx-toast-ico {
        color: #c0392b;
    }

@media (max-width: 520px) {
    .mx-toasts {
        left: 12px;
        right: 12px;
        top: 12px;
        width: auto;
    }
}

.mx-dash-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 20px; 
}

    .mx-dash-grid > .mx-card {
        margin: 0;
    }

.mx-stat-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.mx-stat.mx-kpi-ok {
    border-left: 3px solid var(--ok);
    background: radial-gradient(120% 130% at 100% 0%, rgba(6, 118, 71, .08), transparent 46%), linear-gradient(180deg, #ffffff, #f6fbf8);
}

    .mx-stat.mx-kpi-ok .mx-stat-value i {
        color: var(--ok);
    }

.mx-stat.mx-kpi-warn {
    border-left: 3px solid var(--warn);
    background: radial-gradient(120% 130% at 100% 0%, rgba(181, 71, 8, .08), transparent 46%), linear-gradient(180deg, #ffffff, #fffdf6);
}

    .mx-stat.mx-kpi-warn .mx-stat-value i {
        color: var(--warn);
    }

.mx-stat.mx-kpi-danger {
    border-left: 3px solid var(--danger);
    background: radial-gradient(120% 130% at 100% 0%, rgba(180, 35, 24, .10), transparent 46%), linear-gradient(180deg, #ffffff, #fff7f6);
}

    .mx-stat.mx-kpi-danger .mx-stat-value, .mx-stat.mx-kpi-danger .mx-stat-value i {
        color: var(--danger);
    }

.mx-target-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.mx-target-big {
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.mx-target-goal {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
}

.mx-target-pct {
    margin-left: auto;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand);
}

.mx-prog-lg {
    height: 16px;
    border-radius: 9px;
}

    .mx-prog-lg .mx-prog-bar {
        background: linear-gradient(90deg, #1f8bf1, var(--brand-dark));
    }

.mx-target-legend {
    display: flex;
    gap: 22px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-2);
}

    .mx-target-legend b {
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

.mx-muted-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 4px 0 0;
}

.mx-prog-bar-brand {
    background: linear-gradient(90deg, #1f8bf1, var(--brand)) !important;
}

.mx-prog-bar-warn {
    background: linear-gradient(90deg, #f0a44e, var(--warn)) !important;
}

.mx-prog-label-sm {
    flex-basis: 56px;
}

.mx-prog-label-wide {
    flex-basis: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mx-funnel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mx-fn-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mx-fn-label {
    flex: 0 0 140px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.mx-fn-track {
    flex: 1 1 auto;
    height: 26px;
    background: var(--line-2);
    border-radius: 7px;
    overflow: hidden;
}

.mx-fn-bar {
    height: 100%;
    border-radius: 7px;
    transition: width .3s ease;
}

.mx-fn-1 {
    background: linear-gradient(90deg, #4d9bf0, #1f7fe0);
}

.mx-fn-2 {
    background: linear-gradient(90deg, #2f8ee6, var(--brand));
}

.mx-fn-3 {
    background: linear-gradient(90deg, #22a06b, #12805c);
}

.mx-fn-4 {
    background: linear-gradient(90deg, #e8a13c, var(--warn));
}

.mx-fn-val {
    flex: 0 0 52px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.mx-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.mx-mini {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 13px;
    background: var(--card);
}

.mx-mini-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink-2);
    line-height: 1;
}

.mx-mini-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 600;
}

.mx-mini-rate {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}

.mx-mini-danger.on {
    border-color: #f2b8b5;
    background: var(--danger-bg);
}

    .mx-mini-danger.on .mx-mini-val {
        color: var(--danger);
    }

.mx-mini-warn.on {
    border-color: #fdd9a8;
    background: var(--warn-bg);
}

    .mx-mini-warn.on .mx-mini-val {
        color: var(--warn);
    }

.mx-mini-muted.on .mx-mini-val {
    color: var(--ink);
}

.mx-split-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    margin-bottom: 8px;
}

.mx-split {
    display: flex;
    height: 16px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--line-2);
}

.mx-split-a {
    background: var(--brand);
}

.mx-split-b {
    background: var(--warn);
}

.mx-split-c {
    background: #12805c;
}

.mx-split-d {
    background: #98a2b3;
}

.mx-split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 9px;
    font-size: 13px;
    color: var(--ink-2);
}

.mx-split-wrap {
    margin-top: 18px;
}

.mx-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

.mx-dot-a {
    background: var(--brand);
}

.mx-dot-b {
    background: var(--warn);
}

.mx-dot-c {
    background: #12805c;
}

.mx-dot-d {
    background: #98a2b3;
}

.mx-reason-col .mx-prog-row {
    padding: 5px 0;
}

.mx-report-hd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
}

.mx-report-code {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.mx-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
}

.mx-report-meta-item {
    display: flex;
    flex-direction: column;
}

.mx-report-meta-l {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    font-weight: 700;
}

.mx-report-meta-v {
    font-size: 14px;
    color: var(--ink-2);
    font-weight: 600;
}

.mx-report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mx-kv {
    border-collapse: collapse;
    width: 100%;
    max-width: 640px;
}

    .mx-kv th, .mx-kv td {
        text-align: left;
        padding: 6px 12px;
        border-bottom: 1px solid var(--line-2);
        font-size: 13.5px;
        vertical-align: top;
    }

    .mx-kv th {
        width: 45%;
        color: var(--muted);
        font-weight: 600;
    }

    .mx-kv td {
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

.mx-table-sm th, .mx-table-sm td {
    padding: 6px 10px;
    font-size: 13px;
}

.mx-subject-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: start;
}

.mx-subject-nav {
    margin: 0;
}

.mx-subject-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .mx-subject-side .mx-card {
        margin: 0;
    }

@media (max-width: 900px) {
    .mx-subject-grid {
        grid-template-columns: 1fr;
    }
}

.mx-fitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-2);
    text-decoration: none;
    color: var(--ink);
    transition: background .12s ease;
}

    .mx-fitem:last-child {
        border-bottom: 0;
    }

    .mx-fitem:hover {
        background: var(--brand-050);
    }

.mx-fitem-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: #eef1f6;
    color: var(--muted);
}

.mx-fi-complete {
    background: var(--ok-bg);
    color: var(--ok);
}

.mx-fi-due {
    background: var(--warn-bg);
    color: var(--warn);
}

.mx-fi-enroll {
    background: var(--brand-050);
    color: var(--brand);
}

.mx-fi-fail {
    background: var(--warn-bg);
    color: var(--warn);
}

.mx-fitem-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mx-fitem-name {
    font-weight: 600;
    font-size: 14px;
}

.mx-fitem-sub {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mx-fitem .mx-badge {
    flex: 0 0 auto;
}

.mx-fitem-arrow {
    color: var(--muted);
    font-size: 15px;
    flex: 0 0 auto;
}

.mx-fitem-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.mx-faction {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    border: 1px solid var(--line);
    background: var(--card);
    text-decoration: none;
    font-size: 14px;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
}

    .mx-faction:hover {
        color: var(--brand);
        border-color: var(--brand);
        background: var(--brand-050);
    }

    .mx-faction.is-on {
        color: #12b76a;
        border-color: #6ce9a6;
    }

    .mx-faction.is-disabled {
        opacity: .3;
        cursor: default;
        pointer-events: none;
    }

.mx-fdrag {
    flex: 0 0 auto;
    width: 22px;
    text-align: center;
    color: var(--muted);
    cursor: grab;
}

    .mx-fdrag:active {
        cursor: grabbing;
    }

.mx-fitem.mx-dragging {
    opacity: .45;
}

.mx-fitem.mx-drop-before {
    box-shadow: inset 0 2px 0 0 var(--brand);
}

.mx-fitem.mx-drop-after {
    box-shadow: inset 0 -2px 0 0 var(--brand);
}

.mx-badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.mx-audit-old {
    color: var(--muted);
    text-decoration: line-through;
}

.mx-audit-new {
    color: var(--ink);
    font-weight: 600;
}

.mx-muted {
    color: var(--muted);
}

.mx-flagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mx-link-strong {
    font-weight: 700;
    color: var(--brand);
}

    .mx-link-strong:hover {
        text-decoration: underline;
    }

.mx-mon-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mx-mon-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--line);
}

.mx-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

    .mx-tab:hover {
        color: var(--ink-2);
    }

.mx-tab-on {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.mx-mon-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

    .mx-mon-filter label {
        font-weight: 600;
    }

.mx-mon-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    align-items: stretch;
}

    .mx-mon-kpis .mx-stat {
        margin: 0;
    }

.mx-donut-card {
    grid-column: span 2;
}

.mx-donut-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.mx-donut {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    flex: 0 0 auto;
    position: relative;
}

    .mx-donut::after {
        content: "";
        position: absolute;
        inset: 22%;
        background: var(--card);
        border-radius: 50%;
    }

.mx-donut-leg-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.mx-donut-leg {
    display: flex;
    align-items: center;
    gap: 7px;
}

    .mx-donut-leg b {
        font-variant-numeric: tabular-nums;
    }

@media (max-width: 560px) {
    .mx-donut-card {
        grid-column: span 1;
    }
}

.mx-pdonut-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.mx-pdonut {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mx-pdonut::after {
        content: "";
        position: absolute;
        inset: 20%;
        background: var(--card);
        border-radius: 50%;
    }

.mx-pdonut-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.mx-pdonut-pct {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mx-pdonut-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.mx-scols {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 150px;
    padding-top: 8px;
}

.mx-scol {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.mx-scol-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.mx-scol-track {
    width: 100%;
    max-width: 56px;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
}

.mx-scol-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    min-height: 2px;
}

.mx-scol-lbl {
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 6px;
    text-align: center;
}

.mx-scols-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--ink-2);
    flex-wrap: wrap;
}

.mx-rings {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.mx-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 84px;
}

.mx-ring-dial {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mx-ring-dial::after {
        content: "";
        position: absolute;
        inset: 20%;
        background: var(--card);
        border-radius: 50%;
    }

.mx-ring-pct {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mx-ring-lbl {
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 7px;
    text-align: center;
    line-height: 1.2;
}

.mx-ring-sub {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.mx-sdv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted);
    background: var(--card);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 14px;
}

.mx-sdv-done {
    border-left-color: var(--ok);
    background: var(--ok-bg);
}

.mx-sdv-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.mx-sdv-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-050);
    color: var(--brand);
    flex: 0 0 auto;
}

.mx-sdv-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
}

.mx-sdv-status {
    font-size: 12.5px;
    color: var(--ink-2);
    margin-top: 1px;
}

    .mx-sdv-status .mx-badge {
        margin-right: 6px;
    }

.mx-sdv-act {
    flex: 0 0 auto;
}

.mx-sdv-banner {
    border-left: 4px solid var(--muted);
    margin-bottom: 16px;
}

    .mx-sdv-banner.mx-sdv-pending {
        border-left-color: var(--warn);
    }

    .mx-sdv-banner.mx-sdv-done {
        border-left-color: var(--ok);
    }

.mx-sdv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mx-sdv-banner .mx-sdv-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
}

.mx-sdv-text {
    min-width: 0;
}

.mx-sdv-sub {
    font-size: 12.5px;
    color: var(--ink-2);
    margin-top: 2px;
    line-height: 1.35;
}

.mx-sdv-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.mx-sdv-pending .mx-sdv-ico {
    background: var(--warn-bg);
    color: var(--warn);
}

.mx-sdv-done .mx-sdv-ico {
    background: var(--ok-bg);
    color: var(--ok);
}

@media (max-width: 560px) {
    .mx-sdv-actions {
        width: 100%;
    }

        .mx-sdv-actions .mx-btn {
            flex: 1 1 auto;
        }
}

.mx-summary-strip {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.mx-rep-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .mx-rep-head > h3 {
        margin: 0;
        flex: 1 1 auto;
    }

.mx-rep-ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-050);
    color: var(--brand);
    font-size: 16px;
}

.mx-rep-done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--ok);
    background: var(--ok-bg);
    border: 1px solid var(--ok);
    border-radius: 999px;
    padding: 3px 11px;
}

.mx-report-empty .mx-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.mx-report-empty-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

.mx-report-empty .mx-rep-ico {
    width: 32px;
    height: 32px;
    font-size: 14px;
    background: #eef2f7;
    color: var(--muted);
}

.mx-report-empty-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
}

.mx-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .18s ease;
}

    .mx-confirm-overlay.mx-confirm-in {
        opacity: 1;
    }

.mx-confirm {
    width: 100%;
    max-width: 420px;
    padding: 26px 24px 22px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, .35);
    transform: translateY(10px) scale(.97);
    transition: transform .18s ease;
}

.mx-confirm-overlay.mx-confirm-in .mx-confirm {
    transform: none;
}

.mx-confirm-ico {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--brand-050);
    color: var(--brand);
}

.mx-confirm-danger .mx-confirm-ico {
    background: var(--danger-bg);
    color: var(--danger);
}

.mx-confirm-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 6px;
}

.mx-confirm-msg {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 22px;
}

.mx-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .mx-confirm-actions .mx-btn {
        min-width: 116px;
        justify-content: center;
    }

.mx-sum-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;

    background: radial-gradient(120% 140% at 100% 0%, rgba(37, 99, 235, .05), transparent 52%), linear-gradient(180deg, #ffffff, #fbfcfe);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    min-width: 150px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .mx-sum-chip:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 24, 40, .10);
        border-color: #c8d2e4;
    }

    .mx-sum-chip > i {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-050);
        color: var(--brand);
        flex: 0 0 auto;
    }

    .mx-sum-chip > div {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }

.mx-sum-l {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    font-weight: 700;
}

.mx-sum-v {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mx-sum-ok {
    background: radial-gradient(120% 140% at 100% 0%, rgba(6, 118, 71, .07), transparent 52%), linear-gradient(180deg, #ffffff, #f6fbf8);
}

    .mx-sum-ok > i {
        background: var(--ok-bg);
        color: var(--ok);
    }

.mx-sum-warn {
    background: radial-gradient(120% 140% at 100% 0%, rgba(181, 71, 8, .07), transparent 52%), linear-gradient(180deg, #ffffff, #fffdf6);
}

    .mx-sum-warn > i {
        background: var(--warn-bg);
        color: var(--warn);
    }

.mx-sum-off {
    background: radial-gradient(120% 140% at 100% 0%, rgba(180, 35, 24, .07), transparent 52%), linear-gradient(180deg, #ffffff, #fff7f6);
}

    .mx-sum-off > i {
        background: var(--danger-bg);
        color: var(--danger);
    }

.mx-logo-preview {
    display: block;
    max-width: 120px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 8px;
    background: var(--card);
}

@media print {
    .mx-summary-strip {
        display: none !important;
    }
}

.mx-fitem-sdv {
    flex: 0 0 auto;
    margin-right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ok-bg);
    color: var(--ok);
    font-size: 11px;
}

.mx-fitem-sdv-pending {
    background: var(--line-2);
    color: var(--muted);
}

.mx-sdv-lock {
    display: inline-block;
    margin-left: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--warn);
}

    .mx-sdv-lock i {
        margin-right: 3px;
    }

.mx-geo-card {
}

.mx-geo-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    align-items: start;
}

.mx-geo-map {
    position: relative;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

    .mx-geo-map svg {
        display: block;
        width: 100%;
        height: auto;
    }

.mx-geo-land {
    fill: #dfe6f1;
    stroke: #fff;
    stroke-width: .4;
}

.mx-geo-bubble {
    fill: var(--brand);
    fill-opacity: .55;
    stroke: var(--brand);
    stroke-width: 1;
}

.mx-geo-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mx-geo-row {
    display: grid;
    grid-template-columns: 1.6em 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

    .mx-geo-row:last-child {
        border-bottom: 0;
    }

.mx-geo-flag {
    font-size: 15px;
}

.mx-geo-bar {
    height: 7px;
    border-radius: 4px;
    background: var(--brand);
    opacity: .85;
}

.mx-geo-n {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--ink);
}

.mx-geo-sub {
    color: var(--muted);
    font-weight: 600;
    font-size: 11px;
}

@media (max-width: 820px) {
    .mx-geo-wrap {
        grid-template-columns: 1fr;
    }
}

.mx-geo-toolbar {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
}

.mx-geo-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-2);
    border-radius: 8px;
    cursor: pointer;
}

    .mx-geo-tab:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    .mx-geo-tab.mx-geo-on {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

.mx-geo-views {
    min-width: 0;
}

.mx-geo-view[hidden] {
    display: none !important;
}

.mx-geo-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 5px;
    border-radius: 5px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .02em;
}

.mx-geo-flag {
    font-size: 15px;
}

.mx-dash-grid > .mx-card {
    position: relative;
}

.mx-card-wide {
    grid-column: 1 / -1;
}

.mx-card-resize {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    padding: 4px 7px;
    border-radius: 6px;
    line-height: 1;
}

    .mx-card-resize:hover {
        background: var(--bg);
        color: var(--brand);
    }

.mx-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 38px;
    padding: 0 10px;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

    .mx-menu-toggle:hover {
        background: #eef1f6;
    }

    .mx-menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: #475467;
        border-radius: 2px;
        transition: .2s;
    }

.mx-side, .mx-main {
    transition: width .18s ease, margin-left .18s ease;
}

.mx-shell.mx-collapsed .mx-side {
    width: 64px;
}

.mx-shell.mx-collapsed .mx-main {
    margin-left: 64px;
}

.mx-shell.mx-collapsed .mx-brand {
    justify-content: center;
    padding: 18px 0;
}

    .mx-shell.mx-collapsed .mx-brand > div:not(.mx-brand-logo) {
        display: none;
    }

.mx-shell.mx-collapsed .mx-nav {
    padding: 10px 8px;
}

    .mx-shell.mx-collapsed .mx-nav a {
        justify-content: center;
        gap: 0;
        padding: 10px 0;
        font-size: 0;
        position: relative;
    }

        .mx-shell.mx-collapsed .mx-nav a i {
            font-size: 15px;
            width: auto;
        }

.mx-shell.mx-collapsed .mx-navgrp-h {
    display: none;
}

.mx-shell.mx-collapsed .mx-navgrp-i {
    display: block;
}

.mx-shell.mx-collapsed .mx-side-info, .mx-shell.mx-collapsed .mx-side-foot {
    display: none;
}

.mx-shell.mx-collapsed .mx-nav a:hover::after {
    content: attr(data-label);
    position: absolute;
    left: 100%;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f1728;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    padding: 6px 9px;
    border-radius: 6px;
    z-index: 60;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

@media (max-width: 900px) {
    .mx-shell.mx-collapsed .mx-side {
        width: 248px;
    }

    .mx-shell.mx-collapsed .mx-main {
        margin-left: 0;
    }

    .mx-shell.mx-collapsed .mx-brand > div, .mx-shell.mx-collapsed .mx-nav a {
        font-size: revert;
    }

    .mx-shell.mx-collapsed .mx-navgrp-h {
        display: block;
    }
}

.mx-lesion-combined th.mx-lc-field {
    text-align: left;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    background: var(--line-2);
}

.mx-lesion-combined td {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.mx-menutree-hint { margin: 0 0 12px; color: var(--ink-2, #64748b); display: flex; align-items: center; gap: 8px; }
.mx-menutree-hint i { color: var(--brand, #6c63ff); }

.mx-menutree, .mx-mt-children { list-style: none; margin: 0; padding: 0; }
.mx-menutree { padding: 2px 0; }

.mx-mt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 6px 0;
    background: #fff;
    border: 1px solid var(--line, #e5e8ee);
    border-radius: 10px;
    transition: border-color .12s, box-shadow .12s, background .12s;
}
.mx-mt-row:hover { border-color: #cbd5e1; box-shadow: 0 1px 4px rgba(15,23,42,.06); }

.mx-mt-grip { flex: 0 0 auto; cursor: grab; color: #9aa6b6; padding: 2px 4px; }
.mx-mt-grip:active { cursor: grabbing; }

.mx-mt-main { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.mx-mt-main .mx-mi-icon { flex: 0 0 auto; width: 18px; text-align: center; color: var(--brand, #6c63ff); }
.mx-mt-noicon { color: #c2cad6; }
.mx-mt-title { font-weight: 600; color: var(--ink, #1f2937); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mx-mt-url { flex: 0 1 300px; min-width: 0; color: var(--ink-2, #64748b); font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.mx-mt-url-head { font-family: inherit; font-style: italic; color: #94a3b8; }

.mx-mt-stat { flex: 0 0 auto; }
.mx-mt-edit { flex: 0 0 auto; }
.mx-mt-del { flex: 0 0 auto; color: var(--danger, #b42318); }
.mx-mt-del:hover { background: var(--danger-bg, #fef3f2); border-color: #f2b8b5; color: var(--danger, #b42318); }

.mx-mt-roles { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; max-width: 220px; overflow: hidden; }
.mx-badge-muted { background: #f1f3f5; color: #98a2b3; font-weight: 500; }
.mx-badge-role {
    background: var(--brand-050, #eef0ff);
    color: var(--brand-dark, #4b45c6);
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}
.mx-badge-role.mx-badge-more { background: #eef1f6; color: #64748b; }

.mx-roles-block { margin: 14px 2px 2px; padding-top: 14px; border-top: 1px dashed var(--line, #e5e8ee); }
.mx-roles-label { display: block; font-weight: 600; color: var(--ink, #1f2937); margin-bottom: 8px; }
.mx-rolelist { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mx-rolelist label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink-2, #475569);
    padding: 4px 2px; cursor: pointer; white-space: nowrap; }
.mx-rolelist input[type="checkbox"] { margin: 0; }

.mx-mt-children { margin-left: 34px; padding-left: 12px; border-left: 2px solid #eef1f6; }
.mx-mt-children:empty { border-left: 0; min-height: 0; padding-left: 12px; }
.mx-mt-item.mx-mt-l2 > .mx-mt-row { background: #fafbfd; }
.mx-mt-item.mx-mt-l3 > .mx-mt-row { background: #f1f4f9; }

.mx-mt-children.mx-mt-dropzone {
    min-height: 26px;
    border-left: 2px solid var(--brand, #6c63ff);
    background: rgba(108,99,255,.08);
    border-radius: 0 8px 8px 0;
}
.mx-mt-children.mx-mt-dropzone:empty::after {
    content: "Drop here to nest";
    display: block; padding: 4px 10px; color: var(--brand, #6c63ff); font-size: 12px; font-style: italic;
}
.mx-mt-dragging { opacity: .45; }
.mx-mt-dragging .mx-mt-row { border-style: dashed; }

@media (max-width: 720px) {
    .mx-mt-url { display: none; }
}

.mx-static-field {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 8px 12px;
    background: #f5f7fb; border: 1px solid var(--line-2, #e5e8ee); border-radius: 9px;
    color: var(--ink-2, #475569); font-size: 14px;
}
.mx-static-field i { color: #94a3b8; }

.mx-iconpick-wrap { display: flex; align-items: stretch; width: 100%; max-width: 460px; }
.mx-iconpick-prev {
    flex: 0 0 auto; width: 42px; display: inline-flex; align-items: center; justify-content: center;
    background: #f1f4f9; border: 1px solid #cfd6e2; border-right: 0; border-radius: 9px 0 0 9px;
    color: var(--brand, #6c63ff); font-size: 15px;
}
.mx-iconpick-wrap .mx-iconpick { border-top-left-radius: 0; border-bottom-left-radius: 0; cursor: pointer; }

.mx-iconpick-pop {
    position: absolute; z-index: 1200; display: none;
    width: 360px; max-width: calc(100vw - 24px);
    background: #fff; border: 1px solid #d7deea; border-radius: 12px;
    box-shadow: 0 18px 44px rgba(15,23,42,.22); overflow: hidden;
}
.mx-iconpick-pop.open { display: block; }
.mx-iconpick-head { padding: 10px; border-bottom: 1px solid #eef1f6; }
.mx-iconpick-search { width: 100%; }
.mx-iconpick-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 4px; padding: 10px; max-height: 320px; overflow-y: auto;
}
.mx-iconpick-cell {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px; border: 1px solid transparent; border-radius: 9px;
    background: transparent; cursor: pointer; color: var(--ink, #334155);
}
.mx-iconpick-cell:hover { background: #f1f4f9; border-color: #dbe2ee; }
.mx-iconpick-cell i { font-size: 18px; color: var(--brand, #6c63ff); }
.mx-iconpick-cell span { font-size: 10.5px; color: #64748b; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-iconpick-none { padding: 24px; text-align: center; color: #94a3b8; grid-column: 1 / -1; }
.mx-iconpick-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid #eef1f6; }
.mx-iconpick-count { font-size: 12px; color: #94a3b8; }

.mx-mt-grip { touch-action: none; }
body.mx-mt-dragging-active { user-select: none; -webkit-user-select: none; cursor: grabbing; }

.mx-urlpick-wrap { display: flex; align-items: stretch; width: 100%; max-width: 460px; }
.mx-urlpick-prev {
    flex: 0 0 auto; width: 42px; display: inline-flex; align-items: center; justify-content: center;
    background: #f1f4f9; border: 1px solid #cfd6e2; border-right: 0; border-radius: 9px 0 0 9px;
    color: var(--brand, #6c63ff); font-size: 14px;
}
.mx-urlpick-wrap .mx-urlpick { border-top-left-radius: 0; border-bottom-left-radius: 0; cursor: pointer; }

.mx-urlpick-pop {
    position: absolute; z-index: 1200; display: none;
    width: 420px; max-width: calc(100vw - 24px);
    background: #fff; border: 1px solid #d7deea; border-radius: 12px;
    box-shadow: 0 18px 44px rgba(15,23,42,.22); overflow: hidden;
}
.mx-urlpick-pop.open { display: block; }
.mx-urlpick-head { padding: 10px; border-bottom: 1px solid #eef1f6; }
.mx-urlpick-search { width: 100%; }
.mx-urlpick-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.mx-urlpick-row {
    display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
    padding: 8px 10px; border: 1px solid transparent; border-radius: 9px;
    background: transparent; cursor: pointer;
}
.mx-urlpick-row:hover { background: #f1f4f9; border-color: #dbe2ee; }
.mx-urlpick-rt { font-size: 13.5px; font-weight: 600; color: var(--ink, #1f2937); }
.mx-urlpick-ru { font-size: 12px; color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mx-urlpick-none { padding: 24px; text-align: center; color: #94a3b8; }
.mx-urlpick-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid #eef1f6; }
.mx-urlpick-count { font-size: 12px; color: #94a3b8; }

[dir="rtl"] .mx-mt-children { border-left: 0; border-right: 2px solid #eef1f6; margin-left: 0; margin-right: 34px; padding-left: 0; padding-right: 12px; }
[dir="rtl"] .mx-mt-url { text-align: left; }
[dir="rtl"] .mx-iconpick-prev, [dir="rtl"] .mx-urlpick-prev { border-radius: 0 9px 9px 0; border-right: 1px solid #cfd6e2; border-left: 0; }
[dir="rtl"] .mx-iconpick-wrap .mx-iconpick, [dir="rtl"] .mx-urlpick-wrap .mx-urlpick { border-radius: 9px 0 0 9px; }

.mx-brand-link { text-decoration: none; color: inherit; cursor: pointer; }
.mx-brand-link:hover { opacity: .9; }

@media (max-width: 860px) {
    .mx-usermenu-pop { left: auto; right: 8px; max-width: calc(100vw - 16px); }
    .mx-iconpick-pop, .mx-urlpick-pop { left: 8px !important; right: 8px; max-width: calc(100vw - 16px) !important; width: auto !important; }
    .mx-navgrp-i { max-width: calc(100vw - 24px); overflow-x: hidden; }

    .mx-shell, body { overflow-x: hidden; }
}

@media (max-width: 860px) {
    .mx-shell.mx-menu-top .mx-top { display: flex; }
    .mx-shell.mx-menu-top .mx-menu-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
    .mx-imp-banner { position: static; box-shadow: none; }
    .mx-shell.mx-has-imp .mx-main { padding-top: 0; }
    .mx-shell.mx-has-imp .mx-top { top: 0; }
    .mx-shell.mx-has-imp .mx-side { top: 0; }
}

@media (min-width: 861px) {

    .mx-side { z-index: 50; }

    .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp { position: relative; }

    .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp > .mx-navgrp-h {
        width: 100%;
        cursor: pointer;
        margin: 0 0 2px;
        padding: 10px 12px;
        background: none;
        border: 0;
        border-radius: 0;
        text-transform: none;
        letter-spacing: 0;
        font-size: 14px;
        color: #c7d2e0;
        display: flex;
        align-items: center;
        gap: 11px;
    }

        .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp > .mx-navgrp-h > i:first-child {
            width: 18px;
            text-align: center;
            font-size: 14px;
        }

        .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp > .mx-navgrp-h:hover,
        .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp.mx-fly-open > .mx-navgrp-h {
            background: #16273f;
            color: #fff;
        }

        .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp > .mx-navgrp-h .mx-navgrp-caret {
            display: inline-flex;
            margin-left: auto;
            transform: rotate(-90deg);
            font-size: 12px;
            opacity: .9;
        }

    .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp > .mx-navgrp-i {
        position: fixed;
        left: auto;
        min-width: 230px;
        max-height: 80vh;
        overflow-y: auto;
        padding: 0;
        background: #0f1d33;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 0;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
        display: none;
        z-index: 1200;
    }

        .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp > .mx-navgrp-i a { border-radius: 0; }

    .mx-shell:not(.mx-collapsed) .mx-navgrp-i .mx-navgrp.mx-fly-open > .mx-navgrp-i {
        display: block;
    }
}

@media (max-width: 860px) {
    .mx-navgrp-i .mx-navgrp > .mx-navgrp-h {
        text-transform: none;
        letter-spacing: 0;
        font-size: 14px;
        color: #c7d2e0;
        padding: 10px 12px;
        cursor: default;
    }

        .mx-navgrp-i .mx-navgrp > .mx-navgrp-h .mx-navgrp-caret { display: none; }

    .mx-navgrp-i .mx-navgrp > .mx-navgrp-i {
        position: static;
        display: block;
        padding-left: 16px;
    }
}

.mx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding: 40px 16px;
    overflow-y: auto;
}
.mx-modal-overlay.open { display: flex; }

.mx-modal {
    background: var(--card, #fff);
    color: var(--text, #0f172a);
    border: 1px solid var(--line-2, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
    width: 100%;
    max-width: 780px;
    margin: auto;
}
.mx-modal-sm { max-width: 560px; }

.mx-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-2, #e2e8f0);
}
.mx-modal-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }

.mx-modal-close {
    background: none;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex: 0 0 auto;
}
.mx-modal-close:hover { background: var(--inset, #f1f5f9); color: var(--text, #0f172a); }

.mx-modal-body { padding: 18px 20px; }
.mx-modal-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid var(--line-2, #e2e8f0);
}

.mx-train-course { border: 1px solid var(--line-2, #e2e8f0); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.mx-train-course:last-child { margin-bottom: 0; }
.mx-train-course-h { font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mx-train-course-body { font-size: 13px; color: var(--text-muted, #64748b); line-height: 1.5; margin-bottom: 12px; }
.mx-train-course-foot { display: flex; justify-content: flex-end; }

.mx-path { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; }
.mx-path-step {
    position: relative; flex: 1 1 0; min-width: 104px; padding: 10px 14px 10px 28px;
    font-size: 12.5px; font-weight: 600; line-height: 1.1; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: var(--muted); background: var(--line-2);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.mx-path-step:first-child { padding-left: 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.mx-path-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); }
.mx-path-step.done { background: var(--ok-bg); color: var(--ok); }
.mx-path-step.current { background: var(--brand); color: #ffffff; }
.mx-path-step.pending { background: var(--line-2); color: var(--muted); }
.mx-path-step.exit { background: var(--danger-bg); color: var(--danger); }
a.mx-path-step:hover { filter: brightness(0.96); }
.mx-path-step i { margin-right: 5px; opacity: .85; }

.mx-lc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mx-lc-path { flex: 1 1 340px; min-width: 0; }
.mx-lc-action { flex: 0 0 auto; }
.mx-path-step { padding-top: 13px; padding-bottom: 13px; font-size: 13px; }
a.mx-path-step { display: block; }
.mx-path-click { cursor: pointer; }
.mx-path-click:hover { filter: brightness(0.94); text-decoration: none; }
.mx-path-step.pending.mx-path-click { color: var(--brand); }
