:root {
    --office-navy: #101828;
    --office-blue: #2563eb;
    --office-line: #e5e7eb;
}

/* Keep field titles from visually touching their controls. */
label > .kt-form-label {
    display: block;
    line-height: 1.2;
    margin-bottom: .4rem;
}

.jejex-header-breadcrumb {
    min-width: 0;
    align-items: center;
    gap: .25rem;
    padding-inline: 1.5rem;
    white-space: nowrap;
}

.jejex-header-breadcrumb__link,
.jejex-header-breadcrumb__current {
    display: inline-flex;
    min-width: 0;
    height: 2rem;
    align-items: center;
    border-radius: .5rem;
    padding-inline: .625rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
}

.jejex-header-breadcrumb__link {
    border: 1px solid transparent;
    color: var(--color-muted-foreground);
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.jejex-header-breadcrumb__link:hover,
.jejex-header-breadcrumb__link:focus-visible {
    border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 7%, var(--color-background));
}

.jejex-header-breadcrumb__link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
    outline-offset: 1px;
}

.jejex-header-breadcrumb__home {
    gap: .375rem;
}

.jejex-header-breadcrumb__home i {
    font-size: .875rem;
}

.jejex-header-breadcrumb__section {
    color: var(--color-foreground);
}

.jejex-header-breadcrumb__separator {
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--color-muted-foreground) 65%, transparent);
    font-size: .625rem;
}

.jejex-header-breadcrumb__current {
    max-width: min(24vw, 22rem);
    overflow: hidden;
    padding-inline-end: 0;
    color: var(--color-muted-foreground);
    font-weight: 500;
    text-overflow: ellipsis;
}

/* Utilities used by the Office shell but not emitted by the Metronic 9.5 demo build. */
.font-bold {
    font-weight: 700;
}

.overflow-y-auto {
    overflow-y: auto;
}

.office-auth-body {
    min-height: 100vh;
}

.office-auth {
    min-height: 100vh;
    width: 100%;
}

@supports (height: 100dvh) {
    .office-auth-body,
    .office-auth {
        min-height: 100dvh;
    }
}

.office-auth-form-panel {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 2.5rem;
}

.office-auth-card {
    max-width: 420px;
    overflow: hidden;
    width: 100%;
}

.office-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 2.5rem;
}

.office-auth-form-head {
    margin-bottom: .35rem;
    text-align: center;
}

.office-auth-kicker {
    align-items: center;
    background: color-mix(in srgb, var(--primary) 8%, var(--background));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    font-size: .65rem;
    font-weight: 700;
    gap: .35rem;
    margin-bottom: 1rem;
    padding: .35rem .65rem;
}

.office-auth-form-head h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.office-auth-form-head p {
    color: var(--muted-foreground);
    font-size: .78rem;
    margin-top: .4rem;
}

.office-auth-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.office-auth-field > .kt-form-label {
    color: var(--foreground);
    font-size: .72rem;
    font-weight: 650;
}

.office-auth-field > .kt-input,
.office-auth-field > div.kt-input {
    font-size: .8rem;
    min-height: 46px;
}

.office-auth-remember {
    font-size: .73rem;
}

.office-auth-submit {
    align-items: center;
    display: flex;
    font-weight: 700;
    gap: .55rem;
    justify-content: center;
    min-height: 46px;
    width: 100%;
}

.office-auth-security {
    align-items: center;
    color: var(--muted-foreground);
    display: flex;
    font-size: .63rem;
    gap: .35rem;
    justify-content: center;
    margin-top: .2rem;
}

.office-auth-panel {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    background:
        radial-gradient(circle at 75% 20%, rgba(59, 130, 246, .45), transparent 35%),
        linear-gradient(145deg, #0f172a, #172554 58%, #1d4ed8);
}

.office-auth-brand {
    max-width: 520px;
}

.office-logo,
.office-mobile-brand {
    font-weight: 800;
    letter-spacing: -.04em;
}

.office-logo {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.office-logo span {
    color: #60a5fa;
}

.office-auth-brand h2 {
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.office-auth-brand p {
    margin-top: 1.5rem;
    color: #bfdbfe;
    font-size: 1rem;
}

.office-mobile-brand {
    align-items: center;
    color: var(--foreground);
    display: none;
    gap: .65rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.office-mobile-brand__mark {
    align-items: center;
    background: var(--primary);
    border-radius: .65rem;
    color: var(--primary-foreground);
    display: flex;
    font-size: 1.05rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.office-mobile-brand__name {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.office-mobile-brand__name b {
    font-size: 1rem;
    letter-spacing: -.035em;
}

.office-mobile-brand__name small {
    color: var(--primary);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin-top: .25rem;
}

.office-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.office-page-head h1 {
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.office-page-head p {
    margin-top: .25rem;
    color: var(--color-muted-foreground);
    font-size: .875rem;
}

.office-user-avatar {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d5e1ff;
    border-radius: 50%;
    color: #2563eb;
    background: #e8efff;
    font-size: .75rem;
    font-weight: 700;
}

.office-user-avatar--image {
    display: block;
    max-width: 100%;
    object-fit: cover;
    padding: 0;
}

.office-empty {
    display: flex;
    min-height: 21.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--color-muted-foreground);
    text-align: center;
}

.office-empty > span {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border-radius: .625rem;
    color: var(--color-muted-foreground);
    background: var(--color-muted);
    font-size: 1.5rem;
}

.office-empty h2 {
    margin-top: 1rem;
    color: var(--color-foreground);
    font-weight: 600;
}

.office-empty p {
    margin-top: .25rem;
    font-size: .875rem;
}

.office-welcome {
    display: grid;
    min-height: 320px;
    place-items: center;
    text-align: center;
}

.office-welcome__icon {
    display: inline-grid;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: .75rem;
    color: #2563eb;
    background: #eff6ff;
    font-size: 1.75rem;
}

.dark .office-welcome__icon {
    color: #93c5fd;
    background: rgba(37, 99, 235, .18);
}

.dark .office-user-avatar {
    border-color: #1e3a8a;
    color: #93c5fd;
    background: #172554;
}

@media (max-width: 1023px) {
    .office-auth-body {
        background:
            radial-gradient(circle at 50% 0, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
            color-mix(in srgb, var(--muted) 45%, var(--background));
        height: 100vh;
        overflow: hidden;
        overscroll-behavior: none;
    }

    @supports (height: 100dvh) {
        .office-auth-body {
            height: 100dvh;
            min-height: 100dvh;
        }
    }

    .office-auth {
        display: flex;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .office-auth-form-panel {
        flex: 1;
        min-height: 0;
        order: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1.5rem;
    }

    .office-auth-panel {
        display: none;
    }

    .office-mobile-brand {
        display: inline-flex;
    }

    .office-auth-card {
        border-color: color-mix(in srgb, var(--primary) 12%, var(--border));
        border-radius: 1rem;
        box-shadow: 0 18px 50px rgb(15 23 42 / .09);
    }
}

@media (max-width: 640px) {
    .office-auth-form-panel {
        align-items: center;
        padding: 1.15rem;
    }

    .office-auth-card {
        max-width: 390px;
    }

    .office-auth-form {
        gap: 1rem;
        padding: 1.75rem 1.35rem;
    }

    .office-auth-form-head h1 {
        font-size: 1.35rem;
    }

    .office-auth-field > .kt-input,
    .office-auth-field > div.kt-input,
    .office-auth-submit {
        min-height: 48px;
    }
}
